Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest") translateModel(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_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.001464/0.001464, allocations: 109 kB / 17.06 MB, free: 6.02 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.001689/0.001689, allocations: 191 kB / 18 MB, free: 5.109 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.527/1.527, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1767/0.1767, allocations: 38.03 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 59.91 kB / 458.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3461/0.3476, allocations: 58.05 MB / 0.5041 GB, free: 7.816 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest): time 0.006017/0.3536, allocations: 3.829 MB / 0.5078 GB, free: 5.121 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002758/0.3564, allocations: 1.449 MB / 0.5092 GB, free: 4.102 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003812/0.3568, allocations: 13.91 kB / 0.5092 GB, free: 4.098 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004782/0.3573, allocations: 99.98 kB / 0.5093 GB, free: 4.031 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005583/0.3579, allocations: 162 kB / 0.5095 GB, free: 3.918 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009525/0.3589, allocations: 367 kB / 0.5098 GB, free: 3.703 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007902/0.3597, allocations: 0.7578 MB / 0.5106 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003273/0.36, allocations: 230 kB / 0.5108 GB, free: 3.203 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004566/0.3605, allocations: 290.5 kB / 0.5111 GB, free: 3.055 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003147/0.3608, allocations: 287.8 kB / 0.5114 GB, free: 2.898 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.853e-05/0.3609, allocations: 65.81 kB / 0.5114 GB, free: 2.898 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002358/0.3612, allocations: 120.7 kB / 0.5115 GB, free: 2.883 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001509/0.3613, allocations: 160.7 kB / 0.5117 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002344/0.3616, allocations: 296.7 kB / 0.512 GB, free: 2.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000916/0.3625, allocations: 0.8071 MB / 0.5128 GB, free: 2.219 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3625, allocations: 1.156 kB / 0.5128 GB, free: 2.219 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3625, allocations: 0.6094 kB / 0.5128 GB, free: 2.219 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.252e-05/0.3625, allocations: 3.938 kB / 0.5128 GB, free: 2.215 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.001806/0.3644, allocations: 1.01 MB / 0.5138 GB, free: 1.457 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.3644, allocations: 12.73 kB / 0.5138 GB, free: 1.453 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001354/0.3645, allocations: 73.11 kB / 0.5138 GB, free: 1.414 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000806/0.3654, allocations: 0.5213 MB / 0.5143 GB, free: 1.035 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.253e-05/0.3654, allocations: 33.8 kB / 0.5144 GB, free: 1.02 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.765e-05/0.3655, allocations: 42.09 kB / 0.5144 GB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001165/0.3667, allocations: 0.5461 MB / 0.5149 GB, free: 0.707 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.3667, allocations: 1.281 kB / 0.5149 GB, free: 0.707 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.054e-05/0.3667, allocations: 14.88 kB / 0.515 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.3668, allocations: 8.969 kB / 0.515 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001412/0.3682, allocations: 0.5205 MB / 0.5155 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00248/0.3707, allocations: 2.065 MB / 0.5175 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001868/0.3725, allocations: 0.5986 MB / 0.5181 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007914/0.3734, allocations: 234.6 kB / 0.5183 GB, free: 14.6 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.866e-05/0.3734, allocations: 13.44 kB / 0.5183 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001007/0.3744, allocations: 372.2 kB / 0.5187 GB, free: 14.42 MB / 398.1 MB Notification: Performance of pre-optimization done (n=37): time 2.535e-06/0.3745, allocations: 0 / 0.5187 GB, free: 14.42 MB / 398.1 MB Notification: Performance of matching and sorting (n=37): time 0.002319/0.3768, allocations: 0.744 MB / 0.5194 GB, free: 14.17 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001502/0.3769, allocations: 187.3 kB / 0.5196 GB, free: 13.95 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007847/0.3777, allocations: 0.5027 MB / 0.5201 GB, free: 13.71 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.717e-05/0.3778, allocations: 43.97 kB / 0.5201 GB, free: 13.67 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002388/0.378, allocations: 275.1 kB / 0.5204 GB, free: 13.45 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001413/0.3782, allocations: 116.1 kB / 0.5205 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001679/0.3784, allocations: 85.7 kB / 0.5206 GB, free: 13.31 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.3785, allocations: 367.4 kB / 0.5209 GB, free: 12.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006737/0.3792, allocations: 229.4 kB / 0.5211 GB, free: 12.89 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007577/0.38, allocations: 345 kB / 0.5215 GB, free: 12.68 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001459/0.3814, allocations: 0.5729 MB / 0.522 GB, free: 12.34 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.676e-06/0.3815, allocations: 12.97 kB / 0.522 GB, free: 12.33 MB / 398.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001764/0.3832, allocations: 0.7118 MB / 0.5227 GB, free: 12.03 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.765e-05/0.3833, allocations: 66.09 kB / 0.5228 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.454e-05/0.3833, allocations: 2.75 kB / 0.5228 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.809e-05/0.3834, allocations: 5.5 kB / 0.5228 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005324/0.3839, allocations: 109 kB / 0.5229 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.596e-05/0.3839, allocations: 6.25 kB / 0.5229 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005237/0.3845, allocations: 76.58 kB / 0.523 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.901e-05/0.3845, allocations: 19.97 kB / 0.523 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008634/0.3854, allocations: 360.9 kB / 0.5233 GB, free: 11.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000704/0.3861, allocations: 330.4 kB / 0.5237 GB, free: 11.52 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001382/0.3875, allocations: 0.5587 MB / 0.5242 GB, free: 11.18 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.961e-06/0.3875, allocations: 1.375 kB / 0.5242 GB, free: 11.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.0017/0.3892, allocations: 0.6901 MB / 0.5249 GB, free: 10.88 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.282e-05/0.3893, allocations: 64.17 kB / 0.5249 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.3893, allocations: 2.75 kB / 0.5249 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.3893, allocations: 5.844 kB / 0.525 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004599/0.3898, allocations: 101.4 kB / 0.525 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/0.3898, allocations: 8.781 kB / 0.5251 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005144/0.3903, allocations: 71.12 kB / 0.5251 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.562e-05/0.3904, allocations: 20.66 kB / 0.5251 GB, free: 10.77 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.0002297/0.3906, allocations: 215.9 kB / 0.5254 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.3908, allocations: 56.14 kB / 0.5254 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001857/0.3909, allocations: 70.14 kB / 0.5255 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.301e-06/0.391, allocations: 3.562 kB / 0.5255 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/0.391, allocations: 2 kB / 0.5255 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.391, allocations: 3.016 kB / 0.5255 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007787/0.3918, allocations: 0.54 MB / 0.526 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.3918, allocations: 5.344 kB / 0.526 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004314/0.3922, allocations: 81.81 kB / 0.5261 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.762e-06/0.3922, allocations: 3.172 kB / 0.5261 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.635e-05/0.3923, allocations: 11.66 kB / 0.5261 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.3923, allocations: 1.156 kB / 0.5261 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.3923, allocations: 2.516 kB / 0.5261 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002407/0.3947, allocations: 0.8696 MB / 0.527 GB, free: 9.773 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003001/0.395, allocations: 175.2 kB / 0.5271 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001232/0.3952, allocations: 15 kB / 0.5271 GB, free: 9.613 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004461/0.3956, allocations: 52.52 kB / 0.5272 GB, free: 9.602 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001617/0.3958, allocations: 45.28 kB / 0.5272 GB, free: 9.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.944e-05/0.3958, allocations: 17.14 kB / 0.5272 GB, free: 9.586 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006003/0.3965, allocations: 356 kB / 0.5276 GB, free: 9.422 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3965, allocations: 0 / 0.5276 GB, free: 9.422 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008669/0.3973, allocations: 202.1 kB / 0.5278 GB, free: 9.371 MB / 398.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.nextTimeEventScaled,loadDispatcher.data.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001204/0.3986, allocations: 467.5 kB / 0.5282 GB, free: 9.152 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002521/0.4011, allocations: 1.015 MB / 0.5292 GB, free: 8.648 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.4011, allocations: 0 / 0.5292 GB, free: 8.648 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000822/0.4019, allocations: 268.4 kB / 0.5295 GB, free: 8.574 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007842/0.4027, allocations: 141.6 kB / 0.5296 GB, free: 8.512 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002153/0.4049, allocations: 0.928 MB / 0.5305 GB, free: 7.988 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006209/0.4055, allocations: 0.86 MB / 0.5314 GB, free: 7.273 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005296/0.4061, allocations: 120.1 kB / 0.5315 GB, free: 7.246 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000195/0.4063, allocations: 51.02 kB / 0.5315 GB, free: 7.234 MB / 398.1 MB Notification: Performance of SimCode: time 7.02e-07/0.4063, allocations: 1.344 kB / 0.5315 GB, free: 7.234 MB / 398.1 MB Notification: Performance of Templates: time 0.01911/0.4254, allocations: 7.759 MB / 0.5391 GB, free: 3.375 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe 2>&1)