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

Errors running DOE prototypes through python EPlus

asked 2025-03-07 09:49:39 -0500

duckyduckdog's avatar

updated 2025-03-09 10:07:38 -0500

I am trying to run a EnergyPlus simulation through Python. I am specifically attempting to reproduce the results that PNNL got running their prototypes through EPlus.

I have tried running them through V24-2-0 and V23-1-0 (the version they were written in). For some reason, they keep producing errors.

This is the code that I am using to run the simulation:

        subprocess.run([
        '/jumbo/keller-lab/Applications/EnergyPlus-24-1-0/energyplus', 
        '--weather', weather_file, 
        '--output-directory', idf_output_dir, 
        '--idd', idd_file_path, 
        '--annual',
        '--readvars',
        '--expandobjects',
        idf_copy_path
    ])

and here are the contents of the .err that I am getting.

Program Version,EnergyPlus, Version 24.1.0-9d7789a3ac, YMD=2025.03.07 10:44,
************* Beginning Zone Sizing Calculations
** Severe  ** BuildingSurface:Detailed="BGWALL_LOWER_LDF", invalid Outside Boundary Condition Object="SURFPROPOTHSDCOEFBASEMENTAVGWALL".
**   ~~~   **  no OtherSideCoefficients of that name.
** Severe  ** BuildingSurface:Detailed="BGWALL_LOWER_SDR", invalid Outside Boundary Condition Object="SURFPROPOTHSDCOEFBASEMENTAVGWALL".
**   ~~~   **  no OtherSideCoefficients of that name.
** Severe  ** BuildingSurface:Detailed="BGWALL_LOWER_LDB", invalid Outside Boundary Condition Object="SURFPROPOTHSDCOEFBASEMENTAVGWALL".
**   ~~~   **  no OtherSideCoefficients of that name.
** Severe  ** BuildingSurface:Detailed="BGWALL_LOWER_SDL", invalid Outside Boundary Condition Object="SURFPROPOTHSDCOEFBASEMENTAVGWALL".
**   ~~~   **  no OtherSideCoefficients of that name.
** Severe  ** BuildingSurface:Detailed="EXTFLOOR_UNIT1", invalid Outside Boundary Condition Object="SURFPROPOTHSDCOEFBASEMENTAVGFLOOR".
**   ~~~   **  no OtherSideCoefficients of that name.
** Severe  ** BuildingSurface:Detailed="FLOOR_GARAGE1", invalid Outside Boundary Condition Object="SURFPROPOTHSDCOEFSLABAVERAGE".
**   ~~~   **  no OtherSideCoefficients of that name.
**  Fatal  ** GetSurfaceData: Errors discovered, program terminates.
...Summary of Errors that led to program termination:
..... Reference severe error count=6
..... Last severe error=BuildingSurface:Detailed="FLOOR_GARAGE1", invalid Outside Boundary Condition Object="SURFPROPOTHSDCOEFSLABAVERAGE".
************* 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; 6 Severe Errors.
************* EnergyPlus Terminated--Fatal Error Detected. 0 Warning; 6 Severe Errors; Elapsed Time=00hr 00min  0.11sec

How can I fix this within Python? I know it has something to do with running the slab and basement preprocessors, but I can't figure out how to do that using subprocess.

Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2025-03-10 11:22:12 -0500

You probably want to run ExpandObjects and Basement separately from EnergyPlus. The best place to probably look at this is the RunEPlus.bat file or the EPL-run.bat file. These are located in the root folder of where ever you installed EnergyPlus on Windows.

The basement program needs specific files to exist in the folder and generates files in that folder. EnergyPlus then uses those files. ExpandObjects does some of the work for you and creates the BasementGHTIn.idf file.

https://bigladdersoftware.com/epx/doc...

You can also use subprocess to run those but would have to recreate the file manipulation part.

edit flag offensive delete link more

Comments

This is super helpful. Any chance you know where I can find OpenStudio files for residential homes? I am looking for any file just to use as an example. Or a sample IDF file for a simple detached single family residence?

duckyduckdog's avatar duckyduckdog  ( 2025-03-19 08:36:15 -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

Careers

Question Tools

1 follower

Stats

Asked: 2025-03-07 09:49:39 -0500

Seen: 77 times

Last updated: Mar 10