Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials") translateModel(ModelicaTest.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001538/0.001538, allocations: 121.7 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001998/0.001998, allocations: 212.8 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2181/0.2181, allocations: 46.09 MB / 345 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 75.88 kB / 482 MB, free: 4.078 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3481/0.3495, allocations: 62.43 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.00158/0.3511, allocations: 0.4944 MB / 0.5321 GB, free: 13.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002494/0.3536, allocations: 1.791 MB / 0.5339 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.829e-05/0.3537, allocations: 1.781 kB / 0.5339 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.297e-05/0.3537, allocations: 0 / 0.5339 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.981e-06/0.3537, allocations: 0 / 0.5339 GB, free: 11.82 MB / 398.1 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.001016/0.3547, allocations: 232.5 kB / 0.5341 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.541e-05/0.3548, allocations: 1.375 kB / 0.5341 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.329e-05/0.3548, allocations: 1.375 kB / 0.5341 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.577e-05/0.3549, allocations: 3.938 kB / 0.5341 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.904e-05/0.3549, allocations: 1.375 kB / 0.5341 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.775e-06/0.3549, allocations: 3.984 kB / 0.5341 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005974/0.3555, allocations: 411 kB / 0.5345 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.374e-06/0.3555, allocations: 5.375 kB / 0.5345 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.423e-05/0.3556, allocations: 3.984 kB / 0.5345 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000403/0.356, allocations: 299.4 kB / 0.5348 GB, free: 11.26 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.356, allocations: 0 / 0.5348 GB, free: 11.26 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.356, allocations: 5.312 kB / 0.5348 GB, free: 11.26 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.356, allocations: 0 / 0.5348 GB, free: 11.26 MB / 398.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.0003714/0.3564, allocations: 380.4 kB / 0.5352 GB, free: 10.85 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.3564, allocations: 9.625 kB / 0.5352 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.947e-05/0.3565, allocations: 2.312 kB / 0.5352 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.951e-05/0.3565, allocations: 164.4 kB / 0.5353 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.3566, allocations: 5.75 kB / 0.5353 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.754e-06/0.3566, allocations: 384 / 0.5353 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.692e-05/0.3567, allocations: 36.7 kB / 0.5354 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.011e-06/0.3567, allocations: 0 / 0.5354 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.936e-06/0.3567, allocations: 0 / 0.5354 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.465e-05/0.3567, allocations: 1.375 kB / 0.5354 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.106e-05/0.3567, allocations: 1.281 kB / 0.5354 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001247/0.3569, allocations: 147 kB / 0.5355 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.969e-05/0.3569, allocations: 23.89 kB / 0.5355 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.416e-05/0.3569, allocations: 6.172 kB / 0.5355 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.456e-06/0.357, allocations: 1.344 kB / 0.5355 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.682e-05/0.357, allocations: 64.14 kB / 0.5356 GB, free: 10.3 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.011e-06/0.357, allocations: 1.344 kB / 0.5356 GB, free: 10.3 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001717/0.3572, allocations: 63.3 kB / 0.5357 GB, free: 10.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.3573, allocations: 77.11 kB / 0.5357 GB, free: 10.14 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.868e-05/0.3573, allocations: 101.9 kB / 0.5358 GB, free: 10.03 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.274e-05/0.3573, allocations: 26.98 kB / 0.5359 GB, free: 9.996 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.859e-05/0.3574, allocations: 84.12 kB / 0.5359 GB, free: 9.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.632e-05/0.3574, allocations: 0 / 0.5359 GB, free: 9.91 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.65e-05/0.3574, allocations: 12.25 kB / 0.5359 GB, free: 9.895 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.3575, allocations: 312.4 kB / 0.5362 GB, free: 9.582 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.057e-06/0.3575, allocations: 0 / 0.5362 GB, free: 9.582 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.041e-06/0.3575, allocations: 1.406 kB / 0.5362 GB, free: 9.582 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.514e-05/0.3576, allocations: 79.22 kB / 0.5363 GB, free: 9.492 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3576, allocations: 0 / 0.5363 GB, free: 9.492 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.156e-05/0.3577, allocations: 58.91 kB / 0.5364 GB, free: 9.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.166e-05/0.3577, allocations: 35.58 kB / 0.5364 GB, free: 9.395 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.3577, allocations: 0 / 0.5364 GB, free: 9.395 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.3577, allocations: 0 / 0.5364 GB, free: 9.395 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.3577, allocations: 0.9375 kB / 0.5364 GB, free: 9.395 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.3578, allocations: 3.984 kB / 0.5364 GB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.579e-05/0.3578, allocations: 0.9062 kB / 0.5364 GB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.014e-06/0.3578, allocations: 4.875 kB / 0.5364 GB, free: 9.387 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.066e-05/0.3579, allocations: 137.8 kB / 0.5366 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.428e-06/0.3579, allocations: 5.031 kB / 0.5366 GB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.368e-06/0.3579, allocations: 7.125 kB / 0.5366 GB, free: 9.23 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.3579, allocations: 1.188 kB / 0.5366 GB, free: 9.23 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3579, allocations: 4 kB / 0.5366 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.3579, allocations: 0 / 0.5366 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.964e-05/0.358, allocations: 155.8 kB / 0.5367 GB, free: 9.027 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.358, allocations: 0 / 0.5367 GB, free: 9.027 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.358, allocations: 4 kB / 0.5367 GB, free: 9.023 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.358, allocations: 5 kB / 0.5367 GB, free: 9.02 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-06/0.3581, allocations: 1.094 kB / 0.5367 GB, free: 9.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.3581, allocations: 0 / 0.5367 GB, free: 9.02 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3581, allocations: 0 / 0.5367 GB, free: 9.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.021e-05/0.3582, allocations: 90.95 kB / 0.5368 GB, free: 8.918 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.092e-05/0.3582, allocations: 81.09 kB / 0.5369 GB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.331e-05/0.3582, allocations: 4.969 kB / 0.5369 GB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.177e-06/0.3582, allocations: 5.156 kB / 0.5369 GB, free: 8.812 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.341e-05/0.3583, allocations: 0 / 0.5369 GB, free: 8.812 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.035e-06/0.3583, allocations: 5.312 kB / 0.5369 GB, free: 8.809 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.762e-05/0.3583, allocations: 75.28 kB / 0.537 GB, free: 8.734 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3583, allocations: 0 / 0.537 GB, free: 8.734 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003256/0.3586, allocations: 69.23 kB / 0.537 GB, free: 8.715 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.0004453/0.3591, allocations: 187.2 kB / 0.5372 GB, free: 8.586 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.866e-05/0.3592, allocations: 68.14 kB / 0.5373 GB, free: 8.512 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3592, allocations: 0 / 0.5373 GB, free: 8.512 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.129e-05/0.3592, allocations: 55.28 kB / 0.5373 GB, free: 8.449 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001236/0.3594, allocations: 2.219 kB / 0.5373 GB, free: 8.449 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001922/0.3596, allocations: 106.6 kB / 0.5374 GB, free: 8.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002129/0.3598, allocations: 0.674 MB / 0.5381 GB, free: 7.621 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.147e-05/0.3598, allocations: 7.438 kB / 0.5381 GB, free: 7.613 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3598, allocations: 1.156 kB / 0.5381 GB, free: 7.613 MB / 398.1 MB Notification: Performance of Templates: time 0.003585/0.3634, allocations: 1.511 MB / 0.5396 GB, free: 6.852 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Math.TestPolynomials.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches