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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials") translateModel(ModelicaTest.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001109/0.001108, allocations: 92.91 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 187.8 kB / 17.88 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 223.2 MB / 241.8 MB, free: 388 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.235/0.235, allocations: 44.23 MB / 337.1 MB, free: 2.906 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003249/0.0003249, allocations: 12 kB / 409.5 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1525/0.1529, allocations: 61.92 MB / 471.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.0009864/0.1539, allocations: 217.2 kB / 471.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004237/0.1582, allocations: 1.67 MB / 473.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.613e-05/0.1582, allocations: 0 / 473.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.568e-05/0.1583, allocations: 0 / 473.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.863e-06/0.1583, allocations: 0 / 473.3 MB, free: 11.85 MB / 350.1 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.001362/0.1597, allocations: 171.5 kB / 473.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.041e-05/0.1597, allocations: 4 kB / 473.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.705e-05/0.1598, allocations: 7.938 kB / 473.5 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.24e-05/0.1599, allocations: 7.938 kB / 473.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.482e-05/0.1599, allocations: 0 / 473.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.777e-06/0.1599, allocations: 0 / 473.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001041/0.161, allocations: 351.3 kB / 473.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.884e-06/0.161, allocations: 0 / 473.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.974e-05/0.1611, allocations: 25.7 kB / 473.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006022/0.1617, allocations: 203.7 kB / 474.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1617, allocations: 0 / 474.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1617, allocations: 0 / 474.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.1617, allocations: 4 kB / 474.1 MB, free: 11.09 MB / 350.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.0006737/0.1624, allocations: 389 kB / 474.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.96e-05/0.1625, allocations: 8.031 kB / 474.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.819e-05/0.1626, allocations: 0 / 474.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000213/0.1628, allocations: 159.1 kB / 474.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.756e-05/0.1628, allocations: 8 kB / 474.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.283e-05/0.1629, allocations: 0 / 474.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001198/0.163, allocations: 33.64 kB / 474.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.163, allocations: 0 / 474.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.163, allocations: 11.94 kB / 474.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.1631, allocations: 0 / 474.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.705e-05/0.1631, allocations: 0 / 474.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002003/0.1633, allocations: 141.7 kB / 474.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.423e-05/0.1634, allocations: 18.61 kB / 474.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.073e-06/0.1634, allocations: 0 / 474.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.021e-05/0.1635, allocations: 64.25 kB / 474.9 MB, free: 10.1 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.974e-06/0.1635, allocations: 4 kB / 474.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002951/0.1638, allocations: 67.36 kB / 475 MB, free: 10.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.983e-05/0.1639, allocations: 77.11 kB / 475 MB, free: 9.922 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.689e-05/0.164, allocations: 89.86 kB / 475.1 MB, free: 9.824 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.533e-05/0.164, allocations: 29.7 kB / 475.2 MB, free: 9.789 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.778e-05/0.1641, allocations: 80.14 kB / 475.2 MB, free: 9.707 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.327e-05/0.1641, allocations: 0 / 475.2 MB, free: 9.707 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.833e-06/0.1642, allocations: 4 kB / 475.2 MB, free: 9.703 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.1643, allocations: 319 kB / 475.6 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.318e-05/0.1643, allocations: 0 / 475.6 MB, free: 9.383 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.035e-05/0.1644, allocations: 4 kB / 475.6 MB, free: 9.379 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.619e-05/0.1644, allocations: 25.7 kB / 475.6 MB, free: 9.348 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.1644, allocations: 0 / 475.6 MB, free: 9.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000137/0.1646, allocations: 63.34 kB / 475.6 MB, free: 9.273 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.242e-05/0.1646, allocations: 33.69 kB / 475.7 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/0.1647, allocations: 4 kB / 475.7 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.1647, allocations: 3.953 kB / 475.7 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.574e-06/0.1647, allocations: 12.03 kB / 475.7 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.1647, allocations: 3.938 kB / 475.7 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.359e-05/0.1648, allocations: 0 / 475.7 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.1648, allocations: 0 / 475.7 MB, free: 9.211 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001481/0.165, allocations: 140.1 kB / 475.8 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.162e-05/0.165, allocations: 0 / 475.8 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.718e-05/0.165, allocations: 3.125 kB / 475.8 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.165, allocations: 0 / 475.8 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.949e-06/0.165, allocations: 3.953 kB / 475.8 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.1651, allocations: 7.984 kB / 475.9 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001252/0.1652, allocations: 145.7 kB / 476 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.1652, allocations: 0 / 476 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.21e-07/0.1652, allocations: 0 / 476 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.1652, allocations: 0 / 476 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.889e-06/0.1653, allocations: 0 / 476 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.1653, allocations: 0 / 476 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.1653, allocations: 0 / 476 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001754/0.1655, allocations: 110.6 kB / 476.1 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.461e-05/0.1655, allocations: 77.11 kB / 476.2 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.355e-05/0.1656, allocations: 4 kB / 476.2 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.561e-05/0.1656, allocations: 0 / 476.2 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.455e-05/0.1656, allocations: 7.969 kB / 476.2 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-06/0.1656, allocations: 0 / 476.2 MB, free: 8.613 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.188e-05/0.1657, allocations: 79.23 kB / 476.3 MB, free: 8.535 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1657, allocations: 0 / 476.3 MB, free: 8.535 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005834/0.1663, allocations: 60 kB / 476.3 MB, free: 8.477 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007072/0.167, allocations: 191.2 kB / 476.5 MB, free: 8.289 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001299/0.1672, allocations: 63.39 kB / 476.6 MB, free: 8.215 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.1672, allocations: 0 / 476.6 MB, free: 8.215 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.284e-05/0.1673, allocations: 59.34 kB / 476.6 MB, free: 8.145 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000125/0.1674, allocations: 10.69 kB / 476.6 MB, free: 8.137 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002501/0.1677, allocations: 78.69 kB / 476.7 MB, free: 8.031 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003375/0.1681, allocations: 0.6731 MB / 477.4 MB, free: 7.332 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.536e-06/0.1681, allocations: 0 / 477.4 MB, free: 7.332 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.403e-05/0.1681, allocations: 7.438 kB / 477.4 MB, free: 7.324 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1681, allocations: 0 / 477.4 MB, free: 7.324 MB / 350.1 MB Notification: Performance of Templates: time 0.008142/0.1763, allocations: 1.553 MB / 479 MB, free: 5.77 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.makefile (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) 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","../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches