-
Notifications
You must be signed in to change notification settings - Fork 59
/
FMI3.xml
77 lines (70 loc) · 3.74 KB
/
FMI3.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
<?xml version="1.0" encoding="UTF-8"?>
<fmiModelDescription
fmiVersion="3.0"
modelName="StateSpace"
description="This model implements a linear time-invariant (LTI) system"
generationTool="Reference FMUs (development build)"
instantiationToken="{D773325B-AB94-4630-BF85-643EB24FCB78}">
<ModelExchange
modelIdentifier="StateSpace"
canGetAndSetFMUState="true"
canSerializeFMUState="true"/>
<CoSimulation
modelIdentifier="StateSpace"
canGetAndSetFMUState="true"
canSerializeFMUState="true"
canHandleVariableCommunicationStepSize="true"
providesIntermediateUpdate="true"
canReturnEarlyAfterIntermediateUpdate="true"
fixedInternalStepSize="1"
hasEventMode="true"/>
<LogCategories>
<Category name="logEvents" description="Log events"/>
<Category name="logStatusError" description="Log error messages"/>
</LogCategories>
<DefaultExperiment startTime="0" stopTime="10"/>
<ModelVariables>
<Float64 name="time" valueReference="0" causality="independent" variability="continuous" description="Simulation time"/>
<UInt64 name="m" valueReference="1" description="Number of inputs" causality="structuralParameter" variability="tunable" start="3" min="0" max="5"/>
<UInt64 name="n" valueReference="2" description="Number of states" causality="structuralParameter" variability="tunable" start="3" min="0" max="5"/>
<UInt64 name="r" valueReference="3" description="Number of outputs" causality="structuralParameter" variability="tunable" start="3" min="0" max="5"/>
<Float64 name="A" valueReference="4" description="Matrix coefficient A" causality="parameter" variability="tunable" start="1 0 0 0 1 0 0 0 1">
<Dimension valueReference="2"/>
<Dimension valueReference="2"/>
</Float64>
<Float64 name="B" valueReference="5" description="Matrix coefficient B" causality="parameter" variability="tunable" start="1 0 0 0 1 0 0 0 1">
<Dimension valueReference="2"/>
<Dimension valueReference="1"/>
</Float64>
<Float64 name="C" valueReference="6" description="Matrix coefficient C" causality="parameter" variability="tunable" start="1 0 0 0 1 0 0 0 1">
<Dimension valueReference="3"/>
<Dimension valueReference="2"/>
</Float64>
<Float64 name="D" valueReference="7" description="Matrix coefficient D" causality="parameter" variability="tunable" start="1 0 0 0 1 0 0 0 1">
<Dimension valueReference="3"/>
<Dimension valueReference="1"/>
</Float64>
<Float64 name="x0" valueReference="8" description="Initial state vector" causality="parameter" variability="tunable" start="0 0 0">
<Dimension valueReference="2"/>
</Float64>
<Float64 name="u" valueReference="9" description="Input vector" causality="input" start="1 2 3">
<Dimension valueReference="1"/>
</Float64>
<Float64 name="y" valueReference="10" description="Output vector" causality="output">
<Dimension valueReference="3"/>
</Float64>
<Float64 name="x" valueReference="11" description="State vector" causality="local">
<Dimension valueReference="2"/>
</Float64>
<Float64 name="der(x)" valueReference="12" description="Derivative of the state vector" causality="local" derivative="11">
<Dimension valueReference="2"/>
</Float64>
</ModelVariables>
<ModelStructure>
<Output valueReference="10"/>
<ContinuousStateDerivative valueReference="12"/>
<InitialUnknown valueReference="10"/>
<InitialUnknown valueReference="11"/>
<InitialUnknown valueReference="12"/>
</ModelStructure>
</fmiModelDescription>