Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test36,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test36",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.13/2.13, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.984e-05/4.967e-05, allocations: 4 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.1394, allocations: 48.7 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4504/0.5898, allocations: 75.78 MB / 397.6 MB, free: 14.05 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000337/0.5903, allocations: 79.09 kB / 397.7 MB, free: 13.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01907/0.6094, allocations: 4.216 MB / 401.9 MB, free: 9.77 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.6094, allocations: 0 / 401.9 MB, free: 9.77 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.001e-05/0.6094, allocations: 4 kB / 401.9 MB, free: 9.766 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.0006284/0.6101, allocations: 439.8 kB / 402.4 MB, free: 9.285 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.041e-05/0.6101, allocations: 8.031 kB / 402.4 MB, free: 9.277 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.048e-05/0.6102, allocations: 30.56 kB / 402.4 MB, free: 9.238 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.367e-05/0.6103, allocations: 7.906 kB / 402.4 MB, free: 9.23 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003266/0.6106, allocations: 202.9 kB / 402.6 MB, free: 8.992 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.375e-05/0.6106, allocations: 0 / 402.6 MB, free: 8.992 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.993e-05/0.6107, allocations: 4 kB / 402.6 MB, free: 8.988 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001254/0.6108, allocations: 41.69 kB / 402.6 MB, free: 8.941 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.6108, allocations: 0 / 402.6 MB, free: 8.941 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.66e-05/0.6109, allocations: 11.98 kB / 402.7 MB, free: 8.93 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.73e-06/0.6109, allocations: 0 / 402.7 MB, free: 8.93 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.162e-05/0.611, allocations: 16 kB / 402.7 MB, free: 8.914 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004943/0.6115, allocations: 308.6 kB / 403 MB, free: 8.562 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002764/0.6118, allocations: 47.03 kB / 403 MB, free: 8.508 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.192e-05/0.6118, allocations: 8.859 kB / 403 MB, free: 8.496 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.851e-05/0.6119, allocations: 4 kB / 403 MB, free: 8.492 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000167/0.612, allocations: 63.48 kB / 403.1 MB, free: 8.418 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 4.709e-06/0.6121, allocations: 0 / 403.1 MB, free: 8.418 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.000537/0.6126, allocations: 113.3 kB / 403.2 MB, free: 8.301 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.182e-05/0.6127, allocations: 51.41 kB / 403.3 MB, free: 8.238 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003151/0.613, allocations: 186.5 kB / 403.4 MB, free: 8.043 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.651e-05/0.613, allocations: 29.7 kB / 403.5 MB, free: 8.008 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.517e-05/0.6131, allocations: 170.5 kB / 403.6 MB, free: 7.84 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.343e-05/0.6132, allocations: 23.75 kB / 403.7 MB, free: 7.816 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.995e-06/0.6132, allocations: 0 / 403.7 MB, free: 7.816 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.6134, allocations: 318.8 kB / 404 MB, free: 7.496 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.699e-05/0.6134, allocations: 19.94 kB / 404 MB, free: 7.477 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.684e-05/0.6135, allocations: 31.92 kB / 404 MB, free: 7.445 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001122/0.6137, allocations: 49.69 kB / 404.1 MB, free: 7.391 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.6137, allocations: 0 / 404.1 MB, free: 7.391 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000311/0.614, allocations: 119.4 kB / 404.2 MB, free: 7.262 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.353e-05/0.6141, allocations: 37.69 kB / 404.2 MB, free: 7.219 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.6141, allocations: 4 kB / 404.2 MB, free: 7.215 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.6141, allocations: 0 / 404.2 MB, free: 7.215 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.667e-05/0.6142, allocations: 11.94 kB / 404.2 MB, free: 7.203 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.6142, allocations: 3.953 kB / 404.2 MB, free: 7.199 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.532e-05/0.6143, allocations: 4 kB / 404.2 MB, free: 7.195 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.6144, allocations: 8 kB / 404.3 MB, free: 7.188 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.0001157/0.6145, allocations: 113 kB / 404.4 MB, free: 7.07 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.306e-05/0.6145, allocations: 7.906 kB / 404.4 MB, free: 7.062 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003158/0.6149, allocations: 94.67 kB / 404.5 MB, free: 6.961 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.6149, allocations: 0 / 404.5 MB, free: 6.961 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.6149, allocations: 0 / 404.5 MB, free: 6.961 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.859e-06/0.6149, allocations: 3.953 kB / 404.5 MB, free: 6.957 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000563/0.6155, allocations: 362.5 kB / 404.8 MB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.6155, allocations: 0 / 404.8 MB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.397e-05/0.6156, allocations: 8 kB / 404.8 MB, free: 6.539 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.213e-06/0.6156, allocations: 3.984 kB / 404.8 MB, free: 6.535 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.6156, allocations: 7.984 kB / 404.8 MB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.6156, allocations: 11.95 kB / 404.9 MB, free: 6.516 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.6156, allocations: 0 / 404.9 MB, free: 6.516 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002556/0.6159, allocations: 175.6 kB / 405 MB, free: 6.328 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.504e-05/0.616, allocations: 93 kB / 405.1 MB, free: 6.219 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.236e-05/0.6161, allocations: 0 / 405.1 MB, free: 6.219 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.6162, allocations: 8 kB / 405.1 MB, free: 6.211 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.634e-05/0.6162, allocations: 3.953 kB / 405.1 MB, free: 6.207 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.664e-05/0.6163, allocations: 7.984 kB / 405.1 MB, free: 6.199 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002208/0.6165, allocations: 156.9 kB / 405.3 MB, free: 6.047 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.6165, allocations: 0 / 405.3 MB, free: 6.047 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004097/0.6169, allocations: 39.94 kB / 405.3 MB, free: 6.008 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.001537/0.6185, allocations: 0.9515 MB / 406.3 MB, free: 5.09 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002728/0.6188, allocations: 107.4 kB / 406.4 MB, free: 4.973 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.6188, allocations: 0 / 406.4 MB, free: 4.973 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.59e-05/0.6189, allocations: 16 kB / 406.4 MB, free: 4.957 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000341/0.6192, allocations: 23.88 kB / 406.4 MB, free: 4.934 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007673/0.62, allocations: 257.3 kB / 406.7 MB, free: 4.645 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003481/0.6204, allocations: 0.7082 MB / 407.4 MB, free: 3.91 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.949e-05/0.6205, allocations: 31.42 kB / 407.4 MB, free: 3.879 MB / 330.7 MB Notification: Performance of SimCode: time 1.002e-06/0.6205, allocations: 0 / 407.4 MB, free: 3.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_Test36CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test36CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test36CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test36FMU.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_Test36.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test36CalcHelperMain.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_Test36_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test36.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test36.fmu] Error 1