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.001017/0.001017, allocations: 193.9 kB / 16.09 MB, free: 5.547 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 226.5 MB / 243.4 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009152/0.0009151, allocations: 94.42 kB / 295.5 MB, free: 6.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3238/0.3238, allocations: 44.82 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003167/0.0003169, allocations: 8 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3496/0.3499, allocations: 62.95 MB / 0.5159 GB, free: 37.14 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.0005445/0.3505, allocations: 220.6 kB / 0.5161 GB, free: 36.98 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00182/0.3524, allocations: 1.718 MB / 0.5177 GB, free: 35.76 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.23e-05/0.3524, allocations: 0 / 0.5177 GB, free: 35.76 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.665e-05/0.3524, allocations: 0 / 0.5177 GB, free: 35.76 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 8.305e-06/0.3524, allocations: 0 / 0.5177 GB, free: 35.76 MB / 378.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.0007612/0.3532, allocations: 182 kB / 0.5179 GB, free: 35.7 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.173e-05/0.3532, allocations: 11.06 kB / 0.5179 GB, free: 35.69 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.412e-05/0.3533, allocations: 0 / 0.5179 GB, free: 35.69 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.812e-05/0.3533, allocations: 3.984 kB / 0.5179 GB, free: 35.68 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.864e-05/0.3533, allocations: 6.906 kB / 0.5179 GB, free: 35.68 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.551e-06/0.3533, allocations: 0 / 0.5179 GB, free: 35.68 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004567/0.3538, allocations: 371.3 kB / 0.5183 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.322e-06/0.3538, allocations: 0 / 0.5183 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.968e-05/0.3539, allocations: 29.02 kB / 0.5183 GB, free: 35.54 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002479/0.3541, allocations: 207.2 kB / 0.5185 GB, free: 35.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3541, allocations: 0 / 0.5185 GB, free: 35.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3541, allocations: 4 kB / 0.5185 GB, free: 35.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.997e-06/0.3541, allocations: 0 / 0.5185 GB, free: 35.5 MB / 378.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.0002929/0.3544, allocations: 386.9 kB / 0.5189 GB, free: 35.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.3545, allocations: 9 kB / 0.5189 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.219e-05/0.3545, allocations: 4.938 kB / 0.5189 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.754e-05/0.3546, allocations: 160.4 kB / 0.5191 GB, free: 34.89 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.3546, allocations: 384 / 0.5191 GB, free: 34.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.778e-06/0.3546, allocations: 3.344 kB / 0.5191 GB, free: 34.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.555e-05/0.3547, allocations: 37.2 kB / 0.5191 GB, free: 34.85 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.3547, allocations: 2.938 kB / 0.5191 GB, free: 34.85 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.905e-06/0.3547, allocations: 3.938 kB / 0.5191 GB, free: 34.85 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.3548, allocations: 0 / 0.5191 GB, free: 34.85 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.578e-05/0.3548, allocations: 3.984 kB / 0.5191 GB, free: 34.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.299e-05/0.3549, allocations: 144.7 kB / 0.5192 GB, free: 34.66 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.207e-05/0.3549, allocations: 25.94 kB / 0.5193 GB, free: 34.62 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.249e-05/0.3549, allocations: 7.859 kB / 0.5193 GB, free: 34.62 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.405e-06/0.3549, allocations: 4 kB / 0.5193 GB, free: 34.61 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.484e-05/0.355, allocations: 60.2 kB / 0.5193 GB, free: 34.54 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.61e-07/0.355, allocations: 0 / 0.5193 GB, free: 34.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001573/0.3552, allocations: 63.91 kB / 0.5194 GB, free: 34.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.949e-05/0.3552, allocations: 81.05 kB / 0.5195 GB, free: 34.38 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.365e-05/0.3552, allocations: 93.86 kB / 0.5196 GB, free: 34.28 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.454e-06/0.3552, allocations: 25.7 kB / 0.5196 GB, free: 34.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.027e-05/0.3553, allocations: 82.98 kB / 0.5197 GB, free: 34.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.691e-05/0.3553, allocations: 4.125 kB / 0.5197 GB, free: 34.16 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.874e-06/0.3553, allocations: 0 / 0.5197 GB, free: 34.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.84e-05/0.3553, allocations: 310.8 kB / 0.52 GB, free: 33.85 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.504e-06/0.3553, allocations: 3 kB / 0.52 GB, free: 33.85 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.298e-06/0.3554, allocations: 0 / 0.52 GB, free: 33.85 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.258e-05/0.3554, allocations: 63.98 kB / 0.52 GB, free: 33.78 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.3554, allocations: 0 / 0.52 GB, free: 33.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.861e-05/0.3555, allocations: 65.38 kB / 0.5201 GB, free: 33.71 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.586e-05/0.3555, allocations: 42.2 kB / 0.5201 GB, free: 33.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.3555, allocations: 0 / 0.5201 GB, free: 33.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.3555, allocations: 0 / 0.5201 GB, free: 33.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.3555, allocations: 3.938 kB / 0.5201 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.3555, allocations: 7.406 kB / 0.5202 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.694e-05/0.3556, allocations: 2.719 kB / 0.5202 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/0.3556, allocations: 0 / 0.5202 GB, free: 33.66 MB / 378.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 6.252e-05/0.3556, allocations: 134.6 kB / 0.5203 GB, free: 33.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.204e-06/0.3557, allocations: 7.938 kB / 0.5203 GB, free: 33.51 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.124e-06/0.3557, allocations: 7.125 kB / 0.5203 GB, free: 33.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.62e-07/0.3557, allocations: 0 / 0.5203 GB, free: 33.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.3557, allocations: 3 kB / 0.5203 GB, free: 33.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.3557, allocations: 0 / 0.5203 GB, free: 33.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.514e-05/0.3558, allocations: 149 kB / 0.5204 GB, free: 33.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.3558, allocations: 3.938 kB / 0.5204 GB, free: 33.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.3558, allocations: 0 / 0.5204 GB, free: 33.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.3558, allocations: 6.688 kB / 0.5205 GB, free: 33.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-06/0.3558, allocations: 0 / 0.5205 GB, free: 33.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.01e-07/0.3558, allocations: 0 / 0.5205 GB, free: 33.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3558, allocations: 0 / 0.5205 GB, free: 33.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.093e-05/0.3559, allocations: 101.8 kB / 0.5205 GB, free: 33.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.681e-05/0.3559, allocations: 80.44 kB / 0.5206 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.311e-05/0.3559, allocations: 6.906 kB / 0.5206 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.847e-06/0.3559, allocations: 0 / 0.5206 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.119e-05/0.3559, allocations: 0 / 0.5206 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.235e-06/0.3559, allocations: 0 / 0.5206 GB, free: 33.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.577e-05/0.356, allocations: 79.31 kB / 0.5207 GB, free: 33.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.356, allocations: 2.969 kB / 0.5207 GB, free: 33.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002917/0.3563, allocations: 59.33 kB / 0.5208 GB, free: 33.01 MB / 378.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.0003784/0.3567, allocations: 186.7 kB / 0.5209 GB, free: 32.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.375e-05/0.3567, allocations: 61.86 kB / 0.521 GB, free: 32.83 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3567, allocations: 3 kB / 0.521 GB, free: 32.83 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.848e-05/0.3568, allocations: 58.19 kB / 0.5211 GB, free: 32.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001348/0.3569, allocations: 0 / 0.5211 GB, free: 32.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001567/0.3571, allocations: 109.1 kB / 0.5212 GB, free: 32.63 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001496/0.3572, allocations: 0.6721 MB / 0.5218 GB, free: 31.94 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.086e-05/0.3573, allocations: 7.438 kB / 0.5218 GB, free: 31.93 MB / 378.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3573, allocations: 0 / 0.5218 GB, free: 31.93 MB / 378.7 MB Notification: Performance of Templates: time 0.003013/0.3603, allocations: 1.502 MB / 0.5233 GB, free: 31.8 MB / 378.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