Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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="mat",numberOfIntervals=5000,variableFilter="Time|loadDispatcher.hydroDispatch.1.|loadDispatcher.hydroDispatch.2.|loadDispatcher.hydroDispatch.3.|loadDispatcher.plantDispatch.1.|loadDispatcher.plantDispatch.2.|loadDispatcher.plantDispatch.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest") translateModel(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|loadDispatcher.hydroDispatch.1.|loadDispatcher.hydroDispatch.2.|loadDispatcher.hydroDispatch.3.|loadDispatcher.plantDispatch.1.|loadDispatcher.plantDispatch.2.|loadDispatcher.plantDispatch.3.",fileNamePrefix="PowerSystems_latest_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.0009519/0.0009519, allocations: 175.1 kB / 13.63 MB, free: 1.684 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.395/1.395, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.0008781/0.0008781, allocations: 82.64 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1527/0.1527, allocations: 37.97 MB / 353.5 MB, free: 1.758 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.19e-05/3.194e-05, allocations: 4 kB / 417.7 MB, free: 29.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1438, allocations: 56.31 MB / 474.1 MB, free: 4.809 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4148/0.5587, allocations: 94.58 MB / 0.5553 GB, free: 8.074 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001726/0.5605, allocations: 0.6816 MB / 0.556 GB, free: 7.777 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02807/0.5886, allocations: 11.56 MB / 0.5673 GB, free: 14.05 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.5886, allocations: 4 kB / 0.5673 GB, free: 14.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.923e-05/0.5887, allocations: 12 kB / 0.5673 GB, free: 14.04 MB / 378.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.001639/0.5903, allocations: 0.8694 MB / 0.5681 GB, free: 13.15 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.5904, allocations: 8.031 kB / 0.5681 GB, free: 13.14 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001376/0.5905, allocations: 67.2 kB / 0.5682 GB, free: 13.08 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008275/0.5914, allocations: 0.5106 MB / 0.5687 GB, free: 12.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.418e-05/0.5914, allocations: 26.59 kB / 0.5687 GB, free: 12.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.843e-05/0.5915, allocations: 33.94 kB / 0.5688 GB, free: 12.58 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000773/0.5923, allocations: 0.4932 MB / 0.5692 GB, free: 12.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.5923, allocations: 0 / 0.5692 GB, free: 12.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.852e-05/0.5924, allocations: 22.17 kB / 0.5693 GB, free: 12.16 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.241e-05/0.5924, allocations: 15.95 kB / 0.5693 GB, free: 12.15 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006878/0.5931, allocations: 446.8 kB / 0.5697 GB, free: 11.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002321/0.5955, allocations: 2.128 MB / 0.5718 GB, free: 9.961 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009794/0.5964, allocations: 0.5081 MB / 0.5723 GB, free: 9.57 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002701/0.5967, allocations: 186.7 kB / 0.5724 GB, free: 9.445 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.377e-05/0.5968, allocations: 7.984 kB / 0.5725 GB, free: 9.438 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004889/0.5973, allocations: 319.4 kB / 0.5728 GB, free: 9.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 1.803e-06/0.5973, allocations: 4 kB / 0.5728 GB, free: 9.176 MB / 378.7 MB Notification: Performance of matching and sorting (n=37): time 0.0007946/0.5981, allocations: 463.5 kB / 0.5732 GB, free: 8.832 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.63e-05/0.5982, allocations: 183.9 kB / 0.5734 GB, free: 8.609 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005228/0.5987, allocations: 490.7 kB / 0.5738 GB, free: 8.234 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.562e-05/0.5988, allocations: 37.08 kB / 0.5739 GB, free: 8.199 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001719/0.599, allocations: 274 kB / 0.5741 GB, free: 8.023 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.5991, allocations: 128.8 kB / 0.5743 GB, free: 7.914 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.499e-05/0.5991, allocations: 10.81 kB / 0.5743 GB, free: 7.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.5992, allocations: 371.1 kB / 0.5746 GB, free: 7.562 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002645/0.5995, allocations: 162.1 kB / 0.5748 GB, free: 7.473 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000341/0.5999, allocations: 284.1 kB / 0.5751 GB, free: 7.223 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003285/0.6002, allocations: 253.9 kB / 0.5753 GB, free: 7.035 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.6002, allocations: 0 / 0.5753 GB, free: 7.035 MB / 378.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008847/0.6011, allocations: 0.5986 MB / 0.5759 GB, free: 6.562 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005066/0.6016, allocations: 1.281 MB / 0.5771 GB, free: 5.199 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.6016, allocations: 8 kB / 0.5771 GB, free: 5.191 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.929e-05/0.6017, allocations: 4 kB / 0.5771 GB, free: 5.188 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005185/0.6022, allocations: 119.2 kB / 0.5773 GB, free: 5.074 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.608e-05/0.6022, allocations: 11.94 kB / 0.5773 GB, free: 5.062 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004855/0.6027, allocations: 90.72 kB / 0.5774 GB, free: 4.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.171e-05/0.6028, allocations: 23.14 kB / 0.5774 GB, free: 4.961 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.658e-06/0.6028, allocations: 9.234 kB / 0.5774 GB, free: 4.953 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007868/0.6036, allocations: 0.5411 MB / 0.5779 GB, free: 4.555 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.6036, allocations: 4 kB / 0.5779 GB, free: 4.551 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.502e-06/0.6036, allocations: 4 kB / 0.5779 GB, free: 4.547 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004548/0.6041, allocations: 115.9 kB / 0.578 GB, free: 4.438 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.6041, allocations: 11.94 kB / 0.578 GB, free: 4.426 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000428/0.6045, allocations: 87 kB / 0.5781 GB, free: 4.348 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.742e-05/0.6046, allocations: 19.88 kB / 0.5781 GB, free: 4.332 MB / 378.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.0001458/0.6047, allocations: 138.8 kB / 0.5783 GB, free: 4.199 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.762e-05/0.6048, allocations: 67.2 kB / 0.5783 GB, free: 4.133 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006879/0.6055, allocations: 401 kB / 0.5787 GB, free: 3.836 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.6055, allocations: 4 kB / 0.5787 GB, free: 3.832 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.6055, allocations: 4 kB / 0.5787 GB, free: 3.828 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.6056, allocations: 7.984 kB / 0.5787 GB, free: 3.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005732/0.6061, allocations: 0.5823 MB / 0.5793 GB, free: 3.336 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.6062, allocations: 7.984 kB / 0.5793 GB, free: 3.328 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004647/0.6066, allocations: 103.8 kB / 0.5794 GB, free: 3.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.652e-06/0.6066, allocations: 7.984 kB / 0.5794 GB, free: 3.223 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.834e-05/0.6067, allocations: 15.45 kB / 0.5794 GB, free: 3.215 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.6067, allocations: 4 kB / 0.5794 GB, free: 3.211 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.6067, allocations: 0 / 0.5794 GB, free: 3.211 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001103/0.6078, allocations: 0.8223 MB / 0.5802 GB, free: 2.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000239/0.6081, allocations: 198.8 kB / 0.5804 GB, free: 2.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.848e-05/0.6082, allocations: 15.38 kB / 0.5805 GB, free: 2.406 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000406/0.6086, allocations: 63.88 kB / 0.5805 GB, free: 2.348 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/0.6087, allocations: 55.48 kB / 0.5806 GB, free: 2.305 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.401e-05/0.6088, allocations: 11.94 kB / 0.5806 GB, free: 2.297 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004709/0.6092, allocations: 385 kB / 0.5809 GB, free: 2.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6092, allocations: 0 / 0.5809 GB, free: 2.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006207/0.6099, allocations: 218.8 kB / 0.5812 GB, free: 1.828 MB / 378.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.0009843/0.6109, allocations: 457.2 kB / 0.5816 GB, free: 1.434 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001181/0.6121, allocations: 0.8922 MB / 0.5825 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.6121, allocations: 0 / 0.5825 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003802/0.6125, allocations: 230.4 kB / 0.5827 GB, free: 0.5742 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000574/0.613, allocations: 121.6 kB / 0.5828 GB, free: 500 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001448/0.6145, allocations: 0.7288 MB / 0.5835 GB, free: 15.84 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005189/0.615, allocations: 0.8873 MB / 0.5844 GB, free: 14.93 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006511/0.6157, allocations: 178.2 kB / 0.5845 GB, free: 14.75 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001439/0.6158, allocations: 38.75 kB / 0.5846 GB, free: 14.71 MB / 394.7 MB Notification: Performance of SimCode: time 8.72e-07/0.6159, allocations: 0 / 0.5846 GB, free: 14.71 MB / 394.7 MB Notification: Performance of Templates: time 0.01428/0.6301, allocations: 8.486 MB / 0.5929 GB, free: 6.223 MB / 394.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches