Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.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.LoadDispatcherTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest") translateModel(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007469/0.0007469, allocations: 87.94 kB / 16.65 MB, free: 6.172 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.0007854/0.0007853, allocations: 180.9 kB / 17.56 MB, free: 5.852 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.385/1.385, allocations: 223.3 MB / 241.6 MB, free: 192 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.177/0.177, allocations: 38.07 MB / 330.8 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003172/0.0003175, allocations: 12.73 kB / 400.7 MB, free: 34.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1262, allocations: 59.16 MB / 459.9 MB, free: 7.047 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest): time 0.006119/0.1324, allocations: 3.651 MB / 463.5 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003658/0.1361, allocations: 1.485 MB / 465 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006804/0.1368, allocations: 15.88 kB / 465 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005258/0.1374, allocations: 71.48 kB / 465.1 MB, free: 1.797 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006928/0.1381, allocations: 135.2 kB / 465.2 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001025/0.1391, allocations: 330.2 kB / 465.5 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008811/0.14, allocations: 0.6867 MB / 466.2 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004068/0.1404, allocations: 215.4 kB / 466.4 MB, free: 452 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005181/0.141, allocations: 214.9 kB / 466.7 MB, free: 236 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003321/0.1413, allocations: 226.8 kB / 466.9 MB, free: 8 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.929e-05/0.1414, allocations: 20.05 kB / 466.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002042/0.1417, allocations: 71.92 kB / 467 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000128/0.1418, allocations: 111.5 kB / 467.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002844/0.1421, allocations: 260.1 kB / 467.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007299/0.1428, allocations: 0.7395 MB / 468.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.836e-06/0.1428, allocations: 0 / 468.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1428, allocations: 0 / 468.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.566e-05/0.1429, allocations: 0 / 468.1 MB, free: 14.8 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: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.001702/0.1446, allocations: 0.9164 MB / 469 MB, free: 13.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.1446, allocations: 8.031 kB / 469 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001105/0.1447, allocations: 72.03 kB / 469.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006876/0.1454, allocations: 0.5141 MB / 469.6 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.087e-05/0.1455, allocations: 25.38 kB / 469.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.195e-05/0.1456, allocations: 40.12 kB / 469.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001196/0.1468, allocations: 0.577 MB / 470.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.1468, allocations: 4 kB / 470.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.946e-05/0.1468, allocations: 19.98 kB / 470.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.004e-05/0.1469, allocations: 8 kB / 470.2 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001478/0.1483, allocations: 0.5746 MB / 470.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002417/0.1508, allocations: 2.099 MB / 472.9 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001786/0.1526, allocations: 0.6508 MB / 473.6 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006995/0.1533, allocations: 263.3 kB / 473.8 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.753e-05/0.1533, allocations: 11.97 kB / 473.8 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009369/0.1543, allocations: 390.2 kB / 474.2 MB, free: 8.328 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.874e-06/0.1543, allocations: 0 / 474.2 MB, free: 8.328 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.00232/0.1566, allocations: 0.8357 MB / 475.1 MB, free: 7.488 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.1568, allocations: 191.9 kB / 475.2 MB, free: 7.258 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000608/0.1574, allocations: 0.499 MB / 475.7 MB, free: 6.746 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.386e-05/0.1574, allocations: 37.7 kB / 475.8 MB, free: 6.703 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002208/0.1577, allocations: 276.1 kB / 476.1 MB, free: 6.426 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001167/0.1578, allocations: 122.4 kB / 476.2 MB, free: 6.305 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.631e-05/0.1579, allocations: 37.7 kB / 476.2 MB, free: 6.262 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.158, allocations: 374.8 kB / 476.6 MB, free: 5.887 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007021/0.1587, allocations: 244.7 kB / 476.8 MB, free: 5.645 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007886/0.1595, allocations: 369.9 kB / 477.2 MB, free: 5.234 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001428/0.161, allocations: 0.644 MB / 477.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.219e-06/0.161, allocations: 7.875 kB / 477.8 MB, free: 4.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.00175/0.1628, allocations: 0.7684 MB / 478.6 MB, free: 3.746 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001582/0.1629, allocations: 241.9 kB / 478.8 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.1629, allocations: 4 kB / 478.8 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.163, allocations: 4 kB / 478.8 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005734/0.1635, allocations: 119.9 kB / 479 MB, free: 3.328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.58e-05/0.1636, allocations: 11.94 kB / 479 MB, free: 3.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004966/0.1641, allocations: 95.47 kB / 479.1 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.325e-05/0.1641, allocations: 24 kB / 479.1 MB, free: 3.199 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.127e-06/0.1641, allocations: 4 kB / 479.1 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001557/0.1657, allocations: 0.6786 MB / 479.8 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.329e-06/0.1657, allocations: 7.938 kB / 479.8 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.624e-06/0.1657, allocations: 7.938 kB / 479.8 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004551/0.1662, allocations: 116 kB / 479.9 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.1662, allocations: 8 kB / 479.9 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004457/0.1667, allocations: 87.53 kB / 480 MB, free: 2.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.885e-05/0.1667, allocations: 20 kB / 480 MB, free: 2.262 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 17 ($PRE.loadDispatcher.data.nextTimeEvent,$whenCondition2,loadDispatcher.hydroDaily.count,$PRE.loadDispatcher.hydroDaily.count,loadDispatcher.hydroDaily.T_start,$PRE.loadDispatcher.hydroDaily.T_start,loadDispatcher.data.nextTimeEventScaled,$PRE.loadDispatcher.data.nextTimeEventScaled,loadDispatcher.data.nextTimeEvent,$whenCondition3,frequency.count,$PRE.frequency.count,frequency.T_start,$PRE.frequency.T_start,$whenCondition1,system.initime,loadDispatcher.secondaryControl.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003509/0.1671, allocations: 279.3 kB / 480.3 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.842e-05/0.1672, allocations: 63.27 kB / 480.3 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001528/0.1673, allocations: 68.53 kB / 480.4 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.543e-06/0.1673, allocations: 4 kB / 480.4 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.1674, allocations: 0 / 480.4 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.1674, allocations: 4 kB / 480.4 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006128/0.168, allocations: 0.5399 MB / 481 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.168, allocations: 0 / 481 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004357/0.1684, allocations: 95.92 kB / 481.1 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.1685, allocations: 7.938 kB / 481.1 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.688e-05/0.1685, allocations: 11.94 kB / 481.1 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.057e-06/0.1685, allocations: 4 kB / 481.1 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.1685, allocations: 3.984 kB / 481.1 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002285/0.1708, allocations: 0.9438 MB / 482 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004793/0.1713, allocations: 180.4 kB / 482.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.186e-05/0.1714, allocations: 23.92 kB / 482.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004865/0.1719, allocations: 60 kB / 482.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/0.172, allocations: 51.88 kB / 482.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.107e-05/0.1721, allocations: 12 kB / 482.3 MB, free: 15.81 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004439/0.1725, allocations: 362.8 kB / 482.7 MB, free: 15.46 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1725, allocations: 0 / 482.7 MB, free: 15.46 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006437/0.1732, allocations: 195.6 kB / 482.9 MB, free: 15.27 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (loadDispatcher.secondaryControl.I.y) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,loadDispatcher.data.nextTimeEvent,loadDispatcher.data.nextTimeEventScaled,loadDispatcher.hydroDaily.T_start,loadDispatcher.hydroDaily.count,$whenCondition1,frequency.T_start,frequency.count,system.initime) * Number of discrete states: 4 (frequency.count,loadDispatcher.hydroDaily.count,loadDispatcher.data.nextTimeEventScaled,loadDispatcher.data.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001085/0.1743, allocations: 468.9 kB / 483.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002682/0.177, allocations: 1.091 MB / 484.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.177, allocations: 0 / 484.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008184/0.1778, allocations: 302.2 kB / 484.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008523/0.1787, allocations: 131.8 kB / 484.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002254/0.1809, allocations: 1.137 MB / 486 MB, free: 12.26 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006063/0.1816, allocations: 0.8555 MB / 486.9 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004265/0.182, allocations: 116.3 kB / 487 MB, free: 11.26 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001606/0.1822, allocations: 55.41 kB / 487 MB, free: 11.2 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1822, allocations: 0 / 487 MB, free: 11.2 MB / 366.1 MB Notification: Performance of Templates: time 0.0134/0.1956, allocations: 7.089 MB / 494.1 MB, free: 4.172 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe 2>&1)