Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestPolynomials.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestPolynomials") translateModel(ModelicaTest.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestPolynomials") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008695/0.0008694, allocations: 175.5 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.225/1.225, allocations: 205.4 MB / 222.9 MB, free: 8.938 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007454/0.0007454, allocations: 90.41 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2887/0.2887, allocations: 43.56 MB / 363.1 MB, free: 52.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003263/0.0003266, allocations: 19.98 kB / 432 MB, free: 5.844 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09515/0.0955, allocations: 58.85 MB / 490.8 MB, free: 10.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.0005038/0.09605, allocations: 232.3 kB / 491 MB, free: 10.68 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0048/0.1009, allocations: 4.753 MB / 495.8 MB, free: 5.891 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.135e-05/0.1009, allocations: 0 / 495.8 MB, free: 5.891 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.636e-06/0.1009, allocations: 0 / 495.8 MB, free: 5.891 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 8.726e-06/0.1009, allocations: 0 / 495.8 MB, free: 5.891 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006739/0.1016, allocations: 191.5 kB / 496 MB, free: 5.703 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.428e-05/0.1016, allocations: 0 / 496 MB, free: 5.703 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.339e-05/0.1017, allocations: 4 kB / 496 MB, free: 5.699 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.254e-05/0.1017, allocations: 4 kB / 496 MB, free: 5.695 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.606e-05/0.1017, allocations: 3.984 kB / 496 MB, free: 5.691 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.578e-06/0.1017, allocations: 0 / 496 MB, free: 5.691 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004912/0.1022, allocations: 371.3 kB / 496.4 MB, free: 5.328 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.442e-06/0.1022, allocations: 0 / 496.4 MB, free: 5.328 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.047e-05/0.1023, allocations: 29.7 kB / 496.4 MB, free: 5.293 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002564/0.1025, allocations: 203.7 kB / 496.6 MB, free: 5.094 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1025, allocations: 0 / 496.6 MB, free: 5.094 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1026, allocations: 0 / 496.6 MB, free: 5.094 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.527e-06/0.1026, allocations: 4 kB / 496.6 MB, free: 5.09 MB / 378.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.0002958/0.1029, allocations: 393.2 kB / 497 MB, free: 4.652 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.127e-05/0.1029, allocations: 8.031 kB / 497 MB, free: 4.645 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.691e-05/0.1029, allocations: 0.9375 kB / 497 MB, free: 4.645 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.442e-05/0.103, allocations: 164.3 kB / 497.1 MB, free: 4.445 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.778e-06/0.103, allocations: 384 / 497.1 MB, free: 4.445 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.055e-06/0.103, allocations: 4.375 kB / 497.1 MB, free: 4.441 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.434e-05/0.1031, allocations: 29.83 kB / 497.2 MB, free: 4.406 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.1031, allocations: 4 kB / 497.2 MB, free: 4.402 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.688e-06/0.1032, allocations: 3.984 kB / 497.2 MB, free: 4.398 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.1032, allocations: 4 kB / 497.2 MB, free: 4.395 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.469e-05/0.1032, allocations: 0 / 497.2 MB, free: 4.395 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001071/0.1033, allocations: 145.7 kB / 497.3 MB, free: 4.203 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.288e-05/0.1033, allocations: 26.55 kB / 497.4 MB, free: 4.168 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.171e-05/0.1034, allocations: 4.859 kB / 497.4 MB, free: 4.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.932e-06/0.1034, allocations: 0 / 497.4 MB, free: 4.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.467e-05/0.1034, allocations: 64.2 kB / 497.4 MB, free: 4.082 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.1034, allocations: 3.938 kB / 497.4 MB, free: 4.078 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001392/0.1036, allocations: 67.36 kB / 497.5 MB, free: 4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.29e-05/0.1036, allocations: 85.11 kB / 497.6 MB, free: 3.898 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.139e-05/0.1037, allocations: 93.8 kB / 497.7 MB, free: 3.797 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.648e-06/0.1037, allocations: 25.7 kB / 497.7 MB, free: 3.766 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.304e-05/0.1037, allocations: 80.14 kB / 497.8 MB, free: 3.684 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.262e-05/0.1037, allocations: 128 / 497.8 MB, free: 3.684 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.864e-06/0.1037, allocations: 4 kB / 497.8 MB, free: 3.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.26e-05/0.1038, allocations: 310.8 kB / 498.1 MB, free: 3.367 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.893e-06/0.1038, allocations: 0 / 498.1 MB, free: 3.367 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.711e-06/0.1038, allocations: 4 kB / 498.1 MB, free: 3.363 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.191e-05/0.1039, allocations: 68.19 kB / 498.1 MB, free: 3.281 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.1039, allocations: 0 / 498.1 MB, free: 3.281 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.119e-05/0.104, allocations: 59.41 kB / 498.2 MB, free: 3.211 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.745e-05/0.104, allocations: 37.73 kB / 498.2 MB, free: 3.168 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.556e-06/0.104, allocations: 4 kB / 498.2 MB, free: 3.164 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.307e-06/0.104, allocations: 0 / 498.2 MB, free: 3.164 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.094e-06/0.104, allocations: 7.922 kB / 498.3 MB, free: 3.156 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.987e-06/0.104, allocations: 0 / 498.3 MB, free: 3.156 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.415e-05/0.104, allocations: 0 / 498.3 MB, free: 3.156 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.805e-06/0.1041, allocations: 4 kB / 498.3 MB, free: 3.152 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.378e-05/0.1041, allocations: 131.5 kB / 498.4 MB, free: 3.008 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.494e-06/0.1041, allocations: 3.938 kB / 498.4 MB, free: 3.004 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.556e-05/0.1042, allocations: 11.12 kB / 498.4 MB, free: 2.992 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.52e-07/0.1042, allocations: 4 kB / 498.4 MB, free: 2.988 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.1042, allocations: 0 / 498.4 MB, free: 2.988 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.583e-06/0.1042, allocations: 0 / 498.4 MB, free: 2.988 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.204e-05/0.1043, allocations: 149.7 kB / 498.6 MB, free: 2.793 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.1043, allocations: 0 / 498.6 MB, free: 2.793 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1043, allocations: 0 / 498.6 MB, free: 2.793 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.1043, allocations: 3.938 kB / 498.6 MB, free: 2.789 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.31e-06/0.1043, allocations: 4 kB / 498.6 MB, free: 2.785 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.82e-07/0.1043, allocations: 0 / 498.6 MB, free: 2.785 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1043, allocations: 0 / 498.6 MB, free: 2.785 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.154e-05/0.1044, allocations: 94.83 kB / 498.7 MB, free: 2.668 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.466e-05/0.1044, allocations: 84.98 kB / 498.7 MB, free: 2.566 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.838e-06/0.1044, allocations: 0 / 498.7 MB, free: 2.566 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.185e-06/0.1044, allocations: 0 / 498.7 MB, free: 2.566 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.174e-05/0.1045, allocations: 0 / 498.7 MB, free: 2.566 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.028e-06/0.1045, allocations: 4 kB / 498.7 MB, free: 2.562 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.44e-05/0.1045, allocations: 75.28 kB / 498.8 MB, free: 2.488 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1045, allocations: 4.031 kB / 498.8 MB, free: 2.484 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000269/0.1048, allocations: 67.92 kB / 498.9 MB, free: 2.418 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003735/0.1052, allocations: 190.7 kB / 499.1 MB, free: 2.227 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.988e-05/0.1052, allocations: 63.39 kB / 499.1 MB, free: 2.152 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1052, allocations: 4.062 kB / 499.1 MB, free: 2.148 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.356e-05/0.1053, allocations: 55.41 kB / 499.2 MB, free: 2.082 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001145/0.1054, allocations: 4 kB / 499.2 MB, free: 2.078 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001474/0.1055, allocations: 100.4 kB / 499.3 MB, free: 1.949 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001786/0.1057, allocations: 0.677 MB / 500 MB, free: 1.246 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.042e-05/0.1058, allocations: 11.44 kB / 500 MB, free: 1.234 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.1058, allocations: 0 / 500 MB, free: 1.234 MB / 378.7 MB Notification: Performance of Templates: time 0.1529/0.2586, allocations: 1.575 MB / 0.4898 GB, free: 43.27 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestPolynomials.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestPolynomials.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestPolynomials.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestPolynomials.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestPolynomials.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestPolynomials --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestPolynomials.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestPolynomials_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/TestPolynomials/TestPolynomials.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestPolynomials.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches