Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestPolynomials.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestPolynomials") translateModel(ModelicaTest.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestPolynomials") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009955/0.0009955, allocations: 202.1 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.254/1.254, allocations: 226.6 MB / 243.1 MB, free: 12.55 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007499/0.0007499, allocations: 96.88 kB / 295.1 MB, free: 4.387 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1796/0.1796, allocations: 44.83 MB / 392 MB, free: 11.37 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002278/0.0002278, allocations: 8 kB / 464.7 MB, free: 68.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08363/0.08388, allocations: 62.95 MB / 0.5153 GB, free: 5.121 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.0004384/0.08435, allocations: 212.6 kB / 0.5155 GB, free: 4.91 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001611/0.08598, allocations: 1.715 MB / 0.5172 GB, free: 3.176 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.53e-05/0.08601, allocations: 0 / 0.5172 GB, free: 3.176 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.096e-05/0.08603, allocations: 0 / 0.5172 GB, free: 3.176 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.809e-06/0.08604, allocations: 0 / 0.5172 GB, free: 3.176 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.000625/0.08667, allocations: 191 kB / 0.5174 GB, free: 2.992 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 2.685e-05/0.0867, allocations: 3.984 kB / 0.5174 GB, free: 2.988 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.943e-05/0.08675, allocations: 0 / 0.5174 GB, free: 2.988 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.364e-05/0.08677, allocations: 7.938 kB / 0.5174 GB, free: 2.98 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.461e-05/0.08679, allocations: 0 / 0.5174 GB, free: 2.98 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.129e-06/0.0868, allocations: 0 / 0.5174 GB, free: 2.98 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004083/0.08721, allocations: 379.2 kB / 0.5177 GB, free: 2.609 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.53e-06/0.08722, allocations: 0 / 0.5177 GB, free: 2.609 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.029e-05/0.08725, allocations: 29.7 kB / 0.5178 GB, free: 2.574 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002215/0.08748, allocations: 203.6 kB / 0.518 GB, free: 2.375 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.08749, allocations: 4 kB / 0.518 GB, free: 2.371 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.0875, allocations: 0 / 0.518 GB, free: 2.371 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.08751, allocations: 0 / 0.518 GB, free: 2.371 MB / 346.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.0002597/0.08777, allocations: 381.1 kB / 0.5183 GB, free: 1.945 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.08782, allocations: 12.03 kB / 0.5183 GB, free: 1.934 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.89e-05/0.08785, allocations: 0 / 0.5183 GB, free: 1.934 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.524e-05/0.08791, allocations: 163 kB / 0.5185 GB, free: 1.734 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.548e-06/0.08792, allocations: 7.938 kB / 0.5185 GB, free: 1.727 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.718e-06/0.08794, allocations: 0 / 0.5185 GB, free: 1.727 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.666e-05/0.08801, allocations: 33.69 kB / 0.5185 GB, free: 1.688 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.124e-06/0.08802, allocations: 3.984 kB / 0.5185 GB, free: 1.684 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-06/0.08804, allocations: 0 / 0.5185 GB, free: 1.684 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.08804, allocations: 0 / 0.5185 GB, free: 1.684 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.388e-05/0.08806, allocations: 3.938 kB / 0.5186 GB, free: 1.68 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.421e-05/0.08815, allocations: 153.6 kB / 0.5187 GB, free: 1.48 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.966e-05/0.08819, allocations: 18.58 kB / 0.5187 GB, free: 1.453 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.005e-05/0.0882, allocations: 4.953 kB / 0.5187 GB, free: 1.445 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.908e-06/0.08821, allocations: 4 kB / 0.5187 GB, free: 1.441 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.777e-05/0.08824, allocations: 60.25 kB / 0.5188 GB, free: 1.367 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.08825, allocations: 0 / 0.5188 GB, free: 1.367 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.000145/0.0884, allocations: 67.34 kB / 0.5188 GB, free: 1.289 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.569e-05/0.08843, allocations: 77.11 kB / 0.5189 GB, free: 1.195 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.923e-05/0.08846, allocations: 89.98 kB / 0.519 GB, free: 1.098 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.131e-06/0.08847, allocations: 29.7 kB / 0.519 GB, free: 1.062 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.258e-06/0.08848, allocations: 84.12 kB / 0.5191 GB, free: 0.9766 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.645e-05/0.08851, allocations: 4 kB / 0.5191 GB, free: 0.9727 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.914e-06/0.08851, allocations: 0 / 0.5191 GB, free: 0.9727 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.538e-05/0.08855, allocations: 310.8 kB / 0.5194 GB, free: 0.6602 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.642e-06/0.08856, allocations: 0 / 0.5194 GB, free: 0.6602 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.047e-06/0.08857, allocations: 0 / 0.5194 GB, free: 0.6602 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.787e-05/0.08859, allocations: 29.7 kB / 0.5194 GB, free: 0.625 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.0886, allocations: 4.062 kB / 0.5194 GB, free: 0.6211 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.506e-05/0.08865, allocations: 67.3 kB / 0.5195 GB, free: 0.543 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.08868, allocations: 37.69 kB / 0.5195 GB, free: 0.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.788e-06/0.08869, allocations: 0 / 0.5195 GB, free: 0.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.247e-06/0.0887, allocations: 3.938 kB / 0.5196 GB, free: 0.4961 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.51e-07/0.08871, allocations: 0 / 0.5196 GB, free: 0.4961 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.339e-06/0.08872, allocations: 0 / 0.5196 GB, free: 0.4961 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.394e-05/0.08873, allocations: 0 / 0.5196 GB, free: 0.4961 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.491e-06/0.08874, allocations: 4 kB / 0.5196 GB, free: 0.4922 MB / 346.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.647e-05/0.08879, allocations: 135.6 kB / 0.5197 GB, free: 352 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.222e-06/0.08881, allocations: 3.953 kB / 0.5197 GB, free: 348 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.043e-06/0.08882, allocations: 7.125 kB / 0.5197 GB, free: 344 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-06/0.08882, allocations: 7.922 kB / 0.5197 GB, free: 336 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.08883, allocations: 0 / 0.5197 GB, free: 336 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.613e-06/0.08884, allocations: 0 / 0.5197 GB, free: 336 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.127e-05/0.08888, allocations: 145.7 kB / 0.5198 GB, free: 140 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.08889, allocations: 0 / 0.5198 GB, free: 140 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.08889, allocations: 0 / 0.5198 GB, free: 140 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.0889, allocations: 7.953 kB / 0.5198 GB, free: 132 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.35e-06/0.08891, allocations: 4 kB / 0.5199 GB, free: 128 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.08891, allocations: 0 / 0.5199 GB, free: 128 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.08892, allocations: 0 / 0.5199 GB, free: 128 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.404e-05/0.08898, allocations: 94.77 kB / 0.5199 GB, free: 8 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.162e-05/0.08904, allocations: 77.11 kB / 0.52 GB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.234e-05/0.08905, allocations: 11.94 kB / 0.52 GB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.306e-06/0.08907, allocations: 0 / 0.52 GB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.175e-05/0.08908, allocations: 4 kB / 0.52 GB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-06/0.08909, allocations: 4.031 kB / 0.52 GB, free: 15.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.264e-05/0.08912, allocations: 75.28 kB / 0.5201 GB, free: 15.82 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.08912, allocations: 0 / 0.5201 GB, free: 15.82 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002778/0.08941, allocations: 63.98 kB / 0.5202 GB, free: 15.76 MB / 362.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 (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.0003861/0.0898, allocations: 192.3 kB / 0.5204 GB, free: 15.57 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 7.049e-05/0.08988, allocations: 59.39 kB / 0.5204 GB, free: 15.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.08989, allocations: 0 / 0.5204 GB, free: 15.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.653e-05/0.08993, allocations: 63.34 kB / 0.5205 GB, free: 15.42 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001149/0.09005, allocations: 2.109 kB / 0.5205 GB, free: 15.42 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001429/0.0902, allocations: 112.3 kB / 0.5206 GB, free: 15.28 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002167/0.09043, allocations: 0.6692 MB / 0.5212 GB, free: 14.58 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.263e-06/0.09044, allocations: 11.56 kB / 0.5212 GB, free: 14.57 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.09045, allocations: 4 kB / 0.5212 GB, free: 14.57 MB / 362.7 MB Notification: Performance of Templates: time 0.002632/0.09309, allocations: 1.495 MB / 0.5227 GB, free: 13.07 MB / 362.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestPolynomials.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestPolynomials.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.TestPolynomials.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.TestPolynomials.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestPolynomials.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.TestPolynomials --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.TestPolynomials.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_trunk_cpp_ModelicaTest.Math.TestPolynomials.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches