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.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.001588/0.001588, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 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.002319/0.002319, allocations: 208.4 kB / 23.73 MB, free: 4.387 MB / 14.72 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 1.739/1.739, allocations: 230.6 MB / 257.5 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] 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.2239/0.2239, allocations: 38.56 MB / 352.5 MB, free: 12.32 MB / 286.1 MB " [Timeout remaining time 179] Using package PowerSystems with version 2.0.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.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: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002129/0.002129, allocations: 71.88 kB / 493 MB, free: 4.207 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3852/0.3873, allocations: 62.48 MB / 0.5424 GB, free: 424 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005264/0.3926, allocations: 3.311 MB / 0.5457 GB, free: 13.86 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001986/0.3945, allocations: 1.161 MB / 0.5468 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001348/0.3947, allocations: 14.09 kB / 0.5468 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006446/0.3953, allocations: 159 kB / 0.547 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004108/0.3957, allocations: 182.9 kB / 0.5471 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003114/0.396, allocations: 135.4 kB / 0.5473 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003661/0.3964, allocations: 276.7 kB / 0.5475 GB, free: 12.44 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002901/0.3967, allocations: 115.6 kB / 0.5476 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002848/0.397, allocations: 132.6 kB / 0.5478 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002226/0.3972, allocations: 109.1 kB / 0.5479 GB, free: 12.22 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.33e-05/0.3972, allocations: 18.53 kB / 0.5479 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003754/0.3976, allocations: 191.2 kB / 0.5481 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.315e-05/0.3977, allocations: 55.33 kB / 0.5481 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001203/0.3978, allocations: 81.72 kB / 0.5482 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000487/0.3983, allocations: 293.8 kB / 0.5485 GB, free: 11.86 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/0.3983, allocations: 1.094 kB / 0.5485 GB, free: 11.86 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3983, allocations: 0 / 0.5485 GB, free: 11.86 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.3983, allocations: 0 / 0.5485 GB, free: 11.86 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0007428/0.3991, allocations: 433.1 kB / 0.5489 GB, free: 11.47 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.3991, allocations: 16.8 kB / 0.5489 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006747/0.3998, allocations: 81.91 kB / 0.549 GB, free: 11.42 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003917/0.4002, allocations: 197.5 kB / 0.5492 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.058e-05/0.4002, allocations: 11.83 kB / 0.5492 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.436e-05/0.4002, allocations: 15.34 kB / 0.5492 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004677/0.4007, allocations: 271 kB / 0.5495 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.1e-05/0.4007, allocations: 5.062 kB / 0.5495 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.782e-05/0.4008, allocations: 14.12 kB / 0.5495 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.254e-05/0.4008, allocations: 15.3 kB / 0.5495 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003564/0.4011, allocations: 215.4 kB / 0.5497 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001689/0.4028, allocations: 1.075 MB / 0.5508 GB, free: 9.957 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002416/0.4031, allocations: 127.6 kB / 0.5509 GB, free: 9.867 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.25e-05/0.4031, allocations: 47.48 kB / 0.5509 GB, free: 9.832 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.462e-05/0.4032, allocations: 1.406 kB / 0.5509 GB, free: 9.832 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.854e-05/0.4032, allocations: 37.41 kB / 0.551 GB, free: 9.789 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 1.343e-06/0.4032, allocations: 0 / 0.551 GB, free: 9.789 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003461/0.4035, allocations: 162.4 kB / 0.5511 GB, free: 9.695 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.932e-05/0.4036, allocations: 86.17 kB / 0.5512 GB, free: 9.594 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001945/0.4038, allocations: 193.2 kB / 0.5514 GB, free: 9.438 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.127e-05/0.4039, allocations: 26.52 kB / 0.5514 GB, free: 9.406 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001206/0.404, allocations: 160 kB / 0.5516 GB, free: 9.258 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.405e-05/0.404, allocations: 48.75 kB / 0.5516 GB, free: 9.215 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.371e-05/0.4041, allocations: 44.33 kB / 0.5516 GB, free: 9.18 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.4043, allocations: 327.3 kB / 0.552 GB, free: 8.855 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.916e-05/0.4043, allocations: 39.23 kB / 0.552 GB, free: 8.84 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001515/0.4045, allocations: 126.8 kB / 0.5521 GB, free: 8.715 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002384/0.4047, allocations: 187.8 kB / 0.5523 GB, free: 8.555 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.4047, allocations: 1.344 kB / 0.5523 GB, free: 8.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003103/0.405, allocations: 206.1 kB / 0.5525 GB, free: 8.438 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.4051, allocations: 8.812 kB / 0.5525 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.4051, allocations: 7.156 kB / 0.5525 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.4051, allocations: 3.656 kB / 0.5525 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002328/0.4053, allocations: 50.59 kB / 0.5526 GB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00116/0.4065, allocations: 1.292 MB / 0.5538 GB, free: 7.105 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001135/0.4066, allocations: 18.7 kB / 0.5538 GB, free: 7.094 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.284e-05/0.4066, allocations: 7.938 kB / 0.5538 GB, free: 7.094 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.0001942/0.4068, allocations: 151 kB / 0.554 GB, free: 6.949 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.345e-05/0.4068, allocations: 19 kB / 0.554 GB, free: 6.938 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000268/0.4071, allocations: 134 kB / 0.5541 GB, free: 6.848 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.4071, allocations: 2.25 kB / 0.5541 GB, free: 6.848 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.404e-06/0.4071, allocations: 1.062 kB / 0.5541 GB, free: 6.848 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.405e-06/0.4071, allocations: 5.109 kB / 0.5541 GB, free: 6.844 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007372/0.4079, allocations: 425.2 kB / 0.5545 GB, free: 6.484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.4079, allocations: 0.9688 kB / 0.5545 GB, free: 6.484 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00018/0.4081, allocations: 39.19 kB / 0.5546 GB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/0.4081, allocations: 9.297 kB / 0.5546 GB, free: 6.461 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/0.4081, allocations: 2.25 kB / 0.5546 GB, free: 6.461 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001069/0.4091, allocations: 1.302 MB / 0.5559 GB, free: 5.125 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.4091, allocations: 1.5 kB / 0.5559 GB, free: 5.125 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003908/0.4095, allocations: 295.8 kB / 0.5562 GB, free: 4.898 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.285e-05/0.4096, allocations: 20.95 kB / 0.5562 GB, free: 4.883 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.793e-05/0.4096, allocations: 14.41 kB / 0.5562 GB, free: 4.871 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.928e-05/0.4097, allocations: 0.9375 kB / 0.5562 GB, free: 4.871 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.012e-05/0.4097, allocations: 12.39 kB / 0.5562 GB, free: 4.863 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.685e-05/0.4097, allocations: 8.906 kB / 0.5562 GB, free: 4.859 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001357/0.4099, allocations: 133.1 kB / 0.5563 GB, free: 4.758 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4099, allocations: 0 / 0.5563 GB, free: 4.758 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004076/0.4103, allocations: 47.73 kB / 0.5564 GB, free: 4.75 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.0001509/0.4104, allocations: 103.5 kB / 0.5565 GB, free: 4.652 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003683/0.4108, allocations: 130.4 kB / 0.5566 GB, free: 4.594 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.4108, allocations: 0 / 0.5566 GB, free: 4.594 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001642/0.411, allocations: 51.59 kB / 0.5567 GB, free: 4.574 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004495/0.4114, allocations: 34.97 kB / 0.5567 GB, free: 4.555 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001111/0.4125, allocations: 0.5158 MB / 0.5572 GB, free: 4.16 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001391/0.4127, allocations: 127.8 kB / 0.5573 GB, free: 4.055 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.95e-05/0.4128, allocations: 32.83 kB / 0.5573 GB, free: 4.039 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.4e-05/0.4128, allocations: 19.41 kB / 0.5574 GB, free: 4.027 MB / 398.1 MB Notification: Performance of SimCode: time 3.01e-07/0.4128, allocations: 0 / 0.5574 GB, free: 4.027 MB / 398.1 MB Notification: Performance of Templates: time 0.005526/0.4183, allocations: 1.61 MB / 0.5589 GB, free: 2.668 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.605053052306175]