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/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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 109.6 kB / 17.06 MB, free: 6.023 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.001282/0.001282, allocations: 191 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1772/0.1772, allocations: 38.03 MB / 329.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 59.91 kB / 458.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3183/0.3195, allocations: 58.05 MB / 0.5041 GB, free: 7.812 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3): time 0.006764/0.3263, allocations: 5.913 MB / 0.5099 GB, free: 3.656 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004688/0.3311, allocations: 2.725 MB / 0.5125 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008227/0.3319, allocations: 26.56 kB / 0.5125 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001291/0.3332, allocations: 380.7 kB / 0.5129 GB, free: 1.473 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001344/0.3346, allocations: 481.4 kB / 0.5134 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001386/0.336, allocations: 0.55 MB / 0.5139 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001502/0.3375, allocations: 1.21 MB / 0.5151 GB, free: 308 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001544/0.339, allocations: 0.7167 MB / 0.5158 GB, free: 15.91 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009073/0.34, allocations: 472.7 kB / 0.5162 GB, free: 15.68 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007037/0.3407, allocations: 470.9 kB / 0.5167 GB, free: 15.45 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001502/0.3408, allocations: 91.06 kB / 0.5168 GB, free: 15.44 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001251/0.3421, allocations: 0.5282 MB / 0.5173 GB, free: 15.25 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003391/0.3425, allocations: 263.6 kB / 0.5175 GB, free: 15.11 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005024/0.343, allocations: 437.8 kB / 0.518 GB, free: 14.81 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002211/0.3452, allocations: 1.241 MB / 0.5192 GB, free: 14.3 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.3452, allocations: 0 / 0.5192 GB, free: 14.3 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3452, allocations: 0 / 0.5192 GB, free: 14.3 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.869e-05/0.3452, allocations: 1.375 kB / 0.5192 GB, free: 14.3 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.002608/0.3478, allocations: 1.21 MB / 0.5204 GB, free: 13.47 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.3479, allocations: 13.78 kB / 0.5204 GB, free: 13.47 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001338/0.3492, allocations: 198.4 kB / 0.5206 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001168/0.3504, allocations: 0.6348 MB / 0.5212 GB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.71e-05/0.3505, allocations: 48.66 kB / 0.5212 GB, free: 12.97 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001271/0.3506, allocations: 69.31 kB / 0.5213 GB, free: 12.95 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001778/0.3524, allocations: 0.8873 MB / 0.5222 GB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.735e-05/0.3524, allocations: 5.406 kB / 0.5222 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.461e-05/0.3525, allocations: 26.3 kB / 0.5222 GB, free: 12.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-05/0.3526, allocations: 35.62 kB / 0.5222 GB, free: 12.5 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001709/0.3543, allocations: 0.7916 MB / 0.523 GB, free: 12.24 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005777/0.3601, allocations: 3.232 MB / 0.5261 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001967/0.3621, allocations: 0.9716 MB / 0.5271 GB, free: 9.621 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006616/0.3628, allocations: 307.9 kB / 0.5274 GB, free: 9.504 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.08e-05/0.3628, allocations: 9.109 kB / 0.5274 GB, free: 9.504 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.19e-05/0.3629, allocations: 42.88 kB / 0.5274 GB, free: 9.457 MB / 398.1 MB Notification: Performance of pre-optimization done (n=59): time 2.324e-06/0.3629, allocations: 0 / 0.5274 GB, free: 9.457 MB / 398.1 MB Notification: Performance of matching and sorting (n=63): time 0.005977/0.3689, allocations: 2.535 MB / 0.5299 GB, free: 8.047 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.369, allocations: 110 kB / 0.53 GB, free: 7.922 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001025/0.3701, allocations: 0.5842 MB / 0.5306 GB, free: 7.652 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.399e-05/0.3701, allocations: 37.05 kB / 0.5306 GB, free: 7.613 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002728/0.3704, allocations: 366.1 kB / 0.531 GB, free: 7.293 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002035/0.3706, allocations: 225.5 kB / 0.5312 GB, free: 7.098 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002029/0.3708, allocations: 113.3 kB / 0.5313 GB, free: 7.027 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001869/0.371, allocations: 383 kB / 0.5317 GB, free: 6.66 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00059/0.3716, allocations: 274 kB / 0.5319 GB, free: 6.523 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007174/0.3723, allocations: 423 kB / 0.5323 GB, free: 6.211 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001298/0.3736, allocations: 0.694 MB / 0.533 GB, free: 5.77 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.3737, allocations: 6 kB / 0.533 GB, free: 5.766 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001841/0.3755, allocations: 0.8254 MB / 0.5338 GB, free: 5.344 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.3755, allocations: 6.438 kB / 0.5338 GB, free: 5.344 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.3756, allocations: 8.188 kB / 0.5338 GB, free: 5.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002892/0.3759, allocations: 61.31 kB / 0.5339 GB, free: 5.309 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007746/0.3766, allocations: 176.7 kB / 0.5341 GB, free: 5.266 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001862/0.3785, allocations: 1.821 MB / 0.5358 GB, free: 3.512 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005316/0.3791, allocations: 49.83 kB / 0.5359 GB, free: 3.488 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.206e-05/0.3791, allocations: 32.11 kB / 0.5359 GB, free: 3.477 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008995/0.3801, allocations: 440.4 kB / 0.5363 GB, free: 3.211 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007154/0.3808, allocations: 400 kB / 0.5367 GB, free: 2.918 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001556/0.3823, allocations: 0.6699 MB / 0.5374 GB, free: 2.484 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.967e-06/0.3824, allocations: 1.219 kB / 0.5374 GB, free: 2.484 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization_lambda0): time 0.002018/0.3844, allocations: 0.8075 MB / 0.5382 GB, free: 2.07 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.3844, allocations: 7.125 kB / 0.5382 GB, free: 2.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.3844, allocations: 3.219 kB / 0.5382 GB, free: 2.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002176/0.3847, allocations: 62.88 kB / 0.5382 GB, free: 2.039 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007035/0.3854, allocations: 172.5 kB / 0.5384 GB, free: 1.996 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001613/0.387, allocations: 1.803 MB / 0.5402 GB, free: 268 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005848/0.3876, allocations: 44.17 kB / 0.5402 GB, free: 248 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.294e-05/0.3877, allocations: 32.52 kB / 0.5402 GB, free: 236 kB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (80): * Single equations (assignments): 79 * 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,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002999/0.388, allocations: 225.3 kB / 0.5404 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002278/0.3882, allocations: 72.98 kB / 0.5405 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002007/0.3903, allocations: 0.7698 MB / 0.5413 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.776e-06/0.3903, allocations: 7.375 kB / 0.5413 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.105e-06/0.3903, allocations: 0 / 0.5413 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/0.3903, allocations: 5.359 kB / 0.5413 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004449/0.3948, allocations: 2.14 MB / 0.5434 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.588e-05/0.3948, allocations: 10.41 kB / 0.5434 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005892/0.3954, allocations: 131.5 kB / 0.5435 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002046/0.3956, allocations: 55.62 kB / 0.5436 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.438e-05/0.3957, allocations: 24.62 kB / 0.5436 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001587/0.3973, allocations: 1.764 MB / 0.5453 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.327e-06/0.3973, allocations: 11.03 kB / 0.5453 GB, free: 12.22 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002442/0.3997, allocations: 1.313 MB / 0.5466 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003748/0.4001, allocations: 212.2 kB / 0.5468 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001388/0.4003, allocations: 19.19 kB / 0.5468 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005412/0.4008, allocations: 50.08 kB / 0.5469 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.401, allocations: 80.61 kB / 0.5469 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.581e-05/0.4011, allocations: 23.47 kB / 0.547 GB, free: 11.07 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007397/0.4018, allocations: 424.9 kB / 0.5474 GB, free: 10.82 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4018, allocations: 0 / 0.5474 GB, free: 10.82 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001478/0.4033, allocations: 256.1 kB / 0.5476 GB, free: 10.59 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001587/0.4035, allocations: 115.1 kB / 0.5477 GB, free: 10.47 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002621/0.4061, allocations: 1.271 MB / 0.549 GB, free: 9.172 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.4061, allocations: 0 / 0.549 GB, free: 9.172 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009382/0.4071, allocations: 0.5075 MB / 0.5495 GB, free: 8.652 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009676/0.408, allocations: 178.4 kB / 0.5496 GB, free: 8.48 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002969/0.411, allocations: 1.69 MB / 0.5513 GB, free: 6.684 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006886/0.4117, allocations: 0.986 MB / 0.5522 GB, free: 5.672 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005471/0.4123, allocations: 140.8 kB / 0.5524 GB, free: 5.535 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001946/0.4125, allocations: 55.42 kB / 0.5524 GB, free: 5.48 MB / 414.1 MB Notification: Performance of SimCode: time 2.41e-07/0.4125, allocations: 0 / 0.5524 GB, free: 5.48 MB / 414.1 MB Notification: Performance of Templates: time 0.01567/0.4282, allocations: 8.681 MB / 0.5609 GB, free: 12.84 MB / 430.1 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)