End of iteration optional tasks.
It is called once for each backwards and forwards simulation,
once the final point in the output timeline has been reached
and the simulation ends.
After it is called, itervars
are deleted.
May be provided by subclasses.