Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2Ds.Test31,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test31",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.782/2.782, allocations: 270 MB / 282.6 MB, free: 1.82 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.132e-05/4.143e-05, allocations: 4 kB / 347 MB, free: 3.129 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4473/0.4473, allocations: 61.88 MB / 408.9 MB, free: 10.67 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1626/0.61, allocations: 88.72 MB / 497.6 MB, free: 1.828 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002714/0.6103, allocations: 63.97 kB / 497.7 MB, free: 1.766 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01955/0.6299, allocations: 4.461 MB / 0.4904 GB, free: 13.29 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.6299, allocations: 0 / 0.4904 GB, free: 13.29 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.91e-05/0.6299, allocations: 8 kB / 0.4904 GB, free: 13.28 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005246/0.6305, allocations: 382.2 kB / 0.4908 GB, free: 12.86 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.6305, allocations: 12.03 kB / 0.4908 GB, free: 12.85 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.865e-05/0.6306, allocations: 30.56 kB / 0.4908 GB, free: 12.81 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.413e-05/0.6307, allocations: 11.89 kB / 0.4908 GB, free: 12.8 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002738/0.6309, allocations: 194.9 kB / 0.491 GB, free: 12.57 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.631, allocations: 4 kB / 0.491 GB, free: 12.57 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.142e-05/0.631, allocations: 3.984 kB / 0.491 GB, free: 12.56 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001577/0.6312, allocations: 63.34 kB / 0.4911 GB, free: 12.49 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.6312, allocations: 0 / 0.4911 GB, free: 12.49 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.575e-05/0.6312, allocations: 11.94 kB / 0.4911 GB, free: 12.48 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.6312, allocations: 0 / 0.4911 GB, free: 12.48 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.958e-05/0.6313, allocations: 16 kB / 0.4911 GB, free: 12.46 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004522/0.6318, allocations: 292.7 kB / 0.4914 GB, free: 12.12 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001024/0.6319, allocations: 38.52 kB / 0.4914 GB, free: 12.08 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.395e-05/0.632, allocations: 12.86 kB / 0.4914 GB, free: 12.06 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.185e-05/0.632, allocations: 3.984 kB / 0.4914 GB, free: 12.06 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.294e-05/0.6321, allocations: 42.5 kB / 0.4915 GB, free: 12.01 MB / 426.7 MB Notification: Performance of pre-optimization done (n=4): time 1.914e-06/0.6321, allocations: 0 / 0.4915 GB, free: 12.01 MB / 426.7 MB Notification: Performance of matching and sorting (n=7): time 0.0006666/0.6327, allocations: 133.5 kB / 0.4916 GB, free: 11.87 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.109e-05/0.6328, allocations: 77.11 kB / 0.4917 GB, free: 11.78 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001905/0.633, allocations: 144.6 kB / 0.4918 GB, free: 11.63 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.805e-05/0.6331, allocations: 25.7 kB / 0.4918 GB, free: 11.6 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.436e-05/0.6331, allocations: 158.6 kB / 0.492 GB, free: 11.44 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.566e-05/0.6332, allocations: 23.78 kB / 0.492 GB, free: 11.42 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.733e-06/0.6332, allocations: 0 / 0.492 GB, free: 11.42 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.6333, allocations: 314.8 kB / 0.4923 GB, free: 11.1 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.688e-05/0.6334, allocations: 15.98 kB / 0.4923 GB, free: 11.09 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.95e-05/0.6335, allocations: 29.72 kB / 0.4924 GB, free: 11.05 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.957e-05/0.6336, allocations: 16.22 kB / 0.4924 GB, free: 11.04 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.6336, allocations: 0 / 0.4924 GB, free: 11.04 MB / 426.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001819/0.6338, allocations: 77.7 kB / 0.4924 GB, free: 10.95 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.6338, allocations: 4 kB / 0.4925 GB, free: 10.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.6338, allocations: 4 kB / 0.4925 GB, free: 10.95 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.6338, allocations: 0 / 0.4925 GB, free: 10.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002154/0.6341, allocations: 27.92 kB / 0.4925 GB, free: 10.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.6341, allocations: 0 / 0.4925 GB, free: 10.92 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001397/0.6342, allocations: 23.88 kB / 0.4925 GB, free: 10.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.6343, allocations: 4 kB / 0.4925 GB, free: 10.89 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 (7): * Single equations (assignments): 7 * 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.566e-05/0.6344, allocations: 109 kB / 0.4926 GB, free: 10.78 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.547e-05/0.6344, allocations: 7.906 kB / 0.4926 GB, free: 10.77 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002565/0.6347, allocations: 82.3 kB / 0.4927 GB, free: 10.68 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.6347, allocations: 0 / 0.4927 GB, free: 10.68 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.6347, allocations: 3.938 kB / 0.4927 GB, free: 10.68 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.6347, allocations: 0 / 0.4927 GB, free: 10.68 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005295/0.6353, allocations: 366.4 kB / 0.4931 GB, free: 10.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.6353, allocations: 0 / 0.4931 GB, free: 10.27 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001765/0.6355, allocations: 23.98 kB / 0.4931 GB, free: 10.24 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.541e-06/0.6355, allocations: 0 / 0.4931 GB, free: 10.24 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.6355, allocations: 0 / 0.4931 GB, free: 10.24 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.6355, allocations: 4 kB / 0.4931 GB, free: 10.24 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/0.6355, allocations: 3.953 kB / 0.4931 GB, free: 10.23 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00024/0.6358, allocations: 187.2 kB / 0.4933 GB, free: 10.04 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.335e-05/0.6359, allocations: 85.09 kB / 0.4933 GB, free: 9.934 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.887e-05/0.6359, allocations: 4 kB / 0.4933 GB, free: 9.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001665/0.6361, allocations: 15.98 kB / 0.4934 GB, free: 9.914 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.929e-05/0.6362, allocations: 3.984 kB / 0.4934 GB, free: 9.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.6362, allocations: 7.953 kB / 0.4934 GB, free: 9.902 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001286/0.6363, allocations: 111.3 kB / 0.4935 GB, free: 9.793 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6363, allocations: 4 kB / 0.4935 GB, free: 9.789 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004177/0.6368, allocations: 27.91 kB / 0.4935 GB, free: 9.762 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 (7): * Single equations (assignments): 7 * 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.001713/0.6385, allocations: 1.028 MB / 0.4945 GB, free: 8.855 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002095/0.6387, allocations: 44 kB / 0.4946 GB, free: 8.812 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.6387, allocations: 0 / 0.4946 GB, free: 8.812 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 7.912e-05/0.6388, allocations: 31.92 kB / 0.4946 GB, free: 8.781 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003113/0.6392, allocations: 11.91 kB / 0.4946 GB, free: 8.77 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007174/0.6399, allocations: 208.9 kB / 0.4948 GB, free: 8.523 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002945/0.6402, allocations: 0.7004 MB / 0.4955 GB, free: 7.797 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.6403, allocations: 27.42 kB / 0.4955 GB, free: 7.77 MB / 426.7 MB Notification: Performance of SimCode: time 1.222e-06/0.6403, allocations: 0 / 0.4955 GB, free: 7.77 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_Test31CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test31CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test31CalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test31InitializeParameter.cpp:40:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp30; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test31InitializeParameter.cpp:41:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest trunk/Resources/Data/Tables/test_utf8.txt", tmp30); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test31CalcHelperMain.cpp:31: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test31Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp12; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test31Initialize.cpp:96:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest trunk/Resources/Data/Tables/test_utf8.txt", tmp12); ~~~~~~~~~~ ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test31Initialize.cpp:277:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp20; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test31Initialize.cpp:278:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT0, tmp20); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test31CalcHelperMain.cpp:34: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test31.cpp:758:24: error: use of undeclared identifier 'tmp6' _t_new_P_fileName_ = tmp6; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test31CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test31FMU.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_Test31CalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test31CalcHelperMain.o] Error 1