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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001763/0.001763, allocations: 112.2 kB / 20.43 MB, free: 1.457 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002434/0.002434, allocations: 183.7 kB / 23.71 MB, free: 4.695 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.53/1.53, allocations: 225.6 MB / 252.5 MB, free: 13 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1863/0.1863, allocations: 38.54 MB / 346.3 MB, free: 2.117 MB / 270.1 MB
"
[Timeout remaining time 180]
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=2500,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=2500,variableFilter="Time|windFarm.p.1.|windFarm.p.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002018/0.002018, allocations: 71.89 kB / 484.5 MB, free: 11.15 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3912/0.3932, allocations: 61.29 MB / 0.533 GB, free: 5.566 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.005354/0.3986, allocations: 3.818 MB / 0.5368 GB, free: 2.883 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00281/0.4014, allocations: 2.081 MB / 0.5388 GB, free: 1.238 MB / 382.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002143/0.4016, allocations: 13.38 kB / 0.5388 GB, free: 1.23 MB / 382.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0008994/0.4025, allocations: 237.8 kB / 0.539 GB, free: 1.051 MB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0006565/0.4032, allocations: 291.6 kB / 0.5393 GB, free: 0.8242 MB / 382.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0006922/0.4038, allocations: 283.7 kB / 0.5396 GB, free: 0.6172 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0005071/0.4044, allocations: 0.537 MB / 0.5401 GB, free: 296 kB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002923/0.4046, allocations: 155 kB / 0.5403 GB, free: 188 kB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0004232/0.4051, allocations: 242 kB / 0.5405 GB, free: 36 kB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003513/0.4054, allocations: 230.3 kB / 0.5407 GB, free: 15.88 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 6.382e-05/0.4055, allocations: 38.19 kB / 0.5407 GB, free: 15.88 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.000732/0.4062, allocations: 403.7 kB / 0.5411 GB, free: 15.68 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001613/0.4064, allocations: 129.2 kB / 0.5413 GB, free: 15.59 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.000239/0.4066, allocations: 185.1 kB / 0.5414 GB, free: 15.46 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001239/0.4079, allocations: 0.6393 MB / 0.5421 GB, free: 15.03 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.4079, allocations: 0 / 0.5421 GB, free: 15.03 MB / 398.1 MB
Notification: Performance of FrontEnd: time 2.164e-06/0.4079, allocations: 0 / 0.5421 GB, free: 15.03 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 1.154e-05/0.4079, allocations: 1.188 kB / 0.5421 GB, free: 15.03 MB / 398.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.00163/0.4095, allocations: 0.6871 MB / 0.5427 GB, free: 14.45 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.573e-05/0.4096, allocations: 9.531 kB / 0.5427 GB, free: 14.45 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001049/0.4106, allocations: 103.6 kB / 0.5428 GB, free: 14.4 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008328/0.4114, allocations: 364.2 kB / 0.5432 GB, free: 14.09 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.109e-05/0.4115, allocations: 17.44 kB / 0.5432 GB, free: 14.08 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.827e-05/0.4115, allocations: 26.89 kB / 0.5432 GB, free: 14.07 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.4126, allocations: 450 kB / 0.5436 GB, free: 13.77 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.4126, allocations: 1.625 kB / 0.5437 GB, free: 13.77 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.995e-05/0.4126, allocations: 5.562 kB / 0.5437 GB, free: 13.77 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.122e-05/0.4127, allocations: 23.45 kB / 0.5437 GB, free: 13.76 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001121/0.4138, allocations: 0.496 MB / 0.5442 GB, free: 13.52 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002487/0.4163, allocations: 1.646 MB / 0.5458 GB, free: 12.12 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001077/0.4174, allocations: 354.5 kB / 0.5461 GB, free: 11.93 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0004006/0.4178, allocations: 129.9 kB / 0.5462 GB, free: 11.85 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 4.873e-05/0.4178, allocations: 10.31 kB / 0.5462 GB, free: 11.85 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006457/0.4185, allocations: 282.5 kB / 0.5465 GB, free: 11.62 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=31): time 2.234e-06/0.4185, allocations: 0 / 0.5465 GB, free: 11.62 MB / 398.1 MB
Notification: Performance of matching and sorting (n=31): time 0.001564/0.42, allocations: 0.5303 MB / 0.547 GB, free: 11.36 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002514/0.4203, allocations: 301.4 kB / 0.5473 GB, free: 11 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005236/0.4208, allocations: 332.2 kB / 0.5476 GB, free: 10.79 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 5.252e-05/0.4209, allocations: 38.14 kB / 0.5477 GB, free: 10.75 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0002146/0.4211, allocations: 199.3 kB / 0.5479 GB, free: 10.56 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.4212, allocations: 106.8 kB / 0.548 GB, free: 10.47 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001376/0.4213, allocations: 70 kB / 0.548 GB, free: 10.43 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001938/0.4215, allocations: 348.7 kB / 0.5484 GB, free: 10.09 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004/0.4219, allocations: 142.2 kB / 0.5485 GB, free: 10.02 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005119/0.4224, allocations: 275.7 kB / 0.5488 GB, free: 9.77 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0009855/0.4234, allocations: 460.8 kB / 0.5492 GB, free: 9.414 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.4234, allocations: 1.219 kB / 0.5492 GB, free: 9.414 MB / 398.1 MB
Notification: Performance of matching and sorting (n=44) (initialization): time 0.001158/0.4246, allocations: 0.5201 MB / 0.5497 GB, free: 9.129 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 4.769e-05/0.4246, allocations: 32.98 kB / 0.5497 GB, free: 9.098 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.4246, allocations: 4.375 kB / 0.5497 GB, free: 9.098 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.197e-05/0.4247, allocations: 6.125 kB / 0.5498 GB, free: 9.098 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00035/0.425, allocations: 88.22 kB / 0.5498 GB, free: 9.074 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.688e-05/0.425, allocations: 10.09 kB / 0.5498 GB, free: 9.07 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003232/0.4254, allocations: 51.72 kB / 0.5499 GB, free: 9.039 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.662e-05/0.4254, allocations: 19.28 kB / 0.5499 GB, free: 9.035 MB / 398.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 ($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 0.0002548/0.4256, allocations: 184.6 kB / 0.5501 GB, free: 8.879 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 9.693e-05/0.4257, allocations: 44.66 kB / 0.5501 GB, free: 8.852 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001034/0.4268, allocations: 406.1 kB / 0.5505 GB, free: 8.633 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.4268, allocations: 5.156 kB / 0.5505 GB, free: 8.633 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.4268, allocations: 1.469 kB / 0.5505 GB, free: 8.633 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.457e-06/0.4268, allocations: 6.891 kB / 0.5505 GB, free: 8.629 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001097/0.4279, allocations: 1.002 MB / 0.5515 GB, free: 7.688 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.4279, allocations: 2.25 kB / 0.5515 GB, free: 7.688 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002608/0.4282, allocations: 62.92 kB / 0.5516 GB, free: 7.668 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 7.584e-06/0.4282, allocations: 3.688 kB / 0.5516 GB, free: 7.668 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.117e-05/0.4282, allocations: 13.95 kB / 0.5516 GB, free: 7.66 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-05/0.4282, allocations: 12.05 kB / 0.5516 GB, free: 7.652 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.4282, allocations: 2 kB / 0.5516 GB, free: 7.652 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/0.4292, allocations: 478.4 kB / 0.5521 GB, free: 7.344 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 7.833e-05/0.4293, allocations: 39.53 kB / 0.5521 GB, free: 7.316 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.025e-05/0.4294, allocations: 14.94 kB / 0.5521 GB, free: 7.309 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002211/0.4296, allocations: 24.25 kB / 0.5521 GB, free: 7.297 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.4297, allocations: 41.2 kB / 0.5522 GB, free: 7.27 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.98e-05/0.4297, allocations: 16.02 kB / 0.5522 GB, free: 7.266 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 0.0002817/0.43, allocations: 236.4 kB / 0.5524 GB, free: 7.109 MB / 398.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.43, allocations: 1 kB / 0.5524 GB, free: 7.109 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.00049/0.4305, allocations: 87.33 kB / 0.5525 GB, free: 7.09 MB / 398.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.disturbance.count,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled)
 * 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 (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.001704/0.4322, allocations: 476.5 kB / 0.553 GB, free: 6.859 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.001122/0.4333, allocations: 406.6 kB / 0.5533 GB, free: 6.637 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.4333, allocations: 1.094 kB / 0.5533 GB, free: 6.637 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0005018/0.4338, allocations: 186.5 kB / 0.5535 GB, free: 6.551 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000503/0.4343, allocations: 78.8 kB / 0.5536 GB, free: 6.508 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001515/0.4358, allocations: 0.7008 MB / 0.5543 GB, free: 5.863 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005943/0.4364, allocations: 0.815 MB / 0.5551 GB, free: 5.02 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 0.0002471/0.4367, allocations: 83.2 kB / 0.5552 GB, free: 4.934 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.4368, allocations: 43.42 kB / 0.5552 GB, free: 4.891 MB / 398.1 MB
Notification: Performance of SimCode: time 9.12e-07/0.4368, allocations: 0 / 0.5552 GB, free: 4.891 MB / 398.1 MB
Notification: Performance of Templates: time 0.01149/0.4483, allocations: 4.892 MB / 0.56 GB, free: 48 kB / 398.1 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=480  -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1) [Timeout 480]
diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 5.4558199513703585]