Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test66_usertab,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test66_usertab",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.01/2.01, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.319e-05/5.338e-05, allocations: 8 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1613/0.1614, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4793/0.6407, allocations: 75.87 MB / 397.7 MB, free: 14.07 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002887/0.641, allocations: 83.03 kB / 397.8 MB, free: 13.99 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01845/0.6595, allocations: 3.852 MB / 401.6 MB, free: 10.14 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.6596, allocations: 4 kB / 401.6 MB, free: 10.14 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.982e-05/0.6596, allocations: 7.984 kB / 401.7 MB, free: 10.13 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.0006169/0.6602, allocations: 408 kB / 402.1 MB, free: 9.684 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.562e-05/0.6603, allocations: 12.03 kB / 402.1 MB, free: 9.672 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.395e-05/0.6604, allocations: 30.56 kB / 402.1 MB, free: 9.633 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.249e-05/0.6604, allocations: 7.906 kB / 402.1 MB, free: 9.625 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003169/0.6607, allocations: 198.8 kB / 402.3 MB, free: 9.391 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/0.6608, allocations: 4 kB / 402.3 MB, free: 9.387 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.035e-05/0.6608, allocations: 8 kB / 402.3 MB, free: 9.379 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001837/0.661, allocations: 67.86 kB / 402.4 MB, free: 9.301 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.661, allocations: 3.938 kB / 402.4 MB, free: 9.297 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/0.6611, allocations: 0 / 402.4 MB, free: 9.297 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.6611, allocations: 0 / 402.4 MB, free: 9.297 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.309e-05/0.6612, allocations: 19.98 kB / 402.4 MB, free: 9.277 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005104/0.6617, allocations: 284.9 kB / 402.7 MB, free: 8.949 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001121/0.6618, allocations: 42.55 kB / 402.7 MB, free: 8.898 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.084e-05/0.6619, allocations: 16.86 kB / 402.7 MB, free: 8.879 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.993e-05/0.6619, allocations: 0 / 402.7 MB, free: 8.879 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001627/0.6621, allocations: 63.44 kB / 402.8 MB, free: 8.805 MB / 330.7 MB Notification: Performance of pre-optimization done (n=5): time 4.158e-06/0.6621, allocations: 3.984 kB / 402.8 MB, free: 8.801 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0005549/0.6627, allocations: 121.3 kB / 402.9 MB, free: 8.676 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.491e-05/0.6628, allocations: 81.11 kB / 403 MB, free: 8.578 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001946/0.663, allocations: 128.9 kB / 403.1 MB, free: 8.445 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.513e-05/0.663, allocations: 25.7 kB / 403.1 MB, free: 8.414 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.049e-05/0.6631, allocations: 158.6 kB / 403.3 MB, free: 8.258 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.374e-05/0.6632, allocations: 19.8 kB / 403.3 MB, free: 8.238 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.785e-06/0.6632, allocations: 0 / 403.3 MB, free: 8.238 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.6634, allocations: 318.8 kB / 403.6 MB, free: 7.918 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.472e-05/0.6635, allocations: 19.98 kB / 403.7 MB, free: 7.898 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001049/0.6636, allocations: 45.66 kB / 403.7 MB, free: 7.848 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001095/0.6637, allocations: 57.62 kB / 403.8 MB, free: 7.785 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.6637, allocations: 0 / 403.8 MB, free: 7.785 MB / 330.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003177/0.6641, allocations: 119.2 kB / 403.9 MB, free: 7.656 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.179e-05/0.6641, allocations: 37.69 kB / 403.9 MB, free: 7.613 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.6641, allocations: 0 / 403.9 MB, free: 7.613 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.063e-05/0.6642, allocations: 0 / 403.9 MB, free: 7.613 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001335/0.6643, allocations: 12 kB / 403.9 MB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.6643, allocations: 3.953 kB / 403.9 MB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.946e-05/0.6644, allocations: 3.984 kB / 403.9 MB, free: 7.594 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.146e-05/0.6645, allocations: 8.031 kB / 403.9 MB, free: 7.586 MB / 330.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.0001104/0.6646, allocations: 112.9 kB / 404 MB, free: 7.469 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.994e-05/0.6646, allocations: 7.906 kB / 404.1 MB, free: 7.461 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000325/0.665, allocations: 94.23 kB / 404.1 MB, free: 7.363 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.665, allocations: 0 / 404.1 MB, free: 7.363 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.665, allocations: 3.984 kB / 404.1 MB, free: 7.359 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/0.665, allocations: 3.953 kB / 404.2 MB, free: 7.355 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005633/0.6656, allocations: 358.5 kB / 404.5 MB, free: 6.949 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.6656, allocations: 0 / 404.5 MB, free: 6.949 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.285e-05/0.6657, allocations: 8 kB / 404.5 MB, free: 6.941 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.042e-06/0.6657, allocations: 0 / 404.5 MB, free: 6.941 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/0.6658, allocations: 4.234 kB / 404.5 MB, free: 6.938 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.194e-05/0.6658, allocations: 8.266 kB / 404.5 MB, free: 6.93 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.6658, allocations: 0 / 404.5 MB, free: 6.93 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002801/0.6661, allocations: 183.5 kB / 404.7 MB, free: 6.734 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.563e-05/0.6662, allocations: 96.94 kB / 404.8 MB, free: 6.621 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.371e-05/0.6663, allocations: 4 kB / 404.8 MB, free: 6.617 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.6664, allocations: 4 kB / 404.8 MB, free: 6.613 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.873e-05/0.6664, allocations: 7.938 kB / 404.8 MB, free: 6.605 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.792e-05/0.6665, allocations: 4 kB / 404.8 MB, free: 6.602 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001321/0.6666, allocations: 108.5 kB / 404.9 MB, free: 6.496 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6666, allocations: 0 / 404.9 MB, free: 6.496 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004412/0.6671, allocations: 47.88 kB / 405 MB, free: 6.449 MB / 330.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.001856/0.6689, allocations: 1.034 MB / 406 MB, free: 5.461 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003217/0.6693, allocations: 107.4 kB / 406.1 MB, free: 5.344 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.6693, allocations: 4 kB / 406.1 MB, free: 5.34 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.644e-05/0.6694, allocations: 23.94 kB / 406.1 MB, free: 5.316 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003367/0.6698, allocations: 19.94 kB / 406.2 MB, free: 5.297 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007332/0.6705, allocations: 205.8 kB / 406.4 MB, free: 5.051 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003816/0.6709, allocations: 0.6965 MB / 407 MB, free: 4.328 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/0.6711, allocations: 31.36 kB / 407.1 MB, free: 4.297 MB / 330.7 MB Notification: Performance of SimCode: time 1.212e-06/0.6711, allocations: 4 kB / 407.1 MB, free: 4.293 MB / 330.7 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Data/Tables" -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 In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test66_usertabCalcHelperMain.cpp:28: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test66_usertabFunctions.cpp:5: In file included from /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Data/Tables/usertab.c:14: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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] {"TestTable_1D_Time", TestTable_1D_Time, 0, {6, 2}} ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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] ,{"TestTable_1D_a" , TestTable_1D_a, 1, {4, 2}} ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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] ,{"TestTable_1D_b" , TestTable_1D_b, 1, {5, 3}} ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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] ,{"TestTable_2D" , TestTable_2D, 2, {5, 4}} ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test66_usertabCalcHelperMain.cpp:28: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test66_usertabFunctions.cpp:364:18: error: no matching function for call to 'mydummyfunc' dummy_y__ext = mydummyfunc(ConstArray(dummy_u_).getData()); ^~~~~~~~~~~ ./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 double mydummyfunc(double* dummy_in) { ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test66_usertabCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test66_usertabFMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 5 warnings and 1 error generated. : recipe for target 'OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test66_usertabCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test66_usertabCalcHelperMain.o] Error 1