Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001114/0.001114, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001497/0.002611, allocations: 449.7 kB / 10.37 MB, free: 328 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.0007924/0.0007924, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009862/0.001779, allocations: 455.6 kB / 11.71 MB, free: 2.461 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.9781/0.9781, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07936/1.058, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2453/0.2453, allocations: 34.25 MB / 278.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0224/0.2677, allocations: 13.1 MB / 291.3 MB, free: 7.375 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Math.TestPolynomials") translateModel(ModelicaTest.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.432e-06/1.432e-06, allocations: 0 / 292.6 MB, free: 6.336 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.522e-05/1.665e-05, allocations: 3.078 kB / 292.6 MB, free: 6.332 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.0009052/0.0009219, allocations: 0.5476 MB / 293.2 MB, free: 5.789 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001652/0.002574, allocations: 1.791 MB / 294.9 MB, free: 3.977 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.313e-05/0.002587, allocations: 0 / 294.9 MB, free: 3.977 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.347e-06/0.00259, allocations: 0 / 294.9 MB, free: 3.977 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.32e-07/0.002591, allocations: 0 / 294.9 MB, free: 3.977 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.0006925/0.003283, allocations: 231 kB / 295.2 MB, free: 3.75 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.786e-05/0.003341, allocations: 4 kB / 295.2 MB, free: 3.746 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.763e-05/0.003379, allocations: 7.984 kB / 295.2 MB, free: 3.738 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.225e-05/0.003411, allocations: 7.984 kB / 295.2 MB, free: 3.73 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.002e-05/0.003431, allocations: 0 / 295.2 MB, free: 3.73 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.773e-06/0.003438, allocations: 0 / 295.2 MB, free: 3.73 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005752/0.004013, allocations: 450.9 kB / 295.6 MB, free: 3.289 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.724e-06/0.004021, allocations: 0 / 295.6 MB, free: 3.289 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.598e-05/0.004037, allocations: 12 kB / 295.6 MB, free: 3.277 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003448/0.004382, allocations: 275.3 kB / 295.9 MB, free: 3.008 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.267e-05/0.004394, allocations: 0 / 295.9 MB, free: 3.008 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.004395, allocations: 3.938 kB / 295.9 MB, free: 3.004 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.552e-05/0.004411, allocations: 0 / 295.9 MB, free: 3.004 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000323/0.004734, allocations: 309.9 kB / 296.2 MB, free: 2.672 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.004766, allocations: 8.031 kB / 296.2 MB, free: 2.664 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.153e-05/0.004798, allocations: 4.938 kB / 296.2 MB, free: 2.66 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.254e-05/0.00486, allocations: 105.8 kB / 296.3 MB, free: 2.531 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.004871, allocations: 384 / 296.3 MB, free: 2.531 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.235e-05/0.004884, allocations: 4.375 kB / 296.3 MB, free: 2.527 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.683e-05/0.004971, allocations: 59.91 kB / 296.4 MB, free: 2.457 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.004978, allocations: 192 / 296.4 MB, free: 2.457 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.963e-06/0.004985, allocations: 384 / 296.4 MB, free: 2.457 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.004992, allocations: 7.938 kB / 296.4 MB, free: 2.449 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.134e-05/0.005013, allocations: 25.7 kB / 296.4 MB, free: 2.418 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.827e-05/0.005091, allocations: 61.03 kB / 296.5 MB, free: 2.344 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.626e-05/0.005138, allocations: 40.28 kB / 296.5 MB, free: 2.289 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.171e-05/0.005159, allocations: 42.64 kB / 296.6 MB, free: 2.238 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.108e-06/0.005163, allocations: 0 / 296.6 MB, free: 2.238 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.168e-05/0.005205, allocations: 60.2 kB / 296.6 MB, free: 2.164 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.005206, allocations: 4 kB / 296.6 MB, free: 2.16 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001493/0.005355, allocations: 114.8 kB / 296.7 MB, free: 2.023 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.854e-05/0.005404, allocations: 77.11 kB / 296.8 MB, free: 1.93 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.164e-05/0.005445, allocations: 97.8 kB / 296.9 MB, free: 1.824 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.1e-05/0.005456, allocations: 25.7 kB / 296.9 MB, free: 1.793 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.413e-05/0.005481, allocations: 80.14 kB / 297 MB, free: 1.711 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.197e-05/0.005503, allocations: 3.984 kB / 297 MB, free: 1.707 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.149e-05/0.005534, allocations: 13.72 kB / 297 MB, free: 1.688 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.005635, allocations: 318.8 kB / 297.3 MB, free: 1.367 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.863e-05/0.005653, allocations: 25.83 kB / 297.4 MB, free: 1.336 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.786e-05/0.005671, allocations: 33.7 kB / 297.4 MB, free: 1.297 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.156e-05/0.005733, allocations: 68.2 kB / 297.5 MB, free: 1.215 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.005735, allocations: 0 / 297.5 MB, free: 1.215 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.668e-05/0.005802, allocations: 85.09 kB / 297.6 MB, free: 1.113 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.535e-05/0.005847, allocations: 33.7 kB / 297.6 MB, free: 1.074 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.005854, allocations: 0 / 297.6 MB, free: 1.074 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.005866, allocations: 4 kB / 297.6 MB, free: 1.07 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.141e-06/0.005872, allocations: 0 / 297.6 MB, free: 1.07 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.887e-06/0.005876, allocations: 0 / 297.6 MB, free: 1.07 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.927e-05/0.005895, allocations: 4.781 kB / 297.6 MB, free: 1.066 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.036e-05/0.005906, allocations: 7.938 kB / 297.6 MB, free: 1.059 MB / 282.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 7.117e-05/0.005977, allocations: 135.5 kB / 297.7 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.583e-06/0.005983, allocations: 4 kB / 297.7 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.506e-06/0.005992, allocations: 3 kB / 297.7 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.005993, allocations: 0 / 297.7 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-06/0.005995, allocations: 0 / 297.7 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.005998, allocations: 3.938 kB / 297.7 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.784e-05/0.006046, allocations: 69.84 kB / 297.8 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.006047, allocations: 0 / 297.8 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.71e-07/0.006047, allocations: 4 kB / 297.8 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.048e-06/0.006051, allocations: 0 / 297.8 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-07/0.006052, allocations: 0 / 297.8 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.458e-06/0.006056, allocations: 3.984 kB / 297.8 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.51e-07/0.006057, allocations: 0 / 297.8 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.006057, allocations: 4 kB / 297.8 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.512e-05/0.006122, allocations: 116.5 kB / 297.9 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.075e-05/0.006133, allocations: 0 / 297.9 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.209e-06/0.006138, allocations: 4 kB / 297.9 MB, free: 0.6562 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.338e-06/0.006148, allocations: 0 / 297.9 MB, free: 0.6562 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-06/0.006149, allocations: 3.969 kB / 298 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.933e-06/0.006156, allocations: 12.84 kB / 298 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006156, allocations: 0 / 298 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002132/0.006369, allocations: 63.8 kB / 298 MB, free: 0.5742 MB / 282.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.000374/0.006743, allocations: 200.3 kB / 298.2 MB, free: 396 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.624e-05/0.006829, allocations: 115.7 kB / 298.3 MB, free: 252 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.006833, allocations: 0 / 298.3 MB, free: 252 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.676e-05/0.006859, allocations: 89.95 kB / 298.4 MB, free: 140 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.528e-05/0.006905, allocations: 9.656 kB / 298.4 MB, free: 132 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001488/0.007053, allocations: 113.1 kB / 298.5 MB, free: 15.98 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.679e-05/0.00708, allocations: 55.36 kB / 298.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.801e-06/0.007086, allocations: 0 / 298.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.283e-05/0.007119, allocations: 51.38 kB / 298.6 MB, free: 15.86 MB / 298.7 MB Notification: Performance of SimCode: time 2.61e-07/0.007119, allocations: 0 / 298.6 MB, free: 15.86 MB / 298.7 MB Notification: Performance of Templates: time 0.003342/0.01046, allocations: 1.904 MB / 300.6 MB, free: 13.96 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 2.812383621931076]