I have co-simulation model, that couples BCVTB & EnergyPlus via the PythonActor. From PythonActor, at each timestep, I call a series of other python scripts.
These scripts need the value of the current timestep ( current simulation time ) But this timestep needs to be global ( i.e independent of the components involved )
It is just an integer variable, where is pass it along from E+ to BCVTB. When PythonActor is executed in BCVTB, the variable needs to get updated (timestep += 1). After it is updated, it needs to be passed along to E+ again. ( & the cycle goes on until termination)