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.001029/0.001029, allocations: 101.2 kB / 16.31 MB, free: 5.586 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.001202/0.001202, allocations: 182.4 kB / 17.19 MB, free: 5.523 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.541/1.541, allocations: 205.4 MB / 223.3 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1634/0.1634, allocations: 38.04 MB / 309.7 MB, free: 6.121 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.0005658/0.000566, allocations: 16 kB / 376.5 MB, free: 3.203 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.2746, allocations: 56.32 MB / 432.8 MB, free: 18.86 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.005086/0.2797, allocations: 5.344 MB / 438.1 MB, free: 13.49 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003621/0.2834, allocations: 2.632 MB / 440.8 MB, free: 10.85 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007445/0.2842, allocations: 39.75 kB / 440.8 MB, free: 10.81 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005735/0.2848, allocations: 111.1 kB / 440.9 MB, free: 10.7 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001087/0.2859, allocations: 398.7 kB / 441.3 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001015/0.2869, allocations: 360.9 kB / 441.7 MB, free: 9.961 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007214/0.2876, allocations: 0.578 MB / 442.2 MB, free: 9.379 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009144/0.2886, allocations: 0.6404 MB / 442.9 MB, free: 8.707 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004057/0.289, allocations: 302.8 kB / 443.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003147/0.2893, allocations: 286.7 kB / 443.5 MB, free: 8.129 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.295e-05/0.2894, allocations: 28 kB / 443.5 MB, free: 8.102 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004761/0.2898, allocations: 247.5 kB / 443.7 MB, free: 7.859 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001254/0.29, allocations: 171.5 kB / 443.9 MB, free: 7.691 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.2901, allocations: 145.3 kB / 444 MB, free: 7.543 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005914/0.2907, allocations: 0.7871 MB / 444.8 MB, free: 6.754 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.2907, allocations: 0 / 444.8 MB, free: 6.754 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.2907, allocations: 0 / 444.8 MB, free: 6.754 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.2907, allocations: 0 / 444.8 MB, free: 6.754 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.001759/0.2925, allocations: 1.004 MB / 445.8 MB, free: 5.691 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.2925, allocations: 12.03 kB / 445.8 MB, free: 5.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001216/0.2938, allocations: 198.9 kB / 446 MB, free: 5.484 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007722/0.2946, allocations: 0.5122 MB / 446.5 MB, free: 4.934 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.687e-05/0.2946, allocations: 53.3 kB / 446.6 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.436e-05/0.2947, allocations: 56 kB / 446.6 MB, free: 4.828 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.2958, allocations: 0.7903 MB / 447.4 MB, free: 4 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.42e-05/0.2959, allocations: 4 kB / 447.4 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.719e-05/0.2959, allocations: 20 kB / 447.5 MB, free: 3.977 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.187e-05/0.296, allocations: 41.25 kB / 447.5 MB, free: 3.934 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001236/0.2972, allocations: 0.7623 MB / 448.3 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00345/0.3007, allocations: 2.931 MB / 451.2 MB, free: 124 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001374/0.3021, allocations: 0.6159 MB / 451.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.773e-05/0.3022, allocations: 12.42 kB / 451.8 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008141/0.303, allocations: 438.2 kB / 452.3 MB, free: 15.03 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 4.718e-06/0.303, allocations: 3.984 kB / 452.3 MB, free: 15.03 MB / 334.1 MB Notification: Performance of matching and sorting (n=58): time 0.004491/0.3075, allocations: 2.207 MB / 454.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.148e-05/0.3076, allocations: 119.3 kB / 454.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006798/0.3083, allocations: 489.9 kB / 455.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.265e-05/0.3084, allocations: 37.7 kB / 455.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002536/0.3086, allocations: 312.5 kB / 455.4 MB, free: 11.75 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001859/0.3088, allocations: 197.2 kB / 455.6 MB, free: 11.56 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.5e-05/0.3088, allocations: 12 kB / 455.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.309, allocations: 374.7 kB / 456 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006032/0.3096, allocations: 301.1 kB / 456.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006748/0.3103, allocations: 410.1 kB / 456.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007324/0.3111, allocations: 375.8 kB / 457 MB, free: 10.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.3111, allocations: 4 kB / 457 MB, free: 10.06 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002171/0.3133, allocations: 1.052 MB / 458.1 MB, free: 8.988 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004943/0.3138, allocations: 1.082 MB / 459.2 MB, free: 7.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.3138, allocations: 0 / 459.2 MB, free: 7.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007183/0.3145, allocations: 219.9 kB / 459.4 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005031/0.315, allocations: 123.8 kB / 459.5 MB, free: 7.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004549/0.3196, allocations: 3.903 MB / 463.4 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006109/0.3202, allocations: 72.02 kB / 463.5 MB, free: 3.242 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.908e-05/0.3203, allocations: 24 kB / 463.5 MB, free: 3.219 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.768e-06/0.3203, allocations: 4 kB / 463.5 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001741/0.322, allocations: 0.8829 MB / 464.4 MB, free: 2.316 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.3221, allocations: 4 kB / 464.4 MB, free: 2.312 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005743/0.3226, allocations: 169.8 kB / 464.6 MB, free: 2.141 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004923/0.3232, allocations: 123.8 kB / 464.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003633/0.3268, allocations: 3.658 MB / 468.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006079/0.3274, allocations: 67.95 kB / 468.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.545e-05/0.3275, allocations: 20 kB / 468.4 MB, free: 14.01 MB / 350.1 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.0004854/0.328, allocations: 305.5 kB / 468.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.095e-05/0.3281, allocations: 67.23 kB / 468.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001747/0.3298, allocations: 0.8462 MB / 469.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.3299, allocations: 8 kB / 469.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.3299, allocations: 4 kB / 469.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.3299, allocations: 3.984 kB / 469.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002733/0.3326, allocations: 1.706 MB / 471.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/0.3327, allocations: 0 / 471.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006035/0.3333, allocations: 144 kB / 471.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002293/0.3335, allocations: 65.67 kB / 471.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.316e-05/0.3336, allocations: 12 kB / 471.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002117/0.3357, allocations: 2.705 MB / 474.3 MB, free: 7.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.3357, allocations: 7.969 kB / 474.3 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00236/0.3381, allocations: 1.427 MB / 475.7 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002902/0.3384, allocations: 188.7 kB / 475.9 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.03e-05/0.3385, allocations: 19.98 kB / 475.9 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004818/0.339, allocations: 67.89 kB / 476 MB, free: 5.957 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.3391, allocations: 60.42 kB / 476 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.642e-05/0.3392, allocations: 23.98 kB / 476.1 MB, free: 5.875 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004882/0.3396, allocations: 338.8 kB / 476.4 MB, free: 5.547 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3397, allocations: 4 kB / 476.4 MB, free: 5.543 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001057/0.3407, allocations: 260 kB / 476.7 MB, free: 5.289 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 (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.0001654/0.3409, allocations: 122.8 kB / 476.8 MB, free: 5.164 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0029/0.3438, allocations: 1.778 MB / 478.5 MB, free: 3.309 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.3438, allocations: 0 / 478.5 MB, free: 3.309 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009506/0.3448, allocations: 0.6258 MB / 479.2 MB, free: 2.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005968/0.3454, allocations: 113.3 kB / 479.3 MB, free: 2.555 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002621/0.348, allocations: 1.815 MB / 481.1 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005379/0.3486, allocations: 0.9586 MB / 482.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005394/0.3491, allocations: 148.5 kB / 482.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001537/0.3493, allocations: 51.42 kB / 482.3 MB, free: 15.51 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3493, allocations: 4 kB / 482.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of Templates: time 0.01643/0.3657, allocations: 9.077 MB / 491.3 MB, free: 6.445 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: