Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.00136/0.00136, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001393/0.001393, allocations: 168.4 kB / 24.91 MB, free: 8.262 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 0.9479/0.9479, allocations: 177.1 MB / 205.3 MB, free: 5.457 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2616/0.2616, allocations: 34.25 MB / 296.1 MB, free: 0.7305 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Math.TestPolynomials") translateModel(ModelicaTest.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 325.2 MB, free: 7.734 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.209e-05/1.367e-05, allocations: 3.156 kB / 325.2 MB, free: 7.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.0008536/0.0008672, allocations: 0.5042 MB / 325.7 MB, free: 7.227 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001679/0.002547, allocations: 1.783 MB / 327.5 MB, free: 5.422 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.177e-06/0.002556, allocations: 0 / 327.5 MB, free: 5.422 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.376e-06/0.002564, allocations: 0 / 327.5 MB, free: 5.422 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.897e-06/0.002568, allocations: 0 / 327.5 MB, free: 5.422 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.0006138/0.003182, allocations: 259 kB / 327.8 MB, free: 5.168 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.292e-05/0.003215, allocations: 8.594 kB / 327.8 MB, free: 5.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.459e-05/0.003239, allocations: 4 kB / 327.8 MB, free: 5.156 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.839e-05/0.003258, allocations: 0 / 327.8 MB, free: 5.156 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.209e-05/0.00327, allocations: 0 / 327.8 MB, free: 5.156 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.2e-06/0.003275, allocations: 4 kB / 327.8 MB, free: 5.152 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004539/0.003729, allocations: 450.9 kB / 328.2 MB, free: 4.711 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.512e-06/0.003735, allocations: 7.984 kB / 328.2 MB, free: 4.703 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.656e-06/0.003744, allocations: 0 / 328.2 MB, free: 4.703 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003021/0.004046, allocations: 351.5 kB / 328.6 MB, free: 4.359 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.262e-06/0.004047, allocations: 0 / 328.6 MB, free: 4.359 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.01e-07/0.004048, allocations: 0 / 328.6 MB, free: 4.359 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.916e-06/0.004051, allocations: 0 / 328.6 MB, free: 4.359 MB / 298.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.0001894/0.00424, allocations: 285.9 kB / 328.8 MB, free: 4.051 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.538e-05/0.004266, allocations: 12.03 kB / 328.8 MB, free: 4.039 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.494e-05/0.00428, allocations: 0.9375 kB / 328.8 MB, free: 4.039 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.008e-05/0.004321, allocations: 105.8 kB / 329 MB, free: 3.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.464e-06/0.004328, allocations: 384 / 329 MB, free: 3.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.172e-06/0.004334, allocations: 4.375 kB / 329 MB, free: 3.906 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.881e-05/0.004383, allocations: 59.95 kB / 329 MB, free: 3.836 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.468e-06/0.004387, allocations: 4.125 kB / 329 MB, free: 3.832 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.839e-06/0.004392, allocations: 4.375 kB / 329 MB, free: 3.828 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.004397, allocations: 3.938 kB / 329 MB, free: 3.824 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.078e-05/0.004408, allocations: 25.7 kB / 329.1 MB, free: 3.793 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 4.934e-05/0.004457, allocations: 57.05 kB / 329.1 MB, free: 3.723 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.142e-05/0.004489, allocations: 48.22 kB / 329.2 MB, free: 3.66 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.54e-05/0.004504, allocations: 42.64 kB / 329.2 MB, free: 3.609 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.605e-06/0.004507, allocations: 0 / 329.2 MB, free: 3.609 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.004531, allocations: 56.27 kB / 329.3 MB, free: 3.539 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 5.01e-07/0.004531, allocations: 0 / 329.3 MB, free: 3.539 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 7.147e-05/0.004603, allocations: 118.8 kB / 329.4 MB, free: 3.398 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.797e-05/0.004631, allocations: 81.09 kB / 329.4 MB, free: 3.301 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.523e-05/0.004656, allocations: 89.86 kB / 329.5 MB, free: 3.203 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.552e-06/0.004662, allocations: 25.7 kB / 329.6 MB, free: 3.172 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.89e-05/0.004681, allocations: 84.14 kB / 329.6 MB, free: 3.086 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.064e-05/0.004692, allocations: 1.5 kB / 329.6 MB, free: 3.086 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.529e-05/0.004707, allocations: 13.72 kB / 329.7 MB, free: 3.066 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.418e-05/0.004771, allocations: 322.8 kB / 330 MB, free: 2.742 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.06e-05/0.004782, allocations: 25.7 kB / 330 MB, free: 2.711 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.017e-05/0.004792, allocations: 25.7 kB / 330 MB, free: 2.68 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.073e-05/0.004823, allocations: 68.19 kB / 330.1 MB, free: 2.598 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.004824, allocations: 0 / 330.1 MB, free: 2.598 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.586e-05/0.00486, allocations: 85.11 kB / 330.2 MB, free: 2.496 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.004878, allocations: 29.7 kB / 330.2 MB, free: 2.461 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.186e-06/0.004881, allocations: 0 / 330.2 MB, free: 2.461 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.452e-06/0.004888, allocations: 4.094 kB / 330.2 MB, free: 2.457 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.377e-06/0.004891, allocations: 3.984 kB / 330.2 MB, free: 2.453 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.164e-06/0.004893, allocations: 0 / 330.2 MB, free: 2.453 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.566e-06/0.004902, allocations: 4 kB / 330.2 MB, free: 2.449 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.968e-06/0.004906, allocations: 3.938 kB / 330.2 MB, free: 2.445 MB / 298.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 4.658e-05/0.004952, allocations: 135.5 kB / 330.4 MB, free: 2.297 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.787e-06/0.004956, allocations: 4 kB / 330.4 MB, free: 2.293 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.13e-06/0.004961, allocations: 3 kB / 330.4 MB, free: 2.293 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.72e-07/0.004962, allocations: 0 / 330.4 MB, free: 2.293 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-06/0.004963, allocations: 0 / 330.4 MB, free: 2.293 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.004966, allocations: 7.984 kB / 330.4 MB, free: 2.285 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.668e-05/0.005003, allocations: 69.83 kB / 330.4 MB, free: 2.199 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-07/0.005003, allocations: 3.938 kB / 330.4 MB, free: 2.195 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.011e-06/0.005004, allocations: 4 kB / 330.4 MB, free: 2.191 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-07/0.005005, allocations: 0 / 330.4 MB, free: 2.191 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.605e-06/0.005007, allocations: 0 / 330.4 MB, free: 2.191 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.51e-07/0.005008, allocations: 3.938 kB / 330.4 MB, free: 2.188 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.00501, allocations: 4 kB / 330.4 MB, free: 2.184 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.572e-05/0.005056, allocations: 112.5 kB / 330.6 MB, free: 2.043 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.266e-06/0.005059, allocations: 4.344 kB / 330.6 MB, free: 2.039 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.845e-06/0.005067, allocations: 4.031 kB / 330.6 MB, free: 2.035 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.027e-06/0.005071, allocations: 4 kB / 330.6 MB, free: 2.031 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.162e-06/0.005077, allocations: 0 / 330.6 MB, free: 2.031 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.132e-06/0.005078, allocations: 0 / 330.6 MB, free: 2.031 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.338e-06/0.005083, allocations: 4.859 kB / 330.6 MB, free: 2.023 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005083, allocations: 0 / 330.6 MB, free: 2.023 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001579/0.005241, allocations: 67.8 kB / 330.6 MB, free: 1.957 MB / 298.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.0002757/0.005516, allocations: 192.3 kB / 330.8 MB, free: 1.777 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 6.507e-05/0.005581, allocations: 127.6 kB / 331 MB, free: 1.625 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.392e-06/0.005583, allocations: 0 / 331 MB, free: 1.625 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.414e-05/0.005607, allocations: 85.97 kB / 331 MB, free: 1.52 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 3.1e-05/0.005638, allocations: 3.938 kB / 331 MB, free: 1.516 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001059/0.005744, allocations: 108.6 kB / 331.1 MB, free: 1.375 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.069e-05/0.005764, allocations: 51.36 kB / 331.2 MB, free: 1.305 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.168e-06/0.005769, allocations: 4.125 kB / 331.2 MB, free: 1.301 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.479e-05/0.005793, allocations: 55.38 kB / 331.3 MB, free: 1.246 MB / 298.7 MB Notification: Performance of SimCode: time 4.2e-07/0.005794, allocations: 0 / 331.3 MB, free: 1.246 MB / 298.7 MB Notification: Performance of Templates: time 0.00283/0.008624, allocations: 1.897 MB / 333.2 MB, free: 15.35 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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","",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.9068724950775504]