Running command: translateModel(ModelicaTest.Tables.CombiTimeTable.Test66_usertab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertab") Notification: Performance of loadModel(ModelicaTest): time 2.38/2.38, allocations: 270 MB / 282.7 MB, free: 1.77 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.589e-05/3.595e-05, allocations: 7.938 kB / 347 MB, free: 3.125 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3294, allocations: 61.89 MB / 408.9 MB, free: 10.76 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1378/0.4672, allocations: 89.29 MB / 498.1 MB, free: 1.348 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002358/0.4675, allocations: 75.95 kB / 498.2 MB, free: 1.273 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02273/0.4903, allocations: 5.347 MB / 0.4918 GB, free: 11.91 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.902e-06/0.4903, allocations: 0 / 0.4918 GB, free: 11.91 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.344e-05/0.4903, allocations: 0 / 0.4918 GB, free: 11.91 MB / 426.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.0005411/0.4909, allocations: 390.1 kB / 0.4921 GB, free: 11.49 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.613e-05/0.491, allocations: 12.03 kB / 0.4921 GB, free: 11.48 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.014e-05/0.491, allocations: 7.906 kB / 0.4922 GB, free: 11.47 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003566/0.4914, allocations: 206.9 kB / 0.4924 GB, free: 11.23 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.4914, allocations: 4 kB / 0.4924 GB, free: 11.22 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.448e-05/0.4915, allocations: 11.94 kB / 0.4924 GB, free: 11.21 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001654/0.4916, allocations: 71.33 kB / 0.4924 GB, free: 11.13 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.4917, allocations: 0 / 0.4924 GB, free: 11.13 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.328e-05/0.4917, allocations: 0 / 0.4924 GB, free: 11.13 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.487e-06/0.4917, allocations: 0 / 0.4924 GB, free: 11.13 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.764e-05/0.4918, allocations: 19.98 kB / 0.4925 GB, free: 11.11 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000427/0.4922, allocations: 280.9 kB / 0.4927 GB, free: 10.79 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001834/0.4924, allocations: 66.56 kB / 0.4928 GB, free: 10.71 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.61e-05/0.4925, allocations: 24.92 kB / 0.4928 GB, free: 10.68 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.442e-05/0.4925, allocations: 0 / 0.4928 GB, free: 10.68 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001693/0.4927, allocations: 67.39 kB / 0.4929 GB, free: 10.61 MB / 426.7 MB Notification: Performance of pre-optimization done (n=7): time 2.914e-06/0.4927, allocations: 4 kB / 0.4929 GB, free: 10.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=10): time 0.0006049/0.4934, allocations: 181.1 kB / 0.493 GB, free: 10.42 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.315e-05/0.4934, allocations: 81.11 kB / 0.4931 GB, free: 10.32 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001979/0.4937, allocations: 139.6 kB / 0.4933 GB, free: 10.18 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.332e-05/0.4937, allocations: 29.7 kB / 0.4933 GB, free: 10.14 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.254e-05/0.4938, allocations: 162.8 kB / 0.4934 GB, free: 9.98 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.129e-05/0.4939, allocations: 35.53 kB / 0.4935 GB, free: 9.945 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.63e-06/0.4939, allocations: 0 / 0.4935 GB, free: 9.945 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.4941, allocations: 318.8 kB / 0.4938 GB, free: 9.625 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.745e-05/0.4942, allocations: 35.92 kB / 0.4938 GB, free: 9.59 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.4943, allocations: 54.56 kB / 0.4939 GB, free: 9.527 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.828e-05/0.4944, allocations: 27.98 kB / 0.4939 GB, free: 9.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.4944, allocations: 4 kB / 0.4939 GB, free: 9.496 MB / 426.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002646/0.4947, allocations: 105.6 kB / 0.494 GB, free: 9.387 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.4947, allocations: 4 kB / 0.494 GB, free: 9.383 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.487e-06/0.4948, allocations: 7.984 kB / 0.494 GB, free: 9.375 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/0.4948, allocations: 4.062 kB / 0.494 GB, free: 9.371 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00015/0.4949, allocations: 27.92 kB / 0.494 GB, free: 9.344 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.946e-06/0.495, allocations: 0 / 0.494 GB, free: 9.344 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.36e-05/0.4951, allocations: 4 kB / 0.494 GB, free: 9.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.329e-05/0.4951, allocations: 4 kB / 0.494 GB, free: 9.336 MB / 426.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 prepare postOptimizeDAE: time 0.0001072/0.4952, allocations: 112.9 kB / 0.4942 GB, free: 9.219 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.431e-05/0.4953, allocations: 7.906 kB / 0.4942 GB, free: 9.211 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003332/0.4956, allocations: 142.2 kB / 0.4943 GB, free: 9.066 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.493e-06/0.4956, allocations: 4 kB / 0.4943 GB, free: 9.062 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.4956, allocations: 0 / 0.4943 GB, free: 9.062 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.467e-06/0.4957, allocations: 3.938 kB / 0.4943 GB, free: 9.059 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006862/0.4963, allocations: 423.3 kB / 0.4947 GB, free: 8.586 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.525e-06/0.4964, allocations: 0 / 0.4947 GB, free: 8.586 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.895e-05/0.4965, allocations: 15.94 kB / 0.4947 GB, free: 8.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.704e-06/0.4965, allocations: 4.031 kB / 0.4947 GB, free: 8.566 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.278e-05/0.4965, allocations: 15.98 kB / 0.4947 GB, free: 8.551 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.572e-06/0.4965, allocations: 0 / 0.4947 GB, free: 8.551 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.4965, allocations: 3.953 kB / 0.4947 GB, free: 8.547 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003271/0.4969, allocations: 221.9 kB / 0.495 GB, free: 8.305 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.751e-05/0.497, allocations: 93 kB / 0.495 GB, free: 8.195 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.213e-05/0.497, allocations: 0 / 0.495 GB, free: 8.195 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001408/0.4972, allocations: 15.95 kB / 0.4951 GB, free: 8.18 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.537e-05/0.4972, allocations: 11.92 kB / 0.4951 GB, free: 8.168 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.705e-05/0.4973, allocations: 4 kB / 0.4951 GB, free: 8.164 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001466/0.4974, allocations: 123.6 kB / 0.4952 GB, free: 8.047 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.174e-06/0.4974, allocations: 0 / 0.4952 GB, free: 8.047 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000411/0.4979, allocations: 55.84 kB / 0.4952 GB, free: 7.992 MB / 426.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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.00182/0.4997, allocations: 0.4942 MB / 0.4957 GB, free: 7.652 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002752/0.5, allocations: 75.86 kB / 0.4958 GB, free: 7.578 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.589e-06/0.5, allocations: 0 / 0.4958 GB, free: 7.578 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000108/0.5001, allocations: 43.92 kB / 0.4958 GB, free: 7.535 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003626/0.5005, allocations: 23.98 kB / 0.4959 GB, free: 7.512 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000479/0.501, allocations: 177.2 kB / 0.496 GB, free: 7.301 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004011/0.5014, allocations: 0.7045 MB / 0.4967 GB, free: 6.57 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.055e-05/0.5015, allocations: 19.42 kB / 0.4967 GB, free: 6.551 MB / 426.7 MB Notification: Performance of SimCode: time 1.903e-06/0.5015, allocations: 0 / 0.4967 GB, free: 6.551 MB / 426.7 MB Notification: Performance of Templates: time 0.005337/0.5069, allocations: 2.21 MB / 0.4989 GB, free: 4.34 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertab.makefile 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/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Data/Tables""-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Data/Tables" "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.cpp:28: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabFunctions.cpp:5: In file included from /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Data/Tables/usertab.c:14: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Data/Tables/usertab.h:75:13: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] {"TestTable_1D_Time", TestTable_1D_Time, 0, {6, 2}} ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Data/Tables/usertab.h:76:13: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] ,{"TestTable_1D_a" , TestTable_1D_a, 1, {4, 2}} ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Data/Tables/usertab.h:77:13: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] ,{"TestTable_1D_b" , TestTable_1D_b, 1, {5, 3}} ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Data/Tables/usertab.h:78:13: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] ,{"TestTable_2D" , TestTable_2D, 2, {5, 4}} ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabFunctions.cpp:266:33: error: no matching function for call to 'ModelicaStandardTables_CombiTimeTable_init2' externalCombiTimeTable__ext = ModelicaStandardTables_CombiTimeTable_init2(fileName_.c_str(), tableName_.c_str(), tmp5.getData(), table_.getDim(1), table_.getDim(2), startTime__ext, ConstArray(columns_).getData(), columns_.getDim(1), smoothness__ext, extrapolation__ext, shiftTime__ext, timeEvents__ext, verboseRead__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaStandardTables.h:142:23: note: candidate function not viable: 7th argument ('const int *') would lose const qualifier MODELICA_EXPORT void* ModelicaStandardTables_CombiTimeTable_init2(_In_z_ const char* fileName, ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabFunctions.cpp:390:18: error: no matching function for call to 'mydummyfunc' dummy_y__ext = mydummyfunc(ConstArray(dummy_u_).getData()); ^~~~~~~~~~~ ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabFunctions.cpp:6:8: note: candidate function not viable: 1st argument ('const double *') would lose const qualifier double mydummyfunc(double* dummy_in) { ^ 4 warnings and 2 errors generated. : recipe for target 'OMCppModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.o] Error 1