Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.28/2.28, allocations: 248.5 MB / 261.1 MB, free: 6.074 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00148/0.00148, allocations: 178.5 kB / 320.4 MB, free: 15.33 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.915/1.915, allocations: 205.2 MB / 0.571 GB, free: 11.74 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001123/0.001123, allocations: 101.5 kB / 0.6754 GB, free: 0.832 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.677e-05/4.71e-05, allocations: 4 kB / 0.7869 GB, free: 97.79 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2022/0.2023, allocations: 106.3 MB / 0.8907 GB, free: 7.441 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.344/7.546, allocations: 2.225 GB / 3.115 GB, free: 110 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003826/7.547, allocations: 100.1 kB / 3.115 GB, free: 109.9 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.2573/7.804, allocations: 62.06 MB / 3.176 GB, free: 50.65 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.883e-06/7.804, allocations: 0 / 3.176 GB, free: 50.65 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.000144/7.804, allocations: 39.92 kB / 3.176 GB, free: 50.61 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 277 * Number of variables: 277 Notification: Performance of Generate backend data structure: time 0.003637/7.808, allocations: 1.373 MB / 3.177 GB, free: 49.18 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/7.808, allocations: 12.03 kB / 3.177 GB, free: 49.17 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004638/7.808, allocations: 164.8 kB / 3.178 GB, free: 49 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002581/7.811, allocations: 301.9 kB / 3.178 GB, free: 48.7 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003182/7.814, allocations: 0.8378 MB / 3.179 GB, free: 47.82 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.69e-05/7.814, allocations: 78.11 kB / 3.179 GB, free: 47.75 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00025/7.815, allocations: 104 kB / 3.179 GB, free: 47.64 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003255/7.818, allocations: 1.256 MB / 3.18 GB, free: 46.3 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.939e-05/7.818, allocations: 3.953 kB / 3.18 GB, free: 46.29 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001869/7.818, allocations: 44 kB / 3.18 GB, free: 46.25 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001049/7.818, allocations: 61.98 kB / 3.18 GB, free: 46.19 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003419/7.822, allocations: 1.409 MB / 3.182 GB, free: 44.78 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00964/7.831, allocations: 4.732 MB / 3.186 GB, free: 39.8 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002532/7.834, allocations: 0.9701 MB / 3.187 GB, free: 38.81 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009469/7.835, allocations: 408 kB / 3.187 GB, free: 38.41 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003016/7.835, allocations: 121.9 kB / 3.188 GB, free: 38.27 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00125/7.837, allocations: 0.5496 MB / 3.188 GB, free: 37.7 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=94): time 3.757e-06/7.837, allocations: 0 / 3.188 GB, free: 37.7 MB / 0.8698 GB Notification: Performance of matching and sorting (n=95): time 0.004105/7.841, allocations: 1.434 MB / 3.19 GB, free: 36.25 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.865e-05/7.841, allocations: 299.5 kB / 3.19 GB, free: 35.89 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001705/7.843, allocations: 0.8683 MB / 3.191 GB, free: 34.99 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0002361/7.843, allocations: 41.7 kB / 3.191 GB, free: 34.95 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000499/7.843, allocations: 0.5428 MB / 3.191 GB, free: 34.39 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004096/7.844, allocations: 315.4 kB / 3.192 GB, free: 34.08 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.994e-05/7.844, allocations: 16 kB / 3.192 GB, free: 34.07 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 8.649e-05/7.844, allocations: 341.9 kB / 3.192 GB, free: 33.73 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008124/7.845, allocations: 325.9 kB / 3.192 GB, free: 33.41 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009796/7.846, allocations: 0.5176 MB / 3.193 GB, free: 32.82 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009499/7.847, allocations: 409.9 kB / 3.193 GB, free: 32.42 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/7.847, allocations: 4 kB / 3.193 GB, free: 32.42 MB / 0.8698 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003422/7.85, allocations: 1.136 MB / 3.194 GB, free: 31.27 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002653/7.85, allocations: 1.142 MB / 3.195 GB, free: 30.04 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.511e-05/7.851, allocations: 7.984 kB / 3.195 GB, free: 30.03 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001455/7.852, allocations: 204.6 kB / 3.196 GB, free: 29.83 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00175/7.854, allocations: 211.7 kB / 3.196 GB, free: 29.62 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007747/7.855, allocations: 0.6422 MB / 3.196 GB, free: 28.95 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/7.856, allocations: 111.2 kB / 3.196 GB, free: 28.84 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001884/7.856, allocations: 35.98 kB / 3.196 GB, free: 28.81 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/7.856, allocations: 4 kB / 3.196 GB, free: 28.8 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002116/7.859, allocations: 0.8381 MB / 3.197 GB, free: 27.96 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.278e-06/7.859, allocations: 0 / 3.197 GB, free: 27.96 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/7.859, allocations: 8 kB / 3.197 GB, free: 27.96 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00168/7.86, allocations: 207.7 kB / 3.198 GB, free: 27.75 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.188e-05/7.86, allocations: 15.92 kB / 3.198 GB, free: 27.74 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00142/7.862, allocations: 95.77 kB / 3.198 GB, free: 27.64 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001584/7.862, allocations: 43.97 kB / 3.198 GB, free: 27.6 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003883/7.862, allocations: 156.8 kB / 3.198 GB, free: 27.44 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003905/7.863, allocations: 110.6 kB / 3.198 GB, free: 27.33 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004415/7.867, allocations: 1.357 MB / 3.199 GB, free: 25.96 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.976e-05/7.867, allocations: 12 kB / 3.199 GB, free: 25.95 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/7.867, allocations: 0 / 3.199 GB, free: 25.95 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.564e-05/7.867, allocations: 3.984 kB / 3.199 GB, free: 25.95 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00688/7.874, allocations: 2.681 MB / 3.202 GB, free: 23.19 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.421e-05/7.874, allocations: 11.92 kB / 3.202 GB, free: 23.18 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001598/7.876, allocations: 195.9 kB / 3.202 GB, free: 22.99 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001348/7.877, allocations: 208.6 kB / 3.202 GB, free: 22.78 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001855/7.878, allocations: 27.98 kB / 3.202 GB, free: 22.75 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002784/7.88, allocations: 1.819 MB / 3.204 GB, free: 20.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.688e-06/7.88, allocations: 4 kB / 3.204 GB, free: 20.8 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003885/7.884, allocations: 1.448 MB / 3.205 GB, free: 19.27 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001125/7.885, allocations: 363.2 kB / 3.206 GB, free: 18.89 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002877/7.886, allocations: 20 kB / 3.206 GB, free: 18.88 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001562/7.887, allocations: 99.89 kB / 3.206 GB, free: 18.78 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002715/7.888, allocations: 72.84 kB / 3.206 GB, free: 18.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001242/7.888, allocations: 39.97 kB / 3.206 GB, free: 18.66 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.001464/7.889, allocations: 0.684 MB / 3.207 GB, free: 17.96 MB / 0.8698 GB Notification: Performance of sort global known variables: time 5.21e-07/7.889, allocations: 0 / 3.207 GB, free: 17.96 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.002761/7.892, allocations: 0.4921 MB / 3.207 GB, free: 17.47 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.006841/7.899, allocations: 2.958 MB / 3.21 GB, free: 14.59 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.004027/7.903, allocations: 1.381 MB / 3.211 GB, free: 13.21 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.246e-05/7.903, allocations: 384 / 3.211 GB, free: 13.21 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001694/7.905, allocations: 0.6328 MB / 3.212 GB, free: 12.56 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002594/7.907, allocations: 288.7 kB / 3.212 GB, free: 12.28 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006716/7.914, allocations: 2.097 MB / 3.214 GB, free: 10.12 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008122/7.915, allocations: 1.215 MB / 3.216 GB, free: 8.875 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.003123/7.918, allocations: 0.5975 MB / 3.216 GB, free: 8.273 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009607/7.919, allocations: 475.3 kB / 3.217 GB, free: 7.809 MB / 0.8698 GB Notification: Performance of SimCode: time 9.82e-07/7.919, allocations: 0 / 3.217 GB, free: 7.809 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6842/8.603, allocations: 27.89 MB / 3.244 GB, free: 269.5 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002685/8.604, allocations: 243.6 kB / 3.244 GB, free: 269.2 MB / 0.8698 GB Error: Error building simulator. Build log: clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine.o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:111: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_includes.h:4: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Resources/C-Sources/getTimeSpan.c:6:10: fatal error: 'ModelicaUtilities.h' file not found #include ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. : recipe for target 'Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.o] Error 1