Opened 10 years ago
Last modified 7 years ago
#2717 new defect
Exporting a model as XML code file not completed
Reported by: | carp | Owned by: | Lennart Ochel |
---|---|---|---|
Priority: | high | Milestone: | Future |
Component: | Code Generation | Version: | |
Keywords: | XML | Cc: |
Description
It is not clear when XML code files are generated.
When exporting model of Modelica.Fluid.Examples.TraceSubstances.RommCO2 as XML,the following lines are numerously generated in the XML code file.
- <exp:Builtin Function is not yet implemented>
- #error "[CodegenXML.tpl:2147:14-2147:14] Unknown expression: Modelica.Media.IdealGases.Common.DataRecord(#SHARED_LITERAL_35(String)#, 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, #SHARED_LITERAL_37(Real[7])#, #SHARED_LITERAL_38(Real[2])#, #SHARED_LITERAL_39(Real[7])#, #SHARED_LITERAL_40(Real[2])#, 461.5233290850878)"
It is not cmopleted to export model as XML.
Attachments (1)
Change History (13)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
This output of XML code is created with OMEdit which has a function of Exporting XML.
I am afraid I do not know well which API function is used.
How to;
OMEdit Open -> XML Menu bar -> Export XML -> Modelica.Fluid.Examples.TraceSubstances.RoomCO2.xml
by , 10 years ago
Attachment: | RoomCO2.mo added |
---|
comment:3 by , 10 years ago
I found same problem by using this command.
omc.exe +locale=C +s +simCodeTarget=XML RoomCO2.mo Modelica ModelicaServices
comment:4 by , 10 years ago
May CodegenXML.mo not support Math function of Log, tanh and cosh and so on.?
And CodegenXML.mo may not support array of Media's datarecords and Medium's nonlinear data, for instance,
Modelica.Fluid.Pipes.StaticPipe.Medium.T_phX.Internal.f_nonlinear_Data(
"H2O
", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, ・・・},・・・}
comment:5 by , 10 years ago
Milestone: | 1.9.1 → 1.9.2 |
---|
This ticket was not closed for 1.9.1, which has now been released. It was batch modified for milestone 1.9.2 (but maybe an empty milestone was more appropriate; feel free to change it).
comment:6 by , 10 years ago
Milestone: | 1.9.2 → 1.9.3 |
---|
Milestone changed to 1.9.3 since 1.9.2 was released.
comment:11 by , 8 years ago
Milestone: | 1.11.0 → 1.12.0 |
---|
Milestone moved to 1.12.0 due to 1.11.0 already being released.
comment:12 by , 7 years ago
Milestone: | 1.12.0 → Future |
---|
The milestone of this ticket has been reassigned to "Future".
If you think the issue is still valid and relevant for you, please select milestone 1.13.0 for back-end, code generation and run-time issues, or 2.0.0 for front-end issues.
If you are aware that the problem is no longer present, please select the milestone corresponding to the version of OMC you used to check that, and set the status to "worksforme".
In both cases, a short informative comment would be welcome.
Which API function is this? There are many XML outputs from omc.