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.001734/0.001734, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.593/1.593, allocations: 205.2 MB / 219.4 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008194/0.0008196, allocations: 90.62 kB / 267.5 MB, free: 14.09 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1603/0.1603, allocations: 37.97 MB / 353.5 MB, free: 1.754 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.895e-05/2.907e-05, allocations: 4 kB / 417.8 MB, free: 29.03 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09532/0.09537, allocations: 56.32 MB / 474.2 MB, free: 4.695 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3785/0.4739, allocations: 94.57 MB / 0.5554 GB, free: 7.891 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001581/0.4756, allocations: 0.6878 MB / 0.5561 GB, free: 7.59 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02942/0.505, allocations: 11.56 MB / 0.5674 GB, free: 13.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.5051, allocations: 4 kB / 0.5674 GB, free: 13.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.885e-05/0.5051, allocations: 16 kB / 0.5674 GB, free: 13.84 MB / 378.7 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.001627/0.5068, allocations: 0.87 MB / 0.5682 GB, free: 12.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.5068, allocations: 8.031 kB / 0.5682 GB, free: 12.95 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.547e-05/0.5069, allocations: 81.22 kB / 0.5683 GB, free: 12.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000119/0.507, allocations: 67.19 kB / 0.5684 GB, free: 12.81 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008407/0.5079, allocations: 0.5081 MB / 0.5689 GB, free: 12.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.796e-05/0.5079, allocations: 22.03 kB / 0.5689 GB, free: 12.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.993e-05/0.508, allocations: 35.56 kB / 0.5689 GB, free: 12.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008266/0.5088, allocations: 498.5 kB / 0.5694 GB, free: 11.92 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.5089, allocations: 7.984 kB / 0.5694 GB, free: 11.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.845e-05/0.5089, allocations: 16.56 kB / 0.5694 GB, free: 11.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.239e-05/0.509, allocations: 19.89 kB / 0.5694 GB, free: 11.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007161/0.5097, allocations: 442.3 kB / 0.5699 GB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002471/0.5122, allocations: 2.138 MB / 0.572 GB, free: 9.695 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/0.5132, allocations: 0.5008 MB / 0.5724 GB, free: 9.309 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002832/0.5135, allocations: 188.1 kB / 0.5726 GB, free: 9.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.589e-05/0.5136, allocations: 7.5 kB / 0.5726 GB, free: 9.176 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004899/0.5141, allocations: 320.5 kB / 0.5729 GB, free: 8.914 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 2.665e-06/0.5141, allocations: 0 / 0.5729 GB, free: 8.914 MB / 378.7 MB Notification: Performance of matching and sorting (n=37): time 0.0008286/0.5149, allocations: 458.8 kB / 0.5734 GB, free: 8.574 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.515, allocations: 187.9 kB / 0.5736 GB, free: 8.348 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005762/0.5156, allocations: 488.9 kB / 0.574 GB, free: 7.977 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.002e-05/0.5157, allocations: 39.06 kB / 0.5741 GB, free: 7.938 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001818/0.5159, allocations: 279.6 kB / 0.5743 GB, free: 7.758 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/0.516, allocations: 129.5 kB / 0.5744 GB, free: 7.648 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.651e-05/0.516, allocations: 11.62 kB / 0.5745 GB, free: 7.641 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.5162, allocations: 369.5 kB / 0.5748 GB, free: 7.297 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003015/0.5165, allocations: 162.5 kB / 0.575 GB, free: 7.203 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003488/0.5169, allocations: 282.1 kB / 0.5752 GB, free: 6.957 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003317/0.5172, allocations: 247.5 kB / 0.5755 GB, free: 6.773 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.5172, allocations: 4 kB / 0.5755 GB, free: 6.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009015/0.5181, allocations: 0.6088 MB / 0.5761 GB, free: 6.289 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00051/0.5186, allocations: 1.278 MB / 0.5773 GB, free: 4.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.5187, allocations: 4 kB / 0.5773 GB, free: 4.926 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.5187, allocations: 4 kB / 0.5773 GB, free: 4.922 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005384/0.5192, allocations: 115.7 kB / 0.5774 GB, free: 4.812 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.548e-05/0.5192, allocations: 19.92 kB / 0.5775 GB, free: 4.793 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004834/0.5197, allocations: 91.36 kB / 0.5775 GB, free: 4.711 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.389e-05/0.5198, allocations: 19.62 kB / 0.5776 GB, free: 4.695 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.366e-06/0.5198, allocations: 9.25 kB / 0.5776 GB, free: 4.688 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008831/0.5207, allocations: 0.5352 MB / 0.5781 GB, free: 4.293 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.5207, allocations: 4 kB / 0.5781 GB, free: 4.289 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.033e-06/0.5207, allocations: 4 kB / 0.5781 GB, free: 4.285 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004873/0.5212, allocations: 124 kB / 0.5782 GB, free: 4.168 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.5212, allocations: 11.94 kB / 0.5782 GB, free: 4.156 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004416/0.5217, allocations: 79.27 kB / 0.5783 GB, free: 4.086 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.388e-05/0.5217, allocations: 23.73 kB / 0.5783 GB, free: 4.066 MB / 378.7 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.0001672/0.5219, allocations: 139.1 kB / 0.5785 GB, free: 3.938 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.675e-05/0.522, allocations: 67.14 kB / 0.5785 GB, free: 3.871 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007367/0.5228, allocations: 404.6 kB / 0.5789 GB, free: 3.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.5228, allocations: 4 kB / 0.5789 GB, free: 3.566 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.5228, allocations: 0 / 0.5789 GB, free: 3.566 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.645e-06/0.5228, allocations: 4 kB / 0.5789 GB, free: 3.562 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006324/0.5234, allocations: 0.5838 MB / 0.5795 GB, free: 3.078 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.5235, allocations: 0 / 0.5795 GB, free: 3.078 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000482/0.5239, allocations: 111.3 kB / 0.5796 GB, free: 2.973 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.235e-06/0.524, allocations: 7.953 kB / 0.5796 GB, free: 2.965 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.81e-05/0.524, allocations: 14.73 kB / 0.5796 GB, free: 2.957 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.568e-06/0.524, allocations: 4 kB / 0.5796 GB, free: 2.953 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.524, allocations: 0 / 0.5796 GB, free: 2.953 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00118/0.5252, allocations: 0.8203 MB / 0.5804 GB, free: 2.332 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002556/0.5255, allocations: 197.5 kB / 0.5806 GB, free: 2.156 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.141e-05/0.5256, allocations: 13.81 kB / 0.5806 GB, free: 2.152 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004222/0.526, allocations: 66.5 kB / 0.5807 GB, free: 2.094 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001365/0.5261, allocations: 51.11 kB / 0.5807 GB, free: 2.051 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.668e-05/0.5262, allocations: 15.48 kB / 0.5808 GB, free: 2.039 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004426/0.5266, allocations: 387.5 kB / 0.5811 GB, free: 1.762 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5266, allocations: 3.938 kB / 0.5811 GB, free: 1.758 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006808/0.5273, allocations: 220.5 kB / 0.5813 GB, free: 1.562 MB / 378.7 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.002425/0.5298, allocations: 1.895 MB / 0.5832 GB, free: 15.93 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001262/0.531, allocations: 0.8954 MB / 0.5841 GB, free: 15.21 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.5311, allocations: 0 / 0.5841 GB, free: 15.21 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003836/0.5314, allocations: 239.5 kB / 0.5843 GB, free: 15.06 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006097/0.5321, allocations: 110.5 kB / 0.5844 GB, free: 14.98 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001884/0.534, allocations: 0.8671 MB / 0.5852 GB, free: 14.19 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004661/0.5344, allocations: 0.8865 MB / 0.5861 GB, free: 13.29 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000635/0.5351, allocations: 178.2 kB / 0.5863 GB, free: 13.11 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000302/0.5354, allocations: 196.1 kB / 0.5865 GB, free: 13.05 MB / 394.7 MB Notification: Performance of SimCode: time 6.91e-07/0.5354, allocations: 0 / 0.5865 GB, free: 13.05 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03141/0.5668, allocations: 13.52 MB / 0.5997 GB, free: 15.5 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001701/0.567, allocations: 205.9 kB / 0.5999 GB, free: 15.28 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.369/2.936, allocations: 4 kB / 0.5999 GB, free: 15.27 MB / 410.7 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