Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest") translateModel(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001594/0.001594, allocations: 186 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.119/2.119, allocations: 205.2 MB / 218.9 MB, free: 9.199 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001498/0.001498, allocations: 84.78 kB / 267.1 MB, free: 9.277 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2738/0.2738, allocations: 37.98 MB / 353.1 MB, free: 3.051 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.278e-05/3.286e-05, allocations: 4 kB / 416.8 MB, free: 41.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1135, allocations: 56.3 MB / 473.1 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5421/0.6557, allocations: 94.59 MB / 0.5544 GB, free: 9.156 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002433/0.6582, allocations: 0.6808 MB / 0.5551 GB, free: 8.477 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05382/0.7121, allocations: 11.55 MB / 0.5663 GB, free: 12.91 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.484e-06/0.7121, allocations: 0 / 0.5663 GB, free: 12.91 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.519e-05/0.7122, allocations: 19.92 kB / 0.5664 GB, free: 12.89 MB / 410.7 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.002792/0.715, allocations: 0.8655 MB / 0.5672 GB, free: 11.96 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/0.7151, allocations: 8.031 kB / 0.5672 GB, free: 11.96 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003037/0.7154, allocations: 71.2 kB / 0.5673 GB, free: 11.89 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001467/0.7169, allocations: 0.5112 MB / 0.5678 GB, free: 11.34 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.241e-05/0.717, allocations: 24.78 kB / 0.5678 GB, free: 11.31 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.7171, allocations: 39.98 kB / 0.5678 GB, free: 11.27 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001336/0.7185, allocations: 0.4884 MB / 0.5683 GB, free: 10.73 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.415e-05/0.7185, allocations: 4 kB / 0.5683 GB, free: 10.73 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.732e-05/0.7186, allocations: 16 kB / 0.5683 GB, free: 10.71 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.38e-05/0.7186, allocations: 11.95 kB / 0.5684 GB, free: 10.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001314/0.72, allocations: 449.1 kB / 0.5688 GB, free: 10.27 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004399/0.7244, allocations: 2.139 MB / 0.5709 GB, free: 8.035 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001874/0.7263, allocations: 0.5 MB / 0.5714 GB, free: 7.5 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005504/0.7269, allocations: 179.4 kB / 0.5715 GB, free: 7.312 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.498e-05/0.727, allocations: 7.984 kB / 0.5715 GB, free: 7.305 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008197/0.7278, allocations: 314.7 kB / 0.5718 GB, free: 6.973 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 3.476e-06/0.7279, allocations: 3.938 kB / 0.5718 GB, free: 6.969 MB / 410.7 MB Notification: Performance of matching and sorting (n=37): time 0.001533/0.7294, allocations: 468.5 kB / 0.5723 GB, free: 6.504 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001529/0.7296, allocations: 196 kB / 0.5725 GB, free: 6.27 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001091/0.7307, allocations: 484.8 kB / 0.5729 GB, free: 5.785 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001635/0.7309, allocations: 45.69 kB / 0.573 GB, free: 5.734 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000309/0.7312, allocations: 298.7 kB / 0.5733 GB, free: 5.438 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002106/0.7314, allocations: 126.3 kB / 0.5734 GB, free: 5.312 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.783e-05/0.7315, allocations: 8 kB / 0.5734 GB, free: 5.305 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.7317, allocations: 326.8 kB / 0.5737 GB, free: 4.977 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005354/0.7322, allocations: 164.8 kB / 0.5739 GB, free: 4.816 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006632/0.7329, allocations: 282.2 kB / 0.5741 GB, free: 4.488 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006163/0.7335, allocations: 259 kB / 0.5744 GB, free: 4.227 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.231e-06/0.7336, allocations: 4 kB / 0.5744 GB, free: 4.223 MB / 410.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.00162/0.7352, allocations: 0.5617 MB / 0.5749 GB, free: 3.645 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006718/0.7359, allocations: 1.283 MB / 0.5762 GB, free: 2.254 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/0.7359, allocations: 4 kB / 0.5762 GB, free: 2.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.877e-05/0.736, allocations: 4 kB / 0.5762 GB, free: 2.246 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/0.7371, allocations: 123.8 kB / 0.5763 GB, free: 2.125 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.023e-05/0.7371, allocations: 11.94 kB / 0.5763 GB, free: 2.113 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001025/0.7382, allocations: 83.62 kB / 0.5764 GB, free: 2.031 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.954e-05/0.7383, allocations: 31.92 kB / 0.5764 GB, free: 2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.7383, allocations: 4 kB / 0.5764 GB, free: 1.996 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001574/0.7399, allocations: 0.542 MB / 0.577 GB, free: 1.441 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.7399, allocations: 4 kB / 0.577 GB, free: 1.438 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.74, allocations: 4 kB / 0.577 GB, free: 1.434 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009561/0.7409, allocations: 111.9 kB / 0.5771 GB, free: 1.324 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.848e-05/0.741, allocations: 12.06 kB / 0.5771 GB, free: 1.312 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007616/0.7417, allocations: 87.56 kB / 0.5772 GB, free: 1.227 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.206e-05/0.7418, allocations: 20 kB / 0.5772 GB, free: 1.207 MB / 410.7 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 () * 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.0003118/0.7422, allocations: 141 kB / 0.5773 GB, free: 1.066 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002226/0.7424, allocations: 63.2 kB / 0.5774 GB, free: 1.004 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00127/0.7437, allocations: 407 kB / 0.5778 GB, free: 0.5898 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.325e-05/0.7437, allocations: 8 kB / 0.5778 GB, free: 0.582 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.385e-06/0.7437, allocations: 0 / 0.5778 GB, free: 0.582 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.183e-05/0.7438, allocations: 3.984 kB / 0.5778 GB, free: 0.5781 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001189/0.745, allocations: 0.5868 MB / 0.5784 GB, free: 15.94 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.745, allocations: 0 / 0.5784 GB, free: 15.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/0.746, allocations: 111.9 kB / 0.5785 GB, free: 15.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.379e-05/0.746, allocations: 4 kB / 0.5785 GB, free: 15.83 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.43e-05/0.7461, allocations: 15.95 kB / 0.5785 GB, free: 15.81 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.696e-06/0.7462, allocations: 4 kB / 0.5785 GB, free: 15.81 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.7462, allocations: 4 kB / 0.5785 GB, free: 15.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002249/0.7484, allocations: 0.8092 MB / 0.5793 GB, free: 14.95 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004661/0.7489, allocations: 212.2 kB / 0.5795 GB, free: 14.72 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001476/0.7491, allocations: 12 kB / 0.5795 GB, free: 14.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008113/0.7499, allocations: 63.94 kB / 0.5796 GB, free: 14.65 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002661/0.7502, allocations: 51.92 kB / 0.5796 GB, free: 14.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.197e-05/0.7503, allocations: 16 kB / 0.5796 GB, free: 14.58 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008085/0.7511, allocations: 385.5 kB / 0.58 GB, free: 14.21 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.7511, allocations: 0 / 0.58 GB, free: 14.21 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001185/0.7523, allocations: 219.5 kB / 0.5802 GB, free: 14 MB / 426.7 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.nextTimeEvent,loadDispatcher.data.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 39 * 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.001459/0.7538, allocations: 453.6 kB / 0.5806 GB, free: 13.58 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002452/0.7563, allocations: 0.8698 MB / 0.5815 GB, free: 12.66 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/0.7564, allocations: 3.938 kB / 0.5815 GB, free: 12.66 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007185/0.7571, allocations: 224.1 kB / 0.5817 GB, free: 12.44 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001083/0.7582, allocations: 121.9 kB / 0.5818 GB, free: 12.32 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00245/0.7607, allocations: 0.7675 MB / 0.5826 GB, free: 11.51 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006354/0.7614, allocations: 0.8796 MB / 0.5834 GB, free: 10.61 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004592/0.7619, allocations: 47.42 kB / 0.5835 GB, free: 10.56 MB / 426.7 MB Notification: Performance of SimCode: time 1.312e-06/0.7619, allocations: 0 / 0.5835 GB, free: 10.56 MB / 426.7 MB Notification: Performance of Templates: time 0.02801/0.7899, allocations: 8.031 MB / 0.5913 GB, free: 2.508 MB / 426.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe 2>&1)