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.001142/0.001142, allocations: 109.5 kB / 17.78 MB, free: 5.293 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.00108/0.00108, allocations: 188 kB / 18.7 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.379/1.379, allocations: 222.9 MB / 242.4 MB, free: 15.14 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.2299/0.2299, allocations: 44.18 MB / 336.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 59.89 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4107/0.412, allocations: 60.83 MB / 0.5189 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001481/0.4135, allocations: 493.5 kB / 0.5194 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002101/0.4156, allocations: 1.753 MB / 0.5211 GB, free: 2.055 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.442e-05/0.4156, allocations: 0 / 0.5211 GB, free: 2.055 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.594e-05/0.4157, allocations: 1.031 kB / 0.5211 GB, free: 2.055 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.5e-06/0.4157, allocations: 0 / 0.5211 GB, free: 2.055 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.0009581/0.4167, allocations: 227.4 kB / 0.5213 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.883e-05/0.4167, allocations: 7.234 kB / 0.5213 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.114e-05/0.4168, allocations: 1.125 kB / 0.5213 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.431e-05/0.4168, allocations: 0.75 kB / 0.5213 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.675e-05/0.4168, allocations: 5.109 kB / 0.5213 GB, free: 1.961 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.751e-06/0.4168, allocations: 0 / 0.5213 GB, free: 1.961 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006699/0.4175, allocations: 410.1 kB / 0.5217 GB, free: 1.832 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.317e-06/0.4175, allocations: 4.594 kB / 0.5217 GB, free: 1.828 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.108e-05/0.4175, allocations: 5.281 kB / 0.5217 GB, free: 1.824 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004963/0.418, allocations: 305.8 kB / 0.522 GB, free: 1.746 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.418, allocations: 1.281 kB / 0.522 GB, free: 1.746 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4181, allocations: 0 / 0.522 GB, free: 1.746 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.4181, allocations: 3.938 kB / 0.522 GB, free: 1.742 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.0003296/0.4184, allocations: 387.7 kB / 0.5224 GB, free: 1.332 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.4184, allocations: 10.06 kB / 0.5224 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.399e-05/0.4185, allocations: 5.828 kB / 0.5224 GB, free: 1.328 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.731e-05/0.4185, allocations: 161 kB / 0.5225 GB, free: 1.133 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.4186, allocations: 1.312 kB / 0.5225 GB, free: 1.133 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.917e-06/0.4186, allocations: 5.5 kB / 0.5225 GB, free: 1.129 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.227e-05/0.4187, allocations: 38.19 kB / 0.5226 GB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.4187, allocations: 0 / 0.5226 GB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.608e-06/0.4187, allocations: 1.25 kB / 0.5226 GB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.688e-06/0.4187, allocations: 0 / 0.5226 GB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.761e-05/0.4187, allocations: 1.703 kB / 0.5226 GB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.02e-05/0.4188, allocations: 152.3 kB / 0.5227 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.619e-05/0.4189, allocations: 21.41 kB / 0.5227 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.244e-05/0.4189, allocations: 5.922 kB / 0.5227 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.598e-06/0.4189, allocations: 1.672 kB / 0.5228 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.233e-05/0.4189, allocations: 62.06 kB / 0.5228 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.4189, allocations: 0 / 0.5228 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.00016/0.4191, allocations: 69.3 kB / 0.5229 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.137e-05/0.4191, allocations: 79.48 kB / 0.523 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.994e-05/0.4192, allocations: 89.86 kB / 0.523 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.153e-06/0.4192, allocations: 29.83 kB / 0.5231 GB, free: 500 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.869e-06/0.4192, allocations: 80.14 kB / 0.5231 GB, free: 416 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.837e-05/0.4192, allocations: 1.156 kB / 0.5231 GB, free: 416 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.203e-05/0.4192, allocations: 12.31 kB / 0.5232 GB, free: 400 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.331e-05/0.4193, allocations: 312.6 kB / 0.5235 GB, free: 80 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.919e-06/0.4193, allocations: 1.281 kB / 0.5235 GB, free: 80 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.292e-06/0.4193, allocations: 1.641 kB / 0.5235 GB, free: 80 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.564e-05/0.4194, allocations: 68.17 kB / 0.5235 GB, free: 0 / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.4194, allocations: 0 / 0.5235 GB, free: 0 / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.446e-05/0.4195, allocations: 64.39 kB / 0.5236 GB, free: 15.93 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.381e-05/0.4195, allocations: 35.66 kB / 0.5236 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.4195, allocations: 5.062 kB / 0.5236 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.4196, allocations: 0.6094 kB / 0.5236 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.122e-06/0.4196, allocations: 0 / 0.5236 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.4196, allocations: 5.203 kB / 0.5236 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.697e-05/0.4196, allocations: 0.7031 kB / 0.5236 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-06/0.4196, allocations: 1 kB / 0.5236 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 8.909e-05/0.4197, allocations: 143.2 kB / 0.5238 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.478e-06/0.4197, allocations: 5.281 kB / 0.5238 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.063e-05/0.4197, allocations: 3.688 kB / 0.5238 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.4197, allocations: 1.219 kB / 0.5238 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.4197, allocations: 3.938 kB / 0.5238 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.4198, allocations: 1.859 kB / 0.5238 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.658e-05/0.4199, allocations: 144.9 kB / 0.5239 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.4199, allocations: 0 / 0.5239 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.312e-06/0.4199, allocations: 0.9375 kB / 0.5239 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.4199, allocations: 12.67 kB / 0.5239 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.847e-06/0.4199, allocations: 1 kB / 0.5239 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.4199, allocations: 0 / 0.5239 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.4199, allocations: 5.875 kB / 0.5239 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.258e-05/0.42, allocations: 92.03 kB / 0.524 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.016e-05/0.4201, allocations: 79.17 kB / 0.5241 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.45e-05/0.4201, allocations: 3.938 kB / 0.5241 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.129e-05/0.4201, allocations: 6.234 kB / 0.5241 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.1e-05/0.4201, allocations: 0 / 0.5241 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-06/0.4201, allocations: 1.281 kB / 0.5241 GB, free: 15.32 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.579e-05/0.4201, allocations: 75.84 kB / 0.5242 GB, free: 15.25 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4202, allocations: 1.062 kB / 0.5242 GB, free: 15.25 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000351/0.4205, allocations: 63.42 kB / 0.5242 GB, free: 15.23 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.000417/0.4209, allocations: 189.5 kB / 0.5244 GB, free: 15.11 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.897e-05/0.421, allocations: 62.3 kB / 0.5245 GB, free: 15.05 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.421, allocations: 0 / 0.5245 GB, free: 15.05 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.02e-05/0.4211, allocations: 60.05 kB / 0.5245 GB, free: 14.98 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001325/0.4212, allocations: 4.812 kB / 0.5245 GB, free: 14.98 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001702/0.4214, allocations: 82.78 kB / 0.5246 GB, free: 14.88 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002088/0.4216, allocations: 0.6778 MB / 0.5253 GB, free: 14.18 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.37e-06/0.4216, allocations: 1.281 kB / 0.5253 GB, free: 14.18 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.087e-06/0.4216, allocations: 7.438 kB / 0.5253 GB, free: 14.17 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4216, allocations: 0 / 0.5253 GB, free: 14.17 MB / 398.1 MB Notification: Performance of Templates: time 0.004427/0.4261, allocations: 1.622 MB / 0.5269 GB, free: 13.73 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