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.002182/0.002181, allocations: 183.1 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 1.965/1.965, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001448/0.001447, allocations: 98.73 kB / 270.2 MB, free: 13.35 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.26/0.26, allocations: 38.06 MB / 356.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004501/0.0004501, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1085, allocations: 56.33 MB / 479 MB, free: 2.039 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4965/0.605, allocations: 103.9 MB / 0.5693 GB, free: 12.4 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003171/0.6054, allocations: 90.08 kB / 0.5694 GB, free: 12.36 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1048/0.7101, allocations: 25.21 MB / 0.594 GB, free: 7.453 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.467e-06/0.7102, allocations: 0 / 0.594 GB, free: 7.453 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.28e-05/0.7103, allocations: 16 kB / 0.594 GB, free: 7.438 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.003422/0.7137, allocations: 1.023 MB / 0.595 GB, free: 6.406 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.7138, allocations: 11.97 kB / 0.595 GB, free: 6.395 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002269/0.7161, allocations: 194.9 kB / 0.5952 GB, free: 6.203 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001826/0.7179, allocations: 0.5555 MB / 0.5958 GB, free: 5.699 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.414e-05/0.718, allocations: 47.86 kB / 0.5958 GB, free: 5.672 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001828/0.7182, allocations: 56.3 kB / 0.5959 GB, free: 5.633 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002402/0.7207, allocations: 0.7859 MB / 0.5966 GB, free: 5.031 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.415e-05/0.7208, allocations: 0 / 0.5966 GB, free: 5.031 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001075/0.7209, allocations: 37.88 kB / 0.5967 GB, free: 5.012 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001845/0.7211, allocations: 37.05 kB / 0.5967 GB, free: 4.977 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002753/0.7238, allocations: 0.7417 MB / 0.5974 GB, free: 4.449 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007522/0.7314, allocations: 2.944 MB / 0.6003 GB, free: 1.992 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002415/0.7339, allocations: 0.6085 MB / 0.6009 GB, free: 1.535 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.55e-05/0.734, allocations: 12.42 kB / 0.6009 GB, free: 1.523 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00135/0.7354, allocations: 440.4 kB / 0.6013 GB, free: 1.184 MB / 394.7 MB Notification: Performance of pre-optimization done (n=56): time 3.957e-06/0.7354, allocations: 0 / 0.6013 GB, free: 1.184 MB / 394.7 MB Notification: Performance of matching and sorting (n=58): time 0.007503/0.7429, allocations: 2.278 MB / 0.6036 GB, free: 15.31 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.91e-05/0.7431, allocations: 119.1 kB / 0.6037 GB, free: 15.17 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001045/0.7441, allocations: 426 kB / 0.6041 GB, free: 14.83 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001353/0.7443, allocations: 37.08 kB / 0.6041 GB, free: 14.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003228/0.7446, allocations: 347.3 kB / 0.6045 GB, free: 14.54 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002662/0.7449, allocations: 200.1 kB / 0.6046 GB, free: 14.37 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.417e-05/0.745, allocations: 9.062 kB / 0.6047 GB, free: 14.37 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.7451, allocations: 344 kB / 0.605 GB, free: 14.03 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001087/0.7462, allocations: 291.9 kB / 0.6053 GB, free: 13.84 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00116/0.7474, allocations: 411 kB / 0.6056 GB, free: 13.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001176/0.7486, allocations: 361.5 kB / 0.606 GB, free: 13.26 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.7486, allocations: 8 kB / 0.606 GB, free: 13.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.003564/0.7522, allocations: 0.9942 MB / 0.607 GB, free: 12.48 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004898/0.7527, allocations: 1.077 MB / 0.608 GB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/0.7528, allocations: 7.953 kB / 0.608 GB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001206/0.754, allocations: 208.1 kB / 0.6082 GB, free: 11.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001043/0.7551, allocations: 127.7 kB / 0.6084 GB, free: 11.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003016/0.7581, allocations: 2.179 MB / 0.6105 GB, free: 8.891 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001121/0.7593, allocations: 69.94 kB / 0.6105 GB, free: 8.832 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.12e-05/0.7594, allocations: 34.48 kB / 0.6106 GB, free: 8.805 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.7594, allocations: 4 kB / 0.6106 GB, free: 8.801 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0031/0.7625, allocations: 0.8781 MB / 0.6114 GB, free: 8.164 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.7626, allocations: 0 / 0.6114 GB, free: 8.164 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007885/0.7634, allocations: 166.4 kB / 0.6116 GB, free: 8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001012/0.7644, allocations: 123.8 kB / 0.6117 GB, free: 7.879 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00382/0.7682, allocations: 2.26 MB / 0.6139 GB, free: 5.484 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008494/0.7691, allocations: 63.92 kB / 0.614 GB, free: 5.422 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.568e-05/0.7692, allocations: 20 kB / 0.614 GB, free: 5.402 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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.0006345/0.7699, allocations: 308.9 kB / 0.6143 GB, free: 5.09 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002002/0.7701, allocations: 63.23 kB / 0.6144 GB, free: 5.027 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003135/0.7732, allocations: 0.8461 MB / 0.6152 GB, free: 4.168 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.575e-05/0.7733, allocations: 11.94 kB / 0.6152 GB, free: 4.156 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.7733, allocations: 0 / 0.6152 GB, free: 4.156 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.679e-05/0.7734, allocations: 11.98 kB / 0.6152 GB, free: 4.145 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004844/0.7782, allocations: 1.694 MB / 0.6169 GB, free: 2.367 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/0.7783, allocations: 0 / 0.6169 GB, free: 2.367 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001236/0.7795, allocations: 144 kB / 0.617 GB, free: 2.227 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003943/0.7799, allocations: 69.62 kB / 0.6171 GB, free: 2.152 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.351e-05/0.78, allocations: 12 kB / 0.6171 GB, free: 2.141 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002855/0.7829, allocations: 2.713 MB / 0.6197 GB, free: 15.16 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.818e-06/0.7829, allocations: 0 / 0.6197 GB, free: 15.16 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004252/0.7872, allocations: 1.415 MB / 0.6211 GB, free: 13.65 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00049/0.7877, allocations: 184.3 kB / 0.6213 GB, free: 13.45 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001375/0.7879, allocations: 19.98 kB / 0.6213 GB, free: 13.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009496/0.7889, allocations: 59.94 kB / 0.6214 GB, free: 13.38 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002149/0.7891, allocations: 64.38 kB / 0.6214 GB, free: 13.31 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.18e-05/0.7892, allocations: 19.98 kB / 0.6214 GB, free: 13.29 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008877/0.7901, allocations: 342.8 kB / 0.6218 GB, free: 12.96 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7901, allocations: 0 / 0.6218 GB, free: 12.96 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001428/0.7915, allocations: 272 kB / 0.622 GB, free: 12.7 MB / 426.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.0002913/0.7918, allocations: 139.4 kB / 0.6222 GB, free: 12.55 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005125/0.797, allocations: 1.576 MB / 0.6237 GB, free: 10.91 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/0.797, allocations: 0 / 0.6237 GB, free: 10.91 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001759/0.7988, allocations: 0.6065 MB / 0.6243 GB, free: 10.27 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/0.7999, allocations: 106.4 kB / 0.6244 GB, free: 10.17 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004428/0.8044, allocations: 1.872 MB / 0.6262 GB, free: 8.246 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007747/0.8052, allocations: 0.9546 MB / 0.6272 GB, free: 7.258 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004018/0.8056, allocations: 51.42 kB / 0.6272 GB, free: 7.207 MB / 426.7 MB Notification: Performance of SimCode: time 1.252e-06/0.8056, allocations: 0 / 0.6272 GB, free: 7.207 MB / 426.7 MB Notification: Performance of Templates: time 0.02722/0.8329, allocations: 13.3 MB / 0.6402 GB, free: 9.887 MB / 442.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)