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.001372/0.001372, allocations: 109.5 kB / 17.68 MB, free: 5.332 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.001381/0.001381, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.366/1.366, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1761/0.1761, allocations: 37.99 MB / 309.8 MB, free: 5.965 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.001463/0.001463, allocations: 71.19 kB / 376.8 MB, free: 2.906 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.2361, allocations: 55.25 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.005325/0.2415, allocations: 5.15 MB / 437.2 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002683/0.2442, allocations: 2.187 MB / 439.4 MB, free: 12.13 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003332/0.2446, allocations: 23.88 kB / 439.4 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000808/0.2454, allocations: 258.4 kB / 439.6 MB, free: 11.85 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006558/0.2461, allocations: 338.1 kB / 440 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007653/0.2469, allocations: 401.6 kB / 440.4 MB, free: 11.13 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006358/0.2475, allocations: 0.9126 MB / 441.3 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005175/0.248, allocations: 0.5159 MB / 441.8 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002977/0.2483, allocations: 346.6 kB / 442.1 MB, free: 9.355 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003058/0.2487, allocations: 350.5 kB / 442.5 MB, free: 9.012 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.7e-05/0.2487, allocations: 68 kB / 442.5 MB, free: 8.945 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003874/0.2491, allocations: 347.2 kB / 442.9 MB, free: 8.605 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001266/0.2493, allocations: 183.4 kB / 443.1 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002092/0.2495, allocations: 342.2 kB / 443.4 MB, free: 8.09 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006499/0.2501, allocations: 0.9267 MB / 444.3 MB, free: 7.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.2501, allocations: 0 / 444.3 MB, free: 7.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.2502, allocations: 0 / 444.3 MB, free: 7.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.837e-06/0.2502, allocations: 0 / 444.3 MB, free: 7.16 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.001593/0.2518, allocations: 1.034 MB / 445.3 MB, free: 6.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.2518, allocations: 11.89 kB / 445.4 MB, free: 6.059 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007687/0.2526, allocations: 148 kB / 445.5 MB, free: 5.914 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007403/0.2533, allocations: 0.5443 MB / 446 MB, free: 5.328 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.238e-05/0.2534, allocations: 37.38 kB / 446.1 MB, free: 5.293 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.077e-05/0.2534, allocations: 52.36 kB / 446.1 MB, free: 5.242 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009559/0.2544, allocations: 0.6788 MB / 446.8 MB, free: 4.527 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.069e-05/0.2544, allocations: 0 / 446.8 MB, free: 4.527 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.645e-05/0.2545, allocations: 19.98 kB / 446.8 MB, free: 4.508 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.127e-05/0.2545, allocations: 29 kB / 446.9 MB, free: 4.48 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/0.2556, allocations: 0.601 MB / 447.5 MB, free: 3.879 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00265/0.2583, allocations: 2.684 MB / 450.1 MB, free: 1.055 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001093/0.2594, allocations: 0.6045 MB / 450.8 MB, free: 424 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003915/0.2598, allocations: 218.2 kB / 451 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.709e-05/0.2598, allocations: 4.422 kB / 451 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005572/0.2604, allocations: 301.8 kB / 451.3 MB, free: 15.88 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 1.933e-06/0.2604, allocations: 0 / 451.3 MB, free: 15.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.001757/0.2622, allocations: 0.7564 MB / 452 MB, free: 15.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.004e-05/0.2622, allocations: 136.5 kB / 452.2 MB, free: 14.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006828/0.2629, allocations: 0.4942 MB / 452.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.951e-05/0.263, allocations: 37.7 kB / 452.7 MB, free: 14.38 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002178/0.2632, allocations: 308 kB / 453 MB, free: 14.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001096/0.2633, allocations: 134.1 kB / 453.1 MB, free: 13.94 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001477/0.2635, allocations: 94.19 kB / 453.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.2636, allocations: 362.8 kB / 453.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004659/0.2641, allocations: 195 kB / 453.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005356/0.2647, allocations: 319.2 kB / 454.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009521/0.2656, allocations: 0.5178 MB / 454.6 MB, free: 12.35 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.2656, allocations: 4 kB / 454.6 MB, free: 12.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001723/0.2674, allocations: 0.7686 MB / 455.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.666e-05/0.2674, allocations: 33.95 kB / 455.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.2674, allocations: 11.98 kB / 455.4 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004803/0.2679, allocations: 144.7 kB / 455.5 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003787/0.2683, allocations: 91.88 kB / 455.6 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003479/0.2718, allocations: 2.649 MB / 458.3 MB, free: 8.492 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005366/0.2724, allocations: 79.39 kB / 458.4 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.323e-05/0.2724, allocations: 20 kB / 458.4 MB, free: 8.395 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006264/0.2731, allocations: 337.1 kB / 458.7 MB, free: 8.062 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004841/0.2736, allocations: 299.3 kB / 459 MB, free: 7.723 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008942/0.2745, allocations: 0.4986 MB / 459.5 MB, free: 7.172 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.68e-06/0.2745, allocations: 3.984 kB / 459.5 MB, free: 7.168 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.001449/0.2759, allocations: 0.6863 MB / 460.2 MB, free: 6.465 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.638e-05/0.276, allocations: 37.69 kB / 460.2 MB, free: 6.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.276, allocations: 0 / 460.2 MB, free: 6.422 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003586/0.2764, allocations: 124.4 kB / 460.3 MB, free: 6.301 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000365/0.2767, allocations: 92.12 kB / 460.4 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002594/0.2793, allocations: 2.451 MB / 462.9 MB, free: 3.621 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004589/0.2798, allocations: 59.64 kB / 462.9 MB, free: 3.562 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.116e-05/0.2799, allocations: 24.06 kB / 463 MB, free: 3.539 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.0001807/0.28, allocations: 212 kB / 463.2 MB, free: 3.324 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.502e-05/0.2801, allocations: 55.34 kB / 463.2 MB, free: 3.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001176/0.2813, allocations: 0.5121 MB / 463.7 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/0.2813, allocations: 4 kB / 463.7 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.2814, allocations: 11.92 kB / 463.8 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.2814, allocations: 0 / 463.8 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001993/0.2834, allocations: 1.175 MB / 464.9 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.2834, allocations: 7.938 kB / 464.9 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004567/0.2839, allocations: 83.88 kB / 465 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001009/0.284, allocations: 32.84 kB / 465.1 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.667e-05/0.284, allocations: 11.98 kB / 465.1 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001028/0.285, allocations: 1.454 MB / 466.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.2851, allocations: 0 / 466.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/0.2866, allocations: 0.8425 MB / 467.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002342/0.2869, allocations: 168.4 kB / 467.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.726e-05/0.287, allocations: 19.92 kB / 467.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004033/0.2874, allocations: 39.89 kB / 467.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.2875, allocations: 35.95 kB / 467.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.992e-05/0.2875, allocations: 8 kB / 467.6 MB, free: 14.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005257/0.2881, allocations: 366.8 kB / 468 MB, free: 14.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.2881, allocations: 0 / 468 MB, free: 14.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008606/0.2889, allocations: 251.3 kB / 468.2 MB, free: 14.01 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.0001437/0.2891, allocations: 107.2 kB / 468.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002059/0.2911, allocations: 1.141 MB / 469.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2912, allocations: 0 / 469.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006147/0.2918, allocations: 350.3 kB / 469.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006558/0.2925, allocations: 130.1 kB / 469.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002073/0.2945, allocations: 1.225 MB / 471.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004993/0.295, allocations: 0.902 MB / 472.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003232/0.2954, allocations: 112.3 kB / 472.2 MB, free: 9.926 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/0.2955, allocations: 35.44 kB / 472.2 MB, free: 9.891 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2955, allocations: 0 / 472.2 MB, free: 9.891 MB / 350.1 MB Notification: Performance of Templates: time 0.01432/0.3098, allocations: 8.203 MB / 480.4 MB, free: 1.711 MB / 350.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.makefile (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 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1)