Appendix N -   Detecting End of Simulations

Often it is useful to detect the end of a simulation for purposes of performing certain clean-up or close-up operations such as, closing trace files, or printing summary information. Summary information such as maximums and means can only be produced at the end of a simulation, and in the case of time/based averages, -can only be produced when the end-time is known.