Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.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.PowerPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2") [: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.001109/0.001109, allocations: 190.5 kB / 8.134 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.179/1.179, allocations: 194.2 MB / 202.8 MB, free: 8.715 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.001914/0.001914, allocations: 126.6 kB / 247.8 MB, free: 6.363 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1644/0.1644, allocations: 37.91 MB / 330.5 MB, free: 6.91 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 9.598e-06/9.618e-06, allocations: 0 / 389.8 MB, free: 78.11 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1361, allocations: 53.22 MB / 443 MB, free: 24.98 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3519/0.4881, allocations: 96.76 MB / 0.5271 GB, free: 8.641 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003212/0.4885, allocations: 83.8 kB / 0.5272 GB, free: 8.629 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.05549/0.544, allocations: 21.24 MB / 0.548 GB, free: 9.547 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.197e-05/0.5441, allocations: 19.94 kB / 0.548 GB, free: 9.527 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.002256/0.5464, allocations: 0.9287 MB / 0.5489 GB, free: 8.598 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.5464, allocations: 12.03 kB / 0.5489 GB, free: 8.586 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001181/0.5476, allocations: 165.8 kB / 0.549 GB, free: 8.426 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001147/0.5488, allocations: 0.5654 MB / 0.5496 GB, free: 7.914 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.032e-05/0.5488, allocations: 16 kB / 0.5496 GB, free: 7.898 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.549, allocations: 43.89 kB / 0.5497 GB, free: 7.855 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000914/0.5499, allocations: 456.1 kB / 0.5501 GB, free: 7.586 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009921/0.5509, allocations: 0.5836 MB / 0.5507 GB, free: 7.137 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.205e-05/0.5509, allocations: 0 / 0.5507 GB, free: 7.137 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.272e-05/0.551, allocations: 4 kB / 0.5507 GB, free: 7.133 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.264e-05/0.551, allocations: 36.67 kB / 0.5507 GB, free: 7.102 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004094/0.5551, allocations: 2.471 MB / 0.5531 GB, free: 5.113 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/0.5562, allocations: 0.6014 MB / 0.5537 GB, free: 4.641 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002923/0.5565, allocations: 183.1 kB / 0.5539 GB, free: 4.527 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.938e-05/0.5566, allocations: 4.438 kB / 0.5539 GB, free: 4.523 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.978e-05/0.5566, allocations: 42.17 kB / 0.5539 GB, free: 4.477 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 3.898e-06/0.5566, allocations: 4 kB / 0.5539 GB, free: 4.473 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.0007719/0.5574, allocations: 425.2 kB / 0.5543 GB, free: 4.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.001e-05/0.5575, allocations: 107.2 kB / 0.5544 GB, free: 4.031 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004534/0.5579, allocations: 379.2 kB / 0.5548 GB, free: 3.734 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.012e-05/0.558, allocations: 25.7 kB / 0.5548 GB, free: 3.703 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/0.5581, allocations: 251.1 kB / 0.5551 GB, free: 3.484 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001402/0.5583, allocations: 168.6 kB / 0.5552 GB, free: 3.336 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.518e-05/0.5583, allocations: 0 / 0.5552 GB, free: 3.336 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.5585, allocations: 373.1 kB / 0.5556 GB, free: 2.988 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002674/0.5588, allocations: 158.2 kB / 0.5557 GB, free: 2.902 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003238/0.5591, allocations: 271.5 kB / 0.556 GB, free: 2.672 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003058/0.5594, allocations: 193.6 kB / 0.5562 GB, free: 2.559 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.5594, allocations: 0 / 0.5562 GB, free: 2.559 MB / 362.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.00118/0.5606, allocations: 0.6183 MB / 0.5568 GB, free: 2.078 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004379/0.561, allocations: 1.052 MB / 0.5578 GB, free: 0.9609 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.5611, allocations: 4 kB / 0.5578 GB, free: 0.957 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003688/0.5614, allocations: 103.6 kB / 0.5579 GB, free: 0.8789 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006402/0.5621, allocations: 143.5 kB / 0.558 GB, free: 0.7422 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005825/0.5627, allocations: 0.6819 MB / 0.5587 GB, free: 116 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004962/0.5632, allocations: 75.55 kB / 0.5588 GB, free: 40 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.095e-05/0.5633, allocations: 27.45 kB / 0.5588 GB, free: 20 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.777e-06/0.5633, allocations: 11.94 kB / 0.5588 GB, free: 8 kB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000894/0.5642, allocations: 479.1 kB / 0.5593 GB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-06/0.5642, allocations: 7.984 kB / 0.5593 GB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002537/0.5645, allocations: 95.73 kB / 0.5594 GB, free: 15.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000608/0.5651, allocations: 139.7 kB / 0.5595 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002013/0.5671, allocations: 1.85 MB / 0.5613 GB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004558/0.5676, allocations: 55.72 kB / 0.5614 GB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.335e-05/0.5676, allocations: 22.59 kB / 0.5614 GB, free: 13.68 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 (58): * Single equations (assignments): 57 * 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.000197/0.5678, allocations: 128.5 kB / 0.5615 GB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000111/0.5679, allocations: 55.34 kB / 0.5616 GB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008108/0.5688, allocations: 467.9 kB / 0.562 GB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.5688, allocations: 4 kB / 0.562 GB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.5688, allocations: 4 kB / 0.562 GB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.5688, allocations: 3.984 kB / 0.562 GB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001725/0.5705, allocations: 1.089 MB / 0.5631 GB, free: 12.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.5706, allocations: 4 kB / 0.5631 GB, free: 12.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006858/0.5712, allocations: 129.5 kB / 0.5632 GB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.091e-05/0.5713, allocations: 4 kB / 0.5632 GB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.632e-05/0.5713, allocations: 0 / 0.5632 GB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.07e-06/0.5713, allocations: 7.984 kB / 0.5632 GB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.5713, allocations: 0 / 0.5632 GB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001103/0.5725, allocations: 0.7858 MB / 0.564 GB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002539/0.5727, allocations: 185.6 kB / 0.5642 GB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.482e-05/0.5728, allocations: 3.688 kB / 0.5642 GB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004493/0.5733, allocations: 43.95 kB / 0.5642 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.5734, allocations: 31.83 kB / 0.5642 GB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.506e-05/0.5734, allocations: 15.17 kB / 0.5643 GB, free: 11.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003821/0.5738, allocations: 285.5 kB / 0.5645 GB, free: 11.14 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008803/0.5747, allocations: 262.5 kB / 0.5648 GB, free: 10.89 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 (51): * Single equations (assignments): 50 * 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.0001958/0.5749, allocations: 107.1 kB / 0.5649 GB, free: 10.78 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001587/0.5765, allocations: 0.8139 MB / 0.5657 GB, free: 10.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.5765, allocations: 0 / 0.5657 GB, free: 10.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003685/0.5769, allocations: 221.4 kB / 0.5659 GB, free: 10.03 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005945/0.5775, allocations: 101 kB / 0.566 GB, free: 9.957 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002575/0.5801, allocations: 1.114 MB / 0.5671 GB, free: 8.918 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007248/0.5808, allocations: 0.9898 MB / 0.568 GB, free: 7.914 MB / 378.7 MB Notification: Performance of SimCode: time 3.01e-07/0.5808, allocations: 0 / 0.568 GB, free: 7.914 MB / 378.7 MB Notification: Performance of Templates: time 0.0168/0.5976, allocations: 9.203 MB / 0.577 GB, free: 14.74 MB / 394.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1)