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.001028/0.001028, allocations: 78.66 kB / 21.42 MB, free: 3.074 MB / 18.57 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.001622/0.001622, allocations: 170.3 kB / 24.82 MB, free: 9.266 MB / 18.57 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.032/1.032, allocations: 177.1 MB / 205.3 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] 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.242/0.242, allocations: 32.8 MB / 294.6 MB, free: 1.238 MB / 266.7 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 1.412e-06/1.412e-06, allocations: 0 / 376.4 MB, free: 4.43 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.883e-05/3.025e-05, allocations: 9.484 kB / 376.5 MB, free: 4.422 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001606/0.001636, allocations: 0.5085 MB / 377 MB, free: 3.91 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002486/0.004122, allocations: 1.767 MB / 378.7 MB, free: 2.121 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.249e-05/0.004145, allocations: 0 / 378.7 MB, free: 2.121 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.923e-05/0.004164, allocations: 0 / 378.7 MB, free: 2.121 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.204e-06/0.004171, allocations: 0 / 378.7 MB, free: 2.121 MB / 346.7 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.001012/0.005183, allocations: 259 kB / 379 MB, free: 1.867 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.721e-05/0.005231, allocations: 0 / 379 MB, free: 1.867 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.922e-05/0.00527, allocations: 3.984 kB / 379 MB, free: 1.863 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.241e-05/0.005302, allocations: 4 kB / 379 MB, free: 1.859 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.773e-05/0.00532, allocations: 0 / 379 MB, free: 1.859 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.486e-06/0.005329, allocations: 0 / 379 MB, free: 1.859 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007419/0.006071, allocations: 455 kB / 379.4 MB, free: 1.414 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.839e-06/0.006075, allocations: 0 / 379.4 MB, free: 1.414 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 8.616e-06/0.006084, allocations: 4 kB / 379.4 MB, free: 1.41 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004709/0.006555, allocations: 347 kB / 379.8 MB, free: 1.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.006557, allocations: 0 / 379.8 MB, free: 1.07 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.006558, allocations: 4 kB / 379.8 MB, free: 1.066 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.826e-06/0.006561, allocations: 0 / 379.8 MB, free: 1.066 MB / 346.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.0002478/0.006809, allocations: 417.5 kB / 380.2 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.774e-05/0.006836, allocations: 8.031 kB / 380.2 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.769e-05/0.006854, allocations: 4.938 kB / 380.2 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.5e-05/0.006899, allocations: 104.6 kB / 380.3 MB, free: 488 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.991e-06/0.006905, allocations: 4.375 kB / 380.3 MB, free: 484 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.767e-06/0.006909, allocations: 384 / 380.3 MB, free: 484 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001223/0.007031, allocations: 59.91 kB / 380.4 MB, free: 412 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.809e-06/0.007036, allocations: 4.172 kB / 380.4 MB, free: 408 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.336e-06/0.007039, allocations: 384 / 380.4 MB, free: 408 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.166e-06/0.007042, allocations: 3.938 kB / 380.4 MB, free: 404 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.678e-05/0.007059, allocations: 29.7 kB / 380.4 MB, free: 368 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.272e-05/0.007122, allocations: 93.27 kB / 380.5 MB, free: 248 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.405e-05/0.007156, allocations: 52.8 kB / 380.6 MB, free: 176 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.878e-05/0.007175, allocations: 33.39 kB / 380.6 MB, free: 132 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.415e-06/0.007177, allocations: 4 kB / 380.6 MB, free: 128 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.128e-05/0.007209, allocations: 71.08 kB / 380.7 MB, free: 40 kB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 6.91e-07/0.007209, allocations: 0 / 380.7 MB, free: 40 kB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001578/0.007367, allocations: 110.8 kB / 380.8 MB, free: 15.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.896e-05/0.007396, allocations: 81.11 kB / 380.8 MB, free: 15.81 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.96e-05/0.007436, allocations: 146.2 kB / 381 MB, free: 15.65 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.768e-06/0.007445, allocations: 29.69 kB / 381 MB, free: 15.62 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.016e-05/0.007475, allocations: 130.9 kB / 381.1 MB, free: 15.48 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.335e-06/0.007484, allocations: 352 / 381.1 MB, free: 15.48 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.831e-05/0.007502, allocations: 15.38 kB / 381.2 MB, free: 15.46 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.007609, allocations: 0.4924 MB / 381.7 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.149e-05/0.007621, allocations: 29.7 kB / 381.7 MB, free: 14.92 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.014e-05/0.007631, allocations: 25.7 kB / 381.7 MB, free: 14.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.883e-05/0.00766, allocations: 67.03 kB / 381.8 MB, free: 14.81 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.007661, allocations: 0 / 381.8 MB, free: 14.81 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.87e-05/0.007709, allocations: 101 kB / 381.9 MB, free: 14.69 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.007731, allocations: 33.7 kB / 381.9 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.094e-06/0.007733, allocations: 0 / 381.9 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.578e-06/0.007737, allocations: 4 kB / 381.9 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.31e-07/0.007738, allocations: 4.094 kB / 381.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-06/0.007739, allocations: 0 / 381.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.906e-06/0.007748, allocations: 3.938 kB / 381.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.555e-06/0.007751, allocations: 0 / 381.9 MB, free: 14.64 MB / 362.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.646e-05/0.007807, allocations: 186.3 kB / 382.1 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.958e-06/0.007811, allocations: 0 / 382.1 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.141e-06/0.007817, allocations: 3 kB / 382.1 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.007819, allocations: 4 kB / 382.1 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.71e-07/0.007819, allocations: 3.938 kB / 382.1 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.302e-06/0.007821, allocations: 0 / 382.1 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.84e-05/0.007869, allocations: 97.2 kB / 382.2 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.21e-07/0.00787, allocations: 0 / 382.2 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.7e-07/0.00787, allocations: 0 / 382.2 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.432e-06/0.007871, allocations: 3.984 kB / 382.2 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-06/0.007873, allocations: 4 kB / 382.2 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.71e-07/0.007874, allocations: 0 / 382.2 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.71e-07/0.007874, allocations: 0 / 382.2 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6e-05/0.007934, allocations: 135.8 kB / 382.3 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.585e-06/0.007937, allocations: 0 / 382.3 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.342e-06/0.007943, allocations: 4 kB / 382.3 MB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.218e-06/0.007947, allocations: 0 / 382.3 MB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.088e-06/0.007951, allocations: 4.031 kB / 382.3 MB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.22e-07/0.007952, allocations: 0 / 382.3 MB, free: 14.13 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.694e-05/0.007979, allocations: 119.2 kB / 382.5 MB, free: 14.01 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.007979, allocations: 0 / 382.5 MB, free: 14.01 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001886/0.008168, allocations: 67.8 kB / 382.5 MB, free: 13.95 MB / 362.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 (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.0002812/0.008449, allocations: 213.3 kB / 382.7 MB, free: 13.74 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 6.443e-05/0.008513, allocations: 118.5 kB / 382.9 MB, free: 13.59 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.12e-07/0.008514, allocations: 0 / 382.9 MB, free: 13.59 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.906e-05/0.008553, allocations: 88.8 kB / 382.9 MB, free: 13.48 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.382e-05/0.008627, allocations: 13.81 kB / 383 MB, free: 13.47 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001027/0.00873, allocations: 109.7 kB / 383.1 MB, free: 13.33 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.795e-05/0.008758, allocations: 55.34 kB / 383.1 MB, free: 13.25 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.48e-06/0.008763, allocations: 0 / 383.1 MB, free: 13.25 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.978e-05/0.008803, allocations: 70.33 kB / 383.2 MB, free: 13.18 MB / 362.7 MB Notification: Performance of SimCode: time 4.01e-07/0.008804, allocations: 4 kB / 383.2 MB, free: 13.18 MB / 362.7 MB Notification: Performance of Templates: time 0.002945/0.01175, allocations: 1.928 MB / 385.1 MB, free: 11.25 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.887396425008774]