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.0009845/0.0009845, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.000995/0.000995, allocations: 161 kB / 24.56 MB, free: 16 kB / 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.9854/0.9854, allocations: 177.1 MB / 205 MB, free: 5.625 MB / 186.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.2827/0.2827, allocations: 34.26 MB / 295.7 MB, free: 0.75 MB / 266.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.944e-06/1.944e-06, allocations: 0 / 378 MB, free: 2.684 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.502e-05/2.696e-05, allocations: 2.312 kB / 378 MB, free: 2.68 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001576/0.001603, allocations: 0.5047 MB / 378.5 MB, free: 2.172 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002569/0.004173, allocations: 1.787 MB / 380.3 MB, free: 372 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.911e-05/0.004192, allocations: 0 / 380.3 MB, free: 372 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.242e-05/0.004214, allocations: 0 / 380.3 MB, free: 372 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.133e-06/0.004221, allocations: 0 / 380.3 MB, free: 372 kB / 346.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.0011/0.005322, allocations: 263 kB / 380.6 MB, free: 108 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.744e-05/0.005369, allocations: 0 / 380.6 MB, free: 108 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.768e-05/0.005407, allocations: 3.984 kB / 380.6 MB, free: 104 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.86e-05/0.005435, allocations: 4 kB / 380.6 MB, free: 100 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.891e-05/0.005454, allocations: 0 / 380.6 MB, free: 100 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.584e-06/0.005462, allocations: 0 / 380.6 MB, free: 100 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007557/0.006218, allocations: 450.9 kB / 381 MB, free: 15.66 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 8.667e-06/0.006226, allocations: 0 / 381 MB, free: 15.66 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.85e-05/0.006245, allocations: 0 / 381 MB, free: 15.66 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005762/0.006821, allocations: 355 kB / 381.4 MB, free: 15.31 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.816e-06/0.006824, allocations: 0 / 381.4 MB, free: 15.31 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.61e-07/0.006825, allocations: 4 kB / 381.4 MB, free: 15.3 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.439e-06/0.006829, allocations: 0 / 381.4 MB, free: 15.3 MB / 362.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.0004941/0.007323, allocations: 409.6 kB / 381.8 MB, free: 14.86 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/0.007375, allocations: 12.03 kB / 381.8 MB, free: 14.85 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.325e-05/0.007418, allocations: 0.9375 kB / 381.8 MB, free: 14.85 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.203e-05/0.0075, allocations: 104.6 kB / 381.9 MB, free: 14.72 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.007515, allocations: 384 / 381.9 MB, free: 14.72 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.728e-05/0.007533, allocations: 8.359 kB / 381.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001146/0.007647, allocations: 51.97 kB / 381.9 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.00766, allocations: 192 / 381.9 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.879e-06/0.00767, allocations: 4.312 kB / 381.9 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/0.007682, allocations: 11.94 kB / 381.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.499e-05/0.007707, allocations: 25.7 kB / 382 MB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001104/0.007817, allocations: 108.7 kB / 382.1 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.829e-05/0.007876, allocations: 56.75 kB / 382.1 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.602e-05/0.007902, allocations: 37.33 kB / 382.2 MB, free: 14.34 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.799e-06/0.007907, allocations: 4.062 kB / 382.2 MB, free: 14.34 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.366e-05/0.00795, allocations: 59.09 kB / 382.2 MB, free: 14.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.313e-06/0.007952, allocations: 0 / 382.2 MB, free: 14.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001908/0.008142, allocations: 122.7 kB / 382.4 MB, free: 14.12 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.401e-05/0.008186, allocations: 89.17 kB / 382.4 MB, free: 14.02 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.312e-05/0.008239, allocations: 142.2 kB / 382.6 MB, free: 13.86 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.078e-05/0.00825, allocations: 25.7 kB / 382.6 MB, free: 13.83 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.406e-05/0.008284, allocations: 126.9 kB / 382.7 MB, free: 13.7 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.668e-05/0.008301, allocations: 352 / 382.7 MB, free: 13.7 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.131e-05/0.008332, allocations: 19.38 kB / 382.7 MB, free: 13.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.008469, allocations: 492.1 kB / 383.2 MB, free: 13.18 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.086e-05/0.00849, allocations: 25.7 kB / 383.3 MB, free: 13.15 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.135e-05/0.008512, allocations: 37.69 kB / 383.3 MB, free: 13.11 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.281e-05/0.008564, allocations: 63.03 kB / 383.3 MB, free: 13.03 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.008566, allocations: 8.062 kB / 383.4 MB, free: 13.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.983e-05/0.008646, allocations: 85.06 kB / 383.4 MB, free: 12.92 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.236e-05/0.008679, allocations: 37.69 kB / 383.5 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-06/0.008684, allocations: 0 / 383.5 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.008701, allocations: 0 / 383.5 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.45e-06/0.008707, allocations: 0 / 383.5 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.792e-06/0.008713, allocations: 3.938 kB / 383.5 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.432e-05/0.008728, allocations: 0 / 383.5 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.008735, allocations: 4 kB / 383.5 MB, free: 12.87 MB / 362.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 8.798e-05/0.008823, allocations: 186.3 kB / 383.7 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.889e-06/0.008832, allocations: 4 kB / 383.7 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.116e-05/0.008854, allocations: 10.98 kB / 383.7 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.008855, allocations: 0 / 383.7 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.00886, allocations: 3.984 kB / 383.7 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.008865, allocations: 3.938 kB / 383.7 MB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.135e-05/0.008936, allocations: 112.6 kB / 383.8 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.008937, allocations: 0 / 383.8 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.973e-06/0.008939, allocations: 3.938 kB / 383.8 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.008941, allocations: 0 / 383.8 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-06/0.008949, allocations: 0 / 383.8 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.00895, allocations: 4 kB / 383.8 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.008951, allocations: 3.938 kB / 383.8 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001165/0.009068, allocations: 135.8 kB / 383.9 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.559e-06/0.009072, allocations: 0 / 383.9 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.475e-05/0.009087, allocations: 0 / 383.9 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.797e-06/0.009096, allocations: 0 / 383.9 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.632e-05/0.009112, allocations: 4 kB / 383.9 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-06/0.009116, allocations: 3.984 kB / 384 MB, free: 12.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.903e-05/0.009155, allocations: 123.1 kB / 384.1 MB, free: 12.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.009156, allocations: 0 / 384.1 MB, free: 12.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003383/0.009494, allocations: 63.81 kB / 384.1 MB, free: 12.14 MB / 362.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.0004724/0.009966, allocations: 202.2 kB / 384.3 MB, free: 11.94 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001391/0.01011, allocations: 130.4 kB / 384.5 MB, free: 11.79 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.01011, allocations: 0 / 384.5 MB, free: 11.79 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.142e-05/0.01016, allocations: 92.86 kB / 384.5 MB, free: 11.67 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001442/0.0103, allocations: 0 / 384.5 MB, free: 11.67 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002417/0.01054, allocations: 117.6 kB / 384.7 MB, free: 11.52 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.859e-05/0.0106, allocations: 51.36 kB / 384.7 MB, free: 11.45 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.1e-05/0.01061, allocations: 4 kB / 384.7 MB, free: 11.45 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.452e-05/0.01064, allocations: 8.5 kB / 384.7 MB, free: 11.44 MB / 362.7 MB Notification: Performance of SimCode: time 6.52e-07/0.01064, allocations: 0 / 384.7 MB, free: 11.44 MB / 362.7 MB Notification: Performance of Templates: time 0.00474/0.01538, allocations: 1.685 MB / 386.4 MB, free: 9.754 MB / 362.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 -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: 3.1808382240124047]