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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 168.7 kB / 24.91 MB, free: 9.195 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9666/0.9666, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.2211/0.2211, allocations: 29.43 MB / 291.2 MB, free: 2.477 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|windFarm.p.[0-9,]+.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") translateModel(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|windFarm.p.[0-9,]+.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.303e-06/1.303e-06, allocations: 0 / 316.8 MB, free: 24 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.107e-05/1.237e-05, allocations: 6.25 kB / 316.8 MB, free: 16 kB / 282.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.003747/0.00376, allocations: 3.718 MB / 320.6 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00175/0.00551, allocations: 1.783 MB / 322.3 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001227/0.005633, allocations: 15.88 kB / 322.4 MB, free: 10.47 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004985/0.006131, allocations: 183 kB / 322.5 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003699/0.006501, allocations: 294.5 kB / 322.8 MB, free: 10 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000276/0.006777, allocations: 255 kB / 323.1 MB, free: 9.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003674/0.007144, allocations: 0.5417 MB / 323.6 MB, free: 9.207 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002239/0.007368, allocations: 198.5 kB / 323.8 MB, free: 9.012 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003246/0.007693, allocations: 320.4 kB / 324.1 MB, free: 8.699 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001907/0.007884, allocations: 207.5 kB / 324.3 MB, free: 8.496 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.752e-05/0.007921, allocations: 40 kB / 324.4 MB, free: 8.457 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002843/0.008206, allocations: 335.1 kB / 324.7 MB, free: 8.129 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.389e-05/0.008299, allocations: 143.6 kB / 324.8 MB, free: 7.988 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.915e-05/0.008389, allocations: 127.7 kB / 325 MB, free: 7.863 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000427/0.008816, allocations: 0.5295 MB / 325.5 MB, free: 7.332 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.733e-06/0.008817, allocations: 0 / 325.5 MB, free: 7.332 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.7e-07/0.008818, allocations: 0 / 325.5 MB, free: 7.332 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.116e-06/0.008821, allocations: 0 / 325.5 MB, free: 7.332 MB / 298.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.0006559/0.009477, allocations: 0.6575 MB / 326.1 MB, free: 6.641 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.856e-05/0.009505, allocations: 15.98 kB / 326.2 MB, free: 6.625 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004613/0.009967, allocations: 152.7 kB / 326.3 MB, free: 6.477 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002969/0.01026, allocations: 298.3 kB / 326.6 MB, free: 6.156 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.777e-05/0.01028, allocations: 24.86 kB / 326.6 MB, free: 6.133 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.993e-05/0.01031, allocations: 24.38 kB / 326.7 MB, free: 6.109 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005457/0.01086, allocations: 307.9 kB / 327 MB, free: 5.777 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.01087, allocations: 3.938 kB / 327 MB, free: 5.773 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.067e-05/0.01089, allocations: 12 kB / 327 MB, free: 5.762 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.685e-05/0.01091, allocations: 28.47 kB / 327 MB, free: 5.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002024/0.01112, allocations: 174 kB / 327.2 MB, free: 5.559 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009444/0.01206, allocations: 1.194 MB / 328.4 MB, free: 4.297 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003046/0.01237, allocations: 255.2 kB / 328.6 MB, free: 4.027 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.777e-05/0.01242, allocations: 42.17 kB / 328.6 MB, free: 3.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.938e-05/0.01244, allocations: 11.98 kB / 328.7 MB, free: 3.969 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001852/0.01263, allocations: 213.7 kB / 328.9 MB, free: 3.719 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 1.242e-06/0.01263, allocations: 4 kB / 328.9 MB, free: 3.715 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.0002651/0.01289, allocations: 206.9 kB / 329.1 MB, free: 3.508 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.848e-05/0.01299, allocations: 298.7 kB / 329.4 MB, free: 3.148 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002094/0.0132, allocations: 304.6 kB / 329.7 MB, free: 2.836 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.423e-05/0.01323, allocations: 37.7 kB / 329.7 MB, free: 2.793 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.872e-05/0.01329, allocations: 174.2 kB / 329.9 MB, free: 2.621 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.999e-05/0.01334, allocations: 103.1 kB / 330 MB, free: 2.52 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.795e-05/0.01341, allocations: 77.66 kB / 330 MB, free: 2.438 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.149e-05/0.01349, allocations: 354.7 kB / 330.4 MB, free: 2.082 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.475e-05/0.01356, allocations: 61.23 kB / 330.5 MB, free: 2.016 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001239/0.01368, allocations: 228.4 kB / 330.7 MB, free: 1.719 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002031/0.01389, allocations: 283.9 kB / 331 MB, free: 1.375 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.01389, allocations: 0 / 331 MB, free: 1.375 MB / 298.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000253/0.01414, allocations: 291.2 kB / 331.2 MB, free: 1.066 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.456e-05/0.01417, allocations: 33.7 kB / 331.3 MB, free: 1.027 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.01417, allocations: 4.562 kB / 331.3 MB, free: 1.023 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.01419, allocations: 8 kB / 331.3 MB, free: 1.016 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001657/0.01435, allocations: 87.83 kB / 331.4 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/0.01436, allocations: 7.938 kB / 331.4 MB, free: 0.9219 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001114/0.01447, allocations: 51.75 kB / 331.4 MB, free: 0.8711 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.489e-05/0.01448, allocations: 8 kB / 331.4 MB, free: 0.8633 MB / 298.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 ($PRE.windFarm.wind.nextTimeEvent,$whenCondition2,windFarm.disturbance.count,$PRE.windFarm.disturbance.count,windFarm.disturbance.T_start,$PRE.windFarm.disturbance.T_start,windFarm.wind.nextTimeEventScaled,$PRE.windFarm.wind.nextTimeEventScaled,windFarm.wind.nextTimeEvent,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.4e-05/0.01458, allocations: 144.5 kB / 331.6 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.97e-05/0.01462, allocations: 35.91 kB / 331.6 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002113/0.01483, allocations: 204.7 kB / 331.8 MB, free: 480 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.01483, allocations: 15.98 kB / 331.8 MB, free: 464 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.01484, allocations: 7.938 kB / 331.8 MB, free: 456 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.01484, allocations: 3.984 kB / 331.8 MB, free: 452 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004455/0.01529, allocations: 0.7917 MB / 332.6 MB, free: 15.6 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.01529, allocations: 4 kB / 332.6 MB, free: 15.6 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001254/0.01542, allocations: 71.83 kB / 332.7 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.01542, allocations: 4 kB / 332.7 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.01543, allocations: 16.19 kB / 332.7 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.01544, allocations: 4 kB / 332.7 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.634e-06/0.01545, allocations: 7.984 kB / 332.7 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002057/0.01565, allocations: 264.7 kB / 333 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.151e-05/0.01568, allocations: 43.64 kB / 333 MB, free: 15.15 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.478e-05/0.01572, allocations: 16 kB / 333.1 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.802e-05/0.0158, allocations: 23.97 kB / 333.1 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.336e-05/0.01585, allocations: 39.88 kB / 333.1 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.01586, allocations: 12 kB / 333.1 MB, free: 15.06 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.232e-05/0.01596, allocations: 123.4 kB / 333.2 MB, free: 14.94 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01596, allocations: 0 / 333.2 MB, free: 14.94 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002377/0.01619, allocations: 115.8 kB / 333.4 MB, free: 14.82 MB / 314.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00131/0.0175, allocations: 0.6489 MB / 334 MB, free: 14.52 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005245/0.01803, allocations: 262.7 kB / 334.3 MB, free: 14.24 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.01803, allocations: 8.062 kB / 334.3 MB, free: 14.23 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.434e-05/0.01813, allocations: 96.62 kB / 334.4 MB, free: 14.14 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002105/0.01834, allocations: 86.92 kB / 334.5 MB, free: 14.05 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00091/0.01925, allocations: 0.6739 MB / 335.1 MB, free: 13.33 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.653e-05/0.01931, allocations: 114.1 kB / 335.2 MB, free: 13.2 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001085/0.01942, allocations: 59.23 kB / 335.3 MB, free: 13.14 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001565/0.01958, allocations: 127.3 kB / 335.4 MB, free: 13.02 MB / 314.7 MB Notification: Performance of SimCode: time 6.81e-07/0.01958, allocations: 4 kB / 335.4 MB, free: 13.02 MB / 314.7 MB Notification: Performance of Templates: time 0.007279/0.02686, allocations: 5.984 MB / 341.4 MB, free: 7.117 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0378166530281305]