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.

  1. <exp:Builtin Function is not yet implemented>
  1. #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)

RoomCO2.mo (1.6 KB ) - added by anonymous 10 years ago.

Download all attachments as: .zip

Change History (13)

comment:1 by Martin Sjölund, 10 years ago

Which API function is this? There are many XML outputs from omc.

comment:2 by carp, 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 anonymous, 10 years ago

Attachment: RoomCO2.mo added

comment:3 by anonymous, 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 carp, 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 Martin Sjölund, 10 years ago

Milestone: 1.9.11.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 Martin Sjölund, 10 years ago

Milestone: 1.9.21.9.3

Milestone changed to 1.9.3 since 1.9.2 was released.

comment:7 by Martin Sjölund, 9 years ago

Milestone: 1.9.31.9.4

Moved to new milestone 1.9.4

comment:8 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.5

Milestone pushed to 1.9.5

comment:9 by Martin Sjölund, 9 years ago

Milestone: 1.9.51.10.0

Milestone renamed

comment:10 by Martin Sjölund, 8 years ago

Milestone: 1.10.01.11.0

Ticket retargeted after milestone closed

comment:11 by Martin Sjölund, 8 years ago

Milestone: 1.11.01.12.0

Milestone moved to 1.12.0 due to 1.11.0 already being released.

comment:12 by Francesco Casella, 7 years ago

Milestone: 1.12.0Future

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.

Note: See TracTickets for help on using tickets.