Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1Ds.Test23,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test23",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.393/2.393, allocations: 270 MB / 282.6 MB, free: 1.852 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.125e-05/4.13e-05, allocations: 4 kB / 347.1 MB, free: 3.129 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4073/0.4074, allocations: 61.88 MB / 408.9 MB, free: 10.64 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1803/0.5878, allocations: 88.22 MB / 497.2 MB, free: 2.301 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002669/0.5881, allocations: 67.97 kB / 497.2 MB, free: 2.234 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01738/0.6055, allocations: 4.283 MB / 0.4897 GB, free: 13.94 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.6055, allocations: 0 / 0.4897 GB, free: 13.94 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.152e-05/0.6055, allocations: 0 / 0.4897 GB, free: 13.94 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004351/0.606, allocations: 374.4 kB / 0.4901 GB, free: 13.53 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.606, allocations: 8.031 kB / 0.4901 GB, free: 13.52 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.803e-05/0.6061, allocations: 42.5 kB / 0.4902 GB, free: 13.47 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.593e-05/0.6062, allocations: 7.906 kB / 0.4902 GB, free: 13.46 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002518/0.6064, allocations: 183 kB / 0.4903 GB, free: 13.25 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.6064, allocations: 4 kB / 0.4903 GB, free: 13.24 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.356e-05/0.6065, allocations: 7.953 kB / 0.4903 GB, free: 13.23 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001433/0.6066, allocations: 59.34 kB / 0.4904 GB, free: 13.16 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.6067, allocations: 0 / 0.4904 GB, free: 13.16 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.6067, allocations: 4 kB / 0.4904 GB, free: 13.16 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.6067, allocations: 0 / 0.4904 GB, free: 13.16 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.248e-05/0.6068, allocations: 19.94 kB / 0.4904 GB, free: 13.14 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004068/0.6072, allocations: 272.9 kB / 0.4907 GB, free: 12.82 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001933/0.6074, allocations: 34.58 kB / 0.4907 GB, free: 12.78 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.308e-05/0.6074, allocations: 12.94 kB / 0.4907 GB, free: 12.77 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.231e-05/0.6075, allocations: 3.984 kB / 0.4907 GB, free: 12.76 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.661e-05/0.6075, allocations: 38.56 kB / 0.4908 GB, free: 12.71 MB / 426.7 MB Notification: Performance of pre-optimization done (n=3): time 1.573e-06/0.6075, allocations: 0 / 0.4908 GB, free: 12.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004536/0.608, allocations: 97.42 kB / 0.4909 GB, free: 12.61 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.243e-05/0.6081, allocations: 77.11 kB / 0.4909 GB, free: 12.52 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001567/0.6082, allocations: 121 kB / 0.4911 GB, free: 12.39 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.6083, allocations: 29.7 kB / 0.4911 GB, free: 12.36 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.484e-05/0.6083, allocations: 158.5 kB / 0.4912 GB, free: 12.2 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.253e-05/0.6084, allocations: 27.72 kB / 0.4913 GB, free: 12.18 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.31e-06/0.6084, allocations: 0 / 0.4913 GB, free: 12.18 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.6085, allocations: 318.8 kB / 0.4916 GB, free: 11.86 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.548e-05/0.6086, allocations: 8 kB / 0.4916 GB, free: 11.85 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.35e-05/0.6086, allocations: 25.66 kB / 0.4916 GB, free: 11.82 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.566e-05/0.6087, allocations: 15.98 kB / 0.4916 GB, free: 11.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.6087, allocations: 0 / 0.4916 GB, free: 11.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000128/0.6089, allocations: 53.7 kB / 0.4917 GB, free: 11.74 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.6089, allocations: 8.031 kB / 0.4917 GB, free: 11.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.6089, allocations: 0 / 0.4917 GB, free: 11.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.6089, allocations: 0 / 0.4917 GB, free: 11.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.609, allocations: 15.98 kB / 0.4917 GB, free: 11.72 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.6091, allocations: 0 / 0.4917 GB, free: 11.72 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.656e-05/0.6091, allocations: 7.984 kB / 0.4917 GB, free: 11.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.034e-05/0.6092, allocations: 4 kB / 0.4917 GB, free: 11.71 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 (5): * Single equations (assignments): 5 * 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.047e-05/0.6093, allocations: 108.9 kB / 0.4918 GB, free: 11.59 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.09e-05/0.6093, allocations: 15.78 kB / 0.4918 GB, free: 11.58 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002161/0.6095, allocations: 69.78 kB / 0.4919 GB, free: 11.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.6096, allocations: 320 / 0.4919 GB, free: 11.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.6096, allocations: 3.938 kB / 0.4919 GB, free: 11.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.6096, allocations: 7.984 kB / 0.4919 GB, free: 11.49 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004339/0.61, allocations: 326.5 kB / 0.4922 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.61, allocations: 3.938 kB / 0.4922 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001108/0.6102, allocations: 16 kB / 0.4922 GB, free: 11.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.6102, allocations: 0 / 0.4922 GB, free: 11.09 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.6102, allocations: 0 / 0.4922 GB, free: 11.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.712e-06/0.6102, allocations: 3.984 kB / 0.4922 GB, free: 11.09 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.6102, allocations: 0 / 0.4922 GB, free: 11.09 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001808/0.6104, allocations: 159.4 kB / 0.4924 GB, free: 10.92 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.984e-05/0.6105, allocations: 85 kB / 0.4925 GB, free: 10.82 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.348e-05/0.6105, allocations: 4 kB / 0.4925 GB, free: 10.81 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.6106, allocations: 15.98 kB / 0.4925 GB, free: 10.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.63e-05/0.6107, allocations: 0 / 0.4925 GB, free: 10.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.6107, allocations: 4 kB / 0.4925 GB, free: 10.79 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001077/0.6108, allocations: 103.3 kB / 0.4926 GB, free: 10.69 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6108, allocations: 0 / 0.4926 GB, free: 10.69 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003589/0.6112, allocations: 24 kB / 0.4926 GB, free: 10.67 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 (5): * Single equations (assignments): 5 * 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.001613/0.6128, allocations: 1.034 MB / 0.4936 GB, free: 9.754 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001354/0.613, allocations: 31.94 kB / 0.4936 GB, free: 9.723 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.613, allocations: 0 / 0.4936 GB, free: 9.723 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 5.311e-05/0.6131, allocations: 19.98 kB / 0.4937 GB, free: 9.703 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00026/0.6133, allocations: 12 kB / 0.4937 GB, free: 9.691 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006011/0.614, allocations: 180.3 kB / 0.4938 GB, free: 9.469 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003073/0.6143, allocations: 0.6926 MB / 0.4945 GB, free: 8.75 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.856e-05/0.6144, allocations: 27.36 kB / 0.4946 GB, free: 8.723 MB / 426.7 MB Notification: Performance of SimCode: time 5.21e-06/0.6144, allocations: 4 kB / 0.4946 GB, free: 8.719 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_CombiTable1Ds_Test23CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test23CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test23CalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test23Functions.cpp:209:31: error: no matching function for call to 'ModelicaStandardTables_CombiTable1D_init2' externalCombiTable1D__ext = ModelicaStandardTables_CombiTable1D_init2(fileName_.c_str(), tableName_.c_str(), tmp6.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_CombiTable1Ds_Test23CalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test23InitializeParameter.cpp:38:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp24; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test23InitializeParameter.cpp:39: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", tmp24); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test23CalcHelperMain.cpp:31: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test23Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test23Initialize.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", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test23Initialize.cpp:244:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp15; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test23Initialize.cpp:245:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT0, tmp15); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test23CalcHelperMain.cpp:34: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test23.cpp:712:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test23CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test23FMU.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_CombiTable1Ds_Test23CalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test23CalcHelperMain.o] Error 1