Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1Ds.Test20,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.494/2.494, allocations: 270 MB / 282.7 MB, free: 1.82 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.257e-05/3.279e-05, allocations: 4 kB / 347.1 MB, free: 3.105 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3804/0.3805, allocations: 61.86 MB / 408.9 MB, free: 10.64 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1908/0.5714, allocations: 88.22 MB / 497.1 MB, free: 2.301 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002807/0.5717, allocations: 75.95 kB / 497.2 MB, free: 2.227 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01869/0.5904, allocations: 4.275 MB / 0.4897 GB, free: 13.94 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.5905, allocations: 4 kB / 0.4897 GB, free: 13.94 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.671e-05/0.5905, allocations: 4 kB / 0.4898 GB, free: 13.93 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.000518/0.5911, allocations: 369.5 kB / 0.4901 GB, free: 13.53 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/0.5911, allocations: 8.031 kB / 0.4901 GB, free: 13.52 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.916e-05/0.5912, allocations: 38.56 kB / 0.4901 GB, free: 13.48 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.033e-05/0.5912, allocations: 7.906 kB / 0.4902 GB, free: 13.47 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002832/0.5915, allocations: 190.9 kB / 0.4903 GB, free: 13.24 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.334e-05/0.5916, allocations: 4 kB / 0.4903 GB, free: 13.24 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.995e-05/0.5916, allocations: 3.953 kB / 0.4903 GB, free: 13.23 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001542/0.5918, allocations: 59.41 kB / 0.4904 GB, free: 13.16 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.5918, allocations: 4 kB / 0.4904 GB, free: 13.16 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.813e-05/0.5918, allocations: 3.984 kB / 0.4904 GB, free: 13.16 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.5918, allocations: 3.938 kB / 0.4904 GB, free: 13.15 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.823e-05/0.5919, allocations: 15.98 kB / 0.4904 GB, free: 13.14 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004419/0.5924, allocations: 272.8 kB / 0.4907 GB, free: 12.82 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002272/0.5926, allocations: 42.56 kB / 0.4907 GB, free: 12.77 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.795e-05/0.5927, allocations: 8.859 kB / 0.4907 GB, free: 12.76 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/0.5927, allocations: 0 / 0.4907 GB, free: 12.76 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.376e-05/0.5927, allocations: 34.56 kB / 0.4908 GB, free: 12.71 MB / 426.7 MB Notification: Performance of pre-optimization done (n=3): time 2.394e-06/0.5928, allocations: 3.938 kB / 0.4908 GB, free: 12.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005445/0.5933, allocations: 109.5 kB / 0.4909 GB, free: 12.6 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.581e-05/0.5934, allocations: 77.11 kB / 0.491 GB, free: 12.5 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001668/0.5936, allocations: 125 kB / 0.4911 GB, free: 12.38 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.059e-05/0.5936, allocations: 25.7 kB / 0.4911 GB, free: 12.34 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.419e-05/0.5937, allocations: 158.5 kB / 0.4912 GB, free: 12.19 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.883e-05/0.5937, allocations: 15.75 kB / 0.4913 GB, free: 12.17 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.614e-06/0.5938, allocations: 4 kB / 0.4913 GB, free: 12.17 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.5939, allocations: 314.8 kB / 0.4916 GB, free: 11.85 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.191e-05/0.594, allocations: 19.98 kB / 0.4916 GB, free: 11.83 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.011e-05/0.594, allocations: 17.72 kB / 0.4916 GB, free: 11.81 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.332e-05/0.5941, allocations: 12 kB / 0.4916 GB, free: 11.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.5941, allocations: 3.938 kB / 0.4916 GB, free: 11.79 MB / 426.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001561/0.5943, allocations: 57.69 kB / 0.4917 GB, free: 11.73 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.5943, allocations: 5.719 kB / 0.4917 GB, free: 11.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.5943, allocations: 0 / 0.4917 GB, free: 11.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.5943, allocations: 0 / 0.4917 GB, free: 11.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000187/0.5945, allocations: 20.02 kB / 0.4917 GB, free: 11.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.5946, allocations: 0 / 0.4917 GB, free: 11.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.865e-05/0.5947, allocations: 8 kB / 0.4917 GB, free: 11.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.02e-05/0.5947, allocations: 0 / 0.4917 GB, free: 11.7 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 9.392e-05/0.5948, allocations: 108.9 kB / 0.4918 GB, free: 11.59 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.42e-05/0.5948, allocations: 7.906 kB / 0.4918 GB, free: 11.58 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002392/0.5951, allocations: 74.02 kB / 0.4919 GB, free: 11.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/0.5951, allocations: 4 kB / 0.4919 GB, free: 11.49 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.5951, allocations: 8 kB / 0.4919 GB, free: 11.48 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.5952, allocations: 0 / 0.4919 GB, free: 11.48 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004939/0.5957, allocations: 322.5 kB / 0.4922 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.5957, allocations: 3.938 kB / 0.4922 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00014/0.5958, allocations: 15.98 kB / 0.4922 GB, free: 11.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.5958, allocations: 3.938 kB / 0.4922 GB, free: 11.09 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.001e-05/0.5959, allocations: 0 / 0.4922 GB, free: 11.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.5959, allocations: 0 / 0.4922 GB, free: 11.09 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.5959, allocations: 4 kB / 0.4922 GB, free: 11.09 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000209/0.5961, allocations: 163.4 kB / 0.4924 GB, free: 10.91 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.825e-05/0.5962, allocations: 85 kB / 0.4925 GB, free: 10.81 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.942e-05/0.5962, allocations: 8 kB / 0.4925 GB, free: 10.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001317/0.5964, allocations: 4 kB / 0.4925 GB, free: 10.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.158e-05/0.5964, allocations: 3.984 kB / 0.4925 GB, free: 10.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.625e-06/0.5965, allocations: 4 kB / 0.4925 GB, free: 10.79 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001193/0.5966, allocations: 103.3 kB / 0.4926 GB, free: 10.69 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5966, allocations: 0 / 0.4926 GB, free: 10.69 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003796/0.597, allocations: 31.92 kB / 0.4926 GB, free: 10.66 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.001783/0.5988, allocations: 1.034 MB / 0.4936 GB, free: 9.738 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000184/0.599, allocations: 24 kB / 0.4936 GB, free: 9.715 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.599, allocations: 0 / 0.4936 GB, free: 9.715 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 6.216e-05/0.5991, allocations: 19.94 kB / 0.4937 GB, free: 9.695 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003573/0.5995, allocations: 22.97 kB / 0.4937 GB, free: 9.676 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006813/0.6002, allocations: 176.3 kB / 0.4939 GB, free: 9.457 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003168/0.6005, allocations: 0.6926 MB / 0.4945 GB, free: 8.738 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.6006, allocations: 27.42 kB / 0.4946 GB, free: 8.711 MB / 426.7 MB Notification: Performance of SimCode: time 1.674e-06/0.6006, allocations: 0 / 0.4946 GB, free: 8.711 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_Test20CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20CalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20Functions.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_Test20CalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20InitializeParameter.cpp:38:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp24; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20InitializeParameter.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_v6.mat", tmp24); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20CalcHelperMain.cpp:31: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20Initialize.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_v6.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20Initialize.cpp:244:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp15; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20Initialize.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_Test20CalcHelperMain.cpp:34: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20.cpp:712:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20FMU.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_Test20CalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20CalcHelperMain.o] Error 1