Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.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: translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine") translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine") [: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.1.4-maint.8.1.x/package.mo): time 1.327/1.327, allocations: 289.8 MB / 297.1 MB, free: 6.715 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.0009433/0.0009433, allocations: 185.2 kB / 366.3 MB, free: 1.992 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.006/1.006, allocations: 205.1 MB / 0.6256 GB, free: 5.828 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.0007583/0.0007583, allocations: 88.69 kB / 0.7396 GB, free: 39.67 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.401e-06/5.421e-06, allocations: 0 / 0.859 GB, free: 13.36 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4088/0.4088, allocations: 116.3 MB / 0.9726 GB, free: 68.03 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.036/3.445, allocations: 2.103 GB / 3.075 GB, free: 352.8 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002336/3.445, allocations: 103.4 kB / 3.076 GB, free: 352.8 MB / 0.948 GB Notification: Performance of FrontEnd: time 0.118/3.563, allocations: 58.28 MB / 3.132 GB, free: 302.7 MB / 0.948 GB Notification: Performance of Transformations before backend: time 8.115e-05/3.563, allocations: 35.94 kB / 3.132 GB, free: 302.7 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.001868/3.565, allocations: 1.407 MB / 3.134 GB, free: 301.2 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/3.565, allocations: 8.031 kB / 3.134 GB, free: 301.2 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001387/3.566, allocations: 309.7 kB / 3.134 GB, free: 300.9 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001089/3.567, allocations: 0.8418 MB / 3.135 GB, free: 300 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.194e-05/3.567, allocations: 36 kB / 3.135 GB, free: 300 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000106/3.567, allocations: 60 kB / 3.135 GB, free: 299.9 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001501/3.569, allocations: 1.296 MB / 3.136 GB, free: 298.6 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001352/3.57, allocations: 1.127 MB / 3.137 GB, free: 297.4 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.658e-05/3.57, allocations: 3.984 kB / 3.137 GB, free: 297.4 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.238e-05/3.57, allocations: 3.938 kB / 3.137 GB, free: 297.4 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.32e-05/3.571, allocations: 61.89 kB / 3.138 GB, free: 297.3 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004166/3.575, allocations: 4.534 MB / 3.142 GB, free: 292.5 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009884/3.576, allocations: 0.8959 MB / 3.143 GB, free: 291.6 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004088/3.576, allocations: 401.9 kB / 3.143 GB, free: 291.2 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001593/3.576, allocations: 117.8 kB / 3.143 GB, free: 291.1 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005405/3.577, allocations: 0.5208 MB / 3.144 GB, free: 290.6 MB / 0.948 GB Notification: Performance of pre-optimization done (n=94): time 1.824e-06/3.577, allocations: 3.938 kB / 3.144 GB, free: 290.6 MB / 0.948 GB Notification: Performance of matching and sorting (n=95): time 0.001999/3.579, allocations: 1.355 MB / 3.145 GB, free: 289.2 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.004e-05/3.579, allocations: 299.5 kB / 3.145 GB, free: 288.8 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007228/3.58, allocations: 0.782 MB / 3.146 GB, free: 288 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 5.704e-05/3.58, allocations: 29.7 kB / 3.146 GB, free: 288 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/3.58, allocations: 403.8 kB / 3.147 GB, free: 287.6 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001413/3.58, allocations: 311.5 kB / 3.147 GB, free: 287.3 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.155e-05/3.58, allocations: 4 kB / 3.147 GB, free: 287.3 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 5.32e-05/3.58, allocations: 337.9 kB / 3.147 GB, free: 286.9 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003658/3.58, allocations: 317.9 kB / 3.148 GB, free: 286.6 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004458/3.581, allocations: 0.5078 MB / 3.148 GB, free: 286.1 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005901/3.582, allocations: 430 kB / 3.148 GB, free: 285.6 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/3.582, allocations: 4 kB / 3.148 GB, free: 285.6 MB / 0.948 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001656/3.583, allocations: 1.049 MB / 3.149 GB, free: 284.6 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000138/3.583, allocations: 1.141 MB / 3.151 GB, free: 283.4 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/3.583, allocations: 4 kB / 3.151 GB, free: 283.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000598/3.584, allocations: 108.8 kB / 3.151 GB, free: 283.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007627/3.585, allocations: 203.7 kB / 3.151 GB, free: 283 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004584/3.585, allocations: 0.6576 MB / 3.152 GB, free: 282.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006756/3.586, allocations: 79.66 kB / 3.152 GB, free: 282.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.622e-05/3.586, allocations: 39.92 kB / 3.152 GB, free: 282.2 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 4.869e-06/3.586, allocations: 4 kB / 3.152 GB, free: 282.2 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001089/3.587, allocations: 0.8013 MB / 3.152 GB, free: 281.4 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/3.587, allocations: 11.89 kB / 3.152 GB, free: 281.4 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.462e-06/3.587, allocations: 4 kB / 3.152 GB, free: 281.4 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007518/3.588, allocations: 208.1 kB / 3.153 GB, free: 281.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/3.588, allocations: 8 kB / 3.153 GB, free: 281.2 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005748/3.588, allocations: 79.39 kB / 3.153 GB, free: 281.1 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.054e-05/3.589, allocations: 39.98 kB / 3.153 GB, free: 281.1 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.0001436/3.589, allocations: 121.5 kB / 3.153 GB, free: 281 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/3.589, allocations: 110.7 kB / 3.153 GB, free: 280.9 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00233/3.591, allocations: 1.331 MB / 3.154 GB, free: 279.5 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/3.591, allocations: 12 kB / 3.154 GB, free: 279.5 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/3.591, allocations: 0 / 3.154 GB, free: 279.5 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.043e-05/3.591, allocations: 7.891 kB / 3.154 GB, free: 279.5 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002962/3.594, allocations: 2.478 MB / 3.157 GB, free: 276.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/3.594, allocations: 4 kB / 3.157 GB, free: 276.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006964/3.595, allocations: 195.9 kB / 3.157 GB, free: 276.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007132/3.596, allocations: 184.7 kB / 3.157 GB, free: 276.6 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.453e-05/3.596, allocations: 19.98 kB / 3.157 GB, free: 276.6 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001383/3.597, allocations: 1.689 MB / 3.159 GB, free: 274.7 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/3.597, allocations: 4.094 kB / 3.159 GB, free: 274.7 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001721/3.599, allocations: 1.398 MB / 3.16 GB, free: 273.3 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003755/3.599, allocations: 355.4 kB / 3.16 GB, free: 272.9 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001524/3.599, allocations: 4 kB / 3.16 GB, free: 272.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007329/3.6, allocations: 71.92 kB / 3.161 GB, free: 272.8 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/3.6, allocations: 64.81 kB / 3.161 GB, free: 272.8 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.244e-05/3.6, allocations: 47.91 kB / 3.161 GB, free: 272.7 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.0005454/3.601, allocations: 0.6202 MB / 3.161 GB, free: 272.1 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.001142/3.602, allocations: 435.9 kB / 3.162 GB, free: 271.7 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.0007719/3.603, allocations: 490.4 kB / 3.162 GB, free: 271.2 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.001571/3.604, allocations: 1.345 MB / 3.163 GB, free: 269.9 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/3.604, allocations: 0 / 3.163 GB, free: 269.9 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0006893/3.605, allocations: 0.5989 MB / 3.164 GB, free: 269.3 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001076/3.606, allocations: 273.2 kB / 3.164 GB, free: 269 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002678/3.609, allocations: 1.815 MB / 3.166 GB, free: 267.2 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007984/3.61, allocations: 1.342 MB / 3.167 GB, free: 265.8 MB / 0.948 GB Notification: Performance of SimCode: time 1.062e-06/3.61, allocations: 0 / 3.167 GB, free: 265.8 MB / 0.948 GB Notification: Performance of Templates: time 0.02618/3.636, allocations: 22.46 MB / 3.189 GB, free: 243.4 MB / 0.948 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.makefile (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.sim & ./Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe 2>&1)