Hello,
I am trying to run a dummy test to call EnergyPlus in Python as a FMU. The IDF file is a very slightly modified version of the EP example file "1ZoneUncontrolled". I added an ExternalInterface and a FMUExport:From:Variable to get the "Zone Mean Air Temperature" in ZONE ONE as an output of the FMU. I exported the IDF file as a FMU using the LBL tool. And I try to run it from Python using pyfmi.
Both
model = load_fmu(fmu_path)
start_time = 60.0*60*24*1
final_time = 60.0*60*24*2
idf_steps_per_hour=4
ncp = (final_time-start_time)/(3600./idf_steps_per_hour)
opts = model.simulate_options()
opts['ncp'] = ncp
res = model.simulate(
start_time=start_time,
final_time=final_time,
options=opts)
and
model = load_fmu(fmu_path)
start_time = 60.0*60*24*1
final_time = 60.0*60*24*2
model.initialize(start_time, final_time)
just run forever. What am I doing wrong ? The log file displays
FMIL: module = b'FMI1XML', log level = 2: b'Detected on line:29 of modelDescription.xml'
FMIL: module = b'FMI1XML', log level = 2: b'Found capability flag canSignalEvents which have been deprecated as it fills no function'
Also, when I simulate the IDF file from EP launch, I get the severe error ExternalInterface: Did not find file "socket.cfg"
Thank you for your help !