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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.001113/0.001113, allocations: 94.55 kB / 16.3 MB, free: 5.992 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.001579/0.001579, allocations: 181.3 kB / 17.19 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.475/1.475, allocations: 205.4 MB / 223.4 MB, free: 5.758 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3086/0.3086, allocations: 38.06 MB / 309.7 MB, free: 8.816 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000523/0.0005233, allocations: 18.19 kB / 376.6 MB, free: 15.21 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1254, allocations: 56.33 MB / 432.9 MB, free: 6.773 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest): time 0.003982/0.1294, allocations: 3.445 MB / 436.4 MB, free: 3.305 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002009/0.1314, allocations: 1.366 MB / 437.7 MB, free: 1.93 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002256/0.1317, allocations: 19.88 kB / 437.7 MB, free: 1.91 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003038/0.132, allocations: 67.47 kB / 437.8 MB, free: 1.844 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000418/0.1324, allocations: 191.4 kB / 438 MB, free: 1.656 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005538/0.133, allocations: 251.5 kB / 438.2 MB, free: 1.41 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005597/0.1336, allocations: 440.2 kB / 438.7 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002862/0.1338, allocations: 160.8 kB / 438.8 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004229/0.1343, allocations: 223 kB / 439.1 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002513/0.1345, allocations: 203 kB / 439.3 MB, free: 408 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.792e-05/0.1346, allocations: 20 kB / 439.3 MB, free: 388 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000164/0.1348, allocations: 63.91 kB / 439.3 MB, free: 324 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001129/0.1349, allocations: 103.5 kB / 439.4 MB, free: 220 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001029/0.135, allocations: 117.4 kB / 439.5 MB, free: 96 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000601/0.1356, allocations: 0.5923 MB / 440.1 MB, free: 15.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.1356, allocations: 0 / 440.1 MB, free: 15.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1356, allocations: 0 / 440.1 MB, free: 15.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.1356, allocations: 0 / 440.1 MB, free: 15.5 MB / 382.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.001743/0.1374, allocations: 0.9317 MB / 441.1 MB, free: 14.51 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.1374, allocations: 15.97 kB / 441.1 MB, free: 14.49 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001092/0.1376, allocations: 70.53 kB / 441.2 MB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/0.1377, allocations: 67.16 kB / 441.2 MB, free: 14.35 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006955/0.1384, allocations: 0.4959 MB / 441.7 MB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.492e-05/0.1384, allocations: 29 kB / 441.7 MB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.973e-05/0.1385, allocations: 39.98 kB / 441.8 MB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/0.1396, allocations: 0.5731 MB / 442.4 MB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.1397, allocations: 4 kB / 442.4 MB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.323e-05/0.1397, allocations: 16 kB / 442.4 MB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/0.1397, allocations: 8 kB / 442.4 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001385/0.1411, allocations: 0.5745 MB / 443 MB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002414/0.1436, allocations: 2.091 MB / 445.1 MB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001633/0.1452, allocations: 0.6548 MB / 445.7 MB, free: 9.645 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.864e-05/0.1453, allocations: 8 kB / 445.7 MB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008952/0.1462, allocations: 382.7 kB / 446.1 MB, free: 9.238 MB / 382.1 MB Notification: Performance of pre-optimization done (n=37): time 2.615e-06/0.1462, allocations: 0 / 446.1 MB, free: 9.238 MB / 382.1 MB Notification: Performance of matching and sorting (n=37): time 0.002152/0.1484, allocations: 0.8293 MB / 446.9 MB, free: 8.402 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.1485, allocations: 191.9 kB / 447.1 MB, free: 8.172 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006134/0.1491, allocations: 0.499 MB / 447.6 MB, free: 7.664 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.346e-05/0.1492, allocations: 41.64 kB / 447.6 MB, free: 7.617 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002241/0.1494, allocations: 276.1 kB / 447.9 MB, free: 7.344 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001273/0.1495, allocations: 118.4 kB / 448 MB, free: 7.227 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.801e-05/0.1496, allocations: 12 kB / 448 MB, free: 7.215 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.1497, allocations: 374.8 kB / 448.4 MB, free: 6.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006398/0.1504, allocations: 248.7 kB / 448.7 MB, free: 6.598 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007116/0.1511, allocations: 362.1 kB / 449 MB, free: 6.199 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007104/0.1518, allocations: 328 kB / 449.3 MB, free: 5.867 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.1518, allocations: 0 / 449.3 MB, free: 5.867 MB / 382.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001688/0.1535, allocations: 0.7634 MB / 450.1 MB, free: 5.086 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006037/0.1542, allocations: 1.286 MB / 451.4 MB, free: 3.691 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.1542, allocations: 4 kB / 451.4 MB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/0.1542, allocations: 8 kB / 451.4 MB, free: 3.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004981/0.1547, allocations: 115.9 kB / 451.5 MB, free: 3.566 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.325e-05/0.1547, allocations: 11.92 kB / 451.5 MB, free: 3.555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000515/0.1553, allocations: 99.47 kB / 451.6 MB, free: 3.457 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.231e-05/0.1553, allocations: 20 kB / 451.6 MB, free: 3.438 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.037e-05/0.1553, allocations: 4 kB / 451.6 MB, free: 3.434 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001498/0.1568, allocations: 0.6862 MB / 452.3 MB, free: 2.734 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.1569, allocations: 4 kB / 452.3 MB, free: 2.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.348e-06/0.1569, allocations: 4 kB / 452.3 MB, free: 2.727 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004555/0.1573, allocations: 116.2 kB / 452.4 MB, free: 2.613 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.888e-06/0.1574, allocations: 11.94 kB / 452.5 MB, free: 2.602 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004924/0.1578, allocations: 79.64 kB / 452.5 MB, free: 2.523 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.754e-05/0.1579, allocations: 23.98 kB / 452.6 MB, free: 2.5 MB / 382.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.0003661/0.1583, allocations: 279.2 kB / 452.8 MB, free: 2.219 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.823e-05/0.1584, allocations: 59.33 kB / 452.9 MB, free: 2.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001528/0.1585, allocations: 72.53 kB / 453 MB, free: 2.082 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.1585, allocations: 7.938 kB / 453 MB, free: 2.074 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.728e-06/0.1586, allocations: 4 kB / 453 MB, free: 2.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.1586, allocations: 0 / 453 MB, free: 2.07 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006548/0.1592, allocations: 0.5555 MB / 453.5 MB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.1593, allocations: 0 / 453.5 MB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004269/0.1597, allocations: 91.92 kB / 453.6 MB, free: 1.375 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.823e-06/0.1597, allocations: 0 / 453.6 MB, free: 1.375 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.409e-05/0.1597, allocations: 15.94 kB / 453.6 MB, free: 1.359 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.1598, allocations: 7.938 kB / 453.6 MB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.1598, allocations: 4 kB / 453.6 MB, free: 1.348 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002161/0.1619, allocations: 0.9796 MB / 454.6 MB, free: 328 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002727/0.1622, allocations: 188.2 kB / 454.8 MB, free: 120 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.283e-05/0.1623, allocations: 16.06 kB / 454.8 MB, free: 104 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003997/0.1627, allocations: 63.94 kB / 454.9 MB, free: 40 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.1895/0.3522, allocations: 44.61 kB / 454.9 MB, free: 51.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001385/0.3524, allocations: 20.22 kB / 454.9 MB, free: 51.54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005251/0.3529, allocations: 360.4 kB / 455.3 MB, free: 51.45 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3529, allocations: 0 / 455.3 MB, free: 51.45 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008213/0.3538, allocations: 190.1 kB / 455.5 MB, free: 51.45 MB / 382.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.003076/0.3569, allocations: 2.087 MB / 457.6 MB, free: 50.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002035/0.3589, allocations: 1.073 MB / 458.6 MB, free: 50.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3589, allocations: 5.781 kB / 458.6 MB, free: 50.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006461/0.3596, allocations: 300.6 kB / 458.9 MB, free: 50.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005272/0.3601, allocations: 109.6 kB / 459 MB, free: 50.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0057/0.3658, allocations: 5.384 MB / 464.4 MB, free: 47.19 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002473/0.3661, allocations: 0.8729 MB / 465.3 MB, free: 46.49 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003733/0.3665, allocations: 121.1 kB / 465.4 MB, free: 46.47 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002508/0.3667, allocations: 195.7 kB / 465.6 MB, free: 46.46 MB / 382.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3667, allocations: 0 / 465.6 MB, free: 46.46 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02408/0.3908, allocations: 12.01 MB / 477.6 MB, free: 45.3 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001966/0.3911, allocations: 226.7 kB / 477.8 MB, free: 45.07 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.09/2.481, allocations: 0 / 477.8 MB, free: 45.07 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/linux/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) Environment - environmentSimulation: