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: translateModel(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|windFarm.p.1.|windFarm.p.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") translateModel(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|windFarm.p.1.|windFarm.p.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001528/0.001528, allocations: 177.2 kB / 17.4 MB, free: 4.277 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.436/1.436, allocations: 205.4 MB / 223.5 MB, free: 9.004 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.0007306/0.0007307, allocations: 92.98 kB / 271.9 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1715/0.1715, allocations: 38.08 MB / 358.2 MB, free: 1.719 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000371/0.0003711, allocations: 16 kB / 425.2 MB, free: 37.35 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2638, allocations: 56.31 MB / 481.6 MB, free: 9.586 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.135/0.3989, allocations: 96.48 MB / 0.5645 GB, free: 5.781 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002095/0.401, allocations: 0.8743 MB / 0.5653 GB, free: 4.91 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04585/0.4469, allocations: 16.89 MB / 0.5818 GB, free: 3.855 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.4469, allocations: 0 / 0.5818 GB, free: 3.855 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.164e-05/0.447, allocations: 12 kB / 0.5819 GB, free: 3.844 MB / 410.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.001756/0.4487, allocations: 0.729 MB / 0.5826 GB, free: 3.059 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.4488, allocations: 8.031 kB / 0.5826 GB, free: 3.051 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001028/0.4498, allocations: 124.3 kB / 0.5827 GB, free: 2.93 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007741/0.4506, allocations: 399.6 kB / 0.5831 GB, free: 2.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.86e-05/0.4507, allocations: 12.81 kB / 0.5831 GB, free: 2.488 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.478e-05/0.4508, allocations: 24.38 kB / 0.5831 GB, free: 2.465 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009505/0.4517, allocations: 467.3 kB / 0.5836 GB, free: 1.977 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.4517, allocations: 192 / 0.5836 GB, free: 1.977 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.508e-05/0.4518, allocations: 15.92 kB / 0.5836 GB, free: 1.961 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.373e-05/0.4519, allocations: 20.38 kB / 0.5836 GB, free: 1.941 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001156/0.453, allocations: 0.5637 MB / 0.5841 GB, free: 1.379 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002672/0.4557, allocations: 1.733 MB / 0.5858 GB, free: 15.55 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001163/0.4569, allocations: 441.7 kB / 0.5863 GB, free: 15.1 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003886/0.4573, allocations: 166.1 kB / 0.5864 GB, free: 14.93 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3e-05/0.4573, allocations: 12.22 kB / 0.5864 GB, free: 14.92 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006154/0.458, allocations: 307.1 kB / 0.5867 GB, free: 14.58 MB / 426.7 MB Notification: Performance of pre-optimization done (n=31): time 3.596e-06/0.458, allocations: 0 / 0.5867 GB, free: 14.58 MB / 426.7 MB Notification: Performance of matching and sorting (n=31): time 0.001444/0.4594, allocations: 0.5995 MB / 0.5873 GB, free: 13.97 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001691/0.4596, allocations: 299 kB / 0.5876 GB, free: 13.61 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005992/0.4602, allocations: 368.5 kB / 0.5879 GB, free: 13.24 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.686e-05/0.4603, allocations: 37.7 kB / 0.588 GB, free: 13.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001529/0.4604, allocations: 192.3 kB / 0.5882 GB, free: 13.01 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.907e-05/0.4605, allocations: 102.5 kB / 0.5883 GB, free: 12.91 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.774e-05/0.4606, allocations: 12 kB / 0.5883 GB, free: 12.89 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.4607, allocations: 346.8 kB / 0.5886 GB, free: 12.55 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003888/0.4611, allocations: 163.9 kB / 0.5888 GB, free: 12.39 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004647/0.4616, allocations: 301 kB / 0.589 GB, free: 12.03 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008894/0.4625, allocations: 0.5015 MB / 0.5895 GB, free: 11.46 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.4625, allocations: 0 / 0.5895 GB, free: 11.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001132/0.4637, allocations: 0.5533 MB / 0.5901 GB, free: 10.9 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.288e-05/0.4637, allocations: 34.48 kB / 0.5901 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.4637, allocations: 4 kB / 0.5901 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/0.4637, allocations: 15.88 kB / 0.5901 GB, free: 10.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003485/0.4641, allocations: 96.19 kB / 0.5902 GB, free: 10.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.9e-05/0.4641, allocations: 11.94 kB / 0.5902 GB, free: 10.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003105/0.4645, allocations: 51.66 kB / 0.5903 GB, free: 10.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.805e-05/0.4645, allocations: 27.98 kB / 0.5903 GB, free: 10.66 MB / 426.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 () * Number of clocked 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.0002398/0.4648, allocations: 189.7 kB / 0.5905 GB, free: 10.46 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.803e-05/0.4648, allocations: 47.53 kB / 0.5905 GB, free: 10.41 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000974/0.4658, allocations: 492.4 kB / 0.591 GB, free: 9.922 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.4658, allocations: 7.984 kB / 0.591 GB, free: 9.914 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.4659, allocations: 4 kB / 0.591 GB, free: 9.91 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/0.4659, allocations: 4 kB / 0.591 GB, free: 9.906 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000968/0.4668, allocations: 1.097 MB / 0.5921 GB, free: 8.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.4669, allocations: 0 / 0.5921 GB, free: 8.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002973/0.4672, allocations: 84.08 kB / 0.5922 GB, free: 8.648 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.4672, allocations: 4 kB / 0.5922 GB, free: 8.645 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.021e-05/0.4672, allocations: 15.98 kB / 0.5922 GB, free: 8.629 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.4672, allocations: 4 kB / 0.5922 GB, free: 8.625 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4672, allocations: 0 / 0.5922 GB, free: 8.625 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001012/0.4683, allocations: 0.5569 MB / 0.5927 GB, free: 8.023 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000128/0.4684, allocations: 128.6 kB / 0.5929 GB, free: 7.879 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.15e-05/0.4685, allocations: 19.94 kB / 0.5929 GB, free: 7.859 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002284/0.4687, allocations: 35.97 kB / 0.5929 GB, free: 7.824 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.861e-05/0.4688, allocations: 47.81 kB / 0.593 GB, free: 7.777 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.939e-05/0.4689, allocations: 12 kB / 0.593 GB, free: 7.766 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000298/0.4692, allocations: 263 kB / 0.5932 GB, free: 7.512 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4692, allocations: 0 / 0.5932 GB, free: 7.512 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004659/0.4696, allocations: 107.8 kB / 0.5933 GB, free: 7.406 MB / 426.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) * Number of clocked states: 0 () * 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.001019/0.4707, allocations: 482.1 kB / 0.5938 GB, free: 6.996 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009788/0.4717, allocations: 479.5 kB / 0.5942 GB, free: 6.516 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.4717, allocations: 0 / 0.5942 GB, free: 6.516 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005159/0.4722, allocations: 248.6 kB / 0.5945 GB, free: 6.273 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005243/0.4727, allocations: 65.05 kB / 0.5945 GB, free: 6.207 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001417/0.4742, allocations: 0.8562 MB / 0.5954 GB, free: 5.301 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004252/0.4746, allocations: 0.8205 MB / 0.5962 GB, free: 4.457 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002943/0.4749, allocations: 95.19 kB / 0.5963 GB, free: 4.363 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001298/0.475, allocations: 43.42 kB / 0.5963 GB, free: 4.32 MB / 426.7 MB Notification: Performance of SimCode: time 5.51e-07/0.4751, allocations: 0 / 0.5963 GB, free: 4.32 MB / 426.7 MB Notification: Performance of Templates: time 0.009789/0.4849, allocations: 4.655 MB / 0.6008 GB, free: 15.66 MB / 442.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches