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.001016/0.001016, allocations: 174.8 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.374/1.374, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.0007982/0.0007981, allocations: 86.7 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.151/0.151, allocations: 37.97 MB / 353.5 MB, free: 1.758 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.388e-05/2.407e-05, allocations: 4 kB / 417.7 MB, free: 29.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08729/0.08732, allocations: 56.32 MB / 474.1 MB, free: 4.801 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3186/0.4059, allocations: 96.33 MB / 0.557 GB, free: 6.641 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001286/0.4072, allocations: 0.6879 MB / 0.5577 GB, free: 6.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03781/0.4451, allocations: 16.78 MB / 0.5741 GB, free: 8.27 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.4451, allocations: 0 / 0.5741 GB, free: 8.27 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.329e-05/0.4451, allocations: 8 kB / 0.5741 GB, free: 8.262 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.00106/0.4462, allocations: 0.6824 MB / 0.5747 GB, free: 7.559 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.4462, allocations: 8.031 kB / 0.5748 GB, free: 7.551 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008428/0.4471, allocations: 119.4 kB / 0.5749 GB, free: 7.434 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005896/0.4477, allocations: 387.5 kB / 0.5752 GB, free: 7.07 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.091e-05/0.4477, allocations: 15.44 kB / 0.5753 GB, free: 7.062 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.142e-05/0.4478, allocations: 30.42 kB / 0.5753 GB, free: 7.039 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006007/0.4484, allocations: 409.9 kB / 0.5757 GB, free: 6.719 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.4484, allocations: 0 / 0.5757 GB, free: 6.719 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.818e-05/0.4485, allocations: 14.42 kB / 0.5757 GB, free: 6.711 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.186e-05/0.4485, allocations: 23.64 kB / 0.5757 GB, free: 6.691 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000671/0.4492, allocations: 486.2 kB / 0.5762 GB, free: 6.348 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002016/0.4512, allocations: 1.744 MB / 0.5779 GB, free: 4.844 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000638/0.4519, allocations: 343.5 kB / 0.5782 GB, free: 4.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000201/0.4521, allocations: 124.5 kB / 0.5783 GB, free: 4.504 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.201e-05/0.4521, allocations: 7.672 kB / 0.5783 GB, free: 4.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003789/0.4525, allocations: 266.9 kB / 0.5786 GB, free: 4.254 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 1.684e-06/0.4525, allocations: 0 / 0.5786 GB, free: 4.254 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.0006192/0.4531, allocations: 376.4 kB / 0.5789 GB, free: 3.961 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001394/0.4533, allocations: 286.7 kB / 0.5792 GB, free: 3.613 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003738/0.4536, allocations: 331.6 kB / 0.5795 GB, free: 3.355 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.541e-05/0.4537, allocations: 35.39 kB / 0.5796 GB, free: 3.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.4538, allocations: 193.2 kB / 0.5797 GB, free: 3.176 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.564e-05/0.4539, allocations: 109.2 kB / 0.5799 GB, free: 3.082 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.632e-05/0.4539, allocations: 11.81 kB / 0.5799 GB, free: 3.074 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.4541, allocations: 345.2 kB / 0.5802 GB, free: 2.746 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000197/0.4543, allocations: 123.8 kB / 0.5803 GB, free: 2.668 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002697/0.4545, allocations: 255.2 kB / 0.5806 GB, free: 2.414 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002352/0.4548, allocations: 187.8 kB / 0.5807 GB, free: 2.273 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.4548, allocations: 0 / 0.5807 GB, free: 2.273 MB / 378.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0006506/0.4554, allocations: 477.4 kB / 0.5812 GB, free: 1.898 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.323e-05/0.4555, allocations: 41.7 kB / 0.5812 GB, free: 1.852 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.4555, allocations: 4 kB / 0.5812 GB, free: 1.848 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.016e-05/0.4555, allocations: 11.98 kB / 0.5812 GB, free: 1.836 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003483/0.4559, allocations: 87.2 kB / 0.5813 GB, free: 1.754 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.493e-05/0.4559, allocations: 15.92 kB / 0.5813 GB, free: 1.738 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002781/0.4562, allocations: 61.64 kB / 0.5814 GB, free: 1.684 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.104e-05/0.4562, allocations: 18.61 kB / 0.5814 GB, free: 1.668 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.0001088/0.4564, allocations: 136.2 kB / 0.5815 GB, free: 1.539 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.545e-05/0.4564, allocations: 31.62 kB / 0.5816 GB, free: 1.508 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006202/0.4571, allocations: 414.2 kB / 0.582 GB, free: 1.203 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.4571, allocations: 4 kB / 0.582 GB, free: 1.199 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.4571, allocations: 8 kB / 0.582 GB, free: 1.191 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.4571, allocations: 7.984 kB / 0.582 GB, free: 1.184 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008788/0.458, allocations: 1.086 MB / 0.5831 GB, free: 164 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.458, allocations: 8 kB / 0.5831 GB, free: 156 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002997/0.4583, allocations: 79.02 kB / 0.5831 GB, free: 80 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.093e-06/0.4583, allocations: 4 kB / 0.5831 GB, free: 76 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.862e-05/0.4584, allocations: 18.36 kB / 0.5832 GB, free: 64 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.4584, allocations: 4 kB / 0.5832 GB, free: 60 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.4584, allocations: 4 kB / 0.5832 GB, free: 56 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006722/0.4591, allocations: 0.5597 MB / 0.5837 GB, free: 15.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.4592, allocations: 131.1 kB / 0.5838 GB, free: 15.36 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.953e-05/0.4592, allocations: 18.2 kB / 0.5839 GB, free: 15.35 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002326/0.4595, allocations: 35.09 kB / 0.5839 GB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.407e-05/0.4596, allocations: 42.75 kB / 0.5839 GB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.977e-05/0.4596, allocations: 15.19 kB / 0.5839 GB, free: 15.27 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002499/0.4599, allocations: 260.5 kB / 0.5842 GB, free: 15.08 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4599, allocations: 7.938 kB / 0.5842 GB, free: 15.07 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004049/0.4603, allocations: 101.1 kB / 0.5843 GB, free: 14.98 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.0008691/0.4612, allocations: 430.8 kB / 0.5847 GB, free: 14.62 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005156/0.4617, allocations: 387.8 kB / 0.5851 GB, free: 14.33 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4617, allocations: 0 / 0.5851 GB, free: 14.33 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002944/0.462, allocations: 204.2 kB / 0.5853 GB, free: 14.19 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003561/0.4624, allocations: 78.2 kB / 0.5853 GB, free: 14.13 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008983/0.4633, allocations: 0.552 MB / 0.5859 GB, free: 13.63 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003535/0.4636, allocations: 0.8261 MB / 0.5867 GB, free: 12.79 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002374/0.4639, allocations: 87.22 kB / 0.5868 GB, free: 12.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001183/0.464, allocations: 46.41 kB / 0.5868 GB, free: 12.66 MB / 394.7 MB Notification: Performance of SimCode: time 3.71e-07/0.464, allocations: 0 / 0.5868 GB, free: 12.66 MB / 394.7 MB Notification: Performance of Templates: time 0.007756/0.4718, allocations: 4.626 MB / 0.5913 GB, free: 8.035 MB / 394.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/jenkins/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