Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001094/0.001094, allocations: 173.5 kB / 16.76 MB, free: 5.059 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.243/1.243, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007219/0.0007219, allocations: 93.41 kB / 271.3 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1711/0.1711, allocations: 38.08 MB / 357.6 MB, free: 1.738 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003316/0.0003316, allocations: 19.98 kB / 423.9 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2269/0.2273, allocations: 56.32 MB / 480.3 MB, free: 9.227 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1128/0.3401, allocations: 94.74 MB / 0.5615 GB, free: 7.625 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001681/0.3418, allocations: 0.87 MB / 0.5624 GB, free: 6.758 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02957/0.3714, allocations: 11.64 MB / 0.5737 GB, free: 11.09 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3715, allocations: 3.938 kB / 0.5737 GB, free: 11.09 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.616e-05/0.3715, allocations: 12 kB / 0.5738 GB, free: 11.07 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.001691/0.3732, allocations: 0.9554 MB / 0.5747 GB, free: 10.05 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.3733, allocations: 12.03 kB / 0.5747 GB, free: 10.04 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001174/0.3734, allocations: 68.17 kB / 0.5748 GB, free: 9.973 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007536/0.3742, allocations: 0.5317 MB / 0.5753 GB, free: 9.398 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.123e-05/0.3742, allocations: 29.38 kB / 0.5753 GB, free: 9.371 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.157e-05/0.3743, allocations: 36.28 kB / 0.5753 GB, free: 9.336 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001081/0.3754, allocations: 0.5932 MB / 0.5759 GB, free: 8.688 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.3754, allocations: 4.125 kB / 0.5759 GB, free: 8.684 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.72e-05/0.3754, allocations: 15.94 kB / 0.5759 GB, free: 8.668 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.3755, allocations: 12 kB / 0.576 GB, free: 8.656 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001426/0.3769, allocations: 0.6258 MB / 0.5766 GB, free: 8.031 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002428/0.3793, allocations: 2.143 MB / 0.5787 GB, free: 5.797 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001632/0.381, allocations: 0.6859 MB / 0.5793 GB, free: 5.074 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006513/0.3817, allocations: 283.3 kB / 0.5796 GB, free: 4.785 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.485e-05/0.3817, allocations: 8 kB / 0.5796 GB, free: 4.777 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008417/0.3826, allocations: 417 kB / 0.58 GB, free: 4.348 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 2.435e-06/0.3826, allocations: 0 / 0.58 GB, free: 4.348 MB / 410.7 MB Notification: Performance of matching and sorting (n=37): time 0.002209/0.3848, allocations: 0.8721 MB / 0.5809 GB, free: 3.469 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.3849, allocations: 191.9 kB / 0.581 GB, free: 3.238 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007498/0.3857, allocations: 0.5496 MB / 0.5816 GB, free: 2.68 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.525e-05/0.3858, allocations: 37.7 kB / 0.5816 GB, free: 2.637 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002131/0.386, allocations: 276.2 kB / 0.5819 GB, free: 2.363 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001156/0.3861, allocations: 126.3 kB / 0.582 GB, free: 2.238 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.043e-05/0.3861, allocations: 8 kB / 0.582 GB, free: 2.23 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.3863, allocations: 366.8 kB / 0.5824 GB, free: 1.863 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006706/0.387, allocations: 260.7 kB / 0.5826 GB, free: 1.609 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000743/0.3877, allocations: 385.9 kB / 0.583 GB, free: 1.188 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001287/0.389, allocations: 0.663 MB / 0.5836 GB, free: 480 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3891, allocations: 0 / 0.5836 GB, free: 480 kB / 410.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.00169/0.3908, allocations: 0.7982 MB / 0.5844 GB, free: 15.65 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001355/0.3909, allocations: 246.8 kB / 0.5846 GB, free: 15.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.3909, allocations: 4 kB / 0.5846 GB, free: 15.35 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.3909, allocations: 4 kB / 0.5846 GB, free: 15.35 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005063/0.3914, allocations: 123.9 kB / 0.5848 GB, free: 15.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/0.3915, allocations: 15.92 kB / 0.5848 GB, free: 15.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004943/0.392, allocations: 95.5 kB / 0.5849 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.48e-05/0.392, allocations: 20 kB / 0.5849 GB, free: 15.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.513e-06/0.392, allocations: 4 kB / 0.5849 GB, free: 15.09 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00148/0.3935, allocations: 0.7125 MB / 0.5856 GB, free: 14.37 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.3935, allocations: 0 / 0.5856 GB, free: 14.37 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.954e-06/0.3936, allocations: 8 kB / 0.5856 GB, free: 14.36 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004381/0.394, allocations: 115.8 kB / 0.5857 GB, free: 14.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.394, allocations: 12.16 kB / 0.5857 GB, free: 14.24 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004434/0.3945, allocations: 79.48 kB / 0.5858 GB, free: 14.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.2e-05/0.3945, allocations: 23.98 kB / 0.5858 GB, free: 14.14 MB / 426.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 () * 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.0003764/0.3949, allocations: 287.2 kB / 0.5861 GB, free: 13.84 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.608e-05/0.395, allocations: 63.27 kB / 0.5861 GB, free: 13.78 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001012/0.396, allocations: 491.2 kB / 0.5866 GB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.221e-06/0.396, allocations: 4 kB / 0.5866 GB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.396, allocations: 3.938 kB / 0.5866 GB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.3961, allocations: 7.984 kB / 0.5866 GB, free: 13.28 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000609/0.3967, allocations: 0.5867 MB / 0.5872 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.3967, allocations: 4 kB / 0.5872 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000451/0.3971, allocations: 107.9 kB / 0.5873 GB, free: 12.53 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.239e-06/0.3972, allocations: 4 kB / 0.5873 GB, free: 12.53 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.876e-05/0.3972, allocations: 11.98 kB / 0.5873 GB, free: 12.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.3972, allocations: 8 kB / 0.5873 GB, free: 12.51 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.3972, allocations: 3.938 kB / 0.5873 GB, free: 12.5 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002187/0.3994, allocations: 1.069 MB / 0.5884 GB, free: 11.41 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002611/0.3997, allocations: 200.2 kB / 0.5886 GB, free: 11.19 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.091e-05/0.3998, allocations: 12 kB / 0.5886 GB, free: 11.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004002/0.4002, allocations: 72 kB / 0.5887 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.4003, allocations: 55.8 kB / 0.5887 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.917e-05/0.4004, allocations: 19.98 kB / 0.5887 GB, free: 11.04 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004402/0.4008, allocations: 386.8 kB / 0.5891 GB, free: 10.66 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4008, allocations: 0 / 0.5891 GB, free: 10.66 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006446/0.4015, allocations: 215.6 kB / 0.5893 GB, free: 10.45 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) * Number of clocked states: 0 () * 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.0009243/0.4024, allocations: 495.9 kB / 0.5898 GB, free: 10.02 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002219/0.4046, allocations: 1.143 MB / 0.5909 GB, free: 8.828 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.4047, allocations: 3.938 kB / 0.5909 GB, free: 8.824 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007095/0.4054, allocations: 323.9 kB / 0.5912 GB, free: 8.508 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006693/0.406, allocations: 122.8 kB / 0.5913 GB, free: 8.387 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001907/0.408, allocations: 1.189 MB / 0.5925 GB, free: 7.145 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004112/0.4084, allocations: 0.8678 MB / 0.5933 GB, free: 6.25 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002195/0.4086, allocations: 59.41 kB / 0.5934 GB, free: 6.191 MB / 426.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4086, allocations: 0 / 0.5934 GB, free: 6.191 MB / 426.7 MB Notification: Performance of Templates: time 0.01106/0.4197, allocations: 8.143 MB / 0.6013 GB, free: 14.04 MB / 442.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)