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.001069/0.001069, allocations: 115 kB / 16.63 MB, free: 6.812 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.001092/0.001092, allocations: 186 kB / 17.55 MB, free: 5.934 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.318/1.318, allocations: 222.9 MB / 241.2 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1751/0.1751, allocations: 38.02 MB / 329.4 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 62.42 kB / 398.3 MB, free: 34.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1193, allocations: 58.06 MB / 456.3 MB, free: 8.371 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.008576/0.1279, allocations: 6.237 MB / 462.6 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004627/0.1326, allocations: 2.762 MB / 465.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007357/0.1333, allocations: 35.81 kB / 465.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001232/0.1346, allocations: 338.2 kB / 465.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001062/0.1357, allocations: 418.2 kB / 466.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001064/0.1367, allocations: 415.4 kB / 466.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001003/0.1378, allocations: 1.068 MB / 467.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000775/0.1385, allocations: 0.5824 MB / 468.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000493/0.139, allocations: 410.4 kB / 468.6 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005042/0.1396, allocations: 442.2 kB / 469 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001058/0.1397, allocations: 76 kB / 469.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007549/0.1404, allocations: 0.4989 MB / 469.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000242/0.1407, allocations: 243.3 kB / 469.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003228/0.141, allocations: 374.1 kB / 470.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001085/0.1421, allocations: 1.098 MB / 471.3 MB, free: 9.363 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.1421, allocations: 3.938 kB / 471.3 MB, free: 9.359 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1421, allocations: 0 / 471.3 MB, free: 9.359 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.1422, allocations: 0 / 471.3 MB, free: 9.359 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.00209/0.1443, allocations: 1.102 MB / 472.4 MB, free: 8.199 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.1443, allocations: 15.89 kB / 472.4 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001217/0.1455, allocations: 187.7 kB / 472.6 MB, free: 8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000869/0.1464, allocations: 0.5365 MB / 473.1 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.562e-05/0.1465, allocations: 45.69 kB / 473.2 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/0.1466, allocations: 56.38 kB / 473.2 MB, free: 7.324 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001361/0.1479, allocations: 0.7866 MB / 474 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.326e-05/0.148, allocations: 0 / 474 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.185e-05/0.148, allocations: 24 kB / 474 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.594e-05/0.1481, allocations: 33.3 kB / 474.1 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001412/0.1495, allocations: 0.735 MB / 474.8 MB, free: 5.711 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003969/0.1535, allocations: 2.919 MB / 477.7 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001294/0.1548, allocations: 0.591 MB / 478.3 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000655/0.1555, allocations: 350.1 kB / 478.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.529e-05/0.1555, allocations: 12.44 kB / 478.7 MB, free: 1.703 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007771/0.1563, allocations: 418.2 kB / 479.1 MB, free: 1.277 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 1.994e-06/0.1563, allocations: 3.938 kB / 479.1 MB, free: 1.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.004161/0.1605, allocations: 2.117 MB / 481.2 MB, free: 15.08 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.68e-05/0.1606, allocations: 115.4 kB / 481.3 MB, free: 14.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006438/0.1612, allocations: 489.9 kB / 481.8 MB, free: 14.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.965e-05/0.1613, allocations: 37.64 kB / 481.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000227/0.1615, allocations: 316.5 kB / 482.1 MB, free: 14.1 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001547/0.1617, allocations: 193.1 kB / 482.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00019/0.1619, allocations: 110.3 kB / 482.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.1621, allocations: 370.8 kB / 482.8 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005903/0.1627, allocations: 291.3 kB / 483.1 MB, free: 13.13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006508/0.1633, allocations: 402.9 kB / 483.5 MB, free: 12.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001243/0.1646, allocations: 0.7262 MB / 484.2 MB, free: 11.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.1646, allocations: 3.938 kB / 484.2 MB, free: 11.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002077/0.1667, allocations: 1.005 MB / 485.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.763e-05/0.1667, allocations: 37.88 kB / 485.2 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.1667, allocations: 4 kB / 485.2 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000616/0.1674, allocations: 189.5 kB / 485.4 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004771/0.1678, allocations: 115.8 kB / 485.5 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004369/0.1722, allocations: 4.126 MB / 489.7 MB, free: 6.141 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005581/0.1728, allocations: 55.92 kB / 489.7 MB, free: 6.086 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.194e-05/0.1729, allocations: 24 kB / 489.7 MB, free: 6.062 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000747/0.1736, allocations: 449.3 kB / 490.2 MB, free: 5.617 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000594/0.1742, allocations: 386.9 kB / 490.6 MB, free: 5.203 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001169/0.1754, allocations: 0.7067 MB / 491.3 MB, free: 4.449 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.637e-06/0.1754, allocations: 3.984 kB / 491.3 MB, free: 4.445 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization_lambda0): time 0.001758/0.1772, allocations: 0.9307 MB / 492.2 MB, free: 3.492 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.58e-05/0.1772, allocations: 41.69 kB / 492.2 MB, free: 3.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.276e-06/0.1772, allocations: 0 / 492.2 MB, free: 3.445 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004649/0.1777, allocations: 169.9 kB / 492.4 MB, free: 3.273 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004695/0.1782, allocations: 119.8 kB / 492.5 MB, free: 3.156 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003828/0.182, allocations: 3.941 MB / 496.5 MB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005435/0.1826, allocations: 55.92 kB / 496.5 MB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.853e-05/0.1826, allocations: 32.05 kB / 496.5 MB, free: 14.86 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.000238/0.1829, allocations: 222.6 kB / 496.8 MB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.907e-05/0.183, allocations: 59.28 kB / 496.8 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001695/0.1847, allocations: 0.8149 MB / 497.6 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.518e-06/0.1847, allocations: 8 kB / 497.6 MB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.1847, allocations: 0 / 497.6 MB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.1847, allocations: 7.922 kB / 497.6 MB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00282/0.1876, allocations: 1.667 MB / 499.3 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.1876, allocations: 4 kB / 499.3 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005898/0.1882, allocations: 127.8 kB / 499.4 MB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002349/0.1884, allocations: 65.86 kB / 499.5 MB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.518e-05/0.1885, allocations: 15.98 kB / 499.5 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002139/0.1906, allocations: 2.902 MB / 0.4907 GB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.1906, allocations: 3.938 kB / 0.4907 GB, free: 8.582 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002274/0.1929, allocations: 1.302 MB / 0.4919 GB, free: 7.234 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002587/0.1932, allocations: 196.3 kB / 0.4921 GB, free: 7.023 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.625e-05/0.1933, allocations: 12 kB / 0.4921 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004765/0.1937, allocations: 55.94 kB / 0.4922 GB, free: 6.957 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001419/0.1939, allocations: 56.48 kB / 0.4922 GB, free: 6.902 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.243e-05/0.194, allocations: 16 kB / 0.4922 GB, free: 6.887 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005324/0.1945, allocations: 342.8 kB / 0.4926 GB, free: 6.555 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1945, allocations: 0 / 0.4926 GB, free: 6.555 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001096/0.1956, allocations: 259.9 kB / 0.4928 GB, free: 6.301 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.0001936/0.1958, allocations: 127.1 kB / 0.4929 GB, free: 6.164 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003387/0.1992, allocations: 1.84 MB / 0.4947 GB, free: 4.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.1992, allocations: 0 / 0.4947 GB, free: 4.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009567/0.2002, allocations: 0.6064 MB / 0.4953 GB, free: 3.617 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007712/0.201, allocations: 139 kB / 0.4955 GB, free: 3.488 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002739/0.2037, allocations: 1.78 MB / 0.4972 GB, free: 1.664 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005565/0.2043, allocations: 0.9469 MB / 0.4981 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004954/0.2048, allocations: 148.5 kB / 0.4983 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001592/0.205, allocations: 51.42 kB / 0.4983 GB, free: 496 kB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.205, allocations: 0 / 0.4983 GB, free: 496 kB / 382.1 MB Notification: Performance of Templates: time 0.0159/0.2209, allocations: 9.981 MB / 0.5081 GB, free: 6.559 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)