Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2Ds.Test16,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.709/2.709, allocations: 270 MB / 282.7 MB, free: 1.855 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.649e-05/4.661e-05, allocations: 4 kB / 347.1 MB, free: 3.125 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4036/0.4037, allocations: 61.87 MB / 408.9 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1584/0.5622, allocations: 87.4 MB / 496.3 MB, free: 3.254 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002681/0.5625, allocations: 75.95 kB / 496.4 MB, free: 3.18 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0112/0.5737, allocations: 3.054 MB / 499.4 MB, free: 112 kB / 410.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.5737, allocations: 0 / 499.4 MB, free: 112 kB / 410.7 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.5738, allocations: 0 / 499.4 MB, free: 112 kB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004259/0.5742, allocations: 361.5 kB / 499.8 MB, free: 15.71 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.476e-05/0.5743, allocations: 12.03 kB / 499.8 MB, free: 15.7 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.425e-05/0.5743, allocations: 38.56 kB / 499.9 MB, free: 15.66 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.526e-05/0.5744, allocations: 3.906 kB / 499.9 MB, free: 15.65 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001752/0.5746, allocations: 179.2 kB / 0.4883 GB, free: 15.44 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.592e-05/0.5746, allocations: 8 kB / 0.4883 GB, free: 15.43 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.29e-05/0.5746, allocations: 7.984 kB / 0.4883 GB, free: 15.42 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002959/0.5749, allocations: 183.3 kB / 0.4885 GB, free: 15.19 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.575, allocations: 8 kB / 0.4885 GB, free: 15.18 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.863e-05/0.575, allocations: 4 kB / 0.4885 GB, free: 15.18 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.888e-05/0.5751, allocations: 15.92 kB / 0.4885 GB, free: 15.16 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001146/0.5752, allocations: 47.86 kB / 0.4886 GB, free: 15.11 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001189/0.5764, allocations: 1.701 MB / 0.4902 GB, free: 13.3 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.781e-05/0.5765, allocations: 165.1 kB / 0.4904 GB, free: 13.13 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.824e-05/0.5765, allocations: 88.14 kB / 0.4905 GB, free: 13.04 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.717e-05/0.5766, allocations: 79.28 kB / 0.4906 GB, free: 12.96 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.983e-05/0.5766, allocations: 109.8 kB / 0.4907 GB, free: 12.85 MB / 426.7 MB Notification: Performance of pre-optimization done (n=0): time 2.705e-06/0.5767, allocations: 0 / 0.4907 GB, free: 12.85 MB / 426.7 MB Notification: Performance of matching and sorting (n=0): time 9.1e-05/0.5768, allocations: 33.61 kB / 0.4907 GB, free: 12.81 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.867e-05/0.5768, allocations: 126.7 kB / 0.4908 GB, free: 12.67 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002241/0.5771, allocations: 171.9 kB / 0.491 GB, free: 12.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.596e-05/0.5771, allocations: 29.7 kB / 0.491 GB, free: 12.46 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000137/0.5773, allocations: 213.6 kB / 0.4912 GB, free: 12.25 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.076e-05/0.5773, allocations: 11.92 kB / 0.4912 GB, free: 12.24 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.038e-05/0.5773, allocations: 4 kB / 0.4912 GB, free: 12.24 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.5774, allocations: 314.8 kB / 0.4915 GB, free: 11.92 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.327e-05/0.5775, allocations: 31.98 kB / 0.4916 GB, free: 11.89 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001816/0.5777, allocations: 153.1 kB / 0.4917 GB, free: 11.68 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001474/0.5779, allocations: 71.89 kB / 0.4918 GB, free: 11.61 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.5779, allocations: 4 kB / 0.4918 GB, free: 11.61 MB / 426.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000412/0.5783, allocations: 177.2 kB / 0.4919 GB, free: 11.43 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.5783, allocations: 4 kB / 0.4919 GB, free: 11.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/0.5784, allocations: 11.98 kB / 0.492 GB, free: 11.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.263e-05/0.5784, allocations: 4 kB / 0.492 GB, free: 11.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002165/0.5786, allocations: 35.92 kB / 0.492 GB, free: 11.37 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.084e-05/0.5787, allocations: 24.44 kB / 0.492 GB, free: 11.35 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001253/0.5788, allocations: 19.84 kB / 0.492 GB, free: 11.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.341e-05/0.5788, allocations: 12 kB / 0.492 GB, free: 11.32 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.00011/0.579, allocations: 192.1 kB / 0.4922 GB, free: 11.12 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.128e-05/0.5791, allocations: 108.9 kB / 0.4923 GB, free: 11.01 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.868e-05/0.5791, allocations: 120.4 kB / 0.4924 GB, free: 10.87 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.288e-05/0.5792, allocations: 184.2 kB / 0.4926 GB, free: 10.68 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.232e-05/0.5793, allocations: 184.3 kB / 0.4928 GB, free: 10.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-05/0.5794, allocations: 180.2 kB / 0.493 GB, free: 10.31 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002901/0.5797, allocations: 425.2 kB / 0.4934 GB, free: 9.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.417e-05/0.5798, allocations: 105 kB / 0.4935 GB, free: 9.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.014e-05/0.5798, allocations: 105 kB / 0.4936 GB, free: 9.621 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.777e-05/0.5799, allocations: 180.2 kB / 0.4937 GB, free: 9.438 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.498e-05/0.58, allocations: 184.2 kB / 0.4939 GB, free: 9.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.78e-05/0.5801, allocations: 176.3 kB / 0.4941 GB, free: 9.07 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.813e-05/0.5801, allocations: 184.2 kB / 0.4943 GB, free: 8.883 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001591/0.5803, allocations: 307.7 kB / 0.4946 GB, free: 8.559 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/0.5804, allocations: 197.9 kB / 0.4947 GB, free: 8.34 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.842e-05/0.5805, allocations: 176.3 kB / 0.4949 GB, free: 8.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.5807, allocations: 101.8 kB / 0.495 GB, free: 8.055 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.065e-05/0.5807, allocations: 184.2 kB / 0.4952 GB, free: 7.867 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.45e-05/0.5808, allocations: 109 kB / 0.4953 GB, free: 7.754 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001599/0.581, allocations: 126.3 kB / 0.4954 GB, free: 7.633 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.214e-06/0.581, allocations: 4 kB / 0.4954 GB, free: 7.629 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000378/0.5814, allocations: 19.94 kB / 0.4954 GB, free: 7.609 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 (0): * Single equations (assignments): 0 * 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.0009409/0.5823, allocations: 0.922 MB / 0.4963 GB, free: 6.711 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002082/0.5826, allocations: 71.78 kB / 0.4964 GB, free: 6.641 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.5826, allocations: 0 / 0.4964 GB, free: 6.641 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 2.445e-06/0.5826, allocations: 0 / 0.4964 GB, free: 6.641 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003468/0.5829, allocations: 0.5276 MB / 0.4969 GB, free: 6.109 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006573/0.5836, allocations: 284.1 kB / 0.4972 GB, free: 5.785 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003123/0.5839, allocations: 0.7009 MB / 0.4979 GB, free: 5.059 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.793e-05/0.584, allocations: 31.42 kB / 0.4979 GB, free: 5.027 MB / 426.7 MB Notification: Performance of SimCode: time 7.62e-07/0.5841, allocations: 0 / 0.4979 GB, free: 5.027 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_CombiTable2Ds_Test16CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16CalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16InitializeParameter.cpp:27:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp8; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16InitializeParameter.cpp:28: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_v4.mat", tmp8); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16CalcHelperMain.cpp:31: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16Initialize.cpp:96:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp4; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16Initialize.cpp:97: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_v4.mat", tmp4); ~~~~~~~~~~ ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16Initialize.cpp:377:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp6; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16Initialize.cpp:378:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT0, tmp6); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16CalcHelperMain.cpp:34: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16.cpp:606:16: error: use of undeclared identifier 'tmp0' _fileName_ = tmp0; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16FMU.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 7 errors generated. : recipe for target 'OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16CalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16CalcHelperMain.o] Error 1