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.001114/0.001114, allocations: 109.5 kB / 17.68 MB, free: 5.332 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.001064/0.001064, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.347/1.347, allocations: 205.1 MB / 224.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.176/0.176, allocations: 37.99 MB / 309.8 MB, free: 5.969 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.00143/0.00143, allocations: 75.19 kB / 376.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2322/0.2336, allocations: 55.24 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.00537/0.239, allocations: 5.641 MB / 437.7 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002888/0.2419, allocations: 2.657 MB / 440.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003371/0.2423, allocations: 27.88 kB / 440.3 MB, free: 11.15 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009211/0.2432, allocations: 358.1 kB / 440.7 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007382/0.244, allocations: 469.7 kB / 441.1 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007479/0.2447, allocations: 457.4 kB / 441.6 MB, free: 9.891 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007179/0.2455, allocations: 1.064 MB / 442.7 MB, free: 8.82 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000561/0.2461, allocations: 0.5668 MB / 443.2 MB, free: 8.25 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003525/0.2464, allocations: 414.3 kB / 443.6 MB, free: 7.844 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003746/0.2468, allocations: 422.2 kB / 444 MB, free: 7.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.473e-05/0.2469, allocations: 76 kB / 444.1 MB, free: 7.355 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005558/0.2474, allocations: 0.5028 MB / 444.6 MB, free: 6.852 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001541/0.2476, allocations: 227.3 kB / 444.8 MB, free: 6.629 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002478/0.2479, allocations: 382 kB / 445.2 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007623/0.2486, allocations: 1.071 MB / 446.3 MB, free: 5.18 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2486, allocations: 4 kB / 446.3 MB, free: 5.176 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2487, allocations: 7.938 kB / 446.3 MB, free: 5.168 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.2487, allocations: 0 / 446.3 MB, free: 5.168 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.001703/0.2504, allocations: 1.11 MB / 447.4 MB, free: 4.004 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.2504, allocations: 11.89 kB / 447.4 MB, free: 3.992 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001124/0.2515, allocations: 187.8 kB / 447.6 MB, free: 3.809 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008477/0.2524, allocations: 0.5754 MB / 448.2 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.323e-05/0.2525, allocations: 41.69 kB / 448.2 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.283e-05/0.2526, allocations: 60.28 kB / 448.3 MB, free: 3.094 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001114/0.2537, allocations: 0.7866 MB / 449.1 MB, free: 2.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.2537, allocations: 3.938 kB / 449.1 MB, free: 2.266 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.402e-05/0.2538, allocations: 27.98 kB / 449.1 MB, free: 2.238 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.803e-05/0.2538, allocations: 37.3 kB / 449.1 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00118/0.255, allocations: 0.7311 MB / 449.9 MB, free: 1.469 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003564/0.2586, allocations: 2.888 MB / 452.7 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001323/0.2599, allocations: 0.5884 MB / 453.3 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006359/0.2606, allocations: 354.9 kB / 453.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.08e-05/0.2606, allocations: 20.34 kB / 453.7 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007339/0.2614, allocations: 418.2 kB / 454.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 1.834e-06/0.2614, allocations: 4 kB / 454.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=58): time 0.00403/0.2654, allocations: 2.113 MB / 456.2 MB, free: 10.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.412e-05/0.2655, allocations: 119.4 kB / 456.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006338/0.2661, allocations: 482.1 kB / 456.8 MB, free: 10.24 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.391e-05/0.2662, allocations: 33.7 kB / 456.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002225/0.2664, allocations: 316.4 kB / 457.2 MB, free: 9.887 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001498/0.2666, allocations: 201.1 kB / 457.4 MB, free: 9.688 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001825/0.2668, allocations: 114.2 kB / 457.5 MB, free: 9.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.2669, allocations: 374.7 kB / 457.8 MB, free: 9.195 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005746/0.2675, allocations: 291.3 kB / 458.1 MB, free: 8.906 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006562/0.2682, allocations: 403 kB / 458.5 MB, free: 8.473 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001202/0.2694, allocations: 0.7184 MB / 459.2 MB, free: 7.711 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.2694, allocations: 3.938 kB / 459.2 MB, free: 7.707 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002028/0.2714, allocations: 1.013 MB / 460.2 MB, free: 6.672 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.633e-05/0.2715, allocations: 33.7 kB / 460.3 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.2715, allocations: 0 / 460.3 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006158/0.2721, allocations: 192.1 kB / 460.5 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000484/0.2726, allocations: 123.7 kB / 460.6 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004266/0.2769, allocations: 4.131 MB / 464.7 MB, free: 1.906 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005221/0.2774, allocations: 59.94 kB / 464.8 MB, free: 1.848 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.585e-05/0.2775, allocations: 27.98 kB / 464.8 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000815/0.2783, allocations: 449.2 kB / 465.2 MB, free: 1.375 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007045/0.279, allocations: 390.9 kB / 465.6 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001133/0.2802, allocations: 0.6989 MB / 466.3 MB, free: 212 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.334e-06/0.2802, allocations: 0 / 466.3 MB, free: 212 kB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization_lambda0): time 0.001737/0.282, allocations: 0.9229 MB / 467.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.314e-05/0.282, allocations: 37.7 kB / 467.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.282, allocations: 8.281 kB / 467.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004975/0.2825, allocations: 173.2 kB / 467.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004637/0.283, allocations: 107.9 kB / 467.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003605/0.2866, allocations: 3.943 MB / 471.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005163/0.2871, allocations: 51.92 kB / 471.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.802e-05/0.2872, allocations: 24 kB / 471.6 MB, free: 10.64 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.0001934/0.2874, allocations: 216.2 kB / 471.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.213e-05/0.2875, allocations: 63.19 kB / 471.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00159/0.2891, allocations: 0.815 MB / 472.7 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.944e-06/0.2891, allocations: 8 kB / 472.7 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.2891, allocations: 0 / 472.7 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.2891, allocations: 7.922 kB / 472.7 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002548/0.2917, allocations: 1.675 MB / 474.4 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.2917, allocations: 0 / 474.4 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006033/0.2923, allocations: 136 kB / 474.5 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002148/0.2925, allocations: 57.67 kB / 474.5 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.618e-05/0.2926, allocations: 20 kB / 474.6 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002051/0.2946, allocations: 2.902 MB / 477.5 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.2947, allocations: 7.969 kB / 477.5 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002212/0.2969, allocations: 1.295 MB / 478.8 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002899/0.2972, allocations: 188.3 kB / 479 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.819e-05/0.2973, allocations: 20.22 kB / 479 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004675/0.2977, allocations: 51.94 kB / 479 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001269/0.2979, allocations: 60.42 kB / 479.1 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.364e-05/0.2979, allocations: 23.98 kB / 479.1 MB, free: 2.648 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004824/0.2984, allocations: 346.8 kB / 479.4 MB, free: 2.312 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2984, allocations: 0 / 479.4 MB, free: 2.312 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001013/0.2995, allocations: 263.9 kB / 479.7 MB, free: 2.055 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.0001584/0.2996, allocations: 119.1 kB / 479.8 MB, free: 1.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002877/0.3025, allocations: 1.743 MB / 481.6 MB, free: 116 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3025, allocations: 4 kB / 481.6 MB, free: 112 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000961/0.3035, allocations: 0.6104 MB / 482.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007001/0.3042, allocations: 140.8 kB / 482.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002424/0.3066, allocations: 1.523 MB / 483.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005233/0.3072, allocations: 0.9431 MB / 484.8 MB, free: 12.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003962/0.3076, allocations: 148.5 kB / 484.9 MB, free: 12.65 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001539/0.3077, allocations: 47.44 kB / 485 MB, free: 12.61 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3078, allocations: 0 / 485 MB, free: 12.61 MB / 366.1 MB Notification: Performance of Templates: time 0.01683/0.3246, allocations: 10.09 MB / 495.1 MB, free: 2.543 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile (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 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)