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

ReadVarESO(EnergyPlus9.4, Windows): Could not print backtrace, libbacktrace could not find executable to open

asked 2021-05-18 16:30:21 -0600

ep_user gravatar image

updated 2021-05-18 16:58:20 -0600

I am running a simulation on Windows using EnergyPlus 9.4.0. At the end of simulation, i got some weird message:

ReadVarsESO program starting. At line 988 of file D:\a\EnergyPlus\EnergyPlus\src\ReadVars\ReadVarsESO.f90 (unit = 22, file = 'C:\Users\projects\xprojects\code_simu\code..\simulation\output\EPout.csv') Fortran runtime error: Cannot write to file opened for READ

Error termination. Backtrace:

Could not print backtrace: libbacktrace could not find executable to open

0 0xffffffff

1 0xffffffff

2 0xffffffff

3 0xffffffff

4 0xffffffff

5 0xffffffff

6 0xffffffff

7 0xffffffff

8 0xffffffff

9 0xffffffff

10 0xffffffff

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-05-18 19:30:56 -0600

updated 2021-05-19 10:18:06 -0600

No idea if it's the cause, but I noticed the path C:\Users\projects\xprojects\code_simu\code..\simulation\output\EPout.csv. Sometimes when the file path is really long on Windows, it can cause weird behavior. Maybe you can try moving your simulation files so they aren't buried within so many subdirectories?


I actually just hit this error myself. Another possibility is that the EPout.csv file from a previous run is open in an application (like Excel) and therefore EnergyPlus can't write the new file. That would explain why the error says "Cannot write to file opened for READ".

edit flag offensive delete link more


I'll take a guess at the "code.." folder name. @ep_user, try a clean path with no special characters.

rraustad gravatar image rraustad  ( 2021-05-18 19:50:52 -0600 )edit

Ah, an open excel file, that makes more sense.

rraustad gravatar image rraustad  ( 2021-05-19 11:08:45 -0600 )edit

thanks. You are right. I opened an EPout.csv while my model is running. @shorowit

ep_user gravatar image ep_user  ( 2021-05-19 11:31: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


Asked: 2021-05-18 16:30:21 -0600

Seen: 260 times

Last updated: May 19