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.0007586/0.0007586, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.003629/0.003629, allocations: 164.1 kB / 24.7 MB, free: 8.891 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.8719/0.8719, allocations: 177.1 MB / 205 MB, free: 5.746 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.2741/0.2741, allocations: 32.8 MB / 294.2 MB, free: 1.227 MB / 266.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.663e-06/1.663e-06, allocations: 0 / 440.8 MB, free: 3.785 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.17e-05/2.336e-05, allocations: 3.828 kB / 440.8 MB, free: 3.781 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.0009211/0.0009444, allocations: 499.2 kB / 441.3 MB, free: 3.297 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.00209/0.003034, allocations: 1.736 MB / 443 MB, free: 1.539 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.796e-05/0.003052, allocations: 0 / 443 MB, free: 1.539 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.6e-05/0.003068, allocations: 0 / 443 MB, free: 1.539 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.313e-06/0.003075, allocations: 4 kB / 443.1 MB, free: 1.535 MB / 410.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.0007851/0.00386, allocations: 251 kB / 443.3 MB, free: 1.289 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.943e-05/0.00391, allocations: 4 kB / 443.3 MB, free: 1.285 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.589e-05/0.003946, allocations: 0 / 443.3 MB, free: 1.285 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.139e-05/0.003977, allocations: 11.98 kB / 443.3 MB, free: 1.273 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.031e-05/0.003997, allocations: 0 / 443.3 MB, free: 1.273 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.994e-06/0.004004, allocations: 0 / 443.3 MB, free: 1.273 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000493/0.004497, allocations: 443 kB / 443.7 MB, free: 0.8398 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.659e-06/0.004507, allocations: 3.984 kB / 443.7 MB, free: 0.8359 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.826e-05/0.004525, allocations: 4 kB / 443.8 MB, free: 0.832 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003501/0.004875, allocations: 339.2 kB / 444.1 MB, free: 0.5 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.004879, allocations: 4 kB / 444.1 MB, free: 0.4961 MB / 410.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.004879, allocations: 4 kB / 444.1 MB, free: 0.4922 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.004884, allocations: 0 / 444.1 MB, free: 0.4922 MB / 410.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.0003154/0.005199, allocations: 315.5 kB / 444.4 MB, free: 152 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.005236, allocations: 8.031 kB / 444.4 MB, free: 144 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.058e-05/0.005277, allocations: 4.938 kB / 444.4 MB, free: 140 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.693e-05/0.005334, allocations: 101.8 kB / 444.5 MB, free: 12 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.187e-05/0.005345, allocations: 384 / 444.5 MB, free: 12 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.635e-06/0.005353, allocations: 384 / 444.5 MB, free: 12 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1761/0.1814, allocations: 65.12 kB / 444.6 MB, free: 46.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.1814, allocations: 192 / 444.6 MB, free: 46.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.1814, allocations: 2.812 kB / 444.6 MB, free: 46.64 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.1815, allocations: 4.125 kB / 444.6 MB, free: 46.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.026e-05/0.1815, allocations: 29.2 kB / 444.6 MB, free: 46.61 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.578e-05/0.1816, allocations: 93.33 kB / 444.7 MB, free: 46.49 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.621e-05/0.1816, allocations: 48.38 kB / 444.7 MB, free: 46.43 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.406e-05/0.1816, allocations: 36.53 kB / 444.8 MB, free: 46.39 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.085e-06/0.1816, allocations: 4.562 kB / 444.8 MB, free: 46.39 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/0.1816, allocations: 60.77 kB / 444.8 MB, free: 46.32 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 7.51e-07/0.1816, allocations: 0.5625 kB / 444.8 MB, free: 46.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001465/0.1818, allocations: 121 kB / 445 MB, free: 46.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.493e-05/0.1818, allocations: 77.11 kB / 445 MB, free: 46.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.478e-05/0.1818, allocations: 92.64 kB / 445.1 MB, free: 46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.789e-06/0.1818, allocations: 25.7 kB / 445.2 MB, free: 45.97 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.052e-06/0.1818, allocations: 80.14 kB / 445.2 MB, free: 45.89 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.438e-05/0.1819, allocations: 3.266 kB / 445.2 MB, free: 45.89 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.054e-05/0.1819, allocations: 13.72 kB / 445.3 MB, free: 45.88 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.572e-05/0.1819, allocations: 316.9 kB / 445.6 MB, free: 45.56 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.014e-05/0.1819, allocations: 32.36 kB / 445.6 MB, free: 45.53 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.293e-06/0.1819, allocations: 25.7 kB / 445.6 MB, free: 45.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.462e-05/0.1819, allocations: 63.42 kB / 445.7 MB, free: 45.43 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-06/0.1819, allocations: 5.234 kB / 445.7 MB, free: 45.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.375e-05/0.182, allocations: 95.27 kB / 445.8 MB, free: 45.33 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/0.182, allocations: 35.86 kB / 445.8 MB, free: 45.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.182, allocations: 0 / 445.8 MB, free: 45.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.182, allocations: 3 kB / 445.8 MB, free: 45.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.71e-07/0.182, allocations: 0 / 445.8 MB, free: 45.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.182, allocations: 0 / 445.8 MB, free: 45.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.248e-05/0.182, allocations: 0 / 445.8 MB, free: 45.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.182, allocations: 0 / 445.8 MB, free: 45.3 MB / 410.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 3.631e-05/0.1821, allocations: 137.7 kB / 446 MB, free: 45.16 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.717e-06/0.1821, allocations: 10.5 kB / 446 MB, free: 45.15 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.478e-06/0.1821, allocations: 5.188 kB / 446 MB, free: 45.15 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.12e-07/0.1821, allocations: 0 / 446 MB, free: 45.15 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.1821, allocations: 1.125 kB / 446 MB, free: 45.15 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.716e-06/0.1821, allocations: 0 / 446 MB, free: 45.15 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 2.714e-05/0.1821, allocations: 99.53 kB / 446.1 MB, free: 45.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.91e-07/0.1821, allocations: 0 / 446.1 MB, free: 45.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.42e-07/0.1821, allocations: 0 / 446.1 MB, free: 45.03 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.22e-07/0.1821, allocations: 3.75 kB / 446.1 MB, free: 45.03 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.921e-06/0.1821, allocations: 3.938 kB / 446.1 MB, free: 45.02 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.21e-07/0.1821, allocations: 6.438 kB / 446.1 MB, free: 45.02 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1821, allocations: 2.188 kB / 446.1 MB, free: 45.02 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.792e-05/0.1822, allocations: 117.3 kB / 446.2 MB, free: 44.9 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.038e-06/0.1822, allocations: 2.656 kB / 446.2 MB, free: 44.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.448e-06/0.1822, allocations: 4.688 kB / 446.2 MB, free: 44.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.58e-06/0.1822, allocations: 4.5 kB / 446.2 MB, free: 44.89 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.09e-05/0.1822, allocations: 4.078 kB / 446.2 MB, free: 44.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-06/0.1822, allocations: 0 / 446.2 MB, free: 44.89 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.624e-06/0.1822, allocations: 75.97 kB / 446.3 MB, free: 44.82 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1822, allocations: 2.969 kB / 446.3 MB, free: 44.82 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002553/0.1825, allocations: 67.78 kB / 446.4 MB, free: 44.82 MB / 410.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.0003172/0.1828, allocations: 204.8 kB / 446.6 MB, free: 44.73 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.751e-05/0.1829, allocations: 116.7 kB / 446.7 MB, free: 44.61 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1829, allocations: 0 / 446.7 MB, free: 44.61 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.333e-05/0.1829, allocations: 81.14 kB / 446.7 MB, free: 44.52 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.84e-05/0.183, allocations: 3.734 kB / 446.8 MB, free: 44.52 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001406/0.1831, allocations: 135.3 kB / 446.9 MB, free: 44.36 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.171e-05/0.1831, allocations: 53.98 kB / 446.9 MB, free: 44.29 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.588e-06/0.1831, allocations: 8.5 kB / 446.9 MB, free: 44.29 MB / 410.7 MB Notification: Performance of SimCode: time 4.01e-07/0.1831, allocations: 2.688 kB / 446.9 MB, free: 44.29 MB / 410.7 MB Notification: Performance of Templates: time 0.002092/0.1852, allocations: 1.531 MB / 448.5 MB, free: 44.18 MB / 410.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=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.451031708158553]