Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.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.WindFarmGridTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",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.001579/0.001579, allocations: 174.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.502/1.502, allocations: 205.2 MB / 219.4 MB, free: 14.19 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.0009402/0.0009403, allocations: 78.77 kB / 267.5 MB, free: 14.03 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1636/0.1636, allocations: 37.98 MB / 353.5 MB, free: 1.734 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.407e-05/3.419e-05, allocations: 0 / 417.8 MB, free: 29.01 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1091, allocations: 56.32 MB / 474.2 MB, free: 4.68 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4224/0.5315, allocations: 96.32 MB / 0.5571 GB, free: 6.539 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001613/0.5332, allocations: 0.6892 MB / 0.5578 GB, free: 6.238 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04024/0.5734, allocations: 16.79 MB / 0.5742 GB, free: 8.156 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.5735, allocations: 0 / 0.5742 GB, free: 8.156 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.922e-05/0.5735, allocations: 11.98 kB / 0.5742 GB, free: 8.145 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001288/0.5748, allocations: 0.6847 MB / 0.5749 GB, free: 7.438 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.5749, allocations: 8.031 kB / 0.5749 GB, free: 7.43 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.197e-05/0.575, allocations: 54.05 kB / 0.5749 GB, free: 7.379 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008975/0.5759, allocations: 123.4 kB / 0.575 GB, free: 7.258 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006436/0.5765, allocations: 391.8 kB / 0.5754 GB, free: 6.895 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.553e-05/0.5766, allocations: 16.38 kB / 0.5754 GB, free: 6.883 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.114e-05/0.5766, allocations: 23.23 kB / 0.5754 GB, free: 6.867 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006703/0.5773, allocations: 418.4 kB / 0.5758 GB, free: 6.539 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.5773, allocations: 0 / 0.5758 GB, free: 6.539 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.089e-05/0.5774, allocations: 19.38 kB / 0.5759 GB, free: 6.527 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.658e-05/0.5774, allocations: 16.42 kB / 0.5759 GB, free: 6.512 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007389/0.5782, allocations: 486.9 kB / 0.5763 GB, free: 6.168 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002243/0.5804, allocations: 1.741 MB / 0.578 GB, free: 4.668 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006901/0.5811, allocations: 347.1 kB / 0.5784 GB, free: 4.41 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001995/0.5813, allocations: 124.5 kB / 0.5785 GB, free: 4.324 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.488e-05/0.5814, allocations: 4.234 kB / 0.5785 GB, free: 4.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004017/0.5818, allocations: 273.6 kB / 0.5788 GB, free: 4.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 1.753e-06/0.5818, allocations: 0 / 0.5788 GB, free: 4.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.0007045/0.5825, allocations: 361.7 kB / 0.5791 GB, free: 3.789 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001587/0.5827, allocations: 294.2 kB / 0.5794 GB, free: 3.438 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003861/0.5831, allocations: 334.4 kB / 0.5797 GB, free: 3.176 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.052e-05/0.5831, allocations: 39.83 kB / 0.5797 GB, free: 3.137 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/0.5832, allocations: 195 kB / 0.5799 GB, free: 2.988 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.255e-05/0.5833, allocations: 99.91 kB / 0.58 GB, free: 2.906 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.158e-05/0.5834, allocations: 7.312 kB / 0.58 GB, free: 2.902 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.5835, allocations: 350.2 kB / 0.5804 GB, free: 2.566 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001922/0.5837, allocations: 117.6 kB / 0.5805 GB, free: 2.496 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002989/0.584, allocations: 259 kB / 0.5807 GB, free: 2.238 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002592/0.5843, allocations: 181 kB / 0.5809 GB, free: 2.102 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.5843, allocations: 4 kB / 0.5809 GB, free: 2.098 MB / 378.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0006787/0.585, allocations: 487.6 kB / 0.5814 GB, free: 1.715 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.718e-05/0.5851, allocations: 33.7 kB / 0.5814 GB, free: 1.676 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.5851, allocations: 4 kB / 0.5814 GB, free: 1.672 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.246e-05/0.5851, allocations: 8 kB / 0.5814 GB, free: 1.664 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003533/0.5855, allocations: 96.06 kB / 0.5815 GB, free: 1.574 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.655e-05/0.5855, allocations: 11.94 kB / 0.5815 GB, free: 1.562 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000284/0.5858, allocations: 58.69 kB / 0.5816 GB, free: 1.512 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.605e-05/0.5858, allocations: 23.55 kB / 0.5816 GB, free: 1.492 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$PRE.windFarm.wind.nextTimeEvent,$whenCondition1,windFarm.wind.nextTimeEvent,$PRE.windFarm.wind.nextTimeEventScaled,windFarm.wind.nextTimeEventScaled,$PRE.windFarm.disturbance.T_start,windFarm.disturbance.T_start,$PRE.windFarm.disturbance.count,windFarm.disturbance.count,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 1 * 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.0001376/0.586, allocations: 131.9 kB / 0.5817 GB, free: 1.367 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.416e-05/0.586, allocations: 39.62 kB / 0.5818 GB, free: 1.328 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006537/0.5867, allocations: 410.1 kB / 0.5821 GB, free: 1.023 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.5867, allocations: 4 kB / 0.5821 GB, free: 1.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.798e-06/0.5867, allocations: 7.984 kB / 0.5822 GB, free: 1.012 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.5867, allocations: 0 / 0.5822 GB, free: 1.012 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009928/0.5877, allocations: 1.094 MB / 0.5832 GB, free: 15.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.5878, allocations: 4 kB / 0.5832 GB, free: 15.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003057/0.5881, allocations: 80.02 kB / 0.5833 GB, free: 15.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.833e-06/0.5881, allocations: 8 kB / 0.5833 GB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.126e-05/0.5881, allocations: 18.61 kB / 0.5833 GB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.5881, allocations: 4 kB / 0.5833 GB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.5881, allocations: 3.953 kB / 0.5833 GB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007116/0.5889, allocations: 0.557 MB / 0.5839 GB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.761e-05/0.589, allocations: 135.2 kB / 0.584 GB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.065e-05/0.589, allocations: 18.38 kB / 0.584 GB, free: 15.17 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002461/0.5893, allocations: 31.41 kB / 0.5841 GB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.703e-05/0.5894, allocations: 42.38 kB / 0.5841 GB, free: 15.11 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.272e-05/0.5894, allocations: 15.25 kB / 0.5841 GB, free: 15.1 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002753/0.5897, allocations: 270.2 kB / 0.5844 GB, free: 14.89 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.753e-06/0.5897, allocations: 0 / 0.5844 GB, free: 14.89 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000448/0.5902, allocations: 101.7 kB / 0.5845 GB, free: 14.8 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition2,$whenCondition1,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled,windFarm.disturbance.T_start,windFarm.disturbance.count) * Number of discrete states: 3 (windFarm.disturbance.count,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.00213/0.5923, allocations: 1.965 MB / 0.5864 GB, free: 12.93 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005861/0.5929, allocations: 385.1 kB / 0.5868 GB, free: 12.64 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.5929, allocations: 1.125 kB / 0.5868 GB, free: 12.64 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000314/0.5932, allocations: 209.2 kB / 0.587 GB, free: 12.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003766/0.5936, allocations: 71.39 kB / 0.587 GB, free: 12.45 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001273/0.5949, allocations: 0.6627 MB / 0.5877 GB, free: 11.83 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003978/0.5953, allocations: 0.8235 MB / 0.5885 GB, free: 11 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002563/0.5956, allocations: 91.2 kB / 0.5886 GB, free: 10.91 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000199/0.5958, allocations: 125.8 kB / 0.5887 GB, free: 10.86 MB / 394.7 MB Notification: Performance of SimCode: time 4.3e-07/0.5958, allocations: 0 / 0.5887 GB, free: 10.86 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02237/0.6182, allocations: 8.1 MB / 0.5966 GB, free: 2.746 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001843/0.6184, allocations: 199.9 kB / 0.5968 GB, free: 2.523 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.162/2.781, allocations: 0 / 0.5968 GB, free: 2.523 MB / 394.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.mat does not exist to compare? outputFormat=mat