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

Revision history [back]

EnergyPlus crash - forrtl: severe (157): Program Exception - access violation

When running EnergyPlus via Python and using multiprocessing I get the following error on some runs. My guess is that this is to do with multiple processes trying to access the same schedules file. Does that make sense to anyone who understands the internals of EnergyPlus better than I do?

forrtl: severe (157): Program Exception - access violation

Image              PC                Routine            Line        Source             
EnergyPlus.exe     000000014011C536  schedulemanager_m        2468  ScheduleManager.f90
EnergyPlus.exe     00000001405F02EF  setpointmanager_m        5012  SetPointManager.f90
EnergyPlus.exe     00000001405CA274  setpointmanager_m         766  SetPointManager.f90
EnergyPlus.exe     00000001410AEE3F  hvacmanager_mp_si         657  HVACManager.f90
EnergyPlus.exe     00000001410A308E  hvacmanager_mp_ma         310  HVACManager.f90
EnergyPlus.exe     00000001410C1CD2  heatbalanceairman         123  HeatBalanceAirManager.f90
EnergyPlus.exe     000000014110FF52  heatbalancesurfac         149  HeatBalanceSurfaceManager.f90
EnergyPlus.exe     0000000141145CC0  heatbalancemanage         215  HeatBalanceManager.f90
EnergyPlus.exe     00000001411C4ED9  simulationmanager         376  SimulationManager.f90
EnergyPlus.exe     00000001411F0359  MAIN__                    421  EnergyPlus.f90
EnergyPlus.exe     00000001413BBA1C  Unknown               Unknown  Unknown
EnergyPlus.exe     000000014139941F  Unknown               Unknown  Unknown
kernel32.dll       0000000077A759ED  Unknown               Unknown  Unknown
ntdll.dll          0000000077CAC541  Unknown               Unknown  Unknown

EnergyPlus crash - forrtl: severe (157): Program Exception - access violation

When running EnergyPlus via Python and using multiprocessing I get the following error on some runs. My guess is that this is to do with multiple processes trying to access the same schedules file. Does that make sense to anyone who understands the internals of EnergyPlus better than I do?

The reasoning above seems wrong having looked into what causes this error in Fortran. It's apparently to do with trying to do with touching memory that you're not allowed to. The examples I saw are "writing into a constant parameter, ...reading/writing outside of bounds, ...accessing an uninitialized variable".

So what could be causing this error?

forrtl: severe (157): Program Exception - access violation

Image              PC                Routine            Line        Source             
EnergyPlus.exe     000000014011C536  schedulemanager_m        2468  ScheduleManager.f90
EnergyPlus.exe     00000001405F02EF  setpointmanager_m        5012  SetPointManager.f90
EnergyPlus.exe     00000001405CA274  setpointmanager_m         766  SetPointManager.f90
EnergyPlus.exe     00000001410AEE3F  hvacmanager_mp_si         657  HVACManager.f90
EnergyPlus.exe     00000001410A308E  hvacmanager_mp_ma         310  HVACManager.f90
EnergyPlus.exe     00000001410C1CD2  heatbalanceairman         123  HeatBalanceAirManager.f90
EnergyPlus.exe     000000014110FF52  heatbalancesurfac         149  HeatBalanceSurfaceManager.f90
EnergyPlus.exe     0000000141145CC0  heatbalancemanage         215  HeatBalanceManager.f90
EnergyPlus.exe     00000001411C4ED9  simulationmanager         376  SimulationManager.f90
EnergyPlus.exe     00000001411F0359  MAIN__                    421  EnergyPlus.f90
EnergyPlus.exe     00000001413BBA1C  Unknown               Unknown  Unknown
EnergyPlus.exe     000000014139941F  Unknown               Unknown  Unknown
kernel32.dll       0000000077A759ED  Unknown               Unknown  Unknown
ntdll.dll          0000000077CAC541  Unknown               Unknown  Unknown

EnergyPlus crash - forrtl: severe (157): Program Exception - access violation

When running EnergyPlus via Python and using multiprocessing I get the following error on some runs. My guess is that this is to do with multiple processes trying to access the same schedules file. Does that make sense to anyone who understands the internals of EnergyPlus better than I do?

The reasoning above seems wrong having looked into what causes this error in Fortran. It's apparently to do with trying to do with touching memory that you're not allowed to. The examples I saw are "writing into a constant parameter, ...reading/writing outside of bounds, ...accessing an uninitialized variable".

So what could be causing this error?

forrtl: severe (157): Program Exception - access violation

Image              PC                Routine            Line        Source             
EnergyPlus.exe     000000014011C536  schedulemanager_m        2468  ScheduleManager.f90
EnergyPlus.exe     00000001405F02EF  setpointmanager_m        5012  SetPointManager.f90
EnergyPlus.exe     00000001405CA274  setpointmanager_m         766  SetPointManager.f90
EnergyPlus.exe     00000001410AEE3F  hvacmanager_mp_si         657  HVACManager.f90
EnergyPlus.exe     00000001410A308E  hvacmanager_mp_ma         310  HVACManager.f90
EnergyPlus.exe     00000001410C1CD2  heatbalanceairman         123  HeatBalanceAirManager.f90
EnergyPlus.exe     000000014110FF52  heatbalancesurfac         149  HeatBalanceSurfaceManager.f90
EnergyPlus.exe     0000000141145CC0  heatbalancemanage         215  HeatBalanceManager.f90
EnergyPlus.exe     00000001411C4ED9  simulationmanager         376  SimulationManager.f90
EnergyPlus.exe     00000001411F0359  MAIN__                    421  EnergyPlus.f90
EnergyPlus.exe     00000001413BBA1C  Unknown               Unknown  Unknown
EnergyPlus.exe     000000014139941F  Unknown               Unknown  Unknown
kernel32.dll       0000000077A759ED  Unknown               Unknown  Unknown
ntdll.dll          0000000077CAC541  Unknown               Unknown  Unknown