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.001394/0.001394, allocations: 107.1 kB / 18.39 MB, free: 4.629 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.001569/0.001569, allocations: 184.1 kB / 19.33 MB, free: 3.699 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.376/1.376, allocations: 222.9 MB / 243 MB, free: 15.07 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.2084/0.2084, allocations: 44.19 MB / 337.4 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 60.97 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0979/0.09913, allocations: 60.84 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001603/0.1008, allocations: 490.8 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00216/0.1029, allocations: 1.754 MB / 472.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.735e-05/0.103, allocations: 0 / 472.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.073e-05/0.103, allocations: 0 / 472.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.499e-06/0.103, allocations: 0 / 472.9 MB, free: 11.4 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.0008776/0.1039, allocations: 235 kB / 473.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.737e-05/0.1039, allocations: 0 / 473.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.148e-05/0.104, allocations: 3.984 kB / 473.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.31e-05/0.104, allocations: 4 kB / 473.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.381e-05/0.104, allocations: 0 / 473.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.159e-06/0.104, allocations: 0 / 473.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000575/0.1046, allocations: 407.2 kB / 473.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.266e-06/0.1046, allocations: 3.984 kB / 473.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.081e-05/0.1046, allocations: 7.922 kB / 473.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003995/0.1051, allocations: 303.5 kB / 473.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.1051, allocations: 0 / 473.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.376e-06/0.1051, allocations: 0 / 473.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.1051, allocations: 3.938 kB / 473.9 MB, free: 10.46 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.0003302/0.1054, allocations: 381.2 kB / 474.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.99e-05/0.1055, allocations: 12.03 kB / 474.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.913e-05/0.1055, allocations: 4.938 kB / 474.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001007/0.1056, allocations: 168.4 kB / 474.4 MB, free: 9.812 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.008e-05/0.1056, allocations: 384 / 474.4 MB, free: 9.812 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.995e-06/0.1056, allocations: 384 / 474.4 MB, free: 9.812 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.185e-05/0.1057, allocations: 38.02 kB / 474.5 MB, free: 9.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.021e-06/0.1057, allocations: 0 / 474.5 MB, free: 9.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.776e-06/0.1057, allocations: 0 / 474.5 MB, free: 9.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.656e-06/0.1058, allocations: 0 / 474.5 MB, free: 9.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.612e-05/0.1058, allocations: 4 kB / 474.5 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000115/0.1059, allocations: 141.7 kB / 474.6 MB, free: 9.578 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.458e-05/0.1059, allocations: 22.5 kB / 474.6 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.72e-05/0.106, allocations: 16.95 kB / 474.6 MB, free: 9.527 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.888e-06/0.106, allocations: 0 / 474.6 MB, free: 9.527 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.455e-05/0.106, allocations: 60.2 kB / 474.7 MB, free: 9.453 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.204e-06/0.106, allocations: 3.984 kB / 474.7 MB, free: 9.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001476/0.1062, allocations: 67.33 kB / 474.8 MB, free: 9.371 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.968e-05/0.1062, allocations: 77.11 kB / 474.9 MB, free: 9.277 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.301e-05/0.1063, allocations: 93.8 kB / 474.9 MB, free: 9.176 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.582e-05/0.1063, allocations: 33.7 kB / 475 MB, free: 9.137 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.216e-05/0.1063, allocations: 84.27 kB / 475.1 MB, free: 9.051 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.764e-05/0.1063, allocations: 3.984 kB / 475.1 MB, free: 9.047 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.296e-05/0.1064, allocations: 9.719 kB / 475.1 MB, free: 9.031 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.1065, allocations: 314.8 kB / 475.4 MB, free: 8.715 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.476e-06/0.1065, allocations: 0 / 475.4 MB, free: 8.715 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.039e-06/0.1065, allocations: 0 / 475.4 MB, free: 8.715 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.48e-05/0.1066, allocations: 64.25 kB / 475.4 MB, free: 8.637 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1066, allocations: 4.062 kB / 475.4 MB, free: 8.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.606e-05/0.1067, allocations: 67.34 kB / 475.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.222e-05/0.1067, allocations: 33.64 kB / 475.5 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.1067, allocations: 0 / 475.5 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.467e-06/0.1067, allocations: 0 / 475.5 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.515e-06/0.1067, allocations: 0 / 475.5 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.1067, allocations: 7.938 kB / 475.6 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.311e-05/0.1067, allocations: 0 / 475.6 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.1068, allocations: 3.984 kB / 475.6 MB, free: 8.504 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 9.643e-05/0.1069, allocations: 135.6 kB / 475.7 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.688e-06/0.1069, allocations: 7.938 kB / 475.7 MB, free: 8.348 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.646e-06/0.1069, allocations: 3.125 kB / 475.7 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.1069, allocations: 0 / 475.7 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.1069, allocations: 0 / 475.7 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-06/0.1069, allocations: 0 / 475.7 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.573e-05/0.107, allocations: 153.7 kB / 475.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.107, allocations: 0 / 475.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.107, allocations: 0 / 475.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.107, allocations: 3.938 kB / 475.9 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.581e-06/0.107, allocations: 0 / 475.9 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.107, allocations: 4 kB / 475.9 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.107, allocations: 0 / 475.9 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.488e-05/0.1071, allocations: 102.7 kB / 476 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.027e-05/0.1072, allocations: 77.11 kB / 476 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.228e-05/0.1072, allocations: 3.938 kB / 476 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.868e-06/0.1072, allocations: 4 kB / 476 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.197e-06/0.1072, allocations: 0 / 476 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-06/0.1072, allocations: 4.031 kB / 476 MB, free: 7.906 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.058e-05/0.1073, allocations: 75.28 kB / 476.1 MB, free: 7.832 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1073, allocations: 0 / 476.1 MB, free: 7.832 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002954/0.1076, allocations: 67.98 kB / 476.2 MB, free: 7.766 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.0003729/0.108, allocations: 185.1 kB / 476.4 MB, free: 7.582 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.444e-05/0.1081, allocations: 63.41 kB / 476.4 MB, free: 7.508 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.1081, allocations: 0 / 476.4 MB, free: 7.508 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.883e-05/0.1081, allocations: 59.39 kB / 476.5 MB, free: 7.438 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001189/0.1082, allocations: 0 / 476.5 MB, free: 7.438 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001496/0.1084, allocations: 84.88 kB / 476.6 MB, free: 7.328 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002253/0.1086, allocations: 0.669 MB / 477.2 MB, free: 6.633 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.789e-06/0.1086, allocations: 0 / 477.2 MB, free: 6.633 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.137e-05/0.1086, allocations: 15.56 kB / 477.3 MB, free: 6.617 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.1086, allocations: 0 / 477.3 MB, free: 6.617 MB / 350.1 MB Notification: Performance of Templates: time 0.004036/0.1127, allocations: 1.625 MB / 478.9 MB, free: 4.992 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 -s gbode -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