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.001332/0.001332, allocations: 105.5 kB / 17.63 MB, free: 5.344 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.001462/0.001462, allocations: 192 kB / 18.56 MB, free: 4.434 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.402/1.402, allocations: 222.9 MB / 242.2 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2057/0.2057, allocations: 44.18 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 56.12 kB / 408.4 MB, free: 27.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.119, allocations: 60.83 MB / 469.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.002/0.1211, allocations: 491.7 kB / 469.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002643/0.1237, allocations: 1.742 MB / 471.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.61e-05/0.1238, allocations: 0 / 471.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.328e-05/0.1238, allocations: 0 / 471.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.641e-06/0.1238, allocations: 0 / 471.5 MB, free: 12.14 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.001026/0.1249, allocations: 239.2 kB / 471.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.888e-05/0.1249, allocations: 7.984 kB / 471.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.994e-05/0.125, allocations: 0 / 471.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.478e-05/0.125, allocations: 4 kB / 471.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.608e-05/0.125, allocations: 0 / 471.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.661e-06/0.125, allocations: 0 / 471.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006434/0.1257, allocations: 403.2 kB / 472.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.965e-06/0.1257, allocations: 0 / 472.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.672e-05/0.1257, allocations: 0 / 472.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000511/0.1262, allocations: 307.4 kB / 472.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1263, allocations: 4 kB / 472.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1263, allocations: 0 / 472.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.1263, allocations: 0 / 472.4 MB, free: 11.2 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.0004378/0.1267, allocations: 393.1 kB / 472.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.1268, allocations: 8.031 kB / 472.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.882e-05/0.1268, allocations: 8.938 kB / 472.8 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.996e-05/0.1269, allocations: 160.4 kB / 473 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.074e-05/0.1269, allocations: 384 / 473 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.171e-05/0.1269, allocations: 384 / 473 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.464e-05/0.127, allocations: 42 kB / 473 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.253e-06/0.1271, allocations: 0 / 473 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.937e-06/0.1271, allocations: 0 / 473 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.1271, allocations: 0 / 473 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.947e-05/0.1271, allocations: 0 / 473 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000146/0.1273, allocations: 145.7 kB / 473.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.14e-05/0.1273, allocations: 22.52 kB / 473.2 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.489e-05/0.1273, allocations: 4.859 kB / 473.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.488e-06/0.1273, allocations: 4 kB / 473.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.012e-05/0.1274, allocations: 68.25 kB / 473.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1274, allocations: 0 / 473.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001684/0.1276, allocations: 59.41 kB / 473.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.369e-05/0.1276, allocations: 81.05 kB / 473.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.318e-05/0.1277, allocations: 93.86 kB / 473.5 MB, free: 9.914 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.085e-05/0.1277, allocations: 25.7 kB / 473.5 MB, free: 9.883 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.382e-05/0.1277, allocations: 84.27 kB / 473.6 MB, free: 9.797 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.925e-05/0.1278, allocations: 3.984 kB / 473.6 MB, free: 9.793 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.425e-05/0.1278, allocations: 13.72 kB / 473.6 MB, free: 9.773 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.605e-05/0.1279, allocations: 310.8 kB / 473.9 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.428e-06/0.1279, allocations: 0 / 473.9 MB, free: 9.461 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.995e-06/0.1279, allocations: 4 kB / 473.9 MB, free: 9.457 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.557e-05/0.128, allocations: 60.27 kB / 474 MB, free: 9.383 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.128, allocations: 7.938 kB / 474 MB, free: 9.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.122e-05/0.1281, allocations: 63.45 kB / 474 MB, free: 9.301 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.903e-05/0.1281, allocations: 41.58 kB / 474.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.1281, allocations: 0 / 474.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.1281, allocations: 0 / 474.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.32e-07/0.1281, allocations: 0 / 474.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.897e-06/0.1282, allocations: 0 / 474.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.764e-05/0.1282, allocations: 0 / 474.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.08e-06/0.1282, allocations: 3.938 kB / 474.1 MB, free: 9.25 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.327e-05/0.1283, allocations: 135.5 kB / 474.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.224e-05/0.1283, allocations: 11.95 kB / 474.2 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.448e-06/0.1283, allocations: 3.125 kB / 474.2 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.1283, allocations: 0 / 474.2 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.1283, allocations: 8 kB / 474.2 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.235e-06/0.1283, allocations: 0 / 474.2 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.941e-05/0.1284, allocations: 145.7 kB / 474.4 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.1285, allocations: 0 / 474.4 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.1285, allocations: 0 / 474.4 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.1285, allocations: 7.922 kB / 474.4 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.564e-06/0.1285, allocations: 4 kB / 474.4 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.1285, allocations: 0 / 474.4 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1285, allocations: 4 kB / 474.4 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001046/0.1286, allocations: 94.69 kB / 474.5 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.236e-05/0.1286, allocations: 81.09 kB / 474.6 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.427e-05/0.1287, allocations: 3.938 kB / 474.6 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.001e-05/0.1287, allocations: 0 / 474.6 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.244e-05/0.1287, allocations: 3.984 kB / 474.6 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-06/0.1287, allocations: 4 kB / 474.6 MB, free: 8.645 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.294e-05/0.1287, allocations: 79.31 kB / 474.7 MB, free: 8.566 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1287, allocations: 0 / 474.7 MB, free: 8.566 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003279/0.1291, allocations: 63.98 kB / 474.7 MB, free: 8.504 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 (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.000444/0.1295, allocations: 188.9 kB / 474.9 MB, free: 8.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.637e-05/0.1296, allocations: 67.34 kB / 475 MB, free: 8.242 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1296, allocations: 0 / 475 MB, free: 8.242 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.971e-05/0.1297, allocations: 55.41 kB / 475 MB, free: 8.176 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000124/0.1298, allocations: 4.281 kB / 475 MB, free: 8.172 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001792/0.13, allocations: 84.86 kB / 475.1 MB, free: 8.062 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002303/0.1302, allocations: 0.669 MB / 475.8 MB, free: 7.367 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.2e-06/0.1303, allocations: 0 / 475.8 MB, free: 7.367 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.071e-05/0.1303, allocations: 7.562 kB / 475.8 MB, free: 7.359 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1303, allocations: 4 kB / 475.8 MB, free: 7.355 MB / 350.1 MB Notification: Performance of Templates: time 0.004348/0.1346, allocations: 1.633 MB / 477.4 MB, free: 5.723 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches