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.001427/0.001427, allocations: 84.73 kB / 21.5 MB, free: 2.988 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.00101/0.00101, allocations: 160.2 kB / 24.91 MB, free: 8.766 MB / 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.011/1.011, allocations: 177 MB / 205.2 MB, free: 5.07 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.2726/0.2726, allocations: 34.86 MB / 296.6 MB, free: 464 kB / 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 1.763e-06/1.763e-06, allocations: 0 / 325.9 MB, free: 7.141 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.547e-05/2.723e-05, allocations: 3.953 kB / 325.9 MB, free: 7.137 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001887/0.001914, allocations: 0.5441 MB / 326.5 MB, free: 6.594 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002636/0.00455, allocations: 1.784 MB / 328.3 MB, free: 4.789 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.928e-05/0.004569, allocations: 0 / 328.3 MB, free: 4.789 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.509e-05/0.004585, allocations: 0 / 328.3 MB, free: 4.789 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.753e-06/0.004591, allocations: 0 / 328.3 MB, free: 4.789 MB / 298.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.0008942/0.005486, allocations: 243 kB / 328.5 MB, free: 4.551 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.932e-05/0.005535, allocations: 4 kB / 328.5 MB, free: 4.547 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.431e-05/0.005569, allocations: 3.984 kB / 328.5 MB, free: 4.543 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.645e-05/0.005596, allocations: 0 / 328.5 MB, free: 4.543 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.689e-05/0.005613, allocations: 4 kB / 328.5 MB, free: 4.539 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.743e-06/0.005619, allocations: 0 / 328.5 MB, free: 4.539 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005484/0.006168, allocations: 470.9 kB / 329 MB, free: 4.078 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.033e-06/0.006175, allocations: 3.938 kB / 329 MB, free: 4.074 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.185e-05/0.006187, allocations: 0.5 kB / 329 MB, free: 4.074 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003411/0.006528, allocations: 351.1 kB / 329.3 MB, free: 3.727 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.006532, allocations: 0 / 329.3 MB, free: 3.727 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.006533, allocations: 7.938 kB / 329.3 MB, free: 3.719 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.498e-06/0.006538, allocations: 0 / 329.3 MB, free: 3.719 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.000249/0.006787, allocations: 278 kB / 329.6 MB, free: 3.418 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.006823, allocations: 12.03 kB / 329.6 MB, free: 3.406 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.402e-05/0.006847, allocations: 4.922 kB / 329.6 MB, free: 3.402 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.265e-05/0.006899, allocations: 109.7 kB / 329.7 MB, free: 3.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.315e-06/0.006908, allocations: 384 / 329.7 MB, free: 3.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.26e-06/0.006913, allocations: 4.375 kB / 329.7 MB, free: 3.266 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.374e-05/0.006977, allocations: 51.97 kB / 329.8 MB, free: 3.203 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.911e-06/0.006982, allocations: 192 / 329.8 MB, free: 3.203 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.781e-06/0.006988, allocations: 8.375 kB / 329.8 MB, free: 3.195 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.006993, allocations: 3.938 kB / 329.8 MB, free: 3.191 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.354e-05/0.007007, allocations: 29.69 kB / 329.8 MB, free: 3.156 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.066e-05/0.007067, allocations: 57.05 kB / 329.9 MB, free: 3.086 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.123e-05/0.007109, allocations: 52.22 kB / 329.9 MB, free: 3.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.582e-05/0.007124, allocations: 34.66 kB / 330 MB, free: 2.977 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-06/0.007127, allocations: 0 / 330 MB, free: 2.977 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.867e-05/0.007156, allocations: 56.27 kB / 330 MB, free: 2.906 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 6.32e-07/0.007156, allocations: 0 / 330 MB, free: 2.906 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 9.567e-05/0.007252, allocations: 114.9 kB / 330.1 MB, free: 2.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.13e-05/0.007283, allocations: 81.14 kB / 330.2 MB, free: 2.672 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.805e-05/0.007311, allocations: 93.8 kB / 330.3 MB, free: 2.57 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.633e-06/0.007318, allocations: 25.7 kB / 330.3 MB, free: 2.539 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.969e-05/0.007338, allocations: 88.08 kB / 330.4 MB, free: 2.449 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.453e-05/0.007352, allocations: 1.375 kB / 330.4 MB, free: 2.449 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.912e-05/0.007371, allocations: 13.72 kB / 330.4 MB, free: 2.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.134e-05/0.007443, allocations: 322.8 kB / 330.7 MB, free: 2.105 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.136e-05/0.007454, allocations: 25.7 kB / 330.8 MB, free: 2.074 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.07e-05/0.007465, allocations: 25.7 kB / 330.8 MB, free: 2.043 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.473e-05/0.0075, allocations: 68.31 kB / 330.9 MB, free: 1.961 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.007501, allocations: 0 / 330.9 MB, free: 1.961 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.542e-05/0.007547, allocations: 89.09 kB / 330.9 MB, free: 1.855 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.356e-05/0.00757, allocations: 29.7 kB / 331 MB, free: 1.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.007574, allocations: 0 / 331 MB, free: 1.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.337e-06/0.007583, allocations: 0 / 331 MB, free: 1.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.164e-06/0.007585, allocations: 3.938 kB / 331 MB, free: 1.816 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.214e-06/0.007588, allocations: 0 / 331 MB, free: 1.816 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.356e-06/0.007596, allocations: 4 kB / 331 MB, free: 1.812 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.44e-06/0.007601, allocations: 3.938 kB / 331 MB, free: 1.809 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 5.364e-05/0.007655, allocations: 139.6 kB / 331.1 MB, free: 1.656 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.999e-06/0.00766, allocations: 3.984 kB / 331.1 MB, free: 1.652 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.294e-06/0.007667, allocations: 3 kB / 331.1 MB, free: 1.652 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.007669, allocations: 0 / 331.1 MB, free: 1.652 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-06/0.00767, allocations: 0 / 331.1 MB, free: 1.652 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.007672, allocations: 0 / 331.1 MB, free: 1.652 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.961e-05/0.007711, allocations: 69.84 kB / 331.2 MB, free: 1.566 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.31e-07/0.007712, allocations: 0 / 331.2 MB, free: 1.566 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.373e-06/0.007713, allocations: 4 kB / 331.2 MB, free: 1.562 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.71e-07/0.007714, allocations: 0 / 331.2 MB, free: 1.562 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.176e-06/0.007717, allocations: 0 / 331.2 MB, free: 1.562 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.4e-07/0.007717, allocations: 4 kB / 331.2 MB, free: 1.559 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.007718, allocations: 4 kB / 331.2 MB, free: 1.555 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.779e-05/0.007776, allocations: 124.4 kB / 331.3 MB, free: 1.402 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.156e-06/0.007779, allocations: 352 / 331.3 MB, free: 1.402 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.031e-05/0.007789, allocations: 7.984 kB / 331.3 MB, free: 1.395 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.188e-06/0.007794, allocations: 0 / 331.3 MB, free: 1.395 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.815e-06/0.007801, allocations: 0 / 331.3 MB, free: 1.395 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.142e-06/0.007803, allocations: 3.938 kB / 331.3 MB, free: 1.391 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.493e-06/0.007809, allocations: 4.859 kB / 331.3 MB, free: 1.383 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007809, allocations: 0 / 331.3 MB, free: 1.383 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001725/0.007982, allocations: 71.83 kB / 331.4 MB, free: 1.312 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.0003148/0.008296, allocations: 184.3 kB / 331.6 MB, free: 1.141 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.499e-05/0.008371, allocations: 111.7 kB / 331.7 MB, free: 1.004 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.008373, allocations: 0 / 331.7 MB, free: 1.004 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.966e-05/0.008403, allocations: 102 kB / 331.8 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.184e-05/0.008445, allocations: 7.938 kB / 331.8 MB, free: 0.875 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001251/0.00857, allocations: 108.8 kB / 331.9 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.645e-05/0.008596, allocations: 51.36 kB / 332 MB, free: 0.6641 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.729e-06/0.008601, allocations: 0 / 332 MB, free: 0.6641 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.036e-05/0.008632, allocations: 55.36 kB / 332 MB, free: 0.6094 MB / 298.7 MB Notification: Performance of SimCode: time 5.11e-07/0.008632, allocations: 0 / 332 MB, free: 0.6094 MB / 298.7 MB Notification: Performance of Templates: time 0.003051/0.01168, allocations: 1.892 MB / 333.9 MB, free: 14.72 MB / 314.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 -s gbode -gbm=radauIIA3 -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: 2.9033253570087254]