Residual effects in shakedown: a theoretical approach and experimental results