Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1Dv.Test19,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test19",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.443/2.443, allocations: 270 MB / 282.6 MB, free: 1.867 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.044e-05/3.049e-05, allocations: 0 / 347 MB, free: 3.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3917/0.3918, allocations: 61.88 MB / 408.9 MB, free: 10.78 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1807/0.5725, allocations: 88.34 MB / 497.3 MB, free: 2.32 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002734/0.5728, allocations: 71.97 kB / 497.3 MB, free: 2.25 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0184/0.5913, allocations: 4.295 MB / 0.4899 GB, free: 13.95 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5913, allocations: 0 / 0.4899 GB, free: 13.95 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.5913, allocations: 4 kB / 0.4899 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.0004762/0.5918, allocations: 374.3 kB / 0.4902 GB, free: 13.53 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.5919, allocations: 8.031 kB / 0.4902 GB, free: 13.52 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.864e-05/0.5919, allocations: 38.55 kB / 0.4903 GB, free: 13.48 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.641e-05/0.592, allocations: 7.906 kB / 0.4903 GB, free: 13.47 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002764/0.5923, allocations: 183 kB / 0.4905 GB, free: 13.25 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.5923, allocations: 4 kB / 0.4905 GB, free: 13.25 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.554e-05/0.5923, allocations: 11.88 kB / 0.4905 GB, free: 13.23 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001475/0.5925, allocations: 59.42 kB / 0.4905 GB, free: 13.16 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.5925, allocations: 3.984 kB / 0.4905 GB, free: 13.16 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.448e-05/0.5926, allocations: 3.984 kB / 0.4905 GB, free: 13.16 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.5926, allocations: 0 / 0.4905 GB, free: 13.16 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.176e-05/0.5926, allocations: 15.94 kB / 0.4905 GB, free: 13.14 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004731/0.5931, allocations: 280.9 kB / 0.4908 GB, free: 12.82 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002194/0.5934, allocations: 42.56 kB / 0.4909 GB, free: 12.77 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.038e-05/0.5934, allocations: 16.8 kB / 0.4909 GB, free: 12.75 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.915e-05/0.5935, allocations: 4 kB / 0.4909 GB, free: 12.74 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/0.5935, allocations: 38.5 kB / 0.4909 GB, free: 12.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=3): time 1.793e-06/0.5935, allocations: 0 / 0.4909 GB, free: 12.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005252/0.594, allocations: 105.6 kB / 0.491 GB, free: 12.59 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.148e-05/0.5941, allocations: 81.11 kB / 0.4911 GB, free: 12.49 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001555/0.5943, allocations: 117 kB / 0.4912 GB, free: 12.37 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.798e-05/0.5943, allocations: 33.7 kB / 0.4912 GB, free: 12.33 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.879e-05/0.5944, allocations: 166.4 kB / 0.4914 GB, free: 12.16 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.57e-05/0.5945, allocations: 11.75 kB / 0.4914 GB, free: 12.15 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.491e-06/0.5945, allocations: 4 kB / 0.4914 GB, free: 12.15 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.5946, allocations: 318.8 kB / 0.4917 GB, free: 11.83 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.571e-05/0.5947, allocations: 15.94 kB / 0.4917 GB, free: 11.81 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.021e-05/0.5948, allocations: 29.7 kB / 0.4918 GB, free: 11.78 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.239e-05/0.5948, allocations: 12 kB / 0.4918 GB, free: 11.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.5948, allocations: 0 / 0.4918 GB, free: 11.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001519/0.595, allocations: 57.69 kB / 0.4918 GB, free: 11.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.595, allocations: 9.719 kB / 0.4918 GB, free: 11.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.595, allocations: 0 / 0.4918 GB, free: 11.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.5951, allocations: 0 / 0.4918 GB, free: 11.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/0.5952, allocations: 19.98 kB / 0.4919 GB, free: 11.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.752e-06/0.5952, allocations: 4.031 kB / 0.4919 GB, free: 11.67 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.094e-05/0.5953, allocations: 7.984 kB / 0.4919 GB, free: 11.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.816e-06/0.5953, allocations: 0 / 0.4919 GB, free: 11.66 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.363e-05/0.5954, allocations: 112.9 kB / 0.492 GB, free: 11.55 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.226e-05/0.5955, allocations: 7.906 kB / 0.492 GB, free: 11.54 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002344/0.5957, allocations: 77.77 kB / 0.4921 GB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.5957, allocations: 3.938 kB / 0.4921 GB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.5958, allocations: 4 kB / 0.4921 GB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.5958, allocations: 0 / 0.4921 GB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000504/0.5963, allocations: 342.5 kB / 0.4924 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.5963, allocations: 0 / 0.4924 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001153/0.5964, allocations: 8.375 kB / 0.4924 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.707e-06/0.5965, allocations: 4 kB / 0.4924 GB, free: 11.04 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.5965, allocations: 0 / 0.4924 GB, free: 11.04 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.655e-06/0.5965, allocations: 7.984 kB / 0.4924 GB, free: 11.04 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.5965, allocations: 0 / 0.4924 GB, free: 11.04 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002141/0.5967, allocations: 167.4 kB / 0.4926 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.338e-05/0.5968, allocations: 85.02 kB / 0.4926 GB, free: 10.75 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.079e-05/0.5969, allocations: 7.984 kB / 0.4927 GB, free: 10.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001163/0.597, allocations: 4 kB / 0.4927 GB, free: 10.74 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.83e-05/0.597, allocations: 4 kB / 0.4927 GB, free: 10.74 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.748e-06/0.5971, allocations: 7.922 kB / 0.4927 GB, free: 10.73 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001126/0.5972, allocations: 107.2 kB / 0.4928 GB, free: 10.62 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5972, allocations: 0 / 0.4928 GB, free: 10.62 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003614/0.5976, allocations: 27.98 kB / 0.4928 GB, free: 10.6 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.001746/0.5993, allocations: 1.039 MB / 0.4938 GB, free: 9.68 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001694/0.5995, allocations: 35.92 kB / 0.4938 GB, free: 9.645 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.5995, allocations: 0 / 0.4938 GB, free: 9.645 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 6.027e-05/0.5996, allocations: 16 kB / 0.4939 GB, free: 9.629 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002878/0.5999, allocations: 15.98 kB / 0.4939 GB, free: 9.613 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006422/0.6006, allocations: 188.2 kB / 0.4941 GB, free: 9.383 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/0.6009, allocations: 0.6965 MB / 0.4947 GB, free: 8.66 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.793e-05/0.601, allocations: 27.42 kB / 0.4948 GB, free: 8.633 MB / 426.7 MB Notification: Performance of SimCode: time 8.41e-07/0.601, allocations: 3.938 kB / 0.4948 GB, free: 8.629 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_Test19CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test19CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test19CalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_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_CombiTable1Dv_Test19CalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test19InitializeParameter.cpp:38:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp24; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_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_CombiTable1Dv_Test19CalcHelperMain.cpp:31: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test19Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_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_CombiTable1Dv_Test19Initialize.cpp:244:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp15; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_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_CombiTable1Dv_Test19CalcHelperMain.cpp:34: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test19.cpp:714:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test19CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_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_CombiTable1Dv_Test19CalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test19CalcHelperMain.o] Error 1