EnergyPlus FMU import in DYMOLA not working

377 views
Skip to first unread message

jeremy...@gmail.com

unread,
Feb 19, 2016, 5:24:30 AM2/19/16
to energyplus-fmu
Dear all,

I’m trying to import an EnergyPlusFMU inside Dymola but I have several problems.

My softwares versions:
  • DYMOLA: 2016FD01
  • EnergyPlus: V8-4-0

What I have done:
  1. Check my energyplus file without any FMU interface. Simulation running well.
  2. Add a minimal interface using one output and one input:
    • Export:From:Variable = Room temperature
    • Export:To:Schedule   = Fraction between 0 and 1 to control the power level of an `OtherEquipment`
  3. Export FMU as 64 and 32bits on a Windows 64bits.

Issues:
DYMOLA does not want to import my model and says: "Warning: Co-Simulation not supported according to <FMU path>/modelDescription.xml using Model Exchange instead"
However I can import it if I change `CoSimulation_Tool` to `CoSimulation_StandAlone` in the `modelDescription.xml`.
But after this change I cannot run a simulation (get stuck to initialization) with:
  • Warning = "The following variables are iteration variables of the initialization problem: schedule_32_64_standalone_fmu.fmi_StepOK but they are not given any explicit start values. Zero will be used"
  • Error      = "Process Simulating: Initialization stopped without any error indication."


FMU setup in DYMOLA:


Simulation step inside the idf (10 steps per hour) is the same as in Dymola (I also uncheck `Store variables at events`).


Thanks for your help,
FMUtest.err
FMUtest.idf
Schedule_32_64.fmu
Auto Generated Inline Image 1

Thierry Nouidui

unread,
Feb 22, 2016, 12:39:40 PM2/22/16
to jeremy...@gmail.com, energyplus-fmu
You shouldn't have to edit the model description file as the FMU should be CoSimulation_Tool.
Did you try to import that FMU using Dymola 2016? Things might have changed between 2016 and 2016FD01.
Thanks!

Thierry

--
You received this message because you are subscribed to the Google Groups "energyplus-fmu" group.
To unsubscribe from this group and stop receiving emails from it, send an email to energyplus-fm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
--------------------------------------
Thierry Stephane Nouidui, PhD

Simulation Research Group
Lawrence Berkeley National Laboratory
1 Cyclotron Road, MS 90R3147
Berkeley, CA 94720
(510) 495-2337 voice
email: TSNo...@lbl.gov
http://simulationresearch.lbl.gov
----------------------------------------

jeremy...@gmail.com

unread,
Mar 1, 2016, 6:19:06 AM3/1/16
to energyplus-fmu, jeremy...@gmail.com
I try on DYMOLA2016. The model is still imported as model exchange.
 
In which version (EnergyPlusToFMU and Dymola) are you sure that Dymola can import the FMU as Co-Simulation ?

Thierry Nouidui

unread,
Mar 1, 2016, 1:04:19 PM3/1/16
to energyp...@googlegroups.com
Attached is an FMU which could be imported successfully in Dymola 2016 (Windows 64 bit). When I try to import the same FMU in Dymola 2016 FD01 then I get the error message you had. I think there is an issue with Dymola 2016FD01 which is causing the tool to no longer support the Tool Coupling API. We should report the issue to them. Changing the model description file of the FMU will not help as this is not supposed to be done.

Thanks!

Thierry
test300.fmu

jeremy...@gmail.com

unread,
Mar 2, 2016, 11:36:34 AM3/2/16
to energyplus-fmu
I already wrote to Digital Product Simulation and they opened a ticket with the R&D.

I tried with your FMU on Dymola 2016 and I have the same problem --> The model is loaded as Model Exchange not Co-Simulation.


Is it the normal behavior or I miss something ?

Thanks,

Auto Generated Inline Image 1

Thierry Nouidui

unread,
Mar 2, 2016, 12:46:19 PM3/2/16
to energyp...@googlegroups.com
Are you on Windows or Linux?
Here is the version of Dymola 2016 I have: Dymola 2016 (64-bit), 2015-04-15.
I can import the FMU in that version without any issues.
BTW: Did you change in the FMI tab of Dymola the settings so that Dymola is aware of importing an FMI 1.0 for co-simulation? 
Thanks!

Thierry

jeremy...@gmail.com

unread,
Mar 2, 2016, 1:08:14 PM3/2/16
to energyplus-fmu
I am on Windows and I have the same Dymola version.

I checked the FMI tab and now it is working, my bad... (Dymola 2016 FD01 asked me about the FMU specifications at import time, but not this version)

I also tried with my own model and it is working for both. Now I can run the simulation but it stops at first time step with a DoStep error.

Integration started at T = 0 using integration method DASSL

(DAE multi-step solver (dassl/dasslrt of Petzold modified by Dynasim))

The following error was detected at time: 360

DoStep failed

The stack of functions is:

_fmu_export_schedule_fmu.fmi_Functions.fmiDoStep

_fmu_export_schedule_fmu.fmi_Functions.fmiDoStep(

_fmu_export_schedule_fmu1.fmi,

time+(stepSizeIndex-2)*_fmu_export_schedule_fmu1.fmi_CommunicationStepSize,

_fmu_export_schedule_fmu1.fmi_CommunicationStepSize)

Integration terminated before reaching "StopTime" at T = 360


I will investigate this error and open another ticket if I can figuring out the origin.


Thanks for all,

Qinpeng Wang

unread,
Apr 6, 2016, 3:21:56 PM4/6/16
to energyplus-fmu
What is the difference between a Model Exchange version and a Co-Simulation version of an FMU import?

Thanks

Qinpeng Wang

unread,
Apr 6, 2016, 5:33:47 PM4/6/16
to energyplus-fmu
Per this thread, it seems the Dymola 2016 FD01 does not work well with the EPlus FMU? Are there any work around available? Also I cannot seem to be able to find downloads for previous versions of Dymola such as 2016?

Qinpeng

Pascal Yamb

unread,
Jun 2, 2024, 4:40:48 PM6/2/24
to energyplus-fmu

Buy your psychedelic products fast and safe delivery 


https://t.me/healingmeds

https://t.me/healingmeds

https://t.me/healingmeds


> ✔US-US Delivery 

> ✔Fast Shipping 

> ✔Secure Payment Options 

> ✔100% Satisfaction Guaranteed 

> ✔3 Days Refund Policy 

> ✔100% Money-Back if any issue with the product 

> ✔Shipping Service: Express/Standard/Economy 

> ✔Estimated Delivery Time: Express & 3-5  Days 

> ✔Discounts: Get up to 20% off 


https://t.me/healingmeds

https://t.me/healingmeds

https://t.me/healingmeds

Reply all
Reply to author
Forward
0 new messages