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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.0009398/0.0009398, allocations: 94.33 kB / 16.3 MB, free: 5.996 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.001089/0.001089, allocations: 183.7 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.505/1.505, allocations: 205.4 MB / 223.4 MB, free: 5.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3403/0.3403, allocations: 38.06 MB / 309.7 MB, free: 8.875 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004612/0.0004612, allocations: 14.66 kB / 376.5 MB, free: 15.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.113, allocations: 56.34 MB / 432.8 MB, free: 6.738 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest): time 0.004102/0.1171, allocations: 3.445 MB / 436.3 MB, free: 3.27 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001983/0.1191, allocations: 1.361 MB / 437.6 MB, free: 1.898 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002309/0.1194, allocations: 19.88 kB / 437.6 MB, free: 1.879 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003134/0.1197, allocations: 71.47 kB / 437.7 MB, free: 1.809 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004077/0.1201, allocations: 191.4 kB / 437.9 MB, free: 1.621 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005487/0.1207, allocations: 251.5 kB / 438.1 MB, free: 1.375 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005308/0.1212, allocations: 440.2 kB / 438.6 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002659/0.1215, allocations: 149.1 kB / 438.7 MB, free: 0.793 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003611/0.1219, allocations: 223 kB / 438.9 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002263/0.1221, allocations: 211 kB / 439.1 MB, free: 376 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.353e-05/0.1222, allocations: 16 kB / 439.2 MB, free: 360 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001246/0.1223, allocations: 51.98 kB / 439.2 MB, free: 308 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000112/0.1224, allocations: 103.6 kB / 439.3 MB, free: 204 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.1225, allocations: 137.2 kB / 439.5 MB, free: 60 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005255/0.1231, allocations: 0.5923 MB / 440 MB, free: 15.46 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.434e-06/0.1231, allocations: 0 / 440 MB, free: 15.46 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1231, allocations: 0 / 440 MB, free: 15.46 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.702e-06/0.1231, allocations: 0 / 440 MB, free: 15.46 MB / 382.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.001553/0.1246, allocations: 0.9278 MB / 441 MB, free: 14.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.223e-05/0.1247, allocations: 8.031 kB / 441 MB, free: 14.47 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001209/0.1248, allocations: 71.16 kB / 441 MB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006684/0.1255, allocations: 0.492 MB / 441.5 MB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.39e-05/0.1255, allocations: 32.98 kB / 441.6 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.307e-05/0.1256, allocations: 36 kB / 441.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/0.1267, allocations: 0.577 MB / 442.2 MB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.1267, allocations: 0 / 442.2 MB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.231e-05/0.1267, allocations: 12 kB / 442.2 MB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.1268, allocations: 8 kB / 442.2 MB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001293/0.1281, allocations: 0.5785 MB / 442.8 MB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002231/0.1303, allocations: 2.095 MB / 444.9 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001598/0.1319, allocations: 0.647 MB / 445.5 MB, free: 9.703 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.5e-05/0.132, allocations: 11.98 kB / 445.5 MB, free: 9.691 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008551/0.1328, allocations: 390.4 kB / 445.9 MB, free: 9.285 MB / 382.1 MB Notification: Performance of pre-optimization done (n=37): time 1.934e-06/0.1328, allocations: 0 / 445.9 MB, free: 9.285 MB / 382.1 MB Notification: Performance of matching and sorting (n=37): time 0.002102/0.135, allocations: 0.825 MB / 446.7 MB, free: 8.453 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.996e-05/0.1351, allocations: 187.9 kB / 446.9 MB, free: 8.227 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005348/0.1356, allocations: 0.503 MB / 447.4 MB, free: 7.715 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.917e-05/0.1357, allocations: 37.7 kB / 447.5 MB, free: 7.672 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000197/0.1359, allocations: 276.1 kB / 447.7 MB, free: 7.398 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.71e-05/0.136, allocations: 122.4 kB / 447.9 MB, free: 7.277 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.335e-05/0.136, allocations: 8 kB / 447.9 MB, free: 7.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000254/0.1363, allocations: 370.7 kB / 448.2 MB, free: 6.898 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006/0.1369, allocations: 256.7 kB / 448.5 MB, free: 6.648 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006701/0.1376, allocations: 370.6 kB / 448.8 MB, free: 6.242 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000653/0.1382, allocations: 324 kB / 449.2 MB, free: 5.914 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1382, allocations: 0 / 449.2 MB, free: 5.914 MB / 382.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001549/0.1398, allocations: 0.7669 MB / 449.9 MB, free: 5.129 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005426/0.1403, allocations: 1.287 MB / 451.2 MB, free: 3.734 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.1404, allocations: 4 kB / 451.2 MB, free: 3.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.1404, allocations: 4 kB / 451.2 MB, free: 3.727 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004773/0.1409, allocations: 119.9 kB / 451.3 MB, free: 3.609 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.481e-05/0.1409, allocations: 15.92 kB / 451.3 MB, free: 3.594 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004551/0.1413, allocations: 95.47 kB / 451.4 MB, free: 3.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.824e-05/0.1414, allocations: 20 kB / 451.5 MB, free: 3.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.799e-06/0.1414, allocations: 7.984 kB / 451.5 MB, free: 3.473 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001396/0.1428, allocations: 0.6709 MB / 452.1 MB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.1428, allocations: 4 kB / 452.1 MB, free: 2.785 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.965e-06/0.1428, allocations: 8 kB / 452.2 MB, free: 2.777 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004114/0.1433, allocations: 107.9 kB / 452.3 MB, free: 2.672 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.1433, allocations: 11.94 kB / 452.3 MB, free: 2.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004131/0.1437, allocations: 87.59 kB / 452.4 MB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.389e-05/0.1437, allocations: 20 kB / 452.4 MB, free: 2.555 MB / 382.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 ($whenCondition2,$PRE.loadDispatcher.data.nextTimeEvent,$whenCondition3,loadDispatcher.data.nextTimeEvent,$PRE.loadDispatcher.data.nextTimeEventScaled,loadDispatcher.data.nextTimeEventScaled,$PRE.loadDispatcher.hydroDaily.T_start,loadDispatcher.hydroDaily.T_start,$PRE.loadDispatcher.hydroDaily.count,loadDispatcher.hydroDaily.count,$whenCondition1,$PRE.frequency.T_start,frequency.T_start,$PRE.frequency.count,frequency.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003282/0.1441, allocations: 283.2 kB / 452.6 MB, free: 2.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.929e-05/0.1442, allocations: 59.34 kB / 452.7 MB, free: 2.211 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001482/0.1443, allocations: 64.59 kB / 452.8 MB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.577e-06/0.1443, allocations: 8 kB / 452.8 MB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.1443, allocations: 0 / 452.8 MB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.1444, allocations: 0 / 452.8 MB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005712/0.1449, allocations: 0.5516 MB / 453.3 MB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.1449, allocations: 0 / 453.3 MB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003989/0.1453, allocations: 95.86 kB / 453.4 MB, free: 1.438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.231e-06/0.1454, allocations: 8 kB / 453.4 MB, free: 1.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.35e-05/0.1454, allocations: 11.98 kB / 453.4 MB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.1454, allocations: 11.92 kB / 453.5 MB, free: 1.406 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.1454, allocations: 3.938 kB / 453.5 MB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002037/0.1475, allocations: 0.9795 MB / 454.4 MB, free: 384 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002181/0.1477, allocations: 184.2 kB / 454.6 MB, free: 180 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.096e-05/0.1478, allocations: 19.95 kB / 454.6 MB, free: 160 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003731/0.1482, allocations: 63.94 kB / 454.7 MB, free: 96 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/0.1483, allocations: 51.92 kB / 454.8 MB, free: 44 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.384e-05/0.1483, allocations: 12 kB / 454.8 MB, free: 32 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.1971/0.3454, allocations: 355.1 kB / 455.1 MB, free: 51.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.452e-06/0.3455, allocations: 0 / 455.1 MB, free: 51.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009563/0.3464, allocations: 194.6 kB / 455.3 MB, free: 51.27 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009418/0.3474, allocations: 466.7 kB / 455.8 MB, free: 51.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002019/0.3494, allocations: 1.085 MB / 456.8 MB, free: 50.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.3494, allocations: 0 / 456.8 MB, free: 50.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006309/0.3501, allocations: 293.8 kB / 457.1 MB, free: 50.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005256/0.3506, allocations: 113.5 kB / 457.2 MB, free: 50.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.352, allocations: 1.076 MB / 458.3 MB, free: 50.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002283/0.3523, allocations: 0.8725 MB / 459.2 MB, free: 49.55 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003382/0.3526, allocations: 118.3 kB / 459.3 MB, free: 49.54 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001356/0.3528, allocations: 48.52 kB / 459.3 MB, free: 49.54 MB / 382.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3528, allocations: 0 / 459.3 MB, free: 49.54 MB / 382.1 MB Notification: Performance of Templates: time 0.009986/0.3628, allocations: 6.912 MB / 466.3 MB, free: 48.91 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: