Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

Timestep not consistent

Hi All,

I wrote an EMS program on ZoneTimeStep basis checking againts built-in variable CurrentTime. It does not work well.

Therefore I've done some investigation on it and i found, asking it as a variable on timestep report frequency, that CurrentTimestep has not consistent values: the difference between one value and the following is not 0.1667 hours (=10 min. <-- N° timestep = 6) but some variable value around it. This results that my EMS program is not able to check the right clock time : e.g. at 02:00 (see attached image) it does not give me an exaxt value of 2.0 but a rough value of 2.0333

What may be the reasons for such behavior?

(Of course I have checked on many other models that CurrentTime gives the exact right value, as expected)

image description

Timestep not consistent

Hi All,

I wrote an EMS program on ZoneTimeStep basis checking againts built-in variable CurrentTime. It does not work well.

Therefore I've done some investigation on it and i found, asking it as a variable on timestep report frequency, that CurrentTimestep has not consistent values: the difference between one value and the following is not 0.1667 hours (=10 min. <-- N° timestep = 6) but some variable value around it. This results that my EMS program is not able to check the right clock time : e.g. at 02:00 (see attached image) it does not give me an exaxt value of 2.0 but a rough value of 2.0333

What may be the reasons for such behavior?

(Of course I have checked on many other models that CurrentTime gives the exact right value, as expected)

image description