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.00183/0.00183, allocations: 108.2 kB / 21.19 MB, free: 0.7812 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.001467/0.001467, allocations: 214.7 kB / 24.49 MB, free: 4.18 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.554/1.554, allocations: 230.6 MB / 258.3 MB, free: 7.992 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.2251/0.2251, allocations: 44.92 MB / 359.6 MB, free: 6.266 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.002592/0.002592, allocations: 63.89 kB / 0.4943 GB, free: 10.23 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3461/0.3487, allocations: 65.47 MB / 0.5582 GB, free: 7.539 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001605/0.3503, allocations: 499.8 kB / 0.5587 GB, free: 7.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002711/0.353, allocations: 1.82 MB / 0.5605 GB, free: 5.25 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.36e-05/0.353, allocations: 0 / 0.5605 GB, free: 5.25 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.128e-05/0.353, allocations: 0 / 0.5605 GB, free: 5.25 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.502e-05/0.353, allocations: 3.938 kB / 0.5605 GB, free: 5.246 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.001018/0.354, allocations: 251.2 kB / 0.5607 GB, free: 5 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.163e-05/0.3541, allocations: 7.984 kB / 0.5607 GB, free: 4.992 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.36e-05/0.3541, allocations: 4 kB / 0.5607 GB, free: 4.988 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.14e-05/0.3541, allocations: 4 kB / 0.5607 GB, free: 4.984 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.588e-05/0.3541, allocations: 0 / 0.5607 GB, free: 4.984 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.831e-06/0.3542, allocations: 0 / 0.5607 GB, free: 4.984 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008572/0.355, allocations: 0.499 MB / 0.5612 GB, free: 4.484 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.553e-06/0.355, allocations: 0 / 0.5612 GB, free: 4.484 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.042e-05/0.355, allocations: 4 kB / 0.5612 GB, free: 4.48 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004823/0.3555, allocations: 317.6 kB / 0.5615 GB, free: 4.176 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.3555, allocations: 0 / 0.5615 GB, free: 4.176 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3555, allocations: 4 kB / 0.5615 GB, free: 4.172 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.3555, allocations: 0 / 0.5615 GB, free: 4.172 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.0003992/0.3559, allocations: 319.5 kB / 0.5618 GB, free: 3.824 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.356, allocations: 8.031 kB / 0.5619 GB, free: 3.816 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.195e-05/0.356, allocations: 0.9375 kB / 0.5619 GB, free: 3.816 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.706e-05/0.3561, allocations: 106.5 kB / 0.562 GB, free: 3.688 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.3561, allocations: 4.375 kB / 0.562 GB, free: 3.684 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.019e-05/0.3561, allocations: 4.375 kB / 0.562 GB, free: 3.68 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.416e-05/0.3562, allocations: 31.03 kB / 0.562 GB, free: 3.645 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.3562, allocations: 4 kB / 0.562 GB, free: 3.641 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.696e-06/0.3562, allocations: 7.938 kB / 0.562 GB, free: 3.633 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.3562, allocations: 0 / 0.562 GB, free: 3.633 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.815e-05/0.3562, allocations: 0 / 0.562 GB, free: 3.633 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001453/0.3564, allocations: 120.8 kB / 0.5621 GB, free: 3.473 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.091e-05/0.3564, allocations: 18.61 kB / 0.5621 GB, free: 3.445 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.352e-05/0.3564, allocations: 4.859 kB / 0.5621 GB, free: 3.438 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.096e-05/0.3565, allocations: 7.938 kB / 0.5622 GB, free: 3.43 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.015e-05/0.3565, allocations: 64.27 kB / 0.5622 GB, free: 3.352 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.3565, allocations: 0 / 0.5622 GB, free: 3.352 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001644/0.3567, allocations: 75.31 kB / 0.5623 GB, free: 3.266 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.924e-05/0.3567, allocations: 77.11 kB / 0.5624 GB, free: 3.172 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.893e-05/0.3568, allocations: 93.81 kB / 0.5624 GB, free: 3.07 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.3568, allocations: 25.7 kB / 0.5625 GB, free: 3.039 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.475e-05/0.3569, allocations: 80.14 kB / 0.5625 GB, free: 2.957 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.769e-05/0.3569, allocations: 4.125 kB / 0.5626 GB, free: 2.953 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.111e-05/0.3569, allocations: 17.72 kB / 0.5626 GB, free: 2.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.3571, allocations: 314.8 kB / 0.5629 GB, free: 2.613 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.028e-05/0.3571, allocations: 0 / 0.5629 GB, free: 2.613 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.979e-06/0.3571, allocations: 0 / 0.5629 GB, free: 2.613 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.504e-05/0.3571, allocations: 68.19 kB / 0.5629 GB, free: 2.531 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.3571, allocations: 0 / 0.5629 GB, free: 2.531 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.382e-05/0.3572, allocations: 63.47 kB / 0.563 GB, free: 2.457 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.44e-05/0.3573, allocations: 33.64 kB / 0.563 GB, free: 2.418 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.3573, allocations: 7.984 kB / 0.563 GB, free: 2.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.3573, allocations: 0 / 0.563 GB, free: 2.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.62e-07/0.3573, allocations: 0 / 0.563 GB, free: 2.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.3573, allocations: 3.984 kB / 0.563 GB, free: 2.406 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.428e-05/0.3573, allocations: 0 / 0.563 GB, free: 2.406 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-06/0.3573, allocations: 4 kB / 0.563 GB, free: 2.402 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 9.244e-05/0.3574, allocations: 139.5 kB / 0.5632 GB, free: 2.25 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.277e-06/0.3574, allocations: 3.969 kB / 0.5632 GB, free: 2.246 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.947e-06/0.3574, allocations: 7 kB / 0.5632 GB, free: 2.238 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.3574, allocations: 0 / 0.5632 GB, free: 2.238 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.3574, allocations: 0 / 0.5632 GB, free: 2.238 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.3574, allocations: 7.938 kB / 0.5632 GB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001017/0.3575, allocations: 116.8 kB / 0.5633 GB, free: 2.074 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.3575, allocations: 0 / 0.5633 GB, free: 2.074 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.3575, allocations: 0 / 0.5633 GB, free: 2.074 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.3575, allocations: 3.938 kB / 0.5633 GB, free: 2.07 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.876e-06/0.3575, allocations: 4 kB / 0.5633 GB, free: 2.066 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.766e-06/0.3575, allocations: 3.938 kB / 0.5633 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3575, allocations: 4 kB / 0.5633 GB, free: 2.059 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001136/0.3577, allocations: 90.77 kB / 0.5634 GB, free: 1.945 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.957e-06/0.3577, allocations: 4 kB / 0.5634 GB, free: 1.941 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.585e-05/0.3577, allocations: 7.938 kB / 0.5634 GB, free: 1.934 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.546e-06/0.3577, allocations: 0 / 0.5634 GB, free: 1.934 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.362e-05/0.3577, allocations: 4 kB / 0.5634 GB, free: 1.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.69e-06/0.3577, allocations: 4 kB / 0.5634 GB, free: 1.926 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.242e-05/0.3577, allocations: 79.31 kB / 0.5635 GB, free: 1.848 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3577, allocations: 0 / 0.5635 GB, free: 1.848 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002893/0.358, allocations: 63.8 kB / 0.5636 GB, free: 1.785 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.000458/0.3585, allocations: 185.3 kB / 0.5637 GB, free: 1.598 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001043/0.3586, allocations: 63.34 kB / 0.5638 GB, free: 1.523 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3586, allocations: 0 / 0.5638 GB, free: 1.523 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.703e-05/0.3586, allocations: 59.39 kB / 0.5639 GB, free: 1.453 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001281/0.3588, allocations: 0 / 0.5639 GB, free: 1.453 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001944/0.359, allocations: 110.7 kB / 0.564 GB, free: 1.312 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.3593, allocations: 0.669 MB / 0.5646 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.303e-05/0.3593, allocations: 11.44 kB / 0.5646 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3593, allocations: 0 / 0.5646 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of Templates: time 0.003425/0.3627, allocations: 1.51 MB / 0.5661 GB, free: 15.09 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.349943213164806]