Closed iscopa closed 2 years ago
Can you share a model to reproduce the issue?
Thank you. Attached you can find a part of the model. When I try to export the FMU with the FMIKit 3.0 I get the errors C2065, C2223 and C2198
I can export the model successfully with
get_param(gcs, 'CodeInterfacePackaging', 'Nonreusable function')
perfect! The complete model can be now exported.
The problem related to the FMU import persists, as I still get:
Column 28, line 152: cvc-datatype-valid.1.2.1: 'rtInf' is not a valid value for 'double'.
Attached is the "modeldescription.xml" of the FMU. In order to import the FMU, I currently replace the 'rtInf' with a double value.
Can you share the model that you have used to generated the above XML?
unfortunately I cannot share the complete model. However, I have found the place where the inf is declared:
There, the error can be avoided replacing inf with a number.
I cannot reproduce the problem. For an upper limit inf
I get the following XML:
<ScalarVariable name="Parameters.Saturation_UpperSat" valueReference="1" causality="parameter" variability="tunable">
<Real start="INF"/>
</ScalarVariable>
Hello,
I am trying to export a source-code FMU where support for "non-finite numbers" is required:
Plaform: Windows10 Simulink r2021b Update 4 CMake version 3.24 CMake generator: Visual Studio 16 2019
FMIKit 3.0-alfa-2: export OK, import not possible, error reported by Matlab:
Column 28, line 152: cvc-datatype-valid.1.2.1: 'rtInf' is not a valid value for 'double'.
The FMU checker, it provides this error:
FMIKit 3.0-alfa-4: export OK, import not possible, same error. FMIKit 3.0-alfa-5: export OK, import not possible, same error. FMIKit 3.0: export error:
Could you please help on this?
Thank you and regards