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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials") translateModel(ModelicaTest.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001036/0.001036, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001108/0.001109, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2254/0.2254, allocations: 46.1 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 76.56 kB / 419 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1196, allocations: 62.44 MB / 481.4 MB, free: 4.531 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001647/0.1213, allocations: 490.9 kB / 481.9 MB, free: 4.051 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00238/0.1237, allocations: 1.801 MB / 483.7 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.002e-05/0.1237, allocations: 0 / 483.7 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.278e-05/0.1238, allocations: 0 / 483.7 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.3e-06/0.1238, allocations: 0 / 483.7 MB, free: 2.23 MB / 350.1 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.0008906/0.1247, allocations: 223.3 kB / 483.9 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.213e-05/0.1247, allocations: 4 kB / 483.9 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.371e-05/0.1248, allocations: 4 kB / 483.9 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.918e-05/0.1248, allocations: 0 / 483.9 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.776e-05/0.1248, allocations: 3.938 kB / 484 MB, free: 2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.498e-06/0.1249, allocations: 0 / 484 MB, free: 2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005785/0.1254, allocations: 415.2 kB / 484.4 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.073e-06/0.1255, allocations: 0 / 484.4 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.867e-05/0.1255, allocations: 4 kB / 484.4 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004008/0.1259, allocations: 303.5 kB / 484.7 MB, free: 1.293 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1259, allocations: 0 / 484.7 MB, free: 1.293 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1259, allocations: 0 / 484.7 MB, free: 1.293 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.1259, allocations: 4 kB / 484.7 MB, free: 1.289 MB / 350.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.0003554/0.1263, allocations: 389.2 kB / 485 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.072e-05/0.1263, allocations: 8.031 kB / 485 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.614e-05/0.1263, allocations: 0.9375 kB / 485 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.589e-05/0.1264, allocations: 160.4 kB / 485.2 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.1264, allocations: 4.375 kB / 485.2 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.004e-05/0.1264, allocations: 384 / 485.2 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.755e-05/0.1265, allocations: 33.95 kB / 485.2 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.51e-06/0.1265, allocations: 4 kB / 485.2 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.965e-06/0.1266, allocations: 4 kB / 485.3 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.1266, allocations: 3.938 kB / 485.3 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.711e-05/0.1266, allocations: 4 kB / 485.3 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001182/0.1267, allocations: 149.7 kB / 485.4 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.751e-05/0.1268, allocations: 18.61 kB / 485.4 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.316e-05/0.1268, allocations: 8.797 kB / 485.4 MB, free: 368 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.823e-06/0.1268, allocations: 3.984 kB / 485.4 MB, free: 364 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.1268, allocations: 68.27 kB / 485.5 MB, free: 280 kB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.1268, allocations: 0 / 485.5 MB, free: 280 kB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001434/0.127, allocations: 63.39 kB / 485.6 MB, free: 204 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.381e-05/0.1271, allocations: 81.11 kB / 485.6 MB, free: 104 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.563e-05/0.1271, allocations: 89.86 kB / 485.7 MB, free: 4 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.1271, allocations: 25.7 kB / 485.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.201e-05/0.1272, allocations: 80.14 kB / 485.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.844e-05/0.1272, allocations: 128 / 485.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.398e-05/0.1272, allocations: 17.72 kB / 485.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.686e-05/0.1273, allocations: 310.8 kB / 486.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.182e-05/0.1274, allocations: 3.984 kB / 486.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.942e-06/0.1274, allocations: 3.938 kB / 486.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.307e-05/0.1274, allocations: 68.2 kB / 486.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1274, allocations: 0 / 486.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.652e-05/0.1275, allocations: 59.41 kB / 486.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.288e-05/0.1275, allocations: 41.72 kB / 486.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.1275, allocations: 4 kB / 486.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.1276, allocations: 0 / 486.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.042e-06/0.1276, allocations: 0 / 486.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.1276, allocations: 0 / 486.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.418e-05/0.1276, allocations: 0 / 486.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.64e-06/0.1276, allocations: 0 / 486.3 MB, free: 15.34 MB / 366.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 8.545e-05/0.1277, allocations: 143.5 kB / 486.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.566e-06/0.1277, allocations: 7.875 kB / 486.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.516e-06/0.1277, allocations: 7.125 kB / 486.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.52e-07/0.1277, allocations: 0 / 486.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.1277, allocations: 0 / 486.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.1277, allocations: 3.984 kB / 486.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.56e-05/0.1278, allocations: 149.7 kB / 486.6 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.1278, allocations: 0 / 486.6 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1279, allocations: 0 / 486.6 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.1279, allocations: 3.938 kB / 486.6 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.192e-06/0.1279, allocations: 0 / 486.6 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.1279, allocations: 4 kB / 486.6 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1279, allocations: 0 / 486.6 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.809e-05/0.128, allocations: 90.83 kB / 486.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.246e-05/0.128, allocations: 84.95 kB / 486.8 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.245e-05/0.128, allocations: 7.938 kB / 486.8 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.774e-06/0.1281, allocations: 0 / 486.8 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.402e-05/0.1281, allocations: 3.984 kB / 486.8 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-06/0.1281, allocations: 4 kB / 486.8 MB, free: 14.74 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.837e-05/0.1281, allocations: 75.28 kB / 486.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1281, allocations: 7.969 kB / 486.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002701/0.1284, allocations: 68 kB / 487 MB, free: 14.59 MB / 366.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.000402/0.1288, allocations: 185.7 kB / 487.2 MB, free: 14.4 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.732e-05/0.1289, allocations: 71.39 kB / 487.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1289, allocations: 0 / 487.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.963e-05/0.129, allocations: 55.41 kB / 487.3 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001167/0.1291, allocations: 2.344 kB / 487.3 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001565/0.1293, allocations: 76.94 kB / 487.4 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002291/0.1295, allocations: 0.6729 MB / 488 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.482e-06/0.1295, allocations: 4 kB / 488 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.275e-06/0.1295, allocations: 7.438 kB / 488 MB, free: 13.45 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1295, allocations: 0 / 488 MB, free: 13.45 MB / 366.1 MB Notification: Performance of Templates: time 0.003937/0.1335, allocations: 1.628 MB / 489.7 MB, free: 11.82 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.makefile (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=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Math.TestPolynomials.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches