Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2Dv.Test29,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test29",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.506/2.506, allocations: 270 MB / 282.6 MB, free: 1.965 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.476e-05/4.482e-05, allocations: 8 kB / 347.1 MB, free: 3.215 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3969/0.397, allocations: 61.87 MB / 408.9 MB, free: 10.72 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2025/0.5995, allocations: 88.99 MB / 497.9 MB, free: 1.609 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002768/0.5999, allocations: 71.97 kB / 498 MB, free: 1.539 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02084/0.6207, allocations: 4.784 MB / 0.491 GB, free: 12.75 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.6208, allocations: 0 / 0.491 GB, free: 12.75 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.732e-05/0.6208, allocations: 0 / 0.491 GB, free: 12.75 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.000564/0.6214, allocations: 422.1 kB / 0.4914 GB, free: 12.29 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.6214, allocations: 8.031 kB / 0.4914 GB, free: 12.28 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.207e-05/0.6215, allocations: 34.56 kB / 0.4914 GB, free: 12.24 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.251e-05/0.6215, allocations: 7.906 kB / 0.4914 GB, free: 12.23 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003214/0.6219, allocations: 217.5 kB / 0.4916 GB, free: 11.98 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.47e-05/0.6219, allocations: 0 / 0.4916 GB, free: 11.98 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.385e-05/0.6219, allocations: 11.88 kB / 0.4917 GB, free: 11.96 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001628/0.6221, allocations: 53.69 kB / 0.4917 GB, free: 11.91 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.6221, allocations: 0 / 0.4917 GB, free: 11.91 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.6222, allocations: 4 kB / 0.4917 GB, free: 11.9 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.6222, allocations: 4 kB / 0.4917 GB, free: 11.9 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001332/0.6223, allocations: 27.98 kB / 0.4917 GB, free: 11.87 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006724/0.623, allocations: 344.6 kB / 0.4921 GB, free: 11.48 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002618/0.6233, allocations: 54.55 kB / 0.4921 GB, free: 11.42 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.731e-05/0.6234, allocations: 16.98 kB / 0.4921 GB, free: 11.4 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.281e-05/0.6234, allocations: 4 kB / 0.4921 GB, free: 11.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.6235, allocations: 30.56 kB / 0.4922 GB, free: 11.36 MB / 426.7 MB Notification: Performance of pre-optimization done (n=5): time 2.836e-06/0.6235, allocations: 3.938 kB / 0.4922 GB, free: 11.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=11): time 0.001013/0.6245, allocations: 245.1 kB / 0.4924 GB, free: 11.11 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.623e-05/0.6246, allocations: 55.34 kB / 0.4925 GB, free: 11.04 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000317/0.6249, allocations: 198.7 kB / 0.4927 GB, free: 10.84 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.6249, allocations: 29.7 kB / 0.4927 GB, free: 10.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.364e-05/0.625, allocations: 162.6 kB / 0.4928 GB, free: 10.64 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.312e-05/0.6251, allocations: 35.45 kB / 0.4929 GB, free: 10.61 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.21e-05/0.6251, allocations: 4 kB / 0.4929 GB, free: 10.61 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.6252, allocations: 318.8 kB / 0.4932 GB, free: 10.29 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.6254, allocations: 40 kB / 0.4932 GB, free: 10.25 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.95e-05/0.6255, allocations: 31.98 kB / 0.4932 GB, free: 10.21 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001162/0.6256, allocations: 47.97 kB / 0.4933 GB, free: 10.17 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.6256, allocations: 0 / 0.4933 GB, free: 10.17 MB / 426.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003004/0.6259, allocations: 117.9 kB / 0.4934 GB, free: 10.05 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.626, allocations: 4 kB / 0.4934 GB, free: 10.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.626, allocations: 0 / 0.4934 GB, free: 10.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.626, allocations: 0 / 0.4934 GB, free: 10.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002606/0.6263, allocations: 35.92 kB / 0.4934 GB, free: 10.01 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.434e-05/0.6263, allocations: 7.938 kB / 0.4935 GB, free: 10 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001431/0.6265, allocations: 15.91 kB / 0.4935 GB, free: 9.984 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.6e-05/0.6265, allocations: 4 kB / 0.4935 GB, free: 9.98 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 (11): * Single equations (assignments): 11 * 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.859e-05/0.6266, allocations: 109 kB / 0.4936 GB, free: 9.867 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.125e-05/0.6266, allocations: 7.906 kB / 0.4936 GB, free: 9.859 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000424/0.6271, allocations: 163.1 kB / 0.4937 GB, free: 9.691 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/0.6271, allocations: 4 kB / 0.4937 GB, free: 9.688 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.6271, allocations: 0 / 0.4937 GB, free: 9.688 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.6271, allocations: 7.891 kB / 0.4937 GB, free: 9.68 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000855/0.628, allocations: 492 kB / 0.4942 GB, free: 9.137 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.628, allocations: 0 / 0.4942 GB, free: 9.137 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002191/0.6282, allocations: 35.98 kB / 0.4943 GB, free: 9.102 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.526e-06/0.6283, allocations: 3.953 kB / 0.4943 GB, free: 9.098 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.686e-05/0.6283, allocations: 4 kB / 0.4943 GB, free: 9.094 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.6283, allocations: 0 / 0.4943 GB, free: 9.094 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.6283, allocations: 0 / 0.4943 GB, free: 9.094 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003853/0.6287, allocations: 264.4 kB / 0.4945 GB, free: 8.801 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.692e-05/0.6288, allocations: 97 kB / 0.4946 GB, free: 8.688 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.612e-05/0.6289, allocations: 4.375 kB / 0.4946 GB, free: 8.684 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001794/0.629, allocations: 15.98 kB / 0.4946 GB, free: 8.668 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.922e-05/0.6291, allocations: 15.92 kB / 0.4946 GB, free: 8.652 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.375e-05/0.6291, allocations: 8 kB / 0.4946 GB, free: 8.645 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002143/0.6294, allocations: 156.2 kB / 0.4948 GB, free: 8.492 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6294, allocations: 0 / 0.4948 GB, free: 8.492 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003975/0.6298, allocations: 35.94 kB / 0.4948 GB, free: 8.457 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.002037/0.6318, allocations: 1.275 MB / 0.4961 GB, free: 7.297 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003151/0.6322, allocations: 95.91 kB / 0.4962 GB, free: 7.203 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.6322, allocations: 0 / 0.4962 GB, free: 7.203 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001344/0.6324, allocations: 56 kB / 0.4962 GB, free: 7.148 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003332/0.6327, allocations: 18.83 kB / 0.4962 GB, free: 7.133 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009816/0.6337, allocations: 338.5 kB / 0.4966 GB, free: 6.754 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003889/0.6341, allocations: 0.7315 MB / 0.4973 GB, free: 5.996 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001319/0.6343, allocations: 39.42 kB / 0.4973 GB, free: 5.957 MB / 426.7 MB Notification: Performance of SimCode: time 1.312e-06/0.6343, allocations: 4.062 kB / 0.4973 GB, free: 5.953 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_CombiTable2Dv_Test29CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test29CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test29CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test29FMU.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 generated. clang++ -shared -o ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test29.so OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test29CalcHelperMain.o -L"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/cpp" -Wl,--no-undefined -lOMCppSystem_static -lOMCppMath_static -lOMCppModelicaUtilities_static -lOMCppFMU_static -lOMCppNewton_static -lOMCppDgesvSolver_static -lOMCppSolver_static -lOMCppExtensionUtilities_static -L"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest trunk/Tables" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/" "-L/var/lib/hudson/.openmodelica/binaries/Modelica" -Wl,-rpath="/var/lib/hudson/.openmodelica/binaries/Modelica" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Library/x86_64-linux" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Library/x86_64-linux" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Library/linux64" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Library/linux64" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Library" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Library" -lModelicaStandardTables -lModelicaIO -lModelicaMatIO -lzlib -lOMCppModelicaUtilities_static -lOMCppDgesv_static /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/cpp/libModelicaMatIO.a(ModelicaMatIO.c.o): In function `Mat_VarDelete': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:4972: warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp' /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/cpp/libModelicaMatIO.a(ModelicaMatIO.c.o): In function `strdup_vprintf': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:1469: undefined reference to `rpl_vsnprintf' /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:1476: undefined reference to `rpl_vsnprintf' /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:1469: undefined reference to `rpl_vsnprintf' /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:1476: undefined reference to `rpl_vsnprintf' /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/cpp/libModelicaMatIO.a(ModelicaMatIO.c.o): In function `Mat_Create5': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:7716: undefined reference to `rpl_snprintf' /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:7711: undefined reference to `rpl_snprintf' clang: error: linker command failed with exit code 1 (use -v to see invocation) ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test29_FMU.makefile:93: recipe for target 'ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test29.fmu' failed make: *** [ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test29.fmu] Error 1