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/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001066/0.001067, allocations: 177.6 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.811/1.811, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009237/0.0009242, allocations: 89.58 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1738/0.1738, allocations: 37.99 MB / 348.1 MB, free: 7.762 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.918e-05/1.919e-05, allocations: 4 kB / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1115, allocations: 56.33 MB / 467 MB, free: 6.465 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4317/0.5433, allocations: 93.9 MB / 0.5478 GB, free: 0.8867 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00163/0.545, allocations: 0.5827 MB / 0.5483 GB, free: 312 kB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03126/0.5762, allocations: 11.48 MB / 0.5595 GB, free: 4.816 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.5763, allocations: 0 / 0.5595 GB, free: 4.816 MB / 395.1 MB Notification: Performance of Transformations before backend: time 4.684e-05/0.5763, allocations: 8 kB / 0.5595 GB, free: 4.809 MB / 395.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.001626/0.578, allocations: 0.8775 MB / 0.5604 GB, free: 3.871 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.578, allocations: 8.031 kB / 0.5604 GB, free: 3.863 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001318/0.5782, allocations: 67.2 kB / 0.5605 GB, free: 3.797 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007944/0.579, allocations: 0.5111 MB / 0.561 GB, free: 3.242 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.397e-05/0.579, allocations: 12 kB / 0.561 GB, free: 3.23 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.565e-05/0.5791, allocations: 28 kB / 0.561 GB, free: 3.203 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007303/0.5798, allocations: 413.3 kB / 0.5614 GB, free: 2.801 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007934/0.5806, allocations: 458.6 kB / 0.5618 GB, free: 2.301 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.5806, allocations: 0 / 0.5618 GB, free: 2.301 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.673e-05/0.5807, allocations: 3.953 kB / 0.5618 GB, free: 2.297 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.306e-05/0.5807, allocations: 12 kB / 0.5619 GB, free: 2.285 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002779/0.5835, allocations: 2.057 MB / 0.5639 GB, free: 152 kB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009818/0.5845, allocations: 490.7 kB / 0.5643 GB, free: 15.63 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00025/0.5848, allocations: 183.4 kB / 0.5645 GB, free: 15.44 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.436e-05/0.5848, allocations: 7.984 kB / 0.5645 GB, free: 15.43 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004665/0.5853, allocations: 310.2 kB / 0.5648 GB, free: 15.11 MB / 411.1 MB Notification: Performance of pre-optimization done (n=37): time 3.096e-06/0.5853, allocations: 0 / 0.5648 GB, free: 15.11 MB / 411.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009001/0.5862, allocations: 435.9 kB / 0.5652 GB, free: 14.68 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/0.5863, allocations: 187.9 kB / 0.5654 GB, free: 14.45 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005284/0.5869, allocations: 433.3 kB / 0.5658 GB, free: 14.02 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 4.895e-05/0.5869, allocations: 33.7 kB / 0.5658 GB, free: 13.98 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002103/0.5872, allocations: 284.3 kB / 0.5661 GB, free: 13.7 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.5873, allocations: 114.4 kB / 0.5662 GB, free: 13.58 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.611e-05/0.5873, allocations: 4.062 kB / 0.5662 GB, free: 13.58 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.5875, allocations: 366.8 kB / 0.5666 GB, free: 13.21 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002507/0.5878, allocations: 156.8 kB / 0.5667 GB, free: 13.06 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003258/0.5881, allocations: 270.4 kB / 0.567 GB, free: 12.75 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002866/0.5884, allocations: 181.9 kB / 0.5672 GB, free: 12.57 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.5884, allocations: 0 / 0.5672 GB, free: 12.57 MB / 411.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008235/0.5892, allocations: 0.5071 MB / 0.5677 GB, free: 12.06 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006145/0.5899, allocations: 1.291 MB / 0.5689 GB, free: 10.66 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.5899, allocations: 4 kB / 0.5689 GB, free: 10.66 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.361e-05/0.5899, allocations: 4 kB / 0.5689 GB, free: 10.65 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005694/0.5905, allocations: 123.8 kB / 0.569 GB, free: 10.53 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.313e-05/0.5905, allocations: 7.938 kB / 0.5691 GB, free: 10.52 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005142/0.591, allocations: 83.62 kB / 0.5691 GB, free: 10.44 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.538e-05/0.5911, allocations: 16 kB / 0.5691 GB, free: 10.43 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.006e-06/0.5911, allocations: 4 kB / 0.5692 GB, free: 10.42 MB / 411.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007733/0.5919, allocations: 452.6 kB / 0.5696 GB, free: 9.98 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.5919, allocations: 7.953 kB / 0.5696 GB, free: 9.973 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.296e-06/0.5919, allocations: 4 kB / 0.5696 GB, free: 9.969 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004716/0.5924, allocations: 116.2 kB / 0.5697 GB, free: 9.855 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.34e-05/0.5924, allocations: 15.92 kB / 0.5697 GB, free: 9.84 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004633/0.5929, allocations: 71.58 kB / 0.5698 GB, free: 9.77 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.245e-05/0.5929, allocations: 24 kB / 0.5698 GB, free: 9.746 MB / 411.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 () * 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.0002091/0.5932, allocations: 125 kB / 0.5699 GB, free: 9.621 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007846/0.594, allocations: 436.7 kB / 0.5703 GB, free: 9.188 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.717e-05/0.594, allocations: 51.34 kB / 0.5704 GB, free: 9.137 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007223/0.5948, allocations: 386.7 kB / 0.5708 GB, free: 8.75 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.5948, allocations: 12.06 kB / 0.5708 GB, free: 8.738 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.5948, allocations: 0 / 0.5708 GB, free: 8.738 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.232e-05/0.5948, allocations: 3.984 kB / 0.5708 GB, free: 8.734 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000635/0.5955, allocations: 0.5249 MB / 0.5713 GB, free: 8.172 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.5955, allocations: 0 / 0.5713 GB, free: 8.172 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004855/0.596, allocations: 111.9 kB / 0.5714 GB, free: 8.062 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.596, allocations: 0 / 0.5714 GB, free: 8.062 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.745e-05/0.596, allocations: 8 kB / 0.5714 GB, free: 8.055 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.085e-06/0.596, allocations: 7.938 kB / 0.5714 GB, free: 8.047 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.596, allocations: 3.953 kB / 0.5714 GB, free: 8.043 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001118/0.5972, allocations: 0.7819 MB / 0.5722 GB, free: 7.215 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002377/0.5974, allocations: 192.3 kB / 0.5724 GB, free: 7.008 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.814e-05/0.5975, allocations: 15.92 kB / 0.5724 GB, free: 6.992 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004448/0.598, allocations: 56 kB / 0.5724 GB, free: 6.938 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.5981, allocations: 51.92 kB / 0.5725 GB, free: 6.887 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.974e-05/0.5982, allocations: 19.98 kB / 0.5725 GB, free: 6.867 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.000385/0.5985, allocations: 338.9 kB / 0.5728 GB, free: 6.539 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5986, allocations: 0 / 0.5728 GB, free: 6.539 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0007482/0.5993, allocations: 203.6 kB / 0.573 GB, free: 6.34 MB / 411.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.nextTimeEvent,loadDispatcher.data.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 39 * 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.002261/0.6016, allocations: 1.831 MB / 0.5748 GB, free: 4.48 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.001179/0.6028, allocations: 0.8453 MB / 0.5756 GB, free: 3.586 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.6028, allocations: 0 / 0.5756 GB, free: 3.586 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003539/0.6031, allocations: 231.7 kB / 0.5759 GB, free: 3.359 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006088/0.6038, allocations: 111.9 kB / 0.576 GB, free: 3.25 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001768/0.6055, allocations: 0.8209 MB / 0.5768 GB, free: 2.383 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004223/0.606, allocations: 0.8802 MB / 0.5776 GB, free: 1.477 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.000578/0.6066, allocations: 174 kB / 0.5778 GB, free: 1.305 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002834/0.6069, allocations: 195.4 kB / 0.578 GB, free: 1.117 MB / 411.1 MB Notification: Performance of SimCode: time 4.91e-07/0.6069, allocations: 0 / 0.578 GB, free: 1.117 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04016/0.647, allocations: 12.23 MB / 0.5899 GB, free: 4.863 MB / 427.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002381/0.6473, allocations: 181.5 kB / 0.5901 GB, free: 4.672 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.378/3.025, allocations: 0 / 0.5901 GB, free: 4.672 MB / 427.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) 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