Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.345/1.345, allocations: 285.5 MB / 292.8 MB, free: 9.828 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.0009017/0.0009017, allocations: 189.1 kB / 361.1 MB, free: 392 kB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.013/1.013, allocations: 205.1 MB / 0.6195 GB, free: 2.914 MB / 442.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007405/0.0007405, allocations: 97.33 kB / 0.7326 GB, free: 1.105 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.348/0.3487, allocations: 121.4 MB / 0.8512 GB, free: 151.8 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1422/0.4909, allocations: 115.3 MB / 0.9638 GB, free: 56.29 MB / 0.6355 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.971/3.462, allocations: 2.102 GB / 3.066 GB, free: 181.3 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/3.463, allocations: 103.9 kB / 3.066 GB, free: 181.2 MB / 0.9323 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.1232/3.586, allocations: 59.72 MB / 3.124 GB, free: 121.1 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.217e-05/3.586, allocations: 8.5 kB / 3.124 GB, free: 121.1 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001596/3.588, allocations: 309.8 kB / 3.124 GB, free: 120.8 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001433/3.589, allocations: 0.8378 MB / 3.125 GB, free: 119.9 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.578e-05/3.589, allocations: 40 kB / 3.125 GB, free: 119.9 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/3.589, allocations: 60 kB / 3.125 GB, free: 119.8 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001576/3.591, allocations: 1.296 MB / 3.127 GB, free: 118.5 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/3.592, allocations: 1.119 MB / 3.128 GB, free: 117.3 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.44e-05/3.592, allocations: 3.938 kB / 3.128 GB, free: 117.3 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.317e-05/3.592, allocations: 3.984 kB / 3.128 GB, free: 117.3 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.291e-05/3.592, allocations: 61.98 kB / 3.128 GB, free: 117.2 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004246/3.596, allocations: 4.542 MB / 3.132 GB, free: 112.5 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009925/3.597, allocations: 0.8966 MB / 3.133 GB, free: 111.6 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004076/3.598, allocations: 399.4 kB / 3.133 GB, free: 111.2 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001636/3.598, allocations: 117.8 kB / 3.134 GB, free: 111 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005479/3.599, allocations: 0.5169 MB / 3.134 GB, free: 110.5 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=94): time 2.024e-06/3.599, allocations: 4 kB / 3.134 GB, free: 110.5 MB / 0.9323 GB Notification: Performance of matching and sorting (n=95): time 0.002016/3.601, allocations: 1.351 MB / 3.135 GB, free: 109.1 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/3.601, allocations: 299.5 kB / 3.136 GB, free: 108.8 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007376/3.601, allocations: 0.7781 MB / 3.136 GB, free: 108 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 5.593e-05/3.602, allocations: 29.7 kB / 3.136 GB, free: 107.9 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.000148/3.602, allocations: 411.9 kB / 3.137 GB, free: 107.5 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001445/3.602, allocations: 311.3 kB / 3.137 GB, free: 107.2 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.929e-05/3.602, allocations: 0 / 3.137 GB, free: 107.2 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 4.942e-05/3.602, allocations: 341.8 kB / 3.137 GB, free: 106.9 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003738/3.602, allocations: 321.9 kB / 3.138 GB, free: 106.6 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004526/3.603, allocations: 0.5001 MB / 3.138 GB, free: 106 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005903/3.603, allocations: 434 kB / 3.139 GB, free: 105.6 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/3.603, allocations: 8 kB / 3.139 GB, free: 105.6 MB / 0.9323 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001661/3.605, allocations: 1.045 MB / 3.14 GB, free: 104.5 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.000154/3.605, allocations: 1.137 MB / 3.141 GB, free: 103.3 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/3.605, allocations: 4 kB / 3.141 GB, free: 103.3 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000594/3.606, allocations: 108.8 kB / 3.141 GB, free: 103.2 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007603/3.607, allocations: 203.7 kB / 3.141 GB, free: 103 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004613/3.607, allocations: 0.6499 MB / 3.142 GB, free: 102.3 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007041/3.608, allocations: 87.42 kB / 3.142 GB, free: 102.2 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.561e-05/3.608, allocations: 35.98 kB / 3.142 GB, free: 102.2 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 6.733e-06/3.608, allocations: 12.11 kB / 3.142 GB, free: 102.2 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001092/3.609, allocations: 0.7974 MB / 3.143 GB, free: 101.4 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-06/3.609, allocations: 4 kB / 3.143 GB, free: 101.4 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.562e-06/3.609, allocations: 4.375 kB / 3.143 GB, free: 101.4 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007396/3.61, allocations: 211.6 kB / 3.143 GB, free: 101.2 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/3.61, allocations: 11.94 kB / 3.143 GB, free: 101.1 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005966/3.61, allocations: 75.67 kB / 3.143 GB, free: 101.1 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.048e-05/3.61, allocations: 47.91 kB / 3.143 GB, free: 101 MB / 0.9323 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.0001466/3.611, allocations: 132.6 kB / 3.143 GB, free: 100.9 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001259/3.611, allocations: 106.7 kB / 3.143 GB, free: 100.8 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002355/3.613, allocations: 1.32 MB / 3.145 GB, free: 99.45 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/3.613, allocations: 12 kB / 3.145 GB, free: 99.44 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/3.613, allocations: 0 / 3.145 GB, free: 99.44 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/3.613, allocations: 7.969 kB / 3.145 GB, free: 99.43 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003064/3.616, allocations: 2.493 MB / 3.147 GB, free: 96.87 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/3.616, allocations: 8.188 kB / 3.147 GB, free: 96.86 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006939/3.617, allocations: 187.8 kB / 3.147 GB, free: 96.68 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000715/3.618, allocations: 184.7 kB / 3.147 GB, free: 96.49 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.459e-05/3.618, allocations: 19.98 kB / 3.147 GB, free: 96.47 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00139/3.619, allocations: 1.685 MB / 3.149 GB, free: 94.67 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/3.619, allocations: 4 kB / 3.149 GB, free: 94.67 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001751/3.621, allocations: 1.398 MB / 3.15 GB, free: 93.19 MB / 0.9323 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001808/3.623, allocations: 1.805 MB / 3.152 GB, free: 91.3 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003809/3.623, allocations: 351.3 kB / 3.152 GB, free: 90.93 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000154/3.623, allocations: 4 kB / 3.152 GB, free: 90.93 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007374/3.624, allocations: 71.92 kB / 3.153 GB, free: 90.86 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/3.624, allocations: 68.89 kB / 3.153 GB, free: 90.79 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.395e-05/3.624, allocations: 35.98 kB / 3.153 GB, free: 90.75 MB / 0.9323 GB Notification: Performance of sort global known variables: time 0.0005492/3.625, allocations: 0.624 MB / 3.153 GB, free: 90.13 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.00234/3.627, allocations: 487.8 kB / 3.154 GB, free: 89.66 MB / 0.9323 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.000817/3.628, allocations: 494.1 kB / 3.154 GB, free: 89.27 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.001588/3.629, allocations: 1.344 MB / 3.156 GB, free: 87.93 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/3.63, allocations: 0 / 3.156 GB, free: 87.93 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0006903/3.63, allocations: 0.6041 MB / 3.156 GB, free: 87.32 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001067/3.631, allocations: 264.4 kB / 3.156 GB, free: 87.06 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002702/3.634, allocations: 1.819 MB / 3.158 GB, free: 85.18 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007953/3.635, allocations: 1.342 MB / 3.159 GB, free: 83.82 MB / 0.9323 GB Notification: Performance of SimCode: time 2.41e-07/3.635, allocations: 0 / 3.159 GB, free: 83.82 MB / 0.9323 GB (rm -f Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.fmu > Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe 2>&1)