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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001517/0.001517, allocations: 213.2 kB / 24.48 MB, free: 3.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.483/1.483, allocations: 230.6 MB / 258.2 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2291/0.2291, allocations: 44.95 MB / 359.6 MB, free: 6.074 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials") translateModel(ModelicaTest.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002198/0.002198, allocations: 68.19 kB / 0.4942 GB, free: 10.08 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3697/0.3719, allocations: 65.48 MB / 0.5582 GB, free: 7.516 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.002341/0.3743, allocations: 0.4884 MB / 0.5587 GB, free: 7.027 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003874/0.3781, allocations: 1.727 MB / 0.5603 GB, free: 5.281 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.755e-05/0.3782, allocations: 0 / 0.5603 GB, free: 5.281 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.966e-05/0.3782, allocations: 0 / 0.5603 GB, free: 5.281 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.734e-06/0.3782, allocations: 0 / 0.5603 GB, free: 5.281 MB / 398.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.001498/0.3797, allocations: 259.1 kB / 0.5606 GB, free: 5.027 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.829e-05/0.3798, allocations: 7.984 kB / 0.5606 GB, free: 5.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.314e-05/0.3798, allocations: 0 / 0.5606 GB, free: 5.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.023e-05/0.3798, allocations: 0 / 0.5606 GB, free: 5.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.138e-05/0.3799, allocations: 0 / 0.5606 GB, free: 5.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.187e-06/0.3799, allocations: 0 / 0.5606 GB, free: 5.02 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001066/0.3809, allocations: 455.1 kB / 0.561 GB, free: 4.574 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.09e-05/0.3809, allocations: 0 / 0.561 GB, free: 4.574 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.015e-05/0.381, allocations: 4 kB / 0.561 GB, free: 4.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005019/0.3815, allocations: 301.7 kB / 0.5613 GB, free: 4.281 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3815, allocations: 0 / 0.5613 GB, free: 4.281 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3815, allocations: 0 / 0.5613 GB, free: 4.281 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.7e-06/0.3815, allocations: 0 / 0.5613 GB, free: 4.281 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.0004607/0.382, allocations: 319.6 kB / 0.5616 GB, free: 3.934 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.382, allocations: 8.031 kB / 0.5616 GB, free: 3.926 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.964e-05/0.382, allocations: 0.9375 kB / 0.5616 GB, free: 3.926 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000116/0.3821, allocations: 102.5 kB / 0.5617 GB, free: 3.801 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.222e-05/0.3822, allocations: 8.359 kB / 0.5617 GB, free: 3.793 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.476e-05/0.3822, allocations: 384 / 0.5617 GB, free: 3.793 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000135/0.3823, allocations: 72.66 kB / 0.5618 GB, free: 3.711 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.3823, allocations: 0 / 0.5618 GB, free: 3.711 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.3823, allocations: 0 / 0.5618 GB, free: 3.711 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.3823, allocations: 3.938 kB / 0.5618 GB, free: 3.707 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.031e-05/0.3824, allocations: 29.7 kB / 0.5618 GB, free: 3.672 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001516/0.3825, allocations: 97.33 kB / 0.5619 GB, free: 3.547 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.64e-05/0.3826, allocations: 40.28 kB / 0.562 GB, free: 3.492 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.514e-05/0.3827, allocations: 38.64 kB / 0.562 GB, free: 3.445 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.435e-05/0.3827, allocations: 3.938 kB / 0.562 GB, free: 3.441 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.096e-05/0.3827, allocations: 60.27 kB / 0.5621 GB, free: 3.367 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 3.787e-06/0.3827, allocations: 4 kB / 0.5621 GB, free: 3.363 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002537/0.383, allocations: 114.8 kB / 0.5622 GB, free: 3.227 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.879e-05/0.3831, allocations: 85.09 kB / 0.5623 GB, free: 3.125 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.482e-05/0.3831, allocations: 93.81 kB / 0.5624 GB, free: 3.023 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.3832, allocations: 25.7 kB / 0.5624 GB, free: 2.992 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.002e-05/0.3832, allocations: 84.14 kB / 0.5625 GB, free: 2.906 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.494e-05/0.3832, allocations: 0 / 0.5625 GB, free: 2.906 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.456e-05/0.3833, allocations: 17.72 kB / 0.5625 GB, free: 2.883 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.3835, allocations: 310.8 kB / 0.5628 GB, free: 2.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.847e-05/0.3835, allocations: 25.7 kB / 0.5628 GB, free: 2.539 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.244e-05/0.3835, allocations: 37.77 kB / 0.5628 GB, free: 2.496 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001281/0.3836, allocations: 68.25 kB / 0.5629 GB, free: 2.414 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3836, allocations: 3.938 kB / 0.5629 GB, free: 2.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001194/0.3838, allocations: 85.11 kB / 0.563 GB, free: 2.309 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.683e-05/0.3838, allocations: 29.7 kB / 0.563 GB, free: 2.273 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.3838, allocations: 0 / 0.563 GB, free: 2.273 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.3838, allocations: 3.938 kB / 0.563 GB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.18e-06/0.3838, allocations: 3.984 kB / 0.563 GB, free: 2.266 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.3838, allocations: 0 / 0.563 GB, free: 2.266 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.239e-05/0.3839, allocations: 4 kB / 0.563 GB, free: 2.262 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.274e-06/0.3839, allocations: 4.094 kB / 0.563 GB, free: 2.258 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 0.0001543/0.384, allocations: 135.5 kB / 0.5632 GB, free: 2.109 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.245e-05/0.384, allocations: 4 kB / 0.5632 GB, free: 2.105 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.594e-05/0.3841, allocations: 6.938 kB / 0.5632 GB, free: 2.098 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.3841, allocations: 3.938 kB / 0.5632 GB, free: 2.094 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.3841, allocations: 0 / 0.5632 GB, free: 2.094 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.3841, allocations: 0 / 0.5632 GB, free: 2.094 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001484/0.3842, allocations: 101.3 kB / 0.5633 GB, free: 1.965 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.3842, allocations: 0 / 0.5633 GB, free: 1.965 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.443e-06/0.3842, allocations: 3.938 kB / 0.5633 GB, free: 1.961 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.499e-06/0.3842, allocations: 8 kB / 0.5633 GB, free: 1.953 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.3842, allocations: 0 / 0.5633 GB, free: 1.953 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.931e-06/0.3842, allocations: 3.938 kB / 0.5633 GB, free: 1.949 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3842, allocations: 0 / 0.5633 GB, free: 1.949 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001634/0.3844, allocations: 116.5 kB / 0.5634 GB, free: 1.805 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.165e-06/0.3844, allocations: 4 kB / 0.5634 GB, free: 1.801 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.479e-05/0.3844, allocations: 0 / 0.5634 GB, free: 1.801 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.461e-05/0.3844, allocations: 3.938 kB / 0.5634 GB, free: 1.797 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.01e-05/0.3845, allocations: 0 / 0.5634 GB, free: 1.797 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-06/0.3845, allocations: 4 kB / 0.5634 GB, free: 1.793 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.783e-05/0.3845, allocations: 79.31 kB / 0.5635 GB, free: 1.715 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3845, allocations: 0 / 0.5635 GB, free: 1.715 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004926/0.385, allocations: 67.8 kB / 0.5635 GB, free: 1.648 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.000603/0.3856, allocations: 199.9 kB / 0.5637 GB, free: 1.453 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001778/0.3858, allocations: 118.8 kB / 0.5638 GB, free: 1.312 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3858, allocations: 0 / 0.5638 GB, free: 1.312 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.773e-05/0.3859, allocations: 81.11 kB / 0.5639 GB, free: 1.215 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001804/0.386, allocations: 4 kB / 0.5639 GB, free: 1.211 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003131/0.3864, allocations: 136.4 kB / 0.5641 GB, free: 1.039 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.304e-05/0.3864, allocations: 55.34 kB / 0.5641 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.046e-05/0.3864, allocations: 11.44 kB / 0.5641 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3864, allocations: 0 / 0.5641 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of Templates: time 0.005113/0.3915, allocations: 1.506 MB / 0.5656 GB, free: 15.45 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.TestPolynomials.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.51376067707315]