lsim.pdf