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.001053/0.001053, allocations: 108.8 kB / 16.51 MB, free: 6.707 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: 190.5 kB / 17.43 MB, free: 6.066 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.36/1.36, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1774/0.1774, allocations: 38.02 MB / 329.3 MB, free: 9.031 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 69.69 kB / 398.1 MB, free: 34.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1043, allocations: 58.06 MB / 456.2 MB, free: 8.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest): time 0.005904/0.1102, allocations: 4.022 MB / 460.2 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003056/0.1133, allocations: 1.508 MB / 461.7 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003859/0.1138, allocations: 19.88 kB / 461.7 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005098/0.1143, allocations: 79.41 kB / 461.8 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004453/0.1148, allocations: 131.2 kB / 461.9 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007211/0.1155, allocations: 330.8 kB / 462.2 MB, free: 2.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006325/0.1162, allocations: 0.6828 MB / 462.9 MB, free: 1.719 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003554/0.1165, allocations: 211.5 kB / 463.1 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004391/0.117, allocations: 246.8 kB / 463.4 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003048/0.1173, allocations: 250.7 kB / 463.6 MB, free: 1.023 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.044e-05/0.1174, allocations: 28 kB / 463.6 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002095/0.1176, allocations: 83.95 kB / 463.7 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001437/0.1177, allocations: 119.5 kB / 463.8 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002322/0.118, allocations: 258.3 kB / 464.1 MB, free: 0.543 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007081/0.1187, allocations: 0.7632 MB / 464.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1187, allocations: 4 kB / 464.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.81e-07/0.1187, allocations: 0 / 464.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.1187, allocations: 0 / 464.9 MB, free: 15.77 MB / 350.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.00182/0.1205, allocations: 0.9979 MB / 465.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.1206, allocations: 8.031 kB / 465.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001266/0.1207, allocations: 68.09 kB / 465.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007139/0.1214, allocations: 0.5179 MB / 466.4 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.889e-05/0.1215, allocations: 25.38 kB / 466.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.959e-05/0.1216, allocations: 44.11 kB / 466.5 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/0.1227, allocations: 0.5497 MB / 467.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.1227, allocations: 3.938 kB / 467.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.521e-05/0.1228, allocations: 16 kB / 467.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.346e-05/0.1228, allocations: 12 kB / 467.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00137/0.1242, allocations: 0.5121 MB / 467.6 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002388/0.1266, allocations: 2.067 MB / 469.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001642/0.1282, allocations: 0.5961 MB / 470.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006422/0.1289, allocations: 243.2 kB / 470.5 MB, free: 9.824 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.002e-05/0.129, allocations: 11.98 kB / 470.5 MB, free: 9.812 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009323/0.1299, allocations: 362.2 kB / 470.9 MB, free: 9.434 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.185e-06/0.1299, allocations: 0 / 470.9 MB, free: 9.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.002175/0.1321, allocations: 0.7414 MB / 471.6 MB, free: 8.688 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/0.1322, allocations: 195.9 kB / 471.8 MB, free: 8.453 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000576/0.1328, allocations: 0.5029 MB / 472.3 MB, free: 7.938 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.729e-05/0.1329, allocations: 33.7 kB / 472.3 MB, free: 7.898 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000237/0.1331, allocations: 276.1 kB / 472.6 MB, free: 7.621 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.1332, allocations: 118.4 kB / 472.7 MB, free: 7.504 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001736/0.1334, allocations: 90.03 kB / 472.8 MB, free: 7.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.1336, allocations: 370.8 kB / 473.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006637/0.1342, allocations: 222.5 kB / 473.4 MB, free: 6.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007676/0.135, allocations: 334 kB / 473.7 MB, free: 6.441 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001401/0.1364, allocations: 0.5831 MB / 474.3 MB, free: 5.805 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.1364, allocations: 11.88 kB / 474.3 MB, free: 5.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001782/0.1382, allocations: 0.7078 MB / 475 MB, free: 5.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.846e-05/0.1383, allocations: 63.78 kB / 475.1 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.1383, allocations: 11.94 kB / 475.1 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.1383, allocations: 4 kB / 475.1 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004824/0.1388, allocations: 111.8 kB / 475.2 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.1388, allocations: 4 kB / 475.2 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004515/0.1393, allocations: 83.47 kB / 475.3 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.376e-05/0.1394, allocations: 16 kB / 475.3 MB, free: 4.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007386/0.1401, allocations: 364.8 kB / 475.7 MB, free: 4.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006201/0.1407, allocations: 325.9 kB / 476 MB, free: 4.047 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001201/0.1419, allocations: 0.5566 MB / 476.5 MB, free: 3.438 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.265e-06/0.142, allocations: 3.938 kB / 476.5 MB, free: 3.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.001513/0.1435, allocations: 0.6901 MB / 477.2 MB, free: 2.727 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.475e-05/0.1435, allocations: 63.41 kB / 477.3 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.1436, allocations: 7.938 kB / 477.3 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.879e-06/0.1436, allocations: 8 kB / 477.3 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004536/0.144, allocations: 100.2 kB / 477.4 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.144, allocations: 11.98 kB / 477.4 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004393/0.1445, allocations: 63.64 kB / 477.5 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.724e-05/0.1445, allocations: 16 kB / 477.5 MB, free: 2.449 MB / 350.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.0003147/0.1449, allocations: 222.3 kB / 477.7 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.145, allocations: 55.34 kB / 477.8 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001904/0.1452, allocations: 68.59 kB / 477.8 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.1452, allocations: 8 kB / 477.8 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.395e-05/0.1452, allocations: 4 kB / 477.8 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.1452, allocations: 3.984 kB / 477.9 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006848/0.1459, allocations: 0.5322 MB / 478.4 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.1459, allocations: 4 kB / 478.4 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004116/0.1463, allocations: 83.86 kB / 478.5 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.1464, allocations: 0 / 478.5 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.911e-05/0.1464, allocations: 11.98 kB / 478.5 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.1464, allocations: 8 kB / 478.5 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.1464, allocations: 0 / 478.5 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002097/0.1485, allocations: 0.8731 MB / 479.4 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000224/0.1488, allocations: 180.4 kB / 479.5 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.667e-05/0.1489, allocations: 11.98 kB / 479.6 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004176/0.1493, allocations: 47.94 kB / 479.6 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001493/0.1494, allocations: 43.94 kB / 479.6 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.455e-05/0.1495, allocations: 19.94 kB / 479.7 MB, free: 184 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000479/0.15, allocations: 354.9 kB / 480 MB, free: 15.83 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.15, allocations: 4.062 kB / 480 MB, free: 15.83 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000761/0.1508, allocations: 191.6 kB / 480.2 MB, free: 15.64 MB / 366.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.001359/0.1521, allocations: 471.5 kB / 480.7 MB, free: 15.35 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002515/0.1547, allocations: 1.013 MB / 481.7 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.1547, allocations: 0.8125 kB / 481.7 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007054/0.1554, allocations: 274.5 kB / 481.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008082/0.1562, allocations: 124.7 kB / 482.1 MB, free: 13.9 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002133/0.1583, allocations: 1.111 MB / 483.2 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004514/0.1588, allocations: 0.8632 MB / 484 MB, free: 11.87 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004705/0.1593, allocations: 108.3 kB / 484.1 MB, free: 11.76 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001737/0.1595, allocations: 51.41 kB / 484.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of SimCode: time 4.4e-07/0.1595, allocations: 0 / 484.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of Templates: time 0.01495/0.1744, allocations: 7.174 MB / 491.4 MB, free: 4.59 MB / 366.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)