Modeling nonlinear stress relaxation of polymers