Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.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.PowerPlantTest3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3") [: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.001475/0.001475, allocations: 194.6 kB / 8.139 MB, free: 2.211 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.179/1.179, allocations: 194.2 MB / 202.8 MB, free: 8.758 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.001824/0.001824, allocations: 112.3 kB / 247.7 MB, free: 6.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1637/0.1637, allocations: 37.92 MB / 330.5 MB, free: 6.93 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 9.248e-06/9.268e-06, allocations: 0 / 389.8 MB, free: 78.12 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1254, allocations: 53.23 MB / 443 MB, free: 24.98 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3372/0.4626, allocations: 98.57 MB / 0.5289 GB, free: 8.301 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000213/0.4628, allocations: 85.09 kB / 0.529 GB, free: 8.289 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.06467/0.5275, allocations: 26.89 MB / 0.5552 GB, free: 3.352 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.321e-05/0.5276, allocations: 20 kB / 0.5553 GB, free: 3.332 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: 161 * Number of variables: 161 Notification: Performance of Generate backend data structure: time 0.00193/0.5296, allocations: 0.9924 MB / 0.5562 GB, free: 2.344 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.5296, allocations: 12.03 kB / 0.5562 GB, free: 2.332 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001441/0.5311, allocations: 202.7 kB / 0.5564 GB, free: 2.133 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/0.5321, allocations: 0.5869 MB / 0.557 GB, free: 1.605 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.964e-05/0.5322, allocations: 20 kB / 0.557 GB, free: 1.586 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001467/0.5323, allocations: 43.89 kB / 0.5571 GB, free: 1.543 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009431/0.5333, allocations: 0.5564 MB / 0.5576 GB, free: 1.195 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001116/0.5344, allocations: 0.6859 MB / 0.5583 GB, free: 0.6719 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.353e-05/0.5344, allocations: 4 kB / 0.5583 GB, free: 0.668 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.675e-05/0.5345, allocations: 0 / 0.5583 GB, free: 0.668 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.093e-05/0.5346, allocations: 48.34 kB / 0.5583 GB, free: 0.625 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004228/0.5388, allocations: 2.744 MB / 0.561 GB, free: 14.42 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007736/0.5396, allocations: 468.8 kB / 0.5615 GB, free: 14.1 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003244/0.54, allocations: 242.8 kB / 0.5617 GB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.062e-05/0.54, allocations: 8.484 kB / 0.5617 GB, free: 13.94 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.678e-05/0.5401, allocations: 46.44 kB / 0.5617 GB, free: 13.88 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 1.783e-06/0.5401, allocations: 0 / 0.5617 GB, free: 13.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=62): time 0.003022/0.5431, allocations: 1.81 MB / 0.5635 GB, free: 12.37 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.379e-05/0.5432, allocations: 107.3 kB / 0.5636 GB, free: 12.24 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004328/0.5436, allocations: 382.7 kB / 0.564 GB, free: 11.94 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.809e-05/0.5437, allocations: 25.7 kB / 0.564 GB, free: 11.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.5438, allocations: 274 kB / 0.5643 GB, free: 11.67 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001636/0.544, allocations: 203.6 kB / 0.5645 GB, free: 11.49 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.674e-05/0.544, allocations: 0 / 0.5645 GB, free: 11.49 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.5442, allocations: 374.1 kB / 0.5648 GB, free: 11.14 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003145/0.5445, allocations: 213.1 kB / 0.565 GB, free: 11.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004254/0.545, allocations: 331.7 kB / 0.5653 GB, free: 10.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000379/0.5454, allocations: 258.6 kB / 0.5656 GB, free: 10.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.5454, allocations: 4 kB / 0.5656 GB, free: 10.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001073/0.5465, allocations: 0.6568 MB / 0.5662 GB, free: 10.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004402/0.5469, allocations: 1.139 MB / 0.5673 GB, free: 8.879 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.5469, allocations: 4 kB / 0.5673 GB, free: 8.875 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002675/0.5472, allocations: 68.58 kB / 0.5674 GB, free: 8.812 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007812/0.548, allocations: 183.3 kB / 0.5676 GB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001543/0.5495, allocations: 1.509 MB / 0.5691 GB, free: 7.109 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004834/0.55, allocations: 48.02 kB / 0.5691 GB, free: 7.062 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.914e-05/0.5501, allocations: 23.23 kB / 0.5691 GB, free: 7.043 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.256e-06/0.5501, allocations: 4 kB / 0.5691 GB, free: 7.039 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001006/0.5511, allocations: 0.5766 MB / 0.5697 GB, free: 6.625 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.5511, allocations: 8.375 kB / 0.5697 GB, free: 6.617 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002029/0.5514, allocations: 62.12 kB / 0.5698 GB, free: 6.562 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007305/0.5521, allocations: 163 kB / 0.5699 GB, free: 6.406 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001418/0.5535, allocations: 1.521 MB / 0.5714 GB, free: 4.816 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004442/0.554, allocations: 40 kB / 0.5714 GB, free: 4.777 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.893e-05/0.554, allocations: 24 kB / 0.5715 GB, free: 4.754 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (75): * Single equations (assignments): 74 * 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 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001727/0.5542, allocations: 116.8 kB / 0.5716 GB, free: 4.633 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/0.5543, allocations: 67.19 kB / 0.5716 GB, free: 4.566 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001236/0.5556, allocations: 0.6318 MB / 0.5723 GB, free: 3.926 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.5556, allocations: 8 kB / 0.5723 GB, free: 3.918 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.5556, allocations: 7.938 kB / 0.5723 GB, free: 3.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.5556, allocations: 3.984 kB / 0.5723 GB, free: 3.906 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00369/0.5593, allocations: 1.867 MB / 0.5741 GB, free: 1.918 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.616e-06/0.5594, allocations: 8 kB / 0.5741 GB, free: 1.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006387/0.56, allocations: 135.9 kB / 0.5742 GB, free: 1.777 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001965/0.5602, allocations: 60.81 kB / 0.5743 GB, free: 1.715 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.852e-05/0.5603, allocations: 16 kB / 0.5743 GB, free: 1.699 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001351/0.5616, allocations: 1.498 MB / 0.5758 GB, free: 88 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.467e-06/0.5616, allocations: 11.94 kB / 0.5758 GB, free: 76 kB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001794/0.5634, allocations: 1.427 MB / 0.5772 GB, free: 14.4 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002583/0.5637, allocations: 196.2 kB / 0.5774 GB, free: 14.19 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.915e-05/0.5638, allocations: 12 kB / 0.5774 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004961/0.5643, allocations: 47.95 kB / 0.5774 GB, free: 14.13 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.5644, allocations: 47.84 kB / 0.5775 GB, free: 14.08 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.613e-05/0.5645, allocations: 27.98 kB / 0.5775 GB, free: 14.05 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0003503/0.5649, allocations: 295 kB / 0.5778 GB, free: 13.77 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009351/0.5658, allocations: 228.7 kB / 0.578 GB, free: 13.55 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 7 (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 (62): * Single equations (assignments): 60 * 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: 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001814/0.566, allocations: 115 kB / 0.5781 GB, free: 13.43 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001617/0.5676, allocations: 1.064 MB / 0.5791 GB, free: 12.34 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.5676, allocations: 4.125 kB / 0.5791 GB, free: 12.34 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006639/0.5683, allocations: 437.3 kB / 0.5796 GB, free: 11.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006807/0.569, allocations: 119.4 kB / 0.5797 GB, free: 11.79 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00254/0.5715, allocations: 1.259 MB / 0.5809 GB, free: 10.41 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008607/0.5724, allocations: 1.039 MB / 0.5819 GB, free: 9.352 MB / 394.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5724, allocations: 0 / 0.5819 GB, free: 9.352 MB / 394.7 MB Notification: Performance of Templates: time 0.01761/0.59, allocations: 10.27 MB / 0.5919 GB, free: 15.11 MB / 410.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe 2>&1)