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

IDF file sometimes runs and sometimes doesn't (diff on both idf text files outputs no difference)

asked 2018-07-20 14:08:13 -0600

mldichter gravatar image

I have an IDF file with some strange behavior. I have two versions of the exact same idf file (I ran diff on the txt files and there is no difference) with the exact same weather file, but one runs and one has a severe error.

Here they are. Google Drive link

The err file in the folder that has severe error is

Program Version,EnergyPlus, Version 8.9.0-eba93e8e1b, YMD=2018.07.20 11:58,
   ** Severe  ** <root> - Object required to validate 'required' properties.
   **  Fatal  ** Errors occurred on processing input file. Preceding condition(s) cause termination.
   ...Summary of Errors that led to program termination:
   ..... Reference severe error count=1
   ..... Last severe error=<root> - Object required to validate 'required' properties.
   ************* 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.
   ************* EnergyPlus Warmup Error Summary. During Warmup: 0 Warning; 0 Severe Errors.
   ************* EnergyPlus Sizing Error Summary. During Sizing: 0 Warning; 0 Severe Errors.
   ************* EnergyPlus Terminated--Fatal Error Detected. 0 Warning; 1 Severe Errors; Elapsed Time=00hr 00min  0.19sec

I can usually get the severe error to go away by opening the idf file with the idf editor, making any new object, deleting said object, and saving the idf again.

This isn't the only funny thing this idf file has done, but I managed to reproduce this behavior. The misbehaving idf file is based on the example file 5ZoneFanCoilDOAS_ERVOnAirLoopMainBranch.idf, with the purchased heating and cooling replaced with a boiler and chiller.

Energyplus 8.9.0

edit retag flag offensive close merge delete

Comments

@mldichter Are you running under Linux or MacOS?

Avi gravatar imageAvi ( 2018-07-23 12:29:38 -0600 )edit

@Avi Neither. My OS, as well another computer I tested, are Windows 10 Pro.

mldichter gravatar imagemldichter ( 2018-07-23 12:34:02 -0600 )edit

@Avi Are you able to reproduce the error on your own computer?

mldichter gravatar imagemldichter ( 2018-07-23 12:34:25 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
4

answered 2018-07-23 13:22:42 -0600

Avi gravatar image

updated 2018-07-25 15:41:02 -0600

mldichter gravatar image

The problem is the encoding of the files. The one that is good looks like that on my computer: image description

And the one that fails:

image description

To prove it try to select all text an paste it into the file that doesn't completes and you will see that the error will stay.

It is probably an issue worth reporting.


Summary of Comments added by @mldichter:
Energyplus is picky about the encoding of the file. Encoding "UTF-8 (BOM)" does not run, but encoding "UTF-8 without BOM" does run. You can change the encoding of the file easily using Notepad++.

edit flag offensive delete link more

Comments

@Avi Please post a download link to the idf file with the encoding that works. I'd like to try it out on my machine and investigate further what Windows 10 is doing. It sounds like it might be a problem with the default text editor rather than Energyplus, and I'd like to check before reporting it to the developers.

mldichter gravatar imagemldichter ( 2018-07-23 13:43:20 -0600 )edit

@mldichter what you see in my answer are your original files. I changed the name of the file with the error since I was suspecting that the name caused the problem which I found to be wrong. As I mentioned in your other post the ANSI 1255 is my default encoding in my PC. So to conclude using the PC default encoding seems to work fine with E+ on the other hand using UTF-8 (BOM) fails on computer with different default encoding. I sow similar problems regarding EPW files encoding.

Avi gravatar imageAvi ( 2018-07-23 23:22:02 -0600 )edit

@Avi Okay. Looks like I misunderstood. Just to clarify, the two idf files appear to have exactly the same data in them. However, on your computer, one idf runs without producing errors while the other idf file runs with a severe error. This leads you to conclude that something weird is going on with the two, supposedly identical, idf files that is independent of the computer running those idf files. Correct?

mldichter gravatar imagemldichter ( 2018-07-24 10:21:43 -0600 )edit

@Avi I looked up ANSI-1255. It is used for writing Hebrew characters. Just wanted to check with you that your computer being setup to write Hebrew in text files is plausible. Is that correct? Otherwise, maybe whoever wrote the example energyplus 8.9 example idf file saved it with the ANSI-1255 encoding. Just want to rule out that possibility.

mldichter gravatar imagemldichter ( 2018-07-24 10:27:40 -0600 )edit

@mldichter Yep my computer defaults to Hebrew. What I did was to open the file that was failing for you (from the Severe error folder) delete all its content and then paste the content of the one in the completes folder. And yet it was failing which led me to look at the encoding.

Avi gravatar imageAvi ( 2018-07-24 10:51:11 -0600 )edit

Your Answer

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

Add Answer

 

Question Tools

1 follower

Stats

Asked: 2018-07-20 14:08:13 -0600

Seen: 161 times

Last updated: Jul 25 '18