Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001181/0.001181, allocations: 173 kB / 16.76 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.313/1.313, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000734/0.0007343, allocations: 82.42 kB / 271.3 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.166/0.166, allocations: 38.08 MB / 357.6 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003356/0.0003356, allocations: 12 kB / 423.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2199/0.2202, allocations: 56.32 MB / 480.3 MB, free: 9.219 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1238/0.3441, allocations: 104 MB / 0.5706 GB, free: 14.33 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002573/0.3444, allocations: 87.95 kB / 0.5707 GB, free: 14.25 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06066/0.4051, allocations: 25.25 MB / 0.5953 GB, free: 4.766 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4051, allocations: 0 / 0.5953 GB, free: 4.766 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.427e-05/0.4052, allocations: 16 kB / 0.5953 GB, free: 4.75 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.001786/0.4069, allocations: 1.014 MB / 0.5963 GB, free: 3.676 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.217e-05/0.407, allocations: 12.03 kB / 0.5963 GB, free: 3.664 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001192/0.4082, allocations: 187.8 kB / 0.5965 GB, free: 3.48 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009144/0.4091, allocations: 0.5806 MB / 0.5971 GB, free: 2.855 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.183e-05/0.4092, allocations: 41.69 kB / 0.5971 GB, free: 2.816 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.951e-05/0.4093, allocations: 60.28 kB / 0.5972 GB, free: 2.758 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001338/0.4106, allocations: 0.7948 MB / 0.598 GB, free: 1.926 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.233e-05/0.4107, allocations: 4.188 kB / 0.598 GB, free: 1.922 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.411e-05/0.4107, allocations: 27.94 kB / 0.598 GB, free: 1.895 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.338e-05/0.4108, allocations: 33.3 kB / 0.598 GB, free: 1.863 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001412/0.4122, allocations: 0.7467 MB / 0.5987 GB, free: 1.117 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003906/0.4162, allocations: 2.954 MB / 0.6016 GB, free: 14.04 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001275/0.4174, allocations: 0.6081 MB / 0.6022 GB, free: 13.41 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006627/0.4181, allocations: 374.8 kB / 0.6026 GB, free: 13.04 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.739e-05/0.4182, allocations: 8.422 kB / 0.6026 GB, free: 13.04 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007459/0.4189, allocations: 434.2 kB / 0.603 GB, free: 12.59 MB / 442.7 MB Notification: Performance of pre-optimization done (n=56): time 3.026e-06/0.4189, allocations: 0 / 0.603 GB, free: 12.59 MB / 442.7 MB Notification: Performance of matching and sorting (n=58): time 0.00425/0.4232, allocations: 2.27 MB / 0.6052 GB, free: 10.23 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.359e-05/0.4233, allocations: 115.4 kB / 0.6053 GB, free: 10.09 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006685/0.424, allocations: 486 kB / 0.6058 GB, free: 9.602 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.222e-05/0.424, allocations: 37.7 kB / 0.6058 GB, free: 9.559 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002272/0.4243, allocations: 312.5 kB / 0.6061 GB, free: 9.246 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001596/0.4244, allocations: 197.1 kB / 0.6063 GB, free: 9.051 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.018e-05/0.4245, allocations: 23.97 kB / 0.6063 GB, free: 9.027 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.4246, allocations: 362.8 kB / 0.6067 GB, free: 8.664 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005923/0.4252, allocations: 297.1 kB / 0.607 GB, free: 8.375 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006602/0.4259, allocations: 414.9 kB / 0.6074 GB, free: 7.926 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001291/0.4272, allocations: 0.738 MB / 0.6081 GB, free: 7.141 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.4272, allocations: 4 kB / 0.6081 GB, free: 7.137 MB / 442.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002159/0.4294, allocations: 1.063 MB / 0.6091 GB, free: 6.055 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001355/0.4295, allocations: 195.5 kB / 0.6093 GB, free: 5.812 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.4296, allocations: 4 kB / 0.6093 GB, free: 5.809 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006941/0.4303, allocations: 213.4 kB / 0.6095 GB, free: 5.594 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005119/0.4308, allocations: 123.9 kB / 0.6096 GB, free: 5.473 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004214/0.435, allocations: 3.868 MB / 0.6134 GB, free: 1.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005786/0.4356, allocations: 71.98 kB / 0.6135 GB, free: 1.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.275e-05/0.4357, allocations: 27.98 kB / 0.6135 GB, free: 1.242 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.213e-06/0.4357, allocations: 4 kB / 0.6135 GB, free: 1.238 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001736/0.4374, allocations: 0.8752 MB / 0.6144 GB, free: 360 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.4374, allocations: 0 / 0.6144 GB, free: 360 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000488/0.4379, allocations: 181.6 kB / 0.6145 GB, free: 176 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000473/0.4384, allocations: 119.8 kB / 0.6147 GB, free: 56 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003383/0.4418, allocations: 3.611 MB / 0.6182 GB, free: 12.17 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000536/0.4424, allocations: 71.89 kB / 0.6183 GB, free: 12.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.853e-05/0.4424, allocations: 28 kB / 0.6183 GB, free: 12.07 MB / 458.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 () * Number of clocked 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.000418/0.4429, allocations: 301 kB / 0.6186 GB, free: 11.77 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.423e-05/0.4429, allocations: 55.34 kB / 0.6186 GB, free: 11.71 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001681/0.4446, allocations: 0.8423 MB / 0.6194 GB, free: 10.86 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/0.4447, allocations: 8 kB / 0.6195 GB, free: 10.85 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.4447, allocations: 4 kB / 0.6195 GB, free: 10.85 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.4447, allocations: 3.984 kB / 0.6195 GB, free: 10.84 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002725/0.4474, allocations: 1.702 MB / 0.6211 GB, free: 9.059 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.261e-06/0.4474, allocations: 7.938 kB / 0.6211 GB, free: 9.051 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005962/0.448, allocations: 136 kB / 0.6213 GB, free: 8.918 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002115/0.4483, allocations: 61.67 kB / 0.6213 GB, free: 8.852 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.503e-05/0.4483, allocations: 15.98 kB / 0.6213 GB, free: 8.836 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001856/0.4502, allocations: 2.7 MB / 0.624 GB, free: 5.871 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.4502, allocations: 7.969 kB / 0.624 GB, free: 5.863 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002268/0.4525, allocations: 1.337 MB / 0.6253 GB, free: 4.48 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002578/0.4527, allocations: 192.3 kB / 0.6255 GB, free: 4.273 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.623e-05/0.4528, allocations: 15.98 kB / 0.6255 GB, free: 4.258 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004617/0.4533, allocations: 71.92 kB / 0.6256 GB, free: 4.188 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/0.4534, allocations: 52.44 kB / 0.6256 GB, free: 4.137 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.323e-05/0.4535, allocations: 23.98 kB / 0.6256 GB, free: 4.113 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005113/0.454, allocations: 346.8 kB / 0.626 GB, free: 3.777 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.454, allocations: 3.938 kB / 0.626 GB, free: 3.773 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0009909/0.455, allocations: 280.1 kB / 0.6262 GB, free: 3.5 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) * Number of clocked states: 0 () * 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.000173/0.4552, allocations: 127.3 kB / 0.6263 GB, free: 3.363 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002805/0.458, allocations: 1.774 MB / 0.6281 GB, free: 1.516 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.458, allocations: 4.312 kB / 0.6281 GB, free: 1.512 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009445/0.459, allocations: 0.61 MB / 0.6287 GB, free: 0.875 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007899/0.4598, allocations: 114.3 kB / 0.6288 GB, free: 0.7656 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00257/0.4624, allocations: 1.853 MB / 0.6306 GB, free: 14.86 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005345/0.4629, allocations: 0.9431 MB / 0.6315 GB, free: 13.88 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001902/0.4631, allocations: 51.42 kB / 0.6316 GB, free: 13.83 MB / 474.7 MB Notification: Performance of SimCode: time 4.4e-07/0.4631, allocations: 0 / 0.6316 GB, free: 13.83 MB / 474.7 MB Notification: Performance of Templates: time 0.1712/0.6344, allocations: 14.01 MB / 0.6453 GB, free: 137 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)