Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.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.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 103.7 kB / 16.62 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.001309/0.001309, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.413/1.413, allocations: 222.9 MB / 241.2 MB, free: 13.76 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1779/0.1779, allocations: 38.02 MB / 329.4 MB, free: 8.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 63.09 kB / 398.3 MB, free: 34.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1193, allocations: 58.06 MB / 456.3 MB, free: 8.426 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.008315/0.1277, allocations: 5.543 MB / 461.9 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004079/0.1318, allocations: 2.237 MB / 464.1 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008916/0.1327, allocations: 31.81 kB / 464.2 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001112/0.1338, allocations: 226.9 kB / 464.4 MB, free: 360 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001063/0.1349, allocations: 302.7 kB / 464.7 MB, free: 56 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009798/0.1359, allocations: 363.4 kB / 465 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001192/0.1371, allocations: 0.9126 MB / 465.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009145/0.138, allocations: 0.5278 MB / 466.5 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006104/0.1387, allocations: 342.6 kB / 466.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006089/0.1393, allocations: 366.4 kB / 467.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001556/0.1394, allocations: 68 kB / 467.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005943/0.14, allocations: 339.3 kB / 467.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002211/0.1403, allocations: 191.4 kB / 467.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004495/0.1407, allocations: 334.3 kB / 468.1 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00116/0.1419, allocations: 0.9268 MB / 469 MB, free: 11.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1419, allocations: 0 / 469 MB, free: 11.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1419, allocations: 3.938 kB / 469 MB, free: 11.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.155e-05/0.142, allocations: 0 / 469 MB, free: 11.7 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002317/0.1443, allocations: 1.034 MB / 470 MB, free: 10.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.1443, allocations: 11.89 kB / 470 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008832/0.1452, allocations: 140 kB / 470.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008734/0.1461, allocations: 0.5092 MB / 470.7 MB, free: 9.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.333e-05/0.1462, allocations: 41.38 kB / 470.7 MB, free: 9.871 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.777e-05/0.1463, allocations: 48.38 kB / 470.8 MB, free: 9.824 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001338/0.1476, allocations: 0.6826 MB / 471.5 MB, free: 9.102 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.59e-05/0.1476, allocations: 3.938 kB / 471.5 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.495e-05/0.1477, allocations: 20 kB / 471.5 MB, free: 9.078 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.06e-05/0.1478, allocations: 28.98 kB / 471.5 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001332/0.1491, allocations: 0.6011 MB / 472.1 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003707/0.1528, allocations: 2.692 MB / 474.8 MB, free: 5.621 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001316/0.1541, allocations: 0.6103 MB / 475.4 MB, free: 4.977 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004881/0.1546, allocations: 214.2 kB / 475.6 MB, free: 4.762 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.1e-05/0.1547, allocations: 8.328 kB / 475.6 MB, free: 4.754 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006193/0.1553, allocations: 297.7 kB / 475.9 MB, free: 4.441 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.064e-06/0.1553, allocations: 0 / 475.9 MB, free: 4.441 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.001796/0.1571, allocations: 0.7523 MB / 476.7 MB, free: 3.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.873e-05/0.1572, allocations: 136.5 kB / 476.8 MB, free: 3.496 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007048/0.1579, allocations: 0.4981 MB / 477.3 MB, free: 2.984 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.203e-05/0.158, allocations: 33.86 kB / 477.3 MB, free: 2.945 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002341/0.1582, allocations: 300 kB / 477.6 MB, free: 2.648 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000139/0.1584, allocations: 138 kB / 477.8 MB, free: 2.512 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000154/0.1585, allocations: 90.16 kB / 477.9 MB, free: 2.418 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.1587, allocations: 366.8 kB / 478.2 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004793/0.1592, allocations: 206.9 kB / 478.4 MB, free: 1.844 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005259/0.1597, allocations: 307.2 kB / 478.7 MB, free: 1.496 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001025/0.1608, allocations: 0.5177 MB / 479.2 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.1608, allocations: 0 / 479.2 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001721/0.1625, allocations: 0.7799 MB / 480 MB, free: 132 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.999e-05/0.1626, allocations: 33.7 kB / 480 MB, free: 92 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.1626, allocations: 3.984 kB / 480.1 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005038/0.1631, allocations: 149.4 kB / 480.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003724/0.1635, allocations: 83.89 kB / 480.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003545/0.1671, allocations: 2.66 MB / 482.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005583/0.1676, allocations: 75.39 kB / 483 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.123e-05/0.1677, allocations: 27.92 kB / 483 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007468/0.1684, allocations: 333.1 kB / 483.4 MB, free: 12.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005036/0.169, allocations: 295.2 kB / 483.7 MB, free: 12.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008956/0.1699, allocations: 0.5065 MB / 484.2 MB, free: 11.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.851e-06/0.1699, allocations: 7.938 kB / 484.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.001493/0.1714, allocations: 0.6825 MB / 484.9 MB, free: 11.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.887e-05/0.1714, allocations: 33.7 kB / 484.9 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.1714, allocations: 4 kB / 484.9 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003812/0.1718, allocations: 133 kB / 485 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003678/0.1722, allocations: 83.83 kB / 485.1 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002752/0.175, allocations: 2.454 MB / 487.6 MB, free: 8.184 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005053/0.1755, allocations: 63.64 kB / 487.6 MB, free: 8.121 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.572e-05/0.1756, allocations: 20 kB / 487.6 MB, free: 8.102 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.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 (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0002295/0.1758, allocations: 216 kB / 487.8 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.1759, allocations: 63.41 kB / 487.9 MB, free: 7.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001261/0.1772, allocations: 0.5119 MB / 488.4 MB, free: 7.301 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.994e-06/0.1772, allocations: 4 kB / 488.4 MB, free: 7.297 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1772, allocations: 0 / 488.4 MB, free: 7.297 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.1772, allocations: 7.984 kB / 488.4 MB, free: 7.289 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002078/0.1793, allocations: 1.17 MB / 489.6 MB, free: 6.059 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.1793, allocations: 3.938 kB / 489.6 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004422/0.1798, allocations: 87.88 kB / 489.7 MB, free: 5.969 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001018/0.1799, allocations: 32.83 kB / 489.7 MB, free: 5.934 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.919e-05/0.1799, allocations: 12 kB / 489.7 MB, free: 5.922 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001105/0.181, allocations: 1.45 MB / 491.2 MB, free: 4.328 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1811, allocations: 0 / 491.2 MB, free: 4.328 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001675/0.1827, allocations: 0.8448 MB / 492 MB, free: 3.457 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000215/0.183, allocations: 168.4 kB / 492.2 MB, free: 3.273 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.273e-05/0.1831, allocations: 19.92 kB / 492.2 MB, free: 3.254 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003928/0.1835, allocations: 35.95 kB / 492.2 MB, free: 3.219 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.1836, allocations: 35.95 kB / 492.3 MB, free: 3.184 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.873e-05/0.1836, allocations: 8 kB / 492.3 MB, free: 3.176 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005512/0.1842, allocations: 366.8 kB / 492.6 MB, free: 2.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1842, allocations: 0 / 492.6 MB, free: 2.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009193/0.1851, allocations: 247.3 kB / 492.9 MB, free: 2.578 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001446/0.1853, allocations: 115.3 kB / 493 MB, free: 2.457 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00217/0.1874, allocations: 1.169 MB / 494.2 MB, free: 1.238 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1875, allocations: 3.938 kB / 494.2 MB, free: 1.234 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006353/0.1881, allocations: 346.4 kB / 494.5 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006863/0.1888, allocations: 130.5 kB / 494.6 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002159/0.191, allocations: 1.447 MB / 496.1 MB, free: 15.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004835/0.1915, allocations: 0.8942 MB / 497 MB, free: 14.36 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003456/0.1918, allocations: 108.3 kB / 497.1 MB, free: 14.26 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.1919, allocations: 39.44 kB / 497.1 MB, free: 14.22 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1919, allocations: 0 / 497.1 MB, free: 14.22 MB / 382.1 MB Notification: Performance of Templates: time 0.01336/0.2053, allocations: 8.091 MB / 0.4934 GB, free: 6.18 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1)