Cláudio Gomes 3 years ago
parent
commit
04945806f4
100 changed files with 0 additions and 35931 deletions
  1. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/binaries/win32/PW_PowerSystem_FMU.libs
  2. 0 20
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/build.bat
  3. 0 4113
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/modelDescription.xml
  4. 0 65
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/Makefile
  5. 0 62
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/Makefile.in
  6. 0 1359
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem.c
  7. 0 2
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem.makefile
  8. BIN
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem.o
  9. 0 26
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_01exo.c
  10. BIN
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_01exo.o
  11. 0 12
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_02nls.c
  12. BIN
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_02nls.o
  13. 0 492
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_03lsy.c
  14. BIN
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_03lsy.o
  15. 0 16
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_04set.c
  16. BIN
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_04set.o
  17. 0 107
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_05evt.c
  18. BIN
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_05evt.o
  19. 0 1630
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_06inz.c
  20. BIN
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_06inz.o
  21. 0 19
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_07dly.c
  22. BIN
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_07dly.o
  23. 0 3261
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_08bnd.c
  24. BIN
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_08bnd.o
  25. 0 123
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_09alg.c
  26. BIN
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_09alg.o
  27. 0 20
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_10asr.c
  28. BIN
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_10asr.o
  29. 0 10
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_11mix.c
  30. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_11mix.h
  31. BIN
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_11mix.o
  32. 0 814
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_12jac.c
  33. 0 210
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_12jac.h
  34. BIN
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_12jac.o
  35. 0 14
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_13opt.c
  36. 0 11
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_13opt.h
  37. BIN
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_13opt.o
  38. 0 44
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_14lnz.c
  39. BIN
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_14lnz.o
  40. 0 59
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_15syn.c
  41. BIN
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_15syn.o
  42. 0 9
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_16dae.c
  43. BIN
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_16dae.o
  44. 0 1792
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_FMU.c
  45. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_FMU.libs
  46. BIN
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_FMU.o
  47. 0 248
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_functions.c
  48. 0 195
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_functions.h
  49. BIN
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_functions.o
  50. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_includes.h
  51. 0 1
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_info.c
  52. 0 3822
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_init_fmu.c
  53. BIN
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_init_fmu.o
  54. 0 26
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_literals.h
  55. 0 102
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_model.h
  56. 0 92
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_records.c
  57. BIN
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_records.o
  58. 0 242
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/configure.ac
  59. 0 183
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/Makefile.objs
  60. 0 113
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/ModelicaUtilities.h
  61. 0 910
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/ParModelica/explicit/openclrt/OCLRuntimeUtil.cl
  62. 0 116
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/ParModelica/explicit/openclrt/omc_ocl_common_header.h
  63. 0 195
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/ParModelica/explicit/openclrt/omc_ocl_interface.h
  64. 0 106
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/ParModelica/explicit/openclrt/omc_ocl_memory_ops.h
  65. 0 158
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/blaswrap.h
  66. 0 160
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/blaswrap.h
  67. 0 7262
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/clapack.h
  68. 0 370
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/cminpack.h
  69. 0 389
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/dgemm.c
  70. 0 194
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/dger.c
  71. 0 138
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/dgesv.c
  72. 0 194
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/dgetf2.c
  73. 0 219
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/dgetrf.c
  74. 0 186
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/dgetrs.c
  75. 0 1006
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/dlamch.c
  76. 0 158
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/dlaswp.c
  77. 0 253
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/dogleg_.c
  78. 0 207
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/dpmpar_.c
  79. 0 96
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/dscal.c
  80. 0 114
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/dswap.c
  81. 0 490
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/dtrsm.c
  82. 0 196
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/enorm_.c
  83. 0 225
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/f2c.h
  84. 0 612
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/hybrj_.c
  85. 0 19
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/i_nint.c
  86. 0 93
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/idamax.c
  87. 0 166
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/ieeeck.c
  88. 0 654
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/ilaenv.c
  89. 0 282
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/iparmq.c
  90. 0 117
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/lsame.c
  91. 0 301
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/minpack.h
  92. 0 41
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/pow_di.c
  93. 0 145
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/qform_.c
  94. 0 245
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/qrfac_.c
  95. 0 145
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/r1mpyq_.c
  96. 0 283
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/r1updt_.c
  97. 0 50
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/s_cmp.c
  98. 0 57
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/s_copy.c
  99. 0 65
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/external_solvers/xerbla.c
  100. 0 0
      SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/fmi1/fmiModelFunctions.h

+ 0 - 0
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/binaries/win32/PW_PowerSystem_FMU.libs


+ 0 - 20
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/build.bat

@@ -1,20 +0,0 @@
-@echo off
-
-mode 230,1000
-
-setlocal
-
-set PATH=%PATH%;C:\MinGW\msys\1.0\bin
-
-pushd sources
-
-make clean
-
-make
-
-popd
-
-if "%1"=="nopause" goto skip
-	pause
-:skip
-

File diff suppressed because it is too large
+ 0 - 4113
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/modelDescription.xml


File diff suppressed because it is too large
+ 0 - 65
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/Makefile


+ 0 - 62
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/Makefile.in

@@ -1,62 +0,0 @@
-# Makefile generated by OpenModelica
-CC=@CC@
-AR=@AR@
-CFLAGS=@CFLAGS@
-LD=$(CC) -shared
-LDFLAGS=@LDFLAGS@ @LIBS@
-DLLEXT=@DLLEXT@
-NEED_RUNTIME=@NEED_RUNTIME@
-NEED_DGESV=@NEED_DGESV@
-FMIPLATFORM=@FMIPLATFORM@
-# Note: Simulation of the fmu with dymola does not work with -finline-small-functions (enabled by most optimization levels)
-CPPFLAGS=@CPPFLAGS@
-OMC_NUM_LINEAR_SYSTEMS=6
-OMC_NUM_NONLINEAR_SYSTEMS=0
-OMC_NUM_MIXED_SYSTEMS=0
-OMC_NDELAY_EXPRESSIONS=0
-OMC_NVAR_STRING=0
-
-override CPPFLAGS += -Iinclude/ -Iinclude/fmi2 -I.    -DOMC_MODEL_PREFIX=PW_PowerSystem -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0
-
-MAINFILE=PW_PowerSystem_FMU.c
-MAINOBJ=PW_PowerSystem_FMU.o
-CFILES=PW_PowerSystem.c PW_PowerSystem_functions.c PW_PowerSystem_records.c \
-PW_PowerSystem_01exo.c PW_PowerSystem_02nls.c PW_PowerSystem_03lsy.c PW_PowerSystem_04set.c PW_PowerSystem_05evt.c PW_PowerSystem_06inz.c PW_PowerSystem_07dly.c \
-PW_PowerSystem_08bnd.c PW_PowerSystem_09alg.c PW_PowerSystem_10asr.c PW_PowerSystem_11mix.c PW_PowerSystem_12jac.c PW_PowerSystem_13opt.c PW_PowerSystem_14lnz.c \
-PW_PowerSystem_15syn.c PW_PowerSystem_16dae.c PW_PowerSystem_init_fmu.c
-OFILES=$(CFILES:.c=.o)
-GENERATEDFILES=$(MAINFILE) PW_PowerSystem_FMU.makefile PW_PowerSystem_literals.h PW_PowerSystem_model.h PW_PowerSystem_includes.h PW_PowerSystem_functions.h  PW_PowerSystem_11mix.h PW_PowerSystem_12jac.h PW_PowerSystem_13opt.h PW_PowerSystem_init_fmu.c PW_PowerSystem_info.c $(CFILES) PW_PowerSystem_FMU.libs
-
-# FIXME: before you push into master...
-RUNTIMEDIR=include
-OMC_MINIMAL_RUNTIME=1
-OMC_FMI_RUNTIME=1
-include $(RUNTIMEDIR)/Makefile.objs
-ifneq ($(NEED_RUNTIME),)
-RUNTIMEFILES=$(FMI_ME_OBJS:%=$(RUNTIMEDIR)/%.o)
-endif
-
-PHONY: PW_PowerSystem_FMU
-PW_PowerSystem_FMU: $(MAINOBJ) PW_PowerSystem_functions.h PW_PowerSystem_literals.h $(OFILES) $(RUNTIMEFILES)
-	$(CXX) -shared -I. -o PW_PowerSystem$(DLLEXT) $(MAINOBJ) $(RUNTIMEFILES) $(OFILES) $(CPPFLAGS) -L"C:/Users/clagms/Source Control/Git_HybridCosimulation/ModelicaModels"   $(CFLAGS) $(LDFLAGS) -llis -Wl,--kill-at
-	mkdir.exe -p ../binaries/win32
-	dlltool -d PW_PowerSystem.def --dllname PW_PowerSystem$(DLLEXT) --output-lib PW_PowerSystem.lib --kill-at
-	cp PW_PowerSystem$(DLLEXT) PW_PowerSystem.lib PW_PowerSystem_FMU.libs ../binaries/win32/
-	cp C:/OpenModelica1.12.0-dev-32bit//bin/libsundials_*.dll ../binaries/win32/
-	cp C:/OpenModelica1.12.0-dev-32bit//bin/libopenblas.dll ../binaries/win32/
-	cp C:/OpenModelica1.12.0-dev-32bit//bin/libexpat*.dll ../binaries/win32/
-	cp C:/OpenModelica1.12.0-dev-32bit//bin/libgfortran*.dll ../binaries/win32/
-	cp C:/OpenModelica1.12.0-dev-32bit//bin/libquadmath*.dll ../binaries/win32/
-	cp C:/OpenModelica1.12.0-dev-32bit//bin/libwinpthread*.dll ../binaries/win32/
-	cp C:/OpenModelica1.12.0-dev-32bit//bin/zlib*.dll ../binaries/win32/
-	cp C:/OpenModelica1.12.0-dev-32bit//bin/libszip*.dll ../binaries/win32/
-	cp C:/OpenModelica1.12.0-dev-32bit//bin/libhdf5*.dll ../binaries/win32/
-	cp C:/OpenModelica1.12.0-dev-32bit//bin/libsystre*.dll ../binaries/win32/
-	cp C:/OpenModelica1.12.0-dev-32bit//bin/libtre*.dll ../binaries/win32/
-	cp C:/OpenModelica1.12.0-dev-32bit//bin/libintl*.dll ../binaries/win32/
-	cp C:/OpenModelica1.12.0-dev-32bit//bin/libiconv*.dll ../binaries/win32/
-	cp C:/OpenModelica1.12.0-dev-32bit//bin/libgcc_s_*.dll ../binaries/win32/
-	cp C:/OpenModelica1.12.0-dev-32bit//bin/libstdc*.dll ../binaries/win32/
-	rm -f PW_PowerSystem.def PW_PowerSystem.o PW_PowerSystem$(DLLEXT) $(OFILES) $(RUNTIMEFILES)
-	cd .. && rm -f ../PW_PowerSystem.fmu && zip -r ../PW_PowerSystem.fmu *
-

File diff suppressed because it is too large
+ 0 - 1359
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem.c


+ 0 - 2
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem.makefile

@@ -1,2 +0,0 @@
-# Dummy file so OMDEV Compile.bat works
-include Makefile

BIN
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem.o


+ 0 - 26
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_01exo.c

@@ -1,26 +0,0 @@
-/* External objects file */
-#include "PW_PowerSystem_model.h"
-#if defined(__cplusplus)
-extern "C" {
-#endif
-
-/* Has to be performed after _init.xml file has been read */
-void PW_PowerSystem_callExternalObjectConstructors(DATA *data, threadData_t *threadData)
-{
-  /* data->simulationInfo->extObjs = NULL; */
-  infoStreamPrint(LOG_DEBUG, 0, "call external Object Constructors");
-  infoStreamPrint(LOG_DEBUG, 0, "call external Object Constructors finished");
-}
-
-void PW_PowerSystem_callExternalObjectDestructors(DATA *data, threadData_t *threadData)
-{
-  if(data->simulationInfo->extObjs)
-  {
-    free(data->simulationInfo->extObjs);
-    data->simulationInfo->extObjs = 0;
-  }
-}
-#if defined(__cplusplus)
-}
-#endif
-

BIN
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_01exo.o


+ 0 - 12
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_02nls.c

@@ -1,12 +0,0 @@
-/* Non Linear Systems */
-#include "PW_PowerSystem_model.h"
-#include "PW_PowerSystem_12jac.h"
-#if defined(__cplusplus)
-extern "C" {
-#endif
-
-
-#if defined(__cplusplus)
-}
-#endif
-

BIN
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_02nls.o


+ 0 - 492
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_03lsy.c

@@ -1,492 +0,0 @@
-/* Linear Systems */
-#include "PW_PowerSystem_model.h"
-#include "PW_PowerSystem_12jac.h"
-#if defined(__cplusplus)
-extern "C" {
-#endif
-
-/* initial linear systems */
-
-/*
- equation index: 37
- type: SIMPLE_ASSIGN
- idealCommutingSwitch2._n2._i = (-idealCommutingSwitch2.s2) * (if convertToBoolean.y then 1.0 else idealCommutingSwitch2.Goff)
- */
-void PW_PowerSystem_eqFunction_37(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,37};
-  data->localData[0]->realVars[22] /* idealCommutingSwitch2._n2._i variable */ = ((-data->localData[0]->realVars[25] /* idealCommutingSwitch2._s2 variable */)) * ((data->localData[0]->booleanVars[0] /* convertToBoolean._y DISCRETE */?1.0:data->simulationInfo->realParameter[6] /* idealCommutingSwitch2._Goff PARAM */));
-  TRACE_POP
-}
-/*
- equation index: 38
- type: SIMPLE_ASSIGN
- idealCommutingSwitch2._n1._i = (-idealCommutingSwitch2.s1) * (if convertToBoolean.y then idealCommutingSwitch2.Goff else 1.0)
- */
-void PW_PowerSystem_eqFunction_38(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,38};
-  data->localData[0]->realVars[21] /* idealCommutingSwitch2._n1._i variable */ = ((-data->localData[0]->realVars[24] /* idealCommutingSwitch2._s1 variable */)) * ((data->localData[0]->booleanVars[0] /* convertToBoolean._y DISCRETE */?data->simulationInfo->realParameter[6] /* idealCommutingSwitch2._Goff PARAM */:1.0));
-  TRACE_POP
-}
-/*
- equation index: 39
- type: SIMPLE_ASSIGN
- idealCommutingSwitch2._p._v = idealCommutingSwitch2.s1 * (if convertToBoolean.y then 1.0 else idealCommutingSwitch2.Ron) + up_voltage.V
- */
-void PW_PowerSystem_eqFunction_39(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,39};
-  data->localData[0]->realVars[23] /* idealCommutingSwitch2._p._v variable */ = (data->localData[0]->realVars[24] /* idealCommutingSwitch2._s1 variable */) * ((data->localData[0]->booleanVars[0] /* convertToBoolean._y DISCRETE */?1.0:data->simulationInfo->realParameter[7] /* idealCommutingSwitch2._Ron PARAM */)) + data->simulationInfo->realParameter[103] /* up_voltage._V PARAM */;
-  TRACE_POP
-}
-
-void residualFunc47(void** dataIn, const double* xloc, double* res, const int* iflag)
-{
-  TRACE_PUSH
-  DATA *data = (DATA*) ((void**)dataIn[0]);
-  threadData_t *threadData = (threadData_t*) ((void**)dataIn[1]);
-  const int equationIndexes[2] = {1,47};
-  data->localData[0]->realVars[24] /* idealCommutingSwitch2._s1 variable */ = xloc[0];
-  data->localData[0]->realVars[25] /* idealCommutingSwitch2._s2 variable */ = xloc[1];
-  PW_PowerSystem_eqFunction_37(data, threadData);
-
-  PW_PowerSystem_eqFunction_38(data, threadData);
-
-  PW_PowerSystem_eqFunction_39(data, threadData);
-  res[0] = (data->localData[0]->realVars[25] /* idealCommutingSwitch2._s2 variable */) * ((data->localData[0]->booleanVars[0] /* convertToBoolean._y DISCRETE */?data->simulationInfo->realParameter[7] /* idealCommutingSwitch2._Ron PARAM */:1.0)) - data->localData[0]->realVars[23] /* idealCommutingSwitch2._p._v variable */;
-
-  res[1] = data->localData[0]->realVars[21] /* idealCommutingSwitch2._n1._i variable */ + data->localData[0]->realVars[22] /* idealCommutingSwitch2._n2._i variable */ + data->localData[0]->realVars[2] /* motor._la._i STATE(1) */;
-  TRACE_POP
-}
-void initializeStaticLSData47(void *inData, threadData_t *threadData, void *systemData)
-{
-  DATA* data = (DATA*) inData;
-  LINEAR_SYSTEM_DATA* linearSystemData = (LINEAR_SYSTEM_DATA*) systemData;
-  int i=0;
-  /* static ls data for idealCommutingSwitch2.s1 */
-  linearSystemData->nominal[i] = data->modelData->realVarsData[24].attribute /* idealCommutingSwitch2._s1 */.nominal;
-  linearSystemData->min[i]     = data->modelData->realVarsData[24].attribute /* idealCommutingSwitch2._s1 */.min;
-  linearSystemData->max[i++]   = data->modelData->realVarsData[24].attribute /* idealCommutingSwitch2._s1 */.max;
-  /* static ls data for idealCommutingSwitch2.s2 */
-  linearSystemData->nominal[i] = data->modelData->realVarsData[25].attribute /* idealCommutingSwitch2._s2 */.nominal;
-  linearSystemData->min[i]     = data->modelData->realVarsData[25].attribute /* idealCommutingSwitch2._s2 */.min;
-  linearSystemData->max[i++]   = data->modelData->realVarsData[25].attribute /* idealCommutingSwitch2._s2 */.max;
-}
-
-
-/*
- equation index: 67
- type: SIMPLE_ASSIGN
- idealCommutingSwitch1._n2._i = (-idealCommutingSwitch1.s2) * (if greaterThreshold1.y then 1.0 else idealCommutingSwitch1.Goff)
- */
-void PW_PowerSystem_eqFunction_67(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,67};
-  data->localData[0]->realVars[17] /* idealCommutingSwitch1._n2._i variable */ = ((-data->localData[0]->realVars[19] /* idealCommutingSwitch1._s2 variable */)) * ((data->localData[0]->booleanVars[1] /* greaterThreshold1._y DISCRETE */?1.0:data->simulationInfo->realParameter[3] /* idealCommutingSwitch1._Goff PARAM */));
-  TRACE_POP
-}
-/*
- equation index: 68
- type: SIMPLE_ASSIGN
- arm_sensor._p._v = idealCommutingSwitch1.s2 * (if greaterThreshold1.y then idealCommutingSwitch1.Ron else 1.0)
- */
-void PW_PowerSystem_eqFunction_68(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,68};
-  data->localData[0]->realVars[13] /* arm_sensor._p._v variable */ = (data->localData[0]->realVars[19] /* idealCommutingSwitch1._s2 variable */) * ((data->localData[0]->booleanVars[1] /* greaterThreshold1._y DISCRETE */?data->simulationInfo->realParameter[4] /* idealCommutingSwitch1._Ron PARAM */:1.0));
-  TRACE_POP
-}
-/*
- equation index: 69
- type: SIMPLE_ASSIGN
- idealCommutingSwitch1._n1._i = (-arm_current) - idealCommutingSwitch1.n2.i
- */
-void PW_PowerSystem_eqFunction_69(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,69};
-  data->localData[0]->realVars[16] /* idealCommutingSwitch1._n1._i variable */ = (-data->localData[0]->realVars[12] /* arm_current variable */) - data->localData[0]->realVars[17] /* idealCommutingSwitch1._n2._i variable */;
-  TRACE_POP
-}
-
-void residualFunc76(void** dataIn, const double* xloc, double* res, const int* iflag)
-{
-  TRACE_PUSH
-  DATA *data = (DATA*) ((void**)dataIn[0]);
-  threadData_t *threadData = (threadData_t*) ((void**)dataIn[1]);
-  const int equationIndexes[2] = {1,76};
-  data->localData[0]->realVars[19] /* idealCommutingSwitch1._s2 variable */ = xloc[0];
-  data->localData[0]->realVars[18] /* idealCommutingSwitch1._s1 variable */ = xloc[1];
-  PW_PowerSystem_eqFunction_67(data, threadData);
-
-  PW_PowerSystem_eqFunction_68(data, threadData);
-
-  PW_PowerSystem_eqFunction_69(data, threadData);
-  res[0] = ((-data->localData[0]->realVars[18] /* idealCommutingSwitch1._s1 variable */)) * ((data->localData[0]->booleanVars[1] /* greaterThreshold1._y DISCRETE */?data->simulationInfo->realParameter[3] /* idealCommutingSwitch1._Goff PARAM */:1.0)) - data->localData[0]->realVars[16] /* idealCommutingSwitch1._n1._i variable */;
-
-  res[1] = data->localData[0]->realVars[13] /* arm_sensor._p._v variable */ + (-data->simulationInfo->realParameter[103] /* up_voltage._V PARAM */) - ((data->localData[0]->realVars[18] /* idealCommutingSwitch1._s1 variable */) * ((data->localData[0]->booleanVars[1] /* greaterThreshold1._y DISCRETE */?1.0:data->simulationInfo->realParameter[4] /* idealCommutingSwitch1._Ron PARAM */)));
-  TRACE_POP
-}
-void initializeStaticLSData76(void *inData, threadData_t *threadData, void *systemData)
-{
-  DATA* data = (DATA*) inData;
-  LINEAR_SYSTEM_DATA* linearSystemData = (LINEAR_SYSTEM_DATA*) systemData;
-  int i=0;
-  /* static ls data for idealCommutingSwitch1.s2 */
-  linearSystemData->nominal[i] = data->modelData->realVarsData[19].attribute /* idealCommutingSwitch1._s2 */.nominal;
-  linearSystemData->min[i]     = data->modelData->realVarsData[19].attribute /* idealCommutingSwitch1._s2 */.min;
-  linearSystemData->max[i++]   = data->modelData->realVarsData[19].attribute /* idealCommutingSwitch1._s2 */.max;
-  /* static ls data for idealCommutingSwitch1.s1 */
-  linearSystemData->nominal[i] = data->modelData->realVarsData[18].attribute /* idealCommutingSwitch1._s1 */.nominal;
-  linearSystemData->min[i]     = data->modelData->realVarsData[18].attribute /* idealCommutingSwitch1._s1 */.min;
-  linearSystemData->max[i++]   = data->modelData->realVarsData[18].attribute /* idealCommutingSwitch1._s1 */.max;
-}
-
-
-/*
- equation index: 91
- type: SIMPLE_ASSIGN
- motor._lesigma._v = motor.lesigma.p.v - motor.airGapDC.vei
- */
-void PW_PowerSystem_eqFunction_91(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,91};
-  data->localData[0]->realVars[67] /* motor._lesigma._v variable */ = data->localData[0]->realVars[66] /* motor._lesigma._p._v variable */ - data->localData[0]->realVars[29] /* motor._airGapDC._vei variable */;
-  TRACE_POP
-}
-/*
- equation index: 92
- type: SIMPLE_ASSIGN
- der(motor._lesigma._i) = 0.3125 * motor.airGapDC.vei
- */
-void PW_PowerSystem_eqFunction_92(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,92};
-  data->localData[0]->realVars[9] /* der(motor._lesigma._i) DUMMY_DER */ = (0.3125) * (data->localData[0]->realVars[29] /* motor._airGapDC._vei variable */);
-  TRACE_POP
-}
-
-void residualFunc96(void** dataIn, const double* xloc, double* res, const int* iflag)
-{
-  TRACE_PUSH
-  DATA *data = (DATA*) ((void**)dataIn[0]);
-  threadData_t *threadData = (threadData_t*) ((void**)dataIn[1]);
-  const int equationIndexes[2] = {1,96};
-  data->localData[0]->realVars[29] /* motor._airGapDC._vei variable */ = xloc[0];
-  PW_PowerSystem_eqFunction_91(data, threadData);
-
-  PW_PowerSystem_eqFunction_92(data, threadData);
-  res[0] = (0.8) * (data->localData[0]->realVars[9] /* der(motor._lesigma._i) DUMMY_DER */) - data->localData[0]->realVars[67] /* motor._lesigma._v variable */;
-  TRACE_POP
-}
-void initializeStaticLSData96(void *inData, threadData_t *threadData, void *systemData)
-{
-  DATA* data = (DATA*) inData;
-  LINEAR_SYSTEM_DATA* linearSystemData = (LINEAR_SYSTEM_DATA*) systemData;
-  int i=0;
-  /* static ls data for motor.airGapDC.vei */
-  linearSystemData->nominal[i] = data->modelData->realVarsData[29].attribute /* motor._airGapDC._vei */.nominal;
-  linearSystemData->min[i]     = data->modelData->realVarsData[29].attribute /* motor._airGapDC._vei */.min;
-  linearSystemData->max[i++]   = data->modelData->realVarsData[29].attribute /* motor._airGapDC._vei */.max;
-}
-/* initial_lambda0 linear systems */
-/* parameter linear systems */
-/* model linear systems */
-
-/*
- equation index: 126
- type: SIMPLE_ASSIGN
- idealCommutingSwitch2._n1._i = (-idealCommutingSwitch2.s1) * (if convertToBoolean.y then idealCommutingSwitch2.Goff else 1.0)
- */
-void PW_PowerSystem_eqFunction_126(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,126};
-  data->localData[0]->realVars[21] /* idealCommutingSwitch2._n1._i variable */ = ((-data->localData[0]->realVars[24] /* idealCommutingSwitch2._s1 variable */)) * ((data->localData[0]->booleanVars[0] /* convertToBoolean._y DISCRETE */?data->simulationInfo->realParameter[6] /* idealCommutingSwitch2._Goff PARAM */:1.0));
-  TRACE_POP
-}
-/*
- equation index: 127
- type: SIMPLE_ASSIGN
- idealCommutingSwitch2._p._v = idealCommutingSwitch2.s1 * (if convertToBoolean.y then 1.0 else idealCommutingSwitch2.Ron) + up_voltage.V
- */
-void PW_PowerSystem_eqFunction_127(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,127};
-  data->localData[0]->realVars[23] /* idealCommutingSwitch2._p._v variable */ = (data->localData[0]->realVars[24] /* idealCommutingSwitch2._s1 variable */) * ((data->localData[0]->booleanVars[0] /* convertToBoolean._y DISCRETE */?1.0:data->simulationInfo->realParameter[7] /* idealCommutingSwitch2._Ron PARAM */)) + data->simulationInfo->realParameter[103] /* up_voltage._V PARAM */;
-  TRACE_POP
-}
-/*
- equation index: 128
- type: SIMPLE_ASSIGN
- idealCommutingSwitch2._n2._i = (-idealCommutingSwitch2.s2) * (if convertToBoolean.y then 1.0 else idealCommutingSwitch2.Goff)
- */
-void PW_PowerSystem_eqFunction_128(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,128};
-  data->localData[0]->realVars[22] /* idealCommutingSwitch2._n2._i variable */ = ((-data->localData[0]->realVars[25] /* idealCommutingSwitch2._s2 variable */)) * ((data->localData[0]->booleanVars[0] /* convertToBoolean._y DISCRETE */?1.0:data->simulationInfo->realParameter[6] /* idealCommutingSwitch2._Goff PARAM */));
-  TRACE_POP
-}
-
-void residualFunc136(void** dataIn, const double* xloc, double* res, const int* iflag)
-{
-  TRACE_PUSH
-  DATA *data = (DATA*) ((void**)dataIn[0]);
-  threadData_t *threadData = (threadData_t*) ((void**)dataIn[1]);
-  const int equationIndexes[2] = {1,136};
-  data->localData[0]->realVars[24] /* idealCommutingSwitch2._s1 variable */ = xloc[0];
-  data->localData[0]->realVars[25] /* idealCommutingSwitch2._s2 variable */ = xloc[1];
-  PW_PowerSystem_eqFunction_126(data, threadData);
-
-  PW_PowerSystem_eqFunction_127(data, threadData);
-
-  PW_PowerSystem_eqFunction_128(data, threadData);
-  res[0] = data->localData[0]->realVars[21] /* idealCommutingSwitch2._n1._i variable */ + data->localData[0]->realVars[22] /* idealCommutingSwitch2._n2._i variable */ + data->localData[0]->realVars[2] /* motor._la._i STATE(1) */;
-
-  res[1] = (data->localData[0]->realVars[25] /* idealCommutingSwitch2._s2 variable */) * ((data->localData[0]->booleanVars[0] /* convertToBoolean._y DISCRETE */?data->simulationInfo->realParameter[7] /* idealCommutingSwitch2._Ron PARAM */:1.0)) - data->localData[0]->realVars[23] /* idealCommutingSwitch2._p._v variable */;
-  TRACE_POP
-}
-void initializeStaticLSData136(void *inData, threadData_t *threadData, void *systemData)
-{
-  DATA* data = (DATA*) inData;
-  LINEAR_SYSTEM_DATA* linearSystemData = (LINEAR_SYSTEM_DATA*) systemData;
-  int i=0;
-  /* static ls data for idealCommutingSwitch2.s1 */
-  linearSystemData->nominal[i] = data->modelData->realVarsData[24].attribute /* idealCommutingSwitch2._s1 */.nominal;
-  linearSystemData->min[i]     = data->modelData->realVarsData[24].attribute /* idealCommutingSwitch2._s1 */.min;
-  linearSystemData->max[i++]   = data->modelData->realVarsData[24].attribute /* idealCommutingSwitch2._s1 */.max;
-  /* static ls data for idealCommutingSwitch2.s2 */
-  linearSystemData->nominal[i] = data->modelData->realVarsData[25].attribute /* idealCommutingSwitch2._s2 */.nominal;
-  linearSystemData->min[i]     = data->modelData->realVarsData[25].attribute /* idealCommutingSwitch2._s2 */.min;
-  linearSystemData->max[i++]   = data->modelData->realVarsData[25].attribute /* idealCommutingSwitch2._s2 */.max;
-}
-
-
-/*
- equation index: 157
- type: SIMPLE_ASSIGN
- idealCommutingSwitch1._n2._i = (-idealCommutingSwitch1.s2) * (if greaterThreshold1.y then 1.0 else idealCommutingSwitch1.Goff)
- */
-void PW_PowerSystem_eqFunction_157(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,157};
-  data->localData[0]->realVars[17] /* idealCommutingSwitch1._n2._i variable */ = ((-data->localData[0]->realVars[19] /* idealCommutingSwitch1._s2 variable */)) * ((data->localData[0]->booleanVars[1] /* greaterThreshold1._y DISCRETE */?1.0:data->simulationInfo->realParameter[3] /* idealCommutingSwitch1._Goff PARAM */));
-  TRACE_POP
-}
-/*
- equation index: 158
- type: SIMPLE_ASSIGN
- arm_sensor._p._v = idealCommutingSwitch1.s2 * (if greaterThreshold1.y then idealCommutingSwitch1.Ron else 1.0)
- */
-void PW_PowerSystem_eqFunction_158(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,158};
-  data->localData[0]->realVars[13] /* arm_sensor._p._v variable */ = (data->localData[0]->realVars[19] /* idealCommutingSwitch1._s2 variable */) * ((data->localData[0]->booleanVars[1] /* greaterThreshold1._y DISCRETE */?data->simulationInfo->realParameter[4] /* idealCommutingSwitch1._Ron PARAM */:1.0));
-  TRACE_POP
-}
-/*
- equation index: 159
- type: SIMPLE_ASSIGN
- idealCommutingSwitch1._n1._i = (-arm_current) - idealCommutingSwitch1.n2.i
- */
-void PW_PowerSystem_eqFunction_159(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,159};
-  data->localData[0]->realVars[16] /* idealCommutingSwitch1._n1._i variable */ = (-data->localData[0]->realVars[12] /* arm_current variable */) - data->localData[0]->realVars[17] /* idealCommutingSwitch1._n2._i variable */;
-  TRACE_POP
-}
-
-void residualFunc166(void** dataIn, const double* xloc, double* res, const int* iflag)
-{
-  TRACE_PUSH
-  DATA *data = (DATA*) ((void**)dataIn[0]);
-  threadData_t *threadData = (threadData_t*) ((void**)dataIn[1]);
-  const int equationIndexes[2] = {1,166};
-  data->localData[0]->realVars[19] /* idealCommutingSwitch1._s2 variable */ = xloc[0];
-  data->localData[0]->realVars[18] /* idealCommutingSwitch1._s1 variable */ = xloc[1];
-  PW_PowerSystem_eqFunction_157(data, threadData);
-
-  PW_PowerSystem_eqFunction_158(data, threadData);
-
-  PW_PowerSystem_eqFunction_159(data, threadData);
-  res[0] = ((-data->localData[0]->realVars[18] /* idealCommutingSwitch1._s1 variable */)) * ((data->localData[0]->booleanVars[1] /* greaterThreshold1._y DISCRETE */?data->simulationInfo->realParameter[3] /* idealCommutingSwitch1._Goff PARAM */:1.0)) - data->localData[0]->realVars[16] /* idealCommutingSwitch1._n1._i variable */;
-
-  res[1] = data->localData[0]->realVars[13] /* arm_sensor._p._v variable */ + (-data->simulationInfo->realParameter[103] /* up_voltage._V PARAM */) - ((data->localData[0]->realVars[18] /* idealCommutingSwitch1._s1 variable */) * ((data->localData[0]->booleanVars[1] /* greaterThreshold1._y DISCRETE */?1.0:data->simulationInfo->realParameter[4] /* idealCommutingSwitch1._Ron PARAM */)));
-  TRACE_POP
-}
-void initializeStaticLSData166(void *inData, threadData_t *threadData, void *systemData)
-{
-  DATA* data = (DATA*) inData;
-  LINEAR_SYSTEM_DATA* linearSystemData = (LINEAR_SYSTEM_DATA*) systemData;
-  int i=0;
-  /* static ls data for idealCommutingSwitch1.s2 */
-  linearSystemData->nominal[i] = data->modelData->realVarsData[19].attribute /* idealCommutingSwitch1._s2 */.nominal;
-  linearSystemData->min[i]     = data->modelData->realVarsData[19].attribute /* idealCommutingSwitch1._s2 */.min;
-  linearSystemData->max[i++]   = data->modelData->realVarsData[19].attribute /* idealCommutingSwitch1._s2 */.max;
-  /* static ls data for idealCommutingSwitch1.s1 */
-  linearSystemData->nominal[i] = data->modelData->realVarsData[18].attribute /* idealCommutingSwitch1._s1 */.nominal;
-  linearSystemData->min[i]     = data->modelData->realVarsData[18].attribute /* idealCommutingSwitch1._s1 */.min;
-  linearSystemData->max[i++]   = data->modelData->realVarsData[18].attribute /* idealCommutingSwitch1._s1 */.max;
-}
-
-
-/*
- equation index: 181
- type: SIMPLE_ASSIGN
- motor._airGapDC._vei = motor.lesigma.p.v - motor.lesigma.v
- */
-void PW_PowerSystem_eqFunction_181(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,181};
-  data->localData[0]->realVars[29] /* motor._airGapDC._vei variable */ = data->localData[0]->realVars[66] /* motor._lesigma._p._v variable */ - data->localData[0]->realVars[67] /* motor._lesigma._v variable */;
-  TRACE_POP
-}
-/*
- equation index: 182
- type: SIMPLE_ASSIGN
- der(motor._lesigma._i) = 1.25 * motor.lesigma.v
- */
-void PW_PowerSystem_eqFunction_182(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,182};
-  data->localData[0]->realVars[9] /* der(motor._lesigma._i) DUMMY_DER */ = (1.25) * (data->localData[0]->realVars[67] /* motor._lesigma._v variable */);
-  TRACE_POP
-}
-
-void residualFunc186(void** dataIn, const double* xloc, double* res, const int* iflag)
-{
-  TRACE_PUSH
-  DATA *data = (DATA*) ((void**)dataIn[0]);
-  threadData_t *threadData = (threadData_t*) ((void**)dataIn[1]);
-  const int equationIndexes[2] = {1,186};
-  data->localData[0]->realVars[67] /* motor._lesigma._v variable */ = xloc[0];
-  PW_PowerSystem_eqFunction_181(data, threadData);
-
-  PW_PowerSystem_eqFunction_182(data, threadData);
-  res[0] = (3.2) * (data->localData[0]->realVars[9] /* der(motor._lesigma._i) DUMMY_DER */) - data->localData[0]->realVars[29] /* motor._airGapDC._vei variable */;
-  TRACE_POP
-}
-void initializeStaticLSData186(void *inData, threadData_t *threadData, void *systemData)
-{
-  DATA* data = (DATA*) inData;
-  LINEAR_SYSTEM_DATA* linearSystemData = (LINEAR_SYSTEM_DATA*) systemData;
-  int i=0;
-  /* static ls data for motor.lesigma.v */
-  linearSystemData->nominal[i] = data->modelData->realVarsData[67].attribute /* motor._lesigma._v */.nominal;
-  linearSystemData->min[i]     = data->modelData->realVarsData[67].attribute /* motor._lesigma._v */.min;
-  linearSystemData->max[i++]   = data->modelData->realVarsData[67].attribute /* motor._lesigma._v */.max;
-}
-/* jacobians linear systems */
-
-/* function initialize linear systems */
-
-void PW_PowerSystem_initialLinearSystem(int nLinearSystems, LINEAR_SYSTEM_DATA* linearSystemData)
-{
-  /* initial linear systems */
-  assertStreamPrint(NULL, nLinearSystems > 0, "Internal Error: indexlinearSystem mismatch!");
-  linearSystemData[0].equationIndex = 47;
-  linearSystemData[0].size = 2;
-  linearSystemData[0].nnz = 0;
-  linearSystemData[0].method = 1;
-  linearSystemData[0].residualFunc = residualFunc47;
-  linearSystemData[0].strictTearingFunctionCall = NULL;
-  linearSystemData[0].analyticalJacobianColumn = PW_PowerSystem_functionJacLSJac48_column;
-  linearSystemData[0].initialAnalyticalJacobian = PW_PowerSystem_initialAnalyticJacobianLSJac48;
-  linearSystemData[0].jacobianIndex = 0;
-  linearSystemData[0].setA = NULL;//setLinearMatrixA47;
-  linearSystemData[0].setb = NULL; //setLinearVectorb47;
-  linearSystemData[0].initializeStaticLSData = initializeStaticLSData47;
-  
-  assertStreamPrint(NULL, nLinearSystems > 1, "Internal Error: indexlinearSystem mismatch!");
-  linearSystemData[1].equationIndex = 76;
-  linearSystemData[1].size = 2;
-  linearSystemData[1].nnz = 0;
-  linearSystemData[1].method = 1;
-  linearSystemData[1].residualFunc = residualFunc76;
-  linearSystemData[1].strictTearingFunctionCall = NULL;
-  linearSystemData[1].analyticalJacobianColumn = PW_PowerSystem_functionJacLSJac49_column;
-  linearSystemData[1].initialAnalyticalJacobian = PW_PowerSystem_initialAnalyticJacobianLSJac49;
-  linearSystemData[1].jacobianIndex = 1;
-  linearSystemData[1].setA = NULL;//setLinearMatrixA76;
-  linearSystemData[1].setb = NULL; //setLinearVectorb76;
-  linearSystemData[1].initializeStaticLSData = initializeStaticLSData76;
-  
-  assertStreamPrint(NULL, nLinearSystems > 2, "Internal Error: indexlinearSystem mismatch!");
-  linearSystemData[2].equationIndex = 96;
-  linearSystemData[2].size = 1;
-  linearSystemData[2].nnz = 0;
-  linearSystemData[2].method = 1;
-  linearSystemData[2].residualFunc = residualFunc96;
-  linearSystemData[2].strictTearingFunctionCall = NULL;
-  linearSystemData[2].analyticalJacobianColumn = PW_PowerSystem_functionJacLSJac50_column;
-  linearSystemData[2].initialAnalyticalJacobian = PW_PowerSystem_initialAnalyticJacobianLSJac50;
-  linearSystemData[2].jacobianIndex = 2;
-  linearSystemData[2].setA = NULL;//setLinearMatrixA96;
-  linearSystemData[2].setb = NULL; //setLinearVectorb96;
-  linearSystemData[2].initializeStaticLSData = initializeStaticLSData96;
-  /* initial_lambda0 linear systems */
-  /* parameter linear systems */
-  /* model linear systems */
-  assertStreamPrint(NULL, nLinearSystems > 3, "Internal Error: indexlinearSystem mismatch!");
-  linearSystemData[3].equationIndex = 136;
-  linearSystemData[3].size = 2;
-  linearSystemData[3].nnz = 0;
-  linearSystemData[3].method = 1;
-  linearSystemData[3].residualFunc = residualFunc136;
-  linearSystemData[3].strictTearingFunctionCall = NULL;
-  linearSystemData[3].analyticalJacobianColumn = PW_PowerSystem_functionJacLSJac51_column;
-  linearSystemData[3].initialAnalyticalJacobian = PW_PowerSystem_initialAnalyticJacobianLSJac51;
-  linearSystemData[3].jacobianIndex = 3;
-  linearSystemData[3].setA = NULL;//setLinearMatrixA136;
-  linearSystemData[3].setb = NULL; //setLinearVectorb136;
-  linearSystemData[3].initializeStaticLSData = initializeStaticLSData136;
-  
-  assertStreamPrint(NULL, nLinearSystems > 4, "Internal Error: indexlinearSystem mismatch!");
-  linearSystemData[4].equationIndex = 166;
-  linearSystemData[4].size = 2;
-  linearSystemData[4].nnz = 0;
-  linearSystemData[4].method = 1;
-  linearSystemData[4].residualFunc = residualFunc166;
-  linearSystemData[4].strictTearingFunctionCall = NULL;
-  linearSystemData[4].analyticalJacobianColumn = PW_PowerSystem_functionJacLSJac52_column;
-  linearSystemData[4].initialAnalyticalJacobian = PW_PowerSystem_initialAnalyticJacobianLSJac52;
-  linearSystemData[4].jacobianIndex = 4;
-  linearSystemData[4].setA = NULL;//setLinearMatrixA166;
-  linearSystemData[4].setb = NULL; //setLinearVectorb166;
-  linearSystemData[4].initializeStaticLSData = initializeStaticLSData166;
-  
-  assertStreamPrint(NULL, nLinearSystems > 5, "Internal Error: indexlinearSystem mismatch!");
-  linearSystemData[5].equationIndex = 186;
-  linearSystemData[5].size = 1;
-  linearSystemData[5].nnz = 0;
-  linearSystemData[5].method = 1;
-  linearSystemData[5].residualFunc = residualFunc186;
-  linearSystemData[5].strictTearingFunctionCall = NULL;
-  linearSystemData[5].analyticalJacobianColumn = PW_PowerSystem_functionJacLSJac53_column;
-  linearSystemData[5].initialAnalyticalJacobian = PW_PowerSystem_initialAnalyticJacobianLSJac53;
-  linearSystemData[5].jacobianIndex = 5;
-  linearSystemData[5].setA = NULL;//setLinearMatrixA186;
-  linearSystemData[5].setb = NULL; //setLinearVectorb186;
-  linearSystemData[5].initializeStaticLSData = initializeStaticLSData186;
-  /* jacobians linear systems */
-}
-
-#if defined(__cplusplus)
-}
-#endif
-

BIN
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_03lsy.o


+ 0 - 16
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_04set.c

@@ -1,16 +0,0 @@
-/* Initial State Set */
-#include "PW_PowerSystem_model.h"
-#include "PW_PowerSystem_11mix.h"
-#include "PW_PowerSystem_12jac.h"
-#if defined(__cplusplus)
-extern "C" {
-#endif
-/* funtion initialize state sets */
-void PW_PowerSystem_initializeStateSets(int nStateSets, STATE_SET_DATA* statesetData, DATA *data)
-{
-}
-
-#if defined(__cplusplus)
-}
-#endif
-

BIN
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_04set.o


+ 0 - 107
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_05evt.c

@@ -1,107 +0,0 @@
-/* Events: Sample, Zero Crossings, Relations, Discrete Changes */
-#include "PW_PowerSystem_model.h"
-#if defined(__cplusplus)
-extern "C" {
-#endif
-
-/* Initializes the raw time events of the simulation using the now
-   calcualted parameters. */
-void PW_PowerSystem_function_initSample(DATA *data, threadData_t *threadData)
-{
-  long i=0;
-}
-
-const char *PW_PowerSystem_zeroCrossingDescription(int i, int **out_EquationIndexes)
-{
-  static const char *res[] = {"down_input > greaterThreshold1.threshold",
-  "up_input > convertToBoolean.threshold"};
-  static const int occurEqs0[] = {1,139};
-  static const int occurEqs1[] = {1,125};
-  static const int *occurEqs[] = {occurEqs0,occurEqs1};
-  *out_EquationIndexes = (int*) occurEqs[i];
-  return res[i];
-}
-
-/* forwarded equations */
-
-int PW_PowerSystem_function_ZeroCrossingsEquations(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-
-  data->simulationInfo->callStatistics.functionZeroCrossingsEquations++;
-
-  
-  TRACE_POP
-  return 0;
-}
-
-int PW_PowerSystem_function_ZeroCrossings(DATA *data, threadData_t *threadData, double *gout)
-{
-  TRACE_PUSH
-  modelica_boolean tmp5;
-  modelica_boolean tmp6;
-  
-  data->simulationInfo->callStatistics.functionZeroCrossings++;
-  
-  tmp5 = GreaterZC(data->localData[0]->realVars[14] /* down_input variable */, data->simulationInfo->realParameter[2] /* greaterThreshold1._threshold PARAM */, data->simulationInfo->storedRelations[0]);
-  gout[0] = (tmp5) ? 1 : -1;
-  tmp6 = GreaterZC(data->localData[0]->realVars[102] /* up_input variable */, data->simulationInfo->realParameter[0] /* convertToBoolean._threshold PARAM */, data->simulationInfo->storedRelations[1]);
-  gout[1] = (tmp6) ? 1 : -1;
-  
-  TRACE_POP
-  return 0;
-}
-
-const char *PW_PowerSystem_relationDescription(int i)
-{
-  const char *res[] = {"down_input > greaterThreshold1.threshold",
-  "up_input > convertToBoolean.threshold"};
-  return res[i];
-}
-
-int PW_PowerSystem_function_updateRelations(DATA *data, threadData_t *threadData, int evalforZeroCross)
-{
-  TRACE_PUSH
-  modelica_boolean tmp7;
-  modelica_boolean tmp8;
-  
-  if(evalforZeroCross) {
-    tmp7 = GreaterZC(data->localData[0]->realVars[14] /* down_input variable */, data->simulationInfo->realParameter[2] /* greaterThreshold1._threshold PARAM */, data->simulationInfo->storedRelations[0]);
-    data->simulationInfo->relations[0] = tmp7;
-    tmp8 = GreaterZC(data->localData[0]->realVars[102] /* up_input variable */, data->simulationInfo->realParameter[0] /* convertToBoolean._threshold PARAM */, data->simulationInfo->storedRelations[1]);
-    data->simulationInfo->relations[1] = tmp8;
-  } else {
-    data->simulationInfo->relations[0] = (data->localData[0]->realVars[14] /* down_input variable */ > data->simulationInfo->realParameter[2] /* greaterThreshold1._threshold PARAM */);
-    data->simulationInfo->relations[1] = (data->localData[0]->realVars[102] /* up_input variable */ > data->simulationInfo->realParameter[0] /* convertToBoolean._threshold PARAM */);
-  }
-  
-  TRACE_POP
-  return 0;
-}
-
-int PW_PowerSystem_checkForDiscreteChanges(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  int needToIterate = 0;
-
-  infoStreamPrint(LOG_EVENTS_V, 1, "check for discrete changes at time=%.12g", data->localData[0]->timeValue);
-  if(data->localData[0]->booleanVars[0] /* convertToBoolean._y DISCRETE */ != data->simulationInfo->booleanVarsPre[0] /* convertToBoolean._y DISCRETE */)
-  {
-    infoStreamPrint(LOG_EVENTS_V, 0, "discrete var changed: convertToBoolean._y from %d to %d", data->simulationInfo->booleanVarsPre[0] /* convertToBoolean._y DISCRETE */, data->localData[0]->booleanVars[0] /* convertToBoolean._y DISCRETE */);
-    needToIterate = 1;
-  }
-  if(data->localData[0]->booleanVars[1] /* greaterThreshold1._y DISCRETE */ != data->simulationInfo->booleanVarsPre[1] /* greaterThreshold1._y DISCRETE */)
-  {
-    infoStreamPrint(LOG_EVENTS_V, 0, "discrete var changed: greaterThreshold1._y from %d to %d", data->simulationInfo->booleanVarsPre[1] /* greaterThreshold1._y DISCRETE */, data->localData[0]->booleanVars[1] /* greaterThreshold1._y DISCRETE */);
-    needToIterate = 1;
-  }
-  if (ACTIVE_STREAM(LOG_EVENTS_V)) messageClose(LOG_EVENTS_V);
-  
-  TRACE_POP
-  return needToIterate;
-}
-
-#if defined(__cplusplus)
-}
-#endif
-

BIN
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_05evt.o


File diff suppressed because it is too large
+ 0 - 1630
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_06inz.c


BIN
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_06inz.o


+ 0 - 19
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_07dly.c

@@ -1,19 +0,0 @@
-/* Delay */
-#include "PW_PowerSystem_model.h"
-#if defined(__cplusplus)
-extern "C" {
-#endif
-
-int PW_PowerSystem_function_storeDelayed(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-
-  
-  TRACE_POP
-  return 0;
-}
-
-#if defined(__cplusplus)
-}
-#endif
-

BIN
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_07dly.o


File diff suppressed because it is too large
+ 0 - 3261
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_08bnd.c


BIN
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_08bnd.o


+ 0 - 123
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_09alg.c

@@ -1,123 +0,0 @@
-/* Algebraic */
-#include "PW_PowerSystem_model.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-/* forwarded equations */
-extern void PW_PowerSystem_eqFunction_122(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_137(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_144(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_146(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_147(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_149(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_150(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_151(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_152(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_153(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_154(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_155(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_167(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_168(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_169(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_170(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_175(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_176(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_177(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_188(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_189(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_190(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_191(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_192(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_193(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_194(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_195(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_121(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_198(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_197(DATA* data, threadData_t *threadData);
-extern void PW_PowerSystem_eqFunction_196(DATA* data, threadData_t *threadData);
-
-static void functionAlg_system0(DATA *data, threadData_t *threadData)
-{
-  PW_PowerSystem_eqFunction_122(data, threadData);
-
-  PW_PowerSystem_eqFunction_137(data, threadData);
-
-  PW_PowerSystem_eqFunction_144(data, threadData);
-
-  PW_PowerSystem_eqFunction_146(data, threadData);
-
-  PW_PowerSystem_eqFunction_147(data, threadData);
-
-  PW_PowerSystem_eqFunction_149(data, threadData);
-
-  PW_PowerSystem_eqFunction_150(data, threadData);
-
-  PW_PowerSystem_eqFunction_151(data, threadData);
-
-  PW_PowerSystem_eqFunction_152(data, threadData);
-
-  PW_PowerSystem_eqFunction_153(data, threadData);
-
-  PW_PowerSystem_eqFunction_154(data, threadData);
-
-  PW_PowerSystem_eqFunction_155(data, threadData);
-
-  PW_PowerSystem_eqFunction_167(data, threadData);
-
-  PW_PowerSystem_eqFunction_168(data, threadData);
-
-  PW_PowerSystem_eqFunction_169(data, threadData);
-
-  PW_PowerSystem_eqFunction_170(data, threadData);
-
-  PW_PowerSystem_eqFunction_175(data, threadData);
-
-  PW_PowerSystem_eqFunction_176(data, threadData);
-
-  PW_PowerSystem_eqFunction_177(data, threadData);
-
-  PW_PowerSystem_eqFunction_188(data, threadData);
-
-  PW_PowerSystem_eqFunction_189(data, threadData);
-
-  PW_PowerSystem_eqFunction_190(data, threadData);
-
-  PW_PowerSystem_eqFunction_191(data, threadData);
-
-  PW_PowerSystem_eqFunction_192(data, threadData);
-
-  PW_PowerSystem_eqFunction_193(data, threadData);
-
-  PW_PowerSystem_eqFunction_194(data, threadData);
-
-  PW_PowerSystem_eqFunction_195(data, threadData);
-
-  PW_PowerSystem_eqFunction_121(data, threadData);
-
-  PW_PowerSystem_eqFunction_198(data, threadData);
-
-  PW_PowerSystem_eqFunction_197(data, threadData);
-
-  PW_PowerSystem_eqFunction_196(data, threadData);
-}
-/* for continuous time variables */
-int PW_PowerSystem_functionAlgebraics(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  
-  data->simulationInfo->callStatistics.functionAlgebraics++;
-  
-  functionAlg_system0(data, threadData);
-
-  PW_PowerSystem_function_savePreSynchronous(data, threadData);
-  
-  TRACE_POP
-  return 0;
-}
-
-#ifdef __cplusplus
-}
-#endif

BIN
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_09alg.o


+ 0 - 20
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_10asr.c

@@ -1,20 +0,0 @@
-/* Asserts */
-#include "PW_PowerSystem_model.h"
-#if defined(__cplusplus)
-extern "C" {
-#endif
-
-/* function to check assert after a step is done */
-int PW_PowerSystem_checkForAsserts(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-
-  
-  TRACE_POP
-  return 0;
-}
-
-#if defined(__cplusplus)
-}
-#endif
-

BIN
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_10asr.o


+ 0 - 10
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_11mix.c

@@ -1,10 +0,0 @@
-/* Mixed Systems */
-#include "PW_PowerSystem_model.h"
-#include "PW_PowerSystem_11mix.h"
-/* initial mixed systems */
-/* initial_lambda0 mixed systems */
-/* parameter mixed systems */
-/* model mixed systems */
-/* jacobians mixed systems */
-
-

+ 0 - 0
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_11mix.h


BIN
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_11mix.o


+ 0 - 814
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_12jac.c

@@ -1,814 +0,0 @@
-/* Jacobians */
-#include "PW_PowerSystem_model.h"
-#include "PW_PowerSystem_12jac.h"
-
-int PW_PowerSystem_initialAnalyticJacobianLSJac53(void* inData, threadData_t *threadData)
-{
-  TRACE_PUSH
-  DATA* data = ((DATA*)inData);
-  int index = PW_PowerSystem_INDEX_JAC_LSJac53;
-  const int colPtrIndex[1+1] = {0,1};
-  const int rowIndex[1] = {0};
-  int i = 0;
-  
-  data->simulationInfo->analyticJacobians[index].sizeCols = 1;
-  data->simulationInfo->analyticJacobians[index].sizeRows = 1;
-  data->simulationInfo->analyticJacobians[index].sizeTmpVars = 3;
-  data->simulationInfo->analyticJacobians[index].seedVars = (modelica_real*) calloc(1,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].resultVars = (modelica_real*) calloc(1,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].tmpVars = (modelica_real*) calloc(3,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex = (unsigned int*) malloc((1+1)*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.index = (unsigned int*) malloc(1*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.numberOfNoneZeros = 1;
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols = (unsigned int*) malloc(1*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.maxColors = 1;
-  data->simulationInfo->analyticJacobians[index].jacobian = NULL;
-  
-  /* write lead index of compressed sparse column */
-  memcpy(data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex, colPtrIndex, (1+1)*sizeof(int));
-  
-  for(i=2;i<1+1;++i)
-    data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex[i] += data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex[i-1];
-  
-  /* call sparse index */
-  memcpy(data->simulationInfo->analyticJacobians[index].sparsePattern.index, rowIndex, 1*sizeof(int));
-  
-  /* write color array */
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols[0] = 1;
-  TRACE_POP
-  return 0;
-}
-
-int PW_PowerSystem_initialAnalyticJacobianLSJac52(void* inData, threadData_t *threadData)
-{
-  TRACE_PUSH
-  DATA* data = ((DATA*)inData);
-  int index = PW_PowerSystem_INDEX_JAC_LSJac52;
-  const int colPtrIndex[1+2] = {0,2,2};
-  const int rowIndex[4] = {0,1,0,1};
-  int i = 0;
-  
-  data->simulationInfo->analyticJacobians[index].sizeCols = 2;
-  data->simulationInfo->analyticJacobians[index].sizeRows = 2;
-  data->simulationInfo->analyticJacobians[index].sizeTmpVars = 5;
-  data->simulationInfo->analyticJacobians[index].seedVars = (modelica_real*) calloc(2,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].resultVars = (modelica_real*) calloc(2,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].tmpVars = (modelica_real*) calloc(5,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex = (unsigned int*) malloc((2+1)*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.index = (unsigned int*) malloc(4*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.numberOfNoneZeros = 4;
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols = (unsigned int*) malloc(2*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.maxColors = 2;
-  data->simulationInfo->analyticJacobians[index].jacobian = NULL;
-  
-  /* write lead index of compressed sparse column */
-  memcpy(data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex, colPtrIndex, (2+1)*sizeof(int));
-  
-  for(i=2;i<2+1;++i)
-    data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex[i] += data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex[i-1];
-  
-  /* call sparse index */
-  memcpy(data->simulationInfo->analyticJacobians[index].sparsePattern.index, rowIndex, 4*sizeof(int));
-  
-  /* write color array */
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols[1] = 1;
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols[0] = 2;
-  TRACE_POP
-  return 0;
-}
-
-int PW_PowerSystem_initialAnalyticJacobianLSJac51(void* inData, threadData_t *threadData)
-{
-  TRACE_PUSH
-  DATA* data = ((DATA*)inData);
-  int index = PW_PowerSystem_INDEX_JAC_LSJac51;
-  const int colPtrIndex[1+2] = {0,2,2};
-  const int rowIndex[4] = {0,1,0,1};
-  int i = 0;
-  
-  data->simulationInfo->analyticJacobians[index].sizeCols = 2;
-  data->simulationInfo->analyticJacobians[index].sizeRows = 2;
-  data->simulationInfo->analyticJacobians[index].sizeTmpVars = 5;
-  data->simulationInfo->analyticJacobians[index].seedVars = (modelica_real*) calloc(2,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].resultVars = (modelica_real*) calloc(2,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].tmpVars = (modelica_real*) calloc(5,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex = (unsigned int*) malloc((2+1)*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.index = (unsigned int*) malloc(4*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.numberOfNoneZeros = 4;
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols = (unsigned int*) malloc(2*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.maxColors = 2;
-  data->simulationInfo->analyticJacobians[index].jacobian = NULL;
-  
-  /* write lead index of compressed sparse column */
-  memcpy(data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex, colPtrIndex, (2+1)*sizeof(int));
-  
-  for(i=2;i<2+1;++i)
-    data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex[i] += data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex[i-1];
-  
-  /* call sparse index */
-  memcpy(data->simulationInfo->analyticJacobians[index].sparsePattern.index, rowIndex, 4*sizeof(int));
-  
-  /* write color array */
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols[1] = 1;
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols[0] = 2;
-  TRACE_POP
-  return 0;
-}
-
-int PW_PowerSystem_initialAnalyticJacobianLSJac50(void* inData, threadData_t *threadData)
-{
-  TRACE_PUSH
-  DATA* data = ((DATA*)inData);
-  int index = PW_PowerSystem_INDEX_JAC_LSJac50;
-  const int colPtrIndex[1+1] = {0,1};
-  const int rowIndex[1] = {0};
-  int i = 0;
-  
-  data->simulationInfo->analyticJacobians[index].sizeCols = 1;
-  data->simulationInfo->analyticJacobians[index].sizeRows = 1;
-  data->simulationInfo->analyticJacobians[index].sizeTmpVars = 3;
-  data->simulationInfo->analyticJacobians[index].seedVars = (modelica_real*) calloc(1,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].resultVars = (modelica_real*) calloc(1,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].tmpVars = (modelica_real*) calloc(3,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex = (unsigned int*) malloc((1+1)*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.index = (unsigned int*) malloc(1*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.numberOfNoneZeros = 1;
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols = (unsigned int*) malloc(1*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.maxColors = 1;
-  data->simulationInfo->analyticJacobians[index].jacobian = NULL;
-  
-  /* write lead index of compressed sparse column */
-  memcpy(data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex, colPtrIndex, (1+1)*sizeof(int));
-  
-  for(i=2;i<1+1;++i)
-    data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex[i] += data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex[i-1];
-  
-  /* call sparse index */
-  memcpy(data->simulationInfo->analyticJacobians[index].sparsePattern.index, rowIndex, 1*sizeof(int));
-  
-  /* write color array */
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols[0] = 1;
-  TRACE_POP
-  return 0;
-}
-
-int PW_PowerSystem_initialAnalyticJacobianLSJac49(void* inData, threadData_t *threadData)
-{
-  TRACE_PUSH
-  DATA* data = ((DATA*)inData);
-  int index = PW_PowerSystem_INDEX_JAC_LSJac49;
-  const int colPtrIndex[1+2] = {0,2,2};
-  const int rowIndex[4] = {0,1,0,1};
-  int i = 0;
-  
-  data->simulationInfo->analyticJacobians[index].sizeCols = 2;
-  data->simulationInfo->analyticJacobians[index].sizeRows = 2;
-  data->simulationInfo->analyticJacobians[index].sizeTmpVars = 5;
-  data->simulationInfo->analyticJacobians[index].seedVars = (modelica_real*) calloc(2,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].resultVars = (modelica_real*) calloc(2,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].tmpVars = (modelica_real*) calloc(5,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex = (unsigned int*) malloc((2+1)*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.index = (unsigned int*) malloc(4*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.numberOfNoneZeros = 4;
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols = (unsigned int*) malloc(2*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.maxColors = 2;
-  data->simulationInfo->analyticJacobians[index].jacobian = NULL;
-  
-  /* write lead index of compressed sparse column */
-  memcpy(data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex, colPtrIndex, (2+1)*sizeof(int));
-  
-  for(i=2;i<2+1;++i)
-    data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex[i] += data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex[i-1];
-  
-  /* call sparse index */
-  memcpy(data->simulationInfo->analyticJacobians[index].sparsePattern.index, rowIndex, 4*sizeof(int));
-  
-  /* write color array */
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols[1] = 1;
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols[0] = 2;
-  TRACE_POP
-  return 0;
-}
-
-int PW_PowerSystem_initialAnalyticJacobianLSJac48(void* inData, threadData_t *threadData)
-{
-  TRACE_PUSH
-  DATA* data = ((DATA*)inData);
-  int index = PW_PowerSystem_INDEX_JAC_LSJac48;
-  const int colPtrIndex[1+2] = {0,2,2};
-  const int rowIndex[4] = {0,1,0,1};
-  int i = 0;
-  
-  data->simulationInfo->analyticJacobians[index].sizeCols = 2;
-  data->simulationInfo->analyticJacobians[index].sizeRows = 2;
-  data->simulationInfo->analyticJacobians[index].sizeTmpVars = 5;
-  data->simulationInfo->analyticJacobians[index].seedVars = (modelica_real*) calloc(2,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].resultVars = (modelica_real*) calloc(2,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].tmpVars = (modelica_real*) calloc(5,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex = (unsigned int*) malloc((2+1)*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.index = (unsigned int*) malloc(4*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.numberOfNoneZeros = 4;
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols = (unsigned int*) malloc(2*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.maxColors = 2;
-  data->simulationInfo->analyticJacobians[index].jacobian = NULL;
-  
-  /* write lead index of compressed sparse column */
-  memcpy(data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex, colPtrIndex, (2+1)*sizeof(int));
-  
-  for(i=2;i<2+1;++i)
-    data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex[i] += data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex[i-1];
-  
-  /* call sparse index */
-  memcpy(data->simulationInfo->analyticJacobians[index].sparsePattern.index, rowIndex, 4*sizeof(int));
-  
-  /* write color array */
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols[1] = 1;
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols[0] = 2;
-  TRACE_POP
-  return 0;
-}
-
-int PW_PowerSystem_initialAnalyticJacobianD(void* inData, threadData_t *threadData)
-{
-  TRACE_PUSH
-  DATA* data = ((DATA*)inData);
-  int index = PW_PowerSystem_INDEX_JAC_D;
-  const int colPtrIndex[1+3] = {0,0,0,0};
-  const int rowIndex[0] = {};
-  int i = 0;
-  
-  data->simulationInfo->analyticJacobians[index].sizeCols = 3;
-  data->simulationInfo->analyticJacobians[index].sizeRows = 2;
-  data->simulationInfo->analyticJacobians[index].sizeTmpVars = 0;
-  data->simulationInfo->analyticJacobians[index].seedVars = (modelica_real*) calloc(3,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].resultVars = (modelica_real*) calloc(2,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].tmpVars = (modelica_real*) calloc(0,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex = (unsigned int*) malloc((3+1)*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.index = (unsigned int*) malloc(0*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.numberOfNoneZeros = 0;
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols = (unsigned int*) malloc(3*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.maxColors = 1;
-  data->simulationInfo->analyticJacobians[index].jacobian = NULL;
-  
-  /* write lead index of compressed sparse column */
-  memcpy(data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex, colPtrIndex, (3+1)*sizeof(int));
-  
-  for(i=2;i<3+1;++i)
-    data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex[i] += data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex[i-1];
-  
-  /* call sparse index */
-  memcpy(data->simulationInfo->analyticJacobians[index].sparsePattern.index, rowIndex, 0*sizeof(int));
-  
-  /* write color array */
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols[1] = 1;
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols[0] = 1;
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols[2] = 1;
-  TRACE_POP
-  return 0;
-}
-
-int PW_PowerSystem_initialAnalyticJacobianC(void* inData, threadData_t *threadData)
-{
-  TRACE_PUSH
-  DATA* data = ((DATA*)inData);
-  int index = PW_PowerSystem_INDEX_JAC_C;
-  const int colPtrIndex[1+4] = {0,0,1,1,0};
-  const int rowIndex[2] = {1,0};
-  int i = 0;
-  
-  data->simulationInfo->analyticJacobians[index].sizeCols = 4;
-  data->simulationInfo->analyticJacobians[index].sizeRows = 2;
-  data->simulationInfo->analyticJacobians[index].sizeTmpVars = 0;
-  data->simulationInfo->analyticJacobians[index].seedVars = (modelica_real*) calloc(4,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].resultVars = (modelica_real*) calloc(2,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].tmpVars = (modelica_real*) calloc(0,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex = (unsigned int*) malloc((4+1)*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.index = (unsigned int*) malloc(2*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.numberOfNoneZeros = 2;
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols = (unsigned int*) malloc(4*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.maxColors = 1;
-  data->simulationInfo->analyticJacobians[index].jacobian = NULL;
-  
-  /* write lead index of compressed sparse column */
-  memcpy(data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex, colPtrIndex, (4+1)*sizeof(int));
-  
-  for(i=2;i<4+1;++i)
-    data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex[i] += data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex[i-1];
-  
-  /* call sparse index */
-  memcpy(data->simulationInfo->analyticJacobians[index].sparsePattern.index, rowIndex, 2*sizeof(int));
-  
-  /* write color array */
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols[3] = 1;
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols[1] = 1;
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols[2] = 1;
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols[0] = 1;
-  TRACE_POP
-  return 0;
-}
-
-int PW_PowerSystem_initialAnalyticJacobianB(void* inData, threadData_t *threadData)
-{
-  TRACE_PUSH
-  DATA* data = ((DATA*)inData);
-  int index = PW_PowerSystem_INDEX_JAC_B;
-  const int colPtrIndex[1+3] = {0,1,1,1};
-  const int rowIndex[3] = {2,1,2};
-  int i = 0;
-  
-  data->simulationInfo->analyticJacobians[index].sizeCols = 3;
-  data->simulationInfo->analyticJacobians[index].sizeRows = 4;
-  data->simulationInfo->analyticJacobians[index].sizeTmpVars = 0;
-  data->simulationInfo->analyticJacobians[index].seedVars = (modelica_real*) calloc(3,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].resultVars = (modelica_real*) calloc(4,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].tmpVars = (modelica_real*) calloc(0,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex = (unsigned int*) malloc((3+1)*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.index = (unsigned int*) malloc(3*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.numberOfNoneZeros = 3;
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols = (unsigned int*) malloc(3*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.maxColors = 2;
-  data->simulationInfo->analyticJacobians[index].jacobian = NULL;
-  
-  /* write lead index of compressed sparse column */
-  memcpy(data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex, colPtrIndex, (3+1)*sizeof(int));
-  
-  for(i=2;i<3+1;++i)
-    data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex[i] += data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex[i-1];
-  
-  /* call sparse index */
-  memcpy(data->simulationInfo->analyticJacobians[index].sparsePattern.index, rowIndex, 3*sizeof(int));
-  
-  /* write color array */
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols[2] = 1;
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols[1] = 2;
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols[0] = 2;
-  TRACE_POP
-  return 0;
-}
-
-int PW_PowerSystem_initialAnalyticJacobianA(void* inData, threadData_t *threadData)
-{
-  TRACE_PUSH
-  DATA* data = ((DATA*)inData);
-  int index = PW_PowerSystem_INDEX_JAC_A;
-  const int colPtrIndex[1+4] = {0,3,3,2,0};
-  const int rowIndex[8] = {0,1,2,1,2,3,1,2};
-  int i = 0;
-  
-  data->simulationInfo->analyticJacobians[index].sizeCols = 4;
-  data->simulationInfo->analyticJacobians[index].sizeRows = 4;
-  data->simulationInfo->analyticJacobians[index].sizeTmpVars = 0;
-  data->simulationInfo->analyticJacobians[index].seedVars = (modelica_real*) calloc(4,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].resultVars = (modelica_real*) calloc(4,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].tmpVars = (modelica_real*) calloc(0,sizeof(modelica_real));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex = (unsigned int*) malloc((4+1)*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.index = (unsigned int*) malloc(8*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.numberOfNoneZeros = 8;
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols = (unsigned int*) malloc(4*sizeof(int));
-  data->simulationInfo->analyticJacobians[index].sparsePattern.maxColors = 3;
-  data->simulationInfo->analyticJacobians[index].jacobian = NULL;
-  
-  /* write lead index of compressed sparse column */
-  memcpy(data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex, colPtrIndex, (4+1)*sizeof(int));
-  
-  for(i=2;i<4+1;++i)
-    data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex[i] += data->simulationInfo->analyticJacobians[index].sparsePattern.leadindex[i-1];
-  
-  /* call sparse index */
-  memcpy(data->simulationInfo->analyticJacobians[index].sparsePattern.index, rowIndex, 8*sizeof(int));
-  
-  /* write color array */
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols[0] = 1;
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols[2] = 2;
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols[3] = 3;
-  data->simulationInfo->analyticJacobians[index].sparsePattern.colorCols[1] = 3;
-  TRACE_POP
-  return 0;
-}
-
-
-/*
- equation index: 184
- type: SIMPLE_ASSIGN
- der(motor._lesigma._i._$pDERLSJac53._dummyVarLSJac53) = 1.25 * motor_lesigma_vSeedLSJac53
- */
-void PW_PowerSystem_eqFunction_184(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,184};
-  $P$DER$Pmotor$Plesigma$Pi$P$pDERLSJac53$PdummyVarLSJac53 = (1.25) * ($Pmotor_lesigma_vSeedLSJac53);
-  TRACE_POP
-}
-
-/*
- equation index: 185
- type: SIMPLE_ASSIGN
- $res._1._$pDERLSJac53._dummyVarLSJac53 = 3.2 * $DER.motor.lesigma.i.$pDERLSJac53.dummyVarLSJac53 + motor_lesigma_vSeedLSJac53
- */
-void PW_PowerSystem_eqFunction_185(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,185};
-  $P$res$P1$P$pDERLSJac53$PdummyVarLSJac53 = (3.2) * ($P$DER$Pmotor$Plesigma$Pi$P$pDERLSJac53$PdummyVarLSJac53) + $Pmotor_lesigma_vSeedLSJac53;
-  TRACE_POP
-}
-int PW_PowerSystem_functionJacLSJac53_column(void* inData, threadData_t *threadData)
-{
-  TRACE_PUSH
-
-  DATA* data = ((DATA*)inData);
-  int index = PW_PowerSystem_INDEX_JAC_LSJac53;
-  PW_PowerSystem_eqFunction_184(data, threadData);
-
-  PW_PowerSystem_eqFunction_185(data, threadData);
-  
-  TRACE_POP
-  return 0;
-}
-
-/*
- equation index: 162
- type: SIMPLE_ASSIGN
- arm_sensor._p._v._$pDERLSJac52._dummyVarLSJac52 = idealCommutingSwitch1_s2SeedLSJac52 * (if greaterThreshold1.y then idealCommutingSwitch1.Ron else 1.0)
- */
-void PW_PowerSystem_eqFunction_162(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,162};
-  $Parm_sensor$Pp$Pv$P$pDERLSJac52$PdummyVarLSJac52 = ($PidealCommutingSwitch1_s2SeedLSJac52) * ((data->localData[0]->booleanVars[1] /* greaterThreshold1._y DISCRETE */?data->simulationInfo->realParameter[4] /* idealCommutingSwitch1._Ron PARAM */:1.0));
-  TRACE_POP
-}
-
-/*
- equation index: 163
- type: SIMPLE_ASSIGN
- $res._2._$pDERLSJac52._dummyVarLSJac52 = arm_sensor.p.v.$pDERLSJac52.dummyVarLSJac52 - idealCommutingSwitch1_s1SeedLSJac52 * (if greaterThreshold1.y then 1.0 else idealCommutingSwitch1.Ron)
- */
-void PW_PowerSystem_eqFunction_163(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,163};
-  $P$res$P2$P$pDERLSJac52$PdummyVarLSJac52 = $Parm_sensor$Pp$Pv$P$pDERLSJac52$PdummyVarLSJac52 - (($PidealCommutingSwitch1_s1SeedLSJac52) * ((data->localData[0]->booleanVars[1] /* greaterThreshold1._y DISCRETE */?1.0:data->simulationInfo->realParameter[4] /* idealCommutingSwitch1._Ron PARAM */)));
-  TRACE_POP
-}
-
-/*
- equation index: 164
- type: SIMPLE_ASSIGN
- idealCommutingSwitch1._n2._i._$pDERLSJac52._dummyVarLSJac52 = (-idealCommutingSwitch1_s2SeedLSJac52) * (if greaterThreshold1.y then 1.0 else idealCommutingSwitch1.Goff)
- */
-void PW_PowerSystem_eqFunction_164(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,164};
-  $PidealCommutingSwitch1$Pn2$Pi$P$pDERLSJac52$PdummyVarLSJac52 = ((-$PidealCommutingSwitch1_s2SeedLSJac52)) * ((data->localData[0]->booleanVars[1] /* greaterThreshold1._y DISCRETE */?1.0:data->simulationInfo->realParameter[3] /* idealCommutingSwitch1._Goff PARAM */));
-  TRACE_POP
-}
-
-/*
- equation index: 165
- type: SIMPLE_ASSIGN
- $res._1._$pDERLSJac52._dummyVarLSJac52 = idealCommutingSwitch1.n2.i.$pDERLSJac52.dummyVarLSJac52 - idealCommutingSwitch1_s1SeedLSJac52 * (if greaterThreshold1.y then idealCommutingSwitch1.Goff else 1.0)
- */
-void PW_PowerSystem_eqFunction_165(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,165};
-  $P$res$P1$P$pDERLSJac52$PdummyVarLSJac52 = $PidealCommutingSwitch1$Pn2$Pi$P$pDERLSJac52$PdummyVarLSJac52 - (($PidealCommutingSwitch1_s1SeedLSJac52) * ((data->localData[0]->booleanVars[1] /* greaterThreshold1._y DISCRETE */?data->simulationInfo->realParameter[3] /* idealCommutingSwitch1._Goff PARAM */:1.0)));
-  TRACE_POP
-}
-int PW_PowerSystem_functionJacLSJac52_column(void* inData, threadData_t *threadData)
-{
-  TRACE_PUSH
-
-  DATA* data = ((DATA*)inData);
-  int index = PW_PowerSystem_INDEX_JAC_LSJac52;
-  PW_PowerSystem_eqFunction_162(data, threadData);
-
-  PW_PowerSystem_eqFunction_163(data, threadData);
-
-  PW_PowerSystem_eqFunction_164(data, threadData);
-
-  PW_PowerSystem_eqFunction_165(data, threadData);
-  
-  TRACE_POP
-  return 0;
-}
-
-/*
- equation index: 131
- type: SIMPLE_ASSIGN
- idealCommutingSwitch2._n1._i._$pDERLSJac51._dummyVarLSJac51 = (-idealCommutingSwitch2_s1SeedLSJac51) * (if convertToBoolean.y then idealCommutingSwitch2.Goff else 1.0)
- */
-void PW_PowerSystem_eqFunction_131(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,131};
-  $PidealCommutingSwitch2$Pn1$Pi$P$pDERLSJac51$PdummyVarLSJac51 = ((-$PidealCommutingSwitch2_s1SeedLSJac51)) * ((data->localData[0]->booleanVars[0] /* convertToBoolean._y DISCRETE */?data->simulationInfo->realParameter[6] /* idealCommutingSwitch2._Goff PARAM */:1.0));
-  TRACE_POP
-}
-
-/*
- equation index: 132
- type: SIMPLE_ASSIGN
- idealCommutingSwitch2._p._v._$pDERLSJac51._dummyVarLSJac51 = idealCommutingSwitch2_s1SeedLSJac51 * (if convertToBoolean.y then 1.0 else idealCommutingSwitch2.Ron)
- */
-void PW_PowerSystem_eqFunction_132(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,132};
-  $PidealCommutingSwitch2$Pp$Pv$P$pDERLSJac51$PdummyVarLSJac51 = ($PidealCommutingSwitch2_s1SeedLSJac51) * ((data->localData[0]->booleanVars[0] /* convertToBoolean._y DISCRETE */?1.0:data->simulationInfo->realParameter[7] /* idealCommutingSwitch2._Ron PARAM */));
-  TRACE_POP
-}
-
-/*
- equation index: 133
- type: SIMPLE_ASSIGN
- idealCommutingSwitch2._n2._i._$pDERLSJac51._dummyVarLSJac51 = (-idealCommutingSwitch2_s2SeedLSJac51) * (if convertToBoolean.y then 1.0 else idealCommutingSwitch2.Goff)
- */
-void PW_PowerSystem_eqFunction_133(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,133};
-  $PidealCommutingSwitch2$Pn2$Pi$P$pDERLSJac51$PdummyVarLSJac51 = ((-$PidealCommutingSwitch2_s2SeedLSJac51)) * ((data->localData[0]->booleanVars[0] /* convertToBoolean._y DISCRETE */?1.0:data->simulationInfo->realParameter[6] /* idealCommutingSwitch2._Goff PARAM */));
-  TRACE_POP
-}
-
-/*
- equation index: 134
- type: SIMPLE_ASSIGN
- $res._1._$pDERLSJac51._dummyVarLSJac51 = idealCommutingSwitch2.n2.i.$pDERLSJac51.dummyVarLSJac51 + idealCommutingSwitch2.n1.i.$pDERLSJac51.dummyVarLSJac51
- */
-void PW_PowerSystem_eqFunction_134(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,134};
-  $P$res$P1$P$pDERLSJac51$PdummyVarLSJac51 = $PidealCommutingSwitch2$Pn2$Pi$P$pDERLSJac51$PdummyVarLSJac51 + $PidealCommutingSwitch2$Pn1$Pi$P$pDERLSJac51$PdummyVarLSJac51;
-  TRACE_POP
-}
-
-/*
- equation index: 135
- type: SIMPLE_ASSIGN
- $res._2._$pDERLSJac51._dummyVarLSJac51 = idealCommutingSwitch2_s2SeedLSJac51 * (if convertToBoolean.y then idealCommutingSwitch2.Ron else 1.0) - idealCommutingSwitch2.p.v.$pDERLSJac51.dummyVarLSJac51
- */
-void PW_PowerSystem_eqFunction_135(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,135};
-  $P$res$P2$P$pDERLSJac51$PdummyVarLSJac51 = ($PidealCommutingSwitch2_s2SeedLSJac51) * ((data->localData[0]->booleanVars[0] /* convertToBoolean._y DISCRETE */?data->simulationInfo->realParameter[7] /* idealCommutingSwitch2._Ron PARAM */:1.0)) - $PidealCommutingSwitch2$Pp$Pv$P$pDERLSJac51$PdummyVarLSJac51;
-  TRACE_POP
-}
-int PW_PowerSystem_functionJacLSJac51_column(void* inData, threadData_t *threadData)
-{
-  TRACE_PUSH
-
-  DATA* data = ((DATA*)inData);
-  int index = PW_PowerSystem_INDEX_JAC_LSJac51;
-  PW_PowerSystem_eqFunction_131(data, threadData);
-
-  PW_PowerSystem_eqFunction_132(data, threadData);
-
-  PW_PowerSystem_eqFunction_133(data, threadData);
-
-  PW_PowerSystem_eqFunction_134(data, threadData);
-
-  PW_PowerSystem_eqFunction_135(data, threadData);
-  
-  TRACE_POP
-  return 0;
-}
-
-/*
- equation index: 94
- type: SIMPLE_ASSIGN
- der(motor._lesigma._i._$pDERLSJac50._dummyVarLSJac50) = 0.3125 * motor_airGapDC_veiSeedLSJac50
- */
-void PW_PowerSystem_eqFunction_94(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,94};
-  $P$DER$Pmotor$Plesigma$Pi$P$pDERLSJac50$PdummyVarLSJac50 = (0.3125) * ($Pmotor_airGapDC_veiSeedLSJac50);
-  TRACE_POP
-}
-
-/*
- equation index: 95
- type: SIMPLE_ASSIGN
- $res._1._$pDERLSJac50._dummyVarLSJac50 = 0.8 * $DER.motor.lesigma.i.$pDERLSJac50.dummyVarLSJac50 + motor_airGapDC_veiSeedLSJac50
- */
-void PW_PowerSystem_eqFunction_95(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,95};
-  $P$res$P1$P$pDERLSJac50$PdummyVarLSJac50 = (0.8) * ($P$DER$Pmotor$Plesigma$Pi$P$pDERLSJac50$PdummyVarLSJac50) + $Pmotor_airGapDC_veiSeedLSJac50;
-  TRACE_POP
-}
-int PW_PowerSystem_functionJacLSJac50_column(void* inData, threadData_t *threadData)
-{
-  TRACE_PUSH
-
-  DATA* data = ((DATA*)inData);
-  int index = PW_PowerSystem_INDEX_JAC_LSJac50;
-  PW_PowerSystem_eqFunction_94(data, threadData);
-
-  PW_PowerSystem_eqFunction_95(data, threadData);
-  
-  TRACE_POP
-  return 0;
-}
-
-/*
- equation index: 72
- type: SIMPLE_ASSIGN
- arm_sensor._p._v._$pDERLSJac49._dummyVarLSJac49 = idealCommutingSwitch1_s2SeedLSJac49 * (if greaterThreshold1.y then idealCommutingSwitch1.Ron else 1.0)
- */
-void PW_PowerSystem_eqFunction_72(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,72};
-  $Parm_sensor$Pp$Pv$P$pDERLSJac49$PdummyVarLSJac49 = ($PidealCommutingSwitch1_s2SeedLSJac49) * ((data->localData[0]->booleanVars[1] /* greaterThreshold1._y DISCRETE */?data->simulationInfo->realParameter[4] /* idealCommutingSwitch1._Ron PARAM */:1.0));
-  TRACE_POP
-}
-
-/*
- equation index: 73
- type: SIMPLE_ASSIGN
- $res._2._$pDERLSJac49._dummyVarLSJac49 = arm_sensor.p.v.$pDERLSJac49.dummyVarLSJac49 - idealCommutingSwitch1_s1SeedLSJac49 * (if greaterThreshold1.y then 1.0 else idealCommutingSwitch1.Ron)
- */
-void PW_PowerSystem_eqFunction_73(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,73};
-  $P$res$P2$P$pDERLSJac49$PdummyVarLSJac49 = $Parm_sensor$Pp$Pv$P$pDERLSJac49$PdummyVarLSJac49 - (($PidealCommutingSwitch1_s1SeedLSJac49) * ((data->localData[0]->booleanVars[1] /* greaterThreshold1._y DISCRETE */?1.0:data->simulationInfo->realParameter[4] /* idealCommutingSwitch1._Ron PARAM */)));
-  TRACE_POP
-}
-
-/*
- equation index: 74
- type: SIMPLE_ASSIGN
- idealCommutingSwitch1._n2._i._$pDERLSJac49._dummyVarLSJac49 = (-idealCommutingSwitch1_s2SeedLSJac49) * (if greaterThreshold1.y then 1.0 else idealCommutingSwitch1.Goff)
- */
-void PW_PowerSystem_eqFunction_74(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,74};
-  $PidealCommutingSwitch1$Pn2$Pi$P$pDERLSJac49$PdummyVarLSJac49 = ((-$PidealCommutingSwitch1_s2SeedLSJac49)) * ((data->localData[0]->booleanVars[1] /* greaterThreshold1._y DISCRETE */?1.0:data->simulationInfo->realParameter[3] /* idealCommutingSwitch1._Goff PARAM */));
-  TRACE_POP
-}
-
-/*
- equation index: 75
- type: SIMPLE_ASSIGN
- $res._1._$pDERLSJac49._dummyVarLSJac49 = idealCommutingSwitch1.n2.i.$pDERLSJac49.dummyVarLSJac49 - idealCommutingSwitch1_s1SeedLSJac49 * (if greaterThreshold1.y then idealCommutingSwitch1.Goff else 1.0)
- */
-void PW_PowerSystem_eqFunction_75(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,75};
-  $P$res$P1$P$pDERLSJac49$PdummyVarLSJac49 = $PidealCommutingSwitch1$Pn2$Pi$P$pDERLSJac49$PdummyVarLSJac49 - (($PidealCommutingSwitch1_s1SeedLSJac49) * ((data->localData[0]->booleanVars[1] /* greaterThreshold1._y DISCRETE */?data->simulationInfo->realParameter[3] /* idealCommutingSwitch1._Goff PARAM */:1.0)));
-  TRACE_POP
-}
-int PW_PowerSystem_functionJacLSJac49_column(void* inData, threadData_t *threadData)
-{
-  TRACE_PUSH
-
-  DATA* data = ((DATA*)inData);
-  int index = PW_PowerSystem_INDEX_JAC_LSJac49;
-  PW_PowerSystem_eqFunction_72(data, threadData);
-
-  PW_PowerSystem_eqFunction_73(data, threadData);
-
-  PW_PowerSystem_eqFunction_74(data, threadData);
-
-  PW_PowerSystem_eqFunction_75(data, threadData);
-  
-  TRACE_POP
-  return 0;
-}
-
-/*
- equation index: 42
- type: SIMPLE_ASSIGN
- idealCommutingSwitch2._n2._i._$pDERLSJac48._dummyVarLSJac48 = (-idealCommutingSwitch2_s2SeedLSJac48) * (if convertToBoolean.y then 1.0 else idealCommutingSwitch2.Goff)
- */
-void PW_PowerSystem_eqFunction_42(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,42};
-  $PidealCommutingSwitch2$Pn2$Pi$P$pDERLSJac48$PdummyVarLSJac48 = ((-$PidealCommutingSwitch2_s2SeedLSJac48)) * ((data->localData[0]->booleanVars[0] /* convertToBoolean._y DISCRETE */?1.0:data->simulationInfo->realParameter[6] /* idealCommutingSwitch2._Goff PARAM */));
-  TRACE_POP
-}
-
-/*
- equation index: 43
- type: SIMPLE_ASSIGN
- idealCommutingSwitch2._n1._i._$pDERLSJac48._dummyVarLSJac48 = (-idealCommutingSwitch2_s1SeedLSJac48) * (if convertToBoolean.y then idealCommutingSwitch2.Goff else 1.0)
- */
-void PW_PowerSystem_eqFunction_43(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,43};
-  $PidealCommutingSwitch2$Pn1$Pi$P$pDERLSJac48$PdummyVarLSJac48 = ((-$PidealCommutingSwitch2_s1SeedLSJac48)) * ((data->localData[0]->booleanVars[0] /* convertToBoolean._y DISCRETE */?data->simulationInfo->realParameter[6] /* idealCommutingSwitch2._Goff PARAM */:1.0));
-  TRACE_POP
-}
-
-/*
- equation index: 44
- type: SIMPLE_ASSIGN
- idealCommutingSwitch2._p._v._$pDERLSJac48._dummyVarLSJac48 = idealCommutingSwitch2_s1SeedLSJac48 * (if convertToBoolean.y then 1.0 else idealCommutingSwitch2.Ron)
- */
-void PW_PowerSystem_eqFunction_44(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,44};
-  $PidealCommutingSwitch2$Pp$Pv$P$pDERLSJac48$PdummyVarLSJac48 = ($PidealCommutingSwitch2_s1SeedLSJac48) * ((data->localData[0]->booleanVars[0] /* convertToBoolean._y DISCRETE */?1.0:data->simulationInfo->realParameter[7] /* idealCommutingSwitch2._Ron PARAM */));
-  TRACE_POP
-}
-
-/*
- equation index: 45
- type: SIMPLE_ASSIGN
- $res._1._$pDERLSJac48._dummyVarLSJac48 = idealCommutingSwitch2_s2SeedLSJac48 * (if convertToBoolean.y then idealCommutingSwitch2.Ron else 1.0) - idealCommutingSwitch2.p.v.$pDERLSJac48.dummyVarLSJac48
- */
-void PW_PowerSystem_eqFunction_45(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,45};
-  $P$res$P1$P$pDERLSJac48$PdummyVarLSJac48 = ($PidealCommutingSwitch2_s2SeedLSJac48) * ((data->localData[0]->booleanVars[0] /* convertToBoolean._y DISCRETE */?data->simulationInfo->realParameter[7] /* idealCommutingSwitch2._Ron PARAM */:1.0)) - $PidealCommutingSwitch2$Pp$Pv$P$pDERLSJac48$PdummyVarLSJac48;
-  TRACE_POP
-}
-
-/*
- equation index: 46
- type: SIMPLE_ASSIGN
- $res._2._$pDERLSJac48._dummyVarLSJac48 = idealCommutingSwitch2.n2.i.$pDERLSJac48.dummyVarLSJac48 + idealCommutingSwitch2.n1.i.$pDERLSJac48.dummyVarLSJac48
- */
-void PW_PowerSystem_eqFunction_46(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  const int equationIndexes[2] = {1,46};
-  $P$res$P2$P$pDERLSJac48$PdummyVarLSJac48 = $PidealCommutingSwitch2$Pn2$Pi$P$pDERLSJac48$PdummyVarLSJac48 + $PidealCommutingSwitch2$Pn1$Pi$P$pDERLSJac48$PdummyVarLSJac48;
-  TRACE_POP
-}
-int PW_PowerSystem_functionJacLSJac48_column(void* inData, threadData_t *threadData)
-{
-  TRACE_PUSH
-
-  DATA* data = ((DATA*)inData);
-  int index = PW_PowerSystem_INDEX_JAC_LSJac48;
-  PW_PowerSystem_eqFunction_42(data, threadData);
-
-  PW_PowerSystem_eqFunction_43(data, threadData);
-
-  PW_PowerSystem_eqFunction_44(data, threadData);
-
-  PW_PowerSystem_eqFunction_45(data, threadData);
-
-  PW_PowerSystem_eqFunction_46(data, threadData);
-  
-  TRACE_POP
-  return 0;
-}
-int PW_PowerSystem_functionJacD_column(void* inData, threadData_t *threadData)
-{
-  TRACE_PUSH
-
-  DATA* data = ((DATA*)inData);
-  int index = PW_PowerSystem_INDEX_JAC_D;
-  
-  TRACE_POP
-  return 0;
-}
-int PW_PowerSystem_functionJacC_column(void* inData, threadData_t *threadData)
-{
-  TRACE_PUSH
-
-  DATA* data = ((DATA*)inData);
-  int index = PW_PowerSystem_INDEX_JAC_C;
-  
-  TRACE_POP
-  return 0;
-}
-int PW_PowerSystem_functionJacB_column(void* inData, threadData_t *threadData)
-{
-  TRACE_PUSH
-
-  DATA* data = ((DATA*)inData);
-  int index = PW_PowerSystem_INDEX_JAC_B;
-  
-  TRACE_POP
-  return 0;
-}
-int PW_PowerSystem_functionJacA_column(void* inData, threadData_t *threadData)
-{
-  TRACE_PUSH
-
-  DATA* data = ((DATA*)inData);
-  int index = PW_PowerSystem_INDEX_JAC_A;
-  
-  TRACE_POP
-  return 0;
-}
-
-

+ 0 - 210
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_12jac.h

@@ -1,210 +0,0 @@
-/* Jacobians */
-static const REAL_ATTRIBUTE dummyREAL_ATTRIBUTE = omc_dummyRealAttribute;
-/* Jacobian Variables */
-#if defined(__cplusplus)
-extern "C" {
-#endif
-  #define PW_PowerSystem_INDEX_JAC_LSJac53 5
-  int PW_PowerSystem_functionJacLSJac53_column(void* data, threadData_t *threadData);
-  int PW_PowerSystem_initialAnalyticJacobianLSJac53(void* data, threadData_t *threadData);
-#if defined(__cplusplus)
-}
-#endif
-/* LSJac53 */
-#define $Pmotor_lesigma_vSeedLSJac53 data->simulationInfo->analyticJacobians[5].seedVars[0]
-#define _$P$DER$Pmotor$Plesigma$Pi$P$pDERLSJac53$PdummyVarLSJac53(i) data->simulationInfo->analyticJacobians[5].tmpVars[0]
-#define $P$DER$Pmotor$Plesigma$Pi$P$pDERLSJac53$PdummyVarLSJac53 _$P$DER$Pmotor$Plesigma$Pi$P$pDERLSJac53$PdummyVarLSJac53(0)
-
-#define _$Pmotor$PairGapDC$Pvei$P$pDERLSJac53$PdummyVarLSJac53(i) data->simulationInfo->analyticJacobians[5].tmpVars[1]
-#define $Pmotor$PairGapDC$Pvei$P$pDERLSJac53$PdummyVarLSJac53 _$Pmotor$PairGapDC$Pvei$P$pDERLSJac53$PdummyVarLSJac53(0)
-
-#define _$P$res$P1$P$pDERLSJac53$PdummyVarLSJac53(i) data->simulationInfo->analyticJacobians[5].resultVars[0]
-#define $P$res$P1$P$pDERLSJac53$PdummyVarLSJac53 _$P$res$P1$P$pDERLSJac53$PdummyVarLSJac53(0)
-
-#if defined(__cplusplus)
-extern "C" {
-#endif
-  #define PW_PowerSystem_INDEX_JAC_LSJac52 4
-  int PW_PowerSystem_functionJacLSJac52_column(void* data, threadData_t *threadData);
-  int PW_PowerSystem_initialAnalyticJacobianLSJac52(void* data, threadData_t *threadData);
-#if defined(__cplusplus)
-}
-#endif
-/* LSJac52 */
-#define $PidealCommutingSwitch1_s2SeedLSJac52 data->simulationInfo->analyticJacobians[4].seedVars[0]
-#define $PidealCommutingSwitch1_s1SeedLSJac52 data->simulationInfo->analyticJacobians[4].seedVars[1]
-#define _$PidealCommutingSwitch1$Pn1$Pi$P$pDERLSJac52$PdummyVarLSJac52(i) data->simulationInfo->analyticJacobians[4].tmpVars[0]
-#define $PidealCommutingSwitch1$Pn1$Pi$P$pDERLSJac52$PdummyVarLSJac52 _$PidealCommutingSwitch1$Pn1$Pi$P$pDERLSJac52$PdummyVarLSJac52(0)
-
-#define _$Parm_sensor$Pp$Pv$P$pDERLSJac52$PdummyVarLSJac52(i) data->simulationInfo->analyticJacobians[4].tmpVars[1]
-#define $Parm_sensor$Pp$Pv$P$pDERLSJac52$PdummyVarLSJac52 _$Parm_sensor$Pp$Pv$P$pDERLSJac52$PdummyVarLSJac52(0)
-
-#define _$PidealCommutingSwitch1$Pn2$Pi$P$pDERLSJac52$PdummyVarLSJac52(i) data->simulationInfo->analyticJacobians[4].tmpVars[2]
-#define $PidealCommutingSwitch1$Pn2$Pi$P$pDERLSJac52$PdummyVarLSJac52 _$PidealCommutingSwitch1$Pn2$Pi$P$pDERLSJac52$PdummyVarLSJac52(0)
-
-#define _$P$res$P2$P$pDERLSJac52$PdummyVarLSJac52(i) data->simulationInfo->analyticJacobians[4].resultVars[1]
-#define $P$res$P2$P$pDERLSJac52$PdummyVarLSJac52 _$P$res$P2$P$pDERLSJac52$PdummyVarLSJac52(0)
-
-#define _$P$res$P1$P$pDERLSJac52$PdummyVarLSJac52(i) data->simulationInfo->analyticJacobians[4].resultVars[0]
-#define $P$res$P1$P$pDERLSJac52$PdummyVarLSJac52 _$P$res$P1$P$pDERLSJac52$PdummyVarLSJac52(0)
-
-#if defined(__cplusplus)
-extern "C" {
-#endif
-  #define PW_PowerSystem_INDEX_JAC_LSJac51 3
-  int PW_PowerSystem_functionJacLSJac51_column(void* data, threadData_t *threadData);
-  int PW_PowerSystem_initialAnalyticJacobianLSJac51(void* data, threadData_t *threadData);
-#if defined(__cplusplus)
-}
-#endif
-/* LSJac51 */
-#define $PidealCommutingSwitch2_s1SeedLSJac51 data->simulationInfo->analyticJacobians[3].seedVars[0]
-#define $PidealCommutingSwitch2_s2SeedLSJac51 data->simulationInfo->analyticJacobians[3].seedVars[1]
-#define _$PidealCommutingSwitch2$Pn2$Pi$P$pDERLSJac51$PdummyVarLSJac51(i) data->simulationInfo->analyticJacobians[3].tmpVars[0]
-#define $PidealCommutingSwitch2$Pn2$Pi$P$pDERLSJac51$PdummyVarLSJac51 _$PidealCommutingSwitch2$Pn2$Pi$P$pDERLSJac51$PdummyVarLSJac51(0)
-
-#define _$PidealCommutingSwitch2$Pp$Pv$P$pDERLSJac51$PdummyVarLSJac51(i) data->simulationInfo->analyticJacobians[3].tmpVars[1]
-#define $PidealCommutingSwitch2$Pp$Pv$P$pDERLSJac51$PdummyVarLSJac51 _$PidealCommutingSwitch2$Pp$Pv$P$pDERLSJac51$PdummyVarLSJac51(0)
-
-#define _$PidealCommutingSwitch2$Pn1$Pi$P$pDERLSJac51$PdummyVarLSJac51(i) data->simulationInfo->analyticJacobians[3].tmpVars[2]
-#define $PidealCommutingSwitch2$Pn1$Pi$P$pDERLSJac51$PdummyVarLSJac51 _$PidealCommutingSwitch2$Pn1$Pi$P$pDERLSJac51$PdummyVarLSJac51(0)
-
-#define _$P$res$P2$P$pDERLSJac51$PdummyVarLSJac51(i) data->simulationInfo->analyticJacobians[3].resultVars[1]
-#define $P$res$P2$P$pDERLSJac51$PdummyVarLSJac51 _$P$res$P2$P$pDERLSJac51$PdummyVarLSJac51(0)
-
-#define _$P$res$P1$P$pDERLSJac51$PdummyVarLSJac51(i) data->simulationInfo->analyticJacobians[3].resultVars[0]
-#define $P$res$P1$P$pDERLSJac51$PdummyVarLSJac51 _$P$res$P1$P$pDERLSJac51$PdummyVarLSJac51(0)
-
-#if defined(__cplusplus)
-extern "C" {
-#endif
-  #define PW_PowerSystem_INDEX_JAC_LSJac50 2
-  int PW_PowerSystem_functionJacLSJac50_column(void* data, threadData_t *threadData);
-  int PW_PowerSystem_initialAnalyticJacobianLSJac50(void* data, threadData_t *threadData);
-#if defined(__cplusplus)
-}
-#endif
-/* LSJac50 */
-#define $Pmotor_airGapDC_veiSeedLSJac50 data->simulationInfo->analyticJacobians[2].seedVars[0]
-#define _$P$DER$Pmotor$Plesigma$Pi$P$pDERLSJac50$PdummyVarLSJac50(i) data->simulationInfo->analyticJacobians[2].tmpVars[0]
-#define $P$DER$Pmotor$Plesigma$Pi$P$pDERLSJac50$PdummyVarLSJac50 _$P$DER$Pmotor$Plesigma$Pi$P$pDERLSJac50$PdummyVarLSJac50(0)
-
-#define _$Pmotor$Plesigma$Pv$P$pDERLSJac50$PdummyVarLSJac50(i) data->simulationInfo->analyticJacobians[2].tmpVars[1]
-#define $Pmotor$Plesigma$Pv$P$pDERLSJac50$PdummyVarLSJac50 _$Pmotor$Plesigma$Pv$P$pDERLSJac50$PdummyVarLSJac50(0)
-
-#define _$P$res$P1$P$pDERLSJac50$PdummyVarLSJac50(i) data->simulationInfo->analyticJacobians[2].resultVars[0]
-#define $P$res$P1$P$pDERLSJac50$PdummyVarLSJac50 _$P$res$P1$P$pDERLSJac50$PdummyVarLSJac50(0)
-
-#if defined(__cplusplus)
-extern "C" {
-#endif
-  #define PW_PowerSystem_INDEX_JAC_LSJac49 1
-  int PW_PowerSystem_functionJacLSJac49_column(void* data, threadData_t *threadData);
-  int PW_PowerSystem_initialAnalyticJacobianLSJac49(void* data, threadData_t *threadData);
-#if defined(__cplusplus)
-}
-#endif
-/* LSJac49 */
-#define $PidealCommutingSwitch1_s2SeedLSJac49 data->simulationInfo->analyticJacobians[1].seedVars[0]
-#define $PidealCommutingSwitch1_s1SeedLSJac49 data->simulationInfo->analyticJacobians[1].seedVars[1]
-#define _$PidealCommutingSwitch1$Pn1$Pi$P$pDERLSJac49$PdummyVarLSJac49(i) data->simulationInfo->analyticJacobians[1].tmpVars[0]
-#define $PidealCommutingSwitch1$Pn1$Pi$P$pDERLSJac49$PdummyVarLSJac49 _$PidealCommutingSwitch1$Pn1$Pi$P$pDERLSJac49$PdummyVarLSJac49(0)
-
-#define _$Parm_sensor$Pp$Pv$P$pDERLSJac49$PdummyVarLSJac49(i) data->simulationInfo->analyticJacobians[1].tmpVars[1]
-#define $Parm_sensor$Pp$Pv$P$pDERLSJac49$PdummyVarLSJac49 _$Parm_sensor$Pp$Pv$P$pDERLSJac49$PdummyVarLSJac49(0)
-
-#define _$PidealCommutingSwitch1$Pn2$Pi$P$pDERLSJac49$PdummyVarLSJac49(i) data->simulationInfo->analyticJacobians[1].tmpVars[2]
-#define $PidealCommutingSwitch1$Pn2$Pi$P$pDERLSJac49$PdummyVarLSJac49 _$PidealCommutingSwitch1$Pn2$Pi$P$pDERLSJac49$PdummyVarLSJac49(0)
-
-#define _$P$res$P2$P$pDERLSJac49$PdummyVarLSJac49(i) data->simulationInfo->analyticJacobians[1].resultVars[1]
-#define $P$res$P2$P$pDERLSJac49$PdummyVarLSJac49 _$P$res$P2$P$pDERLSJac49$PdummyVarLSJac49(0)
-
-#define _$P$res$P1$P$pDERLSJac49$PdummyVarLSJac49(i) data->simulationInfo->analyticJacobians[1].resultVars[0]
-#define $P$res$P1$P$pDERLSJac49$PdummyVarLSJac49 _$P$res$P1$P$pDERLSJac49$PdummyVarLSJac49(0)
-
-#if defined(__cplusplus)
-extern "C" {
-#endif
-  #define PW_PowerSystem_INDEX_JAC_LSJac48 0
-  int PW_PowerSystem_functionJacLSJac48_column(void* data, threadData_t *threadData);
-  int PW_PowerSystem_initialAnalyticJacobianLSJac48(void* data, threadData_t *threadData);
-#if defined(__cplusplus)
-}
-#endif
-/* LSJac48 */
-#define $PidealCommutingSwitch2_s1SeedLSJac48 data->simulationInfo->analyticJacobians[0].seedVars[0]
-#define $PidealCommutingSwitch2_s2SeedLSJac48 data->simulationInfo->analyticJacobians[0].seedVars[1]
-#define _$PidealCommutingSwitch2$Pp$Pv$P$pDERLSJac48$PdummyVarLSJac48(i) data->simulationInfo->analyticJacobians[0].tmpVars[0]
-#define $PidealCommutingSwitch2$Pp$Pv$P$pDERLSJac48$PdummyVarLSJac48 _$PidealCommutingSwitch2$Pp$Pv$P$pDERLSJac48$PdummyVarLSJac48(0)
-
-#define _$PidealCommutingSwitch2$Pn1$Pi$P$pDERLSJac48$PdummyVarLSJac48(i) data->simulationInfo->analyticJacobians[0].tmpVars[1]
-#define $PidealCommutingSwitch2$Pn1$Pi$P$pDERLSJac48$PdummyVarLSJac48 _$PidealCommutingSwitch2$Pn1$Pi$P$pDERLSJac48$PdummyVarLSJac48(0)
-
-#define _$PidealCommutingSwitch2$Pn2$Pi$P$pDERLSJac48$PdummyVarLSJac48(i) data->simulationInfo->analyticJacobians[0].tmpVars[2]
-#define $PidealCommutingSwitch2$Pn2$Pi$P$pDERLSJac48$PdummyVarLSJac48 _$PidealCommutingSwitch2$Pn2$Pi$P$pDERLSJac48$PdummyVarLSJac48(0)
-
-#define _$P$res$P2$P$pDERLSJac48$PdummyVarLSJac48(i) data->simulationInfo->analyticJacobians[0].resultVars[1]
-#define $P$res$P2$P$pDERLSJac48$PdummyVarLSJac48 _$P$res$P2$P$pDERLSJac48$PdummyVarLSJac48(0)
-
-#define _$P$res$P1$P$pDERLSJac48$PdummyVarLSJac48(i) data->simulationInfo->analyticJacobians[0].resultVars[0]
-#define $P$res$P1$P$pDERLSJac48$PdummyVarLSJac48 _$P$res$P1$P$pDERLSJac48$PdummyVarLSJac48(0)
-
-#if defined(__cplusplus)
-extern "C" {
-#endif
-  #define PW_PowerSystem_INDEX_JAC_D 9
-  int PW_PowerSystem_functionJacD_column(void* data, threadData_t *threadData);
-  int PW_PowerSystem_initialAnalyticJacobianD(void* data, threadData_t *threadData);
-#if defined(__cplusplus)
-}
-#endif
-/* D */
-#define $Pdown_inputSeedD data->simulationInfo->analyticJacobians[9].seedVars[0]
-#define $Pinput_torqueSeedD data->simulationInfo->analyticJacobians[9].seedVars[1]
-#define $Pup_inputSeedD data->simulationInfo->analyticJacobians[9].seedVars[2]
-
-#if defined(__cplusplus)
-extern "C" {
-#endif
-  #define PW_PowerSystem_INDEX_JAC_C 8
-  int PW_PowerSystem_functionJacC_column(void* data, threadData_t *threadData);
-  int PW_PowerSystem_initialAnalyticJacobianC(void* data, threadData_t *threadData);
-#if defined(__cplusplus)
-}
-#endif
-/* C */
-#define $Pmotor_airGapDC_psi_eSeedC data->simulationInfo->analyticJacobians[8].seedVars[0]
-#define $Pmotor_inertiaRotor_wSeedC data->simulationInfo->analyticJacobians[8].seedVars[1]
-#define $Pmotor_la_iSeedC data->simulationInfo->analyticJacobians[8].seedVars[2]
-#define $Pmotor_phiMechanicalSeedC data->simulationInfo->analyticJacobians[8].seedVars[3]
-
-#if defined(__cplusplus)
-extern "C" {
-#endif
-  #define PW_PowerSystem_INDEX_JAC_B 7
-  int PW_PowerSystem_functionJacB_column(void* data, threadData_t *threadData);
-  int PW_PowerSystem_initialAnalyticJacobianB(void* data, threadData_t *threadData);
-#if defined(__cplusplus)
-}
-#endif
-/* B */
-#define $Pdown_inputSeedB data->simulationInfo->analyticJacobians[7].seedVars[0]
-#define $Pinput_torqueSeedB data->simulationInfo->analyticJacobians[7].seedVars[1]
-#define $Pup_inputSeedB data->simulationInfo->analyticJacobians[7].seedVars[2]
-
-#if defined(__cplusplus)
-extern "C" {
-#endif
-  #define PW_PowerSystem_INDEX_JAC_A 6
-  int PW_PowerSystem_functionJacA_column(void* data, threadData_t *threadData);
-  int PW_PowerSystem_initialAnalyticJacobianA(void* data, threadData_t *threadData);
-#if defined(__cplusplus)
-}
-#endif
-/* A */
-#define $Pmotor_airGapDC_psi_eSeedA data->simulationInfo->analyticJacobians[6].seedVars[0]
-#define $Pmotor_inertiaRotor_wSeedA data->simulationInfo->analyticJacobians[6].seedVars[1]
-#define $Pmotor_la_iSeedA data->simulationInfo->analyticJacobians[6].seedVars[2]
-#define $Pmotor_phiMechanicalSeedA data->simulationInfo->analyticJacobians[6].seedVars[3]
-
-

BIN
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_12jac.o


+ 0 - 14
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_13opt.c

@@ -1,14 +0,0 @@
-/* Optimization */
-#include "PW_PowerSystem_model.h"
-#include "PW_PowerSystem_12jac.h"
-#if defined(__cplusplus)
-extern "C" {
-#endif
-int PW_PowerSystem_mayer(DATA* data, modelica_real** res,short *i){return -1;}
-int PW_PowerSystem_lagrange(DATA* data, modelica_real** res, short * i1, short*i2){return -1;}
-int PW_PowerSystem_pickUpBoundsForInputsInOptimization(DATA* data, modelica_real* min, modelica_real* max, modelica_real*nominal, modelica_boolean *useNominal, char ** name, modelica_real * start, modelica_real * startTimeOpt){return -1;}
-int PW_PowerSystem_setInputData(DATA *data, const modelica_boolean file){return -1;}
-int PW_PowerSystem_getTimeGrid(DATA *data, modelica_integer * nsi, modelica_real**t){return -1;}
-#if defined(__cplusplus)
-}
-#endif

+ 0 - 11
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_13opt.h

@@ -1,11 +0,0 @@
-#if defined(__cplusplus)
-  extern "C" {
-#endif
-  int PW_PowerSystem_mayer(DATA* data, modelica_real** res, short*);
-  int PW_PowerSystem_lagrange(DATA* data, modelica_real** res, short *, short *);
-  int PW_PowerSystem_pickUpBoundsForInputsInOptimization(DATA* data, modelica_real* min, modelica_real* max, modelica_real*nominal, modelica_boolean *useNominal, char ** name, modelica_real * start, modelica_real * startTimeOpt);
-  int PW_PowerSystem_setInputData(DATA *data, const modelica_boolean file);
-  int PW_PowerSystem_getTimeGrid(DATA *data, modelica_integer * nsi, modelica_real**t);
-#if defined(__cplusplus)
-}
-#endif

BIN
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_13opt.o


File diff suppressed because it is too large
+ 0 - 44
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_14lnz.c


BIN
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_14lnz.o


+ 0 - 59
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_15syn.c

@@ -1,59 +0,0 @@
-/* Synchronous systems */
-#include "PW_PowerSystem_model.h"
-#if defined(__cplusplus)
-extern "C" {
-#endif
-
-/* Initializes the clocks of model. */
-void PW_PowerSystem_function_initSynchronous(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-  long i=0, j=0;
-  TRACE_POP
-}
-
-/* Update the base clock. */
-void PW_PowerSystem_function_updateSynchronous(DATA *data, threadData_t *threadData, long i)
-{
-  TRACE_PUSH
-  modelica_boolean ret;
-  switch (i) {
-    default:
-      throwStreamPrint(NULL, "Internal Error: unknown base partition %ld", i);
-      break;
-  }
-  TRACE_POP
-}
-
-
-
-/*Clocked systems equations */
-int PW_PowerSystem_function_equationsSynchronous(DATA *data, threadData_t *threadData, long i)
-{
-  TRACE_PUSH
-  int ret;
-
-  switch (i) {
-    default:
-      throwStreamPrint(NULL, "Internal Error: unknown sub partition %ld", i);
-      ret = 1;
-      break;
-  }
-
-  TRACE_POP
-  return ret;
-}
-
-/* pre(%v%) = %v% */
-void PW_PowerSystem_function_savePreSynchronous(DATA *data, threadData_t *threadData)
-{
-  TRACE_PUSH
-
-  
-  TRACE_POP
-}
-
-#if defined(__cplusplus)
-}
-#endif
-

BIN
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_15syn.o


+ 0 - 9
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_16dae.c

@@ -1,9 +0,0 @@
-/* DAE residuals is empty */
- #include "PW_PowerSystem_model.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-int PW_PowerSystem_initializeDAEmodeData(DATA *inData, DAEMODE_DATA* daeModeData){ return -1; }
-#ifdef __cplusplus
-}
-#endif

BIN
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_16dae.o


File diff suppressed because it is too large
+ 0 - 1792
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_FMU.c


+ 0 - 0
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_FMU.libs


BIN
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_FMU.o


File diff suppressed because it is too large
+ 0 - 248
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_functions.c


File diff suppressed because it is too large
+ 0 - 195
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_functions.h


BIN
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_functions.o


+ 0 - 0
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_includes.h


File diff suppressed because it is too large
+ 0 - 1
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_info.c


File diff suppressed because it is too large
+ 0 - 3822
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_init_fmu.c


BIN
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_init_fmu.o


+ 0 - 26
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_literals.h

@@ -1,26 +0,0 @@
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define _OMC_LIT0_data "'p"
-static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT0,2,_OMC_LIT0_data);
-#define _OMC_LIT0 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT0)
-#define _OMC_LIT1_data "'p/s"
-static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT1,4,_OMC_LIT1_data);
-#define _OMC_LIT1 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT1)
-#define _OMC_LIT2_data "ElectricCurrent"
-static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT2,15,_OMC_LIT2_data);
-#define _OMC_LIT2 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT2)
-#define _OMC_LIT3_data "A"
-static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT3,1,_OMC_LIT3_data);
-#define _OMC_LIT3 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT3)
-#define _OMC_LIT4_data "ElectricPotential"
-static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT4,17,_OMC_LIT4_data);
-#define _OMC_LIT4 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT4)
-#define _OMC_LIT5_data "V"
-static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT5,1,_OMC_LIT5_data);
-#define _OMC_LIT5 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT5)
-
-#ifdef __cplusplus
-}
-#endif

+ 0 - 102
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_model.h

@@ -1,102 +0,0 @@
-/* Simulation code for PW_PowerSystem generated by the OpenModelica Compiler v1.12.0-dev-77-g56dc448 (32-bit). */
-#if !defined(PW_PowerSystem__MODEL_H)
-#define PW_PowerSystem__MODEL_H
-#include "openmodelica.h"
-#include "openmodelica_func.h"
-#include "simulation_data.h"
-#include "simulation/simulation_info_json.h"
-#include "simulation/simulation_runtime.h"
-#include "util/omc_error.h"
-#include "simulation/solver/model_help.h"
-#include "simulation/solver/delay.h"
-#include "simulation/solver/linearSystem.h"
-#include "simulation/solver/nonlinearSystem.h"
-#include "simulation/solver/mixedSystem.h"
-
-#include <string.h>
-
-#include "PW_PowerSystem_functions.h"
-
-#define Modelica_Electrical_Machines_Interfaces_DCMachines_PowerBalanceDCEE_index 0
-#define Modelica_Electrical_Machines_Interfaces_DCMachines_PowerBalanceDCEE$motor$powerBalance_index 1
-#define Modelica_Electrical_Machines_Losses_BrushParameters_index 2
-#define Modelica_Electrical_Machines_Losses_BrushParameters$motor$brushParameters_index 3
-#define Modelica_Electrical_Machines_Losses_CoreParameters_index 4
-#define Modelica_Electrical_Machines_Losses_CoreParameters$motor$coreParameters_index 5
-#define Modelica_Electrical_Machines_Losses_FrictionParameters_index 6
-#define Modelica_Electrical_Machines_Losses_FrictionParameters$motor__frictionParameters_index 7
-#define Modelica_Electrical_Machines_Losses_StrayLoadParameters_index 8
-#define Modelica_Electrical_Machines_Losses_StrayLoadParameters$motor$strayLoadParameters_index 9
-#define Modelica_Electrical_Machines_Losses_DCMachines_brushVoltageDrop_index 10
-
-extern void PW_PowerSystem_callExternalObjectConstructors(DATA *data, threadData_t *threadData);
-extern void PW_PowerSystem_callExternalObjectDestructors(DATA *_data, threadData_t *threadData);
-#if !defined(OMC_NUM_NONLINEAR_SYSTEMS) || OMC_NUM_NONLINEAR_SYSTEMS>0
-#endif
-#if !defined(OMC_NUM_LINEAR_SYSTEMS) || OMC_NUM_LINEAR_SYSTEMS>0
-extern void PW_PowerSystem_initialLinearSystem(int nLinearSystems, LINEAR_SYSTEM_DATA *data);
-#endif
-#if !defined(OMC_NUM_MIXED_SYSTEMS) || OMC_NUM_MIXED_SYSTEMS>0
-#endif
-#if !defined(OMC_NO_STATESELECTION)
-extern void PW_PowerSystem_initializeStateSets(int nStateSets, STATE_SET_DATA* statesetData, DATA *data);
-#endif
-extern int PW_PowerSystem_functionAlgebraics(DATA *data, threadData_t *threadData);
-extern int PW_PowerSystem_function_storeDelayed(DATA *data, threadData_t *threadData);
-extern int PW_PowerSystem_updateBoundVariableAttributes(DATA *data, threadData_t *threadData);
-extern int PW_PowerSystem_functionInitialEquations(DATA *data, threadData_t *threadData);
-extern int PW_PowerSystem_functionInitialEquations_lambda0(DATA *data, threadData_t *threadData);
-extern int PW_PowerSystem_functionRemovedInitialEquations(DATA *data, threadData_t *threadData);
-extern int PW_PowerSystem_updateBoundParameters(DATA *data, threadData_t *threadData);
-extern int PW_PowerSystem_checkForAsserts(DATA *data, threadData_t *threadData);
-extern int PW_PowerSystem_function_ZeroCrossingsEquations(DATA *data, threadData_t *threadData);
-extern int PW_PowerSystem_function_ZeroCrossings(DATA *data, threadData_t *threadData, double* gout);
-extern int PW_PowerSystem_function_updateRelations(DATA *data, threadData_t *threadData, int evalZeroCross);
-extern int PW_PowerSystem_checkForDiscreteChanges(DATA *data, threadData_t *threadData);
-extern const char* PW_PowerSystem_zeroCrossingDescription(int i, int **out_EquationIndexes);
-extern const char* PW_PowerSystem_relationDescription(int i);
-extern void PW_PowerSystem_function_initSample(DATA *data, threadData_t *threadData);
-extern int PW_PowerSystem_initialAnalyticJacobianG(void* data, threadData_t *threadData);
-extern int PW_PowerSystem_initialAnalyticJacobianA(void* data, threadData_t *threadData);
-extern int PW_PowerSystem_initialAnalyticJacobianB(void* data, threadData_t *threadData);
-extern int PW_PowerSystem_initialAnalyticJacobianC(void* data, threadData_t *threadData);
-extern int PW_PowerSystem_initialAnalyticJacobianD(void* data, threadData_t *threadData);
-extern int PW_PowerSystem_functionJacG_column(void* data, threadData_t *threadData);
-extern int PW_PowerSystem_functionJacA_column(void* data, threadData_t *threadData);
-extern int PW_PowerSystem_functionJacB_column(void* data, threadData_t *threadData);
-extern int PW_PowerSystem_functionJacC_column(void* data, threadData_t *threadData);
-extern int PW_PowerSystem_functionJacD_column(void* data, threadData_t *threadData);
-extern const char* PW_PowerSystem_linear_model_frame(void);
-extern const char* PW_PowerSystem_linear_model_datarecovery_frame(void);
-extern int PW_PowerSystem_mayer(DATA* data, modelica_real** res, short *);
-extern int PW_PowerSystem_lagrange(DATA* data, modelica_real** res, short *, short *);
-extern int PW_PowerSystem_pickUpBoundsForInputsInOptimization(DATA* data, modelica_real* min, modelica_real* max, modelica_real*nominal, modelica_boolean *useNominal, char ** name, modelica_real * start, modelica_real * startTimeOpt);
-extern int PW_PowerSystem_setInputData(DATA *data, const modelica_boolean file);
-extern int PW_PowerSystem_getTimeGrid(DATA *data, modelica_integer * nsi, modelica_real**t);
-extern void PW_PowerSystem_function_initSynchronous(DATA * data, threadData_t *threadData);
-extern void PW_PowerSystem_function_updateSynchronous(DATA * data, threadData_t *threadData, long i);
-extern int PW_PowerSystem_function_equationsSynchronous(DATA * data, threadData_t *threadData, long i);
-extern void PW_PowerSystem_read_input_fmu(MODEL_DATA* modelData, SIMULATION_INFO* simulationData);
-extern void PW_PowerSystem_function_savePreSynchronous(DATA *data, threadData_t *threadData);
-extern int PW_PowerSystem_inputNames(DATA* data, char ** names);
-extern int PW_PowerSystem_initializeDAEmodeData(DATA *data, DAEMODE_DATA*);
-extern int PW_PowerSystem_functionLocalKnownVars(DATA*, threadData_t*);
-
-#include "PW_PowerSystem_literals.h"
-
-
-
-
-#if defined(HPCOM) && !defined(_OPENMP)
-  #error "HPCOM requires OpenMP or the results are wrong"
-#endif
-#if defined(_OPENMP)
-  #include <omp.h>
-#else
-  /* dummy omp defines */
-  #define omp_get_max_threads() 1
-#endif
-
-#endif
-
-

+ 0 - 92
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_records.c

@@ -1,92 +0,0 @@
-/* Additional record code for PW_PowerSystem generated by the OpenModelica Compiler v1.12.0-dev-77-g56dc448 (32-bit). */
-
-#include "meta/meta_modelica.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define Modelica_Electrical_Machines_Interfaces_DCMachines_PowerBalanceDCEE__desc_added 1
-const char* Modelica_Electrical_Machines_Interfaces_DCMachines_PowerBalanceDCEE__desc__fields[12] = {"lossPowerArmature","lossPowerBrush","lossPowerCore","lossPowerExcitation","lossPowerFriction","lossPowerStrayLoad","lossPowerTotal","powerArmature","powerExcitation","powerInertiaRotor","powerInertiaStator","powerMechanical"};
-struct record_description Modelica_Electrical_Machines_Interfaces_DCMachines_PowerBalanceDCEE__desc = {
-  "Modelica_Electrical_Machines_Interfaces_DCMachines_PowerBalanceDCEE", /* package_record__X */
-  "Modelica.Electrical.Machines.Interfaces.DCMachines.PowerBalanceDCEE", /* package.record_X */
-  Modelica_Electrical_Machines_Interfaces_DCMachines_PowerBalanceDCEE__desc__fields
-};
-
-#define Modelica_Electrical_Machines_Losses_BrushParameters__desc_added 1
-const char* Modelica_Electrical_Machines_Losses_BrushParameters__desc__fields[2] = {"ILinear","V"};
-struct record_description Modelica_Electrical_Machines_Losses_BrushParameters__desc = {
-  "Modelica_Electrical_Machines_Losses_BrushParameters", /* package_record__X */
-  "Modelica.Electrical.Machines.Losses.BrushParameters", /* package.record_X */
-  Modelica_Electrical_Machines_Losses_BrushParameters__desc__fields
-};
-
-#define Modelica_Electrical_Machines_Losses_CoreParameters__desc_added 1
-const char* Modelica_Electrical_Machines_Losses_CoreParameters__desc__fields[7] = {"GcRef","PRef","VRef","m","ratioHysteresis","wMin","wRef"};
-struct record_description Modelica_Electrical_Machines_Losses_CoreParameters__desc = {
-  "Modelica_Electrical_Machines_Losses_CoreParameters", /* package_record__X */
-  "Modelica.Electrical.Machines.Losses.CoreParameters", /* package.record_X */
-  Modelica_Electrical_Machines_Losses_CoreParameters__desc__fields
-};
-
-#define Modelica_Electrical_Machines_Losses_FrictionParameters__desc_added 1
-const char* Modelica_Electrical_Machines_Losses_FrictionParameters__desc__fields[7] = {"PRef","linear","power_w","tauLinear","tauRef","wLinear","wRef"};
-struct record_description Modelica_Electrical_Machines_Losses_FrictionParameters__desc = {
-  "Modelica_Electrical_Machines_Losses_FrictionParameters", /* package_record__X */
-  "Modelica.Electrical.Machines.Losses.FrictionParameters", /* package.record_X */
-  Modelica_Electrical_Machines_Losses_FrictionParameters__desc__fields
-};
-
-#define Modelica_Electrical_Machines_Losses_StrayLoadParameters__desc_added 1
-const char* Modelica_Electrical_Machines_Losses_StrayLoadParameters__desc__fields[5] = {"IRef","PRef","power_w","tauRef","wRef"};
-struct record_description Modelica_Electrical_Machines_Losses_StrayLoadParameters__desc = {
-  "Modelica_Electrical_Machines_Losses_StrayLoadParameters", /* package_record__X */
-  "Modelica.Electrical.Machines.Losses.StrayLoadParameters", /* package.record_X */
-  Modelica_Electrical_Machines_Losses_StrayLoadParameters__desc__fields
-};
-
-#define Modelica_Electrical_Machines_Interfaces_DCMachines_PowerBalanceDCEE$motor$powerBalance__desc_added 1
-const char* Modelica_Electrical_Machines_Interfaces_DCMachines_PowerBalanceDCEE$motor$powerBalance__desc__fields[12] = {"lossPowerArmature","lossPowerBrush","lossPowerCore","lossPowerExcitation","lossPowerFriction","lossPowerStrayLoad","lossPowerTotal","powerArmature","powerExcitation","powerInertiaRotor","powerInertiaStator","powerMechanical"};
-struct record_description Modelica_Electrical_Machines_Interfaces_DCMachines_PowerBalanceDCEE$motor$powerBalance__desc = {
-  "Modelica_Electrical_Machines_Interfaces_DCMachines_PowerBalanceDCEE$motor$powerBalance", /* package_record__X */
-  "Modelica.Electrical.Machines.Interfaces.DCMachines.PowerBalanceDCEE$motor$powerBalance", /* package.record_X */
-  Modelica_Electrical_Machines_Interfaces_DCMachines_PowerBalanceDCEE$motor$powerBalance__desc__fields
-};
-
-#define Modelica_Electrical_Machines_Losses_BrushParameters$motor$brushParameters__desc_added 1
-const char* Modelica_Electrical_Machines_Losses_BrushParameters$motor$brushParameters__desc__fields[2] = {"ILinear","V"};
-struct record_description Modelica_Electrical_Machines_Losses_BrushParameters$motor$brushParameters__desc = {
-  "Modelica_Electrical_Machines_Losses_BrushParameters$motor$brushParameters", /* package_record__X */
-  "Modelica.Electrical.Machines.Losses.BrushParameters$motor$brushParameters", /* package.record_X */
-  Modelica_Electrical_Machines_Losses_BrushParameters$motor$brushParameters__desc__fields
-};
-
-#define Modelica_Electrical_Machines_Losses_CoreParameters$motor$coreParameters__desc_added 1
-const char* Modelica_Electrical_Machines_Losses_CoreParameters$motor$coreParameters__desc__fields[7] = {"GcRef","PRef","VRef","m","ratioHysteresis","wMin","wRef"};
-struct record_description Modelica_Electrical_Machines_Losses_CoreParameters$motor$coreParameters__desc = {
-  "Modelica_Electrical_Machines_Losses_CoreParameters$motor$coreParameters", /* package_record__X */
-  "Modelica.Electrical.Machines.Losses.CoreParameters$motor$coreParameters", /* package.record_X */
-  Modelica_Electrical_Machines_Losses_CoreParameters$motor$coreParameters__desc__fields
-};
-
-#define Modelica_Electrical_Machines_Losses_FrictionParameters$motor__frictionParameters__desc_added 1
-const char* Modelica_Electrical_Machines_Losses_FrictionParameters$motor__frictionParameters__desc__fields[7] = {"PRef","linear","power_w","tauLinear","tauRef","wLinear","wRef"};
-struct record_description Modelica_Electrical_Machines_Losses_FrictionParameters$motor__frictionParameters__desc = {
-  "Modelica_Electrical_Machines_Losses_FrictionParameters$motor__frictionParameters", /* package_record__X */
-  "Modelica.Electrical.Machines.Losses.FrictionParameters$motor_frictionParameters", /* package.record_X */
-  Modelica_Electrical_Machines_Losses_FrictionParameters$motor__frictionParameters__desc__fields
-};
-
-#define Modelica_Electrical_Machines_Losses_StrayLoadParameters$motor$strayLoadParameters__desc_added 1
-const char* Modelica_Electrical_Machines_Losses_StrayLoadParameters$motor$strayLoadParameters__desc__fields[5] = {"IRef","PRef","power_w","tauRef","wRef"};
-struct record_description Modelica_Electrical_Machines_Losses_StrayLoadParameters$motor$strayLoadParameters__desc = {
-  "Modelica_Electrical_Machines_Losses_StrayLoadParameters$motor$strayLoadParameters", /* package_record__X */
-  "Modelica.Electrical.Machines.Losses.StrayLoadParameters$motor$strayLoadParameters", /* package.record_X */
-  Modelica_Electrical_Machines_Losses_StrayLoadParameters$motor$strayLoadParameters__desc__fields
-};
-
-#ifdef __cplusplus
-}
-#endif
-

BIN
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/PW_PowerSystem_records.o


+ 0 - 242
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/configure.ac

@@ -1,242 +0,0 @@
- Process this file with autoconf to produce a configure script.
-
-AC_PREREQ([2.63])
-AC_INIT([OpenModelica Exported FMU],[dev],[https://trac.openmodelica.org/OpenModelica],[openmodelica],[https://openmodelica.org])
-
-AC_SUBST(AR)
-AC_SUBST(DLLEXT)
-AC_SUBST(FMIPLATFORM)
-AC_SUBST(NEED_DGESV)
-AC_SUBST(NEED_RUNTIME)
-AC_SUBST(LIBTYPE_STATIC)
-AC_SUBST(LIBTYPE_DYNAMIC)
-
-AC_CANONICAL_BUILD
-AC_CANONICAL_HOST
-AC_CANONICAL_TARGET
-
-build_short=$build_cpu-$build_os
-if test "$host_os" = "none"; then
-  host_short=$host_cpu
-else
-  host_short=$host_cpu-$host_os
-fi
-
-echo "build_short: $build_short"
-echo "host_short: $host_short"
-
-ORIGCC="$CC"
-
-dnl Checks for programs.
-AC_LANG([C])
-AC_PROG_CC
-AC_PROG_CPP
-AC_PROG_MAKE_SET
-
-AC_MSG_CHECKING([for cross-compilation flags])
-if test "$host_short" = "$build_short"; then
-  # Not cross-compiling or found a good tool; don't need special flags
-  AC_MSG_RESULT([not cross-compiling])
-elif echo "$CC" | grep -q "$host_short" || echo "$CC" | grep -q "$host" || echo "$CC" | grep -q "$host_cpu"; then
-  AC_MSG_RESULT([not needed; $CC contains the prefix])
-elif test "$host_os" = "$build_os" && test "$host_short" = "x86_64"; then
-  CFLAGS_BEFORE="$CFLAGS"
-  CFLAGS="$CFLAGS -m64"
-  AC_TRY_LINK([void abc() {}], [abc();], [AC_MSG_RESULT([-m64])], [AC_MSG_ERROR([-m64 not working])])
-elif test "$host_os" = "$build_os" && echo "$host_short" | grep -q "i.86"; then
-  CFLAGS_BEFORE="$CFLAGS"
-  CFLAGS="$CFLAGS -m32"
-  LDFLAGS="$LDFLAGS -m32"
-  AC_TRY_LINK([void abc() {}], [abc();], [AC_MSG_RESULT([-m32])], [AC_MSG_ERROR([-m32 not working])])
-elif test ! -z "$ORIGCC"; then
-  AC_MSG_RESULT([user sent an explicit CC=$ORIGCC. Trusting the user.])
-else
-  CC="$host-cc"
-  if which $host-cc > /dev/null 2>&1; then
-    CC="$host-cc"
-  else
-    CC=clang
-    CFLAGS="$CFLAGS -target $host"
-  fi
-  AC_TRY_LINK([void abc() {}], [abc();], [AC_MSG_RESULT([$CC $CFLAGS])], [AC_MSG_ERROR([unknown platform and $CC $CFLAGS not working])])
-fi
-
-if false; then
-CC_BEFORE="$CC"
-CC="clang -target $host_short"
-AC_MSG_CHECKING([looking for $CC to replace $CC_BEFORE])
-AC_TRY_LINK([void abc() {}], [abc();], [AC_MSG_RESULT([yes])], [CC="$CC_BEFORE";AC_MSG_RESULT([no])])
-fi
-
-CFLAGS_BEFORE="$CFLAGS"
-CFLAGS="$CFLAGS -Werror"
-AC_MSG_CHECKING([if -Werror works])
-AC_TRY_LINK([void abc() {}], [abc();], [AC_MSG_RESULT([ok])], [AC_MSG_ERROR([failed (check your CFLAGS=$CFLAGS LDFLAGS=$LDFLAGS CPPFLAGS=$CPPFLAGS)])])
-CFLAGS="$CFLAGS_BEFORE"
-
-LDFLAGS_BEFORE="$LDFLAGS"
-LDFLAGS="$LDFLAGS -Wl,--no-undefined -Werror"
-AC_MSG_CHECKING([looking for --no-undefined])
-AC_TRY_LINK([void abc() {}], [abc();], [AC_MSG_RESULT([yes]);LD_NOUNDEFINED=" -Wl,--no-undefined"], [AC_MSG_RESULT([no])])
-LDFLAGS="$LDFLAGS_BEFORE"
-
-dnl Enable to handle AVR pre-processor not handling $ as symbol names; but fails on assembler anyway
-
-AC_MSG_CHECKING([looking for dollars in identifiers])
-AC_TRY_LINK([
-void $a$b$c() {}
-#define $a$b$c$d $a$b$c
-], [$a$b$c$d();], [AC_MSG_RESULT([not needed])], [
-  CPPFLAGS="$CPPFLAGS -fdollars-in-identifiers"
-  AC_TRY_LINK([
-    void fx() {}
-    #define \$a\$b fx
-    ], [\$a\$b();], [AC_MSG_RESULT([CPPFLAGS: -fdollars-in-identifiers])], [
-    AC_MSG_ERROR([the compiler does not handle dollar in identifiers])
-  ])
-])
-
-dnl Disables the default CFLAGS="-g -O2"
-
-AC_ARG_ENABLE(static, [  --enable-static], [
-  if test "$enableval" = "yes"; then
-    LIBTYPE_STATIC=1
-  elif test "$enableval" = "no"; then
-    LIBTYPE_STATIC=0
-  else
-    AC_MSG_ERROR([Unknown value --enable-static=$withval (use yes or no, or no value)])
-  fi
-], [LIBTYPE_STATIC=0])
-
-AC_ARG_ENABLE(shared, [  --disable-shared], [
-  if test "$enableval" = "yes"; then
-    LIBTYPE_DYNAMIC=1
-  elif test "$enableval" = "no"; then
-    LIBTYPE_DYNAMIC=0
-  else
-    AC_MSG_ERROR([Unknown value --enable-dynamic=$withval (use yes or no, or no value)])
-  fi
-], [LIBTYPE_DYNAMIC=1])
-
-if test "$LIBTYPE_DYNAMIC" = 0 -a "$LIBTYPE_STATIC" = 0; then
-  AC_MSG_ERROR([Need to --enable-shared or --enable-static (both were disabled)])
-fi
-
-if test "$LIBTYPE_DYNAMIC" = 1; then
-  LDFLAGS="$LDFLAGS -shared"
-fi
-
-if test "$LIBTYPE_STATIC" = 1; then
-  AC_CHECK_TOOL([AR], [ar], [:])
-  if test "$AR" = ":"; then
-    AC_MSG_ERROR([Did not find a suitable ar])
-  fi
-fi
-
-
-TRY_FLAGS="-fno-stack-protector -Wno-parentheses-equality -Wno-unused-variable -fPIC"
-
-for flag in $TRY_FLAGS; do
-  OLD_CFLAGS="$CFLAGS"
-  CFLAGS="$RUNTIMECFLAGS $flag -Werror"
-  AC_TRY_LINK([], [return 0;], [CFLAGS="$OLD_CFLAGS $flag"],[CFLAGS="$OLD_CFLAGS"])
-done
-
-TRY_FLAGS="-static-libgcc"
-for flag in $TRY_FLAGS; do
-  OLD_LDFLAGS="$LDFLAGS"
-  LDFLAGS="$LDFLAGS $flag"
-  AC_TRY_LINK([], [return 0;], [LDFLAGS="$OLD_LDFLAGS $flag"],[LDFLAGS="$OLD_LDFLAGS"])
-done
-
-if test "`getconf LONG_BIT`" = "32"; then
-dnl Simulations spin forever unless -msse2 -mfpmath=sse is set
-
-CFLAGS_BEFORE=$CFLAGS
-CFLAGS="-mfpmath=sse -Werror"
-AC_MSG_CHECKING([for floating point bugs])
-AC_TRY_LINK([int abc() {}], [abc();], [AC_MSG_RESULT([force SSE2]); FPMATHFORTRAN="-msse -mfpmath=sse"], [AC_MSG_RESULT([no]); FPMATHFORTRAN=-ffloat-store])
-CFLAGS=$CFLAGS_BEFORE
-
-fi # End x86-specific CFLAGS
-
-dnl Checks for libraries.
-
-dnl Checks for header files.
-AC_HEADER_STDC
-
-dnl Checks for typedefs, structures, and compiler characteristics.
-AC_C_CONST
-AC_TYPE_SIZE_T
-
-dnl Checks for library functions.
-AC_FUNC_VPRINTF
-AC_CHECK_FUNCS(strdup strerror)
-
-m4_include([../../../../m4/lapack.m4])
-OMC_AC_LAPACK(static)
-if test -z "$LD_LAPACK"; then
-  NEED_DGESV=1
-else
-  LIBS="$LIBS $LD_LAPACK"
-fi
-
-AC_MSG_CHECKING([for static pthreads])
-OLDLIBS=$LIBS
-LIBS="$OLDLIBS -Wl,-Bstatic -lpthread -Wl,-Bdynamic"
-AC_LINK_IFELSE([AC_LANG_CALL([], [pthread_mutex_lock])],[AC_MSG_RESULT([OK (static)])],[
-  AC_MSG_RESULT([no])
-  LIBS="$OLDLIBS"
-  AC_CHECK_LIB(pthread,[pthread_mutex_lock],[],[
-    if test "$LIBTYPE_DYNAMIC" = 1; then
-      AC_MSG_ERROR([pthreads not found and requested dynamic linking])
-    else
-      AC_MSG_RESULT([pthreads disabled])
-      CPPFLAGS="$CPPFLAGS -DOMC_NO_THREADS"
-    fi
-  ])
-])
-
-AC_CHECK_LIB([m],[cos],[],[AC_MSG_ERROR([math library not found])])
-
-AC_MSG_CHECKING([for filesystem access])
-AC_TRY_LINK([#include <stdio.h>], [fopen("a.txt", "r");], [AC_MSG_RESULT([OK])], [AC_MSG_RESULT([no]); CPPFLAGS="$CPPFLAGS -DOMC_NO_FILESYSTEM"])
-
-AC_ARG_WITH(dynamic-om-runtime,  [  --with-dynamic-om-runtime    (uses the OMC runtime as a shared object instead of compiling it statically into the the FMU.)],[OPENMODELICADYNAMIC=yes],[OPENMODELICADYNAMIC=no])
-
-if test "$OPENMODELICADYNAMIC" = "no"; then
-  CPPFLAGS="$CPPFLAGS -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1"
-  NEED_RUNTIME=1
-fi
-
-if echo "$host_os" | grep -q darwin; then
-  DLLEXT=".dylib"
-  if echo "$host_cpu" | grep -q i@<:@3456@:>@86; then
-    FMIPLATFORM=darwin32
-  elif echo "$host_cpu" | grep -q x86_64; then
-    FMIPLATFORM=darwin64
-  fi
-elif echo "$host_os" | grep -q mingw; then
-  DLLEXT=".dll"
-  if echo "$host_cpu" | grep -q i@<:@3456@:>@86; then
-    FMIPLATFORM=win32
-  elif echo "$host_cpu" | grep -q x86_64; then
-    FMIPLATFORM=win64
-  fi
-elif echo "$host_os" | grep -q linux; then
-  DLLEXT=".so"
-  if echo "$host_cpu" | grep -q i@<:@3456@:>@86; then
-    FMIPLATFORM=linux32
-  elif echo "$host_cpu" | grep -q x86_64; then
-    FMIPLATFORM=linux64
-  fi
-else
-  DLLEXT=".so"
-fi
-
-# Non-standard platforms also need some love
-if test -z "$FMIPLATFORM"; then
-  FMIPLATFORM=$host_short
-fi
-
-AC_OUTPUT(Makefile)

File diff suppressed because it is too large
+ 0 - 183
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/Makefile.objs


+ 0 - 113
SemanticAdaptationForFMI/Experiments/power_window_case_study/fmu20/fmu/cs/FMI_PowerSystem/sources/include/ModelicaUtilities.h

@@ -1,113 +0,0 @@
-#ifndef MODELICA_UTILITIES_H
-#define MODELICA_UTILITIES_H
-
-#include <stddef.h>
-#include <stdarg.h>
-#if defined(__cplusplus)
-extern "C" {
-#endif
-
-/* Utility functions which can be called by external Modelica functions.
-
-   These functions are defined in section 12.8.6 of the
-   Modelica Specification 3.0 and section 12.9.6 of the
-   Modelica Specification 3.1 and 3.2.
-
-   A generic C-implementation of these functions cannot be given,
-   because it is tool dependent how strings are output in a
-   window of the respective simulation tool. Therefore, only
-   this header file is shipped with the Modelica Standard Library.
-*/
-
-/*
- * Some of the functions never return to the caller. In order to compile
- * external Modelica C-code in most compilers, noreturn attributes need to
- * be present to avoid warnings or errors.
- *
- * The following macros handle noreturn attributes according to the latest
- * C11/C++11 standard with fallback to GNU or MSVC extensions if using an
- * older compiler.
- */
-#if __STDC_VERSION__ >= 201112L
-#define MODELICA_NORETURN _Noreturn
-#define MODELICA_NORETURNATTR
-#elif __cplusplus >= 201103L
-#define MODELICA_NORETURN [[noreturn]]
-#define MODELICA_NORETURNATTR
-#elif defined(__GNUC__)
-#define MODELICA_NORETURN
-#define MODELICA_NORETURNATTR __attribute__((noreturn))
-#elif defined(_MSC_VER)
-#define MODELICA_NORETURN __declspec(noreturn)
-#define MODELICA_NORETURNATTR
-#else
-#define MODELICA_NORETURN
-#define MODELICA_NORETURNATTR
-#endif
-
-void ModelicaMessage(const char *string);
-/*
-Output the message string (no format control).
-*/
-
-
-void ModelicaFormatMessage(const char *string,...);
-  /*
-Output the message under the same format control as the C-function printf.
-  */
-
-