Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1Ds.Test21,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.435/2.435, allocations: 270 MB / 282.6 MB, free: 1.934 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.439e-05/3.443e-05, allocations: 4 kB / 347.1 MB, free: 3.191 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3787/0.3788, allocations: 61.87 MB / 408.9 MB, free: 10.7 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2595/0.6383, allocations: 88.22 MB / 497.1 MB, free: 2.359 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000272/0.6386, allocations: 79.95 kB / 497.2 MB, free: 2.281 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01782/0.6565, allocations: 4.281 MB / 0.4897 GB, free: 14 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.6565, allocations: 0 / 0.4897 GB, free: 14 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.228e-05/0.6566, allocations: 0 / 0.4897 GB, free: 14 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.0004644/0.657, allocations: 370.4 kB / 0.4901 GB, free: 13.59 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.6571, allocations: 12.03 kB / 0.4901 GB, free: 13.58 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.195e-05/0.6571, allocations: 30.56 kB / 0.4901 GB, free: 13.54 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.549e-05/0.6572, allocations: 11.84 kB / 0.4902 GB, free: 13.53 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002718/0.6575, allocations: 190.9 kB / 0.4903 GB, free: 13.3 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/0.6575, allocations: 0 / 0.4903 GB, free: 13.3 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.533e-05/0.6575, allocations: 11.89 kB / 0.4903 GB, free: 13.29 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001415/0.6577, allocations: 51.41 kB / 0.4904 GB, free: 13.23 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.6577, allocations: 4 kB / 0.4904 GB, free: 13.22 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.6577, allocations: 4 kB / 0.4904 GB, free: 13.22 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.6578, allocations: 4 kB / 0.4904 GB, free: 13.21 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.148e-05/0.6578, allocations: 12 kB / 0.4904 GB, free: 13.2 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004306/0.6583, allocations: 276.8 kB / 0.4907 GB, free: 12.88 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002067/0.6585, allocations: 38.56 kB / 0.4907 GB, free: 12.84 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.35e-05/0.6585, allocations: 8.859 kB / 0.4907 GB, free: 12.82 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.858e-05/0.6586, allocations: 4 kB / 0.4907 GB, free: 12.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.766e-05/0.6586, allocations: 30.56 kB / 0.4908 GB, free: 12.78 MB / 426.7 MB Notification: Performance of pre-optimization done (n=3): time 1.613e-06/0.6586, allocations: 0 / 0.4908 GB, free: 12.78 MB / 426.7 MB Notification: Performance of matching and sorting (n=5): time 0.000479/0.6591, allocations: 109.5 kB / 0.4909 GB, free: 12.67 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.123e-05/0.6592, allocations: 77.11 kB / 0.4909 GB, free: 12.57 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001598/0.6593, allocations: 121 kB / 0.4911 GB, free: 12.45 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.6594, allocations: 33.7 kB / 0.4911 GB, free: 12.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.435e-05/0.6595, allocations: 162.5 kB / 0.4912 GB, free: 12.25 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.861e-05/0.6595, allocations: 19.73 kB / 0.4913 GB, free: 12.23 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.989e-06/0.6595, allocations: 0 / 0.4913 GB, free: 12.23 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.6597, allocations: 318.8 kB / 0.4916 GB, free: 11.91 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.35e-05/0.6597, allocations: 4 kB / 0.4916 GB, free: 11.91 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.082e-05/0.6598, allocations: 25.7 kB / 0.4916 GB, free: 11.88 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.536e-05/0.6598, allocations: 12 kB / 0.4916 GB, free: 11.86 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.6598, allocations: 4.031 kB / 0.4916 GB, free: 11.86 MB / 426.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001327/0.66, allocations: 61.81 kB / 0.4917 GB, free: 11.79 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.66, allocations: 8 kB / 0.4917 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.66, allocations: 0 / 0.4917 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.6601, allocations: 0 / 0.4917 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.6602, allocations: 16 kB / 0.4917 GB, free: 11.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.6602, allocations: 3.984 kB / 0.4917 GB, free: 11.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.729e-05/0.6603, allocations: 4 kB / 0.4917 GB, free: 11.76 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.057e-05/0.6603, allocations: 8 kB / 0.4917 GB, free: 11.75 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.062e-05/0.6604, allocations: 108.2 kB / 0.4918 GB, free: 11.64 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.016e-05/0.6605, allocations: 7.906 kB / 0.4918 GB, free: 11.64 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002032/0.6607, allocations: 73.7 kB / 0.4919 GB, free: 11.55 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.6607, allocations: 3.938 kB / 0.4919 GB, free: 11.55 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.6607, allocations: 0 / 0.4919 GB, free: 11.55 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.6607, allocations: 0 / 0.4919 GB, free: 11.55 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004437/0.6612, allocations: 330.5 kB / 0.4922 GB, free: 11.17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.6612, allocations: 7.938 kB / 0.4922 GB, free: 11.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/0.6613, allocations: 15.98 kB / 0.4922 GB, free: 11.15 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.6613, allocations: 0 / 0.4922 GB, free: 11.15 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.6613, allocations: 3.938 kB / 0.4922 GB, free: 11.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.043e-06/0.6614, allocations: 0 / 0.4922 GB, free: 11.14 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.6614, allocations: 0 / 0.4922 GB, free: 11.14 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001839/0.6616, allocations: 163.4 kB / 0.4924 GB, free: 10.97 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.692e-05/0.6616, allocations: 85.02 kB / 0.4925 GB, free: 10.87 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.43e-05/0.6617, allocations: 4.234 kB / 0.4925 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.6618, allocations: 8 kB / 0.4925 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.246e-05/0.6619, allocations: 8 kB / 0.4925 GB, free: 10.85 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.094e-05/0.6619, allocations: 7.984 kB / 0.4925 GB, free: 10.84 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001036/0.662, allocations: 99.28 kB / 0.4926 GB, free: 10.74 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.662, allocations: 0 / 0.4926 GB, free: 10.74 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003814/0.6624, allocations: 27.98 kB / 0.4926 GB, free: 10.71 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.001639/0.664, allocations: 1.036 MB / 0.4936 GB, free: 9.797 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001375/0.6642, allocations: 24 kB / 0.4936 GB, free: 9.773 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.6642, allocations: 0 / 0.4936 GB, free: 9.773 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 5.825e-05/0.6643, allocations: 23.94 kB / 0.4937 GB, free: 9.75 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002735/0.6646, allocations: 14.83 kB / 0.4937 GB, free: 9.738 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005778/0.6652, allocations: 180.3 kB / 0.4939 GB, free: 9.516 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002953/0.6655, allocations: 0.6887 MB / 0.4945 GB, free: 8.801 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.946e-05/0.6656, allocations: 23.42 kB / 0.4946 GB, free: 8.777 MB / 426.7 MB Notification: Performance of SimCode: time 7.61e-07/0.6656, allocations: 3.938 kB / 0.4946 GB, free: 8.773 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_Test21CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21CalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21Functions.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_Test21CalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21InitializeParameter.cpp:38:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp24; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21InitializeParameter.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_v7.mat", tmp24); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21CalcHelperMain.cpp:31: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21Initialize.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_v7.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21Initialize.cpp:244:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp15; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21Initialize.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_Test21CalcHelperMain.cpp:34: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21.cpp:712:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21FMU.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_Test21CalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21CalcHelperMain.o] Error 1