Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.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.001502/0.001502, allocations: 109.5 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.001637/0.001637, allocations: 184.3 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.486/1.486, allocations: 225.6 MB / 252.5 MB, free: 12.99 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.22/0.22, allocations: 38.54 MB / 346.3 MB, free: 2.129 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.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest")
translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002118/0.002118, allocations: 71.88 kB / 484.5 MB, free: 11.15 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4014/0.4036, allocations: 61.29 MB / 0.533 GB, free: 5.578 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.004971/0.4085, allocations: 3.434 MB / 0.5364 GB, free: 3.168 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001607/0.4101, allocations: 1.246 MB / 0.5376 GB, free: 2.191 MB / 382.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001415/0.4103, allocations: 9.438 kB / 0.5376 GB, free: 2.188 MB / 382.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0006634/0.4109, allocations: 166.7 kB / 0.5378 GB, free: 2.059 MB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0003846/0.4113, allocations: 174.1 kB / 0.5379 GB, free: 1.922 MB / 382.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002825/0.4116, allocations: 134.5 kB / 0.5381 GB, free: 1.82 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0003093/0.4119, allocations: 293.7 kB / 0.5383 GB, free: 1.652 MB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002397/0.4122, allocations: 91.36 kB / 0.5384 GB, free: 1.594 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001778/0.4123, allocations: 125.2 kB / 0.5386 GB, free: 1.523 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001625/0.4125, allocations: 118.1 kB / 0.5387 GB, free: 1.449 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.812e-05/0.4125, allocations: 17.75 kB / 0.5387 GB, free: 1.445 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0003299/0.4129, allocations: 232 kB / 0.5389 GB, free: 1.324 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.014e-05/0.4129, allocations: 65.61 kB / 0.539 GB, free: 1.277 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 9.567e-05/0.413, allocations: 93.86 kB / 0.5391 GB, free: 1.219 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004069/0.4134, allocations: 288.8 kB / 0.5393 GB, free: 1.047 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.4134, allocations: 5.344 kB / 0.5393 GB, free: 1.043 MB / 382.1 MB
Notification: Performance of FrontEnd: time 1.713e-06/0.4134, allocations: 0 / 0.5393 GB, free: 1.043 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 1.163e-05/0.4135, allocations: 0 / 0.5393 GB, free: 1.043 MB / 382.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 44
 * Number of variables: 44
Notification: Performance of Generate backend data structure: time 0.0006243/0.4141, allocations: 444.5 kB / 0.5398 GB, free: 0.6445 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.4141, allocations: 12.97 kB / 0.5398 GB, free: 0.6406 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000703/0.4148, allocations: 77.62 kB / 0.5398 GB, free: 0.6055 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003355/0.4152, allocations: 201.4 kB / 0.54 GB, free: 428 kB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.296e-05/0.4152, allocations: 10.92 kB / 0.5401 GB, free: 424 kB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.58e-05/0.4152, allocations: 16.12 kB / 0.5401 GB, free: 420 kB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004389/0.4157, allocations: 285.2 kB / 0.5403 GB, free: 204 kB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.843e-05/0.4157, allocations: 1.5 kB / 0.5403 GB, free: 204 kB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.514e-05/0.4157, allocations: 5.688 kB / 0.5403 GB, free: 200 kB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.846e-05/0.4158, allocations: 10.89 kB / 0.5404 GB, free: 200 kB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003468/0.4161, allocations: 221.7 kB / 0.5406 GB, free: 92 kB / 382.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001766/0.4179, allocations: 1.137 MB / 0.5417 GB, free: 15.07 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002437/0.4181, allocations: 130.5 kB / 0.5418 GB, free: 14.97 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 9.752e-05/0.4182, allocations: 47.78 kB / 0.5418 GB, free: 14.94 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.355e-05/0.4182, allocations: 1.594 kB / 0.5419 GB, free: 14.94 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.856e-05/0.4183, allocations: 48.09 kB / 0.5419 GB, free: 14.88 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=12): time 1.222e-06/0.4183, allocations: 1.5 kB / 0.5419 GB, free: 14.88 MB / 398.1 MB
Notification: Performance of matching and sorting (n=12): time 0.0004438/0.4187, allocations: 174.1 kB / 0.5421 GB, free: 14.78 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.782e-05/0.4188, allocations: 79.27 kB / 0.5421 GB, free: 14.68 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002177/0.419, allocations: 209.3 kB / 0.5423 GB, free: 14.53 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.965e-05/0.419, allocations: 25.7 kB / 0.5424 GB, free: 14.5 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.4191, allocations: 155.5 kB / 0.5425 GB, free: 14.35 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 4.43e-05/0.4192, allocations: 41.17 kB / 0.5426 GB, free: 14.32 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 6.952e-05/0.4192, allocations: 48.31 kB / 0.5426 GB, free: 14.28 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001652/0.4194, allocations: 331.4 kB / 0.5429 GB, free: 13.95 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 7.865e-05/0.4195, allocations: 39.14 kB / 0.543 GB, free: 13.93 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001535/0.4196, allocations: 121.1 kB / 0.5431 GB, free: 13.81 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002539/0.4199, allocations: 181.6 kB / 0.5432 GB, free: 13.65 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.4199, allocations: 5.344 kB / 0.5432 GB, free: 13.65 MB / 398.1 MB
Notification: Performance of matching and sorting (n=23) (initialization): time 0.000336/0.4202, allocations: 210.6 kB / 0.5434 GB, free: 13.53 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.4202, allocations: 6.062 kB / 0.5435 GB, free: 13.53 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.4202, allocations: 3.375 kB / 0.5435 GB, free: 13.53 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.165e-05/0.4203, allocations: 7.469 kB / 0.5435 GB, free: 13.52 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002523/0.4205, allocations: 54.72 kB / 0.5435 GB, free: 13.51 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001173/0.4217, allocations: 1.309 MB / 0.5448 GB, free: 12.16 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000117/0.4218, allocations: 23.41 kB / 0.5448 GB, free: 12.14 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.188e-05/0.4218, allocations: 11.81 kB / 0.5448 GB, free: 12.14 MB / 398.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 12
 * Number of states: 0 ()
 * Number of discrete variables: 1 (system.initime)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (23):
 * Single equations (assignments): 22
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 1
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Equation system details (not torn):
 * Constant Jacobian (size): 0 systems
 * Linear Jacobian (size,density): 0 systems
 * Non-linear Jacobian (size): 1 system
   {1}
 * Without analytic Jacobian (size): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.0001552/0.422, allocations: 149.3 kB / 0.545 GB, free: 12 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.504e-05/0.4221, allocations: 16.5 kB / 0.545 GB, free: 11.99 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003166/0.4224, allocations: 139.6 kB / 0.5451 GB, free: 11.89 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.4224, allocations: 5.219 kB / 0.5451 GB, free: 11.89 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.4224, allocations: 9.609 kB / 0.5451 GB, free: 11.88 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.4224, allocations: 0 / 0.5451 GB, free: 11.88 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007357/0.4231, allocations: 475.1 kB / 0.5456 GB, free: 11.47 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.4231, allocations: 1.312 kB / 0.5456 GB, free: 11.47 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001762/0.4233, allocations: 31.67 kB / 0.5456 GB, free: 11.46 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.4233, allocations: 1.094 kB / 0.5456 GB, free: 11.46 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.009e-05/0.4233, allocations: 8.594 kB / 0.5456 GB, free: 11.46 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001036/0.4244, allocations: 1.316 MB / 0.5469 GB, free: 10.1 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.4244, allocations: 1.156 kB / 0.5469 GB, free: 10.1 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004069/0.4248, allocations: 305.5 kB / 0.5472 GB, free: 9.859 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 4.212e-05/0.4248, allocations: 23.03 kB / 0.5472 GB, free: 9.844 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.836e-05/0.4248, allocations: 6.406 kB / 0.5472 GB, free: 9.84 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.774e-05/0.4249, allocations: 1.125 kB / 0.5472 GB, free: 9.84 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 3.386e-05/0.425, allocations: 11.55 kB / 0.5472 GB, free: 9.832 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.691e-05/0.425, allocations: 8.562 kB / 0.5473 GB, free: 9.828 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 0.000173/0.4252, allocations: 148.6 kB / 0.5474 GB, free: 9.719 MB / 398.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.4252, allocations: 0 / 0.5474 GB, free: 9.719 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0003746/0.4255, allocations: 50.92 kB / 0.5474 GB, free: 9.707 MB / 398.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 4
 * Number of states: 2 (inertia.w,constantTorque.phi)
 * Number of discrete variables: 1 (system.initime)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (13):
 * Single equations (assignments): 11
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 1
 * If-equations: 0
 * Equation systems (not torn): 1
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Equation system details (not torn):
 * Constant Jacobian (size): 0 systems
 * Linear Jacobian (size,density): 0 systems
 * Non-linear Jacobian (size): 1 system
   {1}
 * Without analytic Jacobian (size): 0 systems
Notification: Performance of Backend phase and start with SimCode phase: time 0.0001146/0.4256, allocations: 92.84 kB / 0.5475 GB, free: 9.621 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.0003713/0.426, allocations: 129.3 kB / 0.5477 GB, free: 9.562 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.426, allocations: 1.219 kB / 0.5477 GB, free: 9.562 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001604/0.4262, allocations: 63.25 kB / 0.5477 GB, free: 9.531 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000417/0.4266, allocations: 27.39 kB / 0.5477 GB, free: 9.52 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.4277, allocations: 0.5387 MB / 0.5483 GB, free: 9.102 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004575/0.4282, allocations: 0.7374 MB / 0.549 GB, free: 8.379 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 0.0001036/0.4283, allocations: 33.69 kB / 0.549 GB, free: 8.363 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.804e-05/0.4283, allocations: 16.78 kB / 0.549 GB, free: 8.355 MB / 398.1 MB
Notification: Performance of SimCode: time 3.21e-07/0.4283, allocations: 0 / 0.549 GB, free: 8.355 MB / 398.1 MB
Notification: Performance of Templates: time 0.005536/0.4339, allocations: 1.648 MB / 0.5506 GB, free: 7.543 MB / 398.1 MB
"
[Timeout remaining time 660]
make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile [Timeout 660]
(rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) [Timeout 480]
diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.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.308011609129608]