Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials") translateModel(ModelicaTest.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001689/0.001689, allocations: 109.4 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002064/0.002064, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 222.9 MB / 241.8 MB, free: 13.85 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2064/0.2064, allocations: 44.17 MB / 336.1 MB, free: 2.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 65.28 kB / 407.7 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1129, allocations: 60.81 MB / 468.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001588/0.1146, allocations: 0.5448 MB / 469 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002441/0.117, allocations: 1.769 MB / 470.8 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.184e-05/0.1171, allocations: 3.938 kB / 470.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.47e-05/0.1171, allocations: 0 / 470.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.931e-06/0.1171, allocations: 0 / 470.8 MB, free: 12.52 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.001008/0.1181, allocations: 187.5 kB / 471 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.981e-05/0.1182, allocations: 0 / 471 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.995e-05/0.1182, allocations: 8 kB / 471 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.673e-05/0.1182, allocations: 3.984 kB / 471 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.736e-05/0.1183, allocations: 4 kB / 471 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.761e-06/0.1183, allocations: 3.938 kB / 471 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006193/0.1189, allocations: 395.2 kB / 471.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.256e-06/0.1189, allocations: 0 / 471.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.795e-05/0.1189, allocations: 0 / 471.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004961/0.1194, allocations: 303.4 kB / 471.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1195, allocations: 0 / 471.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1195, allocations: 0 / 471.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.1195, allocations: 4 kB / 471.7 MB, free: 11.63 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.0004779/0.12, allocations: 391.8 kB / 472.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.12, allocations: 8.031 kB / 472.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.163e-05/0.12, allocations: 0.9375 kB / 472.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.027e-05/0.1201, allocations: 168.4 kB / 472.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.057e-05/0.1202, allocations: 4.375 kB / 472.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.093e-06/0.1202, allocations: 384 / 472.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.846e-05/0.1203, allocations: 37.94 kB / 472.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.232e-06/0.1203, allocations: 4 kB / 472.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.604e-06/0.1203, allocations: 4 kB / 472.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.1203, allocations: 0 / 472.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.825e-05/0.1203, allocations: 4 kB / 472.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000124/0.1204, allocations: 145.7 kB / 472.5 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.098e-05/0.1205, allocations: 18.61 kB / 472.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.383e-05/0.1205, allocations: 4.859 kB / 472.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.848e-06/0.1205, allocations: 0 / 472.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.581e-05/0.1206, allocations: 68.27 kB / 472.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.603e-06/0.1206, allocations: 3.938 kB / 472.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001658/0.1208, allocations: 67.39 kB / 472.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.677e-05/0.1208, allocations: 77.11 kB / 472.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.541e-05/0.1209, allocations: 89.86 kB / 472.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.271e-05/0.1209, allocations: 25.7 kB / 472.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.347e-05/0.1209, allocations: 80.14 kB / 472.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.961e-05/0.1209, allocations: 128 / 472.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.199e-05/0.121, allocations: 25.66 kB / 472.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.1211, allocations: 310.8 kB / 473.2 MB, free: 9.891 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.141e-05/0.1211, allocations: 0 / 473.2 MB, free: 9.891 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.781e-06/0.1211, allocations: 3.938 kB / 473.2 MB, free: 9.887 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.761e-05/0.1212, allocations: 68.19 kB / 473.3 MB, free: 9.805 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1212, allocations: 0 / 473.3 MB, free: 9.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.97e-05/0.1213, allocations: 63.41 kB / 473.3 MB, free: 9.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.394e-05/0.1213, allocations: 37.73 kB / 473.4 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.421e-06/0.1213, allocations: 4 kB / 473.4 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.1214, allocations: 0 / 473.4 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.254e-06/0.1214, allocations: 3.984 kB / 473.4 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.1214, allocations: 0 / 473.4 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.458e-05/0.1214, allocations: 0 / 473.4 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.052e-06/0.1214, allocations: 0 / 473.4 MB, free: 9.68 MB / 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 7.896e-05/0.1215, allocations: 135.5 kB / 473.5 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.043e-05/0.1215, allocations: 3.938 kB / 473.5 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.957e-06/0.1215, allocations: 7.125 kB / 473.5 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-06/0.1215, allocations: 0 / 473.5 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1215, allocations: 0 / 473.5 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.1215, allocations: 4 kB / 473.5 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001213/0.1217, allocations: 145.7 kB / 473.7 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.1217, allocations: 0 / 473.7 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.425e-06/0.1217, allocations: 0 / 473.7 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.095e-06/0.1217, allocations: 7.875 kB / 473.7 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.164e-06/0.1217, allocations: 0 / 473.7 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.1217, allocations: 4 kB / 473.7 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1217, allocations: 0 / 473.7 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.086e-05/0.1218, allocations: 94.73 kB / 473.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.855e-05/0.1219, allocations: 89.11 kB / 473.9 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.383e-05/0.1219, allocations: 3.938 kB / 473.9 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.727e-06/0.1219, allocations: 0 / 473.9 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.03e-05/0.1219, allocations: 0 / 473.9 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-06/0.1219, allocations: 0 / 473.9 MB, free: 9.086 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.365e-05/0.122, allocations: 75.28 kB / 474 MB, free: 9.012 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.122, allocations: 8.031 kB / 474 MB, free: 9.004 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003162/0.1223, allocations: 59.98 kB / 474 MB, free: 8.945 MB / 350.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.0004329/0.1227, allocations: 202.9 kB / 474.2 MB, free: 8.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.997e-05/0.1228, allocations: 67.33 kB / 474.3 MB, free: 8.672 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1228, allocations: 0 / 474.3 MB, free: 8.672 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.94e-05/0.1229, allocations: 55.41 kB / 474.3 MB, free: 8.605 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001244/0.123, allocations: 288 / 474.3 MB, free: 8.605 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001726/0.1232, allocations: 74.77 kB / 474.4 MB, free: 8.504 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002524/0.1235, allocations: 0.6731 MB / 475.1 MB, free: 7.805 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.304e-06/0.1235, allocations: 0 / 475.1 MB, free: 7.805 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.122e-05/0.1235, allocations: 11.44 kB / 475.1 MB, free: 7.793 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.1235, allocations: 0 / 475.1 MB, free: 7.793 MB / 350.1 MB Notification: Performance of Templates: time 0.004438/0.1279, allocations: 1.62 MB / 476.7 MB, free: 6.172 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.TestPolynomials.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches