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.001104/0.001104, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00122/0.00122, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3304/0.3304, allocations: 46.09 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 78.22 kB / 417.6 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1276, allocations: 62.45 MB / 480 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001786/0.1295, allocations: 483.7 kB / 480.5 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002471/0.132, allocations: 1.797 MB / 482.3 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.404e-05/0.132, allocations: 0 / 482.3 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.37e-05/0.132, allocations: 0 / 482.3 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.558e-06/0.1321, allocations: 4 kB / 482.3 MB, free: 2.973 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.001031/0.1331, allocations: 223.3 kB / 482.5 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.281e-05/0.1331, allocations: 4 kB / 482.5 MB, free: 2.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.585e-05/0.1332, allocations: 0 / 482.5 MB, free: 2.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.66e-05/0.1332, allocations: 4 kB / 482.5 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.898e-05/0.1332, allocations: 7.922 kB / 482.5 MB, free: 2.738 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.346e-06/0.1332, allocations: 4 kB / 482.5 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006581/0.1339, allocations: 399.2 kB / 482.9 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.913e-06/0.1339, allocations: 4 kB / 482.9 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.213e-05/0.134, allocations: 3.984 kB / 482.9 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005082/0.1345, allocations: 299.5 kB / 483.2 MB, free: 2.043 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1345, allocations: 0 / 483.2 MB, free: 2.043 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1345, allocations: 0 / 483.2 MB, free: 2.043 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.561e-06/0.1345, allocations: 0 / 483.2 MB, free: 2.043 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.0004284/0.1349, allocations: 385.2 kB / 483.6 MB, free: 1.613 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.135, allocations: 12.03 kB / 483.6 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.376e-05/0.135, allocations: 0.9375 kB / 483.6 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001132/0.1351, allocations: 168.4 kB / 483.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/0.1352, allocations: 384 / 483.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.153e-06/0.1352, allocations: 384 / 483.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.571e-05/0.1353, allocations: 37.95 kB / 483.8 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.1353, allocations: 0 / 483.8 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.236e-06/0.1353, allocations: 0 / 483.8 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.1353, allocations: 0 / 483.8 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.76e-05/0.1353, allocations: 0 / 483.8 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001374/0.1355, allocations: 153.7 kB / 484 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.797e-05/0.1355, allocations: 22.55 kB / 484 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.462e-05/0.1355, allocations: 4.859 kB / 484 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.384e-06/0.1355, allocations: 7.922 kB / 484 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.504e-05/0.1356, allocations: 64.27 kB / 484.1 MB, free: 1.031 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.123e-06/0.1356, allocations: 0 / 484.1 MB, free: 1.031 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001705/0.1358, allocations: 67.39 kB / 484.1 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.837e-05/0.1358, allocations: 81.11 kB / 484.2 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.682e-05/0.1359, allocations: 89.86 kB / 484.3 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.26e-05/0.1359, allocations: 25.7 kB / 484.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.647e-05/0.1359, allocations: 80.14 kB / 484.4 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.026e-05/0.136, allocations: 3.984 kB / 484.4 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.102e-05/0.136, allocations: 13.72 kB / 484.4 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.1361, allocations: 314.8 kB / 484.7 MB, free: 312 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.063e-05/0.1362, allocations: 4.125 kB / 484.7 MB, free: 308 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.039e-05/0.1362, allocations: 11.92 kB / 484.7 MB, free: 296 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.84e-05/0.1362, allocations: 60.27 kB / 484.8 MB, free: 220 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.1362, allocations: 0 / 484.8 MB, free: 220 kB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.154e-05/0.1363, allocations: 59.41 kB / 484.8 MB, free: 148 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.241e-05/0.1364, allocations: 37.64 kB / 484.9 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.1364, allocations: 0 / 484.9 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.1364, allocations: 3.984 kB / 484.9 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.62e-07/0.1364, allocations: 96 / 484.9 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.1364, allocations: 4 kB / 484.9 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.408e-05/0.1364, allocations: 0 / 484.9 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.37e-06/0.1364, allocations: 0 / 484.9 MB, free: 96 kB / 350.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.0001041/0.1365, allocations: 139.5 kB / 485 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.069e-05/0.1365, allocations: 3.938 kB / 485 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.829e-06/0.1366, allocations: 3.125 kB / 485 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.1366, allocations: 3.938 kB / 485 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.1366, allocations: 4 kB / 485 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.1366, allocations: 4 kB / 485 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.987e-05/0.1367, allocations: 145.7 kB / 485.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.1367, allocations: 0 / 485.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.355e-06/0.1367, allocations: 4 kB / 485.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.1367, allocations: 3.938 kB / 485.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.785e-06/0.1367, allocations: 4 kB / 485.2 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.1367, allocations: 0 / 485.2 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1367, allocations: 0 / 485.2 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001102/0.1368, allocations: 94.83 kB / 485.3 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.764e-05/0.1369, allocations: 85.02 kB / 485.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.1369, allocations: 3.938 kB / 485.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.618e-06/0.1369, allocations: 0 / 485.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.05e-05/0.1369, allocations: 3.938 kB / 485.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-06/0.137, allocations: 0 / 485.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.777e-05/0.137, allocations: 79.28 kB / 485.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.137, allocations: 0 / 485.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003418/0.1373, allocations: 63.98 kB / 485.5 MB, free: 15.36 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.0004649/0.1378, allocations: 197.1 kB / 485.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001062/0.1379, allocations: 63.39 kB / 485.8 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1379, allocations: 0 / 485.8 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.147e-05/0.138, allocations: 55.41 kB / 485.8 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001255/0.1381, allocations: 4.406 kB / 485.8 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002031/0.1383, allocations: 84.92 kB / 485.9 MB, free: 14.9 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002635/0.1386, allocations: 0.6768 MB / 486.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.284e-06/0.1386, allocations: 0 / 486.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.244e-05/0.1386, allocations: 7.438 kB / 486.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1386, allocations: 0 / 486.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of Templates: time 0.004782/0.1434, allocations: 1.62 MB / 488.2 MB, free: 12.57 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 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestPolynomials/TestPolynomials.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches