Overview:
This function is executed at the end of each replication run. The replication ends when the model has run out of events or the simulation end time has expired.
Access variables:
replication: current replication number
scenario: current scenario number