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.001343/0.001343, allocations: 176.4 kB / 17.4 MB, free: 4.297 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.373/1.373, allocations: 205.4 MB / 223.6 MB, free: 8.93 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.0007356/0.0007356, allocations: 84.98 kB / 271.9 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1762/0.1762, allocations: 38.08 MB / 358.3 MB, free: 1.715 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003749/0.000375, allocations: 15.98 kB / 425.2 MB, free: 37.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2784, allocations: 56.32 MB / 481.6 MB, free: 9.586 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1354/0.4139, allocations: 94.75 MB / 0.5628 GB, free: 7.508 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002241/0.4162, allocations: 0.8821 MB / 0.5637 GB, free: 6.629 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03233/0.4486, allocations: 11.63 MB / 0.575 GB, free: 10.97 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.4486, allocations: 0 / 0.575 GB, free: 10.97 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.151e-05/0.4487, allocations: 8 kB / 0.575 GB, free: 10.96 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.002069/0.4508, allocations: 0.9671 MB / 0.576 GB, free: 9.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.4508, allocations: 8.031 kB / 0.576 GB, free: 9.922 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000229/0.451, allocations: 64.19 kB / 0.576 GB, free: 9.859 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009476/0.452, allocations: 0.5278 MB / 0.5766 GB, free: 9.289 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.916e-05/0.4521, allocations: 29.38 kB / 0.5766 GB, free: 9.262 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.271e-05/0.4522, allocations: 40.27 kB / 0.5766 GB, free: 9.223 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001191/0.4534, allocations: 0.5965 MB / 0.5772 GB, free: 8.574 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.843e-05/0.4534, allocations: 4.125 kB / 0.5772 GB, free: 8.57 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.242e-05/0.4535, allocations: 15.94 kB / 0.5772 GB, free: 8.555 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.4535, allocations: 8 kB / 0.5772 GB, free: 8.547 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001402/0.4549, allocations: 0.6297 MB / 0.5778 GB, free: 7.918 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002688/0.4576, allocations: 2.142 MB / 0.5799 GB, free: 5.684 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001586/0.4592, allocations: 0.686 MB / 0.5806 GB, free: 4.961 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006262/0.4598, allocations: 281.5 kB / 0.5809 GB, free: 4.676 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.096e-05/0.4599, allocations: 15.98 kB / 0.5809 GB, free: 4.66 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008543/0.4607, allocations: 406.1 kB / 0.5813 GB, free: 4.238 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 2.845e-06/0.4608, allocations: 4 kB / 0.5813 GB, free: 4.234 MB / 410.7 MB Notification: Performance of matching and sorting (n=37): time 0.002149/0.4629, allocations: 0.8682 MB / 0.5821 GB, free: 3.359 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.463, allocations: 196 kB / 0.5823 GB, free: 3.125 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007795/0.4638, allocations: 0.5457 MB / 0.5829 GB, free: 2.57 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.477e-05/0.4639, allocations: 41.69 kB / 0.5829 GB, free: 2.523 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002382/0.4641, allocations: 272.2 kB / 0.5832 GB, free: 2.254 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001461/0.4643, allocations: 133.2 kB / 0.5833 GB, free: 2.125 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.045e-05/0.4643, allocations: 4 kB / 0.5833 GB, free: 2.121 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.4645, allocations: 370.8 kB / 0.5836 GB, free: 1.75 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006349/0.4652, allocations: 264.7 kB / 0.5839 GB, free: 1.492 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006825/0.4658, allocations: 381.9 kB / 0.5843 GB, free: 1.074 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001287/0.4671, allocations: 0.663 MB / 0.5849 GB, free: 364 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.4672, allocations: 3.938 kB / 0.5849 GB, free: 360 kB / 410.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001725/0.4689, allocations: 0.7982 MB / 0.5857 GB, free: 15.54 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001536/0.4691, allocations: 239.9 kB / 0.5859 GB, free: 15.24 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.4691, allocations: 4 kB / 0.5859 GB, free: 15.24 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/0.4691, allocations: 8 kB / 0.5859 GB, free: 15.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005068/0.4696, allocations: 123.8 kB / 0.586 GB, free: 15.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/0.4696, allocations: 7.938 kB / 0.5861 GB, free: 15.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004964/0.4701, allocations: 95.56 kB / 0.5861 GB, free: 15.01 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.621e-05/0.4702, allocations: 23.98 kB / 0.5862 GB, free: 14.98 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.117e-06/0.4702, allocations: 4 kB / 0.5862 GB, free: 14.98 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001461/0.4717, allocations: 0.7126 MB / 0.5869 GB, free: 14.26 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.4717, allocations: 12.05 kB / 0.5869 GB, free: 14.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.134e-06/0.4717, allocations: 4 kB / 0.5869 GB, free: 14.24 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004801/0.4722, allocations: 111.9 kB / 0.587 GB, free: 14.13 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.367e-05/0.4722, allocations: 11.94 kB / 0.587 GB, free: 14.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004818/0.4727, allocations: 87.47 kB / 0.5871 GB, free: 14.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.237e-05/0.4728, allocations: 20 kB / 0.5871 GB, free: 14.02 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.0004109/0.4732, allocations: 283.3 kB / 0.5874 GB, free: 13.73 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/0.4733, allocations: 63.28 kB / 0.5874 GB, free: 13.67 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001075/0.4744, allocations: 487.2 kB / 0.5879 GB, free: 13.18 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.4744, allocations: 8 kB / 0.5879 GB, free: 13.18 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.4744, allocations: 3.938 kB / 0.5879 GB, free: 13.17 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.4745, allocations: 0 / 0.5879 GB, free: 13.17 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008103/0.4753, allocations: 0.5945 MB / 0.5885 GB, free: 12.53 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.4753, allocations: 0 / 0.5885 GB, free: 12.53 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004578/0.4757, allocations: 111.9 kB / 0.5886 GB, free: 12.42 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.4758, allocations: 0 / 0.5886 GB, free: 12.42 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.219e-05/0.4758, allocations: 12 kB / 0.5886 GB, free: 12.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.798e-06/0.4758, allocations: 0 / 0.5886 GB, free: 12.41 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.763e-06/0.4758, allocations: 15.91 kB / 0.5886 GB, free: 12.39 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002336/0.4782, allocations: 1.069 MB / 0.5897 GB, free: 11.29 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002924/0.4785, allocations: 196.2 kB / 0.5899 GB, free: 11.08 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/0.4786, allocations: 19.98 kB / 0.5899 GB, free: 11.06 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004057/0.479, allocations: 64 kB / 0.5899 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/0.4792, allocations: 55.81 kB / 0.59 GB, free: 10.95 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.267e-05/0.4792, allocations: 19.98 kB / 0.59 GB, free: 10.93 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005031/0.4797, allocations: 390.8 kB / 0.5904 GB, free: 10.55 MB / 426.7 MB Notification: Performance of sort global known variables: time 3e-07/0.4797, allocations: 0 / 0.5904 GB, free: 10.55 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008125/0.4805, allocations: 211.6 kB / 0.5906 GB, free: 10.34 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.001103/0.4817, allocations: 492.6 kB / 0.591 GB, free: 9.906 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002398/0.4841, allocations: 1.147 MB / 0.5922 GB, free: 8.711 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.4841, allocations: 0 / 0.5922 GB, free: 8.711 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007641/0.4849, allocations: 331.9 kB / 0.5925 GB, free: 8.387 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007629/0.4856, allocations: 122.7 kB / 0.5926 GB, free: 8.266 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002278/0.4879, allocations: 1.153 MB / 0.5937 GB, free: 7.066 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005079/0.4884, allocations: 0.8678 MB / 0.5946 GB, free: 6.172 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005484/0.489, allocations: 128.2 kB / 0.5947 GB, free: 6.047 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001873/0.4892, allocations: 51.42 kB / 0.5947 GB, free: 5.996 MB / 426.7 MB Notification: Performance of SimCode: time 1.123e-06/0.4892, allocations: 0 / 0.5947 GB, free: 5.996 MB / 426.7 MB Notification: Performance of Templates: time 0.01477/0.504, allocations: 7.486 MB / 0.6021 GB, free: 14.5 MB / 442.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/jenkins1/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