Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2D.Test21,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test21",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.611/2.611, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.11e-05/5.121e-05, allocations: 4.938 kB / 305 MB, free: 5.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.415/0.4151, allocations: 54.86 MB / 359.9 MB, free: 2.324 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1584/0.5735, allocations: 82.23 MB / 442.1 MB, free: 14.65 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/0.5738, allocations: 67.97 kB / 442.2 MB, free: 14.58 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03404/0.6079, allocations: 6.578 MB / 448.7 MB, free: 8.043 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.6079, allocations: 0 / 448.7 MB, free: 8.043 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.623e-05/0.608, allocations: 4 kB / 448.7 MB, free: 8.039 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.001022/0.609, allocations: 0.6856 MB / 449.4 MB, free: 7.277 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.6091, allocations: 12.03 kB / 449.4 MB, free: 7.266 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.334e-05/0.6091, allocations: 46.55 kB / 449.5 MB, free: 7.211 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001374/0.6093, allocations: 39.47 kB / 449.5 MB, free: 7.172 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000657/0.61, allocations: 288 kB / 449.8 MB, free: 6.852 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.306e-05/0.61, allocations: 8.938 kB / 449.8 MB, free: 6.844 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.719e-05/0.6101, allocations: 15.95 kB / 449.8 MB, free: 6.828 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002971/0.6104, allocations: 101.6 kB / 449.9 MB, free: 6.723 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.904e-05/0.6104, allocations: 3.906 kB / 449.9 MB, free: 6.719 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.006e-05/0.6104, allocations: 4 kB / 449.9 MB, free: 6.715 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.6105, allocations: 4 kB / 449.9 MB, free: 6.711 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001956/0.6107, allocations: 63.98 kB / 450 MB, free: 6.648 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009881/0.6117, allocations: 473.7 kB / 450.5 MB, free: 6.137 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002366/0.6119, allocations: 85.09 kB / 450.6 MB, free: 6.047 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.412e-05/0.612, allocations: 36.8 kB / 450.6 MB, free: 6.008 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.5e-05/0.6121, allocations: 7.984 kB / 450.6 MB, free: 6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.074e-05/0.6121, allocations: 34.56 kB / 450.6 MB, free: 5.957 MB / 378.7 MB Notification: Performance of pre-optimization done (n=11): time 2.374e-06/0.6121, allocations: 0 / 450.6 MB, free: 5.957 MB / 378.7 MB Notification: Performance of matching and sorting (n=17): time 0.001241/0.6134, allocations: 320.4 kB / 450.9 MB, free: 5.637 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.764e-05/0.6135, allocations: 56.81 kB / 451 MB, free: 5.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008342/0.6143, allocations: 419.5 kB / 451.4 MB, free: 5.148 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.176e-05/0.6144, allocations: 25.7 kB / 451.4 MB, free: 5.117 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/0.6146, allocations: 222.9 kB / 451.7 MB, free: 4.898 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.505e-05/0.6147, allocations: 59.09 kB / 451.7 MB, free: 4.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.526e-05/0.6147, allocations: 4 kB / 451.7 MB, free: 4.836 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.6148, allocations: 322.8 kB / 452 MB, free: 4.512 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001518/0.615, allocations: 44.38 kB / 452.1 MB, free: 4.465 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001489/0.6152, allocations: 59.55 kB / 452.1 MB, free: 4.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002427/0.6154, allocations: 185.4 kB / 452.3 MB, free: 4.199 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.6154, allocations: 7.938 kB / 452.3 MB, free: 4.191 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005617/0.616, allocations: 320 kB / 452.6 MB, free: 3.844 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000103/0.6161, allocations: 140.5 kB / 452.8 MB, free: 3.676 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.6162, allocations: 0 / 452.8 MB, free: 3.676 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2e-05/0.6162, allocations: 0 / 452.8 MB, free: 3.676 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003005/0.6165, allocations: 39.92 kB / 452.8 MB, free: 3.637 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.175e-05/0.6165, allocations: 3.984 kB / 452.8 MB, free: 3.633 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001977/0.6167, allocations: 19.98 kB / 452.8 MB, free: 3.613 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.868e-05/0.6168, allocations: 4 kB / 452.8 MB, free: 3.609 MB / 378.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 (22): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 5 * 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.0001116/0.6169, allocations: 120.9 kB / 453 MB, free: 3.484 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.617, allocations: 35.58 kB / 453 MB, free: 3.449 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007281/0.6178, allocations: 222.4 kB / 453.2 MB, free: 3.227 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.6178, allocations: 0 / 453.2 MB, free: 3.227 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.6178, allocations: 0 / 453.2 MB, free: 3.227 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.6178, allocations: 0 / 453.2 MB, free: 3.227 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001319/0.6191, allocations: 0.6232 MB / 453.8 MB, free: 2.547 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.209e-06/0.6192, allocations: 0 / 453.8 MB, free: 2.547 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000276/0.6195, allocations: 39.92 kB / 453.9 MB, free: 2.508 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.935e-06/0.6195, allocations: 0 / 453.9 MB, free: 2.508 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.354e-05/0.6195, allocations: 7.984 kB / 453.9 MB, free: 2.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.833e-06/0.6195, allocations: 4 kB / 453.9 MB, free: 2.496 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.6195, allocations: 0 / 453.9 MB, free: 2.496 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005555/0.6201, allocations: 280.4 kB / 454.2 MB, free: 2.207 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001683/0.6203, allocations: 120.7 kB / 454.3 MB, free: 2.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.227e-05/0.6204, allocations: 3.984 kB / 454.3 MB, free: 2.066 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001783/0.6206, allocations: 12 kB / 454.3 MB, free: 2.055 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.892e-05/0.6206, allocations: 15.89 kB / 454.3 MB, free: 2.039 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.066e-05/0.6207, allocations: 4 kB / 454.3 MB, free: 2.035 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006152/0.6213, allocations: 334.1 kB / 454.6 MB, free: 1.707 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6213, allocations: 0 / 454.6 MB, free: 1.707 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006126/0.6219, allocations: 99.73 kB / 454.7 MB, free: 1.609 MB / 378.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 (17): * Single equations (assignments): 17 * 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.002916/0.6249, allocations: 1.425 MB / 456.2 MB, free: 260 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006799/0.6256, allocations: 393 kB / 456.5 MB, free: 15.81 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.6256, allocations: 0 / 456.5 MB, free: 15.81 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001723/0.6258, allocations: 79.86 kB / 456.6 MB, free: 15.73 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005171/0.6263, allocations: 33.08 kB / 456.6 MB, free: 15.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001726/0.6281, allocations: 0.615 MB / 457.3 MB, free: 15.04 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004531/0.6286, allocations: 0.7907 MB / 458.1 MB, free: 14.22 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002724/0.6289, allocations: 95.41 kB / 458.1 MB, free: 14.13 MB / 394.7 MB Notification: Performance of SimCode: time 1.202e-06/0.6289, allocations: 4 kB / 458.1 MB, free: 14.12 MB / 394.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"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test21CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test21CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test21CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test21FMU.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_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test21.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test21CalcHelperMain.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 3.2.2/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 3.2.2/Resources/Library/x86_64-linux" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/x86_64-linux" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/linux64" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/linux64" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test21_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test21.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test21.fmu] Error 1