Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1D.Test16,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test16",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.44/2.44, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.278e-05/4.281e-05, allocations: 4 kB / 305 MB, free: 5.555 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4032/0.4033, allocations: 54.85 MB / 359.9 MB, free: 2.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1743/0.5776, allocations: 80.9 MB / 440.8 MB, free: 84 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002411/0.5779, allocations: 67.95 kB / 440.8 MB, free: 16 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01304/0.591, allocations: 3.13 MB / 444 MB, free: 12.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.5911, allocations: 0 / 444 MB, free: 12.91 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.335e-05/0.5911, allocations: 0 / 444 MB, free: 12.91 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005309/0.5916, allocations: 416.4 kB / 444.4 MB, free: 12.45 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/0.5917, allocations: 8.031 kB / 444.4 MB, free: 12.44 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.357e-05/0.5917, allocations: 38.56 kB / 444.4 MB, free: 12.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.039e-05/0.5918, allocations: 11.86 kB / 444.4 MB, free: 12.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002784/0.5921, allocations: 191.5 kB / 444.6 MB, free: 12.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.235e-05/0.5921, allocations: 0 / 444.6 MB, free: 12.15 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.51e-05/0.5922, allocations: 4.562 kB / 444.6 MB, free: 12.15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001623/0.5923, allocations: 45.69 kB / 444.7 MB, free: 12.1 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.5924, allocations: 0 / 444.7 MB, free: 12.1 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.5924, allocations: 3.938 kB / 444.7 MB, free: 12.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.5924, allocations: 3.953 kB / 444.7 MB, free: 12.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.712e-05/0.5925, allocations: 20 kB / 444.7 MB, free: 12.07 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000513/0.593, allocations: 299.3 kB / 445 MB, free: 11.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002214/0.5932, allocations: 38.58 kB / 445 MB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.161e-05/0.5933, allocations: 12.94 kB / 445 MB, free: 11.67 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.175e-05/0.5933, allocations: 0 / 445 MB, free: 11.67 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/0.5934, allocations: 42.45 kB / 445.1 MB, free: 11.62 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 2.023e-06/0.5934, allocations: 0 / 445.1 MB, free: 11.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005562/0.594, allocations: 113.4 kB / 445.2 MB, free: 11.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.156e-05/0.594, allocations: 51.41 kB / 445.2 MB, free: 11.44 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002635/0.5943, allocations: 177.3 kB / 445.4 MB, free: 11.26 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.5943, allocations: 25.7 kB / 445.4 MB, free: 11.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.397e-05/0.5944, allocations: 170.5 kB / 445.6 MB, free: 11.06 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.791e-05/0.5945, allocations: 19.69 kB / 445.6 MB, free: 11.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.542e-06/0.5945, allocations: 0 / 445.6 MB, free: 11.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.5946, allocations: 314.8 kB / 445.9 MB, free: 10.72 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.237e-05/0.5947, allocations: 12 kB / 445.9 MB, free: 10.71 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.188e-05/0.5947, allocations: 15.98 kB / 445.9 MB, free: 10.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.534e-05/0.5948, allocations: 42.95 kB / 446 MB, free: 10.65 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.686e-06/0.5948, allocations: 0 / 446 MB, free: 10.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002026/0.5951, allocations: 103.2 kB / 446.1 MB, free: 10.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.251e-05/0.5951, allocations: 39.36 kB / 446.1 MB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.5951, allocations: 4 kB / 446.1 MB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.12e-05/0.5952, allocations: 4.141 kB / 446.1 MB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.5953, allocations: 8 kB / 446.1 MB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.671e-05/0.5953, allocations: 7.984 kB / 446.1 MB, free: 10.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.741e-05/0.5954, allocations: 4 kB / 446.2 MB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.44e-05/0.5955, allocations: 3.984 kB / 446.2 MB, free: 10.46 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 (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.425e-05/0.5956, allocations: 112.9 kB / 446.3 MB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.737e-05/0.5956, allocations: 14.56 kB / 446.3 MB, free: 10.33 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002492/0.5959, allocations: 85.72 kB / 446.4 MB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.5959, allocations: 0 / 446.4 MB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.5959, allocations: 0 / 446.4 MB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.5959, allocations: 0 / 446.4 MB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005693/0.5965, allocations: 357.1 kB / 446.7 MB, free: 9.844 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.5965, allocations: 3.953 kB / 446.7 MB, free: 9.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001231/0.5967, allocations: 16 kB / 446.7 MB, free: 9.824 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.189e-06/0.5967, allocations: 0 / 446.7 MB, free: 9.824 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.5967, allocations: 0 / 446.7 MB, free: 9.824 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.5967, allocations: 0 / 446.7 MB, free: 9.824 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.5967, allocations: 3.984 kB / 446.7 MB, free: 9.82 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002133/0.5969, allocations: 163.5 kB / 446.9 MB, free: 9.645 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.928e-05/0.597, allocations: 96.97 kB / 447 MB, free: 9.531 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.445e-05/0.5971, allocations: 0 / 447 MB, free: 9.531 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.5972, allocations: 11.98 kB / 447 MB, free: 9.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.664e-05/0.5973, allocations: 4 kB / 447 MB, free: 9.516 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.388e-06/0.5973, allocations: 0.75 kB / 447 MB, free: 9.516 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001897/0.5975, allocations: 153.5 kB / 447.2 MB, free: 9.367 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.5975, allocations: 1.406 kB / 447.2 MB, free: 9.367 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003619/0.5979, allocations: 23.91 kB / 447.2 MB, free: 9.344 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 (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.001225/0.5991, allocations: 0.8839 MB / 448.1 MB, free: 8.504 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002397/0.5994, allocations: 95.34 kB / 448.2 MB, free: 8.398 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.656e-06/0.5994, allocations: 0 / 448.2 MB, free: 8.398 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.23e-05/0.5995, allocations: 16 kB / 448.2 MB, free: 8.383 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002762/0.5997, allocations: 11.98 kB / 448.2 MB, free: 8.371 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008129/0.6006, allocations: 229.8 kB / 448.4 MB, free: 8.102 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003198/0.6009, allocations: 0.7121 MB / 449.1 MB, free: 7.363 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.776e-05/0.601, allocations: 31.42 kB / 449.2 MB, free: 7.336 MB / 378.7 MB Notification: Performance of SimCode: time 1.011e-06/0.6011, allocations: 0 / 449.2 MB, free: 7.336 MB / 378.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_CombiTable1D_Test16CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test16CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test16CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test16FMU.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_CombiTable1D_Test16.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test16CalcHelperMain.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_CombiTable1D_Test16_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test16.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test16.fmu] Error 1