Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable1D.Test25_usertab.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Tables.CombiTable1D.Test25_usertab,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y|clock.y|realExpression.y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable1D.Test25_usertab") Notification: Performance of loadModel(ModelicaTest): time 1.858/1.858, allocations: 209.3 MB / 222.4 MB, free: 7.715 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.393e-05/3.416e-05, allocations: 7.984 kB / 277.8 MB, free: 15.29 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08766/0.08772, allocations: 48.7 MB / 326.5 MB, free: 14.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3428/0.4306, allocations: 74.54 MB / 401.1 MB, free: 9.926 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002169/0.4308, allocations: 68.05 kB / 401.1 MB, free: 9.926 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009725/0.4406, allocations: 2.624 MB / 403.8 MB, free: 8.879 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.854e-06/0.4406, allocations: 0 / 403.8 MB, free: 8.879 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.221e-05/0.4406, allocations: 1.203 kB / 403.8 MB, free: 8.879 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003175/0.441, allocations: 391 kB / 404.2 MB, free: 8.469 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.441, allocations: 7.688 kB / 404.2 MB, free: 8.469 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.952e-05/0.4411, allocations: 7.75 kB / 404.2 MB, free: 8.465 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001758/0.4413, allocations: 194.2 kB / 404.4 MB, free: 8.25 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.4413, allocations: 3.812 kB / 404.4 MB, free: 8.25 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.985e-05/0.4413, allocations: 3.125 kB / 404.4 MB, free: 8.25 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001284/0.4415, allocations: 68.31 kB / 404.4 MB, free: 8.191 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.4415, allocations: 0 / 404.4 MB, free: 8.191 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/0.4415, allocations: 3.562 kB / 404.4 MB, free: 8.191 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.334e-06/0.4415, allocations: 0 / 404.4 MB, free: 8.191 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.417e-05/0.4416, allocations: 18.7 kB / 404.5 MB, free: 8.188 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003676/0.442, allocations: 280.6 kB / 404.7 MB, free: 7.906 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.7e-05/0.4421, allocations: 48.34 kB / 404.8 MB, free: 7.871 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.669e-05/0.4421, allocations: 12.08 kB / 404.8 MB, free: 7.863 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.417e-05/0.4422, allocations: 3.969 kB / 404.8 MB, free: 7.863 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.84e-05/0.4422, allocations: 30.56 kB / 404.8 MB, free: 7.824 MB / 314.7 MB Notification: Performance of pre-optimization done (n=4): time 3.263e-06/0.4422, allocations: 3.984 kB / 404.8 MB, free: 7.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004568/0.4427, allocations: 116 kB / 404.9 MB, free: 7.766 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.162e-05/0.4427, allocations: 84.91 kB / 405 MB, free: 7.668 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.384e-05/0.4428, allocations: 114.6 kB / 405.1 MB, free: 7.57 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.481e-05/0.4429, allocations: 29.55 kB / 405.2 MB, free: 7.539 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.73e-05/0.4429, allocations: 161.9 kB / 405.3 MB, free: 7.383 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.061e-05/0.4429, allocations: 15.16 kB / 405.3 MB, free: 7.375 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.913e-06/0.443, allocations: 0 / 405.3 MB, free: 7.375 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.839e-05/0.443, allocations: 318.7 kB / 405.6 MB, free: 7.055 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.793e-05/0.4431, allocations: 26.17 kB / 405.7 MB, free: 7.047 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.391e-05/0.4431, allocations: 31.91 kB / 405.7 MB, free: 7.027 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.25e-05/0.4432, allocations: 48.06 kB / 405.7 MB, free: 6.992 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.618e-06/0.4432, allocations: 0 / 405.7 MB, free: 6.992 MB / 314.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001703/0.4434, allocations: 107.9 kB / 405.9 MB, free: 6.918 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.724e-05/0.4434, allocations: 29.58 kB / 405.9 MB, free: 6.887 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.479e-06/0.4435, allocations: 0 / 405.9 MB, free: 6.887 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.4435, allocations: 7.828 kB / 405.9 MB, free: 6.883 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.4436, allocations: 11.5 kB / 405.9 MB, free: 6.883 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.44e-06/0.4436, allocations: 0 / 405.9 MB, free: 6.883 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.889e-05/0.4437, allocations: 19.36 kB / 405.9 MB, free: 6.875 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.926e-05/0.4437, allocations: 0 / 405.9 MB, free: 6.875 MB / 314.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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 5.48e-05/0.4438, allocations: 108.9 kB / 406 MB, free: 6.766 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.317e-05/0.4439, allocations: 7.594 kB / 406 MB, free: 6.762 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002086/0.4441, allocations: 92.27 kB / 406.1 MB, free: 6.711 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.861e-06/0.4441, allocations: 0 / 406.1 MB, free: 6.711 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.289e-06/0.4441, allocations: 0 / 406.1 MB, free: 6.711 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.243e-06/0.4441, allocations: 7.953 kB / 406.1 MB, free: 6.707 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003792/0.4445, allocations: 349.1 kB / 406.5 MB, free: 6.379 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.736e-06/0.4445, allocations: 0 / 406.5 MB, free: 6.379 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.887e-05/0.4447, allocations: 19.08 kB / 406.5 MB, free: 6.371 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.663e-06/0.4447, allocations: 0 / 406.5 MB, free: 6.371 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.4447, allocations: 3.812 kB / 406.5 MB, free: 6.371 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.441e-06/0.4447, allocations: 0 / 406.5 MB, free: 6.371 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.677e-06/0.4447, allocations: 0 / 406.5 MB, free: 6.371 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001672/0.4449, allocations: 172.7 kB / 406.7 MB, free: 6.227 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.019e-05/0.4449, allocations: 84.67 kB / 406.7 MB, free: 6.129 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.145e-05/0.445, allocations: 0 / 406.7 MB, free: 6.129 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001081/0.4451, allocations: 14.17 kB / 406.8 MB, free: 6.125 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.809e-05/0.4451, allocations: 0 / 406.8 MB, free: 6.125 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.035e-05/0.4452, allocations: 3.875 kB / 406.8 MB, free: 6.125 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.086e-05/0.4452, allocations: 98.11 kB / 406.9 MB, free: 6.047 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.743e-06/0.4452, allocations: 0 / 406.9 MB, free: 6.047 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003573/0.4456, allocations: 35.03 kB / 406.9 MB, free: 6.031 MB / 314.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * 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.000892/0.4465, allocations: 326 kB / 407.2 MB, free: 5.84 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001808/0.4467, allocations: 99.47 kB / 407.3 MB, free: 5.773 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.877e-06/0.4467, allocations: 0 / 407.3 MB, free: 5.773 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 5.57e-05/0.4468, allocations: 25.66 kB / 407.3 MB, free: 5.77 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002233/0.447, allocations: 9.141 kB / 407.3 MB, free: 5.766 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002996/0.4474, allocations: 131.1 kB / 407.5 MB, free: 5.648 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001317/0.4475, allocations: 0.6958 MB / 408.2 MB, free: 4.945 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.602e-05/0.4476, allocations: 15.27 kB / 408.2 MB, free: 4.934 MB / 314.7 MB Notification: Performance of SimCode: time 3.146e-06/0.4476, allocations: 0 / 408.2 MB, free: 4.934 MB / 314.7 MB Notification: Performance of Templates: time 0.003551/0.4512, allocations: 1.601 MB / 409.8 MB, free: 4.117 MB / 314.7 MB make -j1 -f ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable1D.Test25_usertab.makefile b'clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Data/Tables" -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Data/Tables" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable1D.Test25_usertabCalcHelperMain.o OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable1D.Test25_usertabCalcHelperMain.cpp\nIn file included from OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable1D.Test25_usertabCalcHelperMain.cpp:28:\nIn file included from ./OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable1D.Test25_usertabFunctions.cpp:5:\nIn file included from /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Data/Tables/usertab.c:14:\n/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Data/Tables/usertab.h:75:13: warning: ISO C++11 does not allow conversion from string literal to \'char *\' [-Wwritable-strings]\n {"TestTable_1D_Time", TestTable_1D_Time, 0, {6, 2}}\n ^\n/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Data/Tables/usertab.h:76:13: warning: ISO C++11 does not allow conversion from string literal to \'char *\' [-Wwritable-strings]\n ,{"TestTable_1D_a" , TestTable_1D_a, 1, {4, 2}}\n ^\n/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Data/Tables/usertab.h:77:13: warning: ISO C++11 does not allow conversion from string literal to \'char *\' [-Wwritable-strings]\n ,{"TestTable_1D_b" , TestTable_1D_b, 1, {5, 3}}\n ^\n/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Data/Tables/usertab.h:78:13: warning: ISO C++11 does not allow conversion from string literal to \'char *\' [-Wwritable-strings]\n ,{"TestTable_2D" , TestTable_2D, 2, {5, 4}}\n ^\nIn file included from OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable1D.Test25_usertabCalcHelperMain.cpp:28:\n./OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable1D.Test25_usertabFunctions.cpp:276:18: error: no matching function for call to \'mydummyfunc\'\n dummy_y__ext = mydummyfunc(ConstArray(dummy_u_).getData());\n ^~~~~~~~~~~\n./OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable1D.Test25_usertabFunctions.cpp:6:8: note: candidate function not viable: 1st argument (\'const double *\') would lose const qualifier\ndouble mydummyfunc(double* dummy_in) {\n ^\n4 warnings and 1 error generated.\n: recipe for target \'OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable1D.Test25_usertabCalcHelperMain.o\' failed\nmake: *** [OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable1D.Test25_usertabCalcHelperMain.o] Error 1\n'