Why am I getting non-sinusoidal output for sinusoidal input in a mass-spring system?
There's a double integrator in the TF that inverse transforms to a ramp, which is what you're seeing added to the sinusoidal response to the sinusoidal input.