fmu-manipulation-toolbox 1.8.4.2rc1__py3-none-any.whl → 1.9rc0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. fmu_manipulation_toolbox/__version__.py +1 -1
  2. fmu_manipulation_toolbox/assembly.py +14 -7
  3. fmu_manipulation_toolbox/checker.py +5 -3
  4. fmu_manipulation_toolbox/{fmu_container.py → container.py} +71 -63
  5. fmu_manipulation_toolbox/gui.py +1 -1
  6. fmu_manipulation_toolbox/{fmu_operations.py → operations.py} +35 -19
  7. fmu_manipulation_toolbox/resources/fmi-3.0/fmi3Annotation.xsd +51 -0
  8. fmu_manipulation_toolbox/resources/fmi-3.0/fmi3AttributeGroups.xsd +119 -0
  9. fmu_manipulation_toolbox/resources/fmi-3.0/fmi3BuildDescription.xsd +117 -0
  10. fmu_manipulation_toolbox/resources/fmi-3.0/fmi3InterfaceType.xsd +80 -0
  11. fmu_manipulation_toolbox/resources/fmi-3.0/fmi3LayeredStandardManifest.xsd +93 -0
  12. fmu_manipulation_toolbox/resources/fmi-3.0/fmi3ModelDescription.xsd +131 -0
  13. fmu_manipulation_toolbox/resources/fmi-3.0/fmi3Terminal.xsd +87 -0
  14. fmu_manipulation_toolbox/resources/fmi-3.0/fmi3TerminalsAndIcons.xsd +84 -0
  15. fmu_manipulation_toolbox/resources/fmi-3.0/fmi3Type.xsd +207 -0
  16. fmu_manipulation_toolbox/resources/fmi-3.0/fmi3Unit.xsd +69 -0
  17. fmu_manipulation_toolbox/resources/fmi-3.0/fmi3Variable.xsd +413 -0
  18. fmu_manipulation_toolbox/resources/fmi-3.0/fmi3VariableDependency.xsd +64 -0
  19. fmu_manipulation_toolbox/resources/linux64/container.so +0 -0
  20. fmu_manipulation_toolbox/resources/win32/client_sm.dll +0 -0
  21. fmu_manipulation_toolbox/resources/win32/server_sm.exe +0 -0
  22. fmu_manipulation_toolbox/resources/win64/client_sm.dll +0 -0
  23. fmu_manipulation_toolbox/resources/win64/container.dll +0 -0
  24. fmu_manipulation_toolbox/resources/win64/server_sm.exe +0 -0
  25. fmu_manipulation_toolbox/split.py +314 -0
  26. {fmu_manipulation_toolbox-1.8.4.2rc1.dist-info → fmu_manipulation_toolbox-1.9rc0.dist-info}/METADATA +1 -1
  27. {fmu_manipulation_toolbox-1.8.4.2rc1.dist-info → fmu_manipulation_toolbox-1.9rc0.dist-info}/RECORD +31 -19
  28. fmu_manipulation_toolbox-1.9rc0.dist-info/entry_points.txt +7 -0
  29. fmu_manipulation_toolbox/cli.py +0 -235
  30. fmu_manipulation_toolbox-1.8.4.2rc1.dist-info/entry_points.txt +0 -3
  31. {fmu_manipulation_toolbox-1.8.4.2rc1.dist-info → fmu_manipulation_toolbox-1.9rc0.dist-info}/WHEEL +0 -0
  32. {fmu_manipulation_toolbox-1.8.4.2rc1.dist-info → fmu_manipulation_toolbox-1.9rc0.dist-info}/licenses/LICENSE.txt +0 -0
  33. {fmu_manipulation_toolbox-1.8.4.2rc1.dist-info → fmu_manipulation_toolbox-1.9rc0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,117 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
3
+ <xs:include schemaLocation="fmi3Annotation.xsd"/>
4
+ <xs:annotation>
5
+ <xs:documentation>
6
+ Copyright(c) 2008-2011 MODELISAR consortium,
7
+ 2012-2024 Modelica Association Project "FMI".
8
+ All rights reserved.
9
+
10
+ This file is licensed by the copyright holders under the 2-Clause BSD License
11
+ (https://opensource.org/licenses/BSD-2-Clause):
12
+
13
+ ----------------------------------------------------------------------------
14
+ Redistribution and use in source and binary forms, with or without
15
+ modification, are permitted provided that the following conditions are met:
16
+
17
+ - Redistributions of source code must retain the above copyright notice,
18
+ this list of conditions and the following disclaimer.
19
+
20
+ - Redistributions in binary form must reproduce the above copyright notice,
21
+ this list of conditions and the following disclaimer in the documentation
22
+ and/or other materials provided with the distribution.
23
+
24
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
25
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
26
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
27
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
28
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
30
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
31
+ OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
32
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
33
+ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
34
+ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35
+ ----------------------------------------------------------------------------
36
+ </xs:documentation>
37
+ </xs:annotation>
38
+ <xs:element name="fmiBuildDescription">
39
+ <xs:complexType>
40
+ <xs:sequence>
41
+ <xs:element name="BuildConfiguration" maxOccurs="unbounded">
42
+ <xs:complexType>
43
+ <xs:sequence>
44
+ <xs:element name="SourceFileSet" minOccurs="0" maxOccurs="unbounded">
45
+ <xs:complexType>
46
+ <xs:sequence>
47
+ <xs:element name="SourceFile" maxOccurs="unbounded">
48
+ <xs:complexType>
49
+ <xs:sequence>
50
+ <xs:element ref="Annotations" minOccurs="0"/>
51
+ </xs:sequence>
52
+ <xs:attribute name="name" type="xs:normalizedString" use="required"/>
53
+ </xs:complexType>
54
+ </xs:element>
55
+ <xs:element name="PreprocessorDefinition" minOccurs="0" maxOccurs="unbounded">
56
+ <xs:complexType>
57
+ <xs:sequence>
58
+ <xs:element name="Option" minOccurs="0" maxOccurs="unbounded">
59
+ <xs:complexType>
60
+ <xs:attribute name="value" type="xs:normalizedString"/>
61
+ <xs:attribute name="description" type="xs:string"/>
62
+ </xs:complexType>
63
+ </xs:element>
64
+ <xs:element ref="Annotations" minOccurs="0"/>
65
+ </xs:sequence>
66
+ <xs:attribute name="name" type="xs:normalizedString" use="required"/>
67
+ <xs:attribute name="optional" type="xs:boolean" default="false"/>
68
+ <xs:attribute name="value" type="xs:normalizedString"/>
69
+ <xs:attribute name="description" type="xs:string"/>
70
+ </xs:complexType>
71
+ </xs:element>
72
+ <xs:element name="IncludeDirectory" minOccurs="0" maxOccurs="unbounded">
73
+ <xs:complexType>
74
+ <xs:sequence>
75
+ <xs:element ref="Annotations" minOccurs="0"/>
76
+ </xs:sequence>
77
+ <xs:attribute name="name" type="xs:normalizedString" use="required"/>
78
+ </xs:complexType>
79
+ </xs:element>
80
+ <xs:element ref="Annotations" minOccurs="0"/>
81
+ </xs:sequence>
82
+ <xs:attribute name="name" type="xs:normalizedString"/>
83
+ <xs:attribute name="language" type="xs:normalizedString"/>
84
+ <xs:attribute name="compiler" type="xs:normalizedString"/>
85
+ <xs:attribute name="compilerOptions" type="xs:string"/>
86
+ </xs:complexType>
87
+ </xs:element>
88
+ <xs:element name="Library" minOccurs="0" maxOccurs="unbounded">
89
+ <xs:complexType>
90
+ <xs:sequence>
91
+ <xs:element ref="Annotations" minOccurs="0"/>
92
+ </xs:sequence>
93
+ <xs:attribute name="name" type="xs:normalizedString" use="required"/>
94
+ <xs:attribute name="version" type="xs:normalizedString"/>
95
+ <xs:attribute name="external" type="xs:boolean" default="false"/>
96
+ <xs:attribute name="description" type="xs:string"/>
97
+ </xs:complexType>
98
+ </xs:element>
99
+ <xs:element ref="Annotations" minOccurs="0"/>
100
+ </xs:sequence>
101
+ <xs:attribute name="modelIdentifier" type="xs:normalizedString" use="required"/>
102
+ <xs:attribute name="platform" type="xs:normalizedString"/>
103
+ <xs:attribute name="description" type="xs:string"/>
104
+ </xs:complexType>
105
+ </xs:element>
106
+ <xs:element ref="Annotations" minOccurs="0"/>
107
+ </xs:sequence>
108
+ <xs:attribute name="fmiVersion" use="required">
109
+ <xs:simpleType>
110
+ <xs:restriction base="xs:normalizedString">
111
+ <xs:pattern value="3[.](0|[1-9][0-9]*)([.](0|[1-9][0-9]*))?(-.+)?"/>
112
+ </xs:restriction>
113
+ </xs:simpleType>
114
+ </xs:attribute>
115
+ </xs:complexType>
116
+ </xs:element>
117
+ </xs:schema>
@@ -0,0 +1,80 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
3
+ <xs:annotation>
4
+ <xs:documentation>
5
+ Copyright(c) 2008-2011 MODELISAR consortium,
6
+ 2012-2024 Modelica Association Project "FMI".
7
+ All rights reserved.
8
+
9
+ This file is licensed by the copyright holders under the 2-Clause BSD License
10
+ (https://opensource.org/licenses/BSD-2-Clause):
11
+
12
+ ----------------------------------------------------------------------------
13
+ Redistribution and use in source and binary forms, with or without
14
+ modification, are permitted provided that the following conditions are met:
15
+
16
+ - Redistributions of source code must retain the above copyright notice,
17
+ this list of conditions and the following disclaimer.
18
+
19
+ - Redistributions in binary form must reproduce the above copyright notice,
20
+ this list of conditions and the following disclaimer in the documentation
21
+ and/or other materials provided with the distribution.
22
+
23
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
25
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
26
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
27
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
28
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
29
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
30
+ OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
31
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
32
+ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
33
+ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
+ ----------------------------------------------------------------------------
35
+ </xs:documentation>
36
+ </xs:annotation>
37
+ <xs:include schemaLocation="fmi3Annotation.xsd"/>
38
+ <xs:complexType name="fmi3InterfaceType" abstract="true">
39
+ <xs:sequence minOccurs="0">
40
+ <xs:element ref="Annotations" minOccurs="0"/>
41
+ </xs:sequence>
42
+ <xs:attribute name="modelIdentifier" type="xs:normalizedString" use="required"/>
43
+ <xs:attribute name="needsExecutionTool" type="xs:boolean" default="false"/>
44
+ <xs:attribute name="canBeInstantiatedOnlyOncePerProcess" type="xs:boolean" default="false"/>
45
+ <xs:attribute name="canGetAndSetFMUState" type="xs:boolean" default="false"/>
46
+ <xs:attribute name="canSerializeFMUState" type="xs:boolean" default="false"/>
47
+ <xs:attribute name="providesDirectionalDerivatives" type="xs:boolean" default="false"/>
48
+ <xs:attribute name="providesAdjointDerivatives" type="xs:boolean" default="false"/>
49
+ <xs:attribute name="providesPerElementDependencies" type="xs:boolean" default="false"/>
50
+ <xs:anyAttribute processContents="lax"/>
51
+ </xs:complexType>
52
+ <xs:complexType name="fmi3ModelExchange">
53
+ <xs:complexContent>
54
+ <xs:extension base="fmi3InterfaceType">
55
+ <xs:attribute name="needsCompletedIntegratorStep" type="xs:boolean" default="false"/>
56
+ <xs:attribute name="providesEvaluateDiscreteStates" type="xs:boolean" default="false"/>
57
+ </xs:extension>
58
+ </xs:complexContent>
59
+ </xs:complexType>
60
+ <xs:complexType name="fmi3CoSimulation">
61
+ <xs:complexContent>
62
+ <xs:extension base="fmi3InterfaceType">
63
+ <xs:attribute name="canHandleVariableCommunicationStepSize" type="xs:boolean" default="false"/>
64
+ <xs:attribute name="fixedInternalStepSize" type="xs:double"/>
65
+ <xs:attribute name="maxOutputDerivativeOrder" type="xs:unsignedInt" default="0"/>
66
+ <xs:attribute name="recommendedIntermediateInputSmoothness" type="xs:int" default="0"/>
67
+ <xs:attribute name="providesIntermediateUpdate" type="xs:boolean" default="false"/>
68
+ <xs:attribute name="mightReturnEarlyFromDoStep" type="xs:boolean" default="false"/>
69
+ <xs:attribute name="canReturnEarlyAfterIntermediateUpdate" type="xs:boolean" default="false"/>
70
+ <xs:attribute name="hasEventMode" type="xs:boolean" default="false"/>
71
+ <xs:attribute name="providesEvaluateDiscreteStates" type="xs:boolean" default="false"/>
72
+ </xs:extension>
73
+ </xs:complexContent>
74
+ </xs:complexType>
75
+ <xs:complexType name="fmi3ScheduledExecution">
76
+ <xs:complexContent>
77
+ <xs:extension base="fmi3InterfaceType"/>
78
+ </xs:complexContent>
79
+ </xs:complexType>
80
+ </xs:schema>
@@ -0,0 +1,93 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3
+ elementFormDefault="qualified" attributeFormDefault="qualified"
4
+ xmlns:fmi-ls="http://fmi-standard.org/fmi-ls-manifest"
5
+ targetNamespace="http://fmi-standard.org/fmi-ls-manifest">
6
+ <xs:annotation>
7
+ <xs:documentation>
8
+ Copyright(c) 2024 Modelica Association Project "FMI".
9
+ All rights reserved.
10
+
11
+ This file is licensed by the copyright holders under the 2-Clause BSD License
12
+ (https://opensource.org/licenses/BSD-2-Clause):
13
+
14
+ ----------------------------------------------------------------------------
15
+ Redistribution and use in source and binary forms, with or without
16
+ modification, are permitted provided that the following conditions are met:
17
+
18
+ - Redistributions of source code must retain the above copyright notice,
19
+ this list of conditions and the following disclaimer.
20
+
21
+ - Redistributions in binary form must reproduce the above copyright notice,
22
+ this list of conditions and the following disclaimer in the documentation
23
+ and/or other materials provided with the distribution.
24
+
25
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
27
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
28
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
29
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
31
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
32
+ OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
33
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
34
+ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
35
+ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36
+ ----------------------------------------------------------------------------
37
+ </xs:documentation>
38
+ </xs:annotation>
39
+
40
+ <xs:attribute name="fmi-ls-name" type="xs:normalizedString">
41
+ <xs:annotation>
42
+ <xs:documentation xml:lang="en">
43
+ This attribute gives the name, in reverse domain name notation,
44
+ of the layered standard.
45
+ </xs:documentation>
46
+ </xs:annotation>
47
+ </xs:attribute>
48
+ <xs:attribute name="fmi-ls-version" type="xs:normalizedString">
49
+ <xs:annotation>
50
+ <xs:documentation xml:lang="en">
51
+ This attribute gives the version of the layered standard. The use
52
+ of semantic versioning is highly recommended. In case of semantic
53
+ versioning it is up to the layered standard to define whether only
54
+ major and minor version are included in the version attribute,
55
+ or the full version is to be included.
56
+ </xs:documentation>
57
+ </xs:annotation>
58
+ </xs:attribute>
59
+ <xs:attribute name="fmi-ls-description" type="xs:normalizedString">
60
+ <xs:annotation>
61
+ <xs:documentation xml:lang="en">
62
+ This attribute gives a string with a brief description of the
63
+ layered standard that is suitable for display to users.
64
+ </xs:documentation>
65
+ </xs:annotation>
66
+ </xs:attribute>
67
+
68
+ <xs:attributeGroup name="ALayeredStandardManifest">
69
+ <xs:annotation>
70
+ <xs:documentation xml:lang="en">
71
+ This attribute group specifies the required root element attributes
72
+ of the fmi-ls-manifest.xml file in the sub-directory of extra
73
+ mandated by a layered standard.
74
+ </xs:documentation>
75
+ </xs:annotation>
76
+ <xs:attribute ref="fmi-ls:fmi-ls-name" use="required"/>
77
+ <xs:attribute ref="fmi-ls:fmi-ls-version" use="required"/>
78
+ <xs:attribute ref="fmi-ls:fmi-ls-description" use="required"/>
79
+ </xs:attributeGroup>
80
+
81
+ <xs:element name="fmiLayeredStandardManifest">
82
+ <xs:annotation>
83
+ <xs:documentation xml:lang="en">
84
+ This is the default root element to use in a layered standard for the mandated
85
+ fmi-ls-manifest.xml file, if no other suitable root element definition is provided
86
+ in the layered standard.
87
+ </xs:documentation>
88
+ </xs:annotation>
89
+ <xs:complexType>
90
+ <xs:attributeGroup ref="fmi-ls:ALayeredStandardManifest"/>
91
+ </xs:complexType>
92
+ </xs:element>
93
+ </xs:schema>
@@ -0,0 +1,131 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
3
+ <xs:include schemaLocation="fmi3VariableDependency.xsd"/>
4
+ <xs:include schemaLocation="fmi3Unit.xsd"/>
5
+ <xs:include schemaLocation="fmi3Variable.xsd"/>
6
+ <xs:include schemaLocation="fmi3Type.xsd"/>
7
+ <xs:include schemaLocation="fmi3Annotation.xsd"/>
8
+ <xs:include schemaLocation="fmi3InterfaceType.xsd"/>
9
+ <xs:annotation>
10
+ <xs:documentation>
11
+ Copyright(c) 2008-2011 MODELISAR consortium,
12
+ 2012-2024 Modelica Association Project "FMI".
13
+ All rights reserved.
14
+
15
+ This file is licensed by the copyright holders under the 2-Clause BSD License
16
+ (https://opensource.org/licenses/BSD-2-Clause):
17
+
18
+ ----------------------------------------------------------------------------
19
+ Redistribution and use in source and binary forms, with or without
20
+ modification, are permitted provided that the following conditions are met:
21
+
22
+ - Redistributions of source code must retain the above copyright notice,
23
+ this list of conditions and the following disclaimer.
24
+
25
+ - Redistributions in binary form must reproduce the above copyright notice,
26
+ this list of conditions and the following disclaimer in the documentation
27
+ and/or other materials provided with the distribution.
28
+
29
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
30
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
31
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
32
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
33
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
34
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
35
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
36
+ OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
37
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
38
+ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
39
+ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40
+ ----------------------------------------------------------------------------
41
+ </xs:documentation>
42
+ </xs:annotation>
43
+ <xs:element name="fmiModelDescription">
44
+ <xs:complexType>
45
+ <xs:sequence>
46
+ <xs:element name="ModelExchange" type="fmi3ModelExchange" minOccurs="0"/>
47
+ <xs:element name="CoSimulation" type="fmi3CoSimulation" minOccurs="0"/>
48
+ <xs:element name="ScheduledExecution" type="fmi3ScheduledExecution" minOccurs="0"/>
49
+ <xs:element name="UnitDefinitions" minOccurs="0">
50
+ <xs:complexType>
51
+ <xs:sequence maxOccurs="unbounded">
52
+ <xs:element name="Unit" type="fmi3Unit"/>
53
+ </xs:sequence>
54
+ </xs:complexType>
55
+ </xs:element>
56
+ <xs:element name="TypeDefinitions" minOccurs="0">
57
+ <xs:complexType>
58
+ <xs:group ref="fmi3TypeDefinition" maxOccurs="unbounded"/>
59
+ </xs:complexType>
60
+ </xs:element>
61
+ <xs:element name="LogCategories" minOccurs="0">
62
+ <xs:complexType>
63
+ <xs:sequence maxOccurs="unbounded">
64
+ <xs:element name="Category">
65
+ <xs:complexType>
66
+ <xs:sequence>
67
+ <xs:element ref="Annotations" minOccurs="0"/>
68
+ </xs:sequence>
69
+ <xs:attribute name="name" type="xs:normalizedString" use="required"/>
70
+ <xs:attribute name="description" type="xs:string"/>
71
+ </xs:complexType>
72
+ </xs:element>
73
+ </xs:sequence>
74
+ </xs:complexType>
75
+ </xs:element>
76
+ <xs:element name="DefaultExperiment" minOccurs="0">
77
+ <xs:complexType>
78
+ <xs:sequence>
79
+ <xs:element ref="Annotations" minOccurs="0"/>
80
+ </xs:sequence>
81
+ <xs:attribute name="startTime" type="xs:double"/>
82
+ <xs:attribute name="stopTime" type="xs:double"/>
83
+ <xs:attribute name="tolerance" type="xs:double"/>
84
+ <xs:attribute name="stepSize" type="xs:double"/>
85
+ </xs:complexType>
86
+ </xs:element>
87
+ <xs:element name="ModelVariables">
88
+ <xs:complexType>
89
+ <xs:group ref="fmi3Variable" maxOccurs="unbounded"/>
90
+ </xs:complexType>
91
+ </xs:element>
92
+ <xs:element name="ModelStructure">
93
+ <xs:complexType>
94
+ <xs:sequence>
95
+ <xs:element name="Output" type="fmi3Unknown" minOccurs="0" maxOccurs="unbounded"/>
96
+ <xs:element name="ContinuousStateDerivative" type="fmi3Unknown" minOccurs="0" maxOccurs="unbounded"/>
97
+ <xs:element name="ClockedState" type="fmi3Unknown" minOccurs="0" maxOccurs="unbounded"/>
98
+ <xs:element name="InitialUnknown" type="fmi3Unknown" minOccurs="0" maxOccurs="unbounded"/>
99
+ <xs:element name="EventIndicator" type="fmi3Unknown" minOccurs="0" maxOccurs="unbounded"/>
100
+ </xs:sequence>
101
+ </xs:complexType>
102
+ </xs:element>
103
+ <xs:element ref="Annotations" minOccurs="0"/>
104
+ </xs:sequence>
105
+ <xs:attribute name="fmiVersion" use="required">
106
+ <xs:simpleType>
107
+ <xs:restriction base="xs:normalizedString">
108
+ <xs:pattern value="3[.](0|[1-9][0-9]*)([.](0|[1-9][0-9]*))?(-.+)?"/>
109
+ </xs:restriction>
110
+ </xs:simpleType>
111
+ </xs:attribute>
112
+ <xs:attribute name="modelName" type="xs:string" use="required"/>
113
+ <xs:attribute name="instantiationToken" type="xs:normalizedString" use="required"/>
114
+ <xs:attribute name="description" type="xs:string"/>
115
+ <xs:attribute name="author" type="xs:string"/>
116
+ <xs:attribute name="version" type="xs:normalizedString"/>
117
+ <xs:attribute name="copyright" type="xs:string"/>
118
+ <xs:attribute name="license" type="xs:string"/>
119
+ <xs:attribute name="generationTool" type="xs:normalizedString"/>
120
+ <xs:attribute name="generationDateAndTime" type="xs:dateTime"/>
121
+ <xs:attribute name="variableNamingConvention" default="flat">
122
+ <xs:simpleType>
123
+ <xs:restriction base="xs:normalizedString">
124
+ <xs:enumeration value="flat"/>
125
+ <xs:enumeration value="structured"/>
126
+ </xs:restriction>
127
+ </xs:simpleType>
128
+ </xs:attribute>
129
+ </xs:complexType>
130
+ </xs:element>
131
+ </xs:schema>
@@ -0,0 +1,87 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
3
+ <xs:include schemaLocation="fmi3Annotation.xsd"/>
4
+ <xs:annotation>
5
+ <xs:documentation>
6
+ Copyright(c) 2008-2011 MODELISAR consortium,
7
+ 2012-2024 Modelica Association Project "FMI".
8
+ All rights reserved.
9
+
10
+ This file is licensed by the copyright holders under the 2-Clause BSD License
11
+ (https://opensource.org/licenses/BSD-2-Clause):
12
+
13
+ ----------------------------------------------------------------------------
14
+ Redistribution and use in source and binary forms, with or without
15
+ modification, are permitted provided that the following conditions are met:
16
+
17
+ - Redistributions of source code must retain the above copyright notice,
18
+ this list of conditions and the following disclaimer.
19
+
20
+ - Redistributions in binary form must reproduce the above copyright notice,
21
+ this list of conditions and the following disclaimer in the documentation
22
+ and/or other materials provided with the distribution.
23
+
24
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
25
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
26
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
27
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
28
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
30
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
31
+ OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
32
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
33
+ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
34
+ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35
+ ----------------------------------------------------------------------------
36
+ </xs:documentation>
37
+ </xs:annotation>
38
+ <xs:complexType name="fmi3Terminal">
39
+ <xs:sequence>
40
+ <xs:element name="TerminalMemberVariable" minOccurs="0" maxOccurs="unbounded">
41
+ <xs:complexType>
42
+ <xs:sequence>
43
+ <xs:element ref="Annotations" minOccurs="0"/>
44
+ </xs:sequence>
45
+ <xs:attribute name="variableName" type="xs:normalizedString" use="required"/>
46
+ <xs:attribute name="memberName" type="xs:normalizedString"/>
47
+ <xs:attribute name="variableKind" type="xs:normalizedString" use="required"/>
48
+ </xs:complexType>
49
+ </xs:element>
50
+ <xs:element name="TerminalStreamMemberVariable" minOccurs="0" maxOccurs="unbounded">
51
+ <xs:complexType>
52
+ <xs:sequence>
53
+ <xs:element ref="Annotations" minOccurs="0"/>
54
+ </xs:sequence>
55
+ <xs:attribute name="inStreamMemberName" type="xs:normalizedString" use="required"/>
56
+ <xs:attribute name="outStreamMemberName" type="xs:normalizedString" use="required"/>
57
+ <xs:attribute name="inStreamVariableName" type="xs:normalizedString" use="required"/>
58
+ <xs:attribute name="outStreamVariableName" type="xs:normalizedString" use="required"/>
59
+ </xs:complexType>
60
+ </xs:element>
61
+ <xs:element name="Terminal" type="fmi3Terminal" minOccurs="0" maxOccurs="unbounded"/>
62
+ <xs:element name="TerminalGraphicalRepresentation" minOccurs="0">
63
+ <xs:complexType>
64
+ <xs:sequence>
65
+ <xs:element ref="Annotations" minOccurs="0"/>
66
+ </xs:sequence>
67
+ <xs:attribute name="defaultConnectionColor">
68
+ <xs:simpleType>
69
+ <xs:list itemType="xs:unsignedByte"/>
70
+ </xs:simpleType>
71
+ </xs:attribute>
72
+ <xs:attribute name="defaultConnectionStrokeSize" type="xs:double"/>
73
+ <xs:attribute name="x1" type="xs:double" use="required"/>
74
+ <xs:attribute name="y1" type="xs:double" use="required"/>
75
+ <xs:attribute name="x2" type="xs:double" use="required"/>
76
+ <xs:attribute name="y2" type="xs:double" use="required"/>
77
+ <xs:attribute name="iconBaseName" type="xs:string" use="required"/>
78
+ </xs:complexType>
79
+ </xs:element>
80
+ <xs:element ref="Annotations" minOccurs="0"/>
81
+ </xs:sequence>
82
+ <xs:attribute name="name" type="xs:normalizedString" use="required"/>
83
+ <xs:attribute name="matchingRule" type="xs:normalizedString" use="required"/>
84
+ <xs:attribute name="terminalKind" type="xs:normalizedString"/>
85
+ <xs:attribute name="description" type="xs:string"/>
86
+ </xs:complexType>
87
+ </xs:schema>
@@ -0,0 +1,84 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
3
+ <xs:include schemaLocation="fmi3Terminal.xsd"/>
4
+ <xs:include schemaLocation="fmi3Annotation.xsd"/>
5
+ <xs:annotation>
6
+ <xs:documentation>
7
+ Copyright(c) 2008-2011 MODELISAR consortium,
8
+ 2012-2024 Modelica Association Project "FMI".
9
+ All rights reserved.
10
+
11
+ This file is licensed by the copyright holders under the 2-Clause BSD License
12
+ (https://opensource.org/licenses/BSD-2-Clause):
13
+
14
+ ----------------------------------------------------------------------------
15
+ Redistribution and use in source and binary forms, with or without
16
+ modification, are permitted provided that the following conditions are met:
17
+
18
+ - Redistributions of source code must retain the above copyright notice,
19
+ this list of conditions and the following disclaimer.
20
+
21
+ - Redistributions in binary form must reproduce the above copyright notice,
22
+ this list of conditions and the following disclaimer in the documentation
23
+ and/or other materials provided with the distribution.
24
+
25
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
27
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
28
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
29
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
31
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
32
+ OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
33
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
34
+ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
35
+ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36
+ ----------------------------------------------------------------------------
37
+ </xs:documentation>
38
+ </xs:annotation>
39
+ <xs:element name="fmiTerminalsAndIcons">
40
+ <xs:complexType>
41
+ <xs:sequence>
42
+ <xs:element name="GraphicalRepresentation" minOccurs="0">
43
+ <xs:complexType>
44
+ <xs:sequence>
45
+ <xs:element name="CoordinateSystem" minOccurs="0">
46
+ <xs:complexType>
47
+ <xs:attribute name="x1" type="xs:double" use="required"/>
48
+ <xs:attribute name="y1" type="xs:double" use="required"/>
49
+ <xs:attribute name="x2" type="xs:double" use="required"/>
50
+ <xs:attribute name="y2" type="xs:double" use="required"/>
51
+ <xs:attribute name="suggestedScalingFactorTo_mm" type="xs:double" use="required"/>
52
+ </xs:complexType>
53
+ </xs:element>
54
+ <xs:element name="Icon" minOccurs="0">
55
+ <xs:complexType>
56
+ <xs:attribute name="x1" type="xs:double" use="required"/>
57
+ <xs:attribute name="y1" type="xs:double" use="required"/>
58
+ <xs:attribute name="x2" type="xs:double" use="required"/>
59
+ <xs:attribute name="y2" type="xs:double" use="required"/>
60
+ </xs:complexType>
61
+ </xs:element>
62
+ <xs:element ref="Annotations" minOccurs="0"/>
63
+ </xs:sequence>
64
+ </xs:complexType>
65
+ </xs:element>
66
+ <xs:element name="Terminals" minOccurs="0">
67
+ <xs:complexType>
68
+ <xs:sequence>
69
+ <xs:element name="Terminal" type="fmi3Terminal" maxOccurs="unbounded"/>
70
+ </xs:sequence>
71
+ </xs:complexType>
72
+ </xs:element>
73
+ <xs:element ref="Annotations" minOccurs="0"/>
74
+ </xs:sequence>
75
+ <xs:attribute name="fmiVersion" use="required">
76
+ <xs:simpleType>
77
+ <xs:restriction base="xs:normalizedString">
78
+ <xs:pattern value="3[.](0|[1-9][0-9]*)([.](0|[1-9][0-9]*))?(-.+)?"/>
79
+ </xs:restriction>
80
+ </xs:simpleType>
81
+ </xs:attribute>
82
+ </xs:complexType>
83
+ </xs:element>
84
+ </xs:schema>