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.CombiTimeTable.Test66_usertab.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertab") Notification: Performance of loadModel(ModelicaTest): time 1.862/1.862, allocations: 209.4 MB / 217.3 MB, free: 4.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.245e-05/2.254e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2569, allocations: 48.69 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1124/0.3694, allocations: 75.2 MB / 395.2 MB, free: 5.25 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002404/0.3697, allocations: 71.95 kB / 395.3 MB, free: 5.18 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01589/0.3856, allocations: 3.854 MB / 399.2 MB, free: 1.32 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.27e-06/0.3856, allocations: 0 / 399.2 MB, free: 1.32 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.3857, allocations: 0 / 399.2 MB, free: 1.32 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005043/0.3862, allocations: 400.1 kB / 399.5 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.3862, allocations: 8.031 kB / 399.5 MB, free: 0.8711 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.443e-05/0.3863, allocations: 7.906 kB / 399.6 MB, free: 0.8633 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002808/0.3866, allocations: 200.5 kB / 399.8 MB, free: 0.6289 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.941e-06/0.3866, allocations: 0 / 399.8 MB, free: 0.6289 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.859e-05/0.3866, allocations: 3.938 kB / 399.8 MB, free: 0.625 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.298e-05/0.3867, allocations: 23.98 kB / 399.8 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001253/0.3869, allocations: 63.33 kB / 399.8 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.3869, allocations: 0 / 399.8 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.3869, allocations: 0 / 399.8 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.166e-06/0.3869, allocations: 3.938 kB / 399.8 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004102/0.3874, allocations: 265.5 kB / 400.1 MB, free: 232 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.125e-05/0.3875, allocations: 38.52 kB / 400.1 MB, free: 184 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.799e-05/0.3875, allocations: 16.94 kB / 400.2 MB, free: 164 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.887e-05/0.3875, allocations: 3.984 kB / 400.2 MB, free: 160 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001216/0.3877, allocations: 55.41 kB / 400.2 MB, free: 92 kB / 330.7 MB Notification: Performance of pre-optimization done (n=5): time 2.533e-06/0.3877, allocations: 0 / 400.2 MB, free: 92 kB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004424/0.3881, allocations: 113.3 kB / 400.3 MB, free: 15.97 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.511e-05/0.3882, allocations: 77.11 kB / 400.4 MB, free: 15.88 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001525/0.3884, allocations: 129.9 kB / 400.5 MB, free: 15.75 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/0.3884, allocations: 29.7 kB / 400.6 MB, free: 15.71 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.706e-05/0.3885, allocations: 154.6 kB / 400.7 MB, free: 15.56 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.133e-05/0.3886, allocations: 19.8 kB / 400.7 MB, free: 15.54 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.627e-06/0.3886, allocations: 0 / 400.7 MB, free: 15.54 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.3887, allocations: 318.8 kB / 401 MB, free: 15.22 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.356e-05/0.3888, allocations: 16 kB / 401.1 MB, free: 15.2 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.207e-05/0.3889, allocations: 37.7 kB / 401.1 MB, free: 15.16 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.201e-05/0.389, allocations: 24.02 kB / 401.1 MB, free: 15.14 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.389, allocations: 4 kB / 401.1 MB, free: 15.13 MB / 346.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002237/0.3892, allocations: 89.53 kB / 401.2 MB, free: 15.04 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.302e-05/0.3893, allocations: 34.48 kB / 401.2 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.3893, allocations: 0 / 401.2 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.3893, allocations: 256 / 401.2 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.86e-05/0.3894, allocations: 11.98 kB / 401.3 MB, free: 14.99 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.3894, allocations: 4 kB / 401.3 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.642e-05/0.3895, allocations: 4 kB / 401.3 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.257e-05/0.3895, allocations: 4 kB / 401.3 MB, free: 14.98 MB / 346.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: 3 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 7 * 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.000102/0.3897, allocations: 124.9 kB / 401.4 MB, free: 14.85 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.795e-05/0.3897, allocations: 7.891 kB / 401.4 MB, free: 14.84 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002413/0.3899, allocations: 90.23 kB / 401.5 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.543e-06/0.39, allocations: 0 / 401.5 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.999e-06/0.39, allocations: 0 / 401.5 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.276e-06/0.39, allocations: 3.984 kB / 401.5 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004293/0.3904, allocations: 335.2 kB / 401.8 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.81e-06/0.3905, allocations: 4 kB / 401.8 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.068e-05/0.3905, allocations: 7.984 kB / 401.8 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.394e-06/0.3905, allocations: 4 kB / 401.8 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.3906, allocations: 0 / 401.8 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.341e-06/0.3906, allocations: 80 / 401.8 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.674e-06/0.3906, allocations: 3.984 kB / 401.8 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002315/0.3908, allocations: 175.4 kB / 402 MB, free: 14.17 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.744e-05/0.3909, allocations: 85.02 kB / 402.1 MB, free: 14.07 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.688e-05/0.3909, allocations: 4 kB / 402.1 MB, free: 14.06 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.517e-05/0.3911, allocations: 4 kB / 402.1 MB, free: 14.06 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.112e-05/0.3911, allocations: 7.984 kB / 402.1 MB, free: 14.05 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.532e-05/0.3911, allocations: 7.938 kB / 402.1 MB, free: 14.04 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.993e-05/0.3912, allocations: 104 kB / 402.2 MB, free: 13.94 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.58e-07/0.3913, allocations: 0 / 402.2 MB, free: 13.94 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003972/0.3917, allocations: 51.91 kB / 402.3 MB, free: 13.89 MB / 346.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: 2 ($whenCondition1,t_new.nextTimeEvent) * Number of discrete states: 1 (t_new.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.00115/0.3928, allocations: 381.2 kB / 402.6 MB, free: 13.58 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002167/0.3931, allocations: 111.3 kB / 402.7 MB, free: 13.46 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.782e-06/0.3931, allocations: 4 kB / 402.7 MB, free: 13.45 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.055e-05/0.3931, allocations: 16 kB / 402.8 MB, free: 13.44 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000262/0.3934, allocations: 21.36 kB / 402.8 MB, free: 13.42 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003421/0.3938, allocations: 140 kB / 402.9 MB, free: 13.25 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000365/0.3942, allocations: 0.6963 MB / 403.6 MB, free: 12.53 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.078e-05/0.3942, allocations: 19.42 kB / 403.6 MB, free: 12.51 MB / 346.7 MB Notification: Performance of SimCode: time 1.48e-06/0.3943, allocations: 0 / 403.6 MB, free: 12.51 MB / 346.7 MB Notification: Performance of Templates: time 0.0049/0.3992, allocations: 2.005 MB / 405.6 MB, free: 10.51 MB / 346.7 MB make -j1 -f ModelicaTest_3.2.1_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=5 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/include/omc/cpp/" -I. "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Data/Tables" -I"." -I"." -I"." "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Data/Tables" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.o OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.cpp\nIn file included from OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.cpp:28:\nIn file included from ./OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabFunctions.cpp:5:\nIn file included from /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Data/Tables/usertab.c:14:\n/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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/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/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/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.CombiTimeTable.Test66_usertabCalcHelperMain.cpp:28:\n./OMCppModelicaTest_3.2.1_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.1_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 ^\n4 warnings and 1 error generated.\n: recipe for target \'OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.o\' failed\nmake: *** [OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.o] Error 1\n'