Cláudio Gomes 4 years ago
parent
commit
7b3068f7a6
78 changed files with 136 additions and 3653 deletions
  1. 82 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/.cproject
  2. 1 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/.gitignore
  3. 26 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/.project
  4. 0 14
      SemanticAdaptationForFMI/Experiments/power_window_case_study/README.txt
  5. 0 57
      SemanticAdaptationForFMI/Experiments/power_window_case_study/bin/License.txt
  6. 0 10
      SemanticAdaptationForFMI/Experiments/power_window_case_study/build_all.bat
  7. 0 26
      SemanticAdaptationForFMI/Experiments/power_window_case_study/build_run_all.bat
  8. 1 2
      SemanticAdaptationForFMI/Experiments/power_window_case_study/case/src/pw_case.c
  9. 0 1735
      SemanticAdaptationForFMI/Experiments/power_window_case_study/crashedlog1.txt
  10. 0 1735
      SemanticAdaptationForFMI/Experiments/power_window_case_study/crashedlog2.txt
  11. BIN
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_Window_sa/Debug/libFMI_Window_sa.dll
  12. BIN
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_loop_sa/Debug/sim_support.o
  13. BIN
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_power_sa/Debug/libFMI_power_sa.dll
  14. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Environment/.cproject
  15. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Environment/.project
  16. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Environment/FMI_Environment.c
  17. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Environment/FMI_Environment.h
  18. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Environment/fmi2/fmi2FunctionTypes.h
  19. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Environment/fmi2/fmi2Functions.h
  20. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Environment/fmi2/fmi2TypesPlatform.h
  21. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Window_sa/.cproject
  22. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Window_sa/FMI_Window_sa.c
  23. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Window_sa/FMI_Window_sa.h
  24. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Window_sa/fmi2/fmi2.h
  25. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Window_sa/fmi2/fmi2FunctionTypes.h
  26. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Window_sa/fmi2/fmi2Functions.h
  27. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Window_sa/fmi2/fmi2TypesPlatform.h
  28. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Window_sa/sim_support.c
  29. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Window_sa/sim_support.h
  30. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/.cproject
  31. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/.project
  32. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/PW_Controller.c
  33. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/PW_Controller.h
  34. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/Powerwindow.c
  35. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/Powerwindow.h
  36. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/PowerwindowRequired.c
  37. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/PowerwindowRequired.h
  38. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/fmi2/fmi2FunctionTypes.h
  39. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/fmi2/fmi2Functions.h
  40. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/fmi2/fmi2TypesPlatform.h
  41. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/modelDescription.xml
  42. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/sc_types.h
  43. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller_sa/.cproject
  44. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller_sa/.project
  45. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller_sa/FMI_GM.c
  46. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller_sa/FMI_GM.h
  47. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller_sa/fmi2/fmi2.h
  48. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller_sa/fmi2/fmi2FunctionTypes.h
  49. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller_sa/fmi2/fmi2Functions.h
  50. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller_sa/fmi2/fmi2TypesPlatform.h
  51. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller_sa/sim_support.c
  52. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller_sa/sim_support.h
  53. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_loop_sa/.cproject
  54. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_loop_sa/FMI_loop_sa.c
  55. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_loop_sa/FMI_loop_sa.h
  56. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_loop_sa/fmi2/fmi2.h
  57. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_loop_sa/fmi2/fmi2FunctionTypes.h
  58. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_loop_sa/fmi2/fmi2Functions.h
  59. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_loop_sa/fmi2/fmi2TypesPlatform.h
  60. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_loop_sa/sim_support.c
  61. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_loop_sa/sim_support.h
  62. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_power_sa/.cproject
  63. 26 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_power_sa/.project
  64. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_power_sa/FMI_power_sa.c
  65. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_power_sa/FMI_power_sa.h
  66. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_power_sa/fmi2/fmi2.h
  67. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_power_sa/fmi2/fmi2FunctionTypes.h
  68. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_power_sa/fmi2/fmi2Functions.h
  69. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_power_sa/fmi2/fmi2TypesPlatform.h
  70. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_power_sa/sim_support.c
  71. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_power_sa/sim_support.h
  72. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/ThirdParty/FMI_Obstacle.fmu
  73. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/ThirdParty/FMI_PowerSystem.fmu
  74. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/ThirdParty/FMI_Window.fmu
  75. 0 39
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmusim.bat
  76. 0 8
      SemanticAdaptationForFMI/Experiments/power_window_case_study/get_modelica_fmus.bat
  77. 0 24
      SemanticAdaptationForFMI/Experiments/power_window_case_study/run_all.bat
  78. 0 3
      SemanticAdaptationForFMI/Experiments/power_window_case_study/run_all_log.bat

+ 82 - 0
SemanticAdaptationForFMI/Experiments/power_window_case_study/.cproject

@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
+	<storageModule moduleId="org.eclipse.cdt.core.settings">
+		<cconfiguration id="org.eclipse.cdt.msvc.exe.debug.582037368">
+			<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="org.eclipse.cdt.msvc.exe.debug.582037368" moduleId="org.eclipse.cdt.core.settings" name="Debug">
+				<externalSettings/>
+				<extensions>
+					<extension id="org.eclipse.cdt.core.PE" point="org.eclipse.cdt.core.BinaryParser"/>
+					<extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+				</extensions>
+			</storageModule>
+			<storageModule moduleId="cdtBuildSystem" version="4.0.0">
+				<configuration artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug" description="" id="org.eclipse.cdt.msvc.exe.debug.582037368" name="Debug" parent="org.eclipse.cdt.msvc.exe.debug">
+					<folderInfo id="org.eclipse.cdt.msvc.exe.debug.582037368." name="/" resourcePath="">
+						<toolChain id="org.eclipse.cdt.msvc.toolchain.exe.debug.1702614033" name="Microsoft Visual C++" superClass="org.eclipse.cdt.msvc.toolchain.exe.debug">
+							<targetPlatform id="org.eclipse.cdt.msvc.targetPlatform.exe.debug.253629254" superClass="org.eclipse.cdt.msvc.targetPlatform.exe.debug"/>
+							<builder buildPath="${workspace_loc:/PowerWindowCaseStudy}/Debug" id="org.eclipse.cdt.msvc.builder.1422464699" managedBuildOn="true" name="CDT Internal Builder.Debug" superClass="org.eclipse.cdt.msvc.builder"/>
+							<tool id="org.eclipse.cdt.msvc.cl.c.exe.debug.957894907" name="C Compiler (cl)" superClass="org.eclipse.cdt.msvc.cl.c.exe.debug">
+								<option id="org.eclipse.cdt.msvc.cl.option.optimization.1033806768" superClass="org.eclipse.cdt.msvc.cl.option.optimization" value="org.eclipse.cdt.msvc.cl.option.optimization.default" valueType="enumerated"/>
+								<option id="org.eclipse.cdt.msvc.cl.option.debugFormat.250057486" superClass="org.eclipse.cdt.msvc.cl.option.debugFormat" value="org.eclipse.cdt.msvc.cl.option.debugFormat.complete" valueType="enumerated"/>
+								<inputType id="org.eclipse.cdt.msvc.cl.inputType.c.439234608" superClass="org.eclipse.cdt.msvc.cl.inputType.c"/>
+							</tool>
+							<tool id="org.eclipse.cdt.msvc.cl.exe.debug.1416706125" name="C++ Compiler (cl)" superClass="org.eclipse.cdt.msvc.cl.exe.debug">
+								<option id="org.eclipse.cdt.msvc.cl.option.optimization.400014882" superClass="org.eclipse.cdt.msvc.cl.option.optimization" value="org.eclipse.cdt.msvc.cl.option.optimization.default" valueType="enumerated"/>
+								<option id="org.eclipse.cdt.msvc.cl.option.debugFormat.1098142012" superClass="org.eclipse.cdt.msvc.cl.option.debugFormat" value="org.eclipse.cdt.msvc.cl.option.debugFormat.complete" valueType="enumerated"/>
+							</tool>
+							<tool id="org.eclipse.cdt.msvc.rc.exe.debug.471568489" name="Resource Compiler (rc)" superClass="org.eclipse.cdt.msvc.rc.exe.debug">
+								<inputType id="org.eclipse.cdt.msvc.rc.inputType.1221126321" superClass="org.eclipse.cdt.msvc.rc.inputType"/>
+							</tool>
+							<tool id="org.eclipse.cdt.msvc.link.exe.debug.1128537958" name="Linker (link)" superClass="org.eclipse.cdt.msvc.link.exe.debug">
+								<option id="org.eclipse.cdt.msvc.link.option.debug.2038972440" superClass="org.eclipse.cdt.msvc.link.option.debug" value="true" valueType="boolean"/>
+								<inputType id="org.eclipse.cdt.msvc.link.inputType.1104730586" superClass="org.eclipse.cdt.msvc.link.inputType"/>
+							</tool>
+							<tool id="org.eclipse.cdt.msvc.lib.1277673479" name="Library Manager (lib)" superClass="org.eclipse.cdt.msvc.lib"/>
+						</toolChain>
+					</folderInfo>
+				</configuration>
+			</storageModule>
+			<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+		</cconfiguration>
+		<cconfiguration id="org.eclipse.cdt.msvc.exe.release.50711599">
+			<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="org.eclipse.cdt.msvc.exe.release.50711599" moduleId="org.eclipse.cdt.core.settings" name="Release">
+				<externalSettings/>
+				<extensions>
+					<extension id="org.eclipse.cdt.core.PE" point="org.eclipse.cdt.core.BinaryParser"/>
+					<extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+				</extensions>
+			</storageModule>
+			<storageModule moduleId="cdtBuildSystem" version="4.0.0">
+				<configuration artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release" description="" id="org.eclipse.cdt.msvc.exe.release.50711599" name="Release" parent="org.eclipse.cdt.msvc.exe.release">
+					<folderInfo id="org.eclipse.cdt.msvc.exe.release.50711599." name="/" resourcePath="">
+						<toolChain id="org.eclipse.cdt.msvc.toolchain.exe.release.159760914" name="Microsoft Visual C++" superClass="org.eclipse.cdt.msvc.toolchain.exe.release">
+							<targetPlatform id="org.eclipse.cdt.msvc.targetPlatform.exe.release.660023759" superClass="org.eclipse.cdt.msvc.targetPlatform.exe.release"/>
+							<builder buildPath="${workspace_loc:/PowerWindowCaseStudy}/Release" id="org.eclipse.cdt.msvc.builder.1626245600" managedBuildOn="true" name="CDT Internal Builder.Release" superClass="org.eclipse.cdt.msvc.builder"/>
+							<tool id="org.eclipse.cdt.msvc.cl.c.exe.release.1034325759" name="C Compiler (cl)" superClass="org.eclipse.cdt.msvc.cl.c.exe.release">
+								<option id="org.eclipse.cdt.msvc.cl.option.optimization.1971827514" superClass="org.eclipse.cdt.msvc.cl.option.optimization"/>
+								<option id="org.eclipse.cdt.msvc.cl.option.debugFormat.880922548" superClass="org.eclipse.cdt.msvc.cl.option.debugFormat"/>
+							</tool>
+							<tool id="org.eclipse.cdt.msvc.cl.exe.release.1761157490" name="C++ Compiler (cl)" superClass="org.eclipse.cdt.msvc.cl.exe.release">
+								<option id="org.eclipse.cdt.msvc.cl.option.optimization.180147001" superClass="org.eclipse.cdt.msvc.cl.option.optimization"/>
+								<option id="org.eclipse.cdt.msvc.cl.option.debugFormat.1810164951" superClass="org.eclipse.cdt.msvc.cl.option.debugFormat"/>
+							</tool>
+							<tool id="org.eclipse.cdt.msvc.rc.exe.release.599388846" name="Resource Compiler (rc)" superClass="org.eclipse.cdt.msvc.rc.exe.release"/>
+							<tool id="org.eclipse.cdt.msvc.link.exe.release.1825373978" name="Linker (link)" superClass="org.eclipse.cdt.msvc.link.exe.release"/>
+							<tool id="org.eclipse.cdt.msvc.lib.1074699668" name="Library Manager (lib)" superClass="org.eclipse.cdt.msvc.lib"/>
+						</toolChain>
+					</folderInfo>
+				</configuration>
+			</storageModule>
+		</cconfiguration>
+	</storageModule>
+	<storageModule moduleId="cdtBuildSystem" version="4.0.0">
+		<project id="PowerWindowCaseStudy.org.eclipse.cdt.msvc.projectType.exe.1224418464" name="Executable" projectType="org.eclipse.cdt.msvc.projectType.exe"/>
+	</storageModule>
+	<storageModule moduleId="scannerConfiguration">
+		<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
+		<scannerConfigBuildInfo instanceId="org.eclipse.cdt.msvc.exe.debug.582037368;org.eclipse.cdt.msvc.exe.debug.582037368.;org.eclipse.cdt.msvc.cl.c.exe.debug.957894907;org.eclipse.cdt.msvc.cl.inputType.c.439234608">
+			<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.msw.build.clScannerInfo"/>
+		</scannerConfigBuildInfo>
+	</storageModule>
+	<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
+</cproject>

+ 1 - 0
SemanticAdaptationForFMI/Experiments/power_window_case_study/.gitignore

@@ -1,3 +1,4 @@
 /log.txt
 /passing_log.txt
 /*.csv
+/Debug/

+ 26 - 0
SemanticAdaptationForFMI/Experiments/power_window_case_study/.project

@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>PowerWindowCaseStudy</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+			<triggers>clean,full,incremental,</triggers>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
+			<triggers>full,incremental,</triggers>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.cdt.core.cnature</nature>
+		<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
+		<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
+	</natures>
+</projectDescription>

+ 0 - 14
SemanticAdaptationForFMI/Experiments/power_window_case_study/README.txt

@@ -1,14 +0,0 @@
-Author of these instructions: Claudio Gomes (claudio.gomes@uantwerp.be)
-
-Before following the installation instructions in the doc folder, you need to install Visual Studio 2015 Community.
-I've ported the libxml and the .bat files to work with that compiler.
-
-Then you just have to run build_all.bat
-
-Then run_all.bat
-
-
-
-Some problems that you may encounter:
-	- Incapable of loading a specific dll.
-		I had a similar issue due to the way OpenModelica exports the FMUs. I had to copy the missing dlls from the OpenModelica installation. I copied them to the bin directory.

+ 0 - 57
SemanticAdaptationForFMI/Experiments/power_window_case_study/bin/License.txt

@@ -1,57 +0,0 @@
-  7-Zip
-  ~~~~~
-  License for use and distribution
-  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-  7-Zip Copyright (C) 1999-2007 Igor Pavlov.
-
-  Licenses for files are:
-
-    1) 7z.dll: GNU LGPL + unRAR restriction
-    2) All other files:  GNU LGPL
-
-  The GNU LGPL + unRAR restriction means that you must follow both 
-  GNU LGPL rules and unRAR restriction rules.
-
-
-  Note: 
-    You can use 7-Zip on any computer, including a computer in a commercial 
-    organization. You don't need to register or pay for 7-Zip.
-
-
-  GNU LGPL information
-  --------------------
-
-    This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Lesser General Public
-    License as published by the Free Software Foundation; either
-    version 2.1 of the License, or (at your option) any later version.
-
-    This library is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-    Lesser General Public License for more details.
-
-    You should have received a copy of the GNU Lesser General Public
-    License along with this library; if not, write to the Free Software
-    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-
-
-  unRAR restriction
-  -----------------
-
-    The decompression engine for RAR archives was developed using source 
-    code of unRAR program.
-    All copyrights to original unRAR code are owned by Alexander Roshal.
-
-    The license for original unRAR code has the following restriction:
-
-      The unRAR sources cannot be used to re-create the RAR compression algorithm, 
-      which is proprietary. Distribution of modified unRAR sources in separate form 
-      or as a part of other software is permitted, provided that it is clearly
-      stated in the documentation and source comments that the code may
-      not be used to develop a RAR (WinRAR) compatible archiver.
-
-
-  --
-  Igor Pavlov

+ 0 - 10
SemanticAdaptationForFMI/Experiments/power_window_case_study/build_all.bat

@@ -1,10 +0,0 @@
-@echo off 
-
-echo -----------------------------------------------------------
-echo Making the simulators and models for FMI 2.0 ...
-copy ..\hierarchical_fmu\fmu20\fmu\cs\mass_spring_damper.fmu .\fmu20\fmu\cs\
-pushd fmu20\src
-call build_all %1
-popd
-echo Making the simulators and models for FMI 2.0 ... DONE!
-echo -----------------------------------------------------------

+ 0 - 26
SemanticAdaptationForFMI/Experiments/power_window_case_study/build_run_all.bat

@@ -1,26 +0,0 @@
-@echo off 
-
-mode 200,1000
-
-call build_all %1
-
-setlocal
-
-set FMUSDK_HOME=.
-
-rem enhance path to include open modelica dlls. THis is needed due to a bug in loading the dlls
-set PREV_PATH=%PATH%
-rem set PATH=%PATH%;C:\OpenModelica1.12.0-dev-32bit\bin
-
-echo Running Scenario
-
-bin\fmu20sim_cs.exe
-
-rem restore path
-set PATH=%PREV_PATH%
-
-endlocal
-
-if "%1"=="nopause" goto skip
-	pause
-:skip

+ 1 - 2
SemanticAdaptationForFMI/Experiments/power_window_case_study/case/src/pw_case.c

@@ -4,7 +4,6 @@
  Author      : Joachim Denil
  Version     :
  Copyright   : Your copyright notice
- Description : Hello World in C, Ansi-style
  ============================================================================
  */
 
@@ -31,7 +30,7 @@ int main(void) {
 	fp_fmu_loop_sa = fopen("result_loop_sa.csv", "w");
 
 
-	puts("Loading Dlls\n"); /* prints Hello World */
+	puts("Loading Dlls\n");
 	/* loading */
     loadDll("libFMI_Environment.dll", &fmu_env, "PW_ENV");
     loadDll("libFMI_controller_sa.dll", &fmu_control_sa, "PW_CONTROLLER_SA");

File diff suppressed because it is too large
+ 0 - 1735
SemanticAdaptationForFMI/Experiments/power_window_case_study/crashedlog1.txt


File diff suppressed because it is too large
+ 0 - 1735
SemanticAdaptationForFMI/Experiments/power_window_case_study/crashedlog2.txt


BIN
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_Window_sa/Debug/libFMI_Window_sa.dll


BIN
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_loop_sa/Debug/sim_support.o


BIN
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_power_sa/Debug/libFMI_power_sa.dll


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_Environment/.cproject → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Environment/.cproject


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_Environment/.project → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Environment/.project


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_Environment/FMI_Environment.c → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Environment/FMI_Environment.c


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_Environment/FMI_Environment.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Environment/FMI_Environment.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_Environment/fmi2/fmi2FunctionTypes.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Environment/fmi2/fmi2FunctionTypes.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_Environment/fmi2/fmi2Functions.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Environment/fmi2/fmi2Functions.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_Environment/fmi2/fmi2TypesPlatform.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Environment/fmi2/fmi2TypesPlatform.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_Window_sa/.cproject → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Window_sa/.cproject


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_Window_sa/FMI_Window_sa.c → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Window_sa/FMI_Window_sa.c


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_Window_sa/FMI_Window_sa.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Window_sa/FMI_Window_sa.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_Window_sa/fmi2/fmi2.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Window_sa/fmi2/fmi2.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_Window_sa/fmi2/fmi2FunctionTypes.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Window_sa/fmi2/fmi2FunctionTypes.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_Window_sa/fmi2/fmi2Functions.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Window_sa/fmi2/fmi2Functions.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_Window_sa/fmi2/fmi2TypesPlatform.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Window_sa/fmi2/fmi2TypesPlatform.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_Window_sa/sim_support.c → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Window_sa/sim_support.c


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_Window_sa/sim_support.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_Window_sa/sim_support.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_controller/.cproject → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/.cproject


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_controller/.project → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/.project


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_controller/PW_Controller.c → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/PW_Controller.c


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_controller/PW_Controller.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/PW_Controller.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_controller/Powerwindow.c → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/Powerwindow.c


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_controller/Powerwindow.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/Powerwindow.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_controller/PowerwindowRequired.c → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/PowerwindowRequired.c


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_controller/PowerwindowRequired.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/PowerwindowRequired.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_controller/fmi2/fmi2FunctionTypes.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/fmi2/fmi2FunctionTypes.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_controller/fmi2/fmi2Functions.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/fmi2/fmi2Functions.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_controller/fmi2/fmi2TypesPlatform.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/fmi2/fmi2TypesPlatform.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_controller/modelDescription.xml → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/modelDescription.xml


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_controller/sc_types.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller/sc_types.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_controller_sa/.cproject → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller_sa/.cproject


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_controller_sa/.project → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller_sa/.project


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_controller_sa/FMI_GM.c → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller_sa/FMI_GM.c


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_controller_sa/FMI_GM.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller_sa/FMI_GM.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_controller_sa/fmi2/fmi2.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller_sa/fmi2/fmi2.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_controller_sa/fmi2/fmi2FunctionTypes.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller_sa/fmi2/fmi2FunctionTypes.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_controller_sa/fmi2/fmi2Functions.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller_sa/fmi2/fmi2Functions.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_controller_sa/fmi2/fmi2TypesPlatform.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller_sa/fmi2/fmi2TypesPlatform.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_controller_sa/sim_support.c → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller_sa/sim_support.c


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_controller_sa/sim_support.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_controller_sa/sim_support.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_loop_sa/.cproject → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_loop_sa/.cproject


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_loop_sa/FMI_loop_sa.c → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_loop_sa/FMI_loop_sa.c


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_loop_sa/FMI_loop_sa.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_loop_sa/FMI_loop_sa.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_loop_sa/fmi2/fmi2.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_loop_sa/fmi2/fmi2.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_loop_sa/fmi2/fmi2FunctionTypes.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_loop_sa/fmi2/fmi2FunctionTypes.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_loop_sa/fmi2/fmi2Functions.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_loop_sa/fmi2/fmi2Functions.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_loop_sa/fmi2/fmi2TypesPlatform.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_loop_sa/fmi2/fmi2TypesPlatform.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_loop_sa/sim_support.c → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_loop_sa/sim_support.c


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_loop_sa/sim_support.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_loop_sa/sim_support.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_power_sa/.cproject → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_power_sa/.cproject


+ 26 - 0
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_power_sa/.project

@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>FMI_power_sa</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+			<triggers>clean,full,incremental,</triggers>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
+			<triggers>full,incremental,</triggers>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.cdt.core.cnature</nature>
+		<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
+		<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
+	</natures>
+</projectDescription>

SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_power_sa/FMI_power_sa.c → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_power_sa/FMI_power_sa.c


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_power_sa/FMI_power_sa.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_power_sa/FMI_power_sa.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_power_sa/fmi2/fmi2.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_power_sa/fmi2/fmi2.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_power_sa/fmi2/fmi2FunctionTypes.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_power_sa/fmi2/fmi2FunctionTypes.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_power_sa/fmi2/fmi2Functions.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_power_sa/fmi2/fmi2Functions.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_power_sa/fmi2/fmi2TypesPlatform.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_power_sa/fmi2/fmi2TypesPlatform.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_power_sa/sim_support.c → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_power_sa/sim_support.c


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_power_sa/sim_support.h → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/FMI_power_sa/sim_support.h


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/ThirdPartyFMUs/FMI_Obstacle.fmu → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/ThirdParty/FMI_Obstacle.fmu


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/ThirdPartyFMUs/FMI_PowerSystem.fmu → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/ThirdParty/FMI_PowerSystem.fmu


SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/ThirdPartyFMUs/FMI_Window.fmu → SemanticAdaptationForFMI/Experiments/power_window_case_study/fmus/ThirdParty/FMI_Window.fmu


+ 0 - 39
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmusim.bat

@@ -1,39 +0,0 @@
-@echo off 
-rem ------------------------------------------------------------
-rem To run a simulation, start this batch in this directory. 
-rem Example: fmusim me10 fmu10/fmu/me/dq.fmu 0.3 0.1 1 c
-rem Example: fmusim cs20 fmu20/fmu/cs/x64/dq.fmu 0.3 0.1 1 c -win64
-rem To build simulators and FMUs, run install.bat
-rem Copyright QTronic GmbH. All rights reserved.
-rem ------------------------------------------------------------
-
-setlocal
-set FMUSDK_HOME=.
-
-rem first parameter is the type of FMI simulation to run
-set SIM_TYPE=%1
-
-rem get all command line argument after the %1
-set SIM_OPTIONS=
-
-rem set x64 no none, by default we are on win32
-set x64=
-
-rem shift all arguments down by one
-SHIFT
-:loop1
-if "%1"=="-win64" (set x64=x64\) else (
-if "%1"=="" goto after_loop
-set SIM_OPTIONS=%SIM_OPTIONS% %1
-)
-shift
-goto loop1
-
-:after_loop
-if %SIM_TYPE%==me10 (bin\%x64%fmu10sim_me.exe %SIM_OPTIONS%
-) else (if %SIM_TYPE%==cs10 (bin\%x64%fmu10sim_cs.exe %SIM_OPTIONS%
-) else (if %SIM_TYPE%==me20 (bin\%x64%fmu20sim_me.exe %SIM_OPTIONS%
-) else (if %SIM_TYPE%==cs20 (bin\%x64%fmu20sim_cs.exe %SIM_OPTIONS%
-) else (echo Use one of cs10 cs20 me10 me20 as first argument))))
-
-endlocal

+ 0 - 8
SemanticAdaptationForFMI/Experiments/power_window_case_study/get_modelica_fmus.bat

@@ -1,8 +0,0 @@
-@echo off 
-
-xcopy "%TEMP%\OpenModelica\OMEdit\PW_PowerSystem.fmu" .\fmu20\fmu\cs\ /Y /D
-xcopy "%TEMP%\OpenModelica\OMEdit\PW_Window.fmu" .\fmu20\fmu\cs\ /Y /D
-xcopy "%TEMP%\OpenModelica\OMEdit\Obstacle.fmu" .\fmu20\fmu\cs\ /Y /D
-xcopy "%TEMP%\OpenModelica\OMEdit\Echo.fmu" .\fmu20\fmu\cs\ /Y /D
-
-pause

+ 0 - 24
SemanticAdaptationForFMI/Experiments/power_window_case_study/run_all.bat

@@ -1,24 +0,0 @@
-@echo off 
-
-mode 200,1000
-
-setlocal
-
-set FMUSDK_HOME=.
-
-rem enhance path to include open modelica dlls. THis is needed due to a bug in loading the dlls
-set PREV_PATH=%PATH%
-rem set PATH=%PATH%;C:\OpenModelica1.12.0-dev-32bit\bin
-
-echo Running Scenario
-
-bin\fmu20sim_cs.exe
-
-rem restore path
-set PATH=%PREV_PATH%
-
-endlocal
-
-if "%1"=="nopause" goto skip
-	pause
-:skip

+ 0 - 3
SemanticAdaptationForFMI/Experiments/power_window_case_study/run_all_log.bat

@@ -1,3 +0,0 @@
-@echo off 
-
-call run_all nopause > log.txt