Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0017/0.0017, allocations: 117.2 kB / 18.5 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001796/0.001796, allocations: 202.6 kB / 21.45 MB, free: 1.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 230.2 MB / 254.5 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2422/0.2422, allocations: 46.89 MB / 357.4 MB, free: 10.51 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials") translateModel(ModelicaTest.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002351/0.002351, allocations: 83.86 kB / 0.4917 GB, free: 8.047 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1462/0.1486, allocations: 65.98 MB / 0.5561 GB, free: 5.938 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001659/0.1502, allocations: 0.4891 MB / 0.5566 GB, free: 5.441 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002895/0.1531, allocations: 1.801 MB / 0.5583 GB, free: 3.621 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.84e-05/0.1532, allocations: 0 / 0.5583 GB, free: 3.621 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 2.729e-05/0.1532, allocations: 3.938 kB / 0.5584 GB, free: 3.617 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 8.405e-06/0.1532, allocations: 0 / 0.5584 GB, free: 3.617 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.001128/0.1543, allocations: 238.3 kB / 0.5586 GB, free: 3.387 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.592e-05/0.1544, allocations: 0 / 0.5586 GB, free: 3.387 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.018e-05/0.1544, allocations: 11.97 kB / 0.5586 GB, free: 3.375 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.029e-05/0.1545, allocations: 0 / 0.5586 GB, free: 3.375 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.029e-05/0.1545, allocations: 0 / 0.5586 GB, free: 3.375 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.588e-06/0.1545, allocations: 3.984 kB / 0.5586 GB, free: 3.371 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007372/0.1552, allocations: 427.2 kB / 0.559 GB, free: 2.953 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.187e-06/0.1552, allocations: 0 / 0.559 GB, free: 2.953 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.683e-05/0.1553, allocations: 3.984 kB / 0.559 GB, free: 2.949 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004995/0.1558, allocations: 307.2 kB / 0.5593 GB, free: 2.648 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.1558, allocations: 3.984 kB / 0.5593 GB, free: 2.645 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1558, allocations: 0 / 0.5593 GB, free: 2.645 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.1558, allocations: 0 / 0.5593 GB, free: 2.645 MB / 414.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.0005533/0.1563, allocations: 388.7 kB / 0.5597 GB, free: 2.211 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.1564, allocations: 8.031 kB / 0.5597 GB, free: 2.203 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.937e-05/0.1564, allocations: 4.938 kB / 0.5597 GB, free: 2.199 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001512/0.1566, allocations: 164.4 kB / 0.5598 GB, free: 2 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.1566, allocations: 384 / 0.5598 GB, free: 2 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.388e-05/0.1566, allocations: 384 / 0.5598 GB, free: 2 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001248/0.1567, allocations: 42.02 kB / 0.5599 GB, free: 1.953 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.1567, allocations: 3.938 kB / 0.5599 GB, free: 1.949 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.717e-06/0.1567, allocations: 0 / 0.5599 GB, free: 1.949 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.1568, allocations: 0 / 0.5599 GB, free: 1.949 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.878e-05/0.1568, allocations: 0 / 0.5599 GB, free: 1.949 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001673/0.1569, allocations: 145.7 kB / 0.56 GB, free: 1.758 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.997e-05/0.157, allocations: 18.56 kB / 0.56 GB, free: 1.73 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.158e-05/0.157, allocations: 8.859 kB / 0.5601 GB, free: 1.719 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.202e-05/0.157, allocations: 3.938 kB / 0.5601 GB, free: 1.715 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.863e-05/0.1571, allocations: 72.3 kB / 0.5601 GB, free: 1.629 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.1571, allocations: 0 / 0.5601 GB, free: 1.629 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002347/0.1574, allocations: 67.33 kB / 0.5602 GB, free: 1.551 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001463/0.1575, allocations: 77.11 kB / 0.5603 GB, free: 1.457 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.467e-05/0.1576, allocations: 93.81 kB / 0.5604 GB, free: 1.355 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.955e-05/0.1576, allocations: 25.7 kB / 0.5604 GB, free: 1.324 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.276e-05/0.1576, allocations: 84.27 kB / 0.5605 GB, free: 1.238 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.06e-05/0.1577, allocations: 0 / 0.5605 GB, free: 1.238 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.35e-05/0.1577, allocations: 17.72 kB / 0.5605 GB, free: 1.215 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.1578, allocations: 310.8 kB / 0.5608 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.898e-06/0.1579, allocations: 0 / 0.5608 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.715e-06/0.1579, allocations: 4 kB / 0.5608 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.211e-05/0.1579, allocations: 64.19 kB / 0.5608 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1579, allocations: 8 kB / 0.5608 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.187e-05/0.158, allocations: 63.41 kB / 0.5609 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.405e-05/0.1581, allocations: 37.64 kB / 0.5609 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.1581, allocations: 0 / 0.5609 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.1581, allocations: 0 / 0.5609 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.71e-07/0.1581, allocations: 0 / 0.5609 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.1581, allocations: 0 / 0.5609 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.782e-05/0.1581, allocations: 0 / 0.5609 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.305e-06/0.1581, allocations: 0 / 0.5609 GB, free: 0.6953 MB / 414.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.0001197/0.1582, allocations: 143.6 kB / 0.5611 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.648e-06/0.1582, allocations: 3.938 kB / 0.5611 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.588e-06/0.1583, allocations: 3.125 kB / 0.5611 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.1583, allocations: 0 / 0.5611 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1583, allocations: 4 kB / 0.5611 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.1583, allocations: 0 / 0.5611 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001308/0.1584, allocations: 145.7 kB / 0.5612 GB, free: 348 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.1584, allocations: 0 / 0.5612 GB, free: 348 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.81e-07/0.1584, allocations: 0 / 0.5612 GB, free: 348 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.1584, allocations: 3.938 kB / 0.5612 GB, free: 344 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/0.1584, allocations: 8 kB / 0.5612 GB, free: 336 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.1584, allocations: 7.938 kB / 0.5612 GB, free: 328 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.1584, allocations: 0 / 0.5612 GB, free: 328 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001149/0.1585, allocations: 90.77 kB / 0.5613 GB, free: 212 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.729e-05/0.1586, allocations: 81.11 kB / 0.5614 GB, free: 112 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.647e-05/0.1586, allocations: 3.938 kB / 0.5614 GB, free: 108 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.897e-06/0.1586, allocations: 0 / 0.5614 GB, free: 108 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.945e-05/0.1586, allocations: 0 / 0.5614 GB, free: 108 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.759e-06/0.1586, allocations: 8.031 kB / 0.5614 GB, free: 100 kB / 414.1 MB Notification: Performance of sorting global known variables: time 5.575e-05/0.1587, allocations: 75.28 kB / 0.5615 GB, free: 24 kB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1587, allocations: 0 / 0.5615 GB, free: 24 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003894/0.1591, allocations: 63.84 kB / 0.5616 GB, free: 15.96 MB / 430.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.000563/0.1596, allocations: 196.9 kB / 0.5617 GB, free: 15.76 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001407/0.1598, allocations: 63.34 kB / 0.5618 GB, free: 15.69 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1598, allocations: 0 / 0.5618 GB, free: 15.69 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.337e-05/0.1598, allocations: 63.39 kB / 0.5619 GB, free: 15.61 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001426/0.16, allocations: 3.719 kB / 0.5619 GB, free: 15.61 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002537/0.1602, allocations: 81.06 kB / 0.5619 GB, free: 15.51 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003583/0.1606, allocations: 0.6729 MB / 0.5626 GB, free: 14.81 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.713e-06/0.1606, allocations: 0 / 0.5626 GB, free: 14.81 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.506e-05/0.1606, allocations: 11.56 kB / 0.5626 GB, free: 14.8 MB / 430.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1606, allocations: 0 / 0.5626 GB, free: 14.8 MB / 430.1 MB Notification: Performance of Templates: time 0.005345/0.1659, allocations: 1.623 MB / 0.5642 GB, free: 13.17 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestPolynomials/TestPolynomials.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 5.094189064577222]