Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.597/2.597, allocations: 287.3 MB / 302.3 MB, free: 8.309 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001462/0.001462, allocations: 173.5 kB / 370.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.446/2.446, allocations: 205.4 MB / 0.6295 GB, free: 10.61 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001225/0.001224, allocations: 96.41 kB / 0.7428 GB, free: 6.613 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006657/0.0006656, allocations: 10.94 kB / 0.8657 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2459, allocations: 115.3 MB / 0.9783 GB, free: 28.29 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.836/7.082, allocations: 2.103 GB / 3.081 GB, free: 166.3 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004127/7.083, allocations: 110.4 kB / 3.081 GB, free: 166.3 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 0.2314/7.314, allocations: 57.94 MB / 3.138 GB, free: 116 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.665e-06/7.314, allocations: 0 / 3.138 GB, free: 116 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0001375/7.314, allocations: 35.98 kB / 3.138 GB, free: 115.9 MB / 0.948 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.004684/7.319, allocations: 1.539 MB / 3.139 GB, free: 114.3 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.36e-05/7.319, allocations: 20 kB / 3.139 GB, free: 114.3 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00064/7.32, allocations: 164.9 kB / 3.139 GB, free: 114.1 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002742/7.322, allocations: 297.9 kB / 3.14 GB, free: 113.8 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002487/7.325, allocations: 0.8416 MB / 3.14 GB, free: 113 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.839e-05/7.325, allocations: 82.11 kB / 3.14 GB, free: 112.9 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002484/7.325, allocations: 100 kB / 3.141 GB, free: 112.8 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003423/7.329, allocations: 1.299 MB / 3.142 GB, free: 111.4 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.641e-05/7.329, allocations: 7.938 kB / 3.142 GB, free: 111.4 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001944/7.329, allocations: 47.98 kB / 3.142 GB, free: 111.3 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.577e-05/7.329, allocations: 57.98 kB / 3.142 GB, free: 111.3 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003993/7.333, allocations: 1.463 MB / 3.143 GB, free: 109.8 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009854/7.343, allocations: 4.72 MB / 3.148 GB, free: 104.8 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002887/7.346, allocations: 1.015 MB / 3.149 GB, free: 103.8 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000313/7.346, allocations: 126.1 kB / 3.149 GB, free: 103.7 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001442/7.348, allocations: 0.5766 MB / 3.15 GB, free: 103.1 MB / 0.948 GB Notification: Performance of pre-optimization done (n=94): time 4.128e-06/7.348, allocations: 0 / 3.15 GB, free: 103.1 MB / 0.948 GB Notification: Performance of matching and sorting (n=95): time 0.006998/7.355, allocations: 2.038 MB / 3.152 GB, free: 101 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/7.355, allocations: 299.7 kB / 3.152 GB, free: 100.6 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001869/7.357, allocations: 0.8719 MB / 3.153 GB, free: 99.73 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002971/7.357, allocations: 45.7 kB / 3.153 GB, free: 99.68 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000549/7.358, allocations: 0.5388 MB / 3.153 GB, free: 99.14 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003905/7.358, allocations: 319.4 kB / 3.154 GB, free: 98.82 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.788e-05/7.358, allocations: 16 kB / 3.154 GB, free: 98.8 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.923e-05/7.358, allocations: 349.9 kB / 3.154 GB, free: 98.46 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001026/7.36, allocations: 349.8 kB / 3.154 GB, free: 98.11 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001191/7.361, allocations: 0.5372 MB / 3.155 GB, free: 97.51 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001207/7.362, allocations: 440.5 kB / 3.155 GB, free: 97.09 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.688e-06/7.362, allocations: 0 / 3.155 GB, free: 97.09 MB / 0.948 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003987/7.366, allocations: 1.176 MB / 3.156 GB, free: 95.9 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002624/7.366, allocations: 1.15 MB / 3.158 GB, free: 94.66 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/7.366, allocations: 4 kB / 3.158 GB, free: 94.66 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001463/7.368, allocations: 212.6 kB / 3.158 GB, free: 94.45 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001753/7.37, allocations: 211.7 kB / 3.158 GB, free: 94.24 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000803/7.37, allocations: 0.6382 MB / 3.159 GB, free: 93.57 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001632/7.372, allocations: 107.5 kB / 3.159 GB, free: 93.47 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000157/7.372, allocations: 35.92 kB / 3.159 GB, free: 93.43 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/7.372, allocations: 4 kB / 3.159 GB, free: 93.43 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002562/7.375, allocations: 0.89 MB / 3.16 GB, free: 92.54 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/7.375, allocations: 3.953 kB / 3.16 GB, free: 92.54 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/7.375, allocations: 8 kB / 3.16 GB, free: 92.53 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001638/7.377, allocations: 211.8 kB / 3.16 GB, free: 92.32 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.594e-05/7.377, allocations: 11.94 kB / 3.16 GB, free: 92.31 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00141/7.378, allocations: 107.6 kB / 3.16 GB, free: 92.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001344/7.378, allocations: 35.98 kB / 3.16 GB, free: 92.17 MB / 0.948 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 () * Number of clocked 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.001009/7.379, allocations: 424.8 kB / 3.16 GB, free: 91.74 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003955/7.38, allocations: 114.8 kB / 3.16 GB, free: 91.63 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004767/7.384, allocations: 1.4 MB / 3.162 GB, free: 90.22 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.9e-05/7.384, allocations: 12 kB / 3.162 GB, free: 90.21 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/7.384, allocations: 0 / 3.162 GB, free: 90.21 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.396e-05/7.385, allocations: 3.984 kB / 3.162 GB, free: 90.2 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007357/7.392, allocations: 2.726 MB / 3.164 GB, free: 87.39 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.118e-05/7.392, allocations: 0 / 3.164 GB, free: 87.39 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001588/7.394, allocations: 199.7 kB / 3.165 GB, free: 87.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001387/7.395, allocations: 212.8 kB / 3.165 GB, free: 86.99 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002164/7.395, allocations: 27.98 kB / 3.165 GB, free: 86.96 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002881/7.398, allocations: 1.87 MB / 3.167 GB, free: 84.96 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/7.398, allocations: 4 kB / 3.167 GB, free: 84.96 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004242/7.402, allocations: 1.479 MB / 3.168 GB, free: 83.4 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001079/7.404, allocations: 363.2 kB / 3.169 GB, free: 83.02 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003247/7.404, allocations: 23.95 kB / 3.169 GB, free: 83 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001597/7.406, allocations: 95.91 kB / 3.169 GB, free: 82.91 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003232/7.406, allocations: 76.83 kB / 3.169 GB, free: 82.83 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001277/7.406, allocations: 39.98 kB / 3.169 GB, free: 82.79 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.001508/7.408, allocations: 0.6992 MB / 3.169 GB, free: 82.08 MB / 0.948 GB Notification: Performance of sort global known variables: time 6.31e-07/7.408, allocations: 0 / 3.169 GB, free: 82.08 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.002728/7.41, allocations: 0.5036 MB / 3.17 GB, free: 81.58 MB / 0.948 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) * Number of clocked states: 0 () * 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.006222/7.417, allocations: 3.032 MB / 3.173 GB, free: 78.64 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.004405/7.421, allocations: 1.425 MB / 3.174 GB, free: 77.22 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.131e-05/7.421, allocations: 0 / 3.174 GB, free: 77.22 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.001822/7.423, allocations: 0.6531 MB / 3.175 GB, free: 76.56 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002534/7.426, allocations: 300.2 kB / 3.175 GB, free: 76.27 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01889/7.444, allocations: 8.798 MB / 3.184 GB, free: 67.17 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008407/7.445, allocations: 1.217 MB / 3.185 GB, free: 65.92 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.002524/7.448, allocations: 452.2 kB / 3.185 GB, free: 65.48 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001233/7.449, allocations: 0.4915 MB / 3.186 GB, free: 64.98 MB / 0.948 GB Notification: Performance of SimCode: time 1.583e-06/7.449, allocations: 0 / 3.186 GB, free: 64.98 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.108/7.557, allocations: 26.55 MB / 3.212 GB, free: 38.75 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000251/7.557, allocations: 261.3 kB / 3.212 GB, free: 38.4 MB / 0.948 GB Error: Error building simulator. Build log: clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/Resources/C-Sources" -c -o Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.o Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.c In file included from Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.c:7: In file included from ./Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226: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 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/Resources/C-Sources" -c -o Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.o Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.c In file included from Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.c:2: In file included from ./Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.c:7: In file included from ./Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_includes.h:4: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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_8_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.o' failed make: *** [Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.o] Error 1