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.0007922/0.0007922, allocations: 95.34 kB / 17.35 MB, free: 6.375 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.0008398/0.00084, allocations: 180.2 kB / 18.26 MB, free: 5.52 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.358/1.358, allocations: 223.3 MB / 242.3 MB, free: 14.52 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.2018/0.2018, allocations: 44.26 MB / 337.7 MB, free: 2.449 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00032/0.00032, allocations: 8 kB / 410.3 MB, free: 27.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1092, allocations: 61.92 MB / 472.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.0005844/0.1098, allocations: 213.2 kB / 472.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002335/0.1122, allocations: 1.747 MB / 474.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.718e-06/0.1122, allocations: 0 / 474.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.068e-05/0.1122, allocations: 0 / 474.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.708e-06/0.1123, allocations: 0 / 474.2 MB, free: 11.38 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.0007684/0.113, allocations: 202.8 kB / 474.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.925e-05/0.1131, allocations: 4 kB / 474.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.96e-05/0.1131, allocations: 4 kB / 474.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.409e-05/0.1131, allocations: 0 / 474.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.644e-05/0.1132, allocations: 0 / 474.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.55e-06/0.1132, allocations: 0 / 474.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005502/0.1137, allocations: 391.2 kB / 474.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.951e-06/0.1137, allocations: 0 / 474.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.625e-05/0.1138, allocations: 29.7 kB / 474.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003997/0.1142, allocations: 307.3 kB / 475.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.1142, allocations: 4 kB / 475.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.1142, allocations: 0 / 475.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.1142, allocations: 0 / 475.1 MB, free: 10.45 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.0003484/0.1146, allocations: 393.2 kB / 475.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.1146, allocations: 8.031 kB / 475.5 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.102e-05/0.1146, allocations: 8.922 kB / 475.5 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.11e-05/0.1147, allocations: 160.4 kB / 475.7 MB, free: 9.805 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.1148, allocations: 4.375 kB / 475.7 MB, free: 9.801 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.953e-06/0.1148, allocations: 384 / 475.7 MB, free: 9.801 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.382e-05/0.1149, allocations: 34.02 kB / 475.7 MB, free: 9.762 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.999e-06/0.1149, allocations: 0 / 475.7 MB, free: 9.762 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.1149, allocations: 4 kB / 475.7 MB, free: 9.758 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.778e-06/0.1149, allocations: 0 / 475.7 MB, free: 9.758 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.852e-05/0.1149, allocations: 11.92 kB / 475.7 MB, free: 9.746 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001122/0.115, allocations: 141.7 kB / 475.9 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.377e-05/0.1151, allocations: 18.61 kB / 475.9 MB, free: 9.531 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.206e-05/0.1151, allocations: 4.859 kB / 475.9 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.467e-06/0.1151, allocations: 4 kB / 475.9 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.437e-05/0.1151, allocations: 64.27 kB / 476 MB, free: 9.441 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.41e-07/0.1152, allocations: 0 / 476 MB, free: 9.441 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000146/0.1153, allocations: 67.33 kB / 476 MB, free: 9.363 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.931e-05/0.1154, allocations: 81.11 kB / 476.1 MB, free: 9.266 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.07e-05/0.1154, allocations: 89.86 kB / 476.2 MB, free: 9.168 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.157e-05/0.1154, allocations: 25.7 kB / 476.2 MB, free: 9.137 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.473e-05/0.1154, allocations: 84.27 kB / 476.3 MB, free: 9.051 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.757e-05/0.1155, allocations: 0 / 476.3 MB, free: 9.051 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.142e-05/0.1155, allocations: 9.719 kB / 476.3 MB, free: 9.035 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.1156, allocations: 322.8 kB / 476.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.195e-06/0.1157, allocations: 0 / 476.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.698e-06/0.1157, allocations: 0 / 476.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.485e-05/0.1157, allocations: 60.27 kB / 476.7 MB, free: 8.637 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1157, allocations: 0 / 476.7 MB, free: 8.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.712e-05/0.1158, allocations: 67.41 kB / 476.7 MB, free: 8.559 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.155e-05/0.1158, allocations: 41.62 kB / 476.8 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.1159, allocations: 0 / 476.8 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.1159, allocations: 0 / 476.8 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.51e-07/0.1159, allocations: 0 / 476.8 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.1159, allocations: 0 / 476.8 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.797e-05/0.1159, allocations: 4 kB / 476.8 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-06/0.1159, allocations: 3.938 kB / 476.8 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 7.402e-05/0.116, allocations: 131.5 kB / 476.9 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.038e-05/0.116, allocations: 15.91 kB / 476.9 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.788e-06/0.116, allocations: 3.125 kB / 476.9 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.116, allocations: 0 / 476.9 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.116, allocations: 0 / 476.9 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1161, allocations: 3.984 kB / 476.9 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.175e-05/0.1161, allocations: 141.7 kB / 477.1 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.1162, allocations: 4 kB / 477.1 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.1162, allocations: 0 / 477.1 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.1162, allocations: 3.938 kB / 477.1 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.931e-06/0.1162, allocations: 0 / 477.1 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.1162, allocations: 0 / 477.1 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1162, allocations: 4 kB / 477.1 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.241e-05/0.1163, allocations: 98.67 kB / 477.2 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.103e-05/0.1163, allocations: 77.11 kB / 477.3 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.348e-05/0.1163, allocations: 3.938 kB / 477.3 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.428e-06/0.1164, allocations: 4 kB / 477.3 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.618e-05/0.1164, allocations: 7.984 kB / 477.3 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-06/0.1164, allocations: 4 kB / 477.3 MB, free: 7.902 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.723e-05/0.1164, allocations: 79.31 kB / 477.4 MB, free: 7.824 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1164, allocations: 0 / 477.4 MB, free: 7.824 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00029/0.1167, allocations: 56 kB / 477.4 MB, free: 7.77 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.0004233/0.1172, allocations: 189.3 kB / 477.6 MB, free: 7.582 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.438e-05/0.1172, allocations: 71.33 kB / 477.7 MB, free: 7.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1173, allocations: 0 / 477.7 MB, free: 7.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.064e-05/0.1173, allocations: 55.34 kB / 477.7 MB, free: 7.434 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001183/0.1174, allocations: 4.281 kB / 477.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001631/0.1176, allocations: 70.77 kB / 477.8 MB, free: 7.332 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002417/0.1178, allocations: 0.677 MB / 478.5 MB, free: 6.629 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.26e-06/0.1179, allocations: 3.938 kB / 478.5 MB, free: 6.625 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.592e-05/0.1179, allocations: 7.438 kB / 478.5 MB, free: 6.617 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1179, allocations: 4.125 kB / 478.5 MB, free: 6.613 MB / 350.1 MB Notification: Performance of Templates: time 0.00417/0.1221, allocations: 1.612 MB / 480.1 MB, free: 5 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","../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches