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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001192/0.001192, allocations: 102.8 kB / 16.5 MB, free: 6.707 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.001374/0.001374, allocations: 190.6 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 222.9 MB / 241.1 MB, free: 13.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1788/0.1788, allocations: 38.01 MB / 329.3 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 62.97 kB / 398.1 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1354, allocations: 58.06 MB / 456.1 MB, free: 8.473 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.01436/0.1498, allocations: 6.233 MB / 462.4 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009084/0.159, allocations: 2.797 MB / 465.2 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001492/0.1605, allocations: 35.81 kB / 465.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00176/0.1624, allocations: 326.5 kB / 465.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001951/0.1643, allocations: 434.2 kB / 466 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002014/0.1664, allocations: 414.7 kB / 466.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002296/0.1687, allocations: 1.26 MB / 467.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001356/0.1701, allocations: 491.2 kB / 468.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008669/0.1709, allocations: 354.3 kB / 468.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009037/0.1719, allocations: 410.3 kB / 468.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001705/0.1721, allocations: 40 kB / 468.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001444/0.1735, allocations: 0.5768 MB / 469.5 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003276/0.1739, allocations: 199.3 kB / 469.7 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000596/0.1745, allocations: 346 kB / 470 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001879/0.1764, allocations: 1.063 MB / 471.1 MB, free: 9.496 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1764, allocations: 3.938 kB / 471.1 MB, free: 9.492 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1764, allocations: 0 / 471.1 MB, free: 9.492 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.773e-05/0.1764, allocations: 0 / 471.1 MB, free: 9.492 MB / 350.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.003802/0.1803, allocations: 1.102 MB / 472.2 MB, free: 8.332 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.1803, allocations: 8.031 kB / 472.2 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002382/0.1827, allocations: 191.7 kB / 472.4 MB, free: 8.137 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001482/0.1842, allocations: 0.5287 MB / 472.9 MB, free: 7.566 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.447e-05/0.1843, allocations: 49.66 kB / 472.9 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000167/0.1845, allocations: 56.38 kB / 473 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002333/0.1868, allocations: 0.7905 MB / 473.8 MB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.931e-05/0.1869, allocations: 3.984 kB / 473.8 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001145/0.187, allocations: 24 kB / 473.8 MB, free: 6.609 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-05/0.1871, allocations: 37.3 kB / 473.8 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002726/0.1899, allocations: 0.7233 MB / 474.6 MB, free: 5.852 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007376/0.1973, allocations: 2.915 MB / 477.5 MB, free: 2.816 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002376/0.1997, allocations: 0.587 MB / 478.1 MB, free: 2.211 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001124/0.2008, allocations: 361.9 kB / 478.4 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.713e-05/0.2009, allocations: 8.422 kB / 478.4 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001328/0.2023, allocations: 430.2 kB / 478.9 MB, free: 1.406 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 3.587e-06/0.2023, allocations: 4 kB / 478.9 MB, free: 1.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.007736/0.21, allocations: 2.113 MB / 481 MB, free: 15.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/0.2102, allocations: 115.4 kB / 481.1 MB, free: 15.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00142/0.2116, allocations: 489.9 kB / 481.6 MB, free: 14.58 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.377e-05/0.2118, allocations: 33.7 kB / 481.6 MB, free: 14.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004212/0.2122, allocations: 304.5 kB / 481.9 MB, free: 14.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003094/0.2125, allocations: 205.1 kB / 482.1 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003441/0.2129, allocations: 114.4 kB / 482.2 MB, free: 13.92 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000224/0.2131, allocations: 362.8 kB / 482.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001091/0.2142, allocations: 291.3 kB / 482.8 MB, free: 13.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001264/0.2155, allocations: 410.9 kB / 483.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002224/0.2178, allocations: 0.7184 MB / 484 MB, free: 12.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.02e-05/0.2178, allocations: 7.922 kB / 484 MB, free: 12.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.003988/0.2218, allocations: 1.009 MB / 485 MB, free: 11.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.235e-05/0.2219, allocations: 29.7 kB / 485 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.878e-05/0.2219, allocations: 7.938 kB / 485 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001136/0.2231, allocations: 185.8 kB / 485.2 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008573/0.2239, allocations: 115.8 kB / 485.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00782/0.2318, allocations: 3.801 MB / 489.1 MB, free: 6.613 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001158/0.233, allocations: 52 kB / 489.2 MB, free: 6.562 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001626/0.2332, allocations: 31.98 kB / 489.2 MB, free: 6.531 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001531/0.2347, allocations: 445.2 kB / 489.6 MB, free: 6.09 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001142/0.2359, allocations: 390.9 kB / 490 MB, free: 5.668 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002271/0.2382, allocations: 0.6989 MB / 490.7 MB, free: 4.922 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.768e-06/0.2382, allocations: 0 / 490.7 MB, free: 4.922 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization_lambda0): time 0.003465/0.2417, allocations: 0.9385 MB / 491.6 MB, free: 3.961 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.34e-05/0.2418, allocations: 29.7 kB / 491.7 MB, free: 3.926 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.2418, allocations: 4 kB / 491.7 MB, free: 3.922 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009705/0.2428, allocations: 169.8 kB / 491.8 MB, free: 3.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009006/0.2437, allocations: 119.8 kB / 492 MB, free: 3.633 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006994/0.2507, allocations: 3.633 MB / 495.6 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001187/0.252, allocations: 60 kB / 495.7 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001437/0.2522, allocations: 23.98 kB / 495.7 MB, free: 15.65 MB / 382.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.0003934/0.2526, allocations: 216.1 kB / 495.9 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003349/0.2529, allocations: 59.28 kB / 495.9 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003217/0.2562, allocations: 0.8188 MB / 496.8 MB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.687e-05/0.2562, allocations: 8 kB / 496.8 MB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.844e-06/0.2562, allocations: 0 / 496.8 MB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.703e-05/0.2563, allocations: 7.922 kB / 496.8 MB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005459/0.2617, allocations: 1.675 MB / 498.5 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.146e-05/0.2618, allocations: 4 kB / 498.5 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001116/0.2629, allocations: 127.8 kB / 498.6 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004681/0.2634, allocations: 69.86 kB / 498.7 MB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.823e-05/0.2635, allocations: 12 kB / 498.7 MB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003711/0.2672, allocations: 2.689 MB / 0.4896 GB, free: 9.598 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.564e-06/0.2673, allocations: 4.188 kB / 0.4896 GB, free: 9.594 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004119/0.2714, allocations: 1.305 MB / 0.4909 GB, free: 8.242 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005051/0.2719, allocations: 188.4 kB / 0.4911 GB, free: 8.039 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001778/0.2721, allocations: 16 kB / 0.4911 GB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009303/0.2731, allocations: 55.92 kB / 0.4911 GB, free: 7.969 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002464/0.2733, allocations: 52.44 kB / 0.4912 GB, free: 7.918 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.579e-05/0.2734, allocations: 23.98 kB / 0.4912 GB, free: 7.895 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001061/0.2745, allocations: 338.8 kB / 0.4915 GB, free: 7.566 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.2745, allocations: 0 / 0.4915 GB, free: 7.566 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002326/0.2769, allocations: 268 kB / 0.4918 GB, free: 7.305 MB / 382.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.0003101/0.2772, allocations: 119.3 kB / 0.4919 GB, free: 7.176 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005228/0.2824, allocations: 1.742 MB / 0.4936 GB, free: 5.359 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.122e-05/0.2825, allocations: 4 kB / 0.4936 GB, free: 5.355 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001903/0.2844, allocations: 0.6064 MB / 0.4942 GB, free: 4.723 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001549/0.286, allocations: 125.8 kB / 0.4943 GB, free: 4.602 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005215/0.2912, allocations: 1.781 MB / 0.4961 GB, free: 2.777 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001055/0.2923, allocations: 0.947 MB / 0.497 GB, free: 1.801 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00105/0.2934, allocations: 156.5 kB / 0.4971 GB, free: 1.648 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003049/0.2937, allocations: 47.42 kB / 0.4972 GB, free: 1.602 MB / 382.1 MB Notification: Performance of SimCode: time 7.42e-07/0.2937, allocations: 0 / 0.4972 GB, free: 1.602 MB / 382.1 MB Notification: Performance of Templates: time 0.03072/0.3244, allocations: 9.499 MB / 0.5064 GB, free: 8.16 MB / 398.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 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)