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
0
votes
1 answer

Failed building/installing PyFMI package on 64bit Windows 10

I have successfully built the FMILibrary with MinGW W64. At least no error message was shown. When it comes to installing PyFMI I failed with the gcc compiler as well as with several visual studio compilers. This is the last message in the command…
VerunicaM
  • 11
  • 6
0
votes
1 answer

Co-simulation FMU 'ncp' options

If I set variable 'ncp' value to big number like 400000 for simulation_options and simulate it. I am getting error as shown in the attachment. simulation result with final_time=4.0. If I give ncp=100000 it is working. I need to use 400000 for my…
Abhishek S
  • 75
  • 10
0
votes
1 answer

FMU-Export in Dymola: Is it possible to make a Modelica enumeration type variable "tunable" when exported as FMU / FMI

I have implemented three similar publications in one Modelica model, using an enumeration type variable to select the publication. The goal is to switch between calculation methods (i.e. between publications) by changing the value of the enumeration…
Jay_At_Play
  • 136
  • 10
0
votes
0 answers

FMU Initialization Issue

I exported a FMU 2.0 model in Dymola 2015 recently, and I had some issue with the initialization. Before exporting the model, I checked the validity of the model by connecting the input connectors to some constant values that know the exact output…
Hang Yu
  • 476
  • 2
  • 14
0
votes
0 answers

FMU derivative value reference from Dymola

This question is about how Dymola will assign value reference(VR) to its variables(esp. derivatives). I understand that it is kinda like a secret about how VRs are assigned but any help would be appreciated. For example, I have an exported model…
Hang Yu
  • 476
  • 2
  • 14
0
votes
0 answers

OpenModelica internal error reinit called with wrong args?

I'm writing a program that from an Functional Mock-Up Unit generates a complete Modelica model. It works just fine when I simulate the model in Dymola but in OpenModelica I get this error: internal error reinit called with wrong args I call…
FluxxSimon
  • 27
  • 5
0
votes
1 answer

Initialization of a Dymola FMU in Simulink

I have encountered an issue while trying to simulate a model using an fmu file in Simulink: I am using the Modelon FMI toolbox for a Dymola/Simulink interface to import a Model-Exchange type fmu file (version 1.0) into the Simulink model. I have a…
E Heller
  • 13
  • 1
  • 6
-1
votes
1 answer

FMU machine learning model

I had some success in deploying my machine learning model (already trained) in a simulation environment (OpenModelica, in this context) via an external C-function. However, to standardise the process, I am aiming to use the FMI standard instead of…
philgun
  • 149
  • 8
-1
votes
1 answer

See code of imported FMU/FMI block in Simulink?

I'm trying to debug a FMU file which is a part of a larger simulation, and my problem is that I have no direct access to the code inside. I've tried importing the FMU file to Simulink, but what I get is a blackbox block with I/Os. My goal is to…
-2
votes
0 answers

Pyfmi one step simulation in a for loop?

I'm trying to perform step by step simulation of a fmu in a for loop. The goal is to dynamically change the input of the model coming from python while keeping variables states between loops. For now I am trying to simulate a battery fmu in a for…
Magleno
  • 1
  • 1
-3
votes
3 answers

IntelliSense: a value of type "void *" cannot be assigned to an entity of type "char *"

Getting error as void* cannot be assigned to an entity of type char*. What should be done in order to resolve the error? The problem occurs with xmlpath and dllPath. void fmuLoad() { char* fmuPath; char…
PrajwalBhat
  • 51
  • 2
  • 3
  • 10
1 2 3
12
13