Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1Dv.Test23,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test23",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.52/2.52, allocations: 270 MB / 282.6 MB, free: 1.887 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.589e-05/4.596e-05, allocations: 4 kB / 347.1 MB, free: 3.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4287/0.4288, allocations: 61.88 MB / 408.9 MB, free: 10.76 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1735/0.6024, allocations: 88.32 MB / 497.3 MB, free: 2.316 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003522/0.6028, allocations: 75.95 kB / 497.3 MB, free: 2.242 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02413/0.627, allocations: 4.295 MB / 0.4899 GB, free: 13.94 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.6271, allocations: 0 / 0.4899 GB, free: 13.94 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.065e-05/0.6271, 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.0006153/0.6277, allocations: 378.3 kB / 0.4902 GB, free: 13.52 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.973e-05/0.6278, allocations: 8.031 kB / 0.4902 GB, free: 13.52 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.805e-05/0.6279, allocations: 34.56 kB / 0.4903 GB, free: 13.47 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.088e-05/0.628, allocations: 7.906 kB / 0.4903 GB, free: 13.46 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000353/0.6283, allocations: 187 kB / 0.4905 GB, free: 13.24 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/0.6284, allocations: 4 kB / 0.4905 GB, free: 13.24 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.913e-05/0.6284, allocations: 7.891 kB / 0.4905 GB, free: 13.23 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00021/0.6286, allocations: 59.41 kB / 0.4905 GB, free: 13.16 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.6287, allocations: 7.922 kB / 0.4905 GB, free: 13.15 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.479e-05/0.6287, allocations: 0 / 0.4905 GB, free: 13.15 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.327e-06/0.6287, allocations: 0 / 0.4905 GB, free: 13.15 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.909e-05/0.6288, allocations: 19.94 kB / 0.4906 GB, free: 13.13 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006648/0.6295, allocations: 284.8 kB / 0.4908 GB, free: 12.8 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002744/0.6298, allocations: 34.58 kB / 0.4909 GB, free: 12.76 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.912e-05/0.6299, allocations: 16.86 kB / 0.4909 GB, free: 12.74 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.615e-05/0.6299, allocations: 4.094 kB / 0.4909 GB, free: 12.74 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.896e-05/0.63, allocations: 38.48 kB / 0.4909 GB, free: 12.69 MB / 426.7 MB Notification: Performance of pre-optimization done (n=3): time 2.985e-06/0.63, allocations: 0 / 0.4909 GB, free: 12.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=5): time 0.0006969/0.6307, allocations: 105.5 kB / 0.491 GB, free: 12.58 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.099e-05/0.6308, allocations: 77.11 kB / 0.4911 GB, free: 12.49 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002282/0.6311, allocations: 125 kB / 0.4912 GB, free: 12.36 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.659e-05/0.6311, allocations: 25.7 kB / 0.4912 GB, free: 12.33 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.6312, allocations: 162.5 kB / 0.4914 GB, free: 12.17 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.203e-05/0.6313, allocations: 19.75 kB / 0.4914 GB, free: 12.15 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.798e-06/0.6313, allocations: 0 / 0.4914 GB, free: 12.15 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.6315, allocations: 318.7 kB / 0.4917 GB, free: 11.83 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.721e-05/0.6316, allocations: 15.98 kB / 0.4917 GB, free: 11.81 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.399e-05/0.6317, allocations: 21.72 kB / 0.4917 GB, free: 11.79 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.68e-05/0.6318, allocations: 15.98 kB / 0.4918 GB, free: 11.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.6318, allocations: 4.031 kB / 0.4918 GB, free: 11.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002369/0.6321, allocations: 61.69 kB / 0.4918 GB, free: 11.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.176e-05/0.6321, allocations: 9.719 kB / 0.4918 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.6321, allocations: 0 / 0.4918 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.6322, allocations: 0 / 0.4918 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001754/0.6323, allocations: 12 kB / 0.4918 GB, free: 11.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.417e-05/0.6324, allocations: 3.984 kB / 0.4918 GB, free: 11.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.6325, allocations: 4.25 kB / 0.4919 GB, free: 11.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.645e-05/0.6325, allocations: 4 kB / 0.4919 GB, free: 11.67 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 0.0001189/0.6327, allocations: 116.9 kB / 0.492 GB, free: 11.55 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.125e-05/0.6328, allocations: 7.906 kB / 0.492 GB, free: 11.54 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003614/0.6331, allocations: 81.75 kB / 0.4921 GB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.6332, allocations: 3.938 kB / 0.4921 GB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.6332, allocations: 0 / 0.4921 GB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.6332, allocations: 0 / 0.4921 GB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008/0.634, allocations: 342.5 kB / 0.4924 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.634, allocations: 4 kB / 0.4924 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001759/0.6342, allocations: 15.98 kB / 0.4924 GB, free: 11.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.6343, allocations: 0 / 0.4924 GB, free: 11.04 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.6343, allocations: 0 / 0.4924 GB, free: 11.04 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.6343, allocations: 0 / 0.4924 GB, free: 11.04 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.6343, allocations: 3.938 kB / 0.4924 GB, free: 11.03 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003486/0.6347, allocations: 163.4 kB / 0.4926 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000122/0.6348, allocations: 93 kB / 0.4927 GB, free: 10.75 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.205e-05/0.6349, allocations: 4 kB / 0.4927 GB, free: 10.74 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000186/0.6351, allocations: 4 kB / 0.4927 GB, free: 10.74 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.718e-05/0.6352, allocations: 7.984 kB / 0.4927 GB, free: 10.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.408e-05/0.6352, allocations: 0 / 0.4927 GB, free: 10.73 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001696/0.6354, allocations: 111.2 kB / 0.4928 GB, free: 10.62 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.42e-07/0.6354, allocations: 0 / 0.4928 GB, free: 10.62 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006275/0.636, allocations: 20 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.002488/0.6385, allocations: 1.044 MB / 0.4938 GB, free: 9.676 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002377/0.6388, allocations: 35.92 kB / 0.4938 GB, free: 9.641 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.6388, allocations: 0 / 0.4938 GB, free: 9.641 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 8.783e-05/0.6389, allocations: 20 kB / 0.4939 GB, free: 9.621 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004218/0.6394, allocations: 18.83 kB / 0.4939 GB, free: 9.605 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009162/0.6403, allocations: 192.2 kB / 0.4941 GB, free: 9.371 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004036/0.6408, allocations: 0.6926 MB / 0.4947 GB, free: 8.652 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001237/0.6409, allocations: 23.42 kB / 0.4948 GB, free: 8.629 MB / 426.7 MB Notification: Performance of SimCode: time 1.212e-06/0.6409, allocations: 3.938 kB / 0.4948 GB, free: 8.625 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_Test23CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test23CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test23CalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_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_CombiTable1Dv_Test23CalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test23InitializeParameter.cpp:38:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp24; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_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_CombiTable1Dv_Test23CalcHelperMain.cpp:31: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test23Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_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_CombiTable1Dv_Test23Initialize.cpp:244:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp15; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_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_CombiTable1Dv_Test23CalcHelperMain.cpp:34: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test23.cpp:714:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test23CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_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_CombiTable1Dv_Test23CalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test23CalcHelperMain.o] Error 1