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.001259/0.001259, allocations: 111.3 kB / 18.45 MB, free: 4.645 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.001328/0.001328, allocations: 186.2 kB / 19.38 MB, free: 3.723 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.3/1.3, allocations: 222.9 MB / 243.1 MB, free: 15.06 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.1986/0.1986, allocations: 44.18 MB / 337.4 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 63.89 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3686/0.3699, allocations: 60.82 MB / 0.5195 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.00139/0.3714, allocations: 0.4988 MB / 0.52 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00194/0.3733, allocations: 1.753 MB / 0.5217 GB, free: 2.051 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.847e-05/0.3734, allocations: 0 / 0.5217 GB, free: 2.051 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.263e-05/0.3734, allocations: 0 / 0.5217 GB, free: 2.051 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.531e-06/0.3734, allocations: 1.125 kB / 0.5217 GB, free: 2.051 MB / 382.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.0008761/0.3743, allocations: 218.8 kB / 0.5219 GB, free: 1.973 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.243e-05/0.3743, allocations: 7.062 kB / 0.522 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.824e-05/0.3744, allocations: 6.203 kB / 0.522 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.379e-05/0.3744, allocations: 0 / 0.522 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.344e-05/0.3744, allocations: 1.094 kB / 0.522 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.25e-06/0.3744, allocations: 0 / 0.522 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006305/0.375, allocations: 415.1 kB / 0.5224 GB, free: 1.828 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.282e-06/0.3751, allocations: 0 / 0.5224 GB, free: 1.828 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.722e-05/0.3751, allocations: 5.281 kB / 0.5224 GB, free: 1.824 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004375/0.3755, allocations: 302.4 kB / 0.5227 GB, free: 1.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3755, allocations: 1.062 kB / 0.5227 GB, free: 1.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3755, allocations: 0 / 0.5227 GB, free: 1.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.768e-06/0.3756, allocations: 4 kB / 0.5227 GB, free: 1.746 MB / 382.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.0002874/0.3758, allocations: 383.6 kB / 0.523 GB, free: 1.34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.449e-05/0.3759, allocations: 10.2 kB / 0.523 GB, free: 1.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.933e-05/0.3759, allocations: 2.219 kB / 0.523 GB, free: 1.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.867e-05/0.376, allocations: 165.9 kB / 0.5232 GB, free: 1.141 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.376, allocations: 384 / 0.5232 GB, free: 1.141 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.089e-05/0.376, allocations: 1.406 kB / 0.5232 GB, free: 1.141 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.353e-05/0.3761, allocations: 38.22 kB / 0.5232 GB, free: 1.102 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.3761, allocations: 0 / 0.5232 GB, free: 1.102 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.394e-06/0.3761, allocations: 5.219 kB / 0.5232 GB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.3761, allocations: 3.984 kB / 0.5232 GB, free: 1.094 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.499e-05/0.3761, allocations: 1.375 kB / 0.5232 GB, free: 1.094 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.802e-05/0.3762, allocations: 144.6 kB / 0.5234 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.204e-05/0.3763, allocations: 17.58 kB / 0.5234 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.181e-05/0.3763, allocations: 10.73 kB / 0.5234 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.863e-06/0.3763, allocations: 3.938 kB / 0.5234 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.858e-05/0.3763, allocations: 69.92 kB / 0.5235 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.3763, allocations: 0 / 0.5235 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001307/0.3765, allocations: 61.41 kB / 0.5235 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.287e-05/0.3765, allocations: 78.92 kB / 0.5236 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.726e-05/0.3765, allocations: 89.86 kB / 0.5237 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.831e-06/0.3765, allocations: 30.92 kB / 0.5237 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.618e-06/0.3765, allocations: 80.89 kB / 0.5238 GB, free: 424 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.345e-05/0.3766, allocations: 1.469 kB / 0.5238 GB, free: 424 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.171e-05/0.3766, allocations: 15.59 kB / 0.5238 GB, free: 404 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.863e-05/0.3766, allocations: 312.2 kB / 0.5241 GB, free: 84 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.736e-06/0.3767, allocations: 1.984 kB / 0.5241 GB, free: 84 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.302e-06/0.3767, allocations: 5.281 kB / 0.5241 GB, free: 80 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.405e-05/0.3767, allocations: 63.81 kB / 0.5242 GB, free: 4 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3767, allocations: 0 / 0.5242 GB, free: 4 kB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.963e-05/0.3768, allocations: 64.17 kB / 0.5242 GB, free: 15.94 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.209e-05/0.3768, allocations: 41 kB / 0.5243 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.3768, allocations: 3.938 kB / 0.5243 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.025e-05/0.3769, allocations: 0.75 kB / 0.5243 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.173e-06/0.3769, allocations: 1.062 kB / 0.5243 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.3769, allocations: 0 / 0.5243 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.457e-05/0.3769, allocations: 1.062 kB / 0.5243 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.332e-06/0.3769, allocations: 1.922 kB / 0.5243 GB, free: 15.89 MB / 398.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 7.649e-05/0.377, allocations: 134.2 kB / 0.5244 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.015e-05/0.377, allocations: 5.969 kB / 0.5244 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.416e-06/0.377, allocations: 7.125 kB / 0.5244 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.377, allocations: 0.8438 kB / 0.5244 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.377, allocations: 1.125 kB / 0.5244 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.713e-06/0.377, allocations: 3.938 kB / 0.5244 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.924e-05/0.3771, allocations: 154.2 kB / 0.5246 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.3771, allocations: 0 / 0.5246 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.3771, allocations: 0 / 0.5246 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.3772, allocations: 4.938 kB / 0.5246 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-06/0.3772, allocations: 2.125 kB / 0.5246 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.3772, allocations: 0 / 0.5246 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.3772, allocations: 0 / 0.5246 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.408e-05/0.3773, allocations: 92.98 kB / 0.5247 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.001e-05/0.3773, allocations: 78.11 kB / 0.5248 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.36e-05/0.3773, allocations: 5.75 kB / 0.5248 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.458e-06/0.3773, allocations: 1.094 kB / 0.5248 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.36e-05/0.3774, allocations: 1.719 kB / 0.5248 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-06/0.3774, allocations: 0 / 0.5248 GB, free: 15.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.404e-05/0.3774, allocations: 84.25 kB / 0.5248 GB, free: 15.25 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3774, allocations: 0 / 0.5248 GB, free: 15.25 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003186/0.3777, allocations: 64.56 kB / 0.5249 GB, free: 15.24 MB / 398.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.0003915/0.3781, allocations: 191.4 kB / 0.5251 GB, free: 15.12 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.594e-05/0.3782, allocations: 66.38 kB / 0.5252 GB, free: 15.05 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3782, allocations: 0 / 0.5252 GB, free: 15.05 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.188e-05/0.3783, allocations: 56.17 kB / 0.5252 GB, free: 14.99 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001204/0.3784, allocations: 2.375 kB / 0.5252 GB, free: 14.99 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000172/0.3786, allocations: 102.7 kB / 0.5253 GB, free: 14.86 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002572/0.3788, allocations: 0.675 MB / 0.526 GB, free: 14.16 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.06e-05/0.3789, allocations: 8.594 kB / 0.526 GB, free: 14.16 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3789, allocations: 0 / 0.526 GB, free: 14.16 MB / 398.1 MB Notification: Performance of Templates: time 0.00329/0.3822, allocations: 1.504 MB / 0.5274 GB, free: 13.8 MB / 398.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestPolynomials/TestPolynomials.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches