Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_latest_PowerSystems_Examples_PowerWorld_Test_LoadDispatcherTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest,fileNamePrefix="PowerSystems_latest_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.0007868/0.0007868, allocations: 88.16 kB / 16.31 MB, free: 5.555 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.000841/0.0008411, allocations: 181.2 kB / 17.21 MB, free: 5.473 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.472/1.472, allocations: 223.2 MB / 241.2 MB, free: 292 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1937/0.1937, allocations: 38.1 MB / 330.4 MB, free: 8.844 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00038/0.0003802, allocations: 8 kB / 400.2 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1018, allocations: 59.17 MB / 459.3 MB, free: 7.301 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest): time 0.003997/0.1058, allocations: 3.493 MB / 462.8 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002201/0.1081, allocations: 1.415 MB / 464.2 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000331/0.1084, allocations: 19.88 kB / 464.3 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004012/0.1088, allocations: 83.39 kB / 464.3 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003873/0.1092, allocations: 139 kB / 464.5 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006815/0.1099, allocations: 270.8 kB / 464.7 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006853/0.1106, allocations: 0.6399 MB / 465.4 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002871/0.1109, allocations: 149.1 kB / 465.5 MB, free: 1.078 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004097/0.1113, allocations: 211 kB / 465.7 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002616/0.1116, allocations: 222.8 kB / 466 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.268e-05/0.1117, allocations: 24 kB / 466 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001652/0.1119, allocations: 67.97 kB / 466 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.112, allocations: 99.58 kB / 466.1 MB, free: 476 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.853e-05/0.1121, allocations: 117.4 kB / 466.3 MB, free: 352 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005217/0.1126, allocations: 0.6041 MB / 466.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1126, allocations: 0 / 466.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1126, allocations: 0 / 466.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.226e-06/0.1126, allocations: 0 / 466.9 MB, free: 15.74 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.001616/0.1143, allocations: 0.92 MB / 467.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.1143, allocations: 8.031 kB / 467.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.024e-05/0.1144, allocations: 78.52 kB / 467.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000105/0.1145, allocations: 67.25 kB / 467.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006554/0.1152, allocations: 0.4899 MB / 468.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.291e-05/0.1152, allocations: 32.95 kB / 468.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.447e-05/0.1153, allocations: 39.98 kB / 468.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/0.1164, allocations: 0.5731 MB / 469.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.1164, allocations: 0 / 469.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.004e-05/0.1164, allocations: 12 kB / 469.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/0.1165, allocations: 8 kB / 469.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001225/0.1177, allocations: 0.5824 MB / 469.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002125/0.1198, allocations: 2.087 MB / 471.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001501/0.1214, allocations: 0.6541 MB / 472.4 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00058/0.1219, allocations: 267.3 kB / 472.7 MB, free: 9.629 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.589e-05/0.122, allocations: 12 kB / 472.7 MB, free: 9.617 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007922/0.1228, allocations: 394.2 kB / 473.1 MB, free: 9.207 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.953e-06/0.1228, allocations: 0 / 473.1 MB, free: 9.207 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.001966/0.1248, allocations: 0.8285 MB / 473.9 MB, free: 8.371 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.813e-05/0.1249, allocations: 191.9 kB / 474.1 MB, free: 8.141 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005538/0.1255, allocations: 0.4951 MB / 474.6 MB, free: 7.633 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.735e-05/0.1255, allocations: 41.7 kB / 474.6 MB, free: 7.586 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000194/0.1257, allocations: 272.1 kB / 474.9 MB, free: 7.312 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.877e-05/0.1258, allocations: 122.4 kB / 475 MB, free: 7.191 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.072e-05/0.1259, allocations: 8 kB / 475 MB, free: 7.184 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.126, allocations: 378.8 kB / 475.4 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006003/0.1266, allocations: 240.7 kB / 475.6 MB, free: 6.566 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006512/0.1273, allocations: 369.2 kB / 476 MB, free: 6.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006354/0.1279, allocations: 324.3 kB / 476.3 MB, free: 5.836 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.128, allocations: 4 kB / 476.3 MB, free: 5.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001524/0.1295, allocations: 0.7592 MB / 477.1 MB, free: 5.055 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001318/0.1296, allocations: 250.6 kB / 477.3 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.1296, allocations: 4 kB / 477.3 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.1297, allocations: 4 kB / 477.3 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004877/0.1302, allocations: 119.8 kB / 477.4 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.292e-05/0.1302, allocations: 11.94 kB / 477.4 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004347/0.1306, allocations: 91.53 kB / 477.5 MB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.212e-05/0.1307, allocations: 20 kB / 477.5 MB, free: 4.508 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.555e-06/0.1307, allocations: 6.344 kB / 477.6 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001367/0.1321, allocations: 0.6745 MB / 478.2 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.1321, allocations: 4 kB / 478.2 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.862e-06/0.1321, allocations: 4 kB / 478.2 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004114/0.1325, allocations: 116.1 kB / 478.3 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.1325, allocations: 15.92 kB / 478.4 MB, free: 3.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000405/0.1329, allocations: 79.58 kB / 478.4 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.635e-05/0.133, allocations: 20 kB / 478.5 MB, free: 3.582 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 ($whenCondition2,$PRE.loadDispatcher.data.nextTimeEvent,$whenCondition3,loadDispatcher.data.nextTimeEvent,$PRE.loadDispatcher.data.nextTimeEventScaled,loadDispatcher.data.nextTimeEventScaled,$PRE.loadDispatcher.hydroDaily.T_start,loadDispatcher.hydroDaily.T_start,$PRE.loadDispatcher.hydroDaily.count,loadDispatcher.hydroDaily.count,$whenCondition1,$PRE.frequency.T_start,frequency.T_start,$PRE.frequency.count,frequency.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003142/0.1333, allocations: 287.2 kB / 478.7 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.683e-05/0.1334, allocations: 59.34 kB / 478.8 MB, free: 3.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001439/0.1336, allocations: 64.59 kB / 478.9 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.1336, allocations: 7.938 kB / 478.9 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.1336, allocations: 4 kB / 478.9 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.1336, allocations: 3.984 kB / 478.9 MB, free: 3.145 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005795/0.1342, allocations: 0.5399 MB / 479.4 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.1342, allocations: 7.938 kB / 479.4 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003936/0.1346, allocations: 87.94 kB / 479.5 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.1346, allocations: 0 / 479.5 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.799e-05/0.1347, allocations: 23.98 kB / 479.5 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.1347, allocations: 3.938 kB / 479.5 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.1347, allocations: 0 / 479.5 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002153/0.1368, allocations: 0.9503 MB / 480.5 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000272/0.1371, allocations: 184.3 kB / 480.7 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.712e-05/0.1372, allocations: 15.94 kB / 480.7 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003706/0.1376, allocations: 64 kB / 480.7 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001433/0.1378, allocations: 55.81 kB / 480.8 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.183e-05/0.1378, allocations: 12 kB / 480.8 MB, free: 1.113 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004588/0.1383, allocations: 358.8 kB / 481.2 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1383, allocations: 0 / 481.2 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006953/0.139, allocations: 187.6 kB / 481.3 MB, free: 0.582 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003399/0.1424, allocations: 1.853 MB / 483.2 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002402/0.1448, allocations: 1.084 MB / 484.3 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.1448, allocations: 0 / 484.3 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006999/0.1455, allocations: 295.8 kB / 484.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007615/0.1463, allocations: 128 kB / 484.7 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006522/0.1529, allocations: 3.449 MB / 488.1 MB, free: 9.762 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003945/0.1533, allocations: 0.8633 MB / 489 MB, free: 8.871 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004714/0.1538, allocations: 120.2 kB / 489.1 MB, free: 8.754 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003332/0.1541, allocations: 191.4 kB / 489.3 MB, free: 8.566 MB / 366.1 MB Notification: Performance of SimCode: time 1.273e-06/0.1541, allocations: 0 / 489.3 MB, free: 8.566 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02492/0.179, allocations: 11.99 MB / 0.4896 GB, free: 12.79 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001806/0.1793, allocations: 244.5 kB / 0.4898 GB, free: 12.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.179/2.358, allocations: 0 / 0.4898 GB, free: 12.52 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_LoadDispatcherTest_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_LoadDispatcherTest.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest_res.mat does not exist to compare? outputFormat=mat