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.001093/0.001093, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.001214/0.001214, allocations: 170 kB / 24.82 MB, free: 9.254 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 0.9958/0.9958, allocations: 177 MB / 205.1 MB, free: 5.484 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.2623/0.2623, allocations: 34.86 MB / 296.6 MB, free: 444 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.804e-06/1.804e-06, allocations: 0 / 379.2 MB, free: 1.84 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.445e-05/2.625e-05, allocations: 3.719 kB / 379.2 MB, free: 1.836 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001166/0.001192, allocations: 0.5009 MB / 379.7 MB, free: 1.332 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002157/0.003349, allocations: 1.771 MB / 381.5 MB, free: 15.54 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.989e-05/0.003369, allocations: 0 / 381.5 MB, free: 15.54 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 1.485e-05/0.003384, allocations: 0 / 381.5 MB, free: 15.54 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 6.271e-06/0.00339, allocations: 0 / 381.5 MB, free: 15.54 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.0009004/0.004291, allocations: 263 kB / 381.7 MB, free: 15.28 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 3.864e-05/0.004329, allocations: 0 / 381.7 MB, free: 15.28 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.271e-05/0.004362, allocations: 3.938 kB / 381.7 MB, free: 15.28 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.951e-05/0.004391, allocations: 4 kB / 381.7 MB, free: 15.27 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.74e-05/0.004409, allocations: 0 / 381.7 MB, free: 15.27 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.624e-06/0.004416, allocations: 0 / 381.7 MB, free: 15.27 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005731/0.004989, allocations: 451 kB / 382.2 MB, free: 14.83 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 8.486e-06/0.004998, allocations: 4 kB / 382.2 MB, free: 14.83 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.462e-05/0.005013, allocations: 4 kB / 382.2 MB, free: 14.82 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003772/0.00539, allocations: 351 kB / 382.5 MB, free: 14.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.005392, allocations: 0 / 382.5 MB, free: 14.48 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.005393, allocations: 4 kB / 382.5 MB, free: 14.48 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.136e-06/0.005396, allocations: 0 / 382.5 MB, free: 14.48 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.0002694/0.005665, allocations: 409.6 kB / 382.9 MB, free: 14.04 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.005702, allocations: 8.031 kB / 382.9 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.38e-05/0.005726, allocations: 0.9375 kB / 382.9 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.933e-05/0.005775, allocations: 108.6 kB / 383.1 MB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.806e-06/0.005784, allocations: 4.375 kB / 383.1 MB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.849e-06/0.005789, allocations: 4.312 kB / 383.1 MB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.116e-05/0.00585, allocations: 63.95 kB / 383.1 MB, free: 13.81 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.67e-06/0.005856, allocations: 192 / 383.1 MB, free: 13.81 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.538e-06/0.00586, allocations: 384 / 383.1 MB, free: 13.81 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.005866, allocations: 3.938 kB / 383.1 MB, free: 13.81 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.712e-05/0.005883, allocations: 33.64 kB / 383.2 MB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.748e-05/0.00595, allocations: 89.27 kB / 383.2 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.51e-05/0.005985, allocations: 52.8 kB / 383.3 MB, free: 13.59 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.419e-05/0.005999, allocations: 37.38 kB / 383.3 MB, free: 13.54 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.496e-06/0.006003, allocations: 4 kB / 383.3 MB, free: 13.54 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.288e-05/0.006036, allocations: 63.16 kB / 383.4 MB, free: 13.46 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.006037, allocations: 0 / 383.4 MB, free: 13.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001319/0.006169, allocations: 118.8 kB / 383.5 MB, free: 13.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.851e-05/0.006197, allocations: 81.09 kB / 383.6 MB, free: 13.22 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.051e-05/0.006238, allocations: 146.2 kB / 383.7 MB, free: 13.06 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.676e-06/0.006246, allocations: 25.7 kB / 383.8 MB, free: 13.03 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.559e-05/0.006272, allocations: 130.9 kB / 383.9 MB, free: 12.9 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.237e-05/0.006284, allocations: 352 / 383.9 MB, free: 12.9 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.947e-05/0.006304, allocations: 15.38 kB / 383.9 MB, free: 12.88 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.006406, allocations: 0.4924 MB / 384.4 MB, free: 12.37 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.672e-05/0.006423, allocations: 25.7 kB / 384.4 MB, free: 12.34 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.495e-05/0.006438, allocations: 25.7 kB / 384.4 MB, free: 12.31 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.141e-05/0.006479, allocations: 67.08 kB / 384.5 MB, free: 12.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.006481, allocations: 3.938 kB / 384.5 MB, free: 12.22 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.254e-05/0.006533, allocations: 93.06 kB / 384.6 MB, free: 12.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.006556, allocations: 29.7 kB / 384.6 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.309e-06/0.00656, allocations: 0 / 384.6 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.006573, allocations: 4 kB / 384.6 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.314e-06/0.006576, allocations: 8.078 kB / 384.7 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.014e-06/0.006578, allocations: 0 / 384.7 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.143e-05/0.006589, allocations: 3.938 kB / 384.7 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.24e-06/0.006594, allocations: 0 / 384.7 MB, free: 12.06 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.254e-05/0.006657, allocations: 182.3 kB / 384.8 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.781e-06/0.006663, allocations: 3.984 kB / 384.8 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.145e-05/0.006674, allocations: 3 kB / 384.8 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.006676, allocations: 0 / 384.8 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.255e-06/0.006678, allocations: 11.94 kB / 384.9 MB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.943e-06/0.00668, allocations: 0 / 384.9 MB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.092e-05/0.006731, allocations: 101.2 kB / 384.9 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.006732, allocations: 0 / 384.9 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.006732, allocations: 0 / 384.9 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.006733, allocations: 0 / 384.9 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.747e-06/0.006737, allocations: 4 kB / 385 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.9e-07/0.006737, allocations: 3.938 kB / 385 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.006738, allocations: 0 / 385 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.529e-05/0.006813, allocations: 135.8 kB / 385.1 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.436e-06/0.006817, allocations: 0 / 385.1 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.069e-05/0.006828, allocations: 4 kB / 385.1 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.739e-06/0.006832, allocations: 0 / 385.1 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.514e-06/0.00684, allocations: 4.031 kB / 385.1 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.914e-06/0.006842, allocations: 0 / 385.1 MB, free: 11.54 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.669e-05/0.006868, allocations: 119.2 kB / 385.2 MB, free: 11.43 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006868, allocations: 0 / 385.2 MB, free: 11.43 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000233/0.007101, allocations: 71.8 kB / 385.3 MB, free: 11.36 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.0003349/0.007436, allocations: 194.8 kB / 385.5 MB, free: 11.16 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001013/0.007538, allocations: 130.4 kB / 385.6 MB, free: 11.01 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.007539, allocations: 0 / 385.6 MB, free: 11.01 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.818e-05/0.007567, allocations: 88.8 kB / 385.7 MB, free: 10.9 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.217e-05/0.00765, allocations: 3.938 kB / 385.7 MB, free: 10.89 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001366/0.007786, allocations: 113.6 kB / 385.8 MB, free: 10.75 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.518e-05/0.007811, allocations: 59.3 kB / 385.9 MB, free: 10.67 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.927e-06/0.007815, allocations: 0 / 385.9 MB, free: 10.67 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.433e-05/0.00785, allocations: 70.33 kB / 385.9 MB, free: 10.6 MB / 362.7 MB Notification: Performance of SimCode: time 6.41e-07/0.00785, allocations: 4 kB / 385.9 MB, free: 10.59 MB / 362.7 MB Notification: Performance of Templates: time 0.003862/0.01171, allocations: 1.931 MB / 387.9 MB, free: 8.664 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: 2.945906884036958]