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 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.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.001132/0.001132, allocations: 114.3 kB / 17.68 MB, free: 5.473 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.001119/0.001119, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.549/1.549, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1878/0.1878, allocations: 37.98 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.001619/0.001619, allocations: 71.19 kB / 376.8 MB, free: 2.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2735, allocations: 55.24 MB / 432 MB, free: 19.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.006373/0.28, allocations: 5.641 MB / 437.7 MB, free: 13.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004003/0.284, allocations: 2.649 MB / 440.3 MB, free: 11.17 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004995/0.2845, allocations: 23.88 kB / 440.3 MB, free: 11.14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00111/0.2856, allocations: 370.1 kB / 440.7 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008118/0.2865, allocations: 461.7 kB / 441.1 MB, free: 10.33 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008645/0.2873, allocations: 469.2 kB / 441.6 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008276/0.2882, allocations: 1.061 MB / 442.7 MB, free: 8.805 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006493/0.2888, allocations: 0.5668 MB / 443.2 MB, free: 8.234 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000394/0.2893, allocations: 406.4 kB / 443.6 MB, free: 7.836 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004236/0.2897, allocations: 426.2 kB / 444 MB, free: 7.418 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.123e-05/0.2898, allocations: 76 kB / 444.1 MB, free: 7.344 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000647/0.2904, allocations: 0.495 MB / 444.6 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001735/0.2906, allocations: 239.3 kB / 444.8 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000244/0.2909, allocations: 374 kB / 445.2 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009433/0.2918, allocations: 1.079 MB / 446.3 MB, free: 5.164 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.2918, allocations: 3.938 kB / 446.3 MB, free: 5.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.2918, allocations: 0 / 446.3 MB, free: 5.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.2919, allocations: 0 / 446.3 MB, free: 5.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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001962/0.2938, allocations: 1.113 MB / 447.4 MB, free: 3.992 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.2939, allocations: 11.89 kB / 447.4 MB, free: 3.98 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001163/0.2951, allocations: 187.8 kB / 447.6 MB, free: 3.797 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008616/0.2959, allocations: 0.5754 MB / 448.2 MB, free: 3.18 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.072e-05/0.296, allocations: 37.69 kB / 448.2 MB, free: 3.145 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.733e-05/0.2961, allocations: 64.28 kB / 448.3 MB, free: 3.082 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/0.2972, allocations: 0.7866 MB / 449.1 MB, free: 2.258 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.463e-05/0.2973, allocations: 3.938 kB / 449.1 MB, free: 2.254 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.472e-05/0.2973, allocations: 27.98 kB / 449.1 MB, free: 2.227 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.011e-05/0.2974, allocations: 37.3 kB / 449.1 MB, free: 2.188 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001215/0.2986, allocations: 0.7311 MB / 449.9 MB, free: 1.457 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003738/0.3023, allocations: 2.892 MB / 452.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001311/0.3037, allocations: 0.5845 MB / 453.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006329/0.3043, allocations: 358.8 kB / 453.7 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.261e-05/0.3044, allocations: 12.45 kB / 453.7 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007519/0.3051, allocations: 426.2 kB / 454.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 2.435e-06/0.3051, allocations: 0 / 454.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=58): time 0.004258/0.3094, allocations: 2.12 MB / 456.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001193/0.3096, allocations: 111.4 kB / 456.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007675/0.3103, allocations: 482.1 kB / 456.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.711e-05/0.3104, allocations: 37.7 kB / 456.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002692/0.3107, allocations: 316.4 kB / 457.2 MB, free: 9.871 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001787/0.3109, allocations: 201.2 kB / 457.4 MB, free: 9.672 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002095/0.3111, allocations: 114.2 kB / 457.5 MB, free: 9.555 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001997/0.3113, allocations: 370.7 kB / 457.8 MB, free: 9.184 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000705/0.312, allocations: 295.2 kB / 458.1 MB, free: 8.891 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007091/0.3127, allocations: 399 kB / 458.5 MB, free: 8.461 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001265/0.314, allocations: 0.7224 MB / 459.2 MB, free: 7.695 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.95e-06/0.314, allocations: 3.938 kB / 459.2 MB, free: 7.691 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002093/0.3161, allocations: 1.009 MB / 460.2 MB, free: 6.66 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.483e-05/0.3162, allocations: 29.7 kB / 460.3 MB, free: 6.625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.3162, allocations: 4 kB / 460.3 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006522/0.3169, allocations: 193.8 kB / 460.5 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005082/0.3174, allocations: 123.7 kB / 460.6 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004547/0.3219, allocations: 4.133 MB / 464.7 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005673/0.3225, allocations: 55.94 kB / 464.8 MB, free: 1.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.162e-05/0.3226, allocations: 31.86 kB / 464.8 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007672/0.3234, allocations: 445.2 kB / 465.2 MB, free: 1.363 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005902/0.324, allocations: 395 kB / 465.6 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001129/0.3251, allocations: 0.6951 MB / 466.3 MB, free: 200 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.789e-06/0.3251, allocations: 0 / 466.3 MB, free: 200 kB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization_lambda0): time 0.001802/0.3269, allocations: 0.9309 MB / 467.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.19e-05/0.327, allocations: 33.7 kB / 467.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.327, allocations: 0 / 467.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004877/0.3275, allocations: 169.5 kB / 467.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004657/0.328, allocations: 119.9 kB / 467.6 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003727/0.3317, allocations: 3.931 MB / 471.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005306/0.3322, allocations: 56 kB / 471.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.887e-05/0.3323, allocations: 27.98 kB / 471.6 MB, free: 10.62 MB / 350.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.0002992/0.3326, allocations: 212.1 kB / 471.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.3328, allocations: 63.19 kB / 471.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001876/0.3346, allocations: 0.8189 MB / 472.7 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.3347, allocations: 8 kB / 472.7 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.3347, allocations: 0 / 472.7 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.178e-05/0.3347, allocations: 7.922 kB / 472.7 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003193/0.3379, allocations: 1.671 MB / 474.4 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.722e-06/0.3379, allocations: 4 kB / 474.4 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006112/0.3385, allocations: 131.8 kB / 474.5 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002318/0.3388, allocations: 65.67 kB / 474.6 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.443e-05/0.3388, allocations: 12 kB / 474.6 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00232/0.3412, allocations: 2.902 MB / 477.5 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.3412, allocations: 3.938 kB / 477.5 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002297/0.3435, allocations: 1.303 MB / 478.8 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003439/0.3438, allocations: 192.3 kB / 479 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.561e-05/0.3439, allocations: 12 kB / 479 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004798/0.3444, allocations: 55.92 kB / 479 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001454/0.3446, allocations: 52.67 kB / 479.1 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-05/0.3446, allocations: 23.98 kB / 479.1 MB, free: 2.645 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005437/0.3452, allocations: 346.8 kB / 479.4 MB, free: 2.309 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3452, allocations: 0 / 479.4 MB, free: 2.309 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001071/0.3463, allocations: 263.9 kB / 479.7 MB, free: 2.051 MB / 350.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.0001981/0.3465, allocations: 123.1 kB / 479.8 MB, free: 1.922 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003255/0.3498, allocations: 1.738 MB / 481.6 MB, free: 112 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.3498, allocations: 3.938 kB / 481.6 MB, free: 108 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.3508, allocations: 0.6108 MB / 482.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000768/0.3516, allocations: 137 kB / 482.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002961/0.3546, allocations: 1.527 MB / 483.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006379/0.3552, allocations: 0.9509 MB / 484.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004509/0.3557, allocations: 148.5 kB / 484.9 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001745/0.3559, allocations: 51.42 kB / 485 MB, free: 12.59 MB / 366.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3559, allocations: 0 / 485 MB, free: 12.59 MB / 366.1 MB Notification: Performance of Templates: time 0.01993/0.3758, allocations: 10.08 MB / 495.1 MB, free: 2.535 MB / 366.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 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)