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.001395/0.001395, allocations: 179 kB / 16.38 MB, free: 5.727 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.331/1.331, allocations: 205.4 MB / 222.5 MB, free: 9.059 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.0007253/0.0007253, allocations: 104.5 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1617/0.1617, allocations: 38.06 MB / 357.2 MB, free: 1.895 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002807/0.0002807, allocations: 12 kB / 424 MB, free: 37.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2438/0.2441, allocations: 56.31 MB / 480.3 MB, free: 9.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1232/0.3673, allocations: 96.43 MB / 0.5632 GB, free: 6.016 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001748/0.3691, allocations: 0.8549 MB / 0.5641 GB, free: 5.16 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0412/0.4103, allocations: 16.85 MB / 0.5805 GB, free: 4.148 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4103, allocations: 0 / 0.5805 GB, free: 4.148 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.358e-05/0.4104, allocations: 15.98 kB / 0.5805 GB, free: 4.133 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.001364/0.4117, allocations: 0.7327 MB / 0.5812 GB, free: 3.344 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.4118, allocations: 8.031 kB / 0.5812 GB, free: 3.336 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008872/0.4127, allocations: 115.4 kB / 0.5814 GB, free: 3.223 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000653/0.4133, allocations: 390.5 kB / 0.5817 GB, free: 2.801 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.839e-05/0.4134, allocations: 20.41 kB / 0.5817 GB, free: 2.781 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.713e-05/0.4134, allocations: 24 kB / 0.5818 GB, free: 2.758 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008119/0.4142, allocations: 458.8 kB / 0.5822 GB, free: 2.277 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.4143, allocations: 0 / 0.5822 GB, free: 2.277 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.757e-05/0.4143, allocations: 11.98 kB / 0.5822 GB, free: 2.266 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.581e-05/0.4144, allocations: 24.38 kB / 0.5822 GB, free: 2.242 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.4154, allocations: 0.5636 MB / 0.5828 GB, free: 1.68 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002179/0.4176, allocations: 1.741 MB / 0.5845 GB, free: 15.84 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001008/0.4186, allocations: 441.7 kB / 0.5849 GB, free: 15.39 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.18e-05/0.4186, allocations: 4.234 kB / 0.5849 GB, free: 15.38 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005466/0.4192, allocations: 307 kB / 0.5852 GB, free: 15.04 MB / 426.7 MB Notification: Performance of pre-optimization done (n=31): time 2.986e-06/0.4192, allocations: 0 / 0.5852 GB, free: 15.04 MB / 426.7 MB Notification: Performance of matching and sorting (n=31): time 0.001365/0.4206, allocations: 0.596 MB / 0.5858 GB, free: 14.44 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.238e-05/0.4207, allocations: 294.7 kB / 0.5861 GB, free: 14.09 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003436/0.4211, allocations: 331.6 kB / 0.5864 GB, free: 13.75 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.695e-05/0.4211, allocations: 37.7 kB / 0.5864 GB, free: 13.71 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001318/0.4212, allocations: 200.3 kB / 0.5866 GB, free: 13.51 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.718e-05/0.4213, allocations: 94.66 kB / 0.5867 GB, free: 13.42 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.948e-05/0.4214, allocations: 12 kB / 0.5867 GB, free: 13.41 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.4215, allocations: 350.8 kB / 0.5871 GB, free: 13.05 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003725/0.4219, allocations: 163.8 kB / 0.5872 GB, free: 12.89 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004428/0.4223, allocations: 305 kB / 0.5875 GB, free: 12.54 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004146/0.4228, allocations: 228.5 kB / 0.5877 GB, free: 12.31 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.4228, allocations: 0 / 0.5877 GB, free: 12.31 MB / 426.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001022/0.4238, allocations: 0.5572 MB / 0.5883 GB, free: 11.74 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.415e-05/0.4238, allocations: 33.7 kB / 0.5883 GB, free: 11.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.4239, allocations: 7.938 kB / 0.5883 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.4239, allocations: 8 kB / 0.5883 GB, free: 11.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003349/0.4242, allocations: 95.88 kB / 0.5884 GB, free: 11.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.4242, allocations: 4 kB / 0.5884 GB, free: 11.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002872/0.4245, allocations: 63.81 kB / 0.5885 GB, free: 11.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.378e-05/0.4246, allocations: 19.98 kB / 0.5885 GB, free: 11.5 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.000202/0.4248, allocations: 197.4 kB / 0.5887 GB, free: 11.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.195e-05/0.4249, allocations: 35.62 kB / 0.5887 GB, free: 11.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001001/0.4259, allocations: 496.4 kB / 0.5892 GB, free: 10.77 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.799e-05/0.4259, allocations: 15.97 kB / 0.5892 GB, free: 10.76 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.4259, allocations: 8 kB / 0.5892 GB, free: 10.75 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.4259, allocations: 0 / 0.5892 GB, free: 10.75 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009534/0.4269, allocations: 1.093 MB / 0.5903 GB, free: 9.578 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.4269, allocations: 4 kB / 0.5903 GB, free: 9.574 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002916/0.4272, allocations: 79.89 kB / 0.5903 GB, free: 9.496 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/0.4272, allocations: 4 kB / 0.5904 GB, free: 9.492 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.922e-05/0.4272, allocations: 16.17 kB / 0.5904 GB, free: 9.477 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.4273, allocations: 7.938 kB / 0.5904 GB, free: 9.469 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4273, allocations: 4 kB / 0.5904 GB, free: 9.465 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009853/0.4283, allocations: 0.6494 MB / 0.591 GB, free: 8.719 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.4284, allocations: 124.6 kB / 0.5911 GB, free: 8.578 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.225e-05/0.4284, allocations: 19.95 kB / 0.5912 GB, free: 8.559 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002323/0.4287, allocations: 35.97 kB / 0.5912 GB, free: 8.523 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.4288, allocations: 43.88 kB / 0.5912 GB, free: 8.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.231e-05/0.4288, allocations: 16 kB / 0.5912 GB, free: 8.465 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000321/0.4292, allocations: 267 kB / 0.5915 GB, free: 8.207 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4292, allocations: 0 / 0.5915 GB, free: 8.207 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005116/0.4297, allocations: 111.8 kB / 0.5916 GB, free: 8.098 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.001188/0.4309, allocations: 486.3 kB / 0.5921 GB, free: 7.68 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001063/0.432, allocations: 475.4 kB / 0.5925 GB, free: 7.203 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.432, allocations: 0 / 0.5925 GB, free: 7.203 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005386/0.4325, allocations: 248.7 kB / 0.5928 GB, free: 6.961 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004324/0.433, allocations: 64.95 kB / 0.5928 GB, free: 6.895 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001517/0.4345, allocations: 0.8524 MB / 0.5937 GB, free: 5.992 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004393/0.435, allocations: 0.8244 MB / 0.5945 GB, free: 5.145 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002743/0.4352, allocations: 91.2 kB / 0.5945 GB, free: 5.055 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.4354, allocations: 39.42 kB / 0.5946 GB, free: 5.016 MB / 426.7 MB Notification: Performance of SimCode: time 5.21e-07/0.4354, allocations: 0 / 0.5946 GB, free: 5.016 MB / 426.7 MB Notification: Performance of Templates: time 0.008566/0.4439, allocations: 4.627 MB / 0.5991 GB, free: 396 kB / 426.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