arras-energy / gridlabd

Arras Energy simulator
https://www.arras.energy/
BSD 3-Clause "New" or "Revised" License
4 stars 5 forks source link

Realtime mode stops when no clock is specified #26

Open dchassin opened 1 year ago

dchassin commented 1 year ago

Problem description

The simulation does not enter realtime mode when requested.

Steps to reproduce

Do the following:

$ gridlabd model get IEEE/123
$ gridlabd -D run_realtime=1 123.glm
WARNING  [INIT] : node_14: substation:3 is using the default base power of 100 VA. This could cause instability on your system.
WARNING  [2023-05-19 06:15:46 PDT] : last warning message was repeated 26 times
$

Expected behavior

The simulation should not exit.

System information

dchassin commented 1 year ago

The reason is that the IEEE/123 does not contain anything that would change over time, so the simulation goes immediately to steady state and stops. The immediate solution is to include weather data. The long-term solution is to add global variable to control the default behavior so that the simulation does not stop on steady state.

dchassin commented 1 year ago

Another solution is to change the default stop behavior when running in realtime to not stop on steady state.