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.00137/0.00137, allocations: 85.33 kB / 20.68 MB, free: 1.023 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.001475/0.001475, allocations: 164.2 kB / 23.95 MB, free: 4.16 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.4/1.4, allocations: 177.1 MB / 204.3 MB, free: 9.188 MB / 190.1 MB " [Timeout remaining time 179] 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.1718/0.1718, allocations: 29.44 MB / 290.1 MB, free: 3.285 MB / 270.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.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: Performance of FrontEnd - loaded program: time 1.362e-06/1.362e-06, allocations: 0 / 430.7 MB, free: 1.961 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.313e-05/2.45e-05, allocations: 2.281 kB / 430.7 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.004995/0.005019, allocations: 3.327 MB / 434 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002003/0.007022, allocations: 1.158 MB / 435.2 MB, free: 13.44 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001697/0.007192, allocations: 19.81 kB / 435.2 MB, free: 13.42 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006188/0.007811, allocations: 151.3 kB / 435.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004777/0.008289, allocations: 179 kB / 435.5 MB, free: 13.1 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003648/0.008653, allocations: 131.5 kB / 435.7 MB, free: 12.97 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000421/0.009074, allocations: 294.8 kB / 435.9 MB, free: 12.68 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002799/0.009354, allocations: 118.2 kB / 436.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000377/0.009731, allocations: 175.5 kB / 436.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000223/0.009954, allocations: 99.67 kB / 436.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.111e-05/0.009985, allocations: 12 kB / 436.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003459/0.01033, allocations: 191.4 kB / 436.5 MB, free: 12.1 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.006e-05/0.01042, allocations: 59.81 kB / 436.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001073/0.01053, allocations: 67.84 kB / 436.7 MB, free: 11.97 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000471/0.011, allocations: 299 kB / 436.9 MB, free: 11.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.011, allocations: 4 kB / 437 MB, free: 11.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.51e-07/0.011, allocations: 0 / 437 MB, free: 11.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.673e-06/0.01101, allocations: 0 / 437 MB, free: 11.68 MB / 366.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.0006675/0.01168, allocations: 429.4 kB / 437.4 MB, free: 11.23 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.01171, allocations: 19.91 kB / 437.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006884/0.0124, allocations: 76.72 kB / 437.5 MB, free: 11.13 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003459/0.01275, allocations: 209.3 kB / 437.7 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.032e-05/0.01277, allocations: 8.703 kB / 437.7 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.288e-05/0.01281, allocations: 20.38 kB / 437.7 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004403/0.01325, allocations: 268.5 kB / 438 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.01327, allocations: 8.156 kB / 438 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.776e-05/0.0133, allocations: 12.12 kB / 438 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.693e-05/0.01333, allocations: 12.33 kB / 438 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003694/0.01369, allocations: 216.4 kB / 438.2 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001584/0.01528, allocations: 1.064 MB / 439.3 MB, free: 9.207 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002376/0.01552, allocations: 133.1 kB / 439.4 MB, free: 9.059 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.719e-05/0.01559, allocations: 45.84 kB / 439.4 MB, free: 9.008 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.402e-05/0.01561, allocations: 4 kB / 439.4 MB, free: 9.004 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.919e-05/0.01565, allocations: 38.5 kB / 439.5 MB, free: 8.957 MB / 366.1 MB Notification: Performance of pre-optimization done (n=12): time 1.353e-06/0.01565, allocations: 0 / 439.5 MB, free: 8.957 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003455/0.01599, allocations: 157.5 kB / 439.6 MB, free: 8.797 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.277e-05/0.01606, allocations: 89.17 kB / 439.7 MB, free: 8.691 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002079/0.01626, allocations: 191.1 kB / 439.9 MB, free: 8.488 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.165e-05/0.01629, allocations: 25.7 kB / 439.9 MB, free: 8.457 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.0164, allocations: 160.1 kB / 440.1 MB, free: 8.297 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.56e-05/0.01644, allocations: 39.64 kB / 440.1 MB, free: 8.258 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.997e-05/0.01651, allocations: 49.66 kB / 440.2 MB, free: 8.203 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.01665, allocations: 326.8 kB / 440.5 MB, free: 7.875 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.116e-05/0.01673, allocations: 39.97 kB / 440.5 MB, free: 7.836 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001397/0.01687, allocations: 125.1 kB / 440.7 MB, free: 7.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002458/0.01712, allocations: 182.5 kB / 440.8 MB, free: 7.465 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.01712, allocations: 0 / 440.8 MB, free: 7.465 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003277/0.01745, allocations: 213.2 kB / 441 MB, free: 7.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.01746, allocations: 4 kB / 441 MB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.01747, allocations: 7.984 kB / 441.1 MB, free: 7.238 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.01749, allocations: 4 kB / 441.1 MB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002342/0.01772, allocations: 47.92 kB / 441.1 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001053/0.01877, allocations: 1.302 MB / 442.4 MB, free: 5.785 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.01888, allocations: 19.89 kB / 442.4 MB, free: 5.766 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.918e-05/0.0189, allocations: 8 kB / 442.4 MB, free: 5.758 MB / 366.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.0001506/0.01905, allocations: 141.7 kB / 442.6 MB, free: 5.609 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.523e-05/0.0191, allocations: 23.89 kB / 442.6 MB, free: 5.586 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002413/0.01934, allocations: 139 kB / 442.7 MB, free: 5.449 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.01934, allocations: 0 / 442.7 MB, free: 5.449 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-06/0.01934, allocations: 4.062 kB / 442.7 MB, free: 5.445 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.01935, allocations: 8 kB / 442.7 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006416/0.01999, allocations: 423.6 kB / 443.2 MB, free: 4.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/0.01999, allocations: 4 kB / 443.2 MB, free: 4.977 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001824/0.02018, allocations: 35.92 kB / 443.2 MB, free: 4.941 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.02018, allocations: 4 kB / 443.2 MB, free: 4.938 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.322e-05/0.02019, allocations: 0 / 443.2 MB, free: 4.938 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009573/0.02115, allocations: 1.286 MB / 444.5 MB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.02116, allocations: 7.969 kB / 444.5 MB, free: 3.543 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000359/0.02152, allocations: 304.9 kB / 444.8 MB, free: 3.223 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.88e-05/0.02154, allocations: 15.88 kB / 444.8 MB, free: 3.207 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.716e-05/0.02157, allocations: 8 kB / 444.8 MB, free: 3.199 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.206e-05/0.02166, allocations: 0 / 444.8 MB, free: 3.199 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.588e-05/0.0217, allocations: 19.84 kB / 444.8 MB, free: 3.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.448e-05/0.02171, allocations: 8 kB / 444.8 MB, free: 3.172 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001137/0.02183, allocations: 129.2 kB / 445 MB, free: 3.047 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.02183, allocations: 160 / 445 MB, free: 3.047 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003435/0.02217, allocations: 55.94 kB / 445 MB, free: 2.992 MB / 366.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.0001132/0.02228, allocations: 103.1 kB / 445.1 MB, free: 2.883 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000319/0.0226, allocations: 123.8 kB / 445.2 MB, free: 2.762 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.02261, allocations: 0 / 445.2 MB, free: 2.762 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001498/0.02276, allocations: 52.59 kB / 445.3 MB, free: 2.711 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003782/0.02313, allocations: 43.55 kB / 445.3 MB, free: 2.672 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000917/0.02405, allocations: 464.9 kB / 445.8 MB, free: 2.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001394/0.02419, allocations: 128.9 kB / 445.9 MB, free: 2.035 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.585e-05/0.02428, allocations: 33.45 kB / 446 MB, free: 2.004 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.323e-05/0.02432, allocations: 16.5 kB / 446 MB, free: 1.984 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.02432, allocations: 0 / 446 MB, free: 1.984 MB / 366.1 MB Notification: Performance of Templates: time 0.004952/0.02927, allocations: 1.368 MB / 447.3 MB, free: 0.6367 MB / 366.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: 4.43864356726408]