Opened 9 years ago
Closed 7 years ago
#3749 closed defect (fixed)
Generated FMUs for C and CPP have different names
Reported by: | Adrian Pop | Owned by: | Adrian Pop |
---|---|---|---|
Priority: | high | Milestone: | 1.13.0 |
Component: | FMI | Version: | v1.9.4-dev-nightly |
Keywords: | Cc: |
Description
It seems that C runtime generates names of the form:Modelica_Blocks_Examples_BooleanNetwork1.fmu
and the CPP runtime: Modelica.Blocks.Examples.BooleanNetwork1.fmu
This is a bit confusing. We should try to be more homogeneous.
Change History (3)
comment:1 by , 9 years ago
Owner: | changed from | to
---|---|
Status: | new → accepted |
comment:2 by , 9 years ago
comment:3 by , 7 years ago
Milestone: | Future → 1.13.0 |
---|---|
Resolution: | → fixed |
Status: | accepted → closed |
This is now being fixed. FMI 2.0 will use dots and accept fileNamePrefix for setting the fmu name (and creating a C identifier for the internal C-function names). The names should be the same for C and C++ now.
Note:
See TracTickets
for help on using tickets.
OMEdit always logs "Generated Modelica.Blocks.Examples.BooleanNetwork1.fmu", for the C runtime as well.
In FMI 1.0 there was the problem that the FMU name is also part of C identifiers. This is why the underscores. FMI 2.0 introduced a
modelName
attribute inmodelDescription.xml
. This makes it possible to use the real model name with dots as FMU name. We exploit this for FMI import -- please don't change the name in the Cpp runtime.I propose to generally use the dot notation from FMI 2.0 onwards and to stay with the underscore notation for FMI 1.0.