Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001214/0.001214, allocations: 95.5 kB / 21.19 MB, free: 3.367 MB / 18.57 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.004665/0.004665, allocations: 156.5 kB / 24.55 MB, free: 12 kB / 18.57 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.006/1.006, allocations: 177 MB / 204.8 MB, free: 5.566 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2364/0.2364, allocations: 34.86 MB / 296.3 MB, free: 0.5312 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest.Math.TestPolynomials") translateModel(ModelicaTest.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.176e-06/3.176e-06, allocations: 3.984 kB / 378.7 MB, free: 2.102 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.093e-05/2.411e-05, allocations: 2.312 kB / 378.7 MB, free: 2.098 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.000961/0.0009851, allocations: 0.4996 MB / 379.2 MB, free: 1.598 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001814/0.0028, allocations: 1.783 MB / 381 MB, free: 15.79 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.572e-05/0.002815, allocations: 0 / 381 MB, free: 15.79 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 1.989e-05/0.002835, allocations: 0 / 381 MB, free: 15.79 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 6.703e-06/0.002842, allocations: 0 / 381 MB, free: 15.79 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0008622/0.003704, allocations: 258.9 kB / 381.3 MB, free: 15.54 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 5.062e-05/0.003755, allocations: 3.984 kB / 381.3 MB, free: 15.54 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.183e-05/0.003787, allocations: 3.938 kB / 381.3 MB, free: 15.53 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.948e-05/0.003816, allocations: 4 kB / 381.3 MB, free: 15.53 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.881e-05/0.003835, allocations: 0 / 381.3 MB, free: 15.53 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 8.326e-06/0.003843, allocations: 3.984 kB / 381.3 MB, free: 15.52 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005726/0.004416, allocations: 454.9 kB / 381.7 MB, free: 15.08 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.05e-05/0.004426, allocations: 0 / 381.7 MB, free: 15.08 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.368e-05/0.00445, allocations: 0 / 381.7 MB, free: 15.08 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004103/0.00486, allocations: 343.1 kB / 382.1 MB, free: 14.74 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.004863, allocations: 3.984 kB / 382.1 MB, free: 14.74 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.004864, allocations: 0 / 382.1 MB, free: 14.74 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.84e-06/0.004869, allocations: 0 / 382.1 MB, free: 14.74 MB / 362.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.0003998/0.005269, allocations: 413.6 kB / 382.5 MB, free: 14.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.005312, allocations: 8.031 kB / 382.5 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.005e-05/0.005362, allocations: 0.9375 kB / 382.5 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.74e-05/0.005439, allocations: 104.6 kB / 382.6 MB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.409e-05/0.005453, allocations: 8.375 kB / 382.6 MB, free: 14.15 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.166e-05/0.005465, allocations: 4.312 kB / 382.6 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001109/0.005576, allocations: 67.89 kB / 382.7 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.005584, allocations: 192 / 382.7 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.005595, allocations: 384 / 382.7 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.005606, allocations: 3.938 kB / 382.7 MB, free: 14.06 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.082e-05/0.005626, allocations: 25.7 kB / 382.7 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001013/0.005728, allocations: 108.6 kB / 382.8 MB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.749e-05/0.005785, allocations: 52.75 kB / 382.9 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.584e-05/0.005811, allocations: 37.48 kB / 382.9 MB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.011e-06/0.005817, allocations: 7.938 kB / 382.9 MB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.461e-05/0.005862, allocations: 67.09 kB / 383 MB, free: 13.68 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.005863, allocations: 0 / 383 MB, free: 13.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001677/0.006031, allocations: 118.8 kB / 383.1 MB, free: 13.54 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/0.006069, allocations: 81.05 kB / 383.2 MB, free: 13.45 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.981e-05/0.006109, allocations: 142.2 kB / 383.3 MB, free: 13.29 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.394e-05/0.006123, allocations: 25.7 kB / 383.3 MB, free: 13.26 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.953e-05/0.006153, allocations: 126.9 kB / 383.5 MB, free: 13.13 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.784e-05/0.00617, allocations: 352 / 383.5 MB, free: 13.13 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.59e-05/0.006196, allocations: 23.38 kB / 383.5 MB, free: 13.1 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.006302, allocations: 496.2 kB / 384 MB, free: 12.61 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.864e-05/0.006321, allocations: 29.7 kB / 384 MB, free: 12.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.512e-05/0.006336, allocations: 33.62 kB / 384 MB, free: 12.53 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.008e-05/0.006376, allocations: 63.09 kB / 384.1 MB, free: 12.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.006378, allocations: 0 / 384.1 MB, free: 12.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.524e-05/0.006433, allocations: 93.06 kB / 384.2 MB, free: 12.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.504e-05/0.006458, allocations: 33.69 kB / 384.2 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.006463, allocations: 0 / 384.2 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.006475, allocations: 0 / 384.2 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.948e-06/0.006479, allocations: 4.094 kB / 384.2 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.006484, allocations: 7.938 kB / 384.2 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.247e-06/0.006493, allocations: 0 / 384.2 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.201e-06/0.0065, allocations: 0 / 384.2 MB, free: 12.29 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 6.507e-05/0.006565, allocations: 186.2 kB / 384.4 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.028e-06/0.006569, allocations: 0 / 384.4 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.933e-06/0.006576, allocations: 3 kB / 384.4 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.006577, allocations: 0 / 384.4 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.00658, allocations: 3.938 kB / 384.4 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.006585, allocations: 11.92 kB / 384.4 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.268e-05/0.006638, allocations: 108.6 kB / 384.5 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-07/0.006638, allocations: 4 kB / 384.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.006639, allocations: 0 / 384.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-06/0.00664, allocations: 0 / 384.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.063e-06/0.006647, allocations: 4 kB / 384.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.91e-07/0.006647, allocations: 0 / 384.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.006648, allocations: 0 / 384.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.268e-05/0.006721, allocations: 127.8 kB / 384.7 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.779e-06/0.006726, allocations: 4 kB / 384.7 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.349e-05/0.006739, allocations: 4 kB / 384.7 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.037e-06/0.006743, allocations: 0 / 384.7 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.161e-05/0.006755, allocations: 4.031 kB / 384.7 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.906e-06/0.006758, allocations: 7.922 kB / 384.7 MB, free: 11.75 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.846e-05/0.006786, allocations: 123.1 kB / 384.8 MB, free: 11.63 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006786, allocations: 0 / 384.8 MB, free: 11.63 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002169/0.007003, allocations: 63.81 kB / 384.9 MB, free: 11.57 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.000363/0.007366, allocations: 208.2 kB / 385.1 MB, free: 11.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.804e-05/0.007464, allocations: 122.5 kB / 385.2 MB, free: 11.21 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.007466, allocations: 0 / 385.2 MB, free: 11.21 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.946e-05/0.007495, allocations: 92.8 kB / 385.3 MB, free: 11.1 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.457e-05/0.00758, allocations: 0 / 385.3 MB, free: 11.1 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000173/0.007753, allocations: 113.6 kB / 385.4 MB, free: 10.95 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.964e-05/0.007783, allocations: 59.3 kB / 385.4 MB, free: 10.87 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.209e-06/0.007788, allocations: 0 / 385.4 MB, free: 10.87 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.137e-05/0.007799, allocations: 8.625 kB / 385.5 MB, free: 10.86 MB / 362.7 MB Notification: Performance of SimCode: time 6.42e-07/0.0078, allocations: 4 kB / 385.5 MB, free: 10.86 MB / 362.7 MB Notification: Performance of Templates: time 0.003791/0.01159, allocations: 1.915 MB / 387.4 MB, free: 8.949 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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: 3.00322133814916]