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

Where does expandobjects.exe save its temporary files? (Parallel EnergyPlus simulations are crashing)

asked 2025-07-28 09:07:42 -0500

floen's avatar

updated 2025-07-28 11:24:16 -0500

I'm running EnergyPlus in parallel through the command line; each IDF resides in its own directory. I have to run expandobjects.exe with the -x flag for each EnergyPlus simulation, which results in temporary files overwriting themselves somewhere on my disk. Therefore, some .expidf files are not created and my parallel simulations crash.

Where does expandobjects.exe save its temporary files? I would like to make sure that the temporary files are created in separate directories, allowing me to successfully execute EnergyPlus in parallel.

Thank you for any help!

(P.S: I did read this UnmetHours post about parallelization with ExpandObjects; however, I don't have the option of running ExpandObjects ahead of time)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2025-07-28 10:30:13 -0500

ExpandObjects reads an in.idf and writes expanded.idf and expandedidf.err files in the same folder.

You might want to take a look at the \workflows\energyplus.py for an example or RunEPlus.bat to understand better.

In general, the note from energyplus.py

    # So...ExpandObjects is weird in E+.  It doesn't like running things in directories and accidentally symlinks
    # things into the current working directory even if you specify an output directory
    # We're just going to run it ourselves.  (Side note it could be a similar problem for EPMacro)

suggests to me that you might want to just run ExpandObjects prior to running EnergyPlus rather than using the -x approach. Perhaps, put the in.idf into a temporary folder.

edit flag offensive delete link more

Comments

Thank you very much for your help Jason. The note from energyplus.py was the clue I needed to solve my issue. I simply changed my current working directory to the isolated directory with the IDF. Now all the temporary files from ExpandObjects.exe are created in that directory in isolation, and parallel simulations are possible!

floen's avatar floen  ( 2025-07-28 15:08:52 -0500 )edit

Glad I can help.

JasonGlazer's avatar JasonGlazer  ( 2025-07-28 15:14:57 -0500 )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

Question Tools

1 follower

Stats

Asked: 2025-07-28 08:52:38 -0500

Seen: 236 times

Last updated: Jul 28