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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 112.2 kB / 21.19 MB, free: 0.7578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002479/0.002479, allocations: 209.8 kB / 24.49 MB, free: 4.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.503/1.503, allocations: 230.6 MB / 258.3 MB, free: 8.23 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1861/0.1861, allocations: 38.53 MB / 353.2 MB, free: 12.6 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00223/0.00223, allocations: 63.89 kB / 493.8 MB, free: 4.422 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3606/0.3628, allocations: 62.47 MB / 0.5432 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.007801/0.3706, allocations: 5.293 MB / 0.5484 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004526/0.3752, allocations: 2.191 MB / 0.5505 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006709/0.3758, allocations: 27.34 kB / 0.5506 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001102/0.3769, allocations: 269.5 kB / 0.5508 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001066/0.378, allocations: 335 kB / 0.5511 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001202/0.3792, allocations: 417.1 kB / 0.5515 GB, free: 9.867 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001368/0.3806, allocations: 0.9276 MB / 0.5524 GB, free: 9.293 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007737/0.3813, allocations: 477.7 kB / 0.5529 GB, free: 8.953 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006448/0.382, allocations: 369.4 kB / 0.5532 GB, free: 8.73 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005672/0.3826, allocations: 370.2 kB / 0.5536 GB, free: 8.473 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001069/0.3827, allocations: 68.78 kB / 0.5537 GB, free: 8.473 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006926/0.3834, allocations: 360.3 kB / 0.554 GB, free: 8.305 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002144/0.3836, allocations: 192.1 kB / 0.5542 GB, free: 8.156 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003656/0.3839, allocations: 334.9 kB / 0.5545 GB, free: 7.906 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001336/0.3853, allocations: 0.9303 MB / 0.5554 GB, free: 7.23 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.483e-06/0.3853, allocations: 4 kB / 0.5554 GB, free: 7.227 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3853, allocations: 1.031 kB / 0.5554 GB, free: 7.227 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.3853, allocations: 0 / 0.5554 GB, free: 7.227 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002326/0.3876, allocations: 0.9728 MB / 0.5564 GB, free: 6.461 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.494e-05/0.3877, allocations: 13.02 kB / 0.5564 GB, free: 6.457 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001048/0.3887, allocations: 147.1 kB / 0.5565 GB, free: 6.387 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001078/0.3898, allocations: 480.4 kB / 0.557 GB, free: 6.004 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.727e-05/0.3898, allocations: 37.47 kB / 0.557 GB, free: 5.988 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001201/0.39, allocations: 58.28 kB / 0.5571 GB, free: 5.965 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001548/0.3915, allocations: 0.6859 MB / 0.5577 GB, free: 5.453 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.577e-05/0.3915, allocations: 0 / 0.5577 GB, free: 5.453 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.787e-05/0.3916, allocations: 27.98 kB / 0.5578 GB, free: 5.426 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.452e-05/0.3917, allocations: 21 kB / 0.5578 GB, free: 5.406 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001402/0.3931, allocations: 0.6049 MB / 0.5584 GB, free: 4.801 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004256/0.3973, allocations: 2.613 MB / 0.5609 GB, free: 2.059 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001407/0.3987, allocations: 0.5181 MB / 0.5614 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005024/0.3992, allocations: 202.2 kB / 0.5616 GB, free: 1.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.944e-05/0.3993, allocations: 4.328 kB / 0.5616 GB, free: 1.316 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006918/0.3999, allocations: 298.2 kB / 0.5619 GB, free: 1.004 MB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 2.084e-06/0.4, allocations: 3.938 kB / 0.5619 GB, free: 1 MB / 398.1 MB Notification: Performance of matching and sorting (n=41): time 0.001926/0.4019, allocations: 0.6737 MB / 0.5626 GB, free: 324 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001324/0.402, allocations: 166.1 kB / 0.5627 GB, free: 120 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008055/0.4028, allocations: 0.4903 MB / 0.5632 GB, free: 15.62 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.5e-05/0.4029, allocations: 37.7 kB / 0.5633 GB, free: 15.57 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003166/0.4032, allocations: 308.6 kB / 0.5636 GB, free: 15.27 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000154/0.4033, allocations: 150.7 kB / 0.5637 GB, free: 15.12 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001828/0.4035, allocations: 94.17 kB / 0.5638 GB, free: 15.02 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002191/0.4037, allocations: 362.8 kB / 0.5641 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005168/0.4043, allocations: 190.7 kB / 0.5643 GB, free: 14.47 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006248/0.4049, allocations: 319.5 kB / 0.5646 GB, free: 14.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001093/0.406, allocations: 0.5216 MB / 0.5651 GB, free: 13.53 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/0.406, allocations: 4 kB / 0.5651 GB, free: 13.53 MB / 414.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001909/0.4079, allocations: 0.761 MB / 0.5659 GB, free: 12.75 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.824e-05/0.408, allocations: 41.73 kB / 0.5659 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.408, allocations: 4 kB / 0.5659 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005162/0.4085, allocations: 144.8 kB / 0.5661 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004185/0.4089, allocations: 87.83 kB / 0.5661 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003904/0.4128, allocations: 2.55 MB / 0.5686 GB, free: 9.812 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000559/0.4134, allocations: 79.58 kB / 0.5687 GB, free: 9.734 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.877e-05/0.4134, allocations: 20 kB / 0.5687 GB, free: 9.715 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007132/0.4141, allocations: 333 kB / 0.569 GB, free: 9.387 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005531/0.4147, allocations: 307.5 kB / 0.5693 GB, free: 9.035 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001004/0.4157, allocations: 0.5025 MB / 0.5698 GB, free: 8.48 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.949e-06/0.4157, allocations: 4 kB / 0.5698 GB, free: 8.477 MB / 414.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.00155/0.4172, allocations: 0.6905 MB / 0.5705 GB, free: 7.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.958e-05/0.4173, allocations: 33.69 kB / 0.5705 GB, free: 7.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.4173, allocations: 4 kB / 0.5705 GB, free: 7.727 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003847/0.4177, allocations: 125 kB / 0.5707 GB, free: 7.602 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003895/0.4181, allocations: 87.88 kB / 0.5707 GB, free: 7.516 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002994/0.421, allocations: 2.364 MB / 0.5731 GB, free: 5.047 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005336/0.4216, allocations: 67.75 kB / 0.5731 GB, free: 4.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.335e-05/0.4216, allocations: 20 kB / 0.5731 GB, free: 4.961 MB / 414.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.0002638/0.4219, allocations: 210.4 kB / 0.5733 GB, free: 4.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.418e-05/0.422, allocations: 51.67 kB / 0.5734 GB, free: 4.699 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00133/0.4233, allocations: 0.5121 MB / 0.5739 GB, free: 4.176 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.233e-06/0.4233, allocations: 4 kB / 0.5739 GB, free: 4.172 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.4233, allocations: 4 kB / 0.5739 GB, free: 4.168 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.759e-06/0.4233, allocations: 3.984 kB / 0.5739 GB, free: 4.164 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002223/0.4256, allocations: 1.147 MB / 0.575 GB, free: 2.961 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.4256, allocations: 3.938 kB / 0.575 GB, free: 2.957 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004769/0.426, allocations: 95.75 kB / 0.5751 GB, free: 2.863 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001169/0.4262, allocations: 28.84 kB / 0.5751 GB, free: 2.832 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.583e-05/0.4262, allocations: 8 kB / 0.5751 GB, free: 2.824 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001268/0.4275, allocations: 1.354 MB / 0.5765 GB, free: 1.348 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.4275, allocations: 64 / 0.5765 GB, free: 1.348 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001757/0.4292, allocations: 0.8542 MB / 0.5773 GB, free: 480 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002386/0.4295, allocations: 99.5 kB / 0.5774 GB, free: 380 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.614e-05/0.4295, allocations: 11.94 kB / 0.5774 GB, free: 368 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004296/0.43, allocations: 47.94 kB / 0.5775 GB, free: 320 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.4301, allocations: 39.88 kB / 0.5775 GB, free: 280 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.375e-05/0.4301, allocations: 12 kB / 0.5775 GB, free: 268 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006086/0.4307, allocations: 354.8 kB / 0.5778 GB, free: 15.92 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4307, allocations: 0 / 0.5778 GB, free: 15.92 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001016/0.4317, allocations: 251.5 kB / 0.5781 GB, free: 15.67 MB / 430.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.0001732/0.4319, allocations: 111.2 kB / 0.5782 GB, free: 15.55 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002349/0.4343, allocations: 1.105 MB / 0.5793 GB, free: 14.4 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.4343, allocations: 0 / 0.5793 GB, free: 14.4 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006662/0.4349, allocations: 331.2 kB / 0.5796 GB, free: 14.06 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007231/0.4356, allocations: 107.1 kB / 0.5797 GB, free: 13.97 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002653/0.4383, allocations: 1.288 MB / 0.5809 GB, free: 12.64 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008026/0.4391, allocations: 0.898 MB / 0.5818 GB, free: 11.71 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002068/0.4393, allocations: 35.44 kB / 0.5819 GB, free: 11.68 MB / 430.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4393, allocations: 4 kB / 0.5819 GB, free: 11.67 MB / 430.1 MB Notification: Performance of Templates: time 0.01727/0.4566, allocations: 9.65 MB / 0.5913 GB, free: 2.035 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.680784416850656] Failed to read output from testmodel.py, exit status != 0: 0.46726519986987114 0.48320527999999996 0.09443233100000001 Calling exit ...