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

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

asked 2016-04-10 19:17:33 -0600

samks123 gravatar image

updated 2016-04-12 07:17:59 -0600

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;
}
edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by samks123
close date 2016-04-20 17:27:12.555531

1 Answer

Sort by ยป oldest newest most voted
2

answered 2016-04-11 17:11:47 -0600

updated 2016-04-11 18:44:49 -0600

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.

edit flag offensive delete link more

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 gravatar image samks123  ( 2016-04-11 18:26:14 -0600 )edit

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

Michael Wetter gravatar image Michael Wetter  ( 2016-04-11 18:46:02 -0600 )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 gravatar image Julien Marrec  ( 2016-04-12 07:22:07 -0600 )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 gravatar image samks123  ( 2016-04-12 07:58:11 -0600 )edit

 

Question Tools

1 follower

Stats

Asked: 2016-04-10 19:17:33 -0600

Seen: 266 times

Last updated: Apr 12 '16