Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test5,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.084/2.084, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.41e-05/4.423e-05, allocations: 7.938 kB / 273.2 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1092, allocations: 48.71 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4931/0.6023, allocations: 75.82 MB / 397.7 MB, free: 14.02 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002815/0.6026, allocations: 74.95 kB / 397.7 MB, free: 13.95 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02076/0.6234, allocations: 4.604 MB / 402.4 MB, free: 9.348 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.6235, allocations: 0 / 402.4 MB, free: 9.348 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.109e-05/0.6235, allocations: 4 kB / 402.4 MB, free: 9.344 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.0007111/0.6242, allocations: 431.9 kB / 402.8 MB, free: 8.871 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.977e-05/0.6243, allocations: 12.03 kB / 402.8 MB, free: 8.859 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.504e-05/0.6244, allocations: 38.55 kB / 402.8 MB, free: 8.812 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.465e-05/0.6244, allocations: 19.77 kB / 402.8 MB, free: 8.793 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003722/0.6248, allocations: 202.9 kB / 403 MB, free: 8.555 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.75e-05/0.6249, allocations: 4 kB / 403 MB, free: 8.551 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.766e-05/0.6249, allocations: 0 / 403 MB, free: 8.551 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000178/0.6251, allocations: 69.58 kB / 403.1 MB, free: 8.477 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.6251, allocations: 4 kB / 403.1 MB, free: 8.473 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.657e-05/0.6252, allocations: 4 kB / 403.1 MB, free: 8.469 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.6252, allocations: 0 / 403.1 MB, free: 8.469 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001283/0.6253, allocations: 31.91 kB / 403.2 MB, free: 8.438 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006776/0.626, allocations: 344.6 kB / 403.5 MB, free: 8.051 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001503/0.6262, allocations: 46.56 kB / 403.5 MB, free: 7.996 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.935e-05/0.6263, allocations: 20.98 kB / 403.6 MB, free: 7.973 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.492e-05/0.6263, allocations: 0 / 403.6 MB, free: 7.973 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001871/0.6265, allocations: 75.31 kB / 403.6 MB, free: 7.887 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.884e-06/0.6265, allocations: 0 / 403.6 MB, free: 7.887 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0006952/0.6272, allocations: 157.2 kB / 403.8 MB, free: 7.727 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.482e-05/0.6273, allocations: 51.41 kB / 403.8 MB, free: 7.664 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003872/0.6277, allocations: 221.7 kB / 404.1 MB, free: 7.438 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/0.6277, allocations: 29.7 kB / 404.1 MB, free: 7.402 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.6278, allocations: 170.8 kB / 404.2 MB, free: 7.23 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.233e-05/0.6279, allocations: 27.64 kB / 404.3 MB, free: 7.203 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.193e-05/0.6279, allocations: 4 kB / 404.3 MB, free: 7.199 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.628, allocations: 314.8 kB / 404.6 MB, free: 6.883 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/0.6282, allocations: 35.98 kB / 404.6 MB, free: 6.848 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.828e-05/0.6283, allocations: 32 kB / 404.7 MB, free: 6.816 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001405/0.6284, allocations: 61.69 kB / 404.7 MB, free: 6.75 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.6284, allocations: 0 / 404.7 MB, free: 6.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003749/0.6288, allocations: 151.2 kB / 404.9 MB, free: 6.59 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.638e-05/0.6289, allocations: 37.69 kB / 404.9 MB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.822e-06/0.6289, allocations: 0 / 404.9 MB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.329e-05/0.6289, allocations: 3.953 kB / 404.9 MB, free: 6.543 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001539/0.6291, allocations: 23.94 kB / 404.9 MB, free: 6.52 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/0.6291, allocations: 4 kB / 404.9 MB, free: 6.516 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.526e-05/0.6292, allocations: 3.984 kB / 404.9 MB, free: 6.512 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.097e-05/0.6293, allocations: 4 kB / 404.9 MB, free: 6.508 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 (10): * Single equations (assignments): 9 * 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.0001053/0.6294, allocations: 109 kB / 405 MB, free: 6.395 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.107e-05/0.6294, allocations: 11.91 kB / 405.1 MB, free: 6.383 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004183/0.6299, allocations: 131.2 kB / 405.2 MB, free: 6.246 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.6299, allocations: 7.953 kB / 405.2 MB, free: 6.238 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.6299, allocations: 480 / 405.2 MB, free: 6.238 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.63, allocations: 3.938 kB / 405.2 MB, free: 6.234 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007078/0.6307, allocations: 426.5 kB / 405.6 MB, free: 5.762 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.6307, allocations: 0 / 405.6 MB, free: 5.762 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001091/0.6308, allocations: 19.98 kB / 405.6 MB, free: 5.742 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.625e-06/0.6308, allocations: 3.953 kB / 405.6 MB, free: 5.738 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.6309, allocations: 0 / 405.6 MB, free: 5.738 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.043e-06/0.6309, allocations: 7.938 kB / 405.6 MB, free: 5.73 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.6309, allocations: 4 kB / 405.6 MB, free: 5.727 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003311/0.6312, allocations: 199.3 kB / 405.8 MB, free: 5.516 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.964e-05/0.6313, allocations: 100.9 kB / 405.9 MB, free: 5.398 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.116e-05/0.6314, allocations: 3.953 kB / 405.9 MB, free: 5.395 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001152/0.6315, allocations: 8 kB / 405.9 MB, free: 5.387 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.71e-05/0.6316, allocations: 11.92 kB / 406 MB, free: 5.375 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.745e-05/0.6316, allocations: 4 kB / 406 MB, free: 5.371 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000258/0.6319, allocations: 175.2 kB / 406.1 MB, free: 5.199 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6319, allocations: 0 / 406.1 MB, free: 5.199 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004389/0.6323, allocations: 40 kB / 406.2 MB, free: 5.16 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 (10): * Single equations (assignments): 9 * 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.001637/0.634, allocations: 0.9936 MB / 407.2 MB, free: 4.203 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003676/0.6344, allocations: 135.3 kB / 407.3 MB, free: 4.059 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.6344, allocations: 0 / 407.3 MB, free: 4.059 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001052/0.6345, allocations: 32 kB / 407.3 MB, free: 4.027 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003717/0.6349, allocations: 20.5 kB / 407.4 MB, free: 4.008 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000896/0.6358, allocations: 305.3 kB / 407.7 MB, free: 3.668 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003571/0.6362, allocations: 0.7199 MB / 408.4 MB, free: 2.922 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001208/0.6363, allocations: 39.42 kB / 408.4 MB, free: 2.883 MB / 330.7 MB Notification: Performance of SimCode: time 1.223e-06/0.6364, allocations: 4 kB / 408.4 MB, free: 2.879 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_Test5CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test5CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test5CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test5FMU.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_Test5.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test5CalcHelperMain.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_Test5_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test5.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test5.fmu] Error 1