-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathFMI2.xml
109 lines (101 loc) · 4.45 KB
/
FMI2.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?xml version="1.0" encoding="UTF-8"?>
<fmiModelDescription
fmiVersion="2.0"
modelName="Feedthrough"
description="A model to test different variable types, causalities, and variabilities"
generationTool="Reference FMUs (development build)"
guid="{37B954F1-CC86-4D8F-B97F-C7C36F6670D2}"
numberOfEventIndicators="0">
<ModelExchange
modelIdentifier="Feedthrough"
canNotUseMemoryManagementFunctions="true"
canGetAndSetFMUstate="true"
canSerializeFMUstate="true">
<SourceFiles>
<File name="all.c"/>
</SourceFiles>
</ModelExchange>
<CoSimulation
modelIdentifier="Feedthrough"
canHandleVariableCommunicationStepSize="true"
canNotUseMemoryManagementFunctions="true"
canGetAndSetFMUstate="true"
canSerializeFMUstate="true">
<SourceFiles>
<File name="all.c"/>
</SourceFiles>
</CoSimulation>
<TypeDefinitions>
<SimpleType name="Option">
<Enumeration>
<Item name="Option 1" value="1" description="First option"/>
<Item name="Option 2" value="2" description="Second option"/>
</Enumeration>
</SimpleType>
</TypeDefinitions>
<LogCategories>
<Category name="logEvents" description="Log events"/>
<Category name="logStatusError" description="Log error messages"/>
</LogCategories>
<DefaultExperiment stopTime="2"/>
<ModelVariables>
<ScalarVariable name="time" valueReference="0" causality="independent" variability="continuous">
<Real/>
</ScalarVariable>
<ScalarVariable name="Float64_fixed_parameter" valueReference="5" causality="parameter" variability="fixed">
<Real start="0"/>
</ScalarVariable>
<ScalarVariable name="Float64_tunable_parameter" valueReference="6" causality="parameter" variability="tunable">
<Real start="0"/>
</ScalarVariable>
<ScalarVariable name="Float64_continuous_input" valueReference="7" causality="input">
<Real start="0"/>
</ScalarVariable>
<ScalarVariable name="Float64_continuous_output" valueReference="8" causality="output" initial="calculated">
<Real/>
</ScalarVariable>
<ScalarVariable name="Float64_discrete_input" valueReference="9" causality="input" variability="discrete">
<Real start="0"/>
</ScalarVariable>
<ScalarVariable name="Float64_discrete_output" valueReference="10" causality="output" variability="discrete" initial="calculated">
<Real/>
</ScalarVariable>
<ScalarVariable name="Int32_input" valueReference="19" causality="input" variability="discrete">
<Integer start="0"/>
</ScalarVariable>
<ScalarVariable name="Int32_output" valueReference="20" causality="output" variability="discrete" initial="calculated">
<Integer/>
</ScalarVariable>
<ScalarVariable name="Boolean_input" valueReference="27" causality="input" variability="discrete">
<Boolean start="false"/>
</ScalarVariable>
<ScalarVariable name="Boolean_output" valueReference="28" causality="output" variability="discrete" initial="calculated">
<Boolean/>
</ScalarVariable>
<ScalarVariable name="String_parameter" valueReference="29" causality="parameter" variability="fixed">
<String start="Set me!"/>
</ScalarVariable>
<ScalarVariable name="Enumeration_input" valueReference="32" causality="input" variability="discrete">
<Enumeration declaredType="Option" start="1"/>
</ScalarVariable>
<ScalarVariable name="Enumeration_output" valueReference="33" causality="output" variability="discrete" initial="calculated">
<Enumeration declaredType="Option"/>
</ScalarVariable>
</ModelVariables>
<ModelStructure>
<Outputs>
<Unknown index="5" dependencies="2 3 4" dependenciesKind="constant constant constant"/>
<Unknown index="7" dependencies="6" dependenciesKind="constant"/>
<Unknown index="9" dependencies="8" dependenciesKind="constant"/>
<Unknown index="11" dependencies="10 12" dependenciesKind="constant constant"/>
<Unknown index="14" dependencies="13" dependenciesKind="constant"/>
</Outputs>
<InitialUnknowns>
<Unknown index="5" dependencies="2 3 4" dependenciesKind="constant constant constant"/>
<Unknown index="7" dependencies="6" dependenciesKind="constant"/>
<Unknown index="9" dependencies="8" dependenciesKind="constant"/>
<Unknown index="11" dependencies="10 12" dependenciesKind="constant constant"/>
<Unknown index="14" dependencies="13" dependenciesKind="constant"/>
</InitialUnknowns>
</ModelStructure>
</fmiModelDescription>