First time here? Check our help page!
2

EnergyPlus-GenOpt Calibration not Working with ExcalibBEM interface [closed]

I am actually using the interface ExcalibBem to calibrate an idf file simulation with a measured data and does not work at all. The objective is to match the Interior electrical equipment consumption of the model with the measured data, selecting several electrical equipment parameters. The error I get is as follows:

Error in executing the simulation program
Exit value of the simulation program: 1
Working directory : 'C:\Users\SambuKS\Desktop\EP_Calibration_MinOA\GenOpt\tmp-genopt-run-1'.
Current command String    : 'cmd /C ""C

The model is uploaded here

Edit:

Here is my .cfg file:

this is the cfg file configuration:

SimulationStart

{

// The command line below calls RunEPlus.bat.

Command = "cmd /C \"\"C:\\Users\\SambuKS\\Desktop\\My Model\\GenOpt\\Calib.bat\" \"%Simulation.Files.Input.File1%\" \"%Simulation.CallParameter.Suffix%\" \"C:\\EnergyPlusV8-4-0\\\"  \"%Simulation.CallParameter.Prefix%\"\"";

    WriteInputFileExtension = false;
}
samks123's avatar
245
samks123
asked 2016-04-10 19:17:33 -0500
Julien Marrec's avatar
29.7k
Julien Marrec
updated 2016-04-12 07:17:59 -0500
edit flag offensive 0 remove flag reopen merge delete

Closed for the following reason "question is off-topic or not relevant" by samks123 2016-04-20 17:27:12 -0500

Comments

add a comment see more comments

1 Answer

2

You have a syntax error in the configuration file for the entry SimulationStart { Command = ....

GenOpt returns the error message

Command string               : 'cmd /C ""C:\Users\SambuKS\Desktop\EP_Calibration_MinOA\GenOpt\Calib.bat" "Calib" "GBR_Birmingham.035340_IWEC" "C:\EnergyPlusV8-4-0\"  "Measureddata60min_2012.txt""'

which shows that you have only one backslash with quote \" and hence your quotes don't close.

Michael Wetter's avatar
1.7k
Michael Wetter
answered 2016-04-11 17:11:47 -0500, updated 2016-04-11 18:44:49 -0500
edit flag offensive 0 remove flag delete link

Comments

@ Michael Wetter, see edit in my answer for the cfg file.

I cannot figure out where I am missing a bracket : ), },...? or \"

Thanks!

samks123's avatar samks123 (2016-04-11 18:26:14 -0500) edit

@samks123: I meant "backslash with quote", not "bracket". I corrected the above answer.

Michael Wetter's avatar Michael Wetter (2016-04-11 18:46:02 -0500) edit

Michael, is there a way to use unix-style path with raw string literals in genopt? While its a bit inconvenient to change a path from windows style to unix, it's not worse than having to manually escape the backslashes, and at least it'll avoid these kind of hard-to-spot common mistakes.

Julien Marrec's avatar Julien Marrec (2016-04-12 07:22:07 -0500) edit

@Julien Marrec, thanks for editing the post and commenting. I am still finding difficulties to spot the backslah with quote that is missing in the cfg. This should be written automatically because it is generated using the ExcalibBEM interface. I am finding this issue with my model only. The example files are working perfectly. I am actually starting to assume that the problem have to do with the python file...

samks123's avatar samks123 (2016-04-12 07:58:11 -0500) edit
add a comment see more comments