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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001063/0.001064, allocations: 110.2 kB / 17.75 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 185.4 kB / 18.67 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.299/1.299, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.175/0.175, allocations: 38.04 MB / 330.6 MB, free: 8.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 67.89 kB / 458.8 MB, free: 6.824 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2923/0.2942, allocations: 58.05 MB / 0.5048 GB, free: 7.691 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest): time 0.004509/0.2987, allocations: 3.822 MB / 0.5085 GB, free: 5.004 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002498/0.3013, allocations: 1.448 MB / 0.5099 GB, free: 3.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003009/0.3016, allocations: 18.84 kB / 0.5099 GB, free: 3.973 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004417/0.3021, allocations: 102.7 kB / 0.51 GB, free: 3.902 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004348/0.3025, allocations: 155.6 kB / 0.5102 GB, free: 3.793 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007611/0.3033, allocations: 368.5 kB / 0.5105 GB, free: 3.578 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006872/0.304, allocations: 0.7487 MB / 0.5113 GB, free: 3.195 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003292/0.3043, allocations: 227.2 kB / 0.5115 GB, free: 3.086 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004347/0.3048, allocations: 301 kB / 0.5118 GB, free: 2.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002639/0.305, allocations: 274.7 kB / 0.512 GB, free: 2.785 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.651e-05/0.3051, allocations: 66.69 kB / 0.5121 GB, free: 2.785 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002447/0.3054, allocations: 124.3 kB / 0.5122 GB, free: 2.766 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001509/0.3056, allocations: 157.2 kB / 0.5124 GB, free: 2.668 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002309/0.3058, allocations: 299.1 kB / 0.5126 GB, free: 2.453 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008865/0.3067, allocations: 0.8093 MB / 0.5134 GB, free: 2.102 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3067, allocations: 0 / 0.5134 GB, free: 2.102 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3067, allocations: 0 / 0.5134 GB, free: 2.102 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.3067, allocations: 4 kB / 0.5134 GB, free: 2.098 MB / 382.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.001681/0.3084, allocations: 1.014 MB / 0.5144 GB, free: 1.336 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.3085, allocations: 12.89 kB / 0.5144 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001198/0.3086, allocations: 68.86 kB / 0.5145 GB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007497/0.3093, allocations: 0.5252 MB / 0.515 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.573e-05/0.3094, allocations: 29.42 kB / 0.515 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.054e-05/0.3094, allocations: 41.62 kB / 0.5151 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001045/0.3105, allocations: 0.5476 MB / 0.5156 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.3105, allocations: 0 / 0.5156 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.422e-05/0.3106, allocations: 21.55 kB / 0.5156 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/0.3106, allocations: 9.531 kB / 0.5156 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001322/0.3119, allocations: 0.5187 MB / 0.5162 GB, free: 444 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002549/0.3145, allocations: 2.055 MB / 0.5182 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001792/0.3163, allocations: 0.6012 MB / 0.5187 GB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006731/0.317, allocations: 230.4 kB / 0.519 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.305e-05/0.317, allocations: 20.11 kB / 0.519 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008852/0.3179, allocations: 360.6 kB / 0.5193 GB, free: 14.31 MB / 398.1 MB Notification: Performance of pre-optimization done (n=37): time 2.305e-06/0.3179, allocations: 0 / 0.5193 GB, free: 14.31 MB / 398.1 MB Notification: Performance of matching and sorting (n=37): time 0.002239/0.3202, allocations: 0.7476 MB / 0.5201 GB, free: 14.06 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.433e-05/0.3203, allocations: 190.9 kB / 0.5202 GB, free: 13.84 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000631/0.3209, allocations: 0.5035 MB / 0.5207 GB, free: 13.6 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.424e-05/0.321, allocations: 39.14 kB / 0.5208 GB, free: 13.56 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002532/0.3213, allocations: 275.5 kB / 0.521 GB, free: 13.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.3214, allocations: 115.2 kB / 0.5211 GB, free: 13.25 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000163/0.3215, allocations: 85.66 kB / 0.5212 GB, free: 13.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.3217, allocations: 367.2 kB / 0.5216 GB, free: 12.87 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006362/0.3224, allocations: 229 kB / 0.5218 GB, free: 12.79 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000744/0.3231, allocations: 345.3 kB / 0.5221 GB, free: 12.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001326/0.3245, allocations: 0.578 MB / 0.5227 GB, free: 12.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.683e-06/0.3245, allocations: 1.125 kB / 0.5227 GB, free: 12.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001713/0.3262, allocations: 0.7151 MB / 0.5234 GB, free: 11.93 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.851e-05/0.3263, allocations: 64.3 kB / 0.5234 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/0.3263, allocations: 8.172 kB / 0.5235 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.433e-05/0.3263, allocations: 5.688 kB / 0.5235 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004877/0.3268, allocations: 113.3 kB / 0.5236 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.3268, allocations: 6.25 kB / 0.5236 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004955/0.3273, allocations: 78.2 kB / 0.5236 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.429e-05/0.3274, allocations: 20.44 kB / 0.5237 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007519/0.3281, allocations: 362.3 kB / 0.524 GB, free: 11.62 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006225/0.3288, allocations: 329.9 kB / 0.5243 GB, free: 11.41 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001222/0.33, allocations: 0.5586 MB / 0.5249 GB, free: 11.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.835e-06/0.33, allocations: 1.375 kB / 0.5249 GB, free: 11.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.001596/0.3316, allocations: 0.6898 MB / 0.5255 GB, free: 10.77 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.193e-05/0.3317, allocations: 61.73 kB / 0.5256 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.3317, allocations: 3.219 kB / 0.5256 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.718e-06/0.3317, allocations: 5.594 kB / 0.5256 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004509/0.3322, allocations: 101.1 kB / 0.5257 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/0.3322, allocations: 9.25 kB / 0.5257 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004563/0.3327, allocations: 72.53 kB / 0.5258 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.056e-05/0.3327, allocations: 19.39 kB / 0.5258 GB, free: 10.66 MB / 398.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 ($PRE.loadDispatcher.data.nextTimeEvent,$whenCondition2,loadDispatcher.hydroDaily.count,$PRE.loadDispatcher.hydroDaily.count,loadDispatcher.hydroDaily.T_start,$PRE.loadDispatcher.hydroDaily.T_start,loadDispatcher.data.nextTimeEventScaled,$PRE.loadDispatcher.data.nextTimeEventScaled,loadDispatcher.data.nextTimeEvent,$whenCondition3,frequency.count,$PRE.frequency.count,frequency.T_start,$PRE.frequency.T_start,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002223/0.3329, allocations: 220.1 kB / 0.526 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.333, allocations: 56.05 kB / 0.5261 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002378/0.3333, allocations: 70.25 kB / 0.5261 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.3333, allocations: 1.969 kB / 0.5261 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3333, allocations: 5.438 kB / 0.5261 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002245/0.3335, allocations: 175.9 kB / 0.5263 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.711e-05/0.3336, allocations: 14.27 kB / 0.5263 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003941/0.334, allocations: 45.14 kB / 0.5264 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001459/0.3342, allocations: 52.98 kB / 0.5264 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001857/0.3361, allocations: 0.8849 MB / 0.5273 GB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002231/0.3383, allocations: 1.232 MB / 0.5285 GB, free: 8.996 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006929/0.339, allocations: 252.6 kB / 0.5287 GB, free: 8.918 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004845/0.3395, allocations: 359.3 kB / 0.5291 GB, free: 8.75 MB / 398.1 MB Notification: Performance of Backend: time 3.5e-07/0.3395, allocations: 5.531 kB / 0.5291 GB, free: 8.746 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003462/0.343, allocations: 1.298 MB / 0.5303 GB, free: 8.094 MB / 398.1 MB Notification: Performance of SimCode: time 0.001868/0.3449, allocations: 1.348 MB / 0.5317 GB, free: 7.133 MB / 398.1 MB Notification: Performance of Templates: time 0.02006/0.3649, allocations: 10.64 MB / 0.5421 GB, free: 1.922 MB / 398.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches