Questions tagged [fmi]

FMI stands for Functional Mockup Interface. It is a standard for model exchange and co-simulation.

Functional Mock-up Interface (FMI) is a tool independent standard to support both model exchange and co-simulation of dynamic models using a combination of xml-files and compiled C-code (see overview in PDF or PPT format). The first version, FMI 1.0, was published in 2010. The FMI development was initiated by Daimler AG with the goal to improve the exchange of simulation models between suppliers and OEMs. As of today, development of the standard continues through the participation of 16 companies and research institutes. FMI is supported by over 50 tools and is used by automotive and non-automotive organizations throughout Europe, Asia and North America.

Additional information can be found at the FMI website.

191 questions
1
vote
1 answer

PyFMI FMU-module method get_variable_unit() on constants

PyFMI FMU-module method get_variable_unit() does not work on constants. It seems to me that the PyFMI method for FMU-mouldes get_variable_unit() and _variable_description also handles constants and parameters. I have made a package M that contains…
janpeter
  • 681
  • 8
  • 22
1
vote
2 answers

FMU-module and transfer from OpenModelica to Python with PyFMI

Load OpenModelica FMU-module (with MSL noise-module) in Python environment with PyFMI does not work. I have tried to run exported FMU-modules from OpenModelica in PyFMI-environment. Deterministic models works fine. However, when I include noise…
janpeter
  • 681
  • 8
  • 22
1
vote
0 answers

FMI Implementation in VC2015

I am Implementing a co-simulation in vc2015. When I try to load a dll file generated from fmi1.0 using LoadLibraryA, it succeeded. But when I try to load the dll from fmi2.0, it always failed with the hMod=NULL. Anyone knows how to fix it? #include…
Zhang
  • 11
  • 1
1
vote
1 answer

pyFMI parameter change don't change the simulation output

I'm changing the initial 2 parameter values (over the range of possible values) with pyFMI and simulate the model response I can see that my response is affected only by 1 variable change and not by the other but if I simulate the model only with…
kelamahim
  • 577
  • 1
  • 4
  • 21
1
vote
1 answer

c function is not correctly called in JModelica

I have one Modelica model : model test Real x; Real y (start=10); function try input Real x; output Real y; external "C" testC(x,y) annotation(Include="#include "); end try; function round input Real u; input…
Sen
  • 21
  • 1
1
vote
1 answer

FMU-module method get_variable_unit() and more

Since FMI version 2.0 we have methods: get_variable_unit() and get_variable_display_unit() that brings the information from the Modelica code for the FMU-module. What I can see there is no impact on what you obtain from get_variable_data() from the…
janpeter
  • 681
  • 8
  • 22
1
vote
0 answers

FMPy and Dymola parallelization

I'm generating a Co-Simulation FMU using Dymola. The FMU is consumed by FMPy. There are external thermodynamic calls in the model. When the Dymola flag Advanced.ParallelizeCode is set to false, the FMU can be run using FMPy and Dymola. When the…
Neotake
  • 79
  • 7
1
vote
1 answer

Directional derivatives in JModelica FMUs

How can I enable directional derivatives in JModelica FMUs? I couldn't find any information about that compiler flag. Thanks
Neotake
  • 79
  • 7
1
vote
1 answer

OpenModelica and FMU cross compilation (Linux->Windows)

I would like to compile in Ubuntu a FMU for Windows (32 and 64bits). I read in the OpenModelica User's Guide Release v1.11.0 (https://openmodelica.org/newss/179-february-6-2017-openmodelica-1-11-0-released): "Added OMEdit support for FMU cross…
Neotake
  • 79
  • 7
1
vote
0 answers

FMU execution using GPU

I'm currently doing simulation using FMI. Due to performance issue I'm looking for a solution to execute the FMI on GPU. Does a solution exist in order to directly execute FMI on a GPU (high level) ? Regards
jfa
  • 11
  • 1
1
vote
1 answer

change FMI variable/function during simulation

I have a simple FMU file which contains a sine block that takes u as input and outputs y. In this case, u is set to equal to time. In my C++ code I have loaded the FMI library from FMILibrary and had done all the necessary steps up to a point where…
will i am
  • 33
  • 4
1
vote
2 answers

fmi2: What is the unit of input parameter tolerance in the API "fmi2SetupExperiment"

I am implementing the slave for fmi 2.0. For the API fmi2SetupExperiment(fmi2Component c, fmi2Boolean toleranceDefined, fmi2Real tolerance, fmi2Real startTime, fmi2Boolean stopTimeDefined, fmi2Real stopTime) I understand that the…
1
vote
2 answers

Dymola FMU export/import error

I am using Dymola 2017 (Compiler is Visual Studio 2013/VisualC++ 2013 express Edition (12.0)). I tried to export different MSL examples (e.g. Modelica.Electrical.Analog.Examples.CauerLowPassAnalog) as FMU (co-sim and Model exchange). I imported the…
Matias
  • 581
  • 1
  • 5
  • 16
1
vote
0 answers

forrtl severe(193):Run-time Check Failure. The variable \'TRNSYSFUNCTIONS_mp_GETOUTPUT VALUE$GETOUTPUT VALUE\' is being used without being initiated

I am trying to simulate my FMU created from TRNSYS using pyFMI. When I try to simulate it, it prompts the following message: "forrtl severe(193):Run-time Check Failure. The variable \'TRNSYSFUNCTIONS_mp_GETOUTPUT VALUE$GETOUTPUT VALUE\' is being…
Nauman
  • 11
  • 2
1
vote
1 answer

FMU Compliance Checker: FMICAPI: undefined symbol: va_start (Linux)

In an FMI wrapper, we use a variadic function for logging. When running the FMU compliance checker (2.0.3) for linux64 on an FMU (for Co-Sim) compiled with gcc 4.9.2, the compliance checker throws an error when loading the *.so…
Roi Danton
  • 7,933
  • 6
  • 68
  • 80