Closed Hemil911 closed 2 years ago
Which master algorithm are you using to drive the FMU?
If you are using PyFMI, you may have to call the setup_experiment()
prior to calling the initialize()
function
model.setup_experiment(stop_time=timestop)
This shouldn't be required (as discussed here https://unmethours.com/question/56691/do-step-error-when-using-pyfmi/) but depending on the PyFMI version you have, you may need to add it.
BTW: The numsteps
you have in your code seems a bit strange especially if you using it to parametrize opts[ncp]
. This number should in my opinion be
(final_time-start_time)/(timestep_in_idf
*60)`
Hello Guys,
I have Created EnergyPlus .idf file using Energyplus software and generated .fmu file using energyPlusToFmu. Now I want to use this fmu in python environment. But while running this code I am getting error like this: FMIL: module = Model, log level = 2: [error][FMU status:Error] fmi2EnterInitializationMode: The delta between the FMU stop time 1.000000 and the FMU start time 0.000000 must be a multiple of 86400. This is required by EnergyPlus. The current delta is 1.000000. Instantiation of Model failed.
Help me for the same. Thank You.
Hemil Shah