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.001488/0.001488, allocations: 181.6 kB / 13.64 MB, free: 1.676 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.786/1.786, allocations: 194.3 MB / 208.4 MB, free: 6.695 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.001719/0.001719, allocations: 120.7 kB / 253.5 MB, free: 9.566 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1733/0.1733, allocations: 37.9 MB / 336.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.036e-05/3.037e-05, allocations: 7.984 kB / 397.5 MB, free: 1.035 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2622, allocations: 53.22 MB / 450.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3666/0.6289, allocations: 95.83 MB / 0.5338 GB, free: 32.02 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002847/0.6292, allocations: 83.89 kB / 0.5339 GB, free: 32.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04552/0.6747, allocations: 18.47 MB / 0.5519 GB, free: 30.14 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.6748, allocations: 4 kB / 0.5519 GB, free: 30.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.102e-05/0.6748, allocations: 15.72 kB / 0.5519 GB, free: 30.14 MB / 378.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.001293/0.6761, allocations: 0.8264 MB / 0.5527 GB, free: 29.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.6762, allocations: 7.719 kB / 0.5527 GB, free: 29.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000893/0.6771, allocations: 151.5 kB / 0.5529 GB, free: 29.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006321/0.6777, allocations: 492.8 kB / 0.5533 GB, free: 29.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.774e-05/0.6778, allocations: 35.12 kB / 0.5534 GB, free: 29.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.083e-05/0.6778, allocations: 52.44 kB / 0.5534 GB, free: 29.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008626/0.6787, allocations: 0.5788 MB / 0.554 GB, free: 29.15 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.149e-05/0.6788, allocations: 11.88 kB / 0.554 GB, free: 29.14 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.891e-05/0.6788, allocations: 17.84 kB / 0.554 GB, free: 29.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.253e-05/0.6788, allocations: 24.09 kB / 0.554 GB, free: 29.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006784/0.6795, allocations: 495.2 kB / 0.5545 GB, free: 29.13 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002919/0.6825, allocations: 2.514 MB / 0.557 GB, free: 27.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007911/0.6833, allocations: 0.5242 MB / 0.5575 GB, free: 27.79 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002149/0.6835, allocations: 166.6 kB / 0.5576 GB, free: 27.77 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.712e-05/0.6835, allocations: 3.906 kB / 0.5576 GB, free: 27.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003288/0.6839, allocations: 255.7 kB / 0.5579 GB, free: 27.68 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 2.515e-06/0.6839, allocations: 4.328 kB / 0.5579 GB, free: 27.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.0006556/0.6846, allocations: 392.8 kB / 0.5583 GB, free: 27.6 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.656e-05/0.6846, allocations: 136.2 kB / 0.5584 GB, free: 27.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003713/0.685, allocations: 392.8 kB / 0.5588 GB, free: 27.33 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.481e-05/0.685, allocations: 32.77 kB / 0.5588 GB, free: 27.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001484/0.6852, allocations: 285.7 kB / 0.5591 GB, free: 27.15 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.338e-05/0.6853, allocations: 137.7 kB / 0.5592 GB, free: 27.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.084e-05/0.6853, allocations: 11.5 kB / 0.5592 GB, free: 27.06 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.926e-05/0.6854, allocations: 364 kB / 0.5596 GB, free: 26.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002036/0.6856, allocations: 138.9 kB / 0.5597 GB, free: 26.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000237/0.6859, allocations: 243.9 kB / 0.5599 GB, free: 26.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000255/0.6861, allocations: 196.7 kB / 0.5601 GB, free: 26.58 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.6861, allocations: 3.906 kB / 0.5601 GB, free: 26.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0009556/0.6871, allocations: 0.6206 MB / 0.5607 GB, free: 26.44 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002146/0.6873, allocations: 1.168 MB / 0.5619 GB, free: 25.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.6873, allocations: 3.969 kB / 0.5619 GB, free: 25.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003896/0.6877, allocations: 128.3 kB / 0.562 GB, free: 25.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003413/0.6881, allocations: 95.92 kB / 0.5621 GB, free: 25.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004759/0.6886, allocations: 0.7391 MB / 0.5628 GB, free: 24.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004557/0.689, allocations: 94.72 kB / 0.5629 GB, free: 24.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.208e-05/0.6891, allocations: 15.03 kB / 0.5629 GB, free: 24.63 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.887e-06/0.6891, allocations: 3.812 kB / 0.5629 GB, free: 24.63 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007605/0.6899, allocations: 0.5179 MB / 0.5634 GB, free: 24.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.6899, allocations: 3.906 kB / 0.5634 GB, free: 24.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003276/0.6902, allocations: 112.8 kB / 0.5635 GB, free: 24.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003283/0.6905, allocations: 91.97 kB / 0.5636 GB, free: 24.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001726/0.6923, allocations: 2.15 MB / 0.5657 GB, free: 23.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004407/0.6927, allocations: 73.62 kB / 0.5658 GB, free: 23.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.89e-05/0.6928, allocations: 15.47 kB / 0.5658 GB, free: 23.13 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 () * 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.0001274/0.6929, allocations: 143.8 kB / 0.5659 GB, free: 23 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.674e-05/0.693, allocations: 54.69 kB / 0.566 GB, free: 22.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006783/0.6937, allocations: 427.7 kB / 0.5664 GB, free: 22.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-06/0.6937, allocations: 3.906 kB / 0.5664 GB, free: 22.91 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.6937, allocations: 3.906 kB / 0.5664 GB, free: 22.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.637e-06/0.6937, allocations: 7.219 kB / 0.5664 GB, free: 22.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001251/0.695, allocations: 1.031 MB / 0.5674 GB, free: 22.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.695, allocations: 0 / 0.5674 GB, free: 22.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004068/0.6954, allocations: 89.11 kB / 0.5675 GB, free: 22.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.965e-05/0.6955, allocations: 31.48 kB / 0.5675 GB, free: 22.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.307e-05/0.6955, allocations: 15.03 kB / 0.5675 GB, free: 22.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006579/0.6962, allocations: 1.349 MB / 0.5689 GB, free: 21.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.6962, allocations: 7.562 kB / 0.5689 GB, free: 21.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007941/0.697, allocations: 0.7185 MB / 0.5696 GB, free: 21.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001564/0.6972, allocations: 168.7 kB / 0.5697 GB, free: 20.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.588e-05/0.6972, allocations: 10.97 kB / 0.5697 GB, free: 20.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003795/0.6976, allocations: 46.39 kB / 0.5698 GB, free: 20.92 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.749e-05/0.6977, allocations: 35.41 kB / 0.5698 GB, free: 20.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.507e-05/0.6978, allocations: 15.05 kB / 0.5698 GB, free: 20.92 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002933/0.6981, allocations: 303.4 kB / 0.5701 GB, free: 20.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6981, allocations: 0 / 0.5701 GB, free: 20.84 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007375/0.6988, allocations: 250.5 kB / 0.5704 GB, free: 20.8 MB / 378.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) * 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.0001688/0.699, allocations: 122 kB / 0.5705 GB, free: 20.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001049/0.7001, allocations: 0.8486 MB / 0.5713 GB, free: 20.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.7001, allocations: 0 / 0.5713 GB, free: 20.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003265/0.7004, allocations: 295.5 kB / 0.5716 GB, free: 20.28 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005011/0.7009, allocations: 90.03 kB / 0.5717 GB, free: 20.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001375/0.7023, allocations: 0.881 MB / 0.5725 GB, free: 19.88 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002989/0.7026, allocations: 0.899 MB / 0.5734 GB, free: 19.18 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004406/0.7031, allocations: 143.8 kB / 0.5736 GB, free: 19.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.07e-05/0.7032, allocations: 30.28 kB / 0.5736 GB, free: 19.14 MB / 378.7 MB Notification: Performance of SimCode: time 4.3e-07/0.7032, allocations: 3.938 kB / 0.5736 GB, free: 19.14 MB / 378.7 MB Notification: Performance of Templates: time 0.01129/0.7145, allocations: 7.447 MB / 0.5809 GB, free: 17.68 MB / 378.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)