Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1") [: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/Complex 3.2.2+maint.om/package.mo): time 0.001093/0.001093, allocations: 190.2 kB / 8.137 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.148/1.148, allocations: 194.2 MB / 202.8 MB, free: 8.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001739/0.001739, allocations: 122 kB / 247.7 MB, free: 6.41 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1715/0.1715, allocations: 37.92 MB / 330.5 MB, free: 6.902 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 7.464e-06/7.484e-06, allocations: 0 / 389.8 MB, free: 78.11 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08658/0.08661, allocations: 53.23 MB / 443 MB, free: 24.98 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3932/0.4798, allocations: 96.55 MB / 0.5269 GB, free: 8.832 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002765/0.4802, allocations: 85.67 kB / 0.527 GB, free: 8.82 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.05571/0.5359, allocations: 21.08 MB / 0.5476 GB, free: 9.906 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001126/0.5361, allocations: 20 kB / 0.5476 GB, free: 9.887 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.002686/0.5388, allocations: 0.9122 MB / 0.5485 GB, free: 8.969 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.013e-05/0.5388, allocations: 8.031 kB / 0.5485 GB, free: 8.961 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001474/0.5403, allocations: 174.8 kB / 0.5487 GB, free: 8.789 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001294/0.5416, allocations: 0.5549 MB / 0.5492 GB, free: 8.289 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.701e-05/0.5417, allocations: 20 kB / 0.5492 GB, free: 8.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001449/0.5418, allocations: 39.73 kB / 0.5493 GB, free: 8.234 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009216/0.5428, allocations: 449.1 kB / 0.5497 GB, free: 7.965 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001029/0.5438, allocations: 0.5901 MB / 0.5503 GB, free: 7.516 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.532e-05/0.5438, allocations: 0 / 0.5503 GB, free: 7.516 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.58e-05/0.5439, allocations: 0 / 0.5503 GB, free: 7.516 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.827e-05/0.544, allocations: 33.11 kB / 0.5503 GB, free: 7.484 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004289/0.5483, allocations: 2.445 MB / 0.5527 GB, free: 5.516 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001045/0.5493, allocations: 0.5708 MB / 0.5533 GB, free: 5.07 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003131/0.5496, allocations: 185.7 kB / 0.5534 GB, free: 4.953 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.678e-05/0.5497, allocations: 4.438 kB / 0.5534 GB, free: 4.949 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.58e-05/0.5498, allocations: 38.44 kB / 0.5535 GB, free: 4.906 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.344e-06/0.5498, allocations: 4 kB / 0.5535 GB, free: 4.902 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009203/0.5507, allocations: 422.7 kB / 0.5539 GB, free: 4.59 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.765e-05/0.5508, allocations: 107.2 kB / 0.554 GB, free: 4.461 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004818/0.5513, allocations: 364.4 kB / 0.5543 GB, free: 4.176 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.126e-05/0.5513, allocations: 25.7 kB / 0.5544 GB, free: 4.145 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001749/0.5515, allocations: 254.7 kB / 0.5546 GB, free: 3.922 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001522/0.5517, allocations: 172.2 kB / 0.5548 GB, free: 3.773 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.19e-05/0.5517, allocations: 0 / 0.5548 GB, free: 3.773 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.5519, allocations: 374.7 kB / 0.5551 GB, free: 3.422 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002797/0.5522, allocations: 149.9 kB / 0.5553 GB, free: 3.34 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003402/0.5525, allocations: 257.3 kB / 0.5555 GB, free: 3.125 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003213/0.5529, allocations: 188.7 kB / 0.5557 GB, free: 3.012 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.5529, allocations: 0 / 0.5557 GB, free: 3.012 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001232/0.5541, allocations: 0.6065 MB / 0.5563 GB, free: 2.539 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004226/0.5545, allocations: 1.051 MB / 0.5573 GB, free: 1.426 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.5546, allocations: 4 kB / 0.5573 GB, free: 1.422 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004221/0.555, allocations: 104.5 kB / 0.5574 GB, free: 1.344 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006205/0.5556, allocations: 134.7 kB / 0.5575 GB, free: 1.215 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006918/0.5563, allocations: 0.6868 MB / 0.5582 GB, free: 0.582 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005188/0.5569, allocations: 59.72 kB / 0.5583 GB, free: 0.5234 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.074e-05/0.5569, allocations: 27.38 kB / 0.5583 GB, free: 0.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/0.557, allocations: 7.938 kB / 0.5583 GB, free: 0.4922 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009075/0.5579, allocations: 465.7 kB / 0.5587 GB, free: 176 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.5579, allocations: 4 kB / 0.5587 GB, free: 172 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002609/0.5582, allocations: 93.33 kB / 0.5588 GB, free: 96 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005779/0.5587, allocations: 130.8 kB / 0.559 GB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002017/0.5608, allocations: 1.855 MB / 0.5608 GB, free: 14.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004699/0.5613, allocations: 51.72 kB / 0.5608 GB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.949e-05/0.5613, allocations: 19.69 kB / 0.5608 GB, free: 14.19 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: powerPlant.primaryControl.gainPID.y:VARIABLE() "Output signal connector" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * 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 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002655/0.5616, allocations: 120.9 kB / 0.561 GB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001307/0.5617, allocations: 55.33 kB / 0.561 GB, free: 14.01 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008872/0.5626, allocations: 460.3 kB / 0.5614 GB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.5626, allocations: 4 kB / 0.5614 GB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.5627, allocations: 4 kB / 0.5615 GB, free: 13.69 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.5627, allocations: 0 / 0.5615 GB, free: 13.69 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001794/0.5645, allocations: 1.078 MB / 0.5625 GB, free: 12.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/0.5645, allocations: 3.938 kB / 0.5625 GB, free: 12.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000623/0.5651, allocations: 114.9 kB / 0.5626 GB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.507e-06/0.5651, allocations: 4 kB / 0.5626 GB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.22e-05/0.5652, allocations: 3 kB / 0.5626 GB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.5652, allocations: 4 kB / 0.5626 GB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.5652, allocations: 0 / 0.5626 GB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001065/0.5663, allocations: 0.7656 MB / 0.5634 GB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002407/0.5665, allocations: 176.5 kB / 0.5635 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.308e-05/0.5666, allocations: 0 / 0.5635 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004099/0.567, allocations: 35.97 kB / 0.5636 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.5671, allocations: 39.41 kB / 0.5636 GB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.543e-05/0.5672, allocations: 12 kB / 0.5636 GB, free: 11.92 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003488/0.5675, allocations: 286.6 kB / 0.5639 GB, free: 11.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009218/0.5685, allocations: 243 kB / 0.5641 GB, free: 11.47 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (powerPlant.rotor.phi,powerPlant.rotor.w,powerPlant.evaporator.y,powerPlant.superheater1.y,powerPlant.superheater2.y,powerPlant.transferFunction.x_scaled[1],powerPlant.hotwellLevel.y,powerPlant.throttleDynamics.y,powerPlant.throttleCosts.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000198/0.5687, allocations: 110.4 kB / 0.5642 GB, free: 11.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001551/0.5702, allocations: 0.7965 MB / 0.565 GB, free: 10.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.5703, allocations: 4 kB / 0.565 GB, free: 10.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003332/0.5706, allocations: 210.8 kB / 0.5652 GB, free: 10.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006911/0.5713, allocations: 116 kB / 0.5653 GB, free: 10.54 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002913/0.5742, allocations: 1.11 MB / 0.5664 GB, free: 9.512 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007918/0.575, allocations: 0.9852 MB / 0.5674 GB, free: 8.512 MB / 378.7 MB Notification: Performance of SimCode: time 8.21e-07/0.5751, allocations: 0 / 0.5674 GB, free: 8.512 MB / 378.7 MB Notification: Performance of Templates: time 0.019/0.5941, allocations: 8.893 MB / 0.5761 GB, free: 15.65 MB / 394.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1)