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.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.001692/0.001692, allocations: 112.2 kB / 19.04 MB, free: 3.254 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.001845/0.001845, allocations: 196.4 kB / 22.22 MB, free: 72 kB / 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.426/1.426, allocations: 225.6 MB / 250.8 MB, free: 13.33 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.1857/0.1857, allocations: 38.52 MB / 344.5 MB, free: 2.543 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.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: Performance of FrontEnd - loaded program: time 0.00197/0.00197, allocations: 67.89 kB / 482.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3433/0.3452, allocations: 61.25 MB / 0.5306 GB, free: 5.695 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.005883/0.3511, allocations: 5.031 MB / 0.5355 GB, free: 2.164 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003138/0.3543, allocations: 2.517 MB / 0.5379 GB, free: 212 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003436/0.3546, allocations: 13.78 kB / 0.538 GB, free: 208 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001276/0.3559, allocations: 454.6 kB / 0.5384 GB, free: 15.86 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001226/0.3571, allocations: 0.5032 MB / 0.5389 GB, free: 15.46 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000709/0.3578, allocations: 285.2 kB / 0.5391 GB, free: 15.25 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008304/0.3587, allocations: 0.7452 MB / 0.5399 GB, free: 14.83 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004444/0.3591, allocations: 252.1 kB / 0.5401 GB, free: 14.66 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004454/0.3595, allocations: 322.4 kB / 0.5404 GB, free: 14.48 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004522/0.36, allocations: 346.1 kB / 0.5408 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.104e-05/0.36, allocations: 36.53 kB / 0.5408 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001055/0.3611, allocations: 0.6633 MB / 0.5414 GB, free: 13.9 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002081/0.3613, allocations: 196.9 kB / 0.5416 GB, free: 13.78 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002515/0.3616, allocations: 246.6 kB / 0.5419 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001024/0.3626, allocations: 0.7679 MB / 0.5426 GB, free: 13.15 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.3626, allocations: 4 kB / 0.5426 GB, free: 13.14 MB / 398.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.3626, allocations: 0 / 0.5426 GB, free: 13.14 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.152e-05/0.3626, allocations: 0 / 0.5426 GB, free: 13.14 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.001136/0.3637, allocations: 0.7805 MB / 0.5434 GB, free: 12.48 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.3638, allocations: 17.52 kB / 0.5434 GB, free: 12.47 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001604/0.3654, allocations: 211.2 kB / 0.5436 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005282/0.3659, allocations: 373.4 kB / 0.5439 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.317e-05/0.3659, allocations: 29.91 kB / 0.544 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.544e-05/0.366, allocations: 44.14 kB / 0.544 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001013/0.367, allocations: 0.6323 MB / 0.5446 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.398e-05/0.3671, allocations: 2.5 kB / 0.5446 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.847e-05/0.3671, allocations: 15.53 kB / 0.5447 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.114e-05/0.3672, allocations: 31.55 kB / 0.5447 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009802/0.3681, allocations: 0.607 MB / 0.5453 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003352/0.3715, allocations: 2.252 MB / 0.5475 GB, free: 9.527 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006679/0.3722, allocations: 457.4 kB / 0.5479 GB, free: 9.215 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003206/0.3725, allocations: 209.8 kB / 0.5481 GB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.115e-05/0.3725, allocations: 8.594 kB / 0.5481 GB, free: 9.102 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/0.3726, allocations: 32.91 kB / 0.5482 GB, free: 9.062 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 1.824e-06/0.3726, allocations: 0 / 0.5482 GB, free: 9.062 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.003524/0.3761, allocations: 1.711 MB / 0.5498 GB, free: 7.969 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.676e-05/0.3761, allocations: 80.86 kB / 0.5499 GB, free: 7.875 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003079/0.3764, allocations: 286.3 kB / 0.5502 GB, free: 7.672 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.523e-05/0.3765, allocations: 35.92 kB / 0.5502 GB, free: 7.633 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001674/0.3766, allocations: 234.8 kB / 0.5504 GB, free: 7.422 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001401/0.3768, allocations: 161.5 kB / 0.5506 GB, free: 7.281 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001339/0.3769, allocations: 84.19 kB / 0.5507 GB, free: 7.227 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.3771, allocations: 351.8 kB / 0.551 GB, free: 6.883 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002777/0.3774, allocations: 173.1 kB / 0.5512 GB, free: 6.805 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003688/0.3777, allocations: 292 kB / 0.5514 GB, free: 6.582 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006839/0.3784, allocations: 0.5088 MB / 0.5519 GB, free: 6.238 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.3784, allocations: 1.719 kB / 0.5519 GB, free: 6.238 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001217/0.3796, allocations: 0.6759 MB / 0.5526 GB, free: 5.645 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.3796, allocations: 4 kB / 0.5526 GB, free: 5.641 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.3797, allocations: 4 kB / 0.5526 GB, free: 5.637 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000597/0.3803, allocations: 180.8 kB / 0.5528 GB, free: 5.457 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003515/0.3806, allocations: 99.81 kB / 0.5529 GB, free: 5.359 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00384/0.3844, allocations: 2.791 MB / 0.5556 GB, free: 2.434 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002935/0.3847, allocations: 19.98 kB / 0.5556 GB, free: 2.414 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.951e-05/0.3848, allocations: 23.94 kB / 0.5556 GB, free: 2.391 MB / 398.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.0002738/0.3851, allocations: 205.5 kB / 0.5558 GB, free: 2.18 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.595e-05/0.3851, allocations: 39.7 kB / 0.5559 GB, free: 2.141 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001213/0.3863, allocations: 0.6259 MB / 0.5565 GB, free: 1.504 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.3863, allocations: 7.984 kB / 0.5565 GB, free: 1.496 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-06/0.3864, allocations: 0 / 0.5565 GB, free: 1.496 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.3864, allocations: 3.938 kB / 0.5565 GB, free: 1.492 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002227/0.3886, allocations: 1.34 MB / 0.5578 GB, free: 76 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.3886, allocations: 112 / 0.5578 GB, free: 76 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003591/0.3889, allocations: 83.89 kB / 0.5579 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004568/0.3894, allocations: 148.7 kB / 0.558 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.431e-05/0.3894, allocations: 12 kB / 0.558 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003316/0.3928, allocations: 2.565 MB / 0.5606 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.3928, allocations: 4 kB / 0.5606 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001653/0.3944, allocations: 0.9538 MB / 0.5615 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002011/0.3946, allocations: 116.9 kB / 0.5616 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.612e-05/0.3947, allocations: 11.94 kB / 0.5616 GB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002226/0.3949, allocations: 15.98 kB / 0.5616 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/0.395, allocations: 35.95 kB / 0.5617 GB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.923e-05/0.395, allocations: 16 kB / 0.5617 GB, free: 11.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000266/0.3953, allocations: 202.1 kB / 0.5619 GB, free: 11.73 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3953, allocations: 0 / 0.5619 GB, free: 11.73 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007872/0.3961, allocations: 139.9 kB / 0.562 GB, free: 11.59 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.0001631/0.3963, allocations: 106.2 kB / 0.5621 GB, free: 11.48 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001324/0.3976, allocations: 0.6537 MB / 0.5627 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3976, allocations: 0 / 0.5627 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007034/0.3983, allocations: 410.8 kB / 0.5631 GB, free: 10.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005382/0.3988, allocations: 66.47 kB / 0.5632 GB, free: 10.35 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002122/0.401, allocations: 1.142 MB / 0.5643 GB, free: 9.172 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006026/0.4016, allocations: 0.8707 MB / 0.5652 GB, free: 8.273 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002238/0.4018, allocations: 75.17 kB / 0.5652 GB, free: 8.199 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.413e-05/0.4019, allocations: 27.44 kB / 0.5653 GB, free: 8.172 MB / 414.1 MB Notification: Performance of SimCode: time 1.112e-06/0.4019, allocations: 8 kB / 0.5653 GB, free: 8.164 MB / 414.1 MB Notification: Performance of Templates: time 0.0116/0.4135, allocations: 6.162 MB / 0.5713 GB, free: 2.016 MB / 414.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.105474839918315]