Opened 6 years ago
Closed 6 years ago
#5362 closed defect (fixed)
modelDescription doesn't include <SourceFile>
Reported by: | Owned by: | Martin Sjölund | |
---|---|---|---|
Priority: | high | Milestone: | Future |
Component: | FMI | Version: | v1.13.0 |
Keywords: | modelDescription | Cc: |
Description
Hallo,
according to FMI documentation page 66
sources // Optional directory containing all C sources // all needed C sources and C header files to compile and link the FMU // with exception of: fmi2TypesPlatform.h , fmi2FunctionTypes.h and fmi2Functions.h // The files to be compiled (but not the files included from these files) // have to be reported in the xml-file under the structure // <ModelExchange><SourceFiles> … and <CoSimulation><SourceFiles>
but it is not provided in the modelDescription insde the FMU exported from OMEdit v1.13.2. And the end tag </CoSimulation>
is also missing
<?xml version="1.0" encoding="UTF-8"?> -<fmiModelDescription numberOfEventIndicators="0" variableNamingConvention="structured" generationDateAndTime="2019-02-26T07:43:04Z" generationTool="OpenModelica Compiler v1.13.2 (64-bit)" description="" guid="{e8eb85b7-5291-4892-9cde-7168d3112151}" modelName="Beispiel" fmiVersion="2.0"> <ModelExchange modelIdentifier="Beispiel"> </ModelExchange> <CoSimulation modelIdentifier="Beispiel" canSerializeFMUstate="false" canGetAndSetFMUstate="false" canNotUseMemoryManagementFunctions="false" canBeInstantiatedOnlyOncePerProcess="false" canRunAsynchronuously="false" maxOutputDerivativeOrder="0" canInterpolateInputs="false" canHandleVariableCommunicationStepSize="true" needsExecutionTool="false"/> -<LogCategories> <Category name="logEvents"/> <Category name="logSingularLinearSystems"/> <Category name="logNonlinearSystems"/> <Category name="logDynamicStateSelection"/> <Category name="logStatusWarning"/> <Category name="logStatusDiscard"/> <Category name="logStatusError"/> <Category name="logStatusFatal"/> <Category name="logStatusPending"/> <Category name="logAll"/> <Category name="logFmi2Call"/> </LogCategories> <DefaultExperiment tolerance="1e-006" stopTime="1.0" startTime="0.0"/> -<ModelVariables> <!-- Index of variable = "1" --> -<ScalarVariable name="u" causality="input" variability="continuous" valueReference="0"> <Real start="0.0"/> </ScalarVariable> <!-- Index of variable = "2" --> -<ScalarVariable name="y" causality="output" variability="continuous" valueReference="1" initial="calculated"> <Real/> </ScalarVariable> <!-- Index of variable = "3" --> -<ScalarVariable name="k" causality="parameter" variability="fixed" valueReference="2" initial="exact"> <Real start="3.0"/> </ScalarVariable> </ModelVariables> -<ModelStructure> -<Outputs> <Unknown dependenciesKind="dependent" dependencies="1" index="2"/> </Outputs> </ModelStructure> </fmiModelDescription>
Change History (7)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
Summary: | modelDescription doesn't include <SourceFile> tag nor </CoSimulation> → modelDescription doesn't include <SourceFile> |
---|
comment:3 by , 6 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:5 by , 6 years ago
It will arrive soon enough:
https://github.com/OpenModelica/OMCompiler/pull/2989
It's quite a lot of work to add this as we used makefiles for all this stuff.
comment:7 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Well, i guess the
<CoSimulation />
is just another way to write an empty Tag and a little bit confuse why ME used</ModelExchange>
. My bad, sorry.