Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test17,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test17",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.073/2.073, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 6.461e-05/6.483e-05, allocations: 8 kB / 273.1 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1466, allocations: 48.71 MB / 321.8 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5104/0.6571, allocations: 75.78 MB / 397.6 MB, free: 14.14 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003785/0.6575, allocations: 75.08 kB / 397.7 MB, free: 14.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02729/0.6848, allocations: 3.966 MB / 401.7 MB, free: 10.11 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.916e-06/0.6849, allocations: 0 / 401.7 MB, free: 10.11 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.784e-05/0.6849, allocations: 0 / 401.7 MB, free: 10.11 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0007807/0.6857, allocations: 404 kB / 402.1 MB, free: 9.668 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.293e-05/0.6858, allocations: 8.031 kB / 402.1 MB, free: 9.66 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.47e-05/0.6859, allocations: 38.48 kB / 402.1 MB, free: 9.613 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.194e-05/0.686, allocations: 15.91 kB / 402.1 MB, free: 9.598 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004387/0.6865, allocations: 198.9 kB / 402.3 MB, free: 9.363 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.76e-05/0.6865, allocations: 0 / 402.3 MB, free: 9.363 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.261e-05/0.6866, allocations: 7.938 kB / 402.3 MB, free: 9.355 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001805/0.6868, allocations: 41.69 kB / 402.4 MB, free: 9.309 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.21e-05/0.6868, allocations: 3.984 kB / 402.4 MB, free: 9.305 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.6869, allocations: 0 / 402.4 MB, free: 9.305 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.864e-06/0.6869, allocations: 0 / 402.4 MB, free: 9.305 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001034/0.687, allocations: 19.98 kB / 402.4 MB, free: 9.285 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006778/0.6877, allocations: 296.7 kB / 402.7 MB, free: 8.945 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003704/0.6881, allocations: 43.03 kB / 402.7 MB, free: 8.895 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.247e-05/0.6882, allocations: 16.86 kB / 402.7 MB, free: 8.875 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.682e-05/0.6882, allocations: 0 / 402.7 MB, free: 8.875 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002485/0.6885, allocations: 59.42 kB / 402.8 MB, free: 8.805 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 3.647e-06/0.6885, allocations: 4 kB / 402.8 MB, free: 8.801 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0006898/0.6892, allocations: 109.4 kB / 402.9 MB, free: 8.688 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.228e-05/0.6893, allocations: 59.39 kB / 403 MB, free: 8.617 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003112/0.6896, allocations: 141.2 kB / 403.1 MB, free: 8.469 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.485e-05/0.6897, allocations: 29.7 kB / 403.1 MB, free: 8.434 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.6898, allocations: 158.5 kB / 403.3 MB, free: 8.277 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.801e-05/0.6899, allocations: 15.81 kB / 403.3 MB, free: 8.262 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.607e-05/0.69, allocations: 3.938 kB / 403.3 MB, free: 8.258 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.6901, allocations: 322.8 kB / 403.6 MB, free: 7.934 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001196/0.6903, allocations: 24 kB / 403.6 MB, free: 7.91 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/0.6904, allocations: 23.98 kB / 403.7 MB, free: 7.887 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001633/0.6906, allocations: 53.69 kB / 403.7 MB, free: 7.828 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.6906, allocations: 0 / 403.7 MB, free: 7.828 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004414/0.6911, allocations: 123.3 kB / 403.8 MB, free: 7.695 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.805e-05/0.6912, allocations: 33.69 kB / 403.9 MB, free: 7.656 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.6912, allocations: 96 / 403.9 MB, free: 7.656 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.52e-05/0.6912, allocations: 11.89 kB / 403.9 MB, free: 7.645 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001324/0.6914, allocations: 8 kB / 403.9 MB, free: 7.637 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.6914, allocations: 4 kB / 403.9 MB, free: 7.633 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001089/0.6915, allocations: 0 / 403.9 MB, free: 7.633 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.634e-05/0.6916, allocations: 8 kB / 403.9 MB, free: 7.625 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: 3 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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 0.0001327/0.6917, allocations: 112.2 kB / 404 MB, free: 7.512 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.275e-05/0.6918, allocations: 7.906 kB / 404 MB, free: 7.504 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004016/0.6922, allocations: 93.69 kB / 404.1 MB, free: 7.41 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.6922, allocations: 0 / 404.1 MB, free: 7.41 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-05/0.6923, allocations: 7.953 kB / 404.1 MB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.6923, allocations: 4 kB / 404.1 MB, free: 7.398 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006781/0.693, allocations: 342.5 kB / 404.4 MB, free: 7.008 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.693, allocations: 0 / 404.4 MB, free: 7.008 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.622e-05/0.6931, allocations: 7.938 kB / 404.5 MB, free: 7 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.138e-05/0.6932, allocations: 4 kB / 404.5 MB, free: 6.996 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.327e-05/0.6932, allocations: 7.953 kB / 404.5 MB, free: 6.988 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.057e-06/0.6932, allocations: 3.984 kB / 404.5 MB, free: 6.984 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.6933, allocations: 0 / 404.5 MB, free: 6.984 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003506/0.6936, allocations: 175.6 kB / 404.6 MB, free: 6.797 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.945e-05/0.6937, allocations: 89.02 kB / 404.7 MB, free: 6.691 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.678e-05/0.6938, allocations: 3.984 kB / 404.7 MB, free: 6.688 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001618/0.694, allocations: 11.95 kB / 404.7 MB, free: 6.676 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.856e-05/0.6941, allocations: 4.141 kB / 404.7 MB, free: 6.672 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.697e-05/0.6941, allocations: 0 / 404.7 MB, free: 6.672 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001991/0.6943, allocations: 123.2 kB / 404.9 MB, free: 6.551 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.6943, allocations: 0 / 404.9 MB, free: 6.551 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006144/0.695, allocations: 35.94 kB / 404.9 MB, free: 6.516 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: 2 ($whenCondition1,t_new.nextTimeEvent) * Number of discrete states: 1 (t_new.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.002191/0.6972, allocations: 0.9515 MB / 405.9 MB, free: 5.594 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004672/0.6977, allocations: 115.3 kB / 406 MB, free: 5.469 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.6977, allocations: 0 / 406 MB, free: 5.469 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001024/0.6978, allocations: 20 kB / 406 MB, free: 5.449 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004988/0.6984, allocations: 19.88 kB / 406 MB, free: 5.43 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001065/0.6995, allocations: 205.4 kB / 406.2 MB, free: 5.188 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004391/0.6999, allocations: 0.7043 MB / 406.9 MB, free: 4.457 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001244/0.7001, allocations: 23.42 kB / 406.9 MB, free: 4.434 MB / 330.7 MB Notification: Performance of SimCode: time 1.613e-06/0.7001, allocations: 0 / 406.9 MB, free: 4.434 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_CombiTimeTable_Test17CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test17CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test17CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test17FMU.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_CombiTimeTable_Test17.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test17CalcHelperMain.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_CombiTimeTable_Test17_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test17.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test17.fmu] Error 1