Just guessing here:
Have you defined "flag" as an EMS variable? I don't see the reference to "WarmupFlag".
Hi All,
I have been trying to set up the built-in variable "WarmupFlag" in the EnergyManagementSystem, I also found a discussion from a few years ago, but it didnt work for me.(https://groups.yahoo.com/neo/groups/EnergyPlus_Support/conversations/messages/19016)
If i take the above mentioned example: what needs to be set in the EMS for the warmupflag to mark the WU-phase?
EnergyManagementSystem:ProgramCallingManager,
myCalc3,            !- Name
BeginNewEnvironment, !- EnergyPlus Model Calling Point
Calc_warmup;Â Â Â !- Progam Name 1
Â
EnergyManagementSystem:Program,
Calc_warmup,   !- Name
Set flag=1;Â Â Â Â Â Â Â Â Â Â !- Program Line 1
Â
EnergyManagementSystem:ProgramCallingManager,
myCalc4,            !-Name
AfterNewEnvirontWarmUpIsComplete,   !-EnergyPlus Model Calling Point
Calc_after_warmup;Â Â Â Â Â Â Â !- Program Name 1
EnergyManagementSystem:Program,
Calc_after_warmup,       !-Name
Set flag=0Â Â Â Â Â Â Â Â Â Â Â !- Program Line1
Thank you for your help,
Christiane