Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009172/0.0009172, allocations: 91.77 kB / 16.65 MB, free: 6.535 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.001027/0.001027, allocations: 177.6 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.411/1.411, allocations: 205.4 MB / 223.7 MB, free: 13.05 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1764/0.1764, allocations: 38.04 MB / 310.1 MB, free: 5.91 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004994/0.0004995, allocations: 19.5 kB / 377.2 MB, free: 2.719 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2498, allocations: 56.33 MB / 433.5 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.004605/0.2544, allocations: 5.142 MB / 438.6 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002684/0.2571, allocations: 2.277 MB / 440.9 MB, free: 11.22 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000477/0.2577, allocations: 31.81 kB / 440.9 MB, free: 11.19 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003847/0.2581, allocations: 91.27 kB / 441 MB, free: 11.1 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000666/0.2587, allocations: 306.7 kB / 441.3 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007188/0.2595, allocations: 365.9 kB / 441.7 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006805/0.2602, allocations: 1.006 MB / 442.7 MB, free: 9.438 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007319/0.2609, allocations: 0.6246 MB / 443.3 MB, free: 8.781 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002786/0.2612, allocations: 262.7 kB / 443.6 MB, free: 8.523 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002971/0.2615, allocations: 314.4 kB / 443.9 MB, free: 8.215 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.885e-05/0.2616, allocations: 24 kB / 443.9 MB, free: 8.191 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004569/0.262, allocations: 375.1 kB / 444.3 MB, free: 7.824 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001349/0.2622, allocations: 131.5 kB / 444.4 MB, free: 7.695 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002112/0.2624, allocations: 303.9 kB / 444.7 MB, free: 7.391 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006374/0.263, allocations: 0.8758 MB / 445.6 MB, free: 6.512 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.263, allocations: 3.938 kB / 445.6 MB, free: 6.508 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.263, allocations: 0 / 445.6 MB, free: 6.508 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.2631, allocations: 0 / 445.6 MB, free: 6.508 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001524/0.2646, allocations: 0.9294 MB / 446.5 MB, free: 5.523 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.2646, allocations: 12.03 kB / 446.5 MB, free: 5.512 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007928/0.2654, allocations: 148 kB / 446.7 MB, free: 5.367 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006403/0.2661, allocations: 0.5132 MB / 447.2 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.011e-05/0.2661, allocations: 41.31 kB / 447.2 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.646e-05/0.2662, allocations: 52.38 kB / 447.3 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001013/0.2672, allocations: 0.6983 MB / 448 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.04e-05/0.2673, allocations: 0 / 448 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.042e-05/0.2673, allocations: 16 kB / 448 MB, free: 3.969 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.314e-05/0.2674, allocations: 32.98 kB / 448 MB, free: 3.938 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001142/0.2685, allocations: 0.6323 MB / 448.6 MB, free: 3.305 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002726/0.2712, allocations: 2.712 MB / 451.4 MB, free: 464 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001289/0.2725, allocations: 0.6358 MB / 452 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005339/0.2731, allocations: 234.2 kB / 452.2 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.91e-05/0.2731, allocations: 4.328 kB / 452.2 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000715/0.2739, allocations: 317.8 kB / 452.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 1.864e-06/0.2739, allocations: 0 / 452.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.001814/0.2757, allocations: 0.8033 MB / 453.3 MB, free: 14.37 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/0.2758, allocations: 136.5 kB / 453.5 MB, free: 14.21 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000646/0.2765, allocations: 0.4981 MB / 454 MB, free: 13.7 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.154e-05/0.2765, allocations: 37.7 kB / 454 MB, free: 13.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002111/0.2767, allocations: 304 kB / 454.3 MB, free: 13.36 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.2769, allocations: 142 kB / 454.4 MB, free: 13.22 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.457e-05/0.2769, allocations: 45.7 kB / 454.5 MB, free: 13.17 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.2771, allocations: 366.8 kB / 454.8 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005003/0.2776, allocations: 197 kB / 455 MB, free: 12.61 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005533/0.2782, allocations: 335.2 kB / 455.4 MB, free: 12.23 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/0.2792, allocations: 0.5529 MB / 455.9 MB, free: 11.63 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.2792, allocations: 4 kB / 455.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001883/0.2811, allocations: 0.8307 MB / 456.7 MB, free: 10.78 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000177/0.2813, allocations: 222.9 kB / 457 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.2813, allocations: 4 kB / 457 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004904/0.2818, allocations: 141.1 kB / 457.1 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003796/0.2822, allocations: 95.88 kB / 457.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0033/0.2856, allocations: 2.479 MB / 459.7 MB, free: 7.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004718/0.286, allocations: 79.48 kB / 459.8 MB, free: 7.574 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.226e-05/0.2861, allocations: 28.06 kB / 459.8 MB, free: 7.547 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.556e-06/0.2861, allocations: 7.984 kB / 459.8 MB, free: 7.539 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001324/0.2874, allocations: 0.6429 MB / 460.4 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.2875, allocations: 4 kB / 460.4 MB, free: 6.883 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003703/0.2878, allocations: 132.8 kB / 460.6 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003468/0.2882, allocations: 91.88 kB / 460.7 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002388/0.2906, allocations: 2.249 MB / 462.9 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004686/0.2911, allocations: 79.48 kB / 463 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.778e-05/0.2911, allocations: 16 kB / 463 MB, free: 4.188 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.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 (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * 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,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0003766/0.2915, allocations: 293.7 kB / 463.3 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.2916, allocations: 55.34 kB / 463.3 MB, free: 3.836 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001309/0.2929, allocations: 0.5395 MB / 463.9 MB, free: 3.281 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.293, allocations: 12 kB / 463.9 MB, free: 3.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.293, allocations: 0 / 463.9 MB, free: 3.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.293, allocations: 0 / 463.9 MB, free: 3.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002135/0.2951, allocations: 1.202 MB / 465.1 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.2951, allocations: 7.984 kB / 465.1 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004817/0.2956, allocations: 95.88 kB / 465.2 MB, free: 1.906 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000105/0.2957, allocations: 24.84 kB / 465.2 MB, free: 1.879 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.104e-05/0.2958, allocations: 12 kB / 465.2 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001019/0.2968, allocations: 1.359 MB / 466.6 MB, free: 384 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.2968, allocations: 3.984 kB / 466.6 MB, free: 380 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001706/0.2985, allocations: 0.8917 MB / 467.5 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002053/0.2988, allocations: 176.3 kB / 467.7 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.942e-05/0.2988, allocations: 15.98 kB / 467.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000395/0.2992, allocations: 51.89 kB / 467.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/0.2994, allocations: 39.89 kB / 467.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.952e-05/0.2994, allocations: 8 kB / 467.8 MB, free: 15.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005606/0.3, allocations: 366.8 kB / 468.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3, allocations: 0 / 468.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009474/0.3009, allocations: 251.3 kB / 468.4 MB, free: 14.55 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001727/0.3011, allocations: 115.1 kB / 468.5 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002171/0.3033, allocations: 1.176 MB / 469.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3033, allocations: 0 / 469.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006694/0.304, allocations: 354.8 kB / 470 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007428/0.3047, allocations: 121.5 kB / 470.1 MB, free: 12.72 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00238/0.3071, allocations: 1.548 MB / 471.7 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005434/0.3077, allocations: 0.8942 MB / 472.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003661/0.3081, allocations: 104.3 kB / 472.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001299/0.3082, allocations: 39.44 kB / 472.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.3082, allocations: 0 / 472.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of Templates: time 0.01389/0.3221, allocations: 7.606 MB / 480.3 MB, free: 2.488 MB / 350.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1) Environment - environmentSimulation: