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: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_LoadDispatcherTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_LoadDispatcherTest",fmuType="me",version="2.0",platforms={"static"}) 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: 107.1 kB / 16.92 MB, free: 5.777 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.001109/0.001109, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.308/1.308, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1772/0.1772, allocations: 38.01 MB / 329.7 MB, free: 8.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001228, allocations: 70 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09097/0.09222, allocations: 58.06 MB / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest): time 0.00619/0.09844, allocations: 3.826 MB / 460.8 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003005/0.1015, allocations: 1.457 MB / 462.2 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005213/0.102, allocations: 19.94 kB / 462.3 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005351/0.1026, allocations: 103.1 kB / 462.4 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007955/0.1034, allocations: 158.8 kB / 462.5 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001115/0.1046, allocations: 362.5 kB / 462.9 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009812/0.1056, allocations: 0.7493 MB / 463.6 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004034/0.106, allocations: 223.5 kB / 463.8 MB, free: 1.047 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005764/0.1066, allocations: 283 kB / 464.1 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004176/0.107, allocations: 282.7 kB / 464.4 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001535/0.1072, allocations: 64 kB / 464.5 MB, free: 440 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000306/0.1075, allocations: 131.9 kB / 464.6 MB, free: 308 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001869/0.1077, allocations: 155.5 kB / 464.7 MB, free: 152 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003233/0.108, allocations: 298.4 kB / 465 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008625/0.1089, allocations: 0.7905 MB / 465.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1089, allocations: 0 / 465.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1089, allocations: 0 / 465.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.12e-05/0.1089, allocations: 4 kB / 465.8 MB, free: 15.06 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.001974/0.1109, allocations: 0.9979 MB / 466.8 MB, free: 14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.111, allocations: 11.89 kB / 466.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.952e-05/0.1111, allocations: 70.72 kB / 466.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001393/0.1112, allocations: 68.09 kB / 467 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006777/0.1119, allocations: 0.5064 MB / 467.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.058e-05/0.1119, allocations: 37.3 kB / 467.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.55e-05/0.112, allocations: 39.94 kB / 467.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/0.1131, allocations: 0.5497 MB / 468.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.1131, allocations: 0 / 468.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.258e-05/0.1132, allocations: 16 kB / 468.1 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/0.1132, allocations: 8 kB / 468.1 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001301/0.1145, allocations: 0.5199 MB / 468.6 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002209/0.1167, allocations: 2.079 MB / 470.7 MB, free: 9.906 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001641/0.1184, allocations: 0.5884 MB / 471.3 MB, free: 9.281 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000641/0.119, allocations: 231.3 kB / 471.5 MB, free: 9.043 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.197e-05/0.1191, allocations: 11.98 kB / 471.5 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009333/0.12, allocations: 358.2 kB / 471.9 MB, free: 8.656 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.134e-06/0.12, allocations: 0 / 471.9 MB, free: 8.656 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.00209/0.1221, allocations: 0.7488 MB / 472.6 MB, free: 7.902 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.587e-05/0.1222, allocations: 196.2 kB / 472.8 MB, free: 7.668 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000603/0.1229, allocations: 0.4951 MB / 473.3 MB, free: 7.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.443e-05/0.1229, allocations: 41.7 kB / 473.4 MB, free: 7.113 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000216/0.1231, allocations: 268.1 kB / 473.6 MB, free: 6.844 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.1233, allocations: 130.3 kB / 473.8 MB, free: 6.715 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001483/0.1234, allocations: 82.03 kB / 473.8 MB, free: 6.625 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1236, allocations: 370.8 kB / 474.2 MB, free: 6.254 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006489/0.1242, allocations: 226.5 kB / 474.4 MB, free: 6.031 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007684/0.125, allocations: 341.9 kB / 474.8 MB, free: 5.648 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001346/0.1264, allocations: 0.5793 MB / 475.3 MB, free: 5.016 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.1264, allocations: 0 / 475.3 MB, free: 5.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.00162/0.128, allocations: 0.7159 MB / 476.1 MB, free: 4.285 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5e-05/0.1281, allocations: 63.39 kB / 476.1 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.1281, allocations: 4.375 kB / 476.1 MB, free: 4.207 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.1281, allocations: 8 kB / 476.1 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004773/0.1286, allocations: 103.9 kB / 476.2 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.489e-05/0.1286, allocations: 11.94 kB / 476.2 MB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004883/0.1291, allocations: 79.47 kB / 476.3 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.279e-05/0.1292, allocations: 20 kB / 476.3 MB, free: 3.988 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007498/0.1299, allocations: 360.8 kB / 476.7 MB, free: 3.629 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006378/0.1306, allocations: 326 kB / 477 MB, free: 3.266 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00116/0.1318, allocations: 0.5576 MB / 477.6 MB, free: 2.652 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.546e-06/0.1318, allocations: 8 kB / 477.6 MB, free: 2.645 MB / 350.1 MB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.001506/0.1333, allocations: 0.6965 MB / 478.3 MB, free: 1.934 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.194e-05/0.1334, allocations: 67.33 kB / 478.3 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.1334, allocations: 0 / 478.3 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.616e-06/0.1334, allocations: 8 kB / 478.3 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004297/0.1338, allocations: 104.1 kB / 478.4 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.1338, allocations: 8 kB / 478.4 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004467/0.1343, allocations: 67.64 kB / 478.5 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.673e-05/0.1343, allocations: 19.98 kB / 478.5 MB, free: 1.652 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.0001711/0.1345, allocations: 219.2 kB / 478.7 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.745e-05/0.1346, allocations: 55.34 kB / 478.8 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001448/0.1348, allocations: 68.58 kB / 478.9 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.1348, allocations: 12 kB / 478.9 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.1348, allocations: 3.984 kB / 478.9 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.1348, allocations: 0 / 478.9 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005466/0.1353, allocations: 0.5516 MB / 479.4 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1354, allocations: 0 / 479.4 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004006/0.1358, allocations: 75.88 kB / 479.5 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.1358, allocations: 0 / 479.5 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.409e-05/0.1358, allocations: 15.98 kB / 479.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.1358, allocations: 0 / 479.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.1358, allocations: 8 kB / 479.5 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002061/0.1379, allocations: 0.8654 MB / 480.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000197/0.1381, allocations: 184.4 kB / 480.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.342e-05/0.1382, allocations: 12 kB / 480.6 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003836/0.1386, allocations: 43.94 kB / 480.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/0.1387, allocations: 47.94 kB / 480.7 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.873e-05/0.1388, allocations: 16 kB / 480.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000372/0.1391, allocations: 354.8 kB / 481 MB, free: 15.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1392, allocations: 4 kB / 481 MB, free: 15.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006129/0.1398, allocations: 203.5 kB / 481.2 MB, free: 14.84 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.003172/0.143, allocations: 1.775 MB / 483 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002232/0.1452, allocations: 1.025 MB / 484 MB, free: 12.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1452, allocations: 0 / 484 MB, free: 12.13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007107/0.1459, allocations: 275.4 kB / 484.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000663/0.1466, allocations: 136.8 kB / 484.4 MB, free: 11.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007801/0.1544, allocations: 5.06 MB / 489.5 MB, free: 6.461 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003817/0.1548, allocations: 0.8591 MB / 490.4 MB, free: 5.574 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004029/0.1552, allocations: 116.3 kB / 490.5 MB, free: 5.461 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002847/0.1555, allocations: 199.3 kB / 490.7 MB, free: 5.266 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1555, allocations: 0 / 490.7 MB, free: 5.266 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03338/0.1889, allocations: 12.99 MB / 0.4919 GB, free: 8.426 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.416/7.605, allocations: 0 / 0.4919 GB, free: 8.426 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_LoadDispatcherTest_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_LoadDispatcherTest.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe 2>&1)