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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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.001203/0.001203, allocations: 111 kB / 17.75 MB, free: 5.344 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.00112/0.00112, allocations: 186.5 kB / 18.68 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.347/1.347, allocations: 205.1 MB / 224.6 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1756/0.1756, allocations: 37.99 MB / 309.9 MB, free: 5.953 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002577/0.002577, allocations: 75.91 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09591/0.0985, allocations: 55.24 MB / 487.8 MB, free: 8.359 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest): time 0.005105/0.1036, allocations: 3.842 MB / 491.6 MB, free: 4.488 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002362/0.106, allocations: 1.388 MB / 493 MB, free: 3.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004131/0.1065, allocations: 15.94 kB / 493 MB, free: 3.074 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004432/0.1069, allocations: 95.09 kB / 493.1 MB, free: 2.98 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004698/0.1074, allocations: 158.8 kB / 493.3 MB, free: 2.824 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006404/0.1081, allocations: 335.4 kB / 493.6 MB, free: 2.496 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006646/0.1088, allocations: 0.757 MB / 494.4 MB, free: 1.738 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00032/0.1091, allocations: 227.2 kB / 494.6 MB, free: 1.512 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004287/0.1095, allocations: 286.9 kB / 494.9 MB, free: 1.23 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002931/0.1098, allocations: 282.7 kB / 495.1 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.986e-05/0.1099, allocations: 64 kB / 495.2 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002009/0.1101, allocations: 120 kB / 495.3 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001532/0.1103, allocations: 167.4 kB / 495.5 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002348/0.1105, allocations: 298.4 kB / 495.8 MB, free: 324 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007948/0.1113, allocations: 0.8215 MB / 496.6 MB, free: 15.49 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1114, allocations: 4 kB / 496.6 MB, free: 15.49 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1114, allocations: 0 / 496.6 MB, free: 15.49 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.1114, allocations: 0 / 496.6 MB, free: 15.49 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.00175/0.1131, allocations: 1.006 MB / 497.6 MB, free: 14.42 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.1132, allocations: 15.83 kB / 497.6 MB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.1133, allocations: 64.19 kB / 497.7 MB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008133/0.1141, allocations: 0.5396 MB / 498.2 MB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.947e-05/0.1142, allocations: 29.38 kB / 498.3 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.194e-05/0.1142, allocations: 40.12 kB / 498.3 MB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001072/0.1153, allocations: 0.5458 MB / 498.8 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.1153, allocations: 3.938 kB / 498.8 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.051e-05/0.1154, allocations: 12 kB / 498.9 MB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.1154, allocations: 12 kB / 498.9 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001245/0.1167, allocations: 0.5199 MB / 499.4 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002213/0.1189, allocations: 2.064 MB / 0.4897 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001503/0.1204, allocations: 0.5922 MB / 0.4903 GB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000583/0.121, allocations: 235.2 kB / 0.4905 GB, free: 9.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.591e-05/0.1211, allocations: 27.86 kB / 0.4905 GB, free: 9.492 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007768/0.1218, allocations: 362 kB / 0.4909 GB, free: 9.113 MB / 382.1 MB Notification: Performance of pre-optimization done (n=37): time 2.014e-06/0.1219, allocations: 0 / 0.4909 GB, free: 9.113 MB / 382.1 MB Notification: Performance of matching and sorting (n=37): time 0.001969/0.1238, allocations: 0.7432 MB / 0.4916 GB, free: 8.363 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.864e-05/0.1239, allocations: 195.8 kB / 0.4918 GB, free: 8.129 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005373/0.1245, allocations: 0.5106 MB / 0.4923 GB, free: 7.609 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.688e-05/0.1245, allocations: 41.69 kB / 0.4923 GB, free: 7.562 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001946/0.1247, allocations: 268.2 kB / 0.4926 GB, free: 7.297 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.1249, allocations: 126.4 kB / 0.4927 GB, free: 7.172 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001368/0.125, allocations: 82.12 kB / 0.4928 GB, free: 7.086 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.1251, allocations: 366.8 kB / 0.4931 GB, free: 6.719 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006272/0.1258, allocations: 226.5 kB / 0.4933 GB, free: 6.496 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006641/0.1265, allocations: 342 kB / 0.4937 GB, free: 6.113 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001211/0.1277, allocations: 0.5847 MB / 0.4942 GB, free: 5.473 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.1277, allocations: 4 kB / 0.4942 GB, free: 5.469 MB / 382.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.00153/0.1292, allocations: 0.7145 MB / 0.4949 GB, free: 4.734 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.481e-05/0.1293, allocations: 63.41 kB / 0.495 GB, free: 4.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.1293, allocations: 4 kB / 0.495 GB, free: 4.656 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.1293, allocations: 4 kB / 0.495 GB, free: 4.652 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004704/0.1298, allocations: 111.8 kB / 0.4951 GB, free: 4.543 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.1298, allocations: 4.344 kB / 0.4951 GB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004299/0.1303, allocations: 83.47 kB / 0.4952 GB, free: 4.457 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.298e-05/0.1303, allocations: 16 kB / 0.4952 GB, free: 4.441 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006911/0.131, allocations: 360.8 kB / 0.4956 GB, free: 4.086 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006233/0.1316, allocations: 329.9 kB / 0.4959 GB, free: 3.711 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001118/0.1328, allocations: 0.5577 MB / 0.4964 GB, free: 3.098 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.685e-06/0.1328, allocations: 0 / 0.4964 GB, free: 3.098 MB / 382.1 MB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.001442/0.1342, allocations: 0.6873 MB / 0.4971 GB, free: 2.391 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.136e-05/0.1343, allocations: 59.78 kB / 0.4971 GB, free: 2.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.1343, allocations: 11.94 kB / 0.4972 GB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.304e-06/0.1343, allocations: 11.94 kB / 0.4972 GB, free: 2.297 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004186/0.1347, allocations: 99.86 kB / 0.4973 GB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.1348, allocations: 4 kB / 0.4973 GB, free: 2.195 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004149/0.1352, allocations: 67.62 kB / 0.4973 GB, free: 2.129 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.533e-05/0.1352, allocations: 20 kB / 0.4973 GB, free: 2.109 MB / 382.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.0001862/0.1354, allocations: 230.2 kB / 0.4976 GB, free: 1.879 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.023e-05/0.1355, allocations: 67.19 kB / 0.4976 GB, free: 1.812 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001473/0.1357, allocations: 64.59 kB / 0.4977 GB, free: 1.75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.1357, allocations: 0 / 0.4977 GB, free: 1.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1357, allocations: 0 / 0.4977 GB, free: 1.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002046/0.1359, allocations: 180.3 kB / 0.4979 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.694e-05/0.136, allocations: 12 kB / 0.4979 GB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003804/0.1364, allocations: 47.94 kB / 0.4979 GB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002246/0.1366, allocations: 51.88 kB / 0.498 GB, free: 1.445 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001765/0.1384, allocations: 0.8772 MB / 0.4988 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002236/0.1406, allocations: 1.233 MB / 0.5 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000681/0.1413, allocations: 255.9 kB / 0.5003 GB, free: 15.05 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005048/0.1418, allocations: 362.8 kB / 0.5006 GB, free: 14.7 MB / 398.1 MB Notification: Performance of Backend: time 8.42e-07/0.1418, allocations: 0 / 0.5006 GB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003515/0.1454, allocations: 1.295 MB / 0.5019 GB, free: 13.35 MB / 398.1 MB Notification: Performance of SimCode: time 0.002121/0.1475, allocations: 1.336 MB / 0.5032 GB, free: 11.96 MB / 398.1 MB Notification: Performance of Templates: time 0.01854/0.1661, allocations: 10.68 MB / 0.5136 GB, free: 1.262 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)