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

Creating (Compiling) Functional Mockup Units for co-simulation

asked 2016-01-29 09:10:07 -0500

updated 2016-04-03 14:31:32 -0500

Hi everyone,

I am working on a project that requires pretty complex co-simulation between energy and lighting software. I developed some tools for that in the past, but I would like to get the new technologies now.

I have been reading about Modelica and particularly FMUs. I think they are very cool and have a lot of potential, but I have not been able to find out how to compile one of those. Are any of you guys aware of tutorials or guides for this?

I would start by using them within EnergyPlus and/or OpenModelica

Thanks very much!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-01-29 13:14:27 -0500

How to export a model as an FMU is tool specific.

For example, see

edit flag offensive delete link more


Thanks very much, Michael. But what I want to do is to create an FMU from a Radiance Model ... That is, calculating the daylighting and artificial lighting levels from Solar Position, Solar Radiation and Luminaire Power.

I believe I can create a script that (1) writes a C program, (3) compiles it to create an executable that (4) would work as a block (i.e. call it with the parameters and returns illuminance levels in a scene). However, I do not know how to pack that into a FMU... is it VERY HARD? is it Possible?

gmolina gravatar image gmolina  ( 2016-01-29 14:04:55 -0500 )edit

I suggest reading the FMI specification to understand the details about FMI/FMU: If you want to write your own FMU, I suggest looking at the FMUSDK webpage: They provide some resources on how to create FMUs

Thierry Nouidui gravatar image Thierry Nouidui  ( 2016-01-29 15:51:45 -0500 )edit

Thanks, guys! I guess this is all the information available, and seem to be enough for me. Will inform if any of this works.


gmolina gravatar image gmolina  ( 2016-02-02 11:19:56 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer


Question Tools



Asked: 2016-01-29 09:10:07 -0500

Seen: 1,191 times

Last updated: Jan 29 '16