Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.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.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00151/0.001515, allocations: 185.7 kB / 13.19 MB, free: 2.125 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.06/2.06, allocations: 205.2 MB / 218.9 MB, free: 9.203 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.001121/0.001121, allocations: 91.16 kB / 267.1 MB, free: 9.289 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2734/0.2734, allocations: 37.97 MB / 353.1 MB, free: 3.066 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.449e-05/3.46e-05, allocations: 0 / 416.8 MB, free: 41.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1047, allocations: 56.32 MB / 473.1 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4949/0.5997, allocations: 103.9 MB / 0.5635 GB, free: 15.86 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003439/0.6001, allocations: 83.95 kB / 0.5635 GB, free: 15.78 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1097/0.7098, allocations: 25.09 MB / 0.588 GB, free: 6.469 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.7098, allocations: 0 / 0.588 GB, free: 6.469 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.526e-05/0.7099, allocations: 20 kB / 0.5881 GB, free: 6.449 MB / 426.7 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.002807/0.7127, allocations: 0.9247 MB / 0.589 GB, free: 5.473 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/0.7128, allocations: 8.031 kB / 0.589 GB, free: 5.465 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002221/0.715, allocations: 186.9 kB / 0.5892 GB, free: 5.281 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001583/0.7167, allocations: 0.5329 MB / 0.5897 GB, free: 4.707 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.01e-05/0.7168, allocations: 45.31 kB / 0.5897 GB, free: 4.66 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00017/0.7169, allocations: 63.92 kB / 0.5898 GB, free: 4.598 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001996/0.719, allocations: 0.7202 MB / 0.5905 GB, free: 3.84 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.211e-05/0.719, allocations: 7.844 kB / 0.5905 GB, free: 3.832 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001154/0.7192, allocations: 35.94 kB / 0.5905 GB, free: 3.797 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001707/0.7194, allocations: 41.3 kB / 0.5906 GB, free: 3.758 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001829/0.7212, allocations: 0.6298 MB / 0.5912 GB, free: 3.129 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007554/0.7288, allocations: 2.931 MB / 0.594 GB, free: 80 kB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001682/0.7305, allocations: 0.499 MB / 0.5945 GB, free: 15.55 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008626/0.7314, allocations: 307 kB / 0.5948 GB, free: 15.25 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.13e-05/0.7315, allocations: 12.36 kB / 0.5948 GB, free: 15.24 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009426/0.7325, allocations: 382.3 kB / 0.5952 GB, free: 14.85 MB / 442.7 MB Notification: Performance of pre-optimization done (n=56): time 3.767e-06/0.7325, allocations: 0 / 0.5952 GB, free: 14.85 MB / 442.7 MB Notification: Performance of matching and sorting (n=58): time 0.004521/0.737, allocations: 1.569 MB / 0.5967 GB, free: 13.21 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.857e-05/0.7372, allocations: 111.4 kB / 0.5968 GB, free: 13.08 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000837/0.738, allocations: 411.9 kB / 0.5972 GB, free: 12.67 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001559/0.7382, allocations: 37.7 kB / 0.5973 GB, free: 12.63 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003795/0.7386, allocations: 339.1 kB / 0.5976 GB, free: 12.3 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003226/0.7389, allocations: 201.1 kB / 0.5978 GB, free: 12.1 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.193e-05/0.739, allocations: 12 kB / 0.5978 GB, free: 12.09 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.7392, allocations: 338.8 kB / 0.5981 GB, free: 11.75 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007044/0.7399, allocations: 229.5 kB / 0.5983 GB, free: 11.52 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008031/0.7407, allocations: 360.2 kB / 0.5987 GB, free: 11.13 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008197/0.7416, allocations: 308.8 kB / 0.599 GB, free: 10.82 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.7416, allocations: 4 kB / 0.599 GB, free: 10.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00282/0.7444, allocations: 0.865 MB / 0.5998 GB, free: 9.934 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006146/0.7451, allocations: 1.171 MB / 0.601 GB, free: 8.668 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/0.7451, allocations: 4 kB / 0.601 GB, free: 8.664 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001117/0.7462, allocations: 177.6 kB / 0.6011 GB, free: 8.484 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001109/0.7474, allocations: 123.8 kB / 0.6013 GB, free: 8.363 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002943/0.7504, allocations: 2.137 MB / 0.6033 GB, free: 6.066 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001144/0.7516, allocations: 71.84 kB / 0.6034 GB, free: 5.996 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/0.7517, allocations: 27.94 kB / 0.6034 GB, free: 5.969 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.7517, allocations: 11.97 kB / 0.6034 GB, free: 5.957 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002542/0.7543, allocations: 0.7852 MB / 0.6042 GB, free: 5.156 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.7544, allocations: 8.281 kB / 0.6042 GB, free: 5.148 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007774/0.7552, allocations: 161.6 kB / 0.6044 GB, free: 4.984 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001006/0.7562, allocations: 115.9 kB / 0.6045 GB, free: 4.871 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003903/0.7601, allocations: 2.238 MB / 0.6067 GB, free: 2.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000823/0.761, allocations: 51.86 kB / 0.6067 GB, free: 2.449 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.566e-05/0.7611, allocations: 27.94 kB / 0.6067 GB, free: 2.422 MB / 442.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: 7 (system.initime,$whenCondition1,$PRE.secondary.T_start,secondary.T_start,$PRE.secondary.count,secondary.count,hydroPlant.reservoirLevel.local_reset) * Number of discrete 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 (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 13} Notification: Performance of prepare postOptimizeDAE: time 0.000273/0.7614, allocations: 144.8 kB / 0.6069 GB, free: 2.273 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001971/0.7616, allocations: 55.34 kB / 0.6069 GB, free: 2.219 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002255/0.7639, allocations: 0.729 MB / 0.6076 GB, free: 1.48 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.43e-05/0.7639, allocations: 8 kB / 0.6077 GB, free: 1.473 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.7639, allocations: 3.984 kB / 0.6077 GB, free: 1.469 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/0.7639, allocations: 0 / 0.6077 GB, free: 1.469 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004295/0.7683, allocations: 1.593 MB / 0.6092 GB, free: 15.79 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.166e-06/0.7683, allocations: 192 / 0.6092 GB, free: 15.79 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001248/0.7696, allocations: 143.8 kB / 0.6094 GB, free: 15.65 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003939/0.77, allocations: 61.7 kB / 0.6094 GB, free: 15.59 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.861e-05/0.7701, allocations: 23.98 kB / 0.6094 GB, free: 15.56 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002952/0.7731, allocations: 2.682 MB / 0.6121 GB, free: 12.61 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.045e-05/0.7731, allocations: 4 kB / 0.6121 GB, free: 12.61 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003126/0.7763, allocations: 1.255 MB / 0.6133 GB, free: 11.27 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004838/0.7768, allocations: 184.3 kB / 0.6135 GB, free: 11.07 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001341/0.7769, allocations: 19.95 kB / 0.6135 GB, free: 11.05 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009151/0.7779, allocations: 67.92 kB / 0.6135 GB, free: 10.98 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002067/0.7781, allocations: 56.42 kB / 0.6136 GB, free: 10.93 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.66e-05/0.7782, allocations: 16 kB / 0.6136 GB, free: 10.91 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006431/0.7788, allocations: 317.6 kB / 0.6139 GB, free: 10.61 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.7788, allocations: 0 / 0.6139 GB, free: 10.61 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001424/0.7803, allocations: 276 kB / 0.6142 GB, free: 10.34 MB / 458.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 (62): * Single equations (assignments): 57 * 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.0003109/0.7806, allocations: 132.4 kB / 0.6143 GB, free: 10.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003658/0.7843, allocations: 1.412 MB / 0.6157 GB, free: 8.715 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.7844, allocations: 0 / 0.6157 GB, free: 8.715 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001328/0.7857, allocations: 0.5482 MB / 0.6162 GB, free: 8.145 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.7868, allocations: 121.9 kB / 0.6163 GB, free: 8.023 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003529/0.7904, allocations: 1.219 MB / 0.6175 GB, free: 6.754 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007975/0.7912, allocations: 0.9584 MB / 0.6185 GB, free: 5.766 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004118/0.7916, allocations: 51.42 kB / 0.6185 GB, free: 5.715 MB / 458.7 MB Notification: Performance of SimCode: time 1.152e-06/0.7917, allocations: 0 / 0.6185 GB, free: 5.715 MB / 458.7 MB Notification: Performance of Templates: time 0.02836/0.82, allocations: 13.29 MB / 0.6315 GB, free: 8.406 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2 --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)