Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1Dv.Test20,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test20",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.618/2.618, allocations: 270 MB / 282.7 MB, free: 1.82 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.33e-05/3.335e-05, allocations: 4 kB / 347.1 MB, free: 3.109 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4451/0.4451, allocations: 61.87 MB / 408.9 MB, free: 10.64 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1692/0.6144, allocations: 88.33 MB / 497.3 MB, free: 2.195 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002865/0.6147, allocations: 75.95 kB / 497.3 MB, free: 2.121 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01882/0.6335, allocations: 4.295 MB / 0.4899 GB, free: 13.82 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.6336, allocations: 0 / 0.4899 GB, free: 13.82 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.483e-05/0.6336, allocations: 4 kB / 0.4899 GB, free: 13.81 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.0004493/0.6341, allocations: 373.5 kB / 0.4902 GB, free: 13.41 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.6341, allocations: 12.03 kB / 0.4902 GB, free: 13.39 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.339e-05/0.6342, allocations: 34.56 kB / 0.4903 GB, free: 13.35 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.023e-05/0.6342, allocations: 7.906 kB / 0.4903 GB, free: 13.34 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00027/0.6345, allocations: 194.9 kB / 0.4905 GB, free: 13.11 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.6346, allocations: 0 / 0.4905 GB, free: 13.11 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.713e-05/0.6346, allocations: 7.953 kB / 0.4905 GB, free: 13.11 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000153/0.6348, allocations: 63.34 kB / 0.4905 GB, free: 13.03 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.6348, allocations: 4 kB / 0.4905 GB, free: 13.03 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/0.6348, allocations: 0 / 0.4905 GB, free: 13.03 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.6348, allocations: 0 / 0.4905 GB, free: 13.03 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.189e-05/0.6349, allocations: 12 kB / 0.4905 GB, free: 13.02 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007061/0.6356, allocations: 292.8 kB / 0.4908 GB, free: 12.68 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003473/0.636, allocations: 38.67 kB / 0.4909 GB, free: 12.63 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.253e-05/0.6361, allocations: 16.84 kB / 0.4909 GB, free: 12.61 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.395e-05/0.6362, allocations: 4 kB / 0.4909 GB, free: 12.61 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.244e-05/0.6362, allocations: 30.56 kB / 0.4909 GB, free: 12.57 MB / 426.7 MB Notification: Performance of pre-optimization done (n=3): time 3.116e-06/0.6362, allocations: 3.938 kB / 0.4909 GB, free: 12.57 MB / 426.7 MB Notification: Performance of matching and sorting (n=5): time 0.0008294/0.6371, allocations: 109.4 kB / 0.491 GB, free: 12.45 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.645e-05/0.6372, allocations: 81.11 kB / 0.4911 GB, free: 12.36 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002434/0.6375, allocations: 117 kB / 0.4912 GB, free: 12.23 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.191e-05/0.6375, allocations: 25.7 kB / 0.4912 GB, free: 12.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.6376, allocations: 162.5 kB / 0.4914 GB, free: 12.04 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.287e-05/0.6377, allocations: 15.75 kB / 0.4914 GB, free: 12.03 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.905e-06/0.6377, allocations: 0 / 0.4914 GB, free: 12.03 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.6379, allocations: 322.8 kB / 0.4917 GB, free: 11.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.099e-05/0.638, allocations: 12 kB / 0.4917 GB, free: 11.69 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.501e-05/0.6381, allocations: 29.72 kB / 0.4918 GB, free: 11.66 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.434e-05/0.6382, allocations: 19.92 kB / 0.4918 GB, free: 11.64 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.6382, allocations: 0 / 0.4918 GB, free: 11.64 MB / 426.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002776/0.6385, allocations: 57.69 kB / 0.4918 GB, free: 11.57 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.829e-05/0.6386, allocations: 5.719 kB / 0.4918 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.6386, allocations: 0 / 0.4918 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.6386, allocations: 4 kB / 0.4918 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002202/0.6389, allocations: 20.02 kB / 0.4919 GB, free: 11.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.6389, allocations: 0 / 0.4919 GB, free: 11.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001497/0.6391, allocations: 8 kB / 0.4919 GB, free: 11.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.603e-05/0.6391, allocations: 0 / 0.4919 GB, free: 11.54 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.0001275/0.6392, allocations: 108.9 kB / 0.492 GB, free: 11.43 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.062e-05/0.6393, allocations: 7.906 kB / 0.492 GB, free: 11.42 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003623/0.6397, allocations: 82.02 kB / 0.4921 GB, free: 11.33 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.088e-05/0.6398, allocations: 4 kB / 0.4921 GB, free: 11.32 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.6398, allocations: 7.938 kB / 0.4921 GB, free: 11.32 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.6398, allocations: 3.984 kB / 0.4921 GB, free: 11.31 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009025/0.6407, allocations: 334.5 kB / 0.4924 GB, free: 10.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.6408, allocations: 0 / 0.4924 GB, free: 10.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002055/0.641, allocations: 19.92 kB / 0.4924 GB, free: 10.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.806e-06/0.641, allocations: 0 / 0.4924 GB, free: 10.91 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.75e-05/0.6411, allocations: 4 kB / 0.4924 GB, free: 10.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.6411, allocations: 0 / 0.4924 GB, free: 10.91 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.6411, allocations: 4 kB / 0.4924 GB, free: 10.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003927/0.6415, allocations: 163.4 kB / 0.4926 GB, free: 10.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001264/0.6417, allocations: 89 kB / 0.4927 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.955e-05/0.6418, allocations: 4 kB / 0.4927 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002559/0.642, allocations: 7.984 kB / 0.4927 GB, free: 10.61 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.982e-05/0.6421, allocations: 4 kB / 0.4927 GB, free: 10.61 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.354e-05/0.6421, allocations: 0 / 0.4927 GB, free: 10.61 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000175/0.6423, allocations: 107.3 kB / 0.4928 GB, free: 10.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.012e-06/0.6424, allocations: 0 / 0.4928 GB, free: 10.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007069/0.6431, allocations: 27.94 kB / 0.4928 GB, free: 10.47 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.002598/0.6457, allocations: 1.048 MB / 0.4938 GB, free: 9.543 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002716/0.646, allocations: 28 kB / 0.4938 GB, free: 9.516 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/0.6461, allocations: 0 / 0.4938 GB, free: 9.516 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 9.979e-05/0.6462, allocations: 19.94 kB / 0.4939 GB, free: 9.496 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005135/0.6467, allocations: 22.97 kB / 0.4939 GB, free: 9.477 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008372/0.6476, allocations: 184.3 kB / 0.4941 GB, free: 9.25 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003279/0.6479, allocations: 0.6965 MB / 0.4947 GB, free: 8.527 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.648, allocations: 23.42 kB / 0.4948 GB, free: 8.504 MB / 426.7 MB Notification: Performance of SimCode: time 3.626e-06/0.6481, allocations: 0 / 0.4948 GB, free: 8.504 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_Test20CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test20CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test20CalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test20Functions.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_Test20CalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test20InitializeParameter.cpp:38:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp24; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test20InitializeParameter.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_v6.mat", tmp24); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test20CalcHelperMain.cpp:31: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test20Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test20Initialize.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_v6.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test20Initialize.cpp:244:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp15; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test20Initialize.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_Test20CalcHelperMain.cpp:34: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test20.cpp:714:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test20CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test20FMU.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_Test20CalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable1Dv_Test20CalcHelperMain.o] Error 1