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.001289/0.001289, allocations: 99.45 kB / 17.59 MB, free: 5.562 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.001338/0.001338, allocations: 191.3 kB / 18.52 MB, free: 4.637 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.331/1.331, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1759/0.1759, allocations: 38.02 MB / 330.4 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 64.72 kB / 399.5 MB, free: 34.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08518/0.08655, allocations: 58.06 MB / 457.5 MB, free: 8.055 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest): time 0.005384/0.09197, allocations: 3.813 MB / 461.3 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002493/0.09449, allocations: 1.473 MB / 462.8 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004026/0.09492, allocations: 15.94 kB / 462.8 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004571/0.09543, allocations: 95.09 kB / 462.9 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005634/0.09601, allocations: 154.9 kB / 463.1 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000852/0.09687, allocations: 370.6 kB / 463.4 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008782/0.09776, allocations: 0.7454 MB / 464.2 MB, free: 1.367 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004029/0.09817, allocations: 215.5 kB / 464.4 MB, free: 1.156 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005629/0.09875, allocations: 286.9 kB / 464.7 MB, free: 0.875 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000381/0.09914, allocations: 282.7 kB / 464.9 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001408/0.09929, allocations: 64 kB / 465 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002743/0.09957, allocations: 124 kB / 465.1 MB, free: 424 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001779/0.09976, allocations: 159.4 kB / 465.3 MB, free: 264 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003024/0.1001, allocations: 298.5 kB / 465.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008545/0.1009, allocations: 0.7942 MB / 466.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.101, allocations: 4 kB / 466.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.101, allocations: 0 / 466.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.846e-05/0.101, allocations: 0 / 466.4 MB, free: 15.16 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.001939/0.1029, allocations: 0.9979 MB / 467.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.103, allocations: 11.89 kB / 467.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001521/0.1031, allocations: 68.09 kB / 467.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007269/0.1039, allocations: 0.5064 MB / 468 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.247e-05/0.1039, allocations: 37.36 kB / 468 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.374e-05/0.104, allocations: 36.12 kB / 468 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001147/0.1051, allocations: 0.5497 MB / 468.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.1052, allocations: 3.984 kB / 468.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.899e-05/0.1052, allocations: 12 kB / 468.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.267e-05/0.1053, allocations: 12 kB / 468.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001378/0.1066, allocations: 0.5204 MB / 469.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002428/0.1091, allocations: 2.075 MB / 471.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001604/0.1107, allocations: 0.5961 MB / 471.8 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006271/0.1113, allocations: 239.2 kB / 472 MB, free: 9.215 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.568e-05/0.1114, allocations: 11.98 kB / 472 MB, free: 9.203 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009024/0.1123, allocations: 358.2 kB / 472.4 MB, free: 8.828 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.425e-06/0.1123, allocations: 0 / 472.4 MB, free: 8.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.002179/0.1145, allocations: 0.7497 MB / 473.1 MB, free: 8.074 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.401e-05/0.1146, allocations: 191.9 kB / 473.3 MB, free: 7.844 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006065/0.1152, allocations: 0.5028 MB / 473.8 MB, free: 7.328 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.29e-05/0.1153, allocations: 37.7 kB / 473.9 MB, free: 7.285 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002097/0.1155, allocations: 272.1 kB / 474.1 MB, free: 7.012 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.1156, allocations: 122.4 kB / 474.3 MB, free: 6.891 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001677/0.1158, allocations: 90.03 kB / 474.3 MB, free: 6.793 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.116, allocations: 370.8 kB / 474.7 MB, free: 6.422 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006513/0.1166, allocations: 222.5 kB / 474.9 MB, free: 6.203 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007063/0.1173, allocations: 345.9 kB / 475.3 MB, free: 5.816 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001309/0.1187, allocations: 0.5747 MB / 475.8 MB, free: 5.191 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-06/0.1187, allocations: 7.938 kB / 475.8 MB, free: 5.184 MB / 350.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001691/0.1204, allocations: 0.7099 MB / 476.6 MB, free: 4.457 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.098e-05/0.1204, allocations: 63.39 kB / 476.6 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.1205, allocations: 4 kB / 476.6 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.093e-05/0.1205, allocations: 4 kB / 476.6 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004802/0.121, allocations: 107.8 kB / 476.7 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.121, allocations: 4 kB / 476.7 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000485/0.1215, allocations: 87.78 kB / 476.8 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.28e-05/0.1215, allocations: 16 kB / 476.8 MB, free: 4.164 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007373/0.1223, allocations: 360.8 kB / 477.2 MB, free: 3.805 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006452/0.1229, allocations: 329.9 kB / 477.5 MB, free: 3.438 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001206/0.1242, allocations: 0.5603 MB / 478.1 MB, free: 2.824 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.745e-06/0.1242, allocations: 0 / 478.1 MB, free: 2.824 MB / 350.1 MB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.001527/0.1257, allocations: 0.6898 MB / 478.8 MB, free: 2.117 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.722e-05/0.1258, allocations: 63.39 kB / 478.8 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.1258, allocations: 4.375 kB / 478.8 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.047e-06/0.1258, allocations: 19.92 kB / 478.8 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004349/0.1262, allocations: 99.86 kB / 478.9 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.1262, allocations: 7.938 kB / 478.9 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004445/0.1267, allocations: 63.64 kB / 479 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.835e-05/0.1267, allocations: 23.98 kB / 479 MB, free: 1.828 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.0001768/0.1269, allocations: 214.4 kB / 479.2 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.127, allocations: 55.34 kB / 479.3 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001518/0.1272, allocations: 64.59 kB / 479.4 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.1272, allocations: 4 kB / 479.4 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.1272, allocations: 4 kB / 479.4 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.1272, allocations: 11.92 kB / 479.4 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000572/0.1278, allocations: 0.5361 MB / 479.9 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.1278, allocations: 4 kB / 479.9 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004122/0.1282, allocations: 83.88 kB / 480 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.1282, allocations: 0 / 480 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.366e-05/0.1283, allocations: 11.98 kB / 480 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.1283, allocations: 4 kB / 480 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.1283, allocations: 0 / 480 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002098/0.1304, allocations: 0.877 MB / 480.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000203/0.1306, allocations: 180.3 kB / 481.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.581e-05/0.1307, allocations: 12 kB / 481.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003913/0.1311, allocations: 43.94 kB / 481.1 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/0.1312, allocations: 52 kB / 481.2 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.674e-05/0.1313, allocations: 16 kB / 481.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003868/0.1317, allocations: 354.8 kB / 481.5 MB, free: 15.22 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1317, allocations: 0 / 481.5 MB, free: 15.22 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006469/0.1323, allocations: 191.6 kB / 481.7 MB, free: 15.04 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.001001/0.1333, allocations: 490.9 kB / 482.2 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002278/0.1356, allocations: 1.041 MB / 483.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.1357, allocations: 0 / 483.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007038/0.1364, allocations: 251.7 kB / 483.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006439/0.137, allocations: 137.9 kB / 483.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00174/0.1388, allocations: 0.9748 MB / 484.6 MB, free: 12.24 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003789/0.1392, allocations: 0.8591 MB / 485.5 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001851/0.1394, allocations: 51.42 kB / 485.5 MB, free: 11.3 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1394, allocations: 0 / 485.5 MB, free: 11.3 MB / 366.1 MB Notification: Performance of Templates: time 0.01139/0.1508, allocations: 7.944 MB / 493.5 MB, free: 3.395 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)