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.001312/0.001312, allocations: 82.58 kB / 20.68 MB, free: 1.035 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.001349/0.001349, allocations: 163.2 kB / 23.95 MB, free: 4.168 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.407/1.407, allocations: 177.1 MB / 204.3 MB, free: 9.184 MB / 190.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.2006/0.2006, allocations: 32.8 MB / 293.5 MB, free: 40 kB / 270.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: Performance of FrontEnd - loaded program: time 3.586e-06/3.586e-06, allocations: 7.938 kB / 440.1 MB, free: 8.184 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.003e-05/3.361e-05, allocations: 2.281 kB / 440.1 MB, free: 8.18 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.00155/0.001583, allocations: 497.2 kB / 440.6 MB, free: 7.695 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002849/0.004433, allocations: 1.728 MB / 442.3 MB, free: 5.945 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.102e-05/0.004454, allocations: 7.938 kB / 442.3 MB, free: 5.938 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.185e-05/0.004465, allocations: 0 / 442.3 MB, free: 5.938 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.25e-06/0.004471, allocations: 0 / 442.3 MB, free: 5.938 MB / 366.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.00111/0.00558, allocations: 255 kB / 442.5 MB, free: 5.688 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.643e-05/0.005627, allocations: 0 / 442.5 MB, free: 5.688 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.238e-05/0.005669, allocations: 7.984 kB / 442.6 MB, free: 5.68 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.004e-05/0.005699, allocations: 3.984 kB / 442.6 MB, free: 5.676 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.871e-05/0.005718, allocations: 4 kB / 442.6 MB, free: 5.672 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.672e-06/0.005725, allocations: 0 / 442.6 MB, free: 5.672 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008423/0.006567, allocations: 458 kB / 443 MB, free: 5.227 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.468e-06/0.006576, allocations: 0 / 443 MB, free: 5.227 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.981e-05/0.006596, allocations: 0 / 443 MB, free: 5.227 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005448/0.007141, allocations: 335.2 kB / 443.3 MB, free: 4.898 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.007145, allocations: 4 kB / 443.3 MB, free: 4.895 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.007146, allocations: 0 / 443.3 MB, free: 4.895 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.927e-06/0.00715, allocations: 0 / 443.3 MB, free: 4.895 MB / 366.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.0003939/0.007544, allocations: 323.5 kB / 443.7 MB, free: 4.543 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.177e-05/0.007576, allocations: 8.031 kB / 443.7 MB, free: 4.535 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.295e-05/0.007609, allocations: 4.938 kB / 443.7 MB, free: 4.531 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.415e-05/0.007703, allocations: 109.8 kB / 443.8 MB, free: 4.398 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.007714, allocations: 384 / 443.8 MB, free: 4.398 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.005e-06/0.007722, allocations: 384 / 443.8 MB, free: 4.398 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001046/0.007826, allocations: 59.95 kB / 443.8 MB, free: 4.328 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.007836, allocations: 4.125 kB / 443.8 MB, free: 4.324 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.432e-06/0.007843, allocations: 384 / 443.8 MB, free: 4.324 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.007849, allocations: 3.938 kB / 443.8 MB, free: 4.32 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.077e-05/0.007879, allocations: 33.7 kB / 443.9 MB, free: 4.281 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001228/0.008002, allocations: 97.33 kB / 444 MB, free: 4.156 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.86e-05/0.008061, allocations: 44.31 kB / 444 MB, free: 4.098 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.86e-05/0.008089, allocations: 34.55 kB / 444 MB, free: 4.055 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.326e-06/0.008098, allocations: 0 / 444 MB, free: 4.055 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.142e-05/0.008149, allocations: 60.33 kB / 444.1 MB, free: 3.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.00815, allocations: 0 / 444.1 MB, free: 3.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001966/0.008347, allocations: 122.7 kB / 444.2 MB, free: 3.836 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.756e-05/0.008404, allocations: 81.05 kB / 444.3 MB, free: 3.738 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.653e-05/0.008461, allocations: 89.86 kB / 444.4 MB, free: 3.641 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.401e-05/0.008475, allocations: 29.83 kB / 444.4 MB, free: 3.605 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.546e-05/0.00851, allocations: 80.14 kB / 444.5 MB, free: 3.523 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.052e-05/0.008531, allocations: 7.953 kB / 444.5 MB, free: 3.516 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.646e-05/0.008557, allocations: 9.719 kB / 444.5 MB, free: 3.5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.008707, allocations: 314.8 kB / 444.8 MB, free: 3.184 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.429e-05/0.008732, allocations: 29.7 kB / 444.9 MB, free: 3.148 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.934e-05/0.008751, allocations: 33.58 kB / 444.9 MB, free: 3.109 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.79e-05/0.008809, allocations: 68.19 kB / 445 MB, free: 3.027 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.00881, allocations: 0 / 445 MB, free: 3.027 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.791e-05/0.008908, allocations: 93.17 kB / 445 MB, free: 2.918 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.217e-05/0.00894, allocations: 29.7 kB / 445.1 MB, free: 2.883 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.008944, allocations: 0 / 445.1 MB, free: 2.883 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.008963, allocations: 7.969 kB / 445.1 MB, free: 2.875 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-07/0.008964, allocations: 4 kB / 445.1 MB, free: 2.871 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.008969, allocations: 3.938 kB / 445.1 MB, free: 2.867 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.346e-05/0.008982, allocations: 0 / 445.1 MB, free: 2.867 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.039e-06/0.008987, allocations: 0 / 445.1 MB, free: 2.867 MB / 366.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 9.685e-05/0.009084, allocations: 135.5 kB / 445.2 MB, free: 2.719 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.344e-06/0.009092, allocations: 0 / 445.2 MB, free: 2.719 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.958e-06/0.009102, allocations: 3.031 kB / 445.2 MB, free: 2.715 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.009103, allocations: 4 kB / 445.2 MB, free: 2.711 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.009106, allocations: 0 / 445.2 MB, free: 2.711 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.00911, allocations: 3.938 kB / 445.2 MB, free: 2.707 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.829e-05/0.009188, allocations: 105.3 kB / 445.3 MB, free: 2.574 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.009189, allocations: 0 / 445.3 MB, free: 2.574 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.009189, allocations: 0 / 445.3 MB, free: 2.574 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.011e-06/0.00919, allocations: 0 / 445.3 MB, free: 2.574 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.56e-06/0.009196, allocations: 0 / 445.3 MB, free: 2.574 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.736e-06/0.009198, allocations: 7.938 kB / 445.3 MB, free: 2.566 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.009199, allocations: 0 / 445.3 MB, free: 2.566 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001257/0.009325, allocations: 124.5 kB / 445.5 MB, free: 2.414 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.973e-06/0.009332, allocations: 8 kB / 445.5 MB, free: 2.406 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.056e-05/0.009342, allocations: 0 / 445.5 MB, free: 2.406 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.115e-06/0.00935, allocations: 0 / 445.5 MB, free: 2.406 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.174e-05/0.009362, allocations: 4 kB / 445.5 MB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-06/0.009365, allocations: 0 / 445.5 MB, free: 2.402 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.555e-05/0.0094, allocations: 79.22 kB / 445.6 MB, free: 2.324 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.0094, allocations: 0 / 445.6 MB, free: 2.324 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003042/0.009704, allocations: 63.8 kB / 445.6 MB, free: 2.262 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.0004763/0.01018, allocations: 207.3 kB / 445.8 MB, free: 2.055 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001321/0.01031, allocations: 118.7 kB / 445.9 MB, free: 1.914 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.01031, allocations: 0 / 445.9 MB, free: 1.914 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.382e-05/0.01037, allocations: 85.11 kB / 446 MB, free: 1.812 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001154/0.01048, allocations: 0 / 446 MB, free: 1.812 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001925/0.01068, allocations: 106.7 kB / 446.1 MB, free: 1.676 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.593e-05/0.01072, allocations: 59.36 kB / 446.2 MB, free: 1.598 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.589e-06/0.01073, allocations: 0 / 446.2 MB, free: 1.598 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.122e-05/0.01074, allocations: 8.5 kB / 446.2 MB, free: 1.59 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.01074, allocations: 0 / 446.2 MB, free: 1.59 MB / 366.1 MB Notification: Performance of Templates: time 0.1577/0.1684, allocations: 1.645 MB / 447.8 MB, free: 21.77 MB / 366.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/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.553522288799286]