Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001544/0.001544, allocations: 181.3 kB / 15.76 MB, free: 6.344 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.04/2.04, allocations: 205.4 MB / 221.9 MB, free: 13.75 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001136/0.001136, allocations: 94.81 kB / 270.2 MB, free: 13.28 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2589/0.2589, allocations: 38.06 MB / 356.6 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004853/0.0004853, allocations: 16 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1112, allocations: 56.33 MB / 479 MB, free: 2.039 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.491/0.6022, allocations: 102 MB / 0.5674 GB, free: 14.17 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003236/0.6026, allocations: 90.05 kB / 0.5675 GB, free: 14.12 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08442/0.6871, allocations: 19.36 MB / 0.5864 GB, free: 14.01 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.245e-06/0.6871, allocations: 0 / 0.5864 GB, free: 14.01 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.321e-05/0.6872, allocations: 16 kB / 0.5864 GB, free: 14 MB / 394.7 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.003239/0.6905, allocations: 0.9598 MB / 0.5873 GB, free: 13.03 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.6905, allocations: 8.031 kB / 0.5874 GB, free: 13.02 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00167/0.6922, allocations: 159 kB / 0.5875 GB, free: 12.87 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001667/0.6939, allocations: 0.5336 MB / 0.588 GB, free: 12.38 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.419e-05/0.694, allocations: 37.62 kB / 0.5881 GB, free: 12.36 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000152/0.6941, allocations: 57.69 kB / 0.5881 GB, free: 12.32 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002179/0.6963, allocations: 0.6679 MB / 0.5888 GB, free: 11.8 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.258e-05/0.6964, allocations: 3.906 kB / 0.5888 GB, free: 11.79 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.447e-05/0.6965, allocations: 28.17 kB / 0.5888 GB, free: 11.78 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.429e-05/0.6966, allocations: 24.95 kB / 0.5888 GB, free: 11.76 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002536/0.6992, allocations: 0.6255 MB / 0.5894 GB, free: 11.31 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006711/0.7059, allocations: 2.754 MB / 0.5921 GB, free: 8.945 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002512/0.7085, allocations: 0.6583 MB / 0.5928 GB, free: 8.41 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.517e-05/0.7086, allocations: 12.34 kB / 0.5928 GB, free: 8.398 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001039/0.7096, allocations: 304.7 kB / 0.5931 GB, free: 8.145 MB / 394.7 MB Notification: Performance of pre-optimization done (n=41): time 3.186e-06/0.7097, allocations: 0 / 0.5931 GB, free: 8.145 MB / 394.7 MB Notification: Performance of matching and sorting (n=41): time 0.003254/0.7129, allocations: 0.7949 MB / 0.5938 GB, free: 7.484 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/0.7131, allocations: 136.5 kB / 0.594 GB, free: 7.324 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001231/0.7143, allocations: 448.9 kB / 0.5944 GB, free: 6.965 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001383/0.7145, allocations: 33.52 kB / 0.5944 GB, free: 6.93 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003037/0.7148, allocations: 330.8 kB / 0.5948 GB, free: 6.684 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002225/0.7151, allocations: 145.4 kB / 0.5949 GB, free: 6.559 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.452e-05/0.7151, allocations: 11.91 kB / 0.5949 GB, free: 6.555 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.7153, allocations: 330.4 kB / 0.5952 GB, free: 6.23 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008584/0.7162, allocations: 202.3 kB / 0.5954 GB, free: 6.09 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009747/0.7172, allocations: 317.5 kB / 0.5957 GB, free: 5.793 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009578/0.7181, allocations: 262.7 kB / 0.596 GB, free: 5.605 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.7182, allocations: 0 / 0.596 GB, free: 5.605 MB / 394.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002981/0.7212, allocations: 0.7485 MB / 0.5967 GB, free: 5.008 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006412/0.7218, allocations: 1.335 MB / 0.598 GB, free: 3.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/0.7219, allocations: 4 kB / 0.598 GB, free: 3.586 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009354/0.7228, allocations: 161.4 kB / 0.5982 GB, free: 3.461 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000773/0.7236, allocations: 95.38 kB / 0.5982 GB, free: 3.371 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00142/0.7251, allocations: 0.8054 MB / 0.599 GB, free: 2.652 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001003/0.7261, allocations: 96.91 kB / 0.5991 GB, free: 2.566 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.219e-05/0.7262, allocations: 15.19 kB / 0.5991 GB, free: 2.555 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.7262, allocations: 4 kB / 0.5991 GB, free: 2.551 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002504/0.7287, allocations: 0.6329 MB / 0.5998 GB, free: 2.078 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/0.7288, allocations: 4 kB / 0.5998 GB, free: 2.074 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005483/0.7294, allocations: 130.9 kB / 0.5999 GB, free: 1.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000752/0.7301, allocations: 99.47 kB / 0.6 GB, free: 1.887 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003807/0.734, allocations: 2.226 MB / 0.6022 GB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006317/0.7346, allocations: 54.53 kB / 0.6022 GB, free: 15.94 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.074e-05/0.7347, allocations: 19.56 kB / 0.6022 GB, free: 15.92 MB / 410.7 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,$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,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 (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 13} Notification: Performance of prepare postOptimizeDAE: time 0.0005447/0.7353, allocations: 297 kB / 0.6025 GB, free: 15.67 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001676/0.7354, allocations: 63.31 kB / 0.6026 GB, free: 15.61 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002092/0.7376, allocations: 0.5345 MB / 0.6031 GB, free: 15.21 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.379e-05/0.7376, allocations: 7.938 kB / 0.6031 GB, free: 15.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.7376, allocations: 0 / 0.6031 GB, free: 15.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/0.7376, allocations: 3.984 kB / 0.6031 GB, free: 15.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003411/0.7411, allocations: 1.184 MB / 0.6043 GB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.7411, allocations: 0 / 0.6043 GB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009118/0.742, allocations: 97.62 kB / 0.6044 GB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001882/0.7423, allocations: 28.3 kB / 0.6044 GB, free: 14.13 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.504e-05/0.7423, allocations: 10.62 kB / 0.6044 GB, free: 14.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001456/0.7438, allocations: 1.364 MB / 0.6057 GB, free: 12.72 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.277e-06/0.7439, allocations: 0 / 0.6057 GB, free: 12.72 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003066/0.747, allocations: 0.8977 MB / 0.6066 GB, free: 11.99 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003877/0.7474, allocations: 175.3 kB / 0.6068 GB, free: 11.83 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001135/0.7475, allocations: 7.688 kB / 0.6068 GB, free: 11.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007688/0.7483, allocations: 51.14 kB / 0.6068 GB, free: 11.78 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/0.7485, allocations: 43.2 kB / 0.6069 GB, free: 11.74 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.082e-05/0.7485, allocations: 11.31 kB / 0.6069 GB, free: 11.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008928/0.7494, allocations: 361.5 kB / 0.6072 GB, free: 11.46 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.7494, allocations: 0 / 0.6072 GB, free: 11.46 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001202/0.7507, allocations: 255.6 kB / 0.6075 GB, free: 11.23 MB / 410.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 (40): * Single equations (assignments): 36 * 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.0002486/0.7509, allocations: 121 kB / 0.6076 GB, free: 11.11 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003261/0.7542, allocations: 1.007 MB / 0.6086 GB, free: 10.27 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.7542, allocations: 3.938 kB / 0.6086 GB, free: 10.27 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001075/0.7553, allocations: 347.7 kB / 0.6089 GB, free: 9.977 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001001/0.7563, allocations: 105.1 kB / 0.609 GB, free: 9.895 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003908/0.7603, allocations: 1.518 MB / 0.6105 GB, free: 8.453 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007082/0.761, allocations: 0.9131 MB / 0.6114 GB, free: 7.52 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002952/0.7614, allocations: 38.56 kB / 0.6114 GB, free: 7.484 MB / 410.7 MB Notification: Performance of SimCode: time 1.082e-06/0.7614, allocations: 0 / 0.6114 GB, free: 7.484 MB / 410.7 MB Notification: Performance of Templates: time 0.0212/0.7826, allocations: 9.131 MB / 0.6203 GB, free: 14.46 MB / 426.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1 --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1)