Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.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.001735/0.001735, 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.002175/0.002175, allocations: 207.7 kB / 23.73 MB, free: 4.387 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.535/1.535, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2394/0.2394, allocations: 44.94 MB / 358.8 MB, free: 6.035 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(ModelicaTest.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials") translateModel(ModelicaTest.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials") [Timeout 660] "Notification: ModelicaTest 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.002184/0.002184, allocations: 77.58 kB / 0.4935 GB, free: 10.04 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.368/0.3702, allocations: 65.47 MB / 0.5574 GB, free: 7.477 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001824/0.372, allocations: 0.4885 MB / 0.5579 GB, free: 6.988 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002683/0.3747, allocations: 1.727 MB / 0.5596 GB, free: 5.242 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.37e-05/0.3747, allocations: 0 / 0.5596 GB, free: 5.242 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.7e-05/0.3747, allocations: 0 / 0.5596 GB, free: 5.242 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.969e-06/0.3747, allocations: 0 / 0.5596 GB, free: 5.242 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:120:3-169:18:writable] Warning: Pure function 'ModelicaTest.Math.Polynomials' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001066/0.3758, allocations: 259.2 kB / 0.5598 GB, free: 4.988 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.957e-05/0.3758, allocations: 0 / 0.5598 GB, free: 4.988 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.255e-05/0.3759, allocations: 0 / 0.5598 GB, free: 4.988 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.623e-05/0.3759, allocations: 7.938 kB / 0.5599 GB, free: 4.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.029e-05/0.3759, allocations: 3.984 kB / 0.5599 GB, free: 4.977 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.81e-06/0.3759, allocations: 0 / 0.5599 GB, free: 4.977 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000828/0.3768, allocations: 443.1 kB / 0.5603 GB, free: 4.543 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.028e-05/0.3768, allocations: 7.938 kB / 0.5603 GB, free: 4.535 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.61e-05/0.3768, allocations: 0 / 0.5603 GB, free: 4.535 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005835/0.3774, allocations: 305.7 kB / 0.5606 GB, free: 4.242 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3774, allocations: 4 kB / 0.5606 GB, free: 4.238 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3774, allocations: 0 / 0.5606 GB, free: 4.238 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.032e-05/0.3774, allocations: 0 / 0.5606 GB, free: 4.238 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004287/0.3778, allocations: 315.5 kB / 0.5609 GB, free: 3.895 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.3778, allocations: 8.031 kB / 0.5609 GB, free: 3.887 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.17e-05/0.3779, allocations: 4.938 kB / 0.5609 GB, free: 3.883 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.157e-05/0.378, allocations: 106.5 kB / 0.561 GB, free: 3.754 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.104e-05/0.378, allocations: 4.375 kB / 0.561 GB, free: 3.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.439e-05/0.378, allocations: 384 / 0.561 GB, free: 3.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001134/0.3781, allocations: 64.67 kB / 0.5611 GB, free: 3.676 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.3781, allocations: 0 / 0.5611 GB, free: 3.676 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.435e-06/0.3781, allocations: 4 kB / 0.5611 GB, free: 3.672 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.3781, allocations: 0 / 0.5611 GB, free: 3.672 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.649e-05/0.3782, allocations: 29.7 kB / 0.5611 GB, free: 3.637 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001233/0.3783, allocations: 97.33 kB / 0.5612 GB, free: 3.512 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.241e-05/0.3784, allocations: 48.3 kB / 0.5612 GB, free: 3.449 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.651e-05/0.3784, allocations: 34.55 kB / 0.5613 GB, free: 3.406 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.258e-06/0.3784, allocations: 0 / 0.5613 GB, free: 3.406 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.092e-05/0.3785, allocations: 60.33 kB / 0.5613 GB, free: 3.332 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.01e-07/0.3785, allocations: 3.938 kB / 0.5613 GB, free: 3.328 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002127/0.3787, allocations: 122.9 kB / 0.5614 GB, free: 3.184 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.715e-05/0.3787, allocations: 81.11 kB / 0.5615 GB, free: 3.086 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.86e-05/0.3788, allocations: 93.81 kB / 0.5616 GB, free: 2.984 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.3788, allocations: 25.7 kB / 0.5616 GB, free: 2.953 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.22e-05/0.3789, allocations: 84.14 kB / 0.5617 GB, free: 2.867 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.006e-05/0.3789, allocations: 3.938 kB / 0.5617 GB, free: 2.863 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.685e-05/0.3789, allocations: 13.72 kB / 0.5617 GB, free: 2.844 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.3791, allocations: 318.8 kB / 0.562 GB, free: 2.523 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.435e-05/0.3791, allocations: 25.7 kB / 0.5621 GB, free: 2.492 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.572e-05/0.3791, allocations: 29.69 kB / 0.5621 GB, free: 2.457 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.152e-05/0.3792, allocations: 68.27 kB / 0.5622 GB, free: 2.375 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3792, allocations: 0 / 0.5622 GB, free: 2.375 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.003e-05/0.3793, allocations: 89.11 kB / 0.5622 GB, free: 2.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.758e-05/0.3793, allocations: 33.69 kB / 0.5623 GB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.3793, allocations: 4 kB / 0.5623 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.3793, allocations: 3.938 kB / 0.5623 GB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.3793, allocations: 0 / 0.5623 GB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.3794, allocations: 0 / 0.5623 GB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.486e-05/0.3794, allocations: 0 / 0.5623 GB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.622e-06/0.3794, allocations: 3.938 kB / 0.5623 GB, free: 2.219 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001069/0.3795, allocations: 139.6 kB / 0.5624 GB, free: 2.066 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.484e-06/0.3795, allocations: 0 / 0.5624 GB, free: 2.066 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.634e-05/0.3795, allocations: 6.938 kB / 0.5624 GB, free: 2.059 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.3795, allocations: 3.984 kB / 0.5624 GB, free: 2.055 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3795, allocations: 0 / 0.5624 GB, free: 2.055 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.3795, allocations: 4 kB / 0.5624 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.01e-05/0.3796, allocations: 101.3 kB / 0.5625 GB, free: 1.922 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.3796, allocations: 0 / 0.5625 GB, free: 1.922 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.3796, allocations: 0 / 0.5625 GB, free: 1.922 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.3796, allocations: 3.938 kB / 0.5625 GB, free: 1.918 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.816e-06/0.3796, allocations: 4 kB / 0.5625 GB, free: 1.914 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.3796, allocations: 7.938 kB / 0.5625 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.3796, allocations: 0 / 0.5625 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001379/0.3798, allocations: 116.5 kB / 0.5627 GB, free: 1.762 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.767e-06/0.3798, allocations: 0 / 0.5627 GB, free: 1.762 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.372e-05/0.3798, allocations: 4 kB / 0.5627 GB, free: 1.758 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.382e-05/0.3798, allocations: 7.938 kB / 0.5627 GB, free: 1.75 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.927e-05/0.3798, allocations: 3.984 kB / 0.5627 GB, free: 1.746 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-06/0.3798, allocations: 0 / 0.5627 GB, free: 1.746 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.92e-05/0.3798, allocations: 75.28 kB / 0.5627 GB, free: 1.672 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3798, allocations: 0 / 0.5627 GB, free: 1.672 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003056/0.3802, allocations: 71.78 kB / 0.5628 GB, free: 1.602 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004743/0.3806, allocations: 185.1 kB / 0.563 GB, free: 1.418 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001443/0.3808, allocations: 122.7 kB / 0.5631 GB, free: 1.273 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3808, allocations: 0 / 0.5631 GB, free: 1.273 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.928e-05/0.3808, allocations: 85.17 kB / 0.5632 GB, free: 1.172 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001249/0.381, allocations: 0 / 0.5632 GB, free: 1.172 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002409/0.3812, allocations: 118.6 kB / 0.5633 GB, free: 1.023 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.52e-05/0.3813, allocations: 55.36 kB / 0.5634 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.69e-06/0.3813, allocations: 0 / 0.5634 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.529e-05/0.3813, allocations: 7.438 kB / 0.5634 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3813, allocations: 0 / 0.5634 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of Templates: time 0.005197/0.3865, allocations: 1.618 MB / 0.5649 GB, free: 15.32 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestPolynomials/TestPolynomials.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.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.239080326631665]