Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2D.Test2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.067/2.067, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.204e-05/4.229e-05, allocations: 8 kB / 273.2 MB, free: 0.625 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1074, allocations: 48.7 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4079/0.5154, allocations: 74.5 MB / 396.4 MB, free: 15.32 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000296/0.5158, allocations: 71.08 kB / 396.4 MB, free: 15.25 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01947/0.5353, allocations: 5.269 MB / 401.7 MB, free: 9.984 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.654e-06/0.5353, allocations: 0 / 401.7 MB, free: 9.984 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.988e-05/0.5354, allocations: 4 kB / 401.7 MB, free: 9.98 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.0007694/0.5362, allocations: 0.5732 MB / 402.3 MB, free: 9.355 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.5362, allocations: 12.03 kB / 402.3 MB, free: 9.344 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.532e-05/0.5363, allocations: 34.56 kB / 402.3 MB, free: 9.301 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.985e-05/0.5364, allocations: 47.39 kB / 402.4 MB, free: 9.254 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006328/0.537, allocations: 319.4 kB / 402.7 MB, free: 8.902 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.395e-05/0.5371, allocations: 0 / 402.7 MB, free: 8.902 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.367e-05/0.5371, allocations: 4 kB / 402.7 MB, free: 8.898 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001436/0.5372, allocations: 49.62 kB / 402.7 MB, free: 8.844 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.5373, allocations: 4 kB / 402.7 MB, free: 8.84 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.5373, allocations: 0 / 402.7 MB, free: 8.84 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.5373, allocations: 4 kB / 402.7 MB, free: 8.836 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.368e-05/0.5374, allocations: 12 kB / 402.7 MB, free: 8.824 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007768/0.5382, allocations: 428.7 kB / 403.2 MB, free: 8.355 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002291/0.5384, allocations: 42.5 kB / 403.2 MB, free: 8.305 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.694e-05/0.5385, allocations: 14.23 kB / 403.2 MB, free: 8.289 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.865e-05/0.5385, allocations: 8.062 kB / 403.2 MB, free: 8.281 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.5386, allocations: 30.56 kB / 403.3 MB, free: 8.242 MB / 330.7 MB Notification: Performance of pre-optimization done (n=3): time 2.305e-06/0.5386, allocations: 0 / 403.3 MB, free: 8.242 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.000628/0.5392, allocations: 188.1 kB / 403.4 MB, free: 8.051 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.944e-05/0.5393, allocations: 51.41 kB / 403.5 MB, free: 7.988 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001874/0.5412, allocations: 0.7693 MB / 404.3 MB, free: 7.207 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.038e-05/0.5412, allocations: 25.7 kB / 404.3 MB, free: 7.176 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002084/0.5414, allocations: 242.4 kB / 404.5 MB, free: 6.938 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.715e-05/0.5415, allocations: 11.81 kB / 404.5 MB, free: 6.926 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.071e-06/0.5415, allocations: 0 / 404.5 MB, free: 6.926 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.5416, allocations: 318.8 kB / 404.8 MB, free: 6.605 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.252e-05/0.5417, allocations: 12 kB / 404.9 MB, free: 6.594 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.643e-05/0.5418, allocations: 12 kB / 404.9 MB, free: 6.582 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.913e-05/0.5419, allocations: 37.7 kB / 404.9 MB, free: 6.539 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.5419, allocations: 4 kB / 404.9 MB, free: 6.535 MB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000214/0.5421, allocations: 91.39 kB / 405 MB, free: 6.434 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.124e-05/0.5421, allocations: 33.64 kB / 405 MB, free: 6.395 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.886e-06/0.5422, allocations: 7.891 kB / 405 MB, free: 6.387 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.5422, allocations: 4 kB / 405 MB, free: 6.383 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001514/0.5424, allocations: 15.92 kB / 405.1 MB, free: 6.367 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/0.5424, allocations: 4 kB / 405.1 MB, free: 6.363 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001467/0.5425, allocations: 4.25 kB / 405.1 MB, free: 6.359 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.185e-05/0.5426, allocations: 4 kB / 405.1 MB, free: 6.355 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.426e-05/0.5427, allocations: 109 kB / 405.2 MB, free: 6.242 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001181/0.5428, allocations: 51.42 kB / 405.2 MB, free: 6.191 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003403/0.5431, allocations: 113 kB / 405.3 MB, free: 6.074 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.5432, allocations: 3.953 kB / 405.3 MB, free: 6.07 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.5432, allocations: 0 / 405.3 MB, free: 6.07 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.5432, allocations: 0 / 405.3 MB, free: 6.07 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001111/0.5443, allocations: 0.5569 MB / 405.9 MB, free: 5.457 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.5443, allocations: 0 / 405.9 MB, free: 5.457 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001406/0.5445, allocations: 12.14 kB / 405.9 MB, free: 5.445 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.397e-06/0.5445, allocations: 3.953 kB / 405.9 MB, free: 5.441 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.731e-05/0.5445, allocations: 7.984 kB / 405.9 MB, free: 5.434 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.5446, allocations: 0 / 405.9 MB, free: 5.434 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.5446, allocations: 3.984 kB / 405.9 MB, free: 5.43 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003312/0.5449, allocations: 191 kB / 406.1 MB, free: 5.227 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002649/0.5452, allocations: 160.5 kB / 406.3 MB, free: 5.051 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.749e-05/0.5453, allocations: 7.953 kB / 406.3 MB, free: 5.043 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001691/0.5455, allocations: 11.98 kB / 406.3 MB, free: 5.031 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.991e-05/0.5455, allocations: 4 kB / 406.3 MB, free: 5.027 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-06/0.5455, allocations: 0 / 406.3 MB, free: 5.027 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00125/0.5468, allocations: 0.6225 MB / 406.9 MB, free: 4.41 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.61e-07/0.5469, allocations: 0 / 406.9 MB, free: 4.41 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005159/0.5474, allocations: 55.94 kB / 407 MB, free: 4.355 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.001302/0.5487, allocations: 0.8667 MB / 407.8 MB, free: 3.512 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002711/0.549, allocations: 87.34 kB / 407.9 MB, free: 3.414 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.549, allocations: 0 / 407.9 MB, free: 3.414 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.892e-05/0.5491, allocations: 16 kB / 407.9 MB, free: 3.398 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004457/0.5496, allocations: 29.97 kB / 408 MB, free: 3.371 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002269/0.5519, allocations: 0.8354 MB / 408.8 MB, free: 2.492 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005979/0.5525, allocations: 0.83 MB / 409.6 MB, free: 1.637 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003181/0.5529, allocations: 107.6 kB / 409.7 MB, free: 1.531 MB / 330.7 MB Notification: Performance of SimCode: time 1.092e-06/0.5529, allocations: 0 / 409.7 MB, free: 1.531 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_Test2CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test2CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test2CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test2FMU.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_Test2.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test2CalcHelperMain.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_Test2_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test2.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test2.fmu] Error 1