Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1Dv.Test18,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test18",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.428/2.428, allocations: 270 MB / 282.6 MB, free: 1.859 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.536e-05/3.541e-05, allocations: 4 kB / 347.1 MB, free: 3.117 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4561/0.4562, allocations: 61.88 MB / 408.9 MB, free: 10.75 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1573/0.6135, allocations: 88.39 MB / 497.3 MB, free: 2.242 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/0.6138, allocations: 71.95 kB / 497.4 MB, free: 2.172 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01976/0.6336, allocations: 4.6 MB / 0.4902 GB, free: 13.56 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.6336, allocations: 4 kB / 0.4902 GB, free: 13.56 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.363e-05/0.6337, allocations: 0 / 0.4902 GB, free: 13.56 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005126/0.6342, allocations: 386.2 kB / 0.4906 GB, free: 13.14 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/0.6343, allocations: 8.031 kB / 0.4906 GB, free: 13.13 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.851e-05/0.6343, allocations: 34.56 kB / 0.4906 GB, free: 13.09 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.517e-05/0.6344, allocations: 11.84 kB / 0.4907 GB, free: 13.07 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002893/0.6347, allocations: 183 kB / 0.4908 GB, free: 12.86 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.6347, allocations: 8 kB / 0.4908 GB, free: 12.85 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.909e-05/0.6347, allocations: 7.953 kB / 0.4908 GB, free: 12.84 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001967/0.635, allocations: 75.39 kB / 0.4909 GB, free: 12.75 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.635, allocations: 3.938 kB / 0.4909 GB, free: 12.75 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.635, allocations: 0 / 0.4909 GB, free: 12.75 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/0.635, allocations: 4 kB / 0.4909 GB, free: 12.75 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.807e-05/0.6351, allocations: 27.98 kB / 0.4909 GB, free: 12.72 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005762/0.6357, allocations: 304.7 kB / 0.4912 GB, free: 12.37 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001571/0.6359, allocations: 50.61 kB / 0.4913 GB, free: 12.31 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.546e-05/0.636, allocations: 20.97 kB / 0.4913 GB, free: 12.29 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.161e-05/0.636, allocations: 7.938 kB / 0.4913 GB, free: 12.28 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.981e-05/0.6361, allocations: 30.56 kB / 0.4913 GB, free: 12.24 MB / 426.7 MB Notification: Performance of pre-optimization done (n=5): time 2.375e-06/0.6361, allocations: 0 / 0.4913 GB, free: 12.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=8): time 0.0006805/0.6368, allocations: 161.2 kB / 0.4915 GB, free: 12.08 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.554e-05/0.6369, allocations: 81.11 kB / 0.4916 GB, free: 11.98 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001742/0.637, allocations: 122.8 kB / 0.4917 GB, free: 11.86 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.186e-05/0.6371, allocations: 29.7 kB / 0.4917 GB, free: 11.82 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.089e-05/0.6372, allocations: 154.6 kB / 0.4919 GB, free: 11.67 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.46e-05/0.6372, allocations: 31.55 kB / 0.4919 GB, free: 11.64 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.752e-06/0.6372, allocations: 0 / 0.4919 GB, free: 11.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.6374, allocations: 322.8 kB / 0.4922 GB, free: 11.31 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.457e-05/0.6374, allocations: 16 kB / 0.4922 GB, free: 11.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.366e-05/0.6375, allocations: 37.7 kB / 0.4923 GB, free: 11.25 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.671e-05/0.6376, allocations: 23.98 kB / 0.4923 GB, free: 11.23 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.6376, allocations: 0 / 0.4923 GB, free: 11.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002231/0.6379, allocations: 85.61 kB / 0.4924 GB, free: 11.14 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.6379, allocations: 13.5 kB / 0.4924 GB, free: 11.13 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.6379, allocations: 3.984 kB / 0.4924 GB, free: 11.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.638, allocations: 0 / 0.4924 GB, free: 11.12 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/0.6382, allocations: 20.03 kB / 0.4924 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.6382, allocations: 3.984 kB / 0.4924 GB, free: 11.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.511e-05/0.6383, allocations: 4 kB / 0.4924 GB, free: 11.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.528e-05/0.6383, allocations: 4 kB / 0.4924 GB, free: 11.09 MB / 426.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 (8): * Single equations (assignments): 8 * 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 8.646e-05/0.6384, allocations: 108.9 kB / 0.4925 GB, free: 10.98 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.529e-05/0.6385, allocations: 7.906 kB / 0.4925 GB, free: 10.97 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003177/0.6388, allocations: 114.1 kB / 0.4926 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.822e-06/0.6388, allocations: 3.984 kB / 0.4926 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.6388, allocations: 0 / 0.4926 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.6388, allocations: 0 / 0.4926 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006045/0.6395, allocations: 386.9 kB / 0.493 GB, free: 10.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.6395, allocations: 0 / 0.493 GB, free: 10.42 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001616/0.6397, allocations: 24.11 kB / 0.493 GB, free: 10.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.207e-06/0.6397, allocations: 4 kB / 0.493 GB, free: 10.39 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.6397, allocations: 8 kB / 0.493 GB, free: 10.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.6397, allocations: 0 / 0.493 GB, free: 10.39 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.6397, allocations: 0 / 0.493 GB, free: 10.39 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003034/0.64, allocations: 188.4 kB / 0.4932 GB, free: 10.19 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.617e-05/0.6402, allocations: 89 kB / 0.4933 GB, free: 10.08 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.182e-05/0.6402, allocations: 0 / 0.4933 GB, free: 10.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002183/0.6405, allocations: 12 kB / 0.4933 GB, free: 10.07 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.266e-05/0.6406, allocations: 11.98 kB / 0.4933 GB, free: 10.06 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.45e-05/0.6406, allocations: 0 / 0.4933 GB, free: 10.06 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001462/0.6408, allocations: 120.8 kB / 0.4934 GB, free: 9.941 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.6408, allocations: 0 / 0.4934 GB, free: 9.941 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004193/0.6412, allocations: 31.89 kB / 0.4935 GB, free: 9.91 MB / 426.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 (8): * Single equations (assignments): 8 * 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.001785/0.643, allocations: 1.057 MB / 0.4945 GB, free: 8.969 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002553/0.6433, allocations: 59.92 kB / 0.4946 GB, free: 8.91 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.6433, allocations: 0 / 0.4946 GB, free: 8.91 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 8.703e-05/0.6434, allocations: 31.98 kB / 0.4946 GB, free: 8.879 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003187/0.6438, allocations: 8 kB / 0.4946 GB, free: 8.871 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007804/0.6445, allocations: 220.6 kB / 0.4948 GB, free: 8.613 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003143/0.6449, allocations: 0.7043 MB / 0.4955 GB, free: 7.883 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001227/0.645, allocations: 31.42 kB / 0.4955 GB, free: 7.852 MB / 426.7 MB Notification: Performance of SimCode: time 1.293e-06/0.645, allocations: 0 / 0.4955 GB, free: 7.852 MB / 426.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 trunk/Resources/C-Sources" -DUSE_LOGGER -c -o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test18CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test18CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test18CalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test18Functions.cpp:209:31: error: no matching function for call to 'ModelicaStandardTables_CombiTable1D_init2' externalCombiTable1D__ext = ModelicaStandardTables_CombiTable1D_init2(fileName_.c_str(), tableName_.c_str(), tmp8.getData(), table_.getDim(1), table_.getDim(2), ConstArray(columns_).getData(), columns_.getDim(1), smoothness__ext, extrapolation__ext, verboseRead__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaStandardTables.h:269:23: note: candidate function not viable: 6th argument ('const int *') would lose const qualifier MODELICA_EXPORT void* ModelicaStandardTables_CombiTable1D_init2(_In_z_ const char* fileName, ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test18CalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test18InitializeParameter.cpp:39:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp28; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test18InitializeParameter.cpp:40:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Data/Tables/test.txt", tmp28); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test18CalcHelperMain.cpp:31: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test18Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp11; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test18Initialize.cpp:96:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Data/Tables/test.txt", tmp11); ~~~~~~~~~~ ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test18Initialize.cpp:278:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp19; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test18Initialize.cpp:279:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT0, tmp19); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test18CalcHelperMain.cpp:34: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test18.cpp:751:24: error: use of undeclared identifier 'tmp6' _t_new_P_fileName_ = tmp6; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test18CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test18FMU.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) { ^ 1 warning and 8 errors generated. : recipe for target 'OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test18CalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test18CalcHelperMain.o] Error 1