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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001322/0.001322, allocations: 179.6 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.193/1.193, allocations: 194.5 MB / 211.6 MB, free: 3.039 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001561/0.001561, allocations: 125.1 kB / 256.9 MB, free: 4.367 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1627/0.1627, allocations: 37.99 MB / 340.1 MB, free: 1.355 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003222/0.0003222, allocations: 12 kB / 403.8 MB, free: 68.8 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0711/0.07143, allocations: 53.24 MB / 457 MB, free: 15.56 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2578/0.3293, allocations: 95.91 MB / 0.54 GB, free: 15.74 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000222/0.3295, allocations: 91.5 kB / 0.54 GB, free: 15.69 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04641/0.3759, allocations: 18.52 MB / 0.5581 GB, free: 276 kB / 362.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.376, allocations: 8 kB / 0.5581 GB, free: 268 kB / 362.7 MB Notification: Performance of Transformations before backend: time 4.788e-05/0.376, allocations: 15.94 kB / 0.5582 GB, free: 252 kB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001671/0.3777, allocations: 0.9194 MB / 0.5591 GB, free: 15.31 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.3778, allocations: 15.95 kB / 0.5591 GB, free: 15.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000914/0.3787, allocations: 155.1 kB / 0.5592 GB, free: 15.14 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008697/0.3796, allocations: 0.498 MB / 0.5597 GB, free: 14.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.948e-05/0.3796, allocations: 31.69 kB / 0.5597 GB, free: 14.67 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.755e-05/0.3797, allocations: 54.52 kB / 0.5598 GB, free: 14.63 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/0.3808, allocations: 0.6472 MB / 0.5604 GB, free: 14.13 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.053e-05/0.3808, allocations: 3.984 kB / 0.5604 GB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.992e-05/0.3809, allocations: 20.56 kB / 0.5604 GB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.458e-05/0.3809, allocations: 24.31 kB / 0.5605 GB, free: 14.1 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001178/0.3821, allocations: 0.6008 MB / 0.5611 GB, free: 13.67 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003289/0.3854, allocations: 2.515 MB / 0.5635 GB, free: 11.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001302/0.3867, allocations: 0.6367 MB / 0.5641 GB, free: 11 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.536e-05/0.3868, allocations: 7.984 kB / 0.5641 GB, free: 10.99 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005483/0.3873, allocations: 306.8 kB / 0.5644 GB, free: 10.74 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 2.435e-06/0.3873, allocations: 0 / 0.5644 GB, free: 10.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.001633/0.389, allocations: 0.7776 MB / 0.5652 GB, free: 10.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.442e-05/0.3891, allocations: 136.5 kB / 0.5653 GB, free: 9.922 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005764/0.3896, allocations: 410.5 kB / 0.5657 GB, free: 9.598 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.02e-05/0.3897, allocations: 35.64 kB / 0.5657 GB, free: 9.562 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001994/0.3899, allocations: 291.7 kB / 0.566 GB, free: 9.359 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001135/0.39, allocations: 138.1 kB / 0.5662 GB, free: 9.242 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.362e-05/0.39, allocations: 10.69 kB / 0.5662 GB, free: 9.238 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.3902, allocations: 365.6 kB / 0.5665 GB, free: 8.895 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004318/0.3907, allocations: 192 kB / 0.5667 GB, free: 8.762 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004927/0.3912, allocations: 302.2 kB / 0.567 GB, free: 8.484 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004839/0.3916, allocations: 243.4 kB / 0.5672 GB, free: 8.309 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.3917, allocations: 0 / 0.5672 GB, free: 8.309 MB / 378.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001548/0.3932, allocations: 0.748 MB / 0.568 GB, free: 7.703 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004615/0.3937, allocations: 1.17 MB / 0.5691 GB, free: 6.461 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.086e-06/0.3937, allocations: 4 kB / 0.5691 GB, free: 6.457 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000551/0.3943, allocations: 151.6 kB / 0.5692 GB, free: 6.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003929/0.3947, allocations: 99.44 kB / 0.5693 GB, free: 6.246 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007782/0.3955, allocations: 0.7782 MB / 0.5701 GB, free: 5.547 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004829/0.396, allocations: 86 kB / 0.5702 GB, free: 5.469 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.759e-05/0.396, allocations: 19.48 kB / 0.5702 GB, free: 5.453 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.396, allocations: 12 kB / 0.5702 GB, free: 5.441 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001165/0.3972, allocations: 0.5957 MB / 0.5708 GB, free: 4.996 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.3972, allocations: 7.984 kB / 0.5708 GB, free: 4.988 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002808/0.3975, allocations: 120.4 kB / 0.5709 GB, free: 4.898 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003445/0.3979, allocations: 91.38 kB / 0.571 GB, free: 4.812 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002085/0.3999, allocations: 2.185 MB / 0.5731 GB, free: 2.906 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004293/0.4004, allocations: 75.38 kB / 0.5732 GB, free: 2.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.209e-05/0.4004, allocations: 23.67 kB / 0.5732 GB, free: 2.82 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0003211/0.4008, allocations: 274.3 kB / 0.5735 GB, free: 2.586 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.211e-05/0.4008, allocations: 55.41 kB / 0.5735 GB, free: 2.531 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001069/0.4019, allocations: 0.5276 MB / 0.5741 GB, free: 2.141 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.4019, allocations: 4 kB / 0.5741 GB, free: 2.137 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.4019, allocations: 0 / 0.5741 GB, free: 2.137 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.441e-06/0.402, allocations: 0 / 0.5741 GB, free: 2.137 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00172/0.4037, allocations: 1.158 MB / 0.5752 GB, free: 1.199 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.4037, allocations: 0 / 0.5752 GB, free: 1.199 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004423/0.4042, allocations: 95.25 kB / 0.5753 GB, free: 1.109 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.02e-05/0.4043, allocations: 31.41 kB / 0.5753 GB, free: 1.082 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.055e-05/0.4043, allocations: 7.375 kB / 0.5753 GB, free: 1.078 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000898/0.4052, allocations: 1.36 MB / 0.5766 GB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.199e-06/0.4052, allocations: 8.016 kB / 0.5767 GB, free: 15.67 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00147/0.4067, allocations: 0.8768 MB / 0.5775 GB, free: 14.96 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001917/0.4069, allocations: 166.1 kB / 0.5777 GB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.732e-05/0.407, allocations: 9.938 kB / 0.5777 GB, free: 14.79 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003997/0.4074, allocations: 54.56 kB / 0.5777 GB, free: 14.75 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.057e-05/0.4075, allocations: 31.2 kB / 0.5778 GB, free: 14.72 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.51e-05/0.4075, allocations: 11.38 kB / 0.5778 GB, free: 14.71 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004581/0.408, allocations: 336 kB / 0.5781 GB, free: 14.45 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.408, allocations: 0 / 0.5781 GB, free: 14.45 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007409/0.4087, allocations: 248.6 kB / 0.5783 GB, free: 14.23 MB / 394.7 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 (39): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001591/0.4089, allocations: 121.9 kB / 0.5784 GB, free: 14.11 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001701/0.4106, allocations: 0.9903 MB / 0.5794 GB, free: 13.27 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4106, allocations: 4.562 kB / 0.5794 GB, free: 13.27 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005517/0.4112, allocations: 350.4 kB / 0.5798 GB, free: 12.98 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004632/0.4116, allocations: 91.2 kB / 0.5798 GB, free: 12.91 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001876/0.4135, allocations: 1.407 MB / 0.5812 GB, free: 11.57 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004065/0.414, allocations: 0.8965 MB / 0.5821 GB, free: 10.66 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003323/0.4143, allocations: 96.09 kB / 0.5822 GB, free: 10.56 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.4144, allocations: 38.55 kB / 0.5822 GB, free: 10.53 MB / 394.7 MB Notification: Performance of SimCode: time 3.1e-07/0.4144, allocations: 3.938 kB / 0.5822 GB, free: 10.52 MB / 394.7 MB Notification: Performance of Templates: time 0.01082/0.4252, allocations: 6.569 MB / 0.5886 GB, free: 3.977 MB / 394.7 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 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1)