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.001292/0.001292, allocations: 123.4 kB / 17.79 MB, free: 5.246 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.001462/0.001462, allocations: 208.3 kB / 20.75 MB, free: 2.297 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.555/1.555, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] 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.2452/0.2452, allocations: 46.93 MB / 357.1 MB, free: 10.29 MB / 286.1 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 0.002043/0.002043, allocations: 59.91 kB / 0.4914 GB, free: 7.438 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1496/0.1516, allocations: 66 MB / 0.5558 GB, free: 5.316 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001974/0.1536, allocations: 498.5 kB / 0.5563 GB, free: 4.828 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002795/0.1564, allocations: 1.797 MB / 0.5581 GB, free: 3.012 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.828e-05/0.1564, allocations: 4 kB / 0.5581 GB, free: 3.008 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.788e-05/0.1564, allocations: 3.938 kB / 0.5581 GB, free: 3.004 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.132e-06/0.1564, allocations: 4 kB / 0.5581 GB, free: 3 MB / 414.1 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.0009826/0.1574, allocations: 231.2 kB / 0.5583 GB, free: 2.773 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.837e-05/0.1575, allocations: 0 / 0.5583 GB, free: 2.773 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.497e-05/0.1575, allocations: 4 kB / 0.5583 GB, free: 2.77 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.495e-05/0.1575, allocations: 0 / 0.5583 GB, free: 2.77 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.812e-05/0.1575, allocations: 4 kB / 0.5583 GB, free: 2.766 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.061e-06/0.1575, allocations: 0 / 0.5583 GB, free: 2.766 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007238/0.1583, allocations: 431.2 kB / 0.5587 GB, free: 2.344 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.364e-06/0.1583, allocations: 0 / 0.5587 GB, free: 2.344 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.321e-05/0.1583, allocations: 3.984 kB / 0.5587 GB, free: 2.34 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005083/0.1588, allocations: 307.2 kB / 0.559 GB, free: 2.039 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1588, allocations: 0 / 0.559 GB, free: 2.039 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1588, allocations: 3.938 kB / 0.559 GB, free: 2.035 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.1588, allocations: 0 / 0.559 GB, free: 2.035 MB / 414.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.0005797/0.1594, allocations: 388.8 kB / 0.5594 GB, free: 1.602 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.1594, allocations: 12.03 kB / 0.5594 GB, free: 1.59 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.637e-05/0.1595, allocations: 0.9375 kB / 0.5594 GB, free: 1.59 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001433/0.1596, allocations: 164.4 kB / 0.5596 GB, free: 1.391 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.1596, allocations: 384 / 0.5596 GB, free: 1.391 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.524e-06/0.1597, allocations: 384 / 0.5596 GB, free: 1.391 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001135/0.1598, allocations: 41.94 kB / 0.5596 GB, free: 1.344 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.1598, allocations: 0 / 0.5596 GB, free: 1.344 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.937e-06/0.1598, allocations: 0 / 0.5596 GB, free: 1.344 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.1598, allocations: 0 / 0.5596 GB, free: 1.344 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.722e-05/0.1598, allocations: 0 / 0.5596 GB, free: 1.344 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000181/0.16, allocations: 153.7 kB / 0.5597 GB, free: 1.145 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.33e-05/0.16, allocations: 14.58 kB / 0.5598 GB, free: 1.121 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.586e-05/0.1601, allocations: 8.797 kB / 0.5598 GB, free: 1.109 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.868e-06/0.1601, allocations: 0 / 0.5598 GB, free: 1.109 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.785e-05/0.1601, allocations: 72.19 kB / 0.5598 GB, free: 1.023 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.1601, allocations: 0 / 0.5598 GB, free: 1.023 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002206/0.1604, allocations: 71.39 kB / 0.5599 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.813e-05/0.1604, allocations: 77.11 kB / 0.56 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.866e-05/0.1605, allocations: 93.81 kB / 0.5601 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.1605, allocations: 25.7 kB / 0.5601 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.298e-05/0.1606, allocations: 84.12 kB / 0.5602 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.355e-05/0.1606, allocations: 0 / 0.5602 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.263e-05/0.1606, allocations: 13.72 kB / 0.5602 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.1608, allocations: 314.8 kB / 0.5605 GB, free: 300 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.306e-05/0.1608, allocations: 8.125 kB / 0.5605 GB, free: 292 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.545e-06/0.1608, allocations: 4 kB / 0.5605 GB, free: 288 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.783e-05/0.1608, allocations: 60.2 kB / 0.5606 GB, free: 212 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1609, allocations: 0 / 0.5606 GB, free: 212 kB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.596e-05/0.1609, allocations: 63.39 kB / 0.5606 GB, free: 136 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.188e-05/0.161, allocations: 37.64 kB / 0.5606 GB, free: 92 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.161, allocations: 0 / 0.5606 GB, free: 92 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.161, allocations: 0 / 0.5606 GB, free: 92 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.161, allocations: 96 / 0.5606 GB, free: 92 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.688e-06/0.161, allocations: 4 kB / 0.5607 GB, free: 88 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.882e-05/0.161, allocations: 3.984 kB / 0.5607 GB, free: 84 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.161, allocations: 0 / 0.5607 GB, free: 84 kB / 414.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.000137/0.1612, allocations: 143.6 kB / 0.5608 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.012e-05/0.1612, allocations: 3.938 kB / 0.5608 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.707e-06/0.1612, allocations: 3.125 kB / 0.5608 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.1612, allocations: 3.938 kB / 0.5608 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.1612, allocations: 0 / 0.5608 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.1612, allocations: 4 kB / 0.5608 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001291/0.1613, allocations: 145.7 kB / 0.5609 GB, free: 15.72 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.1613, allocations: 0 / 0.5609 GB, free: 15.72 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.419e-06/0.1613, allocations: 7.922 kB / 0.561 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.1613, allocations: 3.938 kB / 0.561 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.325e-06/0.1613, allocations: 4 kB / 0.561 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.1613, allocations: 0 / 0.561 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.02e-07/0.1613, allocations: 3.938 kB / 0.561 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001081/0.1614, allocations: 86.84 kB / 0.561 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.071e-05/0.1615, allocations: 85.09 kB / 0.5611 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.41e-05/0.1615, allocations: 3.938 kB / 0.5611 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.356e-06/0.1615, allocations: 0 / 0.5611 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.388e-05/0.1615, allocations: 0 / 0.5611 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-06/0.1615, allocations: 0 / 0.5611 GB, free: 15.48 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.812e-05/0.1616, allocations: 83.28 kB / 0.5612 GB, free: 15.4 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1616, allocations: 0 / 0.5612 GB, free: 15.4 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003284/0.1619, allocations: 63.8 kB / 0.5613 GB, free: 15.34 MB / 430.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.0004858/0.1624, allocations: 198.5 kB / 0.5615 GB, free: 15.14 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001223/0.1625, allocations: 63.34 kB / 0.5615 GB, free: 15.07 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1625, allocations: 0 / 0.5615 GB, free: 15.07 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.873e-05/0.1626, allocations: 55.41 kB / 0.5616 GB, free: 15 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001309/0.1627, allocations: 6.375 kB / 0.5616 GB, free: 15 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001935/0.1629, allocations: 85.05 kB / 0.5617 GB, free: 14.89 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003479/0.1632, allocations: 0.6729 MB / 0.5623 GB, free: 14.19 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.021e-06/0.1632, allocations: 0 / 0.5623 GB, free: 14.19 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.293e-05/0.1633, allocations: 7.438 kB / 0.5623 GB, free: 14.18 MB / 430.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1633, allocations: 3.938 kB / 0.5623 GB, free: 14.18 MB / 430.1 MB Notification: Performance of Templates: time 0.005246/0.1685, allocations: 1.614 MB / 0.5639 GB, free: 12.57 MB / 430.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.188922353088856]