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.0009314/0.0009314, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 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.001709/0.001709, allocations: 161.5 kB / 25.61 MB, free: 8.582 MB / 18.57 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.9852/0.9852, allocations: 177.1 MB / 206 MB, free: 4.512 MB / 186.7 MB " [Timeout remaining time 179] 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.1365/0.1365, allocations: 32.8 MB / 295.4 MB, free: 15.39 MB / 282.7 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: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 377.2 MB, free: 25.65 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.221e-05/2.383e-05, allocations: 2.312 kB / 377.2 MB, free: 25.65 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.00107/0.001094, allocations: 497 kB / 377.7 MB, free: 25.16 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001549/0.002643, allocations: 1.763 MB / 379.5 MB, free: 23.38 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.93e-05/0.002663, allocations: 0 / 379.5 MB, free: 23.38 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.548e-05/0.002678, allocations: 0 / 379.5 MB, free: 23.38 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 6.122e-06/0.002684, allocations: 0 / 379.5 MB, free: 23.38 MB / 314.7 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.0007658/0.00345, allocations: 263 kB / 379.7 MB, free: 23.12 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 5.248e-05/0.003503, allocations: 0 / 379.7 MB, free: 23.12 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.77e-05/0.00354, allocations: 4 kB / 379.8 MB, free: 23.11 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.572e-05/0.003566, allocations: 0 / 379.8 MB, free: 23.11 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.828e-05/0.003584, allocations: 3.938 kB / 379.8 MB, free: 23.11 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.642e-06/0.003591, allocations: 0 / 379.8 MB, free: 23.11 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004518/0.004043, allocations: 455 kB / 380.2 MB, free: 22.66 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.278e-06/0.004052, allocations: 4 kB / 380.2 MB, free: 22.66 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.479e-05/0.004067, allocations: 0 / 380.2 MB, free: 22.66 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000312/0.004379, allocations: 351 kB / 380.5 MB, free: 22.32 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.004382, allocations: 0 / 380.5 MB, free: 22.32 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.133e-06/0.004383, allocations: 0 / 380.5 MB, free: 22.32 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.004388, allocations: 0 / 380.5 MB, free: 22.32 MB / 314.7 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.0002257/0.004613, allocations: 417.5 kB / 381 MB, free: 21.87 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.175e-05/0.004645, allocations: 11.98 kB / 381 MB, free: 21.86 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.301e-05/0.004668, allocations: 4.938 kB / 381 MB, free: 21.85 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.365e-05/0.004702, allocations: 108.6 kB / 381.1 MB, free: 21.72 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.997e-06/0.004711, allocations: 384 / 381.1 MB, free: 21.72 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.09e-06/0.004716, allocations: 384 / 381.1 MB, free: 21.72 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.13e-05/0.004767, allocations: 63.91 kB / 381.1 MB, free: 21.64 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.101e-06/0.004773, allocations: 4.188 kB / 381.1 MB, free: 21.64 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.25e-06/0.004779, allocations: 384 / 381.1 MB, free: 21.64 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.004783, allocations: 7.875 kB / 381.2 MB, free: 21.63 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.174e-05/0.004794, allocations: 33.69 kB / 381.2 MB, free: 21.59 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.344e-05/0.004848, allocations: 89.27 kB / 381.3 MB, free: 21.48 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.323e-05/0.004881, allocations: 56.78 kB / 381.3 MB, free: 21.41 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.018e-05/0.004891, allocations: 37.39 kB / 381.4 MB, free: 21.36 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.625e-06/0.004894, allocations: 0 / 381.4 MB, free: 21.36 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.187e-05/0.004916, allocations: 63.16 kB / 381.4 MB, free: 21.28 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 6.11e-07/0.004916, allocations: 3.938 kB / 381.4 MB, free: 21.28 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001133/0.00503, allocations: 118.8 kB / 381.5 MB, free: 21.14 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.846e-05/0.005048, allocations: 77.11 kB / 381.6 MB, free: 21.04 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.915e-05/0.005067, allocations: 142.2 kB / 381.8 MB, free: 20.89 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.168e-06/0.005071, allocations: 25.7 kB / 381.8 MB, free: 20.86 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.083e-05/0.005082, allocations: 134.9 kB / 381.9 MB, free: 20.72 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.374e-05/0.005096, allocations: 0 / 381.9 MB, free: 20.72 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.8e-05/0.005114, allocations: 19.5 kB / 381.9 MB, free: 20.7 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.811e-05/0.005162, allocations: 0.4922 MB / 382.4 MB, free: 20.19 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.103e-05/0.005173, allocations: 25.7 kB / 382.5 MB, free: 20.16 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.936e-06/0.005182, allocations: 25.7 kB / 382.5 MB, free: 20.13 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.922e-05/0.005211, allocations: 67.03 kB / 382.5 MB, free: 20.05 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.005213, allocations: 0 / 382.5 MB, free: 20.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.651e-05/0.00526, allocations: 93.09 kB / 382.6 MB, free: 19.94 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.464e-05/0.005284, allocations: 29.7 kB / 382.7 MB, free: 19.9 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.005289, allocations: 4 kB / 382.7 MB, free: 19.9 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.835e-06/0.005297, allocations: 4.094 kB / 382.7 MB, free: 19.89 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.022e-06/0.005298, allocations: 0 / 382.7 MB, free: 19.89 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.805e-06/0.005301, allocations: 0 / 382.7 MB, free: 19.89 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.237e-05/0.005313, allocations: 3.938 kB / 382.7 MB, free: 19.89 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.839e-06/0.005318, allocations: 0 / 382.7 MB, free: 19.89 MB / 314.7 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 4.546e-05/0.005364, allocations: 182.3 kB / 382.9 MB, free: 19.7 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.071e-06/0.00537, allocations: 4.328 kB / 382.9 MB, free: 19.69 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.305e-06/0.005378, allocations: 3 kB / 382.9 MB, free: 19.69 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.00538, allocations: 4 kB / 382.9 MB, free: 19.69 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.502e-06/0.005381, allocations: 0 / 382.9 MB, free: 19.69 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.005384, allocations: 0 / 382.9 MB, free: 19.69 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.367e-05/0.005418, allocations: 101.1 kB / 383 MB, free: 19.56 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.005419, allocations: 0 / 383 MB, free: 19.56 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.2e-07/0.005419, allocations: 3.938 kB / 383 MB, free: 19.56 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-07/0.00542, allocations: 4 kB / 383 MB, free: 19.55 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.417e-06/0.005423, allocations: 0 / 383 MB, free: 19.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.61e-07/0.005424, allocations: 0 / 383 MB, free: 19.55 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.005425, allocations: 0 / 383 MB, free: 19.55 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.947e-05/0.005484, allocations: 135.7 kB / 383.1 MB, free: 19.39 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.376e-06/0.005487, allocations: 0 / 383.1 MB, free: 19.39 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.047e-06/0.005496, allocations: 4 kB / 383.1 MB, free: 19.38 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.36e-06/0.005502, allocations: 12.02 kB / 383.1 MB, free: 19.37 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.995e-06/0.00551, allocations: 0 / 383.1 MB, free: 19.37 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-06/0.005512, allocations: 0 / 383.1 MB, free: 19.37 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.309e-05/0.005525, allocations: 123.2 kB / 383.2 MB, free: 19.25 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.005525, allocations: 4 kB / 383.2 MB, free: 19.25 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001953/0.00572, allocations: 67.8 kB / 383.3 MB, free: 19.18 MB / 314.7 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.0003225/0.006043, allocations: 196.3 kB / 383.5 MB, free: 18.99 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 7.329e-05/0.006116, allocations: 122.5 kB / 383.6 MB, free: 18.84 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.152e-06/0.006117, allocations: 0 / 383.6 MB, free: 18.84 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.467e-05/0.006132, allocations: 88.8 kB / 383.7 MB, free: 18.73 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.653e-05/0.006218, allocations: 11.92 kB / 383.7 MB, free: 18.72 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000141/0.006359, allocations: 103.6 kB / 383.8 MB, free: 18.58 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.779e-05/0.006377, allocations: 55.22 kB / 383.9 MB, free: 18.51 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.132e-06/0.006383, allocations: 0 / 383.9 MB, free: 18.51 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.808e-05/0.006411, allocations: 78.31 kB / 384 MB, free: 18.43 MB / 314.7 MB Notification: Performance of SimCode: time 7.01e-07/0.006412, allocations: 0 / 384 MB, free: 18.43 MB / 314.7 MB Notification: Performance of Templates: time 0.003215/0.009627, allocations: 1.927 MB / 385.9 MB, free: 16.5 MB / 314.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0699195247143507]