Save the model into the save state.