correction in main script so that it re-reads the maxSimTime in each replication in case it is infinite