-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5ZoneTDV example file fatal due to incorrect path to schedule file in Ep-Launch V9.6 #9164
Comments
@Nigusse Nothing changed with EP-Launch. EnergyPlus does the searching for this. Something must have changed in the search path list in EnergyPlus between 9.5 and 9.6. |
Tested with v9.5 on Windows10 with a bad file name to see what search paths were checked:
Now with v22.1-IOFreeze'ish
I see 2 differences here:
|
The problem might be here: EnergyPlus/src/EnergyPlus/ScheduleManager.cc Lines 456 to 459 in 4fa778e
The function
Another place that need to change is here: EnergyPlus/src/EnergyPlus/ScheduleManager.cc Line 1676 in 4fa778e
This line should be changed to the following:
There seems to be a difference about std::filesystem::path and std::string, according to the findings in #9313 which seems to have a similar problem. There are about 5-6 calls for CheckForAcutalFilePath() in the entire code. All the others calls seem to correct--having the second parameter as std:filesystem::path type. The two occurrences above in the ScheduleManager.cc should be changed accordingly. |
It should already implicitly construct a I think this is due to the original change to using |
@jcyuan2020 are you already actively looking into this? Otherwise I would take it, bundle it with #9313 (since I did the filesystem conversion, both are my fault...) FYI, the relevant code block is around here: EnergyPlus/src/EnergyPlus/DataSystemVariables.cc Lines 172 to 214 in ef1342a
It doesn't report a path as checked if that path doesn't exist. I'm pretty sure this is an issue with a missing trailing directory separator... |
@jcyuan2020 Thanks. Another potential issue with this... the folder datasets (in source) is installed as DataSets... Given than mac and linux are case sensitive file systems, not sure if that's a great idea. |
yeah well, I can reproduce a similar error message on Ubuntu when installed, Ubuntu is case sensitive (mac isn't by default, including on my machine, so it works there). $ EnergyPlus-22.1.0-b7de83fa2d-Linux-Ubuntu18.04-x86_64/energyplus -d out-5ZoneTDV/ -w EnergyPlus-22.1.0-b7de83fa2d-Linux-Ubuntu18.04-x86_64/WeatherData/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw EnergyPlus-22.1.0-b7de83fa2d-Linux-Ubuntu18.04-x86_64/ExampleFiles/5ZoneTDV.idf
EnergyPlus, Version 22.1.0-b7de83fa2d, YMD=2022.03.04 14:28
**FATAL:ProcessScheduleInput: Preceding Errors cause termination.
EnergyPlus Run Time=00hr 00min 0.82sec If I replace in 5ZoneTDV.idf: - ..\datasets\TDV\TDV_2008_kBtu_CTZ06.csv, !- File Name
+ ..\DataSets\TDV\TDV_2008_kBtu_CTZ06.csv, !- File Name then it works. |
I finally found the needle.
EnergyPlus/src/EnergyPlus/DataSystemVariables.cc Lines 160 to 164 in de239b2
I missed it when I did the conversion to filesystem... EnergyPlus/src/EnergyPlus/DataSystemVariables.cc Lines 159 to 160 in 1ca392b
As a result, since EP-Launch creates an extra Temp subfolder to run it |
Issue overview
5ZoneTDV example file fatal out when run using EP-Launch Version 9.6 when trying to access Schedule:File object. EP-Launch is looking at incorrect path to the file. This file and others run fine in EnergyPlus V9.5. But it runs fine in V9.6 if you provide full path to the file in Schedule:File object.
Details
Some additional details for this issue (if relevant):
Error Message:
EP-Launch should be looking at
C:\Data\EPlusPrograms\EnergyPlusV9-6-0\datasets\TDV\
instead ofC:\Data\EPlusPrograms\EnergyPlusV9-6-0\ExampleFiles\datasets\TDV
.Checklist
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
The text was updated successfully, but these errors were encountered: