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.001683/0.001683, allocations: 103.4 kB / 17.98 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001514/0.001514, allocations: 209.8 kB / 18.92 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.714/2.714, allocations: 227.4 MB / 247.1 MB, free: 10.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.5157/0.5157, allocations: 46.09 MB / 344.4 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002708/0.002709, allocations: 76.97 kB / 417.7 MB, free: 20.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2769, allocations: 62.45 MB / 480.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.00305/0.28, allocations: 0.5451 MB / 480.7 MB, free: 5.078 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004017/0.284, allocations: 1.789 MB / 482.5 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.644e-05/0.2841, allocations: 0 / 482.5 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.37e-05/0.2842, allocations: 0 / 482.5 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.027e-06/0.2842, allocations: 0 / 482.5 MB, free: 3.273 MB / 350.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.001686/0.2859, allocations: 203.4 kB / 482.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001608/0.2942, allocations: 4 kB / 482.7 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.325e-05/0.2943, allocations: 0 / 482.7 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.367e-05/0.2944, allocations: 3.984 kB / 482.7 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.641e-05/0.2944, allocations: 3.938 kB / 482.7 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.111e-05/0.2945, allocations: 0 / 482.7 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001633/0.2961, allocations: 407.2 kB / 483.1 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.835e-05/0.2962, allocations: 4 kB / 483.1 MB, free: 2.664 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.714e-05/0.2962, allocations: 4 kB / 483.1 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000861/0.2971, allocations: 195.7 kB / 483.3 MB, free: 2.469 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.374e-05/0.2971, allocations: 3.984 kB / 483.3 MB, free: 2.465 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.577e-06/0.2971, allocations: 0 / 483.3 MB, free: 2.465 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.917e-06/0.2972, allocations: 0 / 483.3 MB, free: 2.465 MB / 350.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.0008832/0.298, allocations: 389.2 kB / 483.7 MB, free: 2.031 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.791e-05/0.2981, allocations: 12.03 kB / 483.7 MB, free: 2.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.775e-05/0.2982, allocations: 4.938 kB / 483.7 MB, free: 2.016 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001382/0.2983, allocations: 164.4 kB / 483.8 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/0.2984, allocations: 4.375 kB / 483.9 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.627e-05/0.2984, allocations: 384 / 483.9 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001415/0.2986, allocations: 34.02 kB / 483.9 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.2986, allocations: 0 / 483.9 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.2986, allocations: 0 / 483.9 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.156e-05/0.2986, allocations: 0 / 483.9 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.822e-05/0.2987, allocations: 7.938 kB / 483.9 MB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000204/0.2989, allocations: 145.7 kB / 484 MB, free: 1.574 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.285e-05/0.299, allocations: 22.56 kB / 484.1 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.691e-05/0.299, allocations: 12.89 kB / 484.1 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.166e-05/0.299, allocations: 0 / 484.1 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.735e-05/0.2991, allocations: 60.2 kB / 484.1 MB, free: 1.453 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.403e-06/0.2991, allocations: 0 / 484.1 MB, free: 1.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002598/0.2994, allocations: 71.33 kB / 484.2 MB, free: 1.371 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.013e-05/0.2994, allocations: 77.11 kB / 484.3 MB, free: 1.277 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.33e-05/0.2995, allocations: 93.98 kB / 484.4 MB, free: 1.176 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.2995, allocations: 25.7 kB / 484.4 MB, free: 1.145 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.656e-05/0.2996, allocations: 84.14 kB / 484.5 MB, free: 1.059 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.485e-05/0.2996, allocations: 0 / 484.5 MB, free: 1.059 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.248e-05/0.2997, allocations: 9.719 kB / 484.5 MB, free: 1.043 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.2998, allocations: 314.8 kB / 484.8 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.756e-05/0.2999, allocations: 4 kB / 484.8 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.094e-05/0.2999, allocations: 0 / 484.8 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.687e-05/0.3, allocations: 72.25 kB / 484.9 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.3, allocations: 0 / 484.9 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000108/0.3001, allocations: 63.34 kB / 484.9 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.153e-05/0.3002, allocations: 37.64 kB / 485 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.3002, allocations: 0 / 485 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.3002, allocations: 0 / 485 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.042e-06/0.3002, allocations: 0 / 485 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.243e-06/0.3002, allocations: 0 / 485 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.951e-05/0.3003, allocations: 4 kB / 485 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.3003, allocations: 32 / 485 MB, free: 0.5156 MB / 350.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.0001302/0.3004, allocations: 139.5 kB / 485.1 MB, free: 372 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.762e-05/0.3005, allocations: 7.938 kB / 485.1 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.349e-05/0.3005, allocations: 3.125 kB / 485.1 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.3005, allocations: 0 / 485.1 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3005, allocations: 0 / 485.1 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.3005, allocations: 0 / 485.1 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001292/0.3006, allocations: 145.7 kB / 485.3 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.3007, allocations: 0 / 485.3 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.615e-06/0.3007, allocations: 4 kB / 485.3 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.3007, allocations: 11.92 kB / 485.3 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.3007, allocations: 3.984 kB / 485.3 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.3007, allocations: 0 / 485.3 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-05/0.3007, allocations: 0 / 485.3 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001274/0.3009, allocations: 98.77 kB / 485.4 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.003e-05/0.301, allocations: 81.02 kB / 485.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.914e-05/0.301, allocations: 3.938 kB / 485.5 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.642e-05/0.301, allocations: 4.031 kB / 485.5 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.709e-05/0.301, allocations: 8 kB / 485.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.519e-06/0.3011, allocations: 3.938 kB / 485.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.841e-05/0.3011, allocations: 75.28 kB / 485.5 MB, free: 15.83 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3011, allocations: 0 / 485.5 MB, free: 15.83 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005624/0.3017, allocations: 59.98 kB / 485.6 MB, free: 15.77 MB / 366.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.0007744/0.3025, allocations: 189.7 kB / 485.8 MB, free: 15.58 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001386/0.3026, allocations: 59.34 kB / 485.8 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.3027, allocations: 0 / 485.8 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.582e-05/0.3027, allocations: 59.39 kB / 485.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002011/0.3029, allocations: 4.281 kB / 485.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002671/0.3032, allocations: 102.6 kB / 486 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003061/0.3035, allocations: 0.6769 MB / 486.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.543e-05/0.3036, allocations: 7.438 kB / 486.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3036, allocations: 0 / 486.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of Templates: time 0.009719/0.3133, allocations: 1.516 MB / 488.2 MB, free: 13.08 MB / 366.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