Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2D.Test1,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.969/1.969, allocations: 209.3 MB / 221.9 MB, free: 1.945 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.058e-05/3.077e-05, allocations: 4 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09956/0.09962, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3962/0.4959, allocations: 74.49 MB / 396.3 MB, free: 15.45 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002756/0.4962, allocations: 63.97 kB / 396.4 MB, free: 15.38 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01975/0.516, allocations: 5.278 MB / 401.7 MB, free: 10.11 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.5161, allocations: 0 / 401.7 MB, free: 10.11 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.082e-05/0.5161, allocations: 8 kB / 401.7 MB, free: 10.1 MB / 330.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.0008306/0.517, allocations: 0.5654 MB / 402.2 MB, free: 9.48 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.359e-05/0.517, allocations: 12.03 kB / 402.2 MB, free: 9.469 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.944e-05/0.5171, allocations: 34.55 kB / 402.3 MB, free: 9.426 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000114/0.5172, allocations: 47.39 kB / 402.3 MB, free: 9.379 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006614/0.5179, allocations: 315.3 kB / 402.6 MB, free: 9.031 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.5179, allocations: 7.984 kB / 402.6 MB, free: 9.023 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.306e-05/0.518, allocations: 0 / 402.6 MB, free: 9.023 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000149/0.5181, allocations: 49.7 kB / 402.7 MB, free: 8.969 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.5181, allocations: 0 / 402.7 MB, free: 8.969 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.5182, allocations: 0 / 402.7 MB, free: 8.969 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.397e-06/0.5182, allocations: 4 kB / 402.7 MB, free: 8.965 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.668e-05/0.5183, allocations: 12 kB / 402.7 MB, free: 8.953 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009154/0.5192, allocations: 440.6 kB / 403.1 MB, free: 8.473 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002564/0.5195, allocations: 38.58 kB / 403.2 MB, free: 8.426 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.078e-05/0.5195, allocations: 14.23 kB / 403.2 MB, free: 8.41 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.689e-05/0.5196, allocations: 3.938 kB / 403.2 MB, free: 8.406 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.284e-05/0.5196, allocations: 34.5 kB / 403.2 MB, free: 8.363 MB / 330.7 MB Notification: Performance of pre-optimization done (n=3): time 2.726e-06/0.5196, allocations: 0 / 403.2 MB, free: 8.363 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0007216/0.5204, allocations: 188.2 kB / 403.4 MB, free: 8.172 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.323e-05/0.5205, allocations: 59.41 kB / 403.5 MB, free: 8.102 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001922/0.5224, allocations: 0.7576 MB / 404.2 MB, free: 7.332 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.297e-05/0.5225, allocations: 29.7 kB / 404.3 MB, free: 7.297 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002206/0.5227, allocations: 242.3 kB / 404.5 MB, free: 7.059 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.171e-05/0.5227, allocations: 19.8 kB / 404.5 MB, free: 7.039 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.971e-06/0.5227, allocations: 0 / 404.5 MB, free: 7.039 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.5229, allocations: 310.8 kB / 404.8 MB, free: 6.727 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.024e-05/0.523, allocations: 12 kB / 404.8 MB, free: 6.715 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.578e-05/0.523, allocations: 16 kB / 404.8 MB, free: 6.699 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.946e-05/0.5231, allocations: 41.7 kB / 404.9 MB, free: 6.652 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.5231, allocations: 0 / 404.9 MB, free: 6.652 MB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002121/0.5233, allocations: 87.39 kB / 405 MB, free: 6.555 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.345e-05/0.5234, allocations: 33.7 kB / 405 MB, free: 6.516 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.596e-05/0.5234, allocations: 3.953 kB / 405 MB, free: 6.512 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.5235, allocations: 3.938 kB / 405 MB, free: 6.508 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001512/0.5236, allocations: 15.98 kB / 405 MB, free: 6.492 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.5236, allocations: 0 / 405 MB, free: 6.492 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001679/0.5238, allocations: 19.92 kB / 405 MB, free: 6.473 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.573e-05/0.5238, allocations: 4.25 kB / 405 MB, free: 6.469 MB / 330.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 (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * 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.905e-05/0.5239, allocations: 101 kB / 405.1 MB, free: 6.363 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.5241, allocations: 43.44 kB / 405.2 MB, free: 6.32 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003566/0.5244, allocations: 121 kB / 405.3 MB, free: 6.195 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/0.5245, allocations: 4.094 kB / 405.3 MB, free: 6.191 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.5245, allocations: 3.984 kB / 405.3 MB, free: 6.188 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.5245, allocations: 4 kB / 405.3 MB, free: 6.184 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001157/0.5257, allocations: 0.5569 MB / 405.9 MB, free: 5.57 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.147e-06/0.5257, allocations: 0 / 405.9 MB, free: 5.57 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000136/0.5258, allocations: 15.98 kB / 405.9 MB, free: 5.555 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.097e-06/0.5259, allocations: 3.953 kB / 405.9 MB, free: 5.551 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.5259, allocations: 0 / 405.9 MB, free: 5.551 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.125e-06/0.5259, allocations: 0 / 405.9 MB, free: 5.551 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.5259, allocations: 3.984 kB / 405.9 MB, free: 5.547 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003092/0.5262, allocations: 199 kB / 406.1 MB, free: 5.336 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003134/0.5265, allocations: 156.5 kB / 406.2 MB, free: 5.164 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.601e-05/0.5266, allocations: 7.938 kB / 406.3 MB, free: 5.156 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001611/0.5268, allocations: 4 kB / 406.3 MB, free: 5.152 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.632e-05/0.5269, allocations: 4 kB / 406.3 MB, free: 5.148 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.239e-05/0.5269, allocations: 3.984 kB / 406.3 MB, free: 5.145 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001319/0.5282, allocations: 0.6224 MB / 406.9 MB, free: 4.527 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.022e-06/0.5283, allocations: 4 kB / 406.9 MB, free: 4.523 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004669/0.5287, allocations: 63.94 kB / 407 MB, free: 4.461 MB / 330.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.001228/0.53, allocations: 0.8484 MB / 407.8 MB, free: 3.633 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002216/0.5302, allocations: 87.41 kB / 407.9 MB, free: 3.535 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.5302, allocations: 0 / 407.9 MB, free: 3.535 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.815e-05/0.5303, allocations: 12 kB / 407.9 MB, free: 3.523 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003626/0.5307, allocations: 29.97 kB / 407.9 MB, free: 3.496 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002186/0.5329, allocations: 0.8393 MB / 408.8 MB, free: 2.613 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005849/0.5335, allocations: 0.834 MB / 409.6 MB, free: 1.754 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002806/0.5338, allocations: 99.66 kB / 409.7 MB, free: 1.656 MB / 330.7 MB Notification: Performance of SimCode: time 2.164e-06/0.5339, allocations: 4 kB / 409.7 MB, free: 1.652 MB / 330.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_1_cpp_ModelicaTest_Tables_CombiTable2D_Test1CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test1CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test1CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test1FMU.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_1_cpp_ModelicaTest_Tables_CombiTable2D_Test1.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test1CalcHelperMain.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.1/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.1/Resources/Library/x86_64-linux" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library/x86_64-linux" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library/linux64" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library/linux64" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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_1_cpp_ModelicaTest_Tables_CombiTable2D_Test1_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test1.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test1.fmu] Error 1