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

Error when adding manually EMS script with Loops

asked 2020-03-15 03:16:39 -0600

daniellosg's avatar

updated 2020-03-17 09:10:13 -0600

Hi everyone, I'm trying to add a EMS script with loops manually to a IDF (that is, copying and pasting the script), but I get the error below when I try to simulate. I just realised that I could use 'for loops' in eppy to add an EMS object for each zone, and therefore omit the zone loop, but i'd like to know if anyone knows an easier way to make this script with loops work, considering that the script should be added manually to the IDF.

In the following link you will see 2 IDFs: one with loops within the scrip (which works), and one without loops within the script (which doesn't work):

https://drive.google.com/open?id=1BsY...

Thanks in advance.

See the error below:

** Severe  ** GetRuntimeLanguageUserInput: EnergyManagementSystem:GlobalVariable, invalid entry.    
**   ~~~   ** Invalid Erl Variable Name=<FORALLOCCUPIEDZONES>    
**   ~~~   ** Name conflicts with an existing global variable name    
** Severe  ** GetRuntimeLanguageUserInput: EnergyManagementSystem:GlobalVariable, invalid entry.    
**   ~~~   ** Invalid Erl Variable Name=<LOOPNEXTZONE>    
**   ~~~   ** Name conflicts with an existing global variable name    
**  Fatal  ** Errors found in getting EMS Runtime Language input. Preceding condition causes termination.    
...Summary of Errors that led to program termination:    
..... Reference severe error count=2   
..... Last severe error=GetRuntimeLanguageUserInput: EnergyManagementSystem:GlobalVariable, invalid entry.    ************* Warning:  Node connection errors not checked - most system input has not been read (see previous warning).   
************* Fatal error -- final processing.  Program exited before simulations began.  See previous error messages.    *************   
************* ===== Final Error Summary =====    ************* The following error categories occurred.  Consider correcting or noting.   
************* Nominally Unused Constructions    ************* ..The nominally unused constructions warning is provided to alert you to potential conditions that can cause   
************* ..extra time during simulation. Each construction is calculated by the algorithm indicated in the HeatBalanceAlgorithm   
************* ..object. You may remove the constructions indicated (when you use the DisplayExtraWarnings option). 
*************    ************* EnergyPlus Warmup Error Summary. During Warmup: 0 Warning; 0 Severe Errors.    ************* EnergyPlus Sizing Error Summary. During Sizing: 4 Warning; 2 Severe Errors.   
************* EnergyPlus Terminated--Fatal Error Detected. 7 Warning; 2 Severe Errors; Elapsed Time=00hr 00min  0.30sec
edit retag flag offensive close merge delete

Comments

Can you attach your IDF or upload it to DropBox or Google Drive?

shorowit's avatar shorowit  ( 2020-03-16 13:43:43 -0600 )edit

Hi shorowit,

Yes, in the following link you will see 2 IDFs: one with loops within the scrip (which works), and one without loops within the script (which doesn't work):

https://drive.google.com/open?id=1BsY...

Thanks in advance.

daniellosg's avatar daniellosg  ( 2020-03-17 07:47:29 -0600 )edit

Hello daniel, could you please share the idfs again, the above drive link seems to be empty.

Padfoot's avatar Padfoot  ( 2020-08-02 03:41:03 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
5

answered 2020-03-17 09:09:33 -0600

It appears that you're conflating DesignBuilder-specific EMS code with EnergyPlus EMS code. EnergyPlus does not have builtin EMS loop commands like <ForAllUnoccupiedZones>. You can see the raw EnergyPlus EMS commands available here, while DesignBuilder extends the available commands as described here.

edit flag offensive delete link more

Comments

shorowit,

Thank you so much, now all make sense.

Best regards,

daniellosg's avatar daniellosg  ( 2020-03-17 09:27:39 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2020-03-15 03:16:39 -0600

Seen: 280 times

Last updated: Mar 17 '20