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.0009809/0.000981, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.518/1.518, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008703/0.0008703, allocations: 87.52 kB / 262.1 MB, free: 13.88 MB / 219.1 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: 37.99 MB / 348 MB, free: 7.773 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.123e-05/2.126e-05, allocations: 4 kB / 410.6 MB, free: 46.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1119, allocations: 56.33 MB / 466.9 MB, free: 6.551 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4245/0.5365, allocations: 93.91 MB / 0.5477 GB, free: 0.9844 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001605/0.5382, allocations: 0.5699 MB / 0.5482 GB, free: 424 kB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03092/0.5691, allocations: 11.47 MB / 0.5594 GB, free: 4.945 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.113e-06/0.5692, allocations: 4 kB / 0.5594 GB, free: 4.941 MB / 395.1 MB Notification: Performance of Transformations before backend: time 4.125e-05/0.5692, allocations: 8 kB / 0.5594 GB, free: 4.934 MB / 395.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.001608/0.5709, allocations: 0.8735 MB / 0.5603 GB, free: 4 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.5709, allocations: 12.03 kB / 0.5603 GB, free: 3.988 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000133/0.571, allocations: 71.14 kB / 0.5604 GB, free: 3.918 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009165/0.572, allocations: 0.4995 MB / 0.5609 GB, free: 3.375 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.572, allocations: 16 kB / 0.5609 GB, free: 3.359 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.334e-05/0.5721, allocations: 20 kB / 0.5609 GB, free: 3.34 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006932/0.5728, allocations: 421.3 kB / 0.5613 GB, free: 2.93 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006738/0.5735, allocations: 454.6 kB / 0.5617 GB, free: 2.434 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.5735, allocations: 0 / 0.5617 GB, free: 2.434 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.25e-05/0.5735, allocations: 7.953 kB / 0.5617 GB, free: 2.426 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.5735, allocations: 8 kB / 0.5617 GB, free: 2.418 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002216/0.5758, allocations: 2.057 MB / 0.5638 GB, free: 288 kB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009494/0.5767, allocations: 494.8 kB / 0.5642 GB, free: 15.76 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002493/0.577, allocations: 175.4 kB / 0.5644 GB, free: 15.57 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.92e-05/0.5771, allocations: 7.906 kB / 0.5644 GB, free: 15.57 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004419/0.5775, allocations: 310.2 kB / 0.5647 GB, free: 15.24 MB / 411.1 MB Notification: Performance of pre-optimization done (n=37): time 2.124e-06/0.5775, allocations: 0 / 0.5647 GB, free: 15.24 MB / 411.1 MB Notification: Performance of matching and sorting (n=37): time 0.0007589/0.5783, allocations: 428.8 kB / 0.5651 GB, free: 14.82 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.174e-05/0.5784, allocations: 199.8 kB / 0.5653 GB, free: 14.58 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005037/0.5789, allocations: 433.2 kB / 0.5657 GB, free: 14.14 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 4.465e-05/0.5789, allocations: 33.77 kB / 0.5657 GB, free: 14.11 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001988/0.5792, allocations: 276.3 kB / 0.566 GB, free: 13.83 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.5793, allocations: 122.4 kB / 0.5661 GB, free: 13.71 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.585e-05/0.5793, allocations: 0 / 0.5661 GB, free: 13.71 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.5795, allocations: 362.8 kB / 0.5665 GB, free: 13.35 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002529/0.5797, allocations: 156.9 kB / 0.5666 GB, free: 13.2 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003479/0.5801, allocations: 270.4 kB / 0.5669 GB, free: 12.88 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002753/0.5804, allocations: 178.5 kB / 0.567 GB, free: 12.71 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.5804, allocations: 0 / 0.567 GB, free: 12.71 MB / 411.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.000783/0.5812, allocations: 0.5151 MB / 0.5676 GB, free: 12.19 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004962/0.5817, allocations: 1.279 MB / 0.5688 GB, free: 10.8 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.5817, allocations: 4 kB / 0.5688 GB, free: 10.8 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.072e-05/0.5817, allocations: 7.984 kB / 0.5688 GB, free: 10.79 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005303/0.5823, allocations: 127.8 kB / 0.5689 GB, free: 10.67 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.5823, allocations: 11.98 kB / 0.5689 GB, free: 10.66 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004826/0.5828, allocations: 79.62 kB / 0.569 GB, free: 10.58 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.674e-05/0.5828, allocations: 23.98 kB / 0.569 GB, free: 10.55 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.029e-05/0.5828, allocations: 11.91 kB / 0.5691 GB, free: 10.54 MB / 411.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007152/0.5836, allocations: 440.6 kB / 0.5695 GB, free: 10.11 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.5836, allocations: 7.953 kB / 0.5695 GB, free: 10.11 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.907e-06/0.5836, allocations: 11.98 kB / 0.5695 GB, free: 10.09 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004894/0.5841, allocations: 120.2 kB / 0.5696 GB, free: 9.977 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.5841, allocations: 7.938 kB / 0.5696 GB, free: 9.969 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004213/0.5845, allocations: 71.64 kB / 0.5697 GB, free: 9.898 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.998e-05/0.5846, allocations: 23.98 kB / 0.5697 GB, free: 9.875 MB / 411.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 () * 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.0001532/0.5847, allocations: 123.1 kB / 0.5698 GB, free: 9.746 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.476e-05/0.5848, allocations: 51.34 kB / 0.5699 GB, free: 9.695 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006684/0.5855, allocations: 402.6 kB / 0.5703 GB, free: 9.293 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.5855, allocations: 4 kB / 0.5703 GB, free: 9.289 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.5855, allocations: 0 / 0.5703 GB, free: 9.289 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.5856, allocations: 4 kB / 0.5703 GB, free: 9.285 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005878/0.5861, allocations: 0.5171 MB / 0.5708 GB, free: 8.73 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.5862, allocations: 0 / 0.5708 GB, free: 8.73 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004772/0.5866, allocations: 111.9 kB / 0.5709 GB, free: 8.621 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.192e-06/0.5867, allocations: 4 kB / 0.5709 GB, free: 8.617 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.665e-05/0.5867, allocations: 7.984 kB / 0.5709 GB, free: 8.609 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.5867, allocations: 0 / 0.5709 GB, free: 8.609 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.069e-05/0.5867, allocations: 11.89 kB / 0.5709 GB, free: 8.598 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001206/0.5879, allocations: 0.778 MB / 0.5717 GB, free: 7.773 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002627/0.5882, allocations: 204.2 kB / 0.5719 GB, free: 7.555 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.425e-05/0.5883, allocations: 8 kB / 0.5719 GB, free: 7.547 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004251/0.5887, allocations: 64 kB / 0.5719 GB, free: 7.484 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001342/0.5889, allocations: 51.92 kB / 0.572 GB, free: 7.434 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.702e-05/0.5889, allocations: 16 kB / 0.572 GB, free: 7.418 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0004062/0.5893, allocations: 334.9 kB / 0.5723 GB, free: 7.094 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5893, allocations: 0 / 0.5723 GB, free: 7.094 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0008527/0.5902, allocations: 207.6 kB / 0.5725 GB, free: 6.891 MB / 411.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.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.001017/0.5912, allocations: 413.1 kB / 0.5729 GB, free: 6.512 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.001168/0.5924, allocations: 0.8446 MB / 0.5737 GB, free: 5.617 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.5924, allocations: 0 / 0.5737 GB, free: 5.617 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003601/0.5928, allocations: 233.3 kB / 0.5739 GB, free: 5.391 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005859/0.5934, allocations: 110.4 kB / 0.5741 GB, free: 5.281 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001402/0.5948, allocations: 0.7103 MB / 0.5747 GB, free: 4.539 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004228/0.5952, allocations: 0.8841 MB / 0.5756 GB, free: 3.629 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.0005753/0.5958, allocations: 166 kB / 0.5758 GB, free: 3.465 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001434/0.596, allocations: 43.42 kB / 0.5758 GB, free: 3.422 MB / 411.1 MB Notification: Performance of SimCode: time 3.01e-07/0.596, allocations: 0 / 0.5758 GB, free: 3.422 MB / 411.1 MB Notification: Performance of Templates: time 0.01323/0.6092, allocations: 7.613 MB / 0.5832 GB, free: 11.8 MB / 427.1 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