Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.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.001502/0.001502, allocations: 112.2 kB / 21.19 MB, free: 0.7812 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.001658/0.001658, allocations: 214.5 kB / 24.49 MB, free: 4.18 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.409/1.409, allocations: 230.6 MB / 258.3 MB, free: 8.004 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.1747/0.1747, allocations: 38.52 MB / 353.2 MB, free: 12.57 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.AC3ph.Generation.TurbineGeneratorLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|busbar.alpha_v|busbar1.alpha_v|generator.powerAngle|sensor.p.1.|sensor.p.2.|sensor.p.3.|sensor1.p.1.|sensor1.p.2.|sensor1.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine") translateModel(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|busbar.alpha_v|busbar1.alpha_v|generator.powerAngle|sensor.p.1.|sensor.p.2.|sensor.p.3.|sensor1.p.1.|sensor1.p.2.|sensor1.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine") [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.001971/0.001971, allocations: 71.88 kB / 493.8 MB, free: 4.391 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2824/0.2843, allocations: 62.46 MB / 0.5432 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.011/0.2953, allocations: 9.788 MB / 0.5528 GB, free: 8.938 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005897/0.3012, allocations: 3.66 MB / 0.5564 GB, free: 5.996 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004566/0.3017, allocations: 45.97 kB / 0.5564 GB, free: 5.973 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002682/0.3044, allocations: 1.134 MB / 0.5575 GB, free: 5.102 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001996/0.3064, allocations: 0.9168 MB / 0.5584 GB, free: 4.379 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001187/0.3076, allocations: 492 kB / 0.5589 GB, free: 4.016 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002295/0.3099, allocations: 1.816 MB / 0.5607 GB, free: 2.594 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001003/0.3109, allocations: 0.7472 MB / 0.5614 GB, free: 1.816 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001063/0.3119, allocations: 0.7899 MB / 0.5622 GB, free: 1.023 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00143/0.3133, allocations: 0.9696 MB / 0.5631 GB, free: 52 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001708/0.3135, allocations: 104 kB / 0.5632 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001156/0.3147, allocations: 0.6317 MB / 0.5638 GB, free: 15.32 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006148/0.3153, allocations: 0.6505 MB / 0.5645 GB, free: 14.66 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000699/0.316, allocations: 0.6998 MB / 0.5651 GB, free: 13.96 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002163/0.3182, allocations: 1.923 MB / 0.567 GB, free: 12.03 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.3182, allocations: 0 / 0.567 GB, free: 12.03 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3182, allocations: 4 kB / 0.567 GB, free: 12.03 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.025e-05/0.3182, allocations: 0 / 0.567 GB, free: 12.03 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.002882/0.3211, allocations: 1.602 MB / 0.5686 GB, free: 10.39 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.3211, allocations: 11.98 kB / 0.5686 GB, free: 10.38 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001697/0.3228, allocations: 315.8 kB / 0.5689 GB, free: 10.07 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001912/0.3247, allocations: 0.8774 MB / 0.5698 GB, free: 9.156 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.682e-05/0.3248, allocations: 78.09 kB / 0.5698 GB, free: 9.078 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000306/0.3251, allocations: 135.9 kB / 0.57 GB, free: 8.945 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002237/0.3273, allocations: 1.493 MB / 0.5714 GB, free: 7.383 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.355e-05/0.3274, allocations: 15.88 kB / 0.5714 GB, free: 7.367 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001002/0.3275, allocations: 40 kB / 0.5715 GB, free: 7.328 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002919/0.3277, allocations: 98.16 kB / 0.5716 GB, free: 7.23 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002014/0.3298, allocations: 1.258 MB / 0.5728 GB, free: 5.965 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007905/0.3377, allocations: 5.531 MB / 0.5782 GB, free: 104 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009252/0.3386, allocations: 0.559 MB / 0.5787 GB, free: 15.52 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005641/0.3392, allocations: 380 kB / 0.5791 GB, free: 15.14 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.705e-05/0.3392, allocations: 4.656 kB / 0.5791 GB, free: 15.14 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.717e-05/0.3392, allocations: 39.22 kB / 0.5791 GB, free: 15.09 MB / 430.1 MB Notification: Performance of pre-optimization done (n=67): time 2.134e-06/0.3392, allocations: 0 / 0.5791 GB, free: 15.09 MB / 430.1 MB Notification: Performance of matching and sorting (n=74): time 0.007181/0.3464, allocations: 3.217 MB / 0.5823 GB, free: 11.83 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.093e-05/0.3465, allocations: 93.64 kB / 0.5824 GB, free: 11.72 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009169/0.3474, allocations: 0.7352 MB / 0.5831 GB, free: 10.97 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.445e-05/0.3475, allocations: 41.7 kB / 0.5831 GB, free: 10.93 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000461/0.3479, allocations: 0.6014 MB / 0.5837 GB, free: 10.32 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002636/0.3482, allocations: 281.6 kB / 0.584 GB, free: 10.04 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002675/0.3485, allocations: 182.6 kB / 0.5842 GB, free: 9.855 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002227/0.3487, allocations: 406.7 kB / 0.5846 GB, free: 9.449 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005994/0.3493, allocations: 385.8 kB / 0.5849 GB, free: 9.074 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008405/0.3501, allocations: 0.6574 MB / 0.5856 GB, free: 8.293 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001564/0.3517, allocations: 1.152 MB / 0.5867 GB, free: 7.023 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.3517, allocations: 4 kB / 0.5867 GB, free: 7.02 MB / 430.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.00338/0.3551, allocations: 1.69 MB / 0.5883 GB, free: 5.309 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.3551, allocations: 10.97 kB / 0.5884 GB, free: 5.301 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002654/0.3578, allocations: 1.286 MB / 0.5896 GB, free: 4.008 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001835/0.3596, allocations: 0.5846 MB / 0.5902 GB, free: 3.41 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006303/0.3602, allocations: 175.7 kB / 0.5903 GB, free: 3.238 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01262/0.3728, allocations: 9.932 MB / 0.6 GB, free: 8.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007796/0.3736, allocations: 51.92 kB / 0.6001 GB, free: 8.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.925e-05/0.3737, allocations: 40.19 kB / 0.6001 GB, free: 8.73 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (93): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (2,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0006268/0.3743, allocations: 385.4 kB / 0.6005 GB, free: 8.344 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/0.3745, allocations: 95.33 kB / 0.6006 GB, free: 8.25 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002357/0.3768, allocations: 1.248 MB / 0.6018 GB, free: 6.977 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.918e-06/0.3768, allocations: 11.98 kB / 0.6018 GB, free: 6.965 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/0.3768, allocations: 7.984 kB / 0.6018 GB, free: 6.957 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.3769, allocations: 4 kB / 0.6018 GB, free: 6.953 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004366/0.3812, allocations: 2.363 MB / 0.6041 GB, free: 4.504 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.3812, allocations: 4 kB / 0.6041 GB, free: 4.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004649/0.3817, allocations: 107.8 kB / 0.6043 GB, free: 4.395 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001093/0.3828, allocations: 376 kB / 0.6046 GB, free: 4.012 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.091e-05/0.3828, allocations: 27.98 kB / 0.6046 GB, free: 3.984 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008531/0.3914, allocations: 8.793 MB / 0.6132 GB, free: 10.61 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.3914, allocations: 0 / 0.6132 GB, free: 10.61 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002797/0.3942, allocations: 1.679 MB / 0.6149 GB, free: 8.875 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004246/0.3946, allocations: 159.2 kB / 0.615 GB, free: 8.719 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000125/0.3947, allocations: 27.95 kB / 0.615 GB, free: 8.691 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004288/0.3951, allocations: 24.11 kB / 0.6151 GB, free: 8.668 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.3953, allocations: 68.52 kB / 0.6151 GB, free: 8.602 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.474e-05/0.3953, allocations: 24 kB / 0.6152 GB, free: 8.578 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00068/0.396, allocations: 0.5067 MB / 0.6156 GB, free: 8.074 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.396, allocations: 0 / 0.6156 GB, free: 8.074 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001298/0.3973, allocations: 371.9 kB / 0.616 GB, free: 7.711 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 8 (turboGrp.phi,turboGrp.w,generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * 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 (57): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,10,100.0%), (1,3,100.0%), (1,3,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002948/0.3976, allocations: 143 kB / 0.6161 GB, free: 7.566 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002366/0.4, allocations: 1.532 MB / 0.6176 GB, free: 5.988 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.4, allocations: 4 kB / 0.6176 GB, free: 5.984 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001575/0.4015, allocations: 1.068 MB / 0.6187 GB, free: 4.848 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009278/0.4025, allocations: 209.2 kB / 0.6189 GB, free: 4.648 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004646/0.4071, allocations: 2.854 MB / 0.6217 GB, free: 1.73 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001015/0.4081, allocations: 1.254 MB / 0.6229 GB, free: 456 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001932/0.4083, allocations: 71.41 kB / 0.623 GB, free: 384 kB / 462.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4083, allocations: 3.938 kB / 0.623 GB, free: 380 kB / 462.1 MB Notification: Performance of Templates: time 0.03946/0.4478, allocations: 32.97 MB / 0.6552 GB, free: 15.41 MB / 0.4981 GB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.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: 10.982969930861145]