Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.00191/0.00191, 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.002724/0.002724, allocations: 210.3 kB / 23.72 MB, free: 4.391 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.626/1.626, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.1947/0.1947, allocations: 38.55 MB / 352.5 MB, free: 12.31 MB / 286.1 MB " [Timeout remaining time 180] 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.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi|generator1.p.1.|generator1.p.2.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi|generator1.p.1.|generator1.p.2.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") [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.002101/0.002101, allocations: 67.89 kB / 493 MB, free: 4.199 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3865/0.3886, allocations: 62.47 MB / 0.5424 GB, free: 420 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.007039/0.3956, allocations: 4.752 MB / 0.5471 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00425/0.3998, allocations: 2.341 MB / 0.5494 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002951/0.4001, allocations: 12.94 kB / 0.5494 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001316/0.4015, allocations: 433 kB / 0.5498 GB, free: 10.63 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001258/0.4027, allocations: 0.5093 MB / 0.5503 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007564/0.4035, allocations: 284.5 kB / 0.5506 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000876/0.4043, allocations: 0.7336 MB / 0.5513 GB, free: 9.605 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005286/0.4049, allocations: 285.3 kB / 0.5515 GB, free: 9.422 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006208/0.4055, allocations: 340.8 kB / 0.5519 GB, free: 9.227 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005291/0.406, allocations: 334.8 kB / 0.5522 GB, free: 9.031 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.681e-05/0.4061, allocations: 37.56 kB / 0.5522 GB, free: 9.031 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001031/0.4071, allocations: 0.5305 MB / 0.5527 GB, free: 8.742 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002276/0.4073, allocations: 196.9 kB / 0.5529 GB, free: 8.617 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002555/0.4076, allocations: 210 kB / 0.5531 GB, free: 8.496 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001158/0.4088, allocations: 0.7657 MB / 0.5539 GB, free: 8.031 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.655e-06/0.4088, allocations: 3.984 kB / 0.5539 GB, free: 8.027 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4088, allocations: 1.156 kB / 0.5539 GB, free: 8.027 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.4088, allocations: 4 kB / 0.5539 GB, free: 8.023 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001471/0.4103, allocations: 0.7095 MB / 0.5546 GB, free: 7.445 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.616e-05/0.4103, allocations: 13.95 kB / 0.5546 GB, free: 7.441 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001793/0.4121, allocations: 203.8 kB / 0.5548 GB, free: 7.348 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007036/0.4128, allocations: 305.3 kB / 0.5551 GB, free: 7.094 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.121e-05/0.4129, allocations: 29.78 kB / 0.5551 GB, free: 7.078 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001234/0.413, allocations: 55.94 kB / 0.5552 GB, free: 7.051 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/0.4141, allocations: 0.6188 MB / 0.5558 GB, free: 6.457 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.104e-05/0.4141, allocations: 11.95 kB / 0.5558 GB, free: 6.445 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.241e-05/0.4142, allocations: 12 kB / 0.5558 GB, free: 6.434 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.214e-05/0.4142, allocations: 36.92 kB / 0.5558 GB, free: 6.398 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/0.4153, allocations: 0.6089 MB / 0.5564 GB, free: 5.789 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00331/0.4186, allocations: 2.013 MB / 0.5584 GB, free: 3.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006303/0.4192, allocations: 369.5 kB / 0.5587 GB, free: 3.301 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003247/0.4195, allocations: 209.7 kB / 0.5589 GB, free: 3.09 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.11e-05/0.4196, allocations: 7.984 kB / 0.5589 GB, free: 3.082 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.302e-05/0.4196, allocations: 38.56 kB / 0.559 GB, free: 3.035 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.665e-06/0.4196, allocations: 0 / 0.559 GB, free: 3.035 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.003427/0.423, allocations: 1.552 MB / 0.5605 GB, free: 1.445 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.938e-05/0.4231, allocations: 81.11 kB / 0.5606 GB, free: 1.348 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002757/0.4234, allocations: 254 kB / 0.5608 GB, free: 1.09 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.443e-05/0.4234, allocations: 29.7 kB / 0.5608 GB, free: 1.055 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000178/0.4236, allocations: 248.3 kB / 0.5611 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.4237, allocations: 154.7 kB / 0.5612 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001367/0.4239, allocations: 86.11 kB / 0.5613 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.424, allocations: 350.8 kB / 0.5616 GB, free: 220 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002728/0.4243, allocations: 176.9 kB / 0.5618 GB, free: 44 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003741/0.4247, allocations: 285.8 kB / 0.5621 GB, free: 15.72 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006906/0.4254, allocations: 0.5082 MB / 0.5626 GB, free: 15.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.4254, allocations: 0 / 0.5626 GB, free: 15.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001175/0.4265, allocations: 0.6659 MB / 0.5632 GB, free: 14.49 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.4266, allocations: 15.98 kB / 0.5632 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-06/0.4266, allocations: 4 kB / 0.5632 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005894/0.4272, allocations: 176.6 kB / 0.5634 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003442/0.4275, allocations: 91.89 kB / 0.5635 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003648/0.4312, allocations: 2.638 MB / 0.5661 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000283/0.4314, allocations: 19.98 kB / 0.5661 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.399e-05/0.4315, allocations: 23.98 kB / 0.5661 GB, free: 11.43 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0003012/0.4318, allocations: 197.8 kB / 0.5663 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.53e-05/0.4319, allocations: 35.88 kB / 0.5663 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001245/0.4331, allocations: 0.6371 MB / 0.567 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.4331, allocations: 4 kB / 0.567 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.4331, allocations: 0 / 0.567 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/0.4331, allocations: 3.984 kB / 0.567 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002213/0.4354, allocations: 1.161 MB / 0.5681 GB, free: 9.328 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.4354, allocations: 0 / 0.5681 GB, free: 9.328 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003746/0.4357, allocations: 79.89 kB / 0.5682 GB, free: 9.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004671/0.4362, allocations: 140.7 kB / 0.5683 GB, free: 9.109 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.044e-05/0.4362, allocations: 8 kB / 0.5683 GB, free: 9.102 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00319/0.4394, allocations: 2.426 MB / 0.5707 GB, free: 6.574 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.4394, allocations: 0 / 0.5707 GB, free: 6.574 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001584/0.441, allocations: 0.946 MB / 0.5716 GB, free: 5.594 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.4411, allocations: 35.75 kB / 0.5717 GB, free: 5.559 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.955e-05/0.4412, allocations: 8 kB / 0.5717 GB, free: 5.551 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002057/0.4414, allocations: 16.03 kB / 0.5717 GB, free: 5.535 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.494e-05/0.4415, allocations: 39.88 kB / 0.5717 GB, free: 5.496 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.52e-05/0.4415, allocations: 15.98 kB / 0.5717 GB, free: 5.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002119/0.4417, allocations: 173.2 kB / 0.5719 GB, free: 5.312 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4417, allocations: 0 / 0.5719 GB, free: 5.312 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007327/0.4424, allocations: 136 kB / 0.572 GB, free: 5.18 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001664/0.4426, allocations: 111.3 kB / 0.5721 GB, free: 5.062 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001329/0.4439, allocations: 0.646 MB / 0.5728 GB, free: 4.406 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.4439, allocations: 4 kB / 0.5728 GB, free: 4.402 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007406/0.4447, allocations: 416 kB / 0.5732 GB, free: 3.984 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005864/0.4453, allocations: 60.45 kB / 0.5732 GB, free: 3.926 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002374/0.4476, allocations: 1.142 MB / 0.5743 GB, free: 2.746 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003531/0.448, allocations: 266.7 kB / 0.5746 GB, free: 2.461 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000222/0.4482, allocations: 71.22 kB / 0.5747 GB, free: 2.391 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/0.4483, allocations: 35.61 kB / 0.5747 GB, free: 2.355 MB / 414.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4483, allocations: 0 / 0.5747 GB, free: 2.355 MB / 414.1 MB Notification: Performance of Templates: time 0.01261/0.4609, allocations: 5.953 MB / 0.5805 GB, free: 12.45 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.667075168341398]