Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertab.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Tables.CombiTimeTable.Test66_usertab,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.nextTimeEvent|t_new.y.1.|d_t_new.y|realExpression.y",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertab") Notification: Performance of loadModel(ModelicaTest): time 2.334/2.334, allocations: 234.9 MB / 250.5 MB, free: 9.656 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004404/0.0004406, allocations: 16 kB / 314.4 MB, free: 9.664 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2974/0.2978, allocations: 54.86 MB / 369.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1247/0.4226, allocations: 82.24 MB / 451.5 MB, free: 10.41 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002662/0.4229, allocations: 71.95 kB / 451.6 MB, free: 10.34 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$t_new.getTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$t_new.getTableTimeTmin. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$t_new.getTableTimeTmax. Notification: Performance of FrontEnd - DAE generated: time 0.01901/0.442, allocations: 4.433 MB / 456 MB, free: 5.891 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.572e-06/0.442, allocations: 0 / 456 MB, free: 5.891 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.078e-05/0.442, allocations: 7.984 kB / 456 MB, free: 5.883 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006273/0.4427, allocations: 466.2 kB / 456.5 MB, free: 5.367 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.4427, allocations: 8.031 kB / 456.5 MB, free: 5.359 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.511e-05/0.4428, allocations: 11.89 kB / 456.5 MB, free: 5.348 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003598/0.4432, allocations: 202.9 kB / 456.7 MB, free: 5.109 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.22e-05/0.4432, allocations: 4 kB / 456.7 MB, free: 5.105 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.467e-05/0.4432, allocations: 7.984 kB / 456.7 MB, free: 5.098 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002146/0.4435, allocations: 79.31 kB / 456.8 MB, free: 5.008 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.4435, allocations: 0 / 456.8 MB, free: 5.008 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.718e-05/0.4435, allocations: 7.891 kB / 456.8 MB, free: 5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.4435, allocations: 3.984 kB / 456.8 MB, free: 4.996 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001207/0.4437, allocations: 31.97 kB / 456.8 MB, free: 4.965 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005288/0.4442, allocations: 300.9 kB / 457.1 MB, free: 4.621 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002218/0.4445, allocations: 58.5 kB / 457.2 MB, free: 4.555 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.507e-05/0.4445, allocations: 4 kB / 457.2 MB, free: 4.551 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002175/0.4447, allocations: 72.17 kB / 457.3 MB, free: 4.469 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 3.561e-06/0.4448, allocations: 4 kB / 457.3 MB, free: 4.465 MB / 378.7 MB Notification: Performance of matching and sorting (n=9): time 0.0008026/0.4456, allocations: 193.3 kB / 457.5 MB, free: 4.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.493e-05/0.4457, allocations: 81.11 kB / 457.5 MB, free: 4.172 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001877/0.4459, allocations: 142.8 kB / 457.7 MB, free: 4.023 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.839e-05/0.4459, allocations: 29.64 kB / 457.7 MB, free: 3.988 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.631e-05/0.446, allocations: 162.6 kB / 457.9 MB, free: 3.828 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.218e-05/0.4461, allocations: 27.64 kB / 457.9 MB, free: 3.801 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.792e-06/0.4461, allocations: 0 / 457.9 MB, free: 3.801 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.4463, allocations: 322.8 kB / 458.2 MB, free: 3.477 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.4464, allocations: 31.92 kB / 458.2 MB, free: 3.445 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000136/0.4465, allocations: 60.38 kB / 458.3 MB, free: 3.379 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001537/0.4467, allocations: 69.7 kB / 458.4 MB, free: 3.305 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.197e-06/0.4467, allocations: 0 / 458.4 MB, free: 3.305 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004152/0.4471, allocations: 167.2 kB / 458.5 MB, free: 3.129 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.528e-05/0.4472, allocations: 37.77 kB / 458.6 MB, free: 3.086 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.529e-06/0.4472, allocations: 3.984 kB / 458.6 MB, free: 3.082 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.4473, allocations: 4 kB / 458.6 MB, free: 3.078 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001265/0.4474, allocations: 12 kB / 458.6 MB, free: 3.066 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.571e-06/0.4474, allocations: 0 / 458.6 MB, free: 3.066 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.854e-05/0.4475, allocations: 15.98 kB / 458.6 MB, free: 3.051 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.451e-05/0.4475, allocations: 4 kB / 458.6 MB, free: 3.047 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * 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 0.0001436/0.4477, allocations: 123 kB / 458.7 MB, free: 2.918 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.281e-05/0.4477, allocations: 11.86 kB / 458.7 MB, free: 2.906 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003785/0.4481, allocations: 134.3 kB / 458.9 MB, free: 2.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.104e-06/0.4482, allocations: 0 / 458.9 MB, free: 2.77 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.76e-06/0.4482, allocations: 3.938 kB / 458.9 MB, free: 2.766 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.095e-06/0.4482, allocations: 0 / 458.9 MB, free: 2.766 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006932/0.4489, allocations: 419.2 kB / 459.3 MB, free: 2.297 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.884e-06/0.4489, allocations: 0 / 459.3 MB, free: 2.297 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.541e-05/0.449, allocations: 12 kB / 459.3 MB, free: 2.285 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.175e-06/0.449, allocations: 4.031 kB / 459.3 MB, free: 2.281 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.76e-05/0.449, allocations: 7.984 kB / 459.3 MB, free: 2.273 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.204e-06/0.449, allocations: 4 kB / 459.3 MB, free: 2.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.463e-06/0.4491, allocations: 288 / 459.3 MB, free: 2.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000371/0.4494, allocations: 229.8 kB / 459.5 MB, free: 2.02 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001021/0.4496, allocations: 104.9 kB / 459.6 MB, free: 1.898 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.373e-05/0.4496, allocations: 4 kB / 459.6 MB, free: 1.895 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001153/0.4497, allocations: 4 kB / 459.6 MB, free: 1.891 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.778e-05/0.4498, allocations: 7.984 kB / 459.6 MB, free: 1.883 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.781e-05/0.4498, allocations: 4 kB / 459.7 MB, free: 1.879 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001384/0.45, allocations: 115.9 kB / 459.8 MB, free: 1.766 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.92e-07/0.45, allocations: 0 / 459.8 MB, free: 1.766 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004379/0.4504, allocations: 51.89 kB / 459.8 MB, free: 1.715 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 2 (t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001907/0.4523, allocations: 0.561 MB / 460.4 MB, free: 1.238 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004094/0.4528, allocations: 159.2 kB / 460.5 MB, free: 1.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.594e-06/0.4528, allocations: 0 / 460.5 MB, free: 1.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.4529, allocations: 39.92 kB / 460.6 MB, free: 1.031 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002997/0.4532, allocations: 15.98 kB / 460.6 MB, free: 1.016 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005714/0.4538, allocations: 248.2 kB / 460.8 MB, free: 0.7305 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003731/0.4542, allocations: 0.7043 MB / 461.5 MB, free: 0 / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.982e-05/0.4543, allocations: 15.44 kB / 461.5 MB, free: 15.98 MB / 394.7 MB Notification: Performance of SimCode: time 1.897e-06/0.4543, allocations: 4 kB / 461.6 MB, free: 15.98 MB / 394.7 MB Notification: Performance of Templates: time 0.005323/0.4597, allocations: 2.215 MB / 463.8 MB, free: 13.77 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_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.2/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.2/Resources/Data/Tables" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.o OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.cpp\nIn file included from OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.cpp:28:\nIn file included from ./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabFunctions.cpp:5:\nIn file included from /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables/usertab.c:14:\n/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2/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.2/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.2/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.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.cpp:28:\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabFunctions.cpp:364:18: error: no matching function for call to \'mydummyfunc\'\n dummy_y__ext = mydummyfunc(ConstArray(dummy_u_).getData());\n ^~~~~~~~~~~\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabFunctions.cpp:6:8: note: candidate function not viable: 1st argument (\'const double *\') would lose const qualifier\ndouble mydummyfunc(double* dummy_in) {\n ^\nIn file included from OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.cpp:29:\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabInitialize.cpp:301:39: warning: magnitude of floating-point constant too large for type \'double\'; maximum is 1.7976931348623157E+308 [-Wliteral-range]\n if (_t_new_P_nextTimeEventScaled_ < 1.797693134862316e+308) {\n ^\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabInitialize.cpp:304:13: warning: magnitude of floating-point constant too large for type \'double\'; maximum is 1.7976931348623157E+308 [-Wliteral-range]\n tmp19 = 1.797693134862316e+308;\n ^\nIn file included from OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.cpp:33:\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertab.cpp:208:41: warning: magnitude of floating-point constant too large for type \'double\'; maximum is 1.7976931348623157E+308 [-Wliteral-range]\n if (_t_new_P_nextTimeEventScaled_ < 1.797693134862316e+308) {\n ^\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertab.cpp:211:14: warning: magnitude of floating-point constant too large for type \'double\'; maximum is 1.7976931348623157E+308 [-Wliteral-range]\n tmp1 = 1.797693134862316e+308;\n ^\n8 warnings and 1 error generated.\n: recipe for target \'OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.o\' failed\nmake: *** [OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.o] Error 1\n'