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.00135/0.00135, allocations: 114.3 kB / 17.75 MB, free: 5.305 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.00132/0.00132, allocations: 189.3 kB / 18.68 MB, free: 4.379 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.292/1.292, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1709/0.1709, allocations: 38.04 MB / 330.6 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 63.91 kB / 458.8 MB, free: 6.828 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2801, allocations: 58.06 MB / 0.5048 GB, free: 7.738 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest): time 0.004149/0.2843, allocations: 3.823 MB / 0.5085 GB, free: 5.043 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002032/0.2864, allocations: 1.453 MB / 0.5099 GB, free: 4.012 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002512/0.2866, allocations: 13.69 kB / 0.5099 GB, free: 4.008 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003808/0.287, allocations: 104.1 kB / 0.51 GB, free: 3.938 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003965/0.2875, allocations: 162.9 kB / 0.5102 GB, free: 3.824 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006571/0.2881, allocations: 362 kB / 0.5105 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006686/0.2888, allocations: 0.7492 MB / 0.5113 GB, free: 3.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003149/0.2891, allocations: 235.2 kB / 0.5115 GB, free: 3.113 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004065/0.2895, allocations: 297.1 kB / 0.5118 GB, free: 2.961 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002678/0.2898, allocations: 276.7 kB / 0.512 GB, free: 2.816 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.647e-05/0.2899, allocations: 65.41 kB / 0.5121 GB, free: 2.816 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000206/0.2901, allocations: 125.1 kB / 0.5122 GB, free: 2.797 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001381/0.2903, allocations: 157.2 kB / 0.5124 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000205/0.2905, allocations: 295.7 kB / 0.5127 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008387/0.2913, allocations: 0.8105 MB / 0.5134 GB, free: 2.133 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.2914, allocations: 0 / 0.5134 GB, free: 2.133 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.2914, allocations: 4 kB / 0.5134 GB, free: 2.129 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.426e-05/0.2914, allocations: 0 / 0.5134 GB, free: 2.129 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.001587/0.293, allocations: 1.027 MB / 0.5145 GB, free: 1.352 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.293, allocations: 12.36 kB / 0.5145 GB, free: 1.348 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001267/0.2932, allocations: 77.44 kB / 0.5145 GB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000704/0.2939, allocations: 0.5298 MB / 0.5151 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.684e-05/0.2939, allocations: 29.3 kB / 0.5151 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.447e-05/0.294, allocations: 44.62 kB / 0.5151 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001039/0.295, allocations: 0.5446 MB / 0.5157 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.295, allocations: 7.938 kB / 0.5157 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.11e-05/0.2951, allocations: 18.55 kB / 0.5157 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.2951, allocations: 9.156 kB / 0.5157 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001306/0.2964, allocations: 0.5146 MB / 0.5162 GB, free: 448 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002276/0.2987, allocations: 2.059 MB / 0.5182 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001731/0.3005, allocations: 0.5947 MB / 0.5188 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006812/0.3011, allocations: 242.2 kB / 0.519 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.416e-05/0.3012, allocations: 17.05 kB / 0.519 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008464/0.3021, allocations: 356.7 kB / 0.5194 GB, free: 14.31 MB / 398.1 MB Notification: Performance of pre-optimization done (n=37): time 3.967e-06/0.3021, allocations: 3.984 kB / 0.5194 GB, free: 14.31 MB / 398.1 MB Notification: Performance of matching and sorting (n=37): time 0.002086/0.3042, allocations: 0.7507 MB / 0.5201 GB, free: 14.06 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.959e-05/0.3043, allocations: 199.3 kB / 0.5203 GB, free: 13.83 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006292/0.3049, allocations: 0.5026 MB / 0.5208 GB, free: 13.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.451e-05/0.305, allocations: 40.09 kB / 0.5208 GB, free: 13.55 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002116/0.3052, allocations: 275.5 kB / 0.5211 GB, free: 13.33 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/0.3053, allocations: 128.3 kB / 0.5212 GB, free: 13.23 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001609/0.3055, allocations: 81.22 kB / 0.5213 GB, free: 13.19 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.3057, allocations: 371.5 kB / 0.5216 GB, free: 12.85 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006367/0.3063, allocations: 229.1 kB / 0.5219 GB, free: 12.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000709/0.307, allocations: 341 kB / 0.5222 GB, free: 12.56 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001257/0.3083, allocations: 0.5793 MB / 0.5228 GB, free: 12.21 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.3083, allocations: 5 kB / 0.5228 GB, free: 12.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.00162/0.3099, allocations: 0.7173 MB / 0.5235 GB, free: 11.9 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.43e-05/0.31, allocations: 66.02 kB / 0.5235 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.31, allocations: 3.125 kB / 0.5235 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.31, allocations: 10.31 kB / 0.5235 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004775/0.3105, allocations: 108.2 kB / 0.5236 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.403e-05/0.3105, allocations: 6.344 kB / 0.5236 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004597/0.311, allocations: 72.45 kB / 0.5237 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.516e-05/0.3111, allocations: 19.36 kB / 0.5237 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007342/0.3118, allocations: 362 kB / 0.5241 GB, free: 11.61 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006481/0.3125, allocations: 334.2 kB / 0.5244 GB, free: 11.39 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001144/0.3136, allocations: 0.5548 MB / 0.5249 GB, free: 11.06 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.906e-06/0.3136, allocations: 5.719 kB / 0.5249 GB, free: 11.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.001502/0.3151, allocations: 0.6853 MB / 0.5256 GB, free: 10.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.447e-05/0.3152, allocations: 62.52 kB / 0.5257 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.3152, allocations: 3.125 kB / 0.5257 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.977e-06/0.3152, allocations: 5.312 kB / 0.5257 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004262/0.3156, allocations: 103.1 kB / 0.5258 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.3157, allocations: 7.281 kB / 0.5258 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004221/0.3161, allocations: 71.09 kB / 0.5259 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.131e-05/0.3161, allocations: 19.61 kB / 0.5259 GB, free: 10.65 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.0001886/0.3163, allocations: 221.2 kB / 0.5261 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001081/0.3165, allocations: 58.97 kB / 0.5261 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001484/0.3166, allocations: 70.48 kB / 0.5262 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.3166, allocations: 2.891 kB / 0.5262 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.3166, allocations: 5.312 kB / 0.5262 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002106/0.3168, allocations: 175.9 kB / 0.5264 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.894e-05/0.3169, allocations: 14.81 kB / 0.5264 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003812/0.3173, allocations: 44.67 kB / 0.5264 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000136/0.3175, allocations: 48.97 kB / 0.5265 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001799/0.3193, allocations: 0.8865 MB / 0.5274 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002224/0.3215, allocations: 1.238 MB / 0.5286 GB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006742/0.3222, allocations: 257.7 kB / 0.5288 GB, free: 8.891 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004775/0.3227, allocations: 367.7 kB / 0.5292 GB, free: 8.715 MB / 398.1 MB Notification: Performance of Backend: time 7.42e-07/0.3227, allocations: 0 / 0.5292 GB, free: 8.715 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003336/0.326, allocations: 1.288 MB / 0.5304 GB, free: 8.07 MB / 398.1 MB Notification: Performance of SimCode: time 0.001905/0.328, allocations: 1.361 MB / 0.5317 GB, free: 7.09 MB / 398.1 MB Notification: Performance of Templates: time 0.01691/0.3449, allocations: 10.66 MB / 0.5421 GB, free: 1.816 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