Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test16,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test16",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.89/1.89, allocations: 209.3 MB / 221.9 MB, free: 1.922 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.885e-05/3.901e-05, allocations: 4 kB / 273.2 MB, free: 0.6211 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1068, allocations: 48.7 MB / 321.9 MB, free: 15.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4833/0.5902, allocations: 75.74 MB / 397.6 MB, free: 14.08 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002578/0.5905, allocations: 75.05 kB / 397.7 MB, free: 14.01 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01635/0.6069, allocations: 3.863 MB / 401.5 MB, free: 10.15 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.6069, allocations: 0 / 401.5 MB, free: 10.15 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.183e-05/0.6069, allocations: 0 / 401.5 MB, free: 10.15 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.0005215/0.6075, allocations: 423.9 kB / 402 MB, free: 9.688 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.6075, allocations: 8.031 kB / 402 MB, free: 9.68 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.503e-05/0.6076, allocations: 34.56 kB / 402 MB, free: 9.637 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.213e-05/0.6076, allocations: 7.906 kB / 402 MB, free: 9.629 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002741/0.6079, allocations: 190.9 kB / 402.2 MB, free: 9.402 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.608, allocations: 4 kB / 402.2 MB, free: 9.398 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.747e-05/0.608, allocations: 4 kB / 402.2 MB, free: 9.395 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001182/0.6081, allocations: 41.69 kB / 402.2 MB, free: 9.348 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.6082, allocations: 0 / 402.2 MB, free: 9.348 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.475e-05/0.6082, allocations: 11.91 kB / 402.3 MB, free: 9.336 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.6082, allocations: 8 kB / 402.3 MB, free: 9.328 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.55e-05/0.6083, allocations: 12 kB / 402.3 MB, free: 9.316 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004636/0.6087, allocations: 292.8 kB / 402.6 MB, free: 8.98 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002392/0.609, allocations: 39.03 kB / 402.6 MB, free: 8.934 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.482e-05/0.6091, allocations: 16.86 kB / 402.6 MB, free: 8.914 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.141e-05/0.6091, allocations: 0 / 402.6 MB, free: 8.914 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001302/0.6092, allocations: 59.44 kB / 402.7 MB, free: 8.844 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.883e-06/0.6092, allocations: 0 / 402.7 MB, free: 8.844 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004373/0.6097, allocations: 109.4 kB / 402.8 MB, free: 8.73 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.625e-05/0.6098, allocations: 55.41 kB / 402.8 MB, free: 8.664 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002008/0.61, allocations: 148.1 kB / 403 MB, free: 8.512 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.329e-05/0.61, allocations: 29.7 kB / 403 MB, free: 8.477 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.88e-05/0.6101, allocations: 162.5 kB / 403.2 MB, free: 8.316 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.895e-05/0.6102, allocations: 15.81 kB / 403.2 MB, free: 8.301 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.023e-05/0.6102, allocations: 4 kB / 403.2 MB, free: 8.297 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.6103, allocations: 314.8 kB / 403.5 MB, free: 7.98 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.842e-05/0.6104, allocations: 28 kB / 403.5 MB, free: 7.953 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.03e-05/0.6105, allocations: 27.92 kB / 403.5 MB, free: 7.926 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001059/0.6106, allocations: 57.72 kB / 403.6 MB, free: 7.863 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.6106, allocations: 0 / 403.6 MB, free: 7.863 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002684/0.6109, allocations: 123.3 kB / 403.7 MB, free: 7.73 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.008e-05/0.611, allocations: 33.7 kB / 403.8 MB, free: 7.691 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.611, allocations: 0 / 403.8 MB, free: 7.691 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.611, allocations: 11.95 kB / 403.8 MB, free: 7.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.914e-05/0.6111, allocations: 4 kB / 403.8 MB, free: 7.676 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.6111, allocations: 4 kB / 403.8 MB, free: 7.672 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.317e-05/0.6112, allocations: 3.984 kB / 403.8 MB, free: 7.668 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.107e-05/0.6112, allocations: 4 kB / 403.8 MB, free: 7.664 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 7.715e-05/0.6113, allocations: 105 kB / 403.9 MB, free: 7.555 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.077e-05/0.6113, allocations: 11.91 kB / 403.9 MB, free: 7.543 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002539/0.6116, allocations: 93.77 kB / 404 MB, free: 7.449 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.6116, allocations: 0 / 404 MB, free: 7.449 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.6116, allocations: 3.953 kB / 404 MB, free: 7.445 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.6116, allocations: 0 / 404 MB, free: 7.445 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004477/0.6121, allocations: 350.5 kB / 404.3 MB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.6121, allocations: 0 / 404.3 MB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.813e-05/0.6122, allocations: 7.984 kB / 404.3 MB, free: 7.039 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.6122, allocations: 0 / 404.3 MB, free: 7.039 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.564e-05/0.6122, allocations: 7.953 kB / 404.3 MB, free: 7.031 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.6122, allocations: 0 / 404.3 MB, free: 7.031 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.6122, allocations: 4 kB / 404.4 MB, free: 7.027 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002425/0.6125, allocations: 175.3 kB / 404.5 MB, free: 6.84 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.225e-05/0.6126, allocations: 89 kB / 404.6 MB, free: 6.734 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.618e-05/0.6126, allocations: 4 kB / 404.6 MB, free: 6.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.309e-05/0.6127, allocations: 7.953 kB / 404.6 MB, free: 6.723 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.769e-05/0.6128, allocations: 3.984 kB / 404.6 MB, free: 6.719 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.6128, allocations: 4 kB / 404.6 MB, free: 6.715 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001303/0.6129, allocations: 119.3 kB / 404.7 MB, free: 6.598 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6129, allocations: 0 / 404.7 MB, free: 6.598 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003802/0.6133, allocations: 32 kB / 404.8 MB, free: 6.566 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.001406/0.6147, allocations: 0.9736 MB / 405.8 MB, free: 5.625 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002341/0.615, allocations: 107.4 kB / 405.9 MB, free: 5.508 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.615, allocations: 0 / 405.9 MB, free: 5.508 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.748e-05/0.6151, allocations: 19.94 kB / 405.9 MB, free: 5.488 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002911/0.6154, allocations: 19.94 kB / 405.9 MB, free: 5.469 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006053/0.616, allocations: 205.4 kB / 406.1 MB, free: 5.227 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003288/0.6164, allocations: 0.6965 MB / 406.8 MB, free: 4.504 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.447e-05/0.6164, allocations: 27.42 kB / 406.8 MB, free: 4.477 MB / 330.7 MB Notification: Performance of SimCode: time 7.22e-07/0.6165, allocations: 3.938 kB / 406.8 MB, free: 4.473 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_Test16CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test16CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test16CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_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_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test16.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_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.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_Test16_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test16.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test16.fmu] Error 1