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

jdominguez94's profile - activity

2025-07-07 10:25:29 -0500 received badge  Popular Question (source)
2022-09-20 01:35:38 -0500 received badge  Self-Learner (source)
2021-07-12 13:29:08 -0500 edited question Two FMUs using PYFMI and the DoStep method

Two FMUs using PYFMI and the DoStep method Hello guys, I am trying to perform co-simulation using two FMUs from Energyp

2021-07-12 13:19:54 -0500 asked a question Two FMUs using PYFMI and the DoStep method

Two FMUs using PYFMI and the DoStep method Hello guys, I am trying to perform co-simulation using two FMUs from Energyp

2021-07-12 12:59:15 -0500 commented answer Do Step error when using PYFMI

Thank you very much for your rapid responses! I checked the version and is the 2.8.10, seems to be the latest one. Event

2021-07-09 16:05:32 -0500 marked best answer Do Step error when using PYFMI

Hello guys,

I am trying to perform a simple Do_Step simulation using an .IDF included in the pack of the EnergyPlusToFMU framework.

However, when I try to carry out the simulation step by step, this error appears

FMIL: module = Model, log level = 2: [error][FMU status:Error] fmi2DoStep: An error occured in a previous call. First communication time: 0.000000 !=tStart: 1.000000.

FMIL: module = Model, log level = 2: [error][FMU status:Error] fmi2DoStep: An error occured in a previous call. First communication time: 900.000000 !=tStart: 1.000000.

FMIL: module = Model, log level = 2: [error][FMU status:Error] fmi2DoStep: An error occured in a previous call. First communication time: 1800.000000 !=tStart: 1.000000.

FMIL: module = Model, log level = 2: [error][FMU status:Error] fmi2DoStep: An error occured in a previous call. First communication time: 2700.000000 !=tStart: 1.000000.

This is the code I am using. I do not know what else I can do since the model was initialized

from pyfmi.fmi import FMUModelCS2
ErrorDict=['FMI_OK', 'FMI_WARNING', 'FMI_DISCARD', 'FMI_ERROR','FMI_FATAL','FMI_PENDING']

house = FMUModelCS2("/workspaces/Eplus93/source/house/example.fmu")
starttime=0
finaltime=86400
house.initialize(starttime, finaltime,True)

stepsize=900 # Each 15 minutes
opts = house.simulate_options()
idf_steps_per_hour = 4
ncp = (finaltime-starttime)/(3600./idf_steps_per_hour)
opts['ncp'] = ncp
t_step=starttime
var=[]

while t_step < 1*3600:
    status = house.do_step(current_t=t_step, step_size=stepsize, new_step=True)
    status=ErrorDict[status]
    var.append(['Status flag'+':'+str(status),t_step,np.float(house.get('TRooMea'))])
    t_step +=stepsize

According to Dr. Wetter in link text it seems that EnergyPlus' ExternalInterface object imposes a one-time step delay. Nevertheless, I do not have a clue about how to make the code get this.

The FMU used is here: link text

Thank you very much!

2021-07-09 16:05:20 -0500 edited answer Do Step error when using PYFMI

The problem was solved :D !!! The problem was related to the fact that prior initializing the model, the experiment must

2021-07-09 14:18:24 -0500 commented answer Do Step error when using PYFMI

I generate the IDF by using OpenStudio, and the E+2FMU version I am using to build the FMU is the 3.1.0

2021-07-09 14:16:09 -0500 commented answer Do Step error when using PYFMI

I generate the IDF by using OpenStudio, and the E+2FMU version I am using to build the FMU is the 2.1.0

2021-07-09 13:08:58 -0500 commented answer Do Step error when using PYFMI

Thank you for your rapid response! As suggested by you, I did the changes but the problem still remains

2021-07-09 07:49:57 -0500 edited question Do Step error when using PYFMI

Do Step error when using PYFMI Hello guys, I am trying to perform a simple Do_Step simulation using an .IDF included in

2021-07-09 07:49:18 -0500 received badge  Editor (source)
2021-07-09 07:49:18 -0500 edited question Do Step error when using PYFMI

Do Step error when using PYFMI Hello guys, I am trying to perform a simple Do_Step simulation using an .IDF included in

2021-07-09 07:48:29 -0500 received badge  Rapid Responder (source)
2021-07-09 07:48:29 -0500 answered a question Do Step error when using PYFMI

I used the same code with an OpenModelica generated FMU, and there is no problem over there. So, it seems to be a tricky

2021-07-09 07:47:06 -0500 asked a question Do Step error when using PYFMI

Do Step error when using PYFMI Hello guys, I am trying to perform a simple Do_Step simulation using an .IDF included in

2021-06-23 08:09:10 -0500 commented answer Whole building electric consumption from FMU

Hi Giorgio, could you please tell me how did you figure it out? I mean, how exactly did you add the Output:Variable rega

2021-06-17 13:10:04 -0500 received badge  Self-Learner (source)
2021-06-16 11:42:07 -0500 received badge  Teacher (source)
2021-06-16 09:58:28 -0500 marked best answer EnergyPlus FMU SQlite Error

Hi guys,

I am facing this problem (the outcome of the .err file)

Program Version,EnergyPlus, Version 9.3.0-baff08990c, YMD=2021.06.16 13:34,

* Fatal * The SQLite database failed to open.

...Summary of Errors that led to program termination:

..... Reference severe error count=0

..... Last severe error=

*** Warning: Node connection errors not checked - most system input has not been read (see previous warning).

*** Fatal error -- final processing. Program exited before simulations began. See previous error messages.

*** EnergyPlus Warmup Error Summary. During Warmup: 0 Warning; 0 Severe Errors.

*** EnergyPlus Sizing Error Summary. During Sizing: 0 Warning; 0 Severe Errors.

*** EnergyPlus Terminated--Fatal Error Detected. 0 Warning; 0 Severe Errors; Elapsed Time=00hr 00min 0.30sec

The code works with the .idf example files in EnergyPlustoFMU. However, when I use an .IDF generated by my self, It does not work and this error arise. The FMU is correctly initialized, but can not simulate

lab = load_fmu("312v3.fmu",log_level=4)

days=2

final_time = days2460*60

start_time = 0.

idfstep=6

lab.initialize(start_time, final_time, True)

lab.set('Q',1000)

opts=lab.simulate_options()

ncp=int(final_time/(3600./idfstep))

opts["ncp"] = ncp

res=lab.simulate(start_time=start_time,final_time=final_time, options=opts)

The FMU have one input (Q) and one output (TRooMea). Does anyone know how to solve this issue?

2021-06-16 09:58:28 -0500 received badge  Scholar (source)
2021-06-16 09:40:06 -0500 received badge  Rapid Responder (source)
2021-06-16 09:40:06 -0500 answered a question EnergyPlus FMU SQlite Error

The problem was that the IDF file was generated using OpenStudio, and therefore, it uses SQLite to report output variabl

2021-06-16 09:25:31 -0500 commented question EnergyPlus FMU SQlite Error

The FMU file I am using is: link text

2021-06-16 09:24:52 -0500 commented question EnergyPlus FMU SQlite Error

The FMU file is allocated in: link text

2021-06-16 09:19:50 -0500 commented question EnergyPlus FMU SQlite Error

Thank you for your rapid response Dr. Thierry. I checked running the IDF without the External interface objects and ever

2021-06-16 09:18:14 -0500 commented question EnergyPlus FMU SQlite Error

Thank you for your rapid response Dr. Thierry. I checked running the IDF without the External interface objects and ever

2021-06-16 09:08:14 -0500 commented question EnergyPlus FMU SQlite Error

Thank you for your rapid response Dr. Thierry. I checked running the IDF without the External interface objects and ever

2021-06-16 08:42:30 -0500 asked a question EnergyPlus FMU SQlite Error

EnergyPlus FMU SQlite Error Hi guys, I am facing this problem (the outcome of the .err file) Program Version,EnergyPlu

2021-06-16 08:42:26 -0500 asked a question EnergyPlus FMU SQlite Error

EnergyPlus FMU SQlite Error Hi guys, I am facing this problem (the outcome of the .err file) Program Version,EnergyPlu

2021-06-09 11:21:14 -0500 received badge  Student (source)
2021-06-09 11:19:36 -0500 asked a question Energyplus FMU issues

Energyplus FMU issues Hi everyone, I am trying to run a FMU from E+. I got this problem in the log file and I do not