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.001349/0.001349, allocations: 102.7 kB / 17.59 MB, free: 5.426 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.001535/0.001535, allocations: 187.3 kB / 18.52 MB, free: 4.508 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.377/1.377, allocations: 222.9 MB / 242.2 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1777/0.1777, allocations: 38.02 MB / 330.4 MB, free: 8.82 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 67.23 kB / 399.5 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09669/0.09802, allocations: 58.05 MB / 457.5 MB, free: 8.102 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.007054/0.1051, allocations: 5.612 MB / 463.1 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004014/0.1091, allocations: 2.617 MB / 465.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004599/0.1096, allocations: 23.88 kB / 465.8 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001151/0.1108, allocations: 361.4 kB / 466.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009703/0.1118, allocations: 477.7 kB / 466.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009932/0.1128, allocations: 447.1 kB / 467 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001034/0.1138, allocations: 1.061 MB / 468.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007226/0.1146, allocations: 0.563 MB / 468.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004814/0.115, allocations: 402.4 kB / 469 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005466/0.1156, allocations: 434.2 kB / 469.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.985e-05/0.1157, allocations: 72 kB / 469.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000768/0.1165, allocations: 0.495 MB / 470 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000207/0.1167, allocations: 235.3 kB / 470.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000318/0.117, allocations: 370.1 kB / 470.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001109/0.1182, allocations: 1.067 MB / 471.7 MB, free: 9.863 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1182, allocations: 3.938 kB / 471.7 MB, free: 9.859 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1182, allocations: 0 / 471.7 MB, free: 9.859 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.456e-05/0.1182, allocations: 4 kB / 471.7 MB, free: 9.855 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.001947/0.1202, allocations: 1.106 MB / 472.8 MB, free: 8.691 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.1202, allocations: 15.89 kB / 472.8 MB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001189/0.1214, allocations: 179.8 kB / 473 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000809/0.1222, allocations: 0.5287 MB / 473.5 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.542e-05/0.1223, allocations: 45.62 kB / 473.6 MB, free: 7.887 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.929e-05/0.1224, allocations: 68.27 kB / 473.6 MB, free: 7.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/0.1237, allocations: 0.7905 MB / 474.4 MB, free: 6.992 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.283e-05/0.1237, allocations: 0 / 474.4 MB, free: 6.992 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.459e-05/0.1238, allocations: 20 kB / 474.4 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.8e-05/0.1239, allocations: 37.3 kB / 474.5 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001438/0.1253, allocations: 0.735 MB / 475.2 MB, free: 6.203 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003858/0.1292, allocations: 2.911 MB / 478.1 MB, free: 3.172 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001325/0.1305, allocations: 0.5855 MB / 478.7 MB, free: 2.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006713/0.1312, allocations: 354.8 kB / 479.1 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.895e-05/0.1313, allocations: 12.42 kB / 479.1 MB, free: 2.199 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000745/0.132, allocations: 418.2 kB / 479.5 MB, free: 1.773 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 1.673e-06/0.132, allocations: 0 / 479.5 MB, free: 1.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.00429/0.1363, allocations: 2.128 MB / 481.6 MB, free: 15.56 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.672e-05/0.1364, allocations: 115.3 kB / 481.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006753/0.1371, allocations: 489.8 kB / 482.2 MB, free: 14.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.032e-05/0.1371, allocations: 37.7 kB / 482.2 MB, free: 14.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002433/0.1374, allocations: 308.5 kB / 482.5 MB, free: 14.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001678/0.1376, allocations: 197.2 kB / 482.7 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001968/0.1378, allocations: 118.3 kB / 482.9 MB, free: 14.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.1379, allocations: 362.8 kB / 483.2 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006322/0.1386, allocations: 291.3 kB / 483.5 MB, free: 13.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00066/0.1392, allocations: 402.9 kB / 483.9 MB, free: 13.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001301/0.1405, allocations: 0.7224 MB / 484.6 MB, free: 12.42 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.1406, allocations: 3.938 kB / 484.6 MB, free: 12.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002298/0.1429, allocations: 1.009 MB / 485.6 MB, free: 11.39 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.121e-05/0.1429, allocations: 37.7 kB / 485.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.221e-05/0.1429, allocations: 4 kB / 485.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007565/0.1437, allocations: 185.8 kB / 485.8 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005009/0.1442, allocations: 115.7 kB / 486 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004879/0.1491, allocations: 4.134 MB / 490.1 MB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005754/0.1497, allocations: 67.92 kB / 490.2 MB, free: 6.559 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.02e-05/0.1498, allocations: 20 kB / 490.2 MB, free: 6.539 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008089/0.1506, allocations: 445.2 kB / 490.6 MB, free: 6.098 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006272/0.1512, allocations: 391 kB / 491 MB, free: 5.676 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001206/0.1525, allocations: 0.6989 MB / 491.7 MB, free: 4.934 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.336e-06/0.1525, allocations: 0 / 491.7 MB, free: 4.934 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization_lambda0): time 0.001878/0.1544, allocations: 0.9306 MB / 492.6 MB, free: 3.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.187e-05/0.1544, allocations: 33.69 kB / 492.7 MB, free: 3.941 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.249e-06/0.1544, allocations: 4.344 kB / 492.7 MB, free: 3.938 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004971/0.1549, allocations: 169.6 kB / 492.8 MB, free: 3.766 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004826/0.1554, allocations: 119.8 kB / 492.9 MB, free: 3.648 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003652/0.1591, allocations: 3.949 MB / 496.9 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005895/0.1597, allocations: 51.94 kB / 496.9 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.253e-05/0.1598, allocations: 24 kB / 497 MB, free: 15.35 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.0002337/0.16, allocations: 218.7 kB / 497.2 MB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.1601, allocations: 67.33 kB / 497.2 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001751/0.1619, allocations: 0.815 MB / 498.1 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.176e-06/0.1619, allocations: 8 kB / 498.1 MB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.1619, allocations: 0 / 498.1 MB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.1619, allocations: 7.922 kB / 498.1 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002826/0.1648, allocations: 1.663 MB / 499.7 MB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.1648, allocations: 4 kB / 499.7 MB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006037/0.1654, allocations: 132 kB / 499.9 MB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002229/0.1656, allocations: 65.67 kB / 499.9 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.097e-05/0.1657, allocations: 19.92 kB / 500 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00201/0.1677, allocations: 2.906 MB / 0.4911 GB, free: 9.066 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.1677, allocations: 3.938 kB / 0.4911 GB, free: 9.062 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002278/0.17, allocations: 1.302 MB / 0.4923 GB, free: 7.715 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002873/0.1703, allocations: 188.3 kB / 0.4925 GB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.294e-05/0.1704, allocations: 23.92 kB / 0.4925 GB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005059/0.1709, allocations: 51.94 kB / 0.4926 GB, free: 7.438 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/0.1711, allocations: 52.48 kB / 0.4926 GB, free: 7.387 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.949e-05/0.1711, allocations: 20 kB / 0.4927 GB, free: 7.367 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005103/0.1716, allocations: 342.8 kB / 0.493 GB, free: 7.035 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.1716, allocations: 0 / 0.493 GB, free: 7.035 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001175/0.1728, allocations: 263.9 kB / 0.4932 GB, free: 6.777 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.0001792/0.173, allocations: 119.1 kB / 0.4934 GB, free: 6.648 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003267/0.1763, allocations: 1.836 MB / 0.4952 GB, free: 4.738 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.1763, allocations: 1 kB / 0.4952 GB, free: 4.738 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009665/0.1773, allocations: 0.6019 MB / 0.4957 GB, free: 4.105 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007768/0.1781, allocations: 147.5 kB / 0.4959 GB, free: 3.973 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00272/0.1808, allocations: 1.565 MB / 0.4974 GB, free: 2.359 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005521/0.1814, allocations: 0.9469 MB / 0.4983 GB, free: 1.379 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001946/0.1816, allocations: 47.44 kB / 0.4984 GB, free: 1.332 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1816, allocations: 0 / 0.4984 GB, free: 1.332 MB / 382.1 MB Notification: Performance of Templates: time 0.01933/0.2009, allocations: 13.98 MB / 0.512 GB, free: 3.348 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)