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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007255/0.0007257, allocations: 89.59 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007975/0.0007976, allocations: 174 kB / 17.56 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.42/1.42, allocations: 205.4 MB / 223.7 MB, free: 13.05 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1751/0.1751, allocations: 38.04 MB / 310.1 MB, free: 5.918 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004938/0.0004939, allocations: 19.98 kB / 377.2 MB, free: 2.723 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2341/0.2346, allocations: 56.33 MB / 433.5 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.0053/0.2399, allocations: 5.812 MB / 439.3 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003602/0.2436, allocations: 2.809 MB / 442.1 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007398/0.2443, allocations: 35.75 kB / 442.1 MB, free: 9.984 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000498/0.2448, allocations: 107.2 kB / 442.2 MB, free: 9.879 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001135/0.246, allocations: 422.2 kB / 442.7 MB, free: 9.465 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001048/0.2471, allocations: 421.2 kB / 443.1 MB, free: 9.059 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001111/0.2482, allocations: 1.256 MB / 444.3 MB, free: 7.797 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001116/0.2493, allocations: 0.7298 MB / 445.1 MB, free: 7.035 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005303/0.2499, allocations: 330.3 kB / 445.4 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005287/0.2504, allocations: 382.2 kB / 445.8 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.693e-05/0.2505, allocations: 28 kB / 445.8 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007665/0.2513, allocations: 0.5612 MB / 446.3 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001801/0.2515, allocations: 175.4 kB / 446.5 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000305/0.2518, allocations: 339.7 kB / 446.8 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009829/0.2528, allocations: 1.043 MB / 447.9 MB, free: 4.188 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2528, allocations: 0 / 447.9 MB, free: 4.188 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.2528, allocations: 0 / 447.9 MB, free: 4.188 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.499e-05/0.2528, allocations: 0 / 447.9 MB, free: 4.188 MB / 318.1 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.001936/0.2548, allocations: 0.989 MB / 448.9 MB, free: 3.145 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.2548, allocations: 8.031 kB / 448.9 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001253/0.2561, allocations: 187.8 kB / 449.1 MB, free: 2.953 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008042/0.2569, allocations: 0.5442 MB / 449.6 MB, free: 2.367 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.417e-05/0.257, allocations: 45.67 kB / 449.7 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.2571, allocations: 60.28 kB / 449.7 MB, free: 2.266 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001306/0.2584, allocations: 0.8022 MB / 450.5 MB, free: 1.426 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.881e-05/0.2584, allocations: 7.938 kB / 450.5 MB, free: 1.418 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.095e-05/0.2585, allocations: 24 kB / 450.5 MB, free: 1.395 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.021e-05/0.2585, allocations: 33.3 kB / 450.6 MB, free: 1.359 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00136/0.2599, allocations: 0.7623 MB / 451.3 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004232/0.2641, allocations: 2.939 MB / 454.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001383/0.2655, allocations: 0.6274 MB / 454.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007132/0.2663, allocations: 370.8 kB / 455.3 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.77e-05/0.2663, allocations: 12.42 kB / 455.3 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008165/0.2672, allocations: 438.3 kB / 455.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 3.146e-06/0.2672, allocations: 0 / 455.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=58): time 0.004804/0.272, allocations: 2.202 MB / 457.9 MB, free: 9.785 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.56e-05/0.2721, allocations: 111.4 kB / 458 MB, free: 9.652 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008504/0.2729, allocations: 490 kB / 458.5 MB, free: 9.164 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.441e-05/0.273, allocations: 41.7 kB / 458.5 MB, free: 9.117 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002992/0.2733, allocations: 316.4 kB / 458.9 MB, free: 8.801 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002182/0.2736, allocations: 197.1 kB / 459 MB, free: 8.605 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/0.2737, allocations: 53.69 kB / 459.1 MB, free: 8.547 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001959/0.2739, allocations: 374.8 kB / 459.5 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006134/0.2745, allocations: 297.1 kB / 459.8 MB, free: 7.883 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006835/0.2752, allocations: 426.9 kB / 460.2 MB, free: 7.422 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001342/0.2766, allocations: 0.7536 MB / 460.9 MB, free: 6.621 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.2766, allocations: 3.938 kB / 460.9 MB, free: 6.617 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002414/0.279, allocations: 1.071 MB / 462 MB, free: 5.523 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001431/0.2792, allocations: 203.4 kB / 462.2 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.789e-06/0.2792, allocations: 4 kB / 462.2 MB, free: 5.273 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000668/0.2798, allocations: 189.6 kB / 462.4 MB, free: 5.082 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000511/0.2804, allocations: 123.8 kB / 462.5 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004453/0.2848, allocations: 3.852 MB / 466.4 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005955/0.2854, allocations: 67.92 kB / 466.4 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.674e-05/0.2855, allocations: 20 kB / 466.4 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.043e-06/0.2855, allocations: 4 kB / 466.4 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00188/0.2874, allocations: 0.8947 MB / 467.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.2874, allocations: 4.047 kB / 467.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005085/0.288, allocations: 173.9 kB / 467.5 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004741/0.2884, allocations: 119.8 kB / 467.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003724/0.2922, allocations: 3.63 MB / 471.3 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005752/0.2928, allocations: 59.94 kB / 471.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.981e-05/0.2928, allocations: 20 kB / 471.3 MB, free: 11.57 MB / 350.1 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,secondary.count,$PRE.secondary.count,secondary.T_start,$PRE.secondary.T_start,$whenCondition1,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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0004315/0.2933, allocations: 309 kB / 471.6 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/0.2934, allocations: 59.28 kB / 471.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001907/0.2953, allocations: 0.8539 MB / 472.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.096e-06/0.2953, allocations: 8 kB / 472.6 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.2953, allocations: 0 / 472.6 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.427e-06/0.2954, allocations: 7.984 kB / 472.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003023/0.2984, allocations: 1.702 MB / 474.3 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.2984, allocations: 4.188 kB / 474.3 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006272/0.299, allocations: 143.8 kB / 474.4 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002371/0.2993, allocations: 65.67 kB / 474.5 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.297e-05/0.2994, allocations: 15.98 kB / 474.5 MB, free: 8.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001946/0.3013, allocations: 2.693 MB / 477.2 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.3013, allocations: 4.031 kB / 477.2 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0024/0.3037, allocations: 1.356 MB / 478.6 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002667/0.304, allocations: 184.3 kB / 478.7 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.333e-05/0.3041, allocations: 20 kB / 478.8 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005238/0.3047, allocations: 67.86 kB / 478.8 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.3048, allocations: 60.38 kB / 478.9 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-05/0.3048, allocations: 23.98 kB / 478.9 MB, free: 3.566 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005638/0.3054, allocations: 342.8 kB / 479.2 MB, free: 3.234 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3054, allocations: 0 / 479.2 MB, free: 3.234 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00106/0.3065, allocations: 260 kB / 479.5 MB, free: 2.98 MB / 350.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001765/0.3067, allocations: 127 kB / 479.6 MB, free: 2.848 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003037/0.3097, allocations: 1.782 MB / 481.4 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.3097, allocations: 0 / 481.4 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009768/0.3107, allocations: 0.6259 MB / 482 MB, free: 348 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008669/0.3116, allocations: 118.3 kB / 482.1 MB, free: 232 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00273/0.3144, allocations: 1.897 MB / 484 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005455/0.3149, allocations: 0.9431 MB / 485 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004646/0.3154, allocations: 156.5 kB / 485.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001652/0.3156, allocations: 47.44 kB / 485.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3156, allocations: 0 / 485.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of Templates: time 0.01684/0.3324, allocations: 9.346 MB / 494.5 MB, free: 3.781 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: