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.74/1.74, allocations: 292.6 MB / 307.5 MB, free: 5.184 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.001131/0.001132, allocations: 182.9 kB / 377.1 MB, free: 1.5 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.897/1.897, allocations: 205.4 MB / 0.6366 GB, free: 8.625 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.0009224/0.0009225, allocations: 84.23 kB / 0.7509 GB, free: 62.89 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003609/0.0003609, allocations: 12 kB / 0.8749 GB, free: 11.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.3132, allocations: 116.3 MB / 0.9884 GB, free: 6.617 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.497/5.81, allocations: 2.108 GB / 3.096 GB, free: 110.2 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003338/5.811, allocations: 112.5 kB / 3.096 GB, free: 110.1 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 0.1424/5.953, allocations: 62.49 MB / 3.157 GB, free: 47.46 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.916e-06/5.953, allocations: 0 / 3.157 GB, free: 47.46 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0001294/5.953, allocations: 39.88 kB / 3.157 GB, free: 47.42 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.003447/5.957, allocations: 1.535 MB / 3.159 GB, free: 45.82 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 7.421e-05/5.957, allocations: 12.03 kB / 3.159 GB, free: 45.81 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006537/5.958, allocations: 172.8 kB / 3.159 GB, free: 45.63 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002105/5.96, allocations: 301.8 kB / 3.159 GB, free: 45.34 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002607/5.962, allocations: 0.8372 MB / 3.16 GB, free: 44.46 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001013/5.962, allocations: 78.11 kB / 3.16 GB, free: 44.38 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002997/5.963, allocations: 104 kB / 3.16 GB, free: 44.28 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002392/5.965, allocations: 1.291 MB / 3.162 GB, free: 42.9 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.068e-05/5.965, allocations: 7.938 kB / 3.162 GB, free: 42.89 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001037/5.965, allocations: 48 kB / 3.162 GB, free: 42.84 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.563e-05/5.965, allocations: 58.94 kB / 3.162 GB, free: 42.79 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001984/5.967, allocations: 1.467 MB / 3.163 GB, free: 41.32 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006167/5.974, allocations: 4.717 MB / 3.168 GB, free: 36.36 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001637/5.975, allocations: 1.028 MB / 3.169 GB, free: 35.31 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002207/5.975, allocations: 118.1 kB / 3.169 GB, free: 35.18 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008244/5.976, allocations: 0.5844 MB / 3.169 GB, free: 34.58 MB / 0.948 GB Notification: Performance of pre-optimization done (n=94): time 3.427e-06/5.976, allocations: 0 / 3.169 GB, free: 34.58 MB / 0.948 GB Notification: Performance of matching and sorting (n=95): time 0.004361/5.981, allocations: 2.026 MB / 3.171 GB, free: 32.52 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.534e-05/5.981, allocations: 303.7 kB / 3.172 GB, free: 32.15 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00147/5.982, allocations: 0.8795 MB / 3.172 GB, free: 31.25 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 8.884e-05/5.982, allocations: 45.7 kB / 3.173 GB, free: 31.2 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004391/5.983, allocations: 0.5389 MB / 3.173 GB, free: 30.65 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002351/5.983, allocations: 315.4 kB / 3.173 GB, free: 30.34 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.612e-05/5.983, allocations: 20 kB / 3.173 GB, free: 30.32 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 6.782e-05/5.983, allocations: 341.9 kB / 3.174 GB, free: 29.98 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005608/5.984, allocations: 357.8 kB / 3.174 GB, free: 29.63 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006677/5.984, allocations: 0.534 MB / 3.175 GB, free: 29.03 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006198/5.985, allocations: 435.3 kB / 3.175 GB, free: 28.61 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/5.985, allocations: 4.031 kB / 3.175 GB, free: 28.61 MB / 0.948 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002089/5.987, allocations: 1.184 MB / 3.176 GB, free: 27.41 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000233/5.987, allocations: 1.149 MB / 3.177 GB, free: 26.17 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/5.987, allocations: 4 kB / 3.177 GB, free: 26.17 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008588/5.988, allocations: 212.6 kB / 3.177 GB, free: 25.96 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008062/5.989, allocations: 203.7 kB / 3.178 GB, free: 25.76 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004908/5.99, allocations: 0.646 MB / 3.178 GB, free: 25.09 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000858/5.99, allocations: 99.38 kB / 3.178 GB, free: 24.99 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.303e-05/5.991, allocations: 35.98 kB / 3.178 GB, free: 24.95 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 9.839e-06/5.991, allocations: 4 kB / 3.178 GB, free: 24.95 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001268/5.992, allocations: 0.8942 MB / 3.179 GB, free: 24.05 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/5.992, allocations: 4.062 kB / 3.179 GB, free: 24.05 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.276e-06/5.992, allocations: 8 kB / 3.179 GB, free: 24.04 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007473/5.993, allocations: 207.7 kB / 3.179 GB, free: 23.84 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/5.993, allocations: 8 kB / 3.18 GB, free: 23.83 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000772/5.993, allocations: 107.3 kB / 3.18 GB, free: 23.73 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.51e-05/5.994, allocations: 39.98 kB / 3.18 GB, free: 23.69 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.0007523/5.994, allocations: 421 kB / 3.18 GB, free: 23.27 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000165/5.994, allocations: 118.6 kB / 3.18 GB, free: 23.15 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002521/5.997, allocations: 1.396 MB / 3.182 GB, free: 21.74 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/5.997, allocations: 12 kB / 3.182 GB, free: 21.73 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/5.997, allocations: 0 / 3.182 GB, free: 21.73 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/5.997, allocations: 3.984 kB / 3.182 GB, free: 21.73 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003897/6.001, allocations: 2.734 MB / 3.184 GB, free: 18.91 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.279e-06/6.001, allocations: 0 / 3.184 GB, free: 18.91 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000727/6.002, allocations: 191.8 kB / 3.184 GB, free: 18.73 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008124/6.003, allocations: 216.7 kB / 3.185 GB, free: 18.51 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.648e-05/6.003, allocations: 27.98 kB / 3.185 GB, free: 18.48 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001792/6.004, allocations: 1.874 MB / 3.186 GB, free: 16.48 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/6.004, allocations: 4 kB / 3.186 GB, free: 16.48 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002046/6.006, allocations: 1.484 MB / 3.188 GB, free: 14.91 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005828/6.007, allocations: 351.3 kB / 3.188 GB, free: 14.55 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000146/6.007, allocations: 31.94 kB / 3.188 GB, free: 14.52 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007563/6.008, allocations: 95.91 kB / 3.188 GB, free: 14.42 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000143/6.008, allocations: 76.83 kB / 3.188 GB, free: 14.35 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.099e-05/6.008, allocations: 39.98 kB / 3.188 GB, free: 14.31 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0008477/6.009, allocations: 0.6953 MB / 3.189 GB, free: 13.6 MB / 0.948 GB Notification: Performance of sort global known variables: time 2.2e-07/6.009, allocations: 0 / 3.189 GB, free: 13.6 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.001549/6.011, allocations: 0.4998 MB / 3.19 GB, free: 13.1 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.003674/6.014, allocations: 3.029 MB / 3.193 GB, free: 10.13 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.002406/6.017, allocations: 1.425 MB / 3.194 GB, free: 8.711 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/6.017, allocations: 4.062 kB / 3.194 GB, free: 8.707 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009478/6.018, allocations: 0.6529 MB / 3.195 GB, free: 8.047 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001312/6.019, allocations: 304.6 kB / 3.195 GB, free: 7.75 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4881/6.507, allocations: 8.801 MB / 3.204 GB, free: 246 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008587/6.508, allocations: 1.21 MB / 3.205 GB, free: 245.3 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.001862/6.51, allocations: 456 kB / 3.205 GB, free: 245.3 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006987/6.511, allocations: 0.4904 MB / 3.206 GB, free: 245.3 MB / 0.948 GB Notification: Performance of SimCode: time 1.272e-06/6.511, allocations: 0 / 3.206 GB, free: 245.3 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06245/6.573, allocations: 26.57 MB / 3.232 GB, free: 244.1 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001637/6.573, allocations: 270.8 kB / 3.232 GB, free: 243.8 MB / 0.948 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -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.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: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 -falign-functions -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.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: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_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