1

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

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

ep_user's avatar
151
ep_user
asked 2021-05-18 16:30:21 -0500
Aaron Boranian's avatar
14.1k
Aaron Boranian
updated 2021-05-18 16:58:20 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2

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?

EDIT:

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".

shorowit's avatar
11.8k
shorowit
answered 2021-05-18 19:30:56 -0500, updated 2021-05-19 10:18:06 -0500
edit flag offensive 0 remove flag delete link

Comments

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

rraustad's avatar rraustad (2021-05-18 19:50:52 -0500) edit

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

rraustad's avatar rraustad (2021-05-19 11:08:45 -0500) edit

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

ep_user's avatar ep_user (2021-05-19 11:31:11 -0500) edit
add a comment see more comments