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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002343/0.002342, allocations: 111.2 kB / 17.28 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0032/0.003201, allocations: 197.3 kB / 18.21 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.111/3.111, allocations: 222.9 MB / 241.9 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.4563/0.4563, allocations: 38.03 MB / 330.1 MB, free: 8.965 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002926/0.002926, allocations: 63.3 kB / 398.9 MB, free: 34.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.3018, allocations: 58.06 MB / 457 MB, free: 8.406 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.0233/0.3252, allocations: 5.851 MB / 462.8 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007449/0.3327, allocations: 2.347 MB / 465.2 MB, free: 172 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002053/0.3349, allocations: 31.81 kB / 465.2 MB, free: 140 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001946/0.3368, allocations: 242.8 kB / 465.5 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006533/0.3434, allocations: 306.5 kB / 465.8 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002825/0.3463, allocations: 470.6 kB / 466.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002778/0.3491, allocations: 1.05 MB / 467.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006069/0.3552, allocations: 0.6425 MB / 467.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001252/0.3565, allocations: 398.4 kB / 468.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007573/0.3573, allocations: 414.1 kB / 468.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001671/0.3575, allocations: 84 kB / 468.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001041/0.3585, allocations: 359.2 kB / 469.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003466/0.3589, allocations: 227.3 kB / 469.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006484/0.3595, allocations: 389.8 kB / 469.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00167/0.3612, allocations: 0.8343 MB / 470.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.467e-06/0.3612, allocations: 0 / 470.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.456e-06/0.3613, allocations: 0 / 470.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.081e-05/0.3613, allocations: 0 / 470.6 MB, free: 10.75 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.003827/0.3651, allocations: 1.149 MB / 471.7 MB, free: 9.551 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.928e-05/0.3653, allocations: 11.89 kB / 471.7 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01012/0.3754, allocations: 159.8 kB / 471.9 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00231/0.3778, allocations: 0.5851 MB / 472.5 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001198/0.3779, allocations: 49.69 kB / 472.5 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004113/0.3784, allocations: 60.38 kB / 472.6 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002975/0.3814, allocations: 0.772 MB / 473.4 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.328e-05/0.3814, allocations: 3.938 kB / 473.4 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001236/0.3816, allocations: 27.98 kB / 473.4 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.877e-05/0.3817, allocations: 25.31 kB / 473.4 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002348/0.384, allocations: 0.6686 MB / 474.1 MB, free: 7.117 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01755/0.4016, allocations: 2.914 MB / 477 MB, free: 4.082 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002614/0.4043, allocations: 0.7402 MB / 477.7 MB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000812/0.4052, allocations: 243 kB / 478 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.621e-05/0.4053, allocations: 24.36 kB / 478 MB, free: 3.035 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.087e-05/0.4054, allocations: 39 kB / 478 MB, free: 2.988 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 4.869e-06/0.4054, allocations: 0 / 478 MB, free: 2.988 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.007062/0.4125, allocations: 0.748 MB / 478.8 MB, free: 2.238 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.4127, allocations: 111.2 kB / 478.9 MB, free: 2.105 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009923/0.4226, allocations: 0.579 MB / 479.5 MB, free: 1.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002134/0.4229, allocations: 33.7 kB / 479.5 MB, free: 1.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005923/0.4235, allocations: 356.5 kB / 479.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004137/0.424, allocations: 181.4 kB / 480 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003628/0.4243, allocations: 94.34 kB / 480.1 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002979/0.4246, allocations: 382.8 kB / 480.5 MB, free: 480 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009446/0.4256, allocations: 227.4 kB / 480.7 MB, free: 252 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001396/0.427, allocations: 365.5 kB / 481.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001848/0.4289, allocations: 0.5861 MB / 481.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.14e-05/0.4289, allocations: 0 / 481.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.003149/0.4321, allocations: 0.8225 MB / 482.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.723e-05/0.4322, allocations: 7.938 kB / 482.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/0.4322, allocations: 4 kB / 482.5 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006962/0.4329, allocations: 121.1 kB / 482.6 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009065/0.4338, allocations: 139.8 kB / 482.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004963/0.4388, allocations: 2.416 MB / 485.2 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009887/0.4398, allocations: 83.45 kB / 485.2 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/0.44, allocations: 24 kB / 485.3 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001158/0.4411, allocations: 381.3 kB / 485.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008399/0.442, allocations: 349.5 kB / 486 MB, free: 10.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01034/0.4523, allocations: 0.5588 MB / 486.5 MB, free: 10.06 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.21e-05/0.4524, allocations: 0 / 486.5 MB, free: 10.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.002844/0.4553, allocations: 0.7369 MB / 487.3 MB, free: 9.309 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.955e-05/0.4554, allocations: 4 kB / 487.3 MB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/0.4554, allocations: 7.938 kB / 487.3 MB, free: 9.297 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004965/0.4559, allocations: 104.8 kB / 487.4 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009587/0.4569, allocations: 144 kB / 487.5 MB, free: 9.051 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003985/0.4609, allocations: 2.225 MB / 489.8 MB, free: 6.688 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001011/0.462, allocations: 75.61 kB / 489.8 MB, free: 6.613 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001222/0.4621, allocations: 20 kB / 489.9 MB, free: 6.594 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,powerPlant.throttleCosts.local_reset,powerPlant.hotwellLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0005055/0.4626, allocations: 216 kB / 490.1 MB, free: 6.375 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003358/0.463, allocations: 63.25 kB / 490.1 MB, free: 6.312 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002219/0.4652, allocations: 0.6043 MB / 490.7 MB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.464e-05/0.4652, allocations: 4.297 kB / 490.7 MB, free: 5.691 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.4653, allocations: 3.938 kB / 490.7 MB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.189e-05/0.4653, allocations: 7.922 kB / 490.7 MB, free: 5.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008542/0.4738, allocations: 1.361 MB / 492.1 MB, free: 4.262 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.27e-05/0.4739, allocations: 4 kB / 492.1 MB, free: 4.258 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005116/0.479, allocations: 115.9 kB / 492.2 MB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-05/0.4791, allocations: 0 / 492.2 MB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000107/0.4792, allocations: 12 kB / 492.2 MB, free: 4.133 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.504e-05/0.4793, allocations: 7.938 kB / 492.2 MB, free: 4.125 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.4793, allocations: 0 / 492.2 MB, free: 4.125 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00335/0.4826, allocations: 0.9598 MB / 493.2 MB, free: 3.148 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006648/0.4833, allocations: 188.1 kB / 493.4 MB, free: 2.945 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002668/0.4836, allocations: 15.98 kB / 493.4 MB, free: 2.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007288/0.4844, allocations: 39.95 kB / 493.4 MB, free: 2.891 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002215/0.4846, allocations: 40.39 kB / 493.5 MB, free: 2.848 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.759e-05/0.4847, allocations: 16 kB / 493.5 MB, free: 2.832 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00121/0.4859, allocations: 415 kB / 493.9 MB, free: 2.434 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.996e-06/0.4859, allocations: 96 / 493.9 MB, free: 2.434 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00633/0.4923, allocations: 275.2 kB / 494.2 MB, free: 2.164 MB / 366.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004093/0.4928, allocations: 111.2 kB / 494.3 MB, free: 2.047 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004387/0.4972, allocations: 1.195 MB / 495.5 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/0.4972, allocations: 0 / 495.5 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009415/0.4982, allocations: 282.4 kB / 495.8 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001487/0.4997, allocations: 155 kB / 495.9 MB, free: 420 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01002/0.5097, allocations: 1.856 MB / 497.8 MB, free: 14.51 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0011/0.5109, allocations: 0.9457 MB / 498.7 MB, free: 13.54 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000426/0.5113, allocations: 47.42 kB / 498.7 MB, free: 13.49 MB / 382.1 MB Notification: Performance of SimCode: time 2.074e-06/0.5113, allocations: 0 / 498.7 MB, free: 13.49 MB / 382.1 MB Notification: Performance of Templates: time 0.03406/0.5454, allocations: 9.927 MB / 0.4968 GB, free: 3.586 MB / 382.1 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)