Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1Dv.Test24,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test24",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.713/2.713, allocations: 270 MB / 282.6 MB, free: 1.855 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.991e-05/3e-05, allocations: 0 / 347.1 MB, free: 3.152 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4348/0.4349, allocations: 61.87 MB / 408.9 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1874/0.6224, allocations: 88.33 MB / 497.3 MB, free: 2.312 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002685/0.6227, allocations: 71.97 kB / 497.3 MB, free: 2.242 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01816/0.6409, allocations: 4.303 MB / 0.4899 GB, free: 13.93 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.6409, allocations: 0 / 0.4899 GB, free: 13.93 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.259e-05/0.641, allocations: 0 / 0.4899 GB, free: 13.93 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.0004767/0.6414, allocations: 362.4 kB / 0.4902 GB, free: 13.53 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/0.6415, allocations: 16.03 kB / 0.4902 GB, free: 13.52 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.76e-05/0.6416, allocations: 38.55 kB / 0.4903 GB, free: 13.47 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.878e-05/0.6416, allocations: 7.906 kB / 0.4903 GB, free: 13.46 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002731/0.6419, allocations: 186.9 kB / 0.4905 GB, free: 13.24 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.418e-05/0.6419, allocations: 4 kB / 0.4905 GB, free: 13.23 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.828e-05/0.642, allocations: 11.94 kB / 0.4905 GB, free: 13.22 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001487/0.6421, allocations: 55.36 kB / 0.4905 GB, free: 13.16 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.6422, allocations: 0 / 0.4905 GB, free: 13.16 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.652e-05/0.6422, allocations: 7.984 kB / 0.4905 GB, free: 13.15 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.92e-06/0.6422, allocations: 4 kB / 0.4905 GB, free: 13.14 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.701e-05/0.6423, allocations: 12 kB / 0.4905 GB, free: 13.13 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004858/0.6428, allocations: 284.8 kB / 0.4908 GB, free: 12.8 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002163/0.643, allocations: 42.5 kB / 0.4909 GB, free: 12.75 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.395e-05/0.6431, allocations: 16.86 kB / 0.4909 GB, free: 12.73 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.413e-05/0.6431, allocations: 0 / 0.4909 GB, free: 12.73 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.6431, allocations: 34.56 kB / 0.4909 GB, free: 12.69 MB / 426.7 MB Notification: Performance of pre-optimization done (n=3): time 1.473e-06/0.6432, allocations: 0 / 0.4909 GB, free: 12.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005152/0.6437, allocations: 105.5 kB / 0.491 GB, free: 12.58 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.741e-05/0.6438, allocations: 81.11 kB / 0.4911 GB, free: 12.48 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00016/0.6439, allocations: 121 kB / 0.4912 GB, free: 12.36 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.813e-05/0.644, allocations: 29.7 kB / 0.4912 GB, free: 12.32 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.894e-05/0.6441, allocations: 166.5 kB / 0.4914 GB, free: 12.16 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.187e-05/0.6441, allocations: 15.75 kB / 0.4914 GB, free: 12.14 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.24e-06/0.6441, allocations: 0 / 0.4914 GB, free: 12.14 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.6443, allocations: 318.8 kB / 0.4917 GB, free: 11.82 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.488e-05/0.6443, allocations: 8 kB / 0.4917 GB, free: 11.82 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.676e-05/0.6444, allocations: 33.7 kB / 0.4917 GB, free: 11.78 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.499e-05/0.6445, allocations: 15.97 kB / 0.4918 GB, free: 11.76 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.6445, allocations: 4 kB / 0.4918 GB, free: 11.76 MB / 426.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001488/0.6446, allocations: 57.69 kB / 0.4918 GB, free: 11.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.6447, allocations: 4 kB / 0.4918 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.6447, allocations: 0 / 0.4918 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.6447, allocations: 3.984 kB / 0.4918 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/0.6448, allocations: 12 kB / 0.4918 GB, free: 11.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.183e-05/0.6449, allocations: 4 kB / 0.4918 GB, free: 11.67 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.602e-05/0.645, allocations: 11.98 kB / 0.4919 GB, free: 11.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.178e-06/0.645, allocations: 4 kB / 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.479e-05/0.6451, allocations: 108.9 kB / 0.492 GB, free: 11.54 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.978e-05/0.6451, allocations: 3.906 kB / 0.492 GB, free: 11.54 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000226/0.6454, allocations: 85.95 kB / 0.492 GB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.185e-06/0.6454, allocations: 4 kB / 0.4921 GB, free: 11.44 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.6454, allocations: 3.938 kB / 0.4921 GB, free: 11.44 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.6454, allocations: 0 / 0.4921 GB, free: 11.44 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004812/0.6459, allocations: 342.5 kB / 0.4924 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.6459, allocations: 0 / 0.4924 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001215/0.6461, allocations: 15.94 kB / 0.4924 GB, free: 11.03 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.6461, allocations: 0 / 0.4924 GB, free: 11.03 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.6461, allocations: 7.984 kB / 0.4924 GB, free: 11.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.6461, allocations: 0 / 0.4924 GB, free: 11.02 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.6461, allocations: 144 / 0.4924 GB, free: 11.02 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002034/0.6463, allocations: 167.4 kB / 0.4926 GB, free: 10.84 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.625e-05/0.6464, allocations: 85.02 kB / 0.4926 GB, free: 10.74 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.485e-05/0.6464, allocations: 7.984 kB / 0.4927 GB, free: 10.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001255/0.6466, allocations: 8 kB / 0.4927 GB, free: 10.73 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.531e-05/0.6466, allocations: 11.92 kB / 0.4927 GB, free: 10.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/0.6467, allocations: 0 / 0.4927 GB, free: 10.71 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001063/0.6468, allocations: 99.28 kB / 0.4928 GB, free: 10.62 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.6468, allocations: 0 / 0.4928 GB, free: 10.62 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003729/0.6472, allocations: 27.98 kB / 0.4928 GB, free: 10.59 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.00171/0.6489, allocations: 1.052 MB / 0.4938 GB, free: 9.664 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001719/0.6491, allocations: 31.98 kB / 0.4939 GB, free: 9.633 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.6491, allocations: 0 / 0.4939 GB, free: 9.633 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 6.211e-05/0.6492, allocations: 23.94 kB / 0.4939 GB, free: 9.609 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003022/0.6495, allocations: 15.98 kB / 0.4939 GB, free: 9.594 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006359/0.6502, allocations: 180.3 kB / 0.4941 GB, free: 9.371 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003205/0.6505, allocations: 0.6965 MB / 0.4947 GB, free: 8.648 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.698e-05/0.6506, allocations: 23.42 kB / 0.4948 GB, free: 8.625 MB / 426.7 MB Notification: Performance of SimCode: time 3.176e-06/0.6506, allocations: 0 / 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_Test24CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test24CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test24CalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test24Functions.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_Test24CalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test24InitializeParameter.cpp:38:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp24; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test24InitializeParameter.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_Test24CalcHelperMain.cpp:31: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test24Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test24Initialize.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_Test24Initialize.cpp:244:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp15; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test24Initialize.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_Test24CalcHelperMain.cpp:34: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test24.cpp:714:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test24CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test24FMU.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_Test24CalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test24CalcHelperMain.o] Error 1