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.0008444/0.0008445, allocations: 96.73 kB / 16.3 MB, free: 5.586 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.0008947/0.000895, allocations: 184.5 kB / 17.2 MB, free: 5.52 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.239/1.239, allocations: 223.2 MB / 241.1 MB, free: 412 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1643/0.1643, allocations: 38.1 MB / 330.3 MB, free: 8.988 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003158/0.0003159, allocations: 13.27 kB / 400.1 MB, free: 34.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1011, allocations: 59.17 MB / 459.2 MB, free: 7.371 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest): time 0.003605/0.1047, allocations: 3.446 MB / 462.7 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001899/0.1067, allocations: 1.419 MB / 464.1 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002143/0.1069, allocations: 19.88 kB / 464.1 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002694/0.1072, allocations: 67.47 kB / 464.2 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003751/0.1076, allocations: 179.4 kB / 464.4 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005509/0.1081, allocations: 282.6 kB / 464.6 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004913/0.1086, allocations: 432.3 kB / 465 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002452/0.1089, allocations: 145.1 kB / 465.2 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003438/0.1092, allocations: 223.1 kB / 465.4 MB, free: 1.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002277/0.1095, allocations: 207 kB / 465.6 MB, free: 0.957 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.456e-05/0.1095, allocations: 16 kB / 465.6 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000128/0.1097, allocations: 59.92 kB / 465.7 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.1098, allocations: 103.6 kB / 465.8 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.593e-05/0.1099, allocations: 117.4 kB / 465.9 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000493/0.1104, allocations: 0.6002 MB / 466.5 MB, free: 60 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.1104, allocations: 0 / 466.5 MB, free: 60 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1104, allocations: 0 / 466.5 MB, free: 60 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.214e-06/0.1104, allocations: 0 / 466.5 MB, free: 60 kB / 334.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.001534/0.1119, allocations: 0.9239 MB / 467.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.13e-05/0.112, allocations: 8.031 kB / 467.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.888e-05/0.1121, allocations: 70.53 kB / 467.5 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.821e-05/0.1122, allocations: 63.25 kB / 467.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006272/0.1128, allocations: 0.4938 MB / 468.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.796e-05/0.1129, allocations: 28.95 kB / 468.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.071e-05/0.1129, allocations: 40 kB / 468.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001052/0.114, allocations: 0.577 MB / 468.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.114, allocations: 0 / 468.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.274e-05/0.114, allocations: 16 kB / 468.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.1141, allocations: 8 kB / 468.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001278/0.1153, allocations: 0.5785 MB / 469.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002065/0.1174, allocations: 2.091 MB / 471.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001552/0.119, allocations: 0.6509 MB / 472 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.682e-05/0.119, allocations: 8 kB / 472.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008015/0.1198, allocations: 394.2 kB / 472.4 MB, free: 9.805 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.743e-06/0.1199, allocations: 0 / 472.4 MB, free: 9.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.001975/0.1218, allocations: 0.8212 MB / 473.3 MB, free: 8.977 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.241e-05/0.1219, allocations: 199.9 kB / 473.5 MB, free: 8.738 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005039/0.1224, allocations: 0.495 MB / 473.9 MB, free: 8.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.478e-05/0.1225, allocations: 45.7 kB / 474 MB, free: 8.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001785/0.1227, allocations: 276.1 kB / 474.3 MB, free: 7.902 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.794e-05/0.1228, allocations: 118.4 kB / 474.4 MB, free: 7.785 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.617e-05/0.1228, allocations: 12 kB / 474.4 MB, free: 7.773 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.1229, allocations: 366.8 kB / 474.7 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006072/0.1236, allocations: 244.7 kB / 475 MB, free: 7.164 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006769/0.1242, allocations: 369.3 kB / 475.3 MB, free: 6.758 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006464/0.1249, allocations: 324.2 kB / 475.7 MB, free: 6.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1249, allocations: 0 / 475.7 MB, free: 6.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.00152/0.1264, allocations: 0.7627 MB / 476.4 MB, free: 5.652 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004013/0.1269, allocations: 1.291 MB / 477.7 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.1269, allocations: 4 kB / 477.7 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.1269, allocations: 4 kB / 477.7 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004502/0.1273, allocations: 115.9 kB / 477.8 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.197e-05/0.1274, allocations: 11.94 kB / 477.9 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000434/0.1278, allocations: 95.47 kB / 477.9 MB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.686e-05/0.1279, allocations: 20 kB / 478 MB, free: 4.008 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.603e-06/0.1279, allocations: 4 kB / 478 MB, free: 4.004 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001369/0.1292, allocations: 0.6757 MB / 478.6 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.1293, allocations: 4.344 kB / 478.6 MB, free: 3.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.213e-06/0.1293, allocations: 8 kB / 478.7 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004125/0.1297, allocations: 115.8 kB / 478.8 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.1297, allocations: 15.89 kB / 478.8 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004015/0.1301, allocations: 87.53 kB / 478.9 MB, free: 3.094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.421e-05/0.1302, allocations: 20 kB / 478.9 MB, free: 3.074 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.0002538/0.1304, allocations: 279.3 kB / 479.2 MB, free: 2.789 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.306e-05/0.1305, allocations: 59.34 kB / 479.2 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001304/0.1306, allocations: 68.59 kB / 479.3 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.1306, allocations: 4 kB / 479.3 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.1307, allocations: 3.953 kB / 479.3 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.1307, allocations: 4 kB / 479.3 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000517/0.1312, allocations: 0.5361 MB / 479.8 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.1312, allocations: 4 kB / 479.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004009/0.1316, allocations: 95.86 kB / 479.9 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.1316, allocations: 0 / 479.9 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.054e-05/0.1317, allocations: 12 kB / 479.9 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.1317, allocations: 4 kB / 479.9 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.1317, allocations: 11.92 kB / 480 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002035/0.1337, allocations: 0.9835 MB / 480.9 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001986/0.1339, allocations: 184.3 kB / 481.1 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.741e-05/0.134, allocations: 12 kB / 481.1 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003923/0.1344, allocations: 68 kB / 481.2 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.1345, allocations: 47.88 kB / 481.2 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.547e-05/0.1346, allocations: 15.98 kB / 481.3 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003736/0.135, allocations: 354.8 kB / 481.6 MB, free: 224 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.135, allocations: 3.938 kB / 481.6 MB, free: 220 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006115/0.1356, allocations: 187.8 kB / 481.8 MB, free: 32 kB / 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.003214/0.1388, allocations: 2.098 MB / 483.9 MB, free: 14.06 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002306/0.1411, allocations: 1.083 MB / 485 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.1411, allocations: 0 / 485 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007022/0.1418, allocations: 291.9 kB / 485.3 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005712/0.1424, allocations: 119.8 kB / 485.4 MB, free: 12.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006372/0.1488, allocations: 5.374 MB / 490.8 MB, free: 7.027 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000416/0.1493, allocations: 0.8671 MB / 491.6 MB, free: 6.133 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004298/0.1497, allocations: 120.3 kB / 491.7 MB, free: 6.016 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002789/0.15, allocations: 195.3 kB / 491.9 MB, free: 5.824 MB / 366.1 MB Notification: Performance of SimCode: time 8.31e-07/0.15, allocations: 0 / 491.9 MB, free: 5.824 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02469/0.1747, allocations: 11.96 MB / 0.4921 GB, free: 10.07 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002064/0.1749, allocations: 237.5 kB / 0.4923 GB, free: 9.828 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.872/2.047, allocations: 0 / 0.4923 GB, free: 9.828 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