Save the simulation state in an R object, allowing it to be
resumed later using restore_simulation_state
.
save_simulation_state(timesteps, variables, events)
the number of time steps that have already been simulated
the list of Variables
the list of Events
the saved simulation state.