Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.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.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 112.3 kB / 17.06 MB, free: 5.965 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.001338/0.001338, allocations: 192 kB / 18 MB, free: 5.055 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.471/1.471, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1791/0.1791, allocations: 38.03 MB / 329.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 67.89 kB / 458.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4307/0.4321, allocations: 58.05 MB / 0.5041 GB, free: 7.812 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.00729/0.4394, allocations: 5.616 MB / 0.5096 GB, free: 3.867 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003867/0.4433, allocations: 2.605 MB / 0.5121 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004903/0.4438, allocations: 23.78 kB / 0.5121 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001132/0.445, allocations: 371.9 kB / 0.5125 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001152/0.4461, allocations: 466.3 kB / 0.5129 GB, free: 1.52 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001275/0.4474, allocations: 458.4 kB / 0.5134 GB, free: 1.262 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001227/0.4487, allocations: 1.064 MB / 0.5144 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007664/0.4494, allocations: 0.5596 MB / 0.515 GB, free: 488 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005705/0.45, allocations: 406 kB / 0.5153 GB, free: 288 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005467/0.4506, allocations: 429 kB / 0.5158 GB, free: 76 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00012/0.4507, allocations: 74.53 kB / 0.5158 GB, free: 76 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009604/0.4517, allocations: 0.5042 MB / 0.5163 GB, free: 15.89 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002538/0.4519, allocations: 232.9 kB / 0.5165 GB, free: 15.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003799/0.4523, allocations: 372.5 kB / 0.5169 GB, free: 15.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001691/0.454, allocations: 1.085 MB / 0.518 GB, free: 15.09 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.454, allocations: 0 / 0.518 GB, free: 15.09 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4541, allocations: 0.5625 kB / 0.518 GB, free: 15.09 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.449e-05/0.4541, allocations: 0 / 0.518 GB, free: 15.09 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.002475/0.4566, allocations: 1.135 MB / 0.5191 GB, free: 14.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.4566, allocations: 12.67 kB / 0.5191 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001218/0.4578, allocations: 191.3 kB / 0.5193 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009528/0.4588, allocations: 0.5581 MB / 0.5198 GB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.951e-05/0.4588, allocations: 44.45 kB / 0.5198 GB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/0.459, allocations: 59.62 kB / 0.5199 GB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001479/0.4604, allocations: 0.7867 MB / 0.5207 GB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.76e-05/0.4605, allocations: 10.58 kB / 0.5207 GB, free: 13.42 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.217e-05/0.4606, allocations: 25.34 kB / 0.5207 GB, free: 13.4 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.202e-05/0.4606, allocations: 37.06 kB / 0.5207 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001575/0.4622, allocations: 0.7275 MB / 0.5215 GB, free: 13.17 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004315/0.4665, allocations: 2.894 MB / 0.5243 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001411/0.4679, allocations: 0.5878 MB / 0.5249 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007332/0.4687, allocations: 358.1 kB / 0.5252 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.121e-05/0.4688, allocations: 7.75 kB / 0.5252 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008478/0.4696, allocations: 423.8 kB / 0.5256 GB, free: 10.73 MB / 398.1 MB Notification: Performance of pre-optimization done (n=56): time 2.285e-06/0.4696, allocations: 0 / 0.5256 GB, free: 10.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=58): time 0.004554/0.4742, allocations: 2.14 MB / 0.5277 GB, free: 9.602 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.722e-05/0.4743, allocations: 112.3 kB / 0.5278 GB, free: 9.477 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007476/0.475, allocations: 476.9 kB / 0.5283 GB, free: 9.262 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.987e-05/0.4751, allocations: 41.3 kB / 0.5283 GB, free: 9.219 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002914/0.4754, allocations: 330.8 kB / 0.5286 GB, free: 8.949 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001866/0.4756, allocations: 207.8 kB / 0.5288 GB, free: 8.785 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003105/0.4759, allocations: 107.8 kB / 0.5289 GB, free: 8.73 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002407/0.4762, allocations: 367.5 kB / 0.5293 GB, free: 8.395 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001022/0.4772, allocations: 288.4 kB / 0.5295 GB, free: 8.293 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001145/0.4784, allocations: 403.1 kB / 0.5299 GB, free: 8.062 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002023/0.4804, allocations: 0.727 MB / 0.5306 GB, free: 7.602 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.4804, allocations: 7.938 kB / 0.5306 GB, free: 7.594 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.003488/0.4839, allocations: 1.011 MB / 0.5316 GB, free: 7.039 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.954e-05/0.484, allocations: 37.34 kB / 0.5317 GB, free: 7.004 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-05/0.484, allocations: 3.562 kB / 0.5317 GB, free: 7.004 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009266/0.485, allocations: 184.1 kB / 0.5318 GB, free: 6.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007872/0.4858, allocations: 122.2 kB / 0.532 GB, free: 6.871 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007136/0.4929, allocations: 4.128 MB / 0.536 GB, free: 3.141 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/0.494, allocations: 57.41 kB / 0.536 GB, free: 3.113 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.522e-05/0.4941, allocations: 25.27 kB / 0.5361 GB, free: 3.105 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001374/0.4955, allocations: 451.8 kB / 0.5365 GB, free: 2.832 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001007/0.4965, allocations: 391 kB / 0.5369 GB, free: 2.559 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001925/0.4984, allocations: 0.6983 MB / 0.5376 GB, free: 2.109 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.839e-06/0.4984, allocations: 5.188 kB / 0.5376 GB, free: 2.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization_lambda0): time 0.002976/0.5014, allocations: 0.9255 MB / 0.5385 GB, free: 1.594 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.777e-05/0.5015, allocations: 36.52 kB / 0.5385 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.5015, allocations: 6.562 kB / 0.5385 GB, free: 1.555 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000784/0.5023, allocations: 170.5 kB / 0.5387 GB, free: 1.465 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007414/0.5031, allocations: 114.6 kB / 0.5388 GB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006044/0.5091, allocations: 3.945 MB / 0.5426 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009076/0.5101, allocations: 58.34 kB / 0.5427 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.011e-05/0.5102, allocations: 25.56 kB / 0.5427 GB, free: 13.74 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,secondary.count,$PRE.secondary.count,secondary.T_start,$PRE.secondary.T_start,$whenCondition1,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0003519/0.5105, allocations: 220.5 kB / 0.5429 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001631/0.5107, allocations: 63.69 kB / 0.543 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002786/0.5135, allocations: 0.8147 MB / 0.5438 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.387e-05/0.5135, allocations: 10.86 kB / 0.5438 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.5135, allocations: 1.375 kB / 0.5438 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.415e-05/0.5136, allocations: 3.938 kB / 0.5438 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004356/0.5179, allocations: 1.672 MB / 0.5454 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.518, allocations: 2.5 kB / 0.5454 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009638/0.5189, allocations: 129.5 kB / 0.5456 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003552/0.5193, allocations: 71.91 kB / 0.5456 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.814e-05/0.5194, allocations: 13.5 kB / 0.5456 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003047/0.5224, allocations: 2.897 MB / 0.5485 GB, free: 8.82 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.716e-06/0.5225, allocations: 6.062 kB / 0.5485 GB, free: 8.816 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003721/0.5262, allocations: 1.306 MB / 0.5497 GB, free: 8.027 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004523/0.5267, allocations: 192 kB / 0.5499 GB, free: 7.855 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000138/0.5268, allocations: 13.94 kB / 0.5499 GB, free: 7.848 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008138/0.5276, allocations: 54.83 kB / 0.55 GB, free: 7.82 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002083/0.5279, allocations: 56.25 kB / 0.55 GB, free: 7.789 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.948e-05/0.528, allocations: 21.47 kB / 0.5501 GB, free: 7.781 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007773/0.5287, allocations: 345.2 kB / 0.5504 GB, free: 7.543 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5288, allocations: 0 / 0.5504 GB, free: 7.543 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001698/0.5305, allocations: 263.9 kB / 0.5506 GB, free: 7.285 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1]) * Number of discrete variables: 4 (system.initime,$whenCondition1,secondary.T_start,secondary.count) * Number of discrete states: 1 (secondary.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002124/0.5307, allocations: 123.1 kB / 0.5508 GB, free: 7.152 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004487/0.5352, allocations: 1.754 MB / 0.5525 GB, free: 5.32 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.5352, allocations: 256 / 0.5525 GB, free: 5.32 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00145/0.5367, allocations: 0.6019 MB / 0.5531 GB, free: 4.691 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001213/0.5379, allocations: 133.2 kB / 0.5532 GB, free: 4.566 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00328/0.5412, allocations: 1.53 MB / 0.5547 GB, free: 2.988 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008483/0.5421, allocations: 0.9431 MB / 0.5556 GB, free: 2.016 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007263/0.5428, allocations: 160.5 kB / 0.5558 GB, free: 1.859 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002528/0.5431, allocations: 43.44 kB / 0.5558 GB, free: 1.816 MB / 414.1 MB Notification: Performance of SimCode: time 9.32e-07/0.5431, allocations: 4 kB / 0.5558 GB, free: 1.812 MB / 414.1 MB Notification: Performance of Templates: time 0.02752/0.5706, allocations: 10.24 MB / 0.5658 GB, free: 7.629 MB / 430.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)