Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1Ds.Test18,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.573/2.573, allocations: 270 MB / 282.7 MB, free: 1.848 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.735e-05/3.749e-05, allocations: 7.984 kB / 347.1 MB, free: 3.137 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3847/0.3848, allocations: 61.86 MB / 408.9 MB, free: 10.67 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1574/0.5423, allocations: 88.28 MB / 497.2 MB, free: 2.27 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002581/0.5426, allocations: 71.97 kB / 497.3 MB, free: 2.199 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01936/0.562, allocations: 4.569 MB / 0.4901 GB, free: 13.62 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.562, allocations: 0 / 0.4901 GB, free: 13.62 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.344e-05/0.562, allocations: 0 / 0.4901 GB, free: 13.62 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004734/0.5625, allocations: 370.3 kB / 0.4904 GB, free: 13.21 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.5626, allocations: 8.031 kB / 0.4904 GB, free: 13.2 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.667e-05/0.5626, allocations: 42.55 kB / 0.4905 GB, free: 13.15 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.15e-05/0.5627, allocations: 7.906 kB / 0.4905 GB, free: 13.14 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002851/0.563, allocations: 202.8 kB / 0.4907 GB, free: 12.91 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.144e-05/0.563, allocations: 0 / 0.4907 GB, free: 12.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.526e-05/0.563, allocations: 7.953 kB / 0.4907 GB, free: 12.9 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001757/0.5632, allocations: 67.41 kB / 0.4908 GB, free: 12.82 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.5633, allocations: 0 / 0.4908 GB, free: 12.82 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.5633, allocations: 0 / 0.4908 GB, free: 12.82 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.5633, allocations: 0 / 0.4908 GB, free: 12.82 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.216e-05/0.5634, allocations: 31.92 kB / 0.4908 GB, free: 12.79 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004533/0.5639, allocations: 296.7 kB / 0.4911 GB, free: 12.45 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001114/0.564, allocations: 42.58 kB / 0.4911 GB, free: 12.4 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.445e-05/0.564, allocations: 16.97 kB / 0.4911 GB, free: 12.38 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.804e-05/0.5641, allocations: 4 kB / 0.4911 GB, free: 12.38 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.003e-05/0.5641, allocations: 34.56 kB / 0.4912 GB, free: 12.33 MB / 426.7 MB Notification: Performance of pre-optimization done (n=5): time 1.904e-06/0.5641, allocations: 0 / 0.4912 GB, free: 12.33 MB / 426.7 MB Notification: Performance of matching and sorting (n=8): time 0.0006041/0.5647, allocations: 129.5 kB / 0.4913 GB, free: 12.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.794e-05/0.5648, allocations: 81.11 kB / 0.4914 GB, free: 12.1 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001678/0.565, allocations: 132.8 kB / 0.4915 GB, free: 11.96 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.861e-05/0.565, allocations: 25.7 kB / 0.4915 GB, free: 11.93 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.113e-05/0.5651, allocations: 154.6 kB / 0.4917 GB, free: 11.78 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.868e-05/0.5652, allocations: 31.64 kB / 0.4917 GB, free: 11.75 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.586e-06/0.5652, allocations: 4 kB / 0.4917 GB, free: 11.75 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.5653, allocations: 314.8 kB / 0.492 GB, free: 11.43 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.403e-05/0.5654, allocations: 16 kB / 0.492 GB, free: 11.41 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.417e-05/0.5655, allocations: 33.66 kB / 0.492 GB, free: 11.38 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.486e-05/0.5655, allocations: 20.2 kB / 0.4921 GB, free: 11.36 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.5656, allocations: 3.938 kB / 0.4921 GB, free: 11.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001901/0.5658, allocations: 77.58 kB / 0.4921 GB, free: 11.27 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.5658, allocations: 12.03 kB / 0.4922 GB, free: 11.26 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.5658, allocations: 0 / 0.4922 GB, free: 11.26 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.5658, allocations: 0 / 0.4922 GB, free: 11.26 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001824/0.566, allocations: 19.98 kB / 0.4922 GB, free: 11.24 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.874e-06/0.566, allocations: 0 / 0.4922 GB, free: 11.24 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.278e-05/0.5661, allocations: 11.98 kB / 0.4922 GB, free: 11.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.054e-05/0.5662, allocations: 4 kB / 0.4922 GB, free: 11.22 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 (8): * Single equations (assignments): 8 * 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.788e-05/0.5663, allocations: 120.9 kB / 0.4923 GB, free: 11.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.181e-05/0.5663, allocations: 3.906 kB / 0.4923 GB, free: 11.09 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002659/0.5666, allocations: 90.3 kB / 0.4924 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.5666, allocations: 0 / 0.4924 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.5666, allocations: 3.984 kB / 0.4924 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.5666, allocations: 0 / 0.4924 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005743/0.5672, allocations: 370.4 kB / 0.4927 GB, free: 10.58 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.5672, allocations: 0 / 0.4927 GB, free: 10.58 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001417/0.5674, allocations: 24.17 kB / 0.4928 GB, free: 10.56 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.5674, allocations: 0 / 0.4928 GB, free: 10.56 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.5674, allocations: 4 kB / 0.4928 GB, free: 10.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.5674, allocations: 4 kB / 0.4928 GB, free: 10.55 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.5675, allocations: 0 / 0.4928 GB, free: 10.55 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002356/0.5677, allocations: 187.5 kB / 0.493 GB, free: 10.35 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.193e-05/0.5678, allocations: 89.02 kB / 0.493 GB, free: 10.25 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.369e-05/0.5678, allocations: 7.938 kB / 0.4931 GB, free: 10.24 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001196/0.5679, allocations: 7.984 kB / 0.4931 GB, free: 10.23 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.297e-05/0.568, allocations: 4 kB / 0.4931 GB, free: 10.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/0.568, allocations: 7.984 kB / 0.4931 GB, free: 10.22 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000112/0.5681, allocations: 105.7 kB / 0.4932 GB, free: 10.12 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5682, allocations: 0 / 0.4932 GB, free: 10.12 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003697/0.5685, allocations: 39.86 kB / 0.4932 GB, free: 10.08 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 (8): * Single equations (assignments): 8 * 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.001658/0.5702, allocations: 1.042 MB / 0.4942 GB, free: 9.152 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001845/0.5704, allocations: 40 kB / 0.4943 GB, free: 9.113 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.5704, allocations: 0 / 0.4943 GB, free: 9.113 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 7.863e-05/0.5705, allocations: 32.08 kB / 0.4943 GB, free: 9.082 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002899/0.5708, allocations: 20.14 kB / 0.4943 GB, free: 9.062 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006836/0.5715, allocations: 208.6 kB / 0.4945 GB, free: 8.816 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002871/0.5718, allocations: 0.6965 MB / 0.4952 GB, free: 8.094 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.572, allocations: 31.42 kB / 0.4952 GB, free: 8.062 MB / 426.7 MB Notification: Performance of SimCode: time 1.092e-06/0.572, allocations: 0 / 0.4952 GB, free: 8.062 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_Test18CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18CalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18Functions.cpp:209:31: error: no matching function for call to 'ModelicaStandardTables_CombiTable1D_init2' externalCombiTable1D__ext = ModelicaStandardTables_CombiTable1D_init2(fileName_.c_str(), tableName_.c_str(), tmp8.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_Test18CalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18InitializeParameter.cpp:39:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp28; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18InitializeParameter.cpp:40: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", tmp28); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18CalcHelperMain.cpp:31: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp11; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18Initialize.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", tmp11); ~~~~~~~~~~ ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18Initialize.cpp:278:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp19; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18Initialize.cpp:279:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT0, tmp19); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18CalcHelperMain.cpp:34: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18.cpp:745:24: error: use of undeclared identifier 'tmp6' _t_new_P_fileName_ = tmp6; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18FMU.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_Test18CalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18CalcHelperMain.o] Error 1