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/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.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/Complex 3.2.2+maint.om/package.mo): time 0.001432/0.001432, allocations: 182 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.717/1.717, allocations: 194.3 MB / 208.4 MB, free: 6.699 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.001702/0.001703, allocations: 108.8 kB / 253.5 MB, free: 9.582 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1649/0.1649, allocations: 37.91 MB / 336.4 MB, free: 14.26 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.26e-05/3.264e-05, allocations: 7.984 kB / 397.5 MB, free: 1.039 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2621, allocations: 53.22 MB / 450.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3568/0.6189, allocations: 97.79 MB / 0.5357 GB, free: 88.67 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002549/0.6192, allocations: 82.86 kB / 0.5358 GB, free: 88.67 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05404/0.6733, allocations: 24.28 MB / 0.5595 GB, free: 69.29 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.6733, allocations: 0 / 0.5595 GB, free: 69.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.562e-05/0.6734, allocations: 12 kB / 0.5595 GB, free: 69.27 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: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.001457/0.6749, allocations: 0.9014 MB / 0.5604 GB, free: 68.32 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.6749, allocations: 8.031 kB / 0.5604 GB, free: 68.31 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001166/0.6761, allocations: 194.9 kB / 0.5606 GB, free: 68.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007222/0.6768, allocations: 0.5018 MB / 0.5611 GB, free: 67.57 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.909e-05/0.6769, allocations: 41.3 kB / 0.5611 GB, free: 67.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.021e-05/0.6769, allocations: 59.95 kB / 0.5612 GB, free: 67.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009322/0.6779, allocations: 0.6906 MB / 0.5618 GB, free: 66.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.099e-05/0.6779, allocations: 0 / 0.5618 GB, free: 66.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.685e-05/0.678, allocations: 27.98 kB / 0.5619 GB, free: 66.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.123e-05/0.6781, allocations: 37.3 kB / 0.5619 GB, free: 66.69 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008298/0.6789, allocations: 0.6102 MB / 0.5625 GB, free: 66.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003214/0.6821, allocations: 2.704 MB / 0.5651 GB, free: 63.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007716/0.6829, allocations: 499 kB / 0.5656 GB, free: 62.76 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003783/0.6833, allocations: 307 kB / 0.5659 GB, free: 62.45 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.099e-05/0.6834, allocations: 8.438 kB / 0.5659 GB, free: 62.45 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004658/0.6838, allocations: 377.9 kB / 0.5663 GB, free: 62.06 MB / 378.7 MB Notification: Performance of pre-optimization done (n=55): time 3.256e-06/0.6839, allocations: 0 / 0.5663 GB, free: 62.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.002116/0.686, allocations: 1.538 MB / 0.5678 GB, free: 60.46 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.017e-05/0.686, allocations: 111.4 kB / 0.5679 GB, free: 60.33 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003531/0.6864, allocations: 371.2 kB / 0.5682 GB, free: 59.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.904e-05/0.6864, allocations: 37.7 kB / 0.5683 GB, free: 59.92 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/0.6866, allocations: 292.5 kB / 0.5685 GB, free: 59.63 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001386/0.6867, allocations: 197.2 kB / 0.5687 GB, free: 59.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.054e-05/0.6868, allocations: 12 kB / 0.5687 GB, free: 59.42 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.607e-05/0.6869, allocations: 370.7 kB / 0.5691 GB, free: 59.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003027/0.6872, allocations: 229.3 kB / 0.5693 GB, free: 58.82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003474/0.6875, allocations: 337.7 kB / 0.5696 GB, free: 58.45 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003627/0.6879, allocations: 300.9 kB / 0.5699 GB, free: 58.15 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.6879, allocations: 0 / 0.5699 GB, free: 58.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001294/0.6892, allocations: 0.8607 MB / 0.5708 GB, free: 57.28 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001822/0.6894, allocations: 0.995 MB / 0.5717 GB, free: 56.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.6894, allocations: 4 kB / 0.5717 GB, free: 56.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005218/0.6899, allocations: 173.6 kB / 0.5719 GB, free: 56.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004599/0.6904, allocations: 115.8 kB / 0.572 GB, free: 55.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001327/0.6918, allocations: 2.113 MB / 0.5741 GB, free: 53.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005243/0.6923, allocations: 72.11 kB / 0.5741 GB, free: 53.56 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.099e-05/0.6923, allocations: 20 kB / 0.5742 GB, free: 53.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.336e-06/0.6924, allocations: 4 kB / 0.5742 GB, free: 53.54 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00111/0.6935, allocations: 0.7582 MB / 0.5749 GB, free: 52.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.6935, allocations: 3.953 kB / 0.5749 GB, free: 52.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000409/0.6939, allocations: 164.9 kB / 0.5751 GB, free: 52.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004304/0.6943, allocations: 120 kB / 0.5752 GB, free: 52.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002398/0.6968, allocations: 3.533 MB / 0.5786 GB, free: 48.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005459/0.6973, allocations: 63.92 kB / 0.5787 GB, free: 48.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.962e-05/0.6974, allocations: 24.06 kB / 0.5787 GB, free: 48.59 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,$whenCondition1,$PRE.secondary.T_start,secondary.T_start,$PRE.secondary.count,secondary.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 54 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001503/0.6975, allocations: 144.5 kB / 0.5789 GB, free: 48.45 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.263e-05/0.6976, allocations: 59.33 kB / 0.5789 GB, free: 48.39 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001139/0.6987, allocations: 0.713 MB / 0.5796 GB, free: 47.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.6988, allocations: 15.95 kB / 0.5796 GB, free: 47.65 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.6988, allocations: 0 / 0.5796 GB, free: 47.65 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.6988, allocations: 3.984 kB / 0.5796 GB, free: 47.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001869/0.7007, allocations: 1.554 MB / 0.5811 GB, free: 46.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.7007, allocations: 0 / 0.5811 GB, free: 46.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005689/0.7013, allocations: 135.8 kB / 0.5813 GB, free: 45.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001992/0.7015, allocations: 65.86 kB / 0.5813 GB, free: 45.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.038e-05/0.7015, allocations: 12 kB / 0.5814 GB, free: 45.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001268/0.7028, allocations: 2.693 MB / 0.584 GB, free: 42.83 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.7028, allocations: 160 / 0.584 GB, free: 42.83 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001335/0.7042, allocations: 1.224 MB / 0.5852 GB, free: 41.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002291/0.7044, allocations: 184.4 kB / 0.5854 GB, free: 41.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.823e-05/0.7045, allocations: 20 kB / 0.5854 GB, free: 41.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004595/0.7049, allocations: 63.92 kB / 0.5854 GB, free: 41.24 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001269/0.7051, allocations: 60.38 kB / 0.5855 GB, free: 41.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.616e-05/0.7051, allocations: 20 kB / 0.5855 GB, free: 41.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000287/0.7054, allocations: 293.2 kB / 0.5858 GB, free: 40.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7054, allocations: 0 / 0.5858 GB, free: 40.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008691/0.7063, allocations: 268 kB / 0.586 GB, free: 40.61 MB / 378.7 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001739/0.7065, allocations: 130.1 kB / 0.5862 GB, free: 40.48 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001844/0.7083, allocations: 1.443 MB / 0.5876 GB, free: 38.97 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.7083, allocations: 0 / 0.5876 GB, free: 38.97 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006051/0.709, allocations: 0.5553 MB / 0.5881 GB, free: 38.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005291/0.7095, allocations: 109.7 kB / 0.5882 GB, free: 38.29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001707/0.7112, allocations: 1.147 MB / 0.5893 GB, free: 37.09 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003109/0.7115, allocations: 0.9473 MB / 0.5903 GB, free: 36.12 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005407/0.7121, allocations: 180.4 kB / 0.5904 GB, free: 35.94 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001372/0.7122, allocations: 43.42 kB / 0.5905 GB, free: 35.89 MB / 378.7 MB Notification: Performance of SimCode: time 1.152e-06/0.7122, allocations: 0 / 0.5905 GB, free: 35.89 MB / 378.7 MB Notification: Performance of Templates: time 0.01329/0.7255, allocations: 9.158 MB / 0.5994 GB, free: 26.74 MB / 378.7 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 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)