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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008479/0.000848, allocations: 95.62 kB / 16.3 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009466/0.0009466, allocations: 174.4 kB / 17.19 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.226/1.226, allocations: 223.2 MB / 241.1 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2764/0.2764, allocations: 38.08 MB / 330.3 MB, free: 14.25 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002803/0.0002804, allocations: 8 kB / 400 MB, free: 9.312 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2522/0.2525, allocations: 59.15 MB / 459.1 MB, free: 30.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.003487/0.256, allocations: 3.505 MB / 462.6 MB, free: 27.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002298/0.2584, allocations: 1.979 MB / 464.6 MB, free: 26.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001624/0.2585, allocations: 18.06 kB / 464.6 MB, free: 26.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000296/0.2588, allocations: 75.2 kB / 464.7 MB, free: 26.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004228/0.2593, allocations: 219.3 kB / 464.9 MB, free: 26.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000465/0.2597, allocations: 219 kB / 465.1 MB, free: 26.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003269/0.2601, allocations: 282.3 kB / 465.4 MB, free: 26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005303/0.2606, allocations: 353.5 kB / 465.7 MB, free: 25.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002945/0.2609, allocations: 166 kB / 465.9 MB, free: 25.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001886/0.2611, allocations: 146.8 kB / 466.1 MB, free: 25.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.766e-05/0.2612, allocations: 15.16 kB / 466.1 MB, free: 25.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003472/0.2615, allocations: 205.8 kB / 466.3 MB, free: 25.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001058/0.2616, allocations: 93.86 kB / 466.4 MB, free: 25.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.874e-05/0.2617, allocations: 86.62 kB / 466.4 MB, free: 25.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005697/0.2623, allocations: 471.9 kB / 466.9 MB, free: 25.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.2623, allocations: 0 / 466.9 MB, free: 25.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2623, allocations: 0 / 466.9 MB, free: 25.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.2623, allocations: 3.938 kB / 466.9 MB, free: 25.35 MB / 350.1 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.0009626/0.2633, allocations: 0.687 MB / 467.6 MB, free: 24.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.068e-05/0.2633, allocations: 9 kB / 467.6 MB, free: 24.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008207/0.2641, allocations: 119.2 kB / 467.7 MB, free: 24.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004906/0.2647, allocations: 394.4 kB / 468.1 MB, free: 24.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.615e-05/0.2647, allocations: 22.61 kB / 468.1 MB, free: 24.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.558e-05/0.2647, allocations: 23.16 kB / 468.1 MB, free: 24.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007348/0.2655, allocations: 454.9 kB / 468.6 MB, free: 24.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.2655, allocations: 1.188 kB / 468.6 MB, free: 24.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.477e-05/0.2655, allocations: 16.06 kB / 468.6 MB, free: 24.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.286e-05/0.2656, allocations: 16.14 kB / 468.6 MB, free: 24.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009499/0.2665, allocations: 0.524 MB / 469.2 MB, free: 24.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00178/0.2683, allocations: 1.684 MB / 470.8 MB, free: 22.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008667/0.2692, allocations: 391.1 kB / 471.2 MB, free: 22.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.468e-05/0.2693, allocations: 7 kB / 471.2 MB, free: 22.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000503/0.2698, allocations: 292.5 kB / 471.5 MB, free: 22.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.623e-06/0.2698, allocations: 4 kB / 471.5 MB, free: 22.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.001219/0.271, allocations: 0.5567 MB / 472.1 MB, free: 22.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.782e-05/0.2711, allocations: 298.7 kB / 472.4 MB, free: 21.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003291/0.2714, allocations: 324.7 kB / 472.7 MB, free: 21.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.112e-05/0.2715, allocations: 39.81 kB / 472.7 MB, free: 21.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.2716, allocations: 199.2 kB / 472.9 MB, free: 21.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.444e-05/0.2716, allocations: 100.8 kB / 473 MB, free: 21.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.657e-05/0.2717, allocations: 9.844 kB / 473 MB, free: 21.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.584e-05/0.2717, allocations: 347.3 kB / 473.4 MB, free: 21.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003414/0.2721, allocations: 151.8 kB / 473.5 MB, free: 21.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003723/0.2725, allocations: 290.8 kB / 473.8 MB, free: 20.92 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003796/0.2729, allocations: 208.4 kB / 474 MB, free: 20.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.2729, allocations: 0.9062 kB / 474 MB, free: 20.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0009282/0.2738, allocations: 0.5406 MB / 474.5 MB, free: 20.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.864e-05/0.2738, allocations: 35.61 kB / 474.6 MB, free: 20.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.2739, allocations: 4.375 kB / 474.6 MB, free: 20.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.2739, allocations: 7.281 kB / 474.6 MB, free: 20.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003058/0.2742, allocations: 94.05 kB / 474.7 MB, free: 20.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.2742, allocations: 20.31 kB / 474.7 MB, free: 20.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002592/0.2745, allocations: 60.55 kB / 474.8 MB, free: 20.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.913e-05/0.2745, allocations: 16.34 kB / 474.8 MB, free: 20.5 MB / 350.1 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.0001653/0.2747, allocations: 199.8 kB / 475 MB, free: 20.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.071e-05/0.2747, allocations: 38.19 kB / 475 MB, free: 20.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.737e-05/0.2748, allocations: 53.91 kB / 475.1 MB, free: 20.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.2748, allocations: 13.48 kB / 475.1 MB, free: 20.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.285e-06/0.2749, allocations: 2.75 kB / 475.1 MB, free: 20.28 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.2749, allocations: 6.781 kB / 475.1 MB, free: 20.28 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006898/0.2756, allocations: 1.028 MB / 476.1 MB, free: 19.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.2756, allocations: 3.266 kB / 476.1 MB, free: 19.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002362/0.2758, allocations: 64.59 kB / 476.2 MB, free: 19.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/0.2758, allocations: 8.078 kB / 476.2 MB, free: 19.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.414e-05/0.2759, allocations: 11.38 kB / 476.2 MB, free: 19.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.987e-06/0.2759, allocations: 3.5 kB / 476.2 MB, free: 19.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.2759, allocations: 6.688 kB / 476.2 MB, free: 19.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000836/0.2767, allocations: 0.5817 MB / 476.8 MB, free: 18.99 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.592e-05/0.2768, allocations: 122.5 kB / 476.9 MB, free: 18.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.85e-05/0.2769, allocations: 12.31 kB / 476.9 MB, free: 18.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002093/0.2771, allocations: 30.03 kB / 476.9 MB, free: 18.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.919e-05/0.2772, allocations: 43.3 kB / 477 MB, free: 18.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.071e-05/0.2772, allocations: 17.22 kB / 477 MB, free: 18.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002225/0.2774, allocations: 234.6 kB / 477.2 MB, free: 18.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2774, allocations: 1.375 kB / 477.2 MB, free: 18.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004088/0.2779, allocations: 90.59 kB / 477.3 MB, free: 18.7 MB / 350.1 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.wind.nextTimeEventScaled,windFarm.disturbance.count,windFarm.wind.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * 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.0009389/0.2788, allocations: 467.8 kB / 477.8 MB, free: 18.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000871/0.2797, allocations: 429.7 kB / 478.2 MB, free: 18.31 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.2797, allocations: 0 / 478.2 MB, free: 18.31 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000448/0.2802, allocations: 212.8 kB / 478.4 MB, free: 18.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003425/0.2805, allocations: 65.53 kB / 478.5 MB, free: 18.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009499/0.2815, allocations: 0.7998 MB / 479.3 MB, free: 17.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001907/0.2817, allocations: 0.8152 MB / 480.1 MB, free: 16.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002124/0.2819, allocations: 88.23 kB / 480.2 MB, free: 16.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.168e-05/0.282, allocations: 47.73 kB / 480.2 MB, free: 16.78 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.282, allocations: 0 / 480.2 MB, free: 16.78 MB / 350.1 MB Notification: Performance of Templates: time 0.006684/0.2887, allocations: 4.173 MB / 484.4 MB, free: 14.2 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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