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.001089/0.001089, allocations: 106.1 kB / 18.3 MB, free: 4.887 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.001083/0.001084, allocations: 195.3 kB / 19.23 MB, free: 3.961 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.368/1.368, allocations: 222.9 MB / 242.9 MB, free: 15.2 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.2216/0.2216, allocations: 44.18 MB / 337.3 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 64.52 kB / 409.1 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1092, allocations: 60.82 MB / 469.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.002077/0.1113, allocations: 495 kB / 470.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002594/0.1139, allocations: 1.75 MB / 472.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.741e-05/0.114, allocations: 0 / 472.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.715e-05/0.114, allocations: 0 / 472.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.021e-06/0.114, allocations: 0 / 472.1 MB, free: 12.12 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.001095/0.1151, allocations: 223.1 kB / 472.4 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.93e-05/0.1152, allocations: 8 kB / 472.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.104e-05/0.1153, allocations: 7.969 kB / 472.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.599e-05/0.1153, allocations: 0 / 472.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.925e-05/0.1153, allocations: 4 kB / 472.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.831e-06/0.1153, allocations: 0 / 472.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007117/0.116, allocations: 395.2 kB / 472.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.586e-06/0.1161, allocations: 0 / 472.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.201e-05/0.1161, allocations: 7.938 kB / 472.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005585/0.1166, allocations: 299.4 kB / 473.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1167, allocations: 4 kB / 473.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1167, allocations: 4 kB / 473.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.1167, allocations: 0 / 473.1 MB, free: 11.19 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.0004427/0.1171, allocations: 397.2 kB / 473.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.1172, allocations: 8.031 kB / 473.5 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.569e-05/0.1172, allocations: 0.9375 kB / 473.5 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001098/0.1173, allocations: 160.4 kB / 473.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.201e-05/0.1173, allocations: 384 / 473.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.025e-06/0.1174, allocations: 4.375 kB / 473.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.832e-05/0.1175, allocations: 37.94 kB / 473.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.1175, allocations: 7.984 kB / 473.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.826e-06/0.1175, allocations: 0 / 473.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.1175, allocations: 4 kB / 473.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.888e-05/0.1175, allocations: 0 / 473.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001365/0.1177, allocations: 145.7 kB / 473.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.369e-05/0.1177, allocations: 22.59 kB / 473.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.503e-05/0.1178, allocations: 8.797 kB / 473.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.461e-06/0.1178, allocations: 0 / 473.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.863e-05/0.1178, allocations: 64.2 kB / 473.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.1178, allocations: 8 kB / 473.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001899/0.118, allocations: 59.41 kB / 474 MB, free: 10.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.519e-05/0.1181, allocations: 85.09 kB / 474.1 MB, free: 9.992 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.91e-05/0.1182, allocations: 89.86 kB / 474.2 MB, free: 9.895 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.239e-05/0.1182, allocations: 25.7 kB / 474.2 MB, free: 9.863 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.726e-05/0.1182, allocations: 80.14 kB / 474.3 MB, free: 9.781 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.244e-05/0.1183, allocations: 4.125 kB / 474.3 MB, free: 9.777 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.059e-05/0.1183, allocations: 13.72 kB / 474.3 MB, free: 9.758 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.986e-05/0.1184, allocations: 310.8 kB / 474.6 MB, free: 9.445 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.648e-06/0.1184, allocations: 0 / 474.6 MB, free: 9.445 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.422e-06/0.1184, allocations: 0 / 474.6 MB, free: 9.445 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.939e-05/0.1185, allocations: 68.2 kB / 474.6 MB, free: 9.363 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1185, allocations: 0 / 474.6 MB, free: 9.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.454e-05/0.1186, allocations: 63.39 kB / 474.7 MB, free: 9.289 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.279e-05/0.1186, allocations: 37.73 kB / 474.7 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.1186, allocations: 0 / 474.7 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.1186, allocations: 4 kB / 474.7 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.72e-07/0.1186, allocations: 3.938 kB / 474.8 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.1187, allocations: 0 / 474.8 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.522e-05/0.1187, allocations: 0 / 474.8 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.74e-06/0.1187, allocations: 0 / 474.8 MB, free: 9.238 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 8.343e-05/0.1188, allocations: 143.5 kB / 474.9 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.059e-05/0.1188, allocations: 3.938 kB / 474.9 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.989e-06/0.1188, allocations: 7.125 kB / 474.9 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-06/0.1188, allocations: 0 / 474.9 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.1188, allocations: 0 / 474.9 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-06/0.1188, allocations: 0 / 474.9 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.619e-05/0.1189, allocations: 153.7 kB / 475.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.1189, allocations: 0 / 475.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.064e-06/0.1189, allocations: 0 / 475.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.119, allocations: 7.875 kB / 475.1 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.43e-06/0.119, allocations: 0 / 475.1 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.119, allocations: 0 / 475.1 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.119, allocations: 0 / 475.1 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.806e-05/0.1191, allocations: 98.73 kB / 475.2 MB, free: 8.742 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.026e-05/0.1191, allocations: 77.11 kB / 475.2 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.567e-05/0.1191, allocations: 7.938 kB / 475.2 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.067e-05/0.1192, allocations: 0 / 475.2 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.206e-05/0.1192, allocations: 0 / 475.2 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.1192, allocations: 3.938 kB / 475.2 MB, free: 8.637 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.173e-05/0.1192, allocations: 75.28 kB / 475.3 MB, free: 8.562 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1192, allocations: 4.031 kB / 475.3 MB, free: 8.559 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003681/0.1196, allocations: 67.98 kB / 475.4 MB, free: 8.492 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.0005274/0.1201, allocations: 198.9 kB / 475.6 MB, free: 8.297 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001078/0.1203, allocations: 63.34 kB / 475.6 MB, free: 8.223 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1203, allocations: 0 / 475.6 MB, free: 8.223 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.461e-05/0.1203, allocations: 59.39 kB / 475.7 MB, free: 8.152 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001336/0.1204, allocations: 288 / 475.7 MB, free: 8.152 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002133/0.1207, allocations: 106.6 kB / 475.8 MB, free: 8.016 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002161/0.1209, allocations: 0.6729 MB / 476.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.186e-05/0.1209, allocations: 7.438 kB / 476.5 MB, free: 7.309 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1209, allocations: 0 / 476.5 MB, free: 7.309 MB / 350.1 MB Notification: Performance of Templates: time 0.003514/0.1244, allocations: 1.504 MB / 478 MB, free: 5.805 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/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_4.0.0_ModelicaTest.Math.TestPolynomials.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches