Fix bug where NaN in residual of steady state were not detected with steady_state_model
Make error message for insufficient simulation length more informative.