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.001286/0.001287, allocations: 110.4 kB / 17.78 MB, free: 5.289 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.001214/0.001214, allocations: 187.1 kB / 18.71 MB, free: 4.371 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.261/1.261, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2048/0.2048, allocations: 44.18 MB / 336.7 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 63.91 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3449/0.3462, allocations: 60.82 MB / 0.5189 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001619/0.3479, allocations: 0.4964 MB / 0.5194 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002361/0.3503, allocations: 1.746 MB / 0.5211 GB, free: 2.062 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.863e-05/0.3503, allocations: 0 / 0.5211 GB, free: 2.062 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.572e-05/0.3503, allocations: 1.094 kB / 0.5211 GB, free: 2.062 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.572e-06/0.3504, allocations: 0 / 0.5211 GB, free: 2.062 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.001038/0.3514, allocations: 227.7 kB / 0.5213 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.728e-05/0.3515, allocations: 10.16 kB / 0.5213 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.674e-05/0.3515, allocations: 1.781 kB / 0.5213 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.402e-05/0.3515, allocations: 0 / 0.5213 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.643e-05/0.3515, allocations: 1.344 kB / 0.5213 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.052e-06/0.3515, allocations: 0 / 0.5213 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006945/0.3522, allocations: 411.6 kB / 0.5217 GB, free: 1.836 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.197e-06/0.3523, allocations: 0 / 0.5217 GB, free: 1.836 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.708e-05/0.3523, allocations: 6.172 kB / 0.5217 GB, free: 1.832 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005261/0.3528, allocations: 302.8 kB / 0.522 GB, free: 1.758 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3528, allocations: 0 / 0.522 GB, free: 1.758 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.995e-06/0.3529, allocations: 0 / 0.522 GB, free: 1.758 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.3529, allocations: 0 / 0.522 GB, free: 1.758 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.00037/0.3532, allocations: 387.9 kB / 0.5224 GB, free: 1.348 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.3533, allocations: 9.969 kB / 0.5224 GB, free: 1.348 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.657e-05/0.3533, allocations: 0.9375 kB / 0.5224 GB, free: 1.348 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.78e-05/0.3534, allocations: 166.8 kB / 0.5225 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.949e-06/0.3534, allocations: 8.25 kB / 0.5225 GB, free: 1.141 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.155e-06/0.3534, allocations: 1.5 kB / 0.5225 GB, free: 1.141 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.735e-05/0.3535, allocations: 33.92 kB / 0.5226 GB, free: 1.105 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.3535, allocations: 0 / 0.5226 GB, free: 1.105 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.819e-06/0.3536, allocations: 1.594 kB / 0.5226 GB, free: 1.105 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.9e-06/0.3536, allocations: 0.6094 kB / 0.5226 GB, free: 1.105 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.897e-05/0.3536, allocations: 5.688 kB / 0.5226 GB, free: 1.102 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.53e-05/0.3537, allocations: 147 kB / 0.5227 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.139e-05/0.3537, allocations: 21.77 kB / 0.5227 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.353e-05/0.3537, allocations: 6.625 kB / 0.5227 GB, free: 0.875 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.214e-06/0.3538, allocations: 0 / 0.5227 GB, free: 0.875 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.557e-05/0.3538, allocations: 67.03 kB / 0.5228 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.51e-07/0.3538, allocations: 0 / 0.5228 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001535/0.354, allocations: 61.28 kB / 0.5229 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.62e-05/0.354, allocations: 82.33 kB / 0.523 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.259e-05/0.354, allocations: 90.47 kB / 0.523 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.464e-06/0.354, allocations: 26.48 kB / 0.5231 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.182e-05/0.3541, allocations: 80.14 kB / 0.5231 GB, free: 436 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.574e-05/0.3541, allocations: 1.062 kB / 0.5231 GB, free: 436 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.456e-05/0.3541, allocations: 16.55 kB / 0.5232 GB, free: 416 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.919e-05/0.3542, allocations: 317.2 kB / 0.5235 GB, free: 92 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.728e-06/0.3542, allocations: 1.188 kB / 0.5235 GB, free: 92 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.41e-06/0.3542, allocations: 5.094 kB / 0.5235 GB, free: 88 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.464e-05/0.3542, allocations: 59.97 kB / 0.5235 GB, free: 16 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.3542, allocations: 0 / 0.5235 GB, free: 16 kB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.296e-05/0.3543, allocations: 64 kB / 0.5236 GB, free: 15.95 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.32e-05/0.3544, allocations: 36.84 kB / 0.5236 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.3544, allocations: 4.547 kB / 0.5236 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.3544, allocations: 0 / 0.5236 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.71e-07/0.3544, allocations: 1.25 kB / 0.5236 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.3544, allocations: 4.641 kB / 0.5236 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.899e-05/0.3545, allocations: 5.281 kB / 0.5236 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/0.3545, allocations: 3.938 kB / 0.5236 GB, free: 15.9 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 9.795e-05/0.3546, allocations: 135.4 kB / 0.5238 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.08e-05/0.3546, allocations: 6.047 kB / 0.5238 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.262e-05/0.3546, allocations: 3.125 kB / 0.5238 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.3546, allocations: 0.6094 kB / 0.5238 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.3546, allocations: 1.25 kB / 0.5238 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.746e-06/0.3546, allocations: 0 / 0.5238 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001141/0.3548, allocations: 154 kB / 0.5239 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.3548, allocations: 4 kB / 0.5239 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.3548, allocations: 0 / 0.5239 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.3548, allocations: 9.922 kB / 0.5239 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.3548, allocations: 0 / 0.5239 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.3548, allocations: 1.375 kB / 0.5239 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.3548, allocations: 0.7031 kB / 0.5239 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001036/0.3549, allocations: 88.34 kB / 0.524 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.788e-05/0.355, allocations: 87.28 kB / 0.5241 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.444e-05/0.355, allocations: 5.344 kB / 0.5241 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.217e-06/0.355, allocations: 0.7031 kB / 0.5241 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.714e-05/0.355, allocations: 5.312 kB / 0.5241 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.028e-06/0.355, allocations: 3.984 kB / 0.5241 GB, free: 15.33 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.647e-05/0.3551, allocations: 76.08 kB / 0.5242 GB, free: 15.25 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3551, allocations: 1.375 kB / 0.5242 GB, free: 15.25 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003834/0.3555, allocations: 58.86 kB / 0.5242 GB, free: 15.25 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.000484/0.3559, allocations: 194.2 kB / 0.5244 GB, free: 15.12 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.958e-05/0.3561, allocations: 58.08 kB / 0.5245 GB, free: 15.06 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.3561, allocations: 0 / 0.5245 GB, free: 15.06 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.842e-05/0.3561, allocations: 55.72 kB / 0.5245 GB, free: 15 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001328/0.3562, allocations: 6.375 kB / 0.5245 GB, free: 14.99 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001904/0.3564, allocations: 82.78 kB / 0.5246 GB, free: 14.89 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.3568, allocations: 0.6744 MB / 0.5253 GB, free: 14.2 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.722e-06/0.3568, allocations: 0.75 kB / 0.5253 GB, free: 14.2 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.496e-05/0.3568, allocations: 8.625 kB / 0.5253 GB, free: 14.19 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3568, allocations: 3.938 kB / 0.5253 GB, free: 14.18 MB / 398.1 MB Notification: Performance of Templates: time 0.004656/0.3615, allocations: 1.621 MB / 0.5269 GB, free: 13.75 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/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