Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.721/1.721, allocations: 289.7 MB / 302.3 MB, free: 2.18 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.001089/0.001089, allocations: 178.7 kB / 371.6 MB, free: 3.359 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.71/1.71, allocations: 205.1 MB / 0.6309 GB, free: 11.76 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008485/0.0008484, allocations: 89.23 kB / 0.745 GB, free: 54.53 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.739e-05/3.741e-05, allocations: 4 kB / 0.8663 GB, free: 14.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2595, allocations: 116.3 MB / 0.9799 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.159/5.418, allocations: 2.108 GB / 3.088 GB, free: 148 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003146/5.419, allocations: 112.8 kB / 3.088 GB, free: 147.8 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 0.1432/5.562, allocations: 62.03 MB / 3.148 GB, free: 85.71 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.192e-06/5.562, allocations: 0 / 3.148 GB, free: 85.71 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0001035/5.562, allocations: 32 kB / 3.148 GB, free: 85.68 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.002206/5.564, allocations: 1.384 MB / 3.15 GB, free: 84.25 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.857e-05/5.564, allocations: 8.031 kB / 3.15 GB, free: 84.24 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001798/5.565, allocations: 164.9 kB / 3.15 GB, free: 84.07 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001544/5.566, allocations: 301.2 kB / 3.15 GB, free: 83.77 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001417/5.568, allocations: 0.834 MB / 3.151 GB, free: 82.9 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.457e-05/5.568, allocations: 74.11 kB / 3.151 GB, free: 82.82 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001351/5.568, allocations: 104 kB / 3.151 GB, free: 82.72 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001868/5.57, allocations: 1.264 MB / 3.152 GB, free: 81.37 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.076e-05/5.57, allocations: 4.625 kB / 3.152 GB, free: 81.36 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001022/5.57, allocations: 44 kB / 3.152 GB, free: 81.32 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.676e-05/5.57, allocations: 57.94 kB / 3.152 GB, free: 81.26 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001783/5.572, allocations: 1.409 MB / 3.154 GB, free: 79.85 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005247/5.577, allocations: 4.722 MB / 3.158 GB, free: 74.88 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001371/5.578, allocations: 0.9684 MB / 3.159 GB, free: 73.9 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000501/5.579, allocations: 420.6 kB / 3.16 GB, free: 73.48 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002064/5.579, allocations: 117.8 kB / 3.16 GB, free: 73.35 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007276/5.58, allocations: 0.5612 MB / 3.16 GB, free: 72.77 MB / 0.948 GB Notification: Performance of pre-optimization done (n=94): time 2.685e-06/5.58, allocations: 0 / 3.16 GB, free: 72.77 MB / 0.948 GB Notification: Performance of matching and sorting (n=95): time 0.002523/5.582, allocations: 1.427 MB / 3.162 GB, free: 71.32 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.678e-05/5.582, allocations: 299.5 kB / 3.162 GB, free: 70.96 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001055/5.583, allocations: 0.8643 MB / 3.163 GB, free: 70.07 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 7.321e-05/5.584, allocations: 45.7 kB / 3.163 GB, free: 70.02 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003409/5.584, allocations: 0.5427 MB / 3.163 GB, free: 69.47 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002042/5.584, allocations: 311.4 kB / 3.164 GB, free: 69.16 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.687e-05/5.584, allocations: 20 kB / 3.164 GB, free: 69.14 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.382e-05/5.584, allocations: 345.9 kB / 3.164 GB, free: 68.8 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004534/5.585, allocations: 329.9 kB / 3.164 GB, free: 68.48 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005973/5.585, allocations: 0.5176 MB / 3.165 GB, free: 67.89 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005509/5.586, allocations: 406 kB / 3.165 GB, free: 67.5 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/5.586, allocations: 3.938 kB / 3.165 GB, free: 67.49 MB / 0.948 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001986/5.588, allocations: 1.132 MB / 3.166 GB, free: 66.35 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002431/5.588, allocations: 1.138 MB / 3.168 GB, free: 65.12 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/5.588, allocations: 7.938 kB / 3.168 GB, free: 65.11 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008641/5.589, allocations: 216.6 kB / 3.168 GB, free: 64.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000836/5.59, allocations: 207.7 kB / 3.168 GB, free: 64.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005034/5.59, allocations: 0.646 MB / 3.169 GB, free: 64.02 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008261/5.591, allocations: 107.4 kB / 3.169 GB, free: 63.92 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.181e-05/5.591, allocations: 35.98 kB / 3.169 GB, free: 63.88 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/5.591, allocations: 8.734 kB / 3.169 GB, free: 63.88 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001184/5.593, allocations: 0.838 MB / 3.17 GB, free: 63.04 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/5.593, allocations: 4.375 kB / 3.17 GB, free: 63.03 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/5.593, allocations: 12 kB / 3.17 GB, free: 63.02 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008059/5.593, allocations: 207.7 kB / 3.17 GB, free: 62.82 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/5.593, allocations: 8 kB / 3.17 GB, free: 62.81 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007588/5.594, allocations: 95.47 kB / 3.17 GB, free: 62.71 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.713e-05/5.594, allocations: 43.98 kB / 3.17 GB, free: 62.67 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 () * 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.0002408/5.594, allocations: 156.8 kB / 3.17 GB, free: 62.51 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001645/5.595, allocations: 118.5 kB / 3.17 GB, free: 62.39 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002633/5.597, allocations: 1.341 MB / 3.171 GB, free: 61.04 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.918e-06/5.597, allocations: 12 kB / 3.171 GB, free: 61.03 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/5.597, allocations: 0 / 3.171 GB, free: 61.03 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.284e-05/5.597, allocations: 4.031 kB / 3.171 GB, free: 61.02 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003842/5.601, allocations: 2.692 MB / 3.174 GB, free: 58.25 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/5.601, allocations: 0 / 3.174 GB, free: 58.25 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007447/5.602, allocations: 195.7 kB / 3.174 GB, free: 58.06 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007759/5.603, allocations: 208.8 kB / 3.174 GB, free: 57.86 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.57e-05/5.603, allocations: 31.92 kB / 3.175 GB, free: 57.82 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001713/5.605, allocations: 1.823 MB / 3.176 GB, free: 55.87 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/5.605, allocations: 3.938 kB / 3.176 GB, free: 55.87 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002269/5.607, allocations: 1.437 MB / 3.178 GB, free: 54.35 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005927/5.607, allocations: 355.2 kB / 3.178 GB, free: 53.98 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001444/5.608, allocations: 31.95 kB / 3.178 GB, free: 53.95 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007779/5.608, allocations: 99.89 kB / 3.178 GB, free: 53.85 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001659/5.609, allocations: 72.84 kB / 3.178 GB, free: 53.78 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.335e-05/5.609, allocations: 39.97 kB / 3.178 GB, free: 53.74 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0009586/5.61, allocations: 0.6879 MB / 3.179 GB, free: 53.04 MB / 0.948 GB Notification: Performance of sort global known variables: time 2e-07/5.61, allocations: 0 / 3.179 GB, free: 53.04 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.001583/5.611, allocations: 0.4959 MB / 3.179 GB, free: 52.54 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) * 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.003605/5.615, allocations: 2.951 MB / 3.182 GB, free: 49.61 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.002365/5.617, allocations: 1.378 MB / 3.184 GB, free: 48.23 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.171e-05/5.617, allocations: 4 kB / 3.184 GB, free: 48.23 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009293/5.618, allocations: 0.6263 MB / 3.184 GB, free: 47.59 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001608/5.62, allocations: 309.6 kB / 3.185 GB, free: 47.3 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004135/5.624, allocations: 2.11 MB / 3.187 GB, free: 45.12 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005714/5.625, allocations: 1.21 MB / 3.188 GB, free: 43.89 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.001792/5.626, allocations: 0.6014 MB / 3.188 GB, free: 43.28 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005616/5.627, allocations: 479.3 kB / 3.189 GB, free: 42.81 MB / 0.948 GB Notification: Performance of SimCode: time 9.32e-07/5.627, allocations: 0 / 3.189 GB, free: 42.81 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05341/5.68, allocations: 27.88 MB / 3.216 GB, free: 15.17 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00018/5.681, allocations: 244.5 kB / 3.216 GB, free: 14.83 MB / 0.948 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -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 8.1.4-maint.8.1.x/Resources/C-Sources" -c -o Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine.o Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine.c In file included from Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine.c:7: In file included from ./Buildings_8_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 -falign-functions -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 8.1.4-maint.8.1.x/Resources/C-Sources" -c -o Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.o Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.c In file included from Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.c:2: In file included from ./Buildings_8_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_8_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.c:7: In file included from ./Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_includes.h:4: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/getTimeSpan.c:9:10: fatal error: 'ModelicaUtilities.h' file not found #include "ModelicaUtilities.h" ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. make: *** [: Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.o] Error 1