Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1Ds.Test33,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.465/2.465, allocations: 270 MB / 282.6 MB, free: 1.82 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.582e-05/3.59e-05, allocations: 7.938 kB / 347.1 MB, free: 3.109 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3862/0.3862, allocations: 61.88 MB / 408.9 MB, free: 10.71 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2282/0.6145, allocations: 88.22 MB / 497.1 MB, free: 2.375 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004202/0.6149, allocations: 67.97 kB / 497.2 MB, free: 2.309 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03026/0.6452, allocations: 4.283 MB / 0.4897 GB, free: 14.02 MB / 426.7 MB Notification: Performance of FrontEnd: time 6.542e-06/0.6453, allocations: 0 / 0.4897 GB, free: 14.02 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.717e-05/0.6453, allocations: 3.938 kB / 0.4897 GB, free: 14.01 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.0006726/0.646, allocations: 370.4 kB / 0.4901 GB, free: 13.61 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.999e-05/0.6461, allocations: 8.031 kB / 0.4901 GB, free: 13.6 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.094e-05/0.6462, allocations: 38.56 kB / 0.4901 GB, free: 13.55 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.304e-05/0.6463, allocations: 3.906 kB / 0.4901 GB, free: 13.55 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003994/0.6467, allocations: 191 kB / 0.4903 GB, free: 13.32 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.245e-05/0.6467, allocations: 0 / 0.4903 GB, free: 13.32 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.619e-05/0.6468, allocations: 15.83 kB / 0.4903 GB, free: 13.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002032/0.647, allocations: 59.41 kB / 0.4904 GB, free: 13.23 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.6471, allocations: 0 / 0.4904 GB, free: 13.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.739e-05/0.6471, allocations: 0 / 0.4904 GB, free: 13.23 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.6471, allocations: 4 kB / 0.4904 GB, free: 13.23 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001051/0.6473, allocations: 19.92 kB / 0.4904 GB, free: 13.21 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000609/0.6479, allocations: 280.9 kB / 0.4907 GB, free: 12.89 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003089/0.6482, allocations: 34.52 kB / 0.4907 GB, free: 12.84 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.547e-05/0.6483, allocations: 8.859 kB / 0.4907 GB, free: 12.83 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.467e-05/0.6484, allocations: 4 kB / 0.4907 GB, free: 12.83 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.439e-05/0.6484, allocations: 38.64 kB / 0.4908 GB, free: 12.78 MB / 426.7 MB Notification: Performance of pre-optimization done (n=3): time 3.676e-06/0.6484, allocations: 0 / 0.4908 GB, free: 12.78 MB / 426.7 MB Notification: Performance of matching and sorting (n=5): time 0.00072/0.6492, allocations: 101.4 kB / 0.4909 GB, free: 12.68 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.59e-05/0.6493, allocations: 77.11 kB / 0.4909 GB, free: 12.58 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002575/0.6496, allocations: 117 kB / 0.4911 GB, free: 12.46 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.943e-05/0.6496, allocations: 29.7 kB / 0.4911 GB, free: 12.43 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.6497, allocations: 162.5 kB / 0.4912 GB, free: 12.27 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.863e-05/0.6498, allocations: 15.73 kB / 0.4913 GB, free: 12.25 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.995e-06/0.6498, allocations: 0 / 0.4913 GB, free: 12.25 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001805/0.65, allocations: 322.8 kB / 0.4916 GB, free: 11.93 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.185e-05/0.6501, allocations: 12 kB / 0.4916 GB, free: 11.91 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.276e-05/0.6502, allocations: 21.72 kB / 0.4916 GB, free: 11.89 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.068e-05/0.6503, allocations: 8 kB / 0.4916 GB, free: 11.88 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/0.6503, allocations: 4 kB / 0.4916 GB, free: 11.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002397/0.6506, allocations: 57.62 kB / 0.4917 GB, free: 11.81 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.65e-05/0.6506, allocations: 4 kB / 0.4917 GB, free: 11.81 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.6507, allocations: 4 kB / 0.4917 GB, free: 11.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.6507, allocations: 0 / 0.4917 GB, free: 11.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002204/0.6509, allocations: 20.02 kB / 0.4917 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.651, allocations: 0 / 0.4917 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001438/0.6511, allocations: 4 kB / 0.4917 GB, free: 11.78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.347e-05/0.6512, allocations: 0 / 0.4917 GB, free: 11.78 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.0001326/0.6513, allocations: 112.9 kB / 0.4918 GB, free: 11.66 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.777e-05/0.6514, allocations: 7.906 kB / 0.4918 GB, free: 11.66 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003353/0.6518, allocations: 73.72 kB / 0.4919 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.6518, allocations: 7.938 kB / 0.4919 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.6518, allocations: 0 / 0.4919 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.6518, allocations: 0 / 0.4919 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007326/0.6526, allocations: 326.8 kB / 0.4922 GB, free: 11.19 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.508e-06/0.6526, allocations: 4.047 kB / 0.4922 GB, free: 11.19 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000199/0.6528, allocations: 16 kB / 0.4922 GB, free: 11.17 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.006e-06/0.6529, allocations: 0 / 0.4922 GB, free: 11.17 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/0.6529, allocations: 4 kB / 0.4922 GB, free: 11.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.56e-06/0.6529, allocations: 4 kB / 0.4922 GB, free: 11.16 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.653, allocations: 0 / 0.4922 GB, free: 11.16 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003135/0.6533, allocations: 163.3 kB / 0.4924 GB, free: 10.99 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/0.6534, allocations: 89 kB / 0.4925 GB, free: 10.88 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.153e-05/0.6535, allocations: 3.938 kB / 0.4925 GB, free: 10.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001982/0.6537, allocations: 8 kB / 0.4925 GB, free: 10.87 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.574e-05/0.6538, allocations: 7.984 kB / 0.4925 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.279e-05/0.6539, allocations: 4 kB / 0.4925 GB, free: 10.86 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000184/0.6541, allocations: 103.3 kB / 0.4926 GB, free: 10.76 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.152e-06/0.6541, allocations: 0 / 0.4926 GB, free: 10.76 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000601/0.6547, allocations: 24 kB / 0.4926 GB, free: 10.73 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.002717/0.6575, allocations: 1.041 MB / 0.4936 GB, free: 9.82 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000258/0.6578, allocations: 28 kB / 0.4937 GB, free: 9.793 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.6578, allocations: 0 / 0.4937 GB, free: 9.793 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 9.024e-05/0.6579, allocations: 19.94 kB / 0.4937 GB, free: 9.773 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004439/0.6584, allocations: 11.98 kB / 0.4937 GB, free: 9.762 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009431/0.6593, allocations: 176.3 kB / 0.4939 GB, free: 9.543 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000454/0.6598, allocations: 0.6965 MB / 0.4945 GB, free: 8.82 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001521/0.66, allocations: 23.42 kB / 0.4946 GB, free: 8.797 MB / 426.7 MB Notification: Performance of SimCode: time 1.873e-06/0.66, allocations: 3.938 kB / 0.4946 GB, free: 8.793 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_Test33CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33CalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33Functions.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_Test33CalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33InitializeParameter.cpp:38:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp24; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33InitializeParameter.cpp:39:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest trunk/Resources/Data/Tables/test_utf8.txt", tmp24); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33CalcHelperMain.cpp:31: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33Initialize.cpp:96:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest trunk/Resources/Data/Tables/test_utf8.txt", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33Initialize.cpp:244:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp15; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33Initialize.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_Test33CalcHelperMain.cpp:34: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33.cpp:712:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33FMU.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_Test33CalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33CalcHelperMain.o] Error 1