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.001071/0.001071, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001531/0.002602, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0009889/0.0009889, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001408/0.002397, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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 0.9467/0.9467, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09535/1.042, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.1.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.1.0-master/package.mo): time 0.1177/0.1177, allocations: 29.44 MB / 273.6 MB, free: 1.406 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1392/0.2568, allocations: 9.537 MB / 283.1 MB, free: 12.82 MB / 282.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.1.0-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="generator.p.[0-9,]+.|generator.phi|generator1.p.[0-9,]+.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="generator.p.[0-9,]+.|generator.phi|generator1.p.[0-9,]+.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.233e-06/1.233e-06, allocations: 0 / 284.4 MB, free: 11.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.761e-05/1.885e-05, allocations: 7.797 kB / 284.5 MB, free: 11.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.004601/0.00462, allocations: 4.916 MB / 289.4 MB, free: 7.984 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002528/0.007148, allocations: 2.024 MB / 291.4 MB, free: 6.41 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002438/0.007392, allocations: 21.69 kB / 291.4 MB, free: 6.398 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006106/0.008002, allocations: 425.9 kB / 291.8 MB, free: 6.082 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008609/0.008863, allocations: 0.5319 MB / 292.4 MB, free: 5.66 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005308/0.009394, allocations: 284.2 kB / 292.6 MB, free: 5.441 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008124/0.01021, allocations: 0.7705 MB / 293.4 MB, free: 5.023 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004244/0.01063, allocations: 284.6 kB / 293.7 MB, free: 4.875 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000645/0.01128, allocations: 471.6 kB / 294.1 MB, free: 4.594 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004761/0.01175, allocations: 328 kB / 294.5 MB, free: 4.41 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.694e-05/0.0118, allocations: 35.66 kB / 294.5 MB, free: 4.41 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008393/0.01264, allocations: 0.5367 MB / 295 MB, free: 4.109 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001661/0.0128, allocations: 203.5 kB / 295.2 MB, free: 3.91 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001324/0.01294, allocations: 143.8 kB / 295.4 MB, free: 3.77 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008705/0.01381, allocations: 0.6035 MB / 296 MB, free: 3.164 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.292e-05/0.01382, allocations: 0 / 296 MB, free: 3.164 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.01382, allocations: 0 / 296 MB, free: 3.164 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.172e-05/0.01383, allocations: 0 / 296 MB, free: 3.164 MB / 282.7 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.0008737/0.01471, allocations: 0.823 MB / 296.8 MB, free: 2.316 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.135e-05/0.01474, allocations: 12.03 kB / 296.8 MB, free: 2.305 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001063/0.0158, allocations: 349.6 kB / 297.2 MB, free: 1.945 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003697/0.01617, allocations: 284.4 kB / 297.4 MB, free: 1.645 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.482e-05/0.0162, allocations: 37.36 kB / 297.5 MB, free: 1.609 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.935e-05/0.01626, allocations: 40.38 kB / 297.5 MB, free: 1.57 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003956/0.01665, allocations: 392.5 kB / 297.9 MB, free: 1.16 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.01667, allocations: 3.953 kB / 297.9 MB, free: 1.156 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.906e-05/0.0167, allocations: 19.98 kB / 297.9 MB, free: 1.137 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.335e-05/0.01674, allocations: 32.98 kB / 297.9 MB, free: 1.105 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002632/0.017, allocations: 201.5 kB / 298.1 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001606/0.01861, allocations: 1.542 MB / 299.7 MB, free: 15.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002461/0.01886, allocations: 237.2 kB / 299.9 MB, free: 15.04 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.925e-05/0.01894, allocations: 85.53 kB / 300 MB, free: 14.95 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.876e-05/0.01897, allocations: 12 kB / 300 MB, free: 14.93 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.788e-05/0.019, allocations: 46.28 kB / 300.1 MB, free: 14.88 MB / 298.7 MB Notification: Performance of pre-optimization done (n=42): time 1.623e-06/0.019, allocations: 0 / 300.1 MB, free: 14.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=43): time 0.001408/0.02041, allocations: 0.8371 MB / 300.9 MB, free: 14 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.472e-05/0.02045, allocations: 81.11 kB / 301 MB, free: 13.91 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001294/0.02058, allocations: 240.8 kB / 301.2 MB, free: 13.66 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.305e-05/0.0206, allocations: 37.83 kB / 301.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.33e-05/0.02068, allocations: 216.9 kB / 301.5 MB, free: 13.39 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.403e-05/0.02077, allocations: 162.6 kB / 301.6 MB, free: 13.23 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.528e-05/0.02085, allocations: 86.09 kB / 301.7 MB, free: 13.14 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.201e-05/0.02093, allocations: 342.8 kB / 302 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.569e-05/0.021, allocations: 55.8 kB / 302.1 MB, free: 12.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001112/0.02111, allocations: 161.7 kB / 302.2 MB, free: 12.54 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002484/0.02136, allocations: 286.8 kB / 302.5 MB, free: 12.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.02136, allocations: 0 / 302.5 MB, free: 12.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0004166/0.02178, allocations: 363.3 kB / 302.9 MB, free: 11.85 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.0218, allocations: 8.438 kB / 302.9 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.0218, allocations: 4 kB / 302.9 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003434/0.02215, allocations: 160.7 kB / 303.1 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002531/0.0224, allocations: 111.8 kB / 303.2 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001601/0.024, allocations: 1.926 MB / 305.1 MB, free: 9.551 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001357/0.02414, allocations: 8 kB / 305.1 MB, free: 9.543 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.289e-05/0.02416, allocations: 19.98 kB / 305.1 MB, free: 9.523 MB / 298.7 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.0001292/0.02429, allocations: 144.6 kB / 305.3 MB, free: 9.371 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.022e-05/0.02434, allocations: 35.97 kB / 305.3 MB, free: 9.336 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004301/0.02477, allocations: 341.6 kB / 305.6 MB, free: 8.992 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.02478, allocations: 11.98 kB / 305.6 MB, free: 8.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.734e-06/0.02478, allocations: 0 / 305.6 MB, free: 8.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.02478, allocations: 0 / 305.6 MB, free: 8.98 MB / 298.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008509/0.02563, allocations: 0.7776 MB / 306.4 MB, free: 8.168 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.02564, allocations: 4 kB / 306.4 MB, free: 8.164 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002107/0.02585, allocations: 92.56 kB / 306.5 MB, free: 8.074 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.204e-05/0.02588, allocations: 35.81 kB / 306.5 MB, free: 8.039 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002477/0.02613, allocations: 126.3 kB / 306.7 MB, free: 7.91 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.567e-05/0.02615, allocations: 8 kB / 306.7 MB, free: 7.902 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001229/0.02738, allocations: 1.824 MB / 308.5 MB, free: 5.988 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.02738, allocations: 0 / 308.5 MB, free: 5.988 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005035/0.02789, allocations: 0.5435 MB / 309 MB, free: 5.406 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.002e-05/0.02792, allocations: 16 kB / 309.1 MB, free: 5.391 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.158e-05/0.02801, allocations: 12 kB / 309.1 MB, free: 5.379 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.568e-05/0.02806, allocations: 39.86 kB / 309.1 MB, free: 5.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.875e-05/0.02808, allocations: 8 kB / 309.1 MB, free: 5.332 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.336e-05/0.02815, allocations: 78.77 kB / 309.2 MB, free: 5.254 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02815, allocations: 0 / 309.2 MB, free: 5.254 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003788/0.02853, allocations: 144 kB / 309.3 MB, free: 5.113 MB / 298.7 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 (39): * Single equations (assignments): 37 * 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.0001072/0.02863, allocations: 92.48 kB / 309.4 MB, free: 5.012 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004992/0.02913, allocations: 455.3 kB / 309.9 MB, free: 4.551 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.451e-05/0.02915, allocations: 9.062 kB / 309.9 MB, free: 4.543 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003078/0.02945, allocations: 344.2 kB / 310.2 MB, free: 4.191 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000378/0.02983, allocations: 353.3 kB / 310.6 MB, free: 3.797 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007984/0.03782, allocations: 0.8754 MB / 311.4 MB, free: 2.883 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001149/0.03793, allocations: 158.2 kB / 311.6 MB, free: 2.711 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001448/0.03808, allocations: 39.27 kB / 311.6 MB, free: 2.672 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001377/0.03821, allocations: 107.3 kB / 311.7 MB, free: 2.566 MB / 298.7 MB Notification: Performance of SimCode: time 1.243e-06/0.03821, allocations: 0 / 311.7 MB, free: 2.566 MB / 298.7 MB Notification: Performance of Templates: time 0.008052/0.04627, allocations: 6.039 MB / 317.8 MB, free: 12.6 MB / 314.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.987704544328153]