Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1Ds.Test19,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.439/2.439, allocations: 270 MB / 282.6 MB, free: 1.852 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.124e-05/3.122e-05, allocations: 4 kB / 347.1 MB, free: 3.137 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3868/0.3869, allocations: 61.87 MB / 408.9 MB, free: 10.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1572/0.5441, allocations: 88.22 MB / 497.1 MB, free: 2.324 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000269/0.5445, allocations: 75.95 kB / 497.2 MB, free: 2.25 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01723/0.5617, allocations: 4.283 MB / 0.4897 GB, free: 13.96 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5617, allocations: 0 / 0.4897 GB, free: 13.96 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.169e-05/0.5618, allocations: 0 / 0.4897 GB, free: 13.96 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.0004282/0.5622, allocations: 366.4 kB / 0.4901 GB, free: 13.55 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.5623, allocations: 8.031 kB / 0.4901 GB, free: 13.55 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.427e-05/0.5623, allocations: 42.5 kB / 0.4901 GB, free: 13.5 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.72e-05/0.5624, allocations: 3.906 kB / 0.4901 GB, free: 13.49 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000262/0.5626, allocations: 190.9 kB / 0.4903 GB, free: 13.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.5627, allocations: 4 kB / 0.4903 GB, free: 13.26 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.685e-05/0.5627, allocations: 3.953 kB / 0.4903 GB, free: 13.26 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001377/0.5629, allocations: 63.28 kB / 0.4904 GB, free: 13.18 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.5629, allocations: 4 kB / 0.4904 GB, free: 13.18 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/0.5629, allocations: 0 / 0.4904 GB, free: 13.18 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.5629, allocations: 4 kB / 0.4904 GB, free: 13.18 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.341e-05/0.563, allocations: 12 kB / 0.4904 GB, free: 13.16 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004025/0.5634, allocations: 280.8 kB / 0.4907 GB, free: 12.84 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001977/0.5636, allocations: 34.56 kB / 0.4907 GB, free: 12.8 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.664e-05/0.5637, allocations: 12.86 kB / 0.4907 GB, free: 12.78 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.044e-05/0.5637, allocations: 4 kB / 0.4907 GB, free: 12.78 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.383e-05/0.5637, allocations: 34.56 kB / 0.4908 GB, free: 12.73 MB / 426.7 MB Notification: Performance of pre-optimization done (n=3): time 1.533e-06/0.5637, allocations: 0 / 0.4908 GB, free: 12.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004635/0.5642, allocations: 101.5 kB / 0.4909 GB, free: 12.63 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.251e-05/0.5643, allocations: 77.11 kB / 0.4909 GB, free: 12.54 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001639/0.5645, allocations: 125 kB / 0.4911 GB, free: 12.41 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.772e-05/0.5645, allocations: 25.7 kB / 0.4911 GB, free: 12.38 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.541e-05/0.5646, allocations: 166.5 kB / 0.4912 GB, free: 12.21 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.589e-05/0.5646, allocations: 15.75 kB / 0.4913 GB, free: 12.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.98e-06/0.5646, allocations: 0 / 0.4913 GB, free: 12.2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.5648, allocations: 318.8 kB / 0.4916 GB, free: 11.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.557e-05/0.5648, allocations: 8 kB / 0.4916 GB, free: 11.87 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.393e-05/0.5649, allocations: 29.64 kB / 0.4916 GB, free: 11.83 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.977e-05/0.5649, allocations: 8 kB / 0.4916 GB, free: 11.82 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.5649, allocations: 0 / 0.4916 GB, free: 11.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001312/0.5651, allocations: 61.72 kB / 0.4917 GB, free: 11.76 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.5651, allocations: 5.719 kB / 0.4917 GB, free: 11.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.5651, allocations: 0 / 0.4917 GB, free: 11.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.5651, allocations: 4 kB / 0.4917 GB, free: 11.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.5653, allocations: 8 kB / 0.4917 GB, free: 11.74 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.5653, allocations: 4 kB / 0.4917 GB, free: 11.74 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.919e-05/0.5654, allocations: 11.98 kB / 0.4917 GB, free: 11.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.275e-06/0.5654, allocations: 0 / 0.4917 GB, free: 11.73 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 7.771e-05/0.5655, allocations: 112.9 kB / 0.4918 GB, free: 11.61 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.008e-05/0.5655, allocations: 7.906 kB / 0.4918 GB, free: 11.6 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001952/0.5657, allocations: 73.7 kB / 0.4919 GB, free: 11.52 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.5658, allocations: 0 / 0.4919 GB, free: 11.52 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.5658, allocations: 3.938 kB / 0.4919 GB, free: 11.52 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.5658, allocations: 144 / 0.4919 GB, free: 11.52 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004272/0.5662, allocations: 330.8 kB / 0.4922 GB, free: 11.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.5662, allocations: 8.047 kB / 0.4922 GB, free: 11.13 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/0.5664, allocations: 23.92 kB / 0.4922 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.5664, allocations: 0 / 0.4922 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.5664, allocations: 4 kB / 0.4922 GB, free: 11.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.5664, allocations: 3.938 kB / 0.4922 GB, free: 11.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.5664, allocations: 0 / 0.4922 GB, free: 11.1 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001786/0.5666, allocations: 159.4 kB / 0.4924 GB, free: 10.93 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.422e-05/0.5667, allocations: 85.02 kB / 0.4925 GB, free: 10.82 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.38e-05/0.5667, allocations: 7.984 kB / 0.4925 GB, free: 10.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001174/0.5668, allocations: 4 kB / 0.4925 GB, free: 10.81 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.218e-05/0.5669, allocations: 4 kB / 0.4925 GB, free: 10.81 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.5669, allocations: 7.984 kB / 0.4925 GB, free: 10.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 9.844e-05/0.567, allocations: 99.28 kB / 0.4926 GB, free: 10.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.567, allocations: 0 / 0.4926 GB, free: 10.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003641/0.5674, allocations: 27.98 kB / 0.4926 GB, free: 10.68 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.001605/0.569, allocations: 1.03 MB / 0.4936 GB, free: 9.77 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001424/0.5692, allocations: 31.94 kB / 0.4937 GB, free: 9.738 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.5692, allocations: 0 / 0.4937 GB, free: 9.738 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 4.704e-05/0.5693, allocations: 12 kB / 0.4937 GB, free: 9.727 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002708/0.5695, allocations: 23.97 kB / 0.4937 GB, free: 9.703 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005736/0.5701, allocations: 180.3 kB / 0.4939 GB, free: 9.48 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002791/0.5704, allocations: 0.6887 MB / 0.4945 GB, free: 8.766 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.674e-05/0.5705, allocations: 27.42 kB / 0.4946 GB, free: 8.738 MB / 426.7 MB Notification: Performance of SimCode: time 3.747e-06/0.5705, allocations: 0 / 0.4946 GB, free: 8.738 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_Test19CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19CalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19Functions.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_Test19CalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19InitializeParameter.cpp:38:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp24; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19InitializeParameter.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_v4.mat", tmp24); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19CalcHelperMain.cpp:31: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19Initialize.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_v4.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19Initialize.cpp:244:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp15; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19Initialize.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_Test19CalcHelperMain.cpp:34: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19.cpp:712:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19FMU.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_Test19CalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19CalcHelperMain.o] Error 1