Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test44,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test44",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.178/2.178, allocations: 209.3 MB / 221.9 MB, free: 1.945 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.708e-05/5.726e-05, allocations: 8 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.1473, allocations: 48.71 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4414/0.5888, allocations: 75.78 MB / 397.6 MB, free: 14.16 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002802/0.5892, allocations: 71.95 kB / 397.7 MB, free: 14.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02147/0.6107, allocations: 4.071 MB / 401.8 MB, free: 10.02 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.6107, allocations: 0 / 401.8 MB, free: 10.02 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.284e-05/0.6108, allocations: 4 kB / 401.8 MB, free: 10.02 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.0007764/0.6116, allocations: 431.8 kB / 402.2 MB, free: 9.543 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.619e-05/0.6117, allocations: 12.03 kB / 402.2 MB, free: 9.531 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.699e-05/0.6117, allocations: 30.56 kB / 402.2 MB, free: 9.492 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.47e-05/0.6118, allocations: 7.906 kB / 402.2 MB, free: 9.484 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004296/0.6123, allocations: 203.5 kB / 402.4 MB, free: 9.242 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.6123, allocations: 0 / 402.4 MB, free: 9.242 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.472e-05/0.6124, allocations: 4 kB / 402.4 MB, free: 9.238 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001684/0.6125, allocations: 41.69 kB / 402.5 MB, free: 9.191 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.271e-05/0.6126, allocations: 7.984 kB / 402.5 MB, free: 9.184 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.525e-05/0.6126, allocations: 3.938 kB / 402.5 MB, free: 9.18 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.6126, allocations: 0 / 402.5 MB, free: 9.18 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001017/0.6128, allocations: 16 kB / 402.5 MB, free: 9.164 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006654/0.6135, allocations: 288.9 kB / 402.8 MB, free: 8.832 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00034/0.6138, allocations: 47.03 kB / 402.8 MB, free: 8.777 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.242e-05/0.6139, allocations: 8.859 kB / 402.8 MB, free: 8.766 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.881e-05/0.6139, allocations: 7.938 kB / 402.8 MB, free: 8.758 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001978/0.6142, allocations: 63.48 kB / 402.9 MB, free: 8.684 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.936e-06/0.6142, allocations: 0 / 402.9 MB, free: 8.684 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0006516/0.6148, allocations: 113.2 kB / 403 MB, free: 8.566 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.77e-05/0.6149, allocations: 55.41 kB / 403.1 MB, free: 8.5 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003615/0.6153, allocations: 174.8 kB / 403.2 MB, free: 8.324 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.39e-05/0.6154, allocations: 29.64 kB / 403.3 MB, free: 8.289 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000125/0.6155, allocations: 170.5 kB / 403.4 MB, free: 8.121 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.556e-05/0.6156, allocations: 11.81 kB / 403.5 MB, free: 8.109 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.471e-05/0.6156, allocations: 4 kB / 403.5 MB, free: 8.105 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.6158, allocations: 322.8 kB / 403.8 MB, free: 7.781 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/0.6159, allocations: 20 kB / 403.8 MB, free: 7.762 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001009/0.616, allocations: 20 kB / 403.8 MB, free: 7.742 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001462/0.6162, allocations: 53.69 kB / 403.9 MB, free: 7.684 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.6162, allocations: 3.938 kB / 403.9 MB, free: 7.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004027/0.6166, allocations: 123.3 kB / 404 MB, free: 7.547 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.932e-05/0.6167, allocations: 37.7 kB / 404 MB, free: 7.504 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.6168, allocations: 0 / 404 MB, free: 7.504 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.6168, allocations: 0 / 404 MB, free: 7.504 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.6169, allocations: 8 kB / 404 MB, free: 7.496 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.306e-05/0.6169, allocations: 3.953 kB / 404 MB, free: 7.492 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001108/0.6171, allocations: 15.92 kB / 404.1 MB, free: 7.477 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.338e-05/0.6171, allocations: 4 kB / 404.1 MB, free: 7.473 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.0001285/0.6172, allocations: 104.9 kB / 404.2 MB, free: 7.363 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.048e-05/0.6173, allocations: 11.91 kB / 404.2 MB, free: 7.352 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003604/0.6177, allocations: 89.77 kB / 404.3 MB, free: 7.262 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.6177, allocations: 0 / 404.3 MB, free: 7.262 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.6177, allocations: 128 / 404.3 MB, free: 7.262 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/0.6178, allocations: 7.953 kB / 404.3 MB, free: 7.254 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000678/0.6184, allocations: 358.5 kB / 404.6 MB, free: 6.848 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.6185, allocations: 0 / 404.6 MB, free: 6.848 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.481e-05/0.6186, allocations: 4.234 kB / 404.6 MB, free: 6.844 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.203e-06/0.6186, allocations: 7.938 kB / 404.6 MB, free: 6.836 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.771e-05/0.6186, allocations: 7.984 kB / 404.6 MB, free: 6.828 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.042e-06/0.6186, allocations: 3.953 kB / 404.6 MB, free: 6.824 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.6186, allocations: 0 / 404.6 MB, free: 6.824 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000322/0.619, allocations: 179.3 kB / 404.8 MB, free: 6.633 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001011/0.6191, allocations: 89.02 kB / 404.9 MB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.281e-05/0.6192, allocations: 0 / 404.9 MB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001437/0.6193, allocations: 7.922 kB / 404.9 MB, free: 6.52 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.82e-05/0.6194, allocations: 7.953 kB / 404.9 MB, free: 6.512 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.588e-05/0.6194, allocations: 12 kB / 404.9 MB, free: 6.5 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002353/0.6197, allocations: 135.2 kB / 405.1 MB, free: 6.367 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.6197, allocations: 0 / 405.1 MB, free: 6.367 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005856/0.6203, allocations: 35.94 kB / 405.1 MB, free: 6.332 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.002005/0.6223, allocations: 0.9477 MB / 406 MB, free: 5.414 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003757/0.6227, allocations: 115.4 kB / 406.2 MB, free: 5.289 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.6227, allocations: 0 / 406.2 MB, free: 5.289 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.461e-05/0.6229, allocations: 20 kB / 406.2 MB, free: 5.27 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00045/0.6233, allocations: 23.94 kB / 406.2 MB, free: 5.246 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009837/0.6243, allocations: 232.8 kB / 406.4 MB, free: 4.977 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004548/0.6248, allocations: 0.7078 MB / 407.1 MB, free: 4.246 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001137/0.6249, allocations: 31.42 kB / 407.2 MB, free: 4.215 MB / 330.7 MB Notification: Performance of SimCode: time 1.022e-06/0.625, allocations: 0 / 407.2 MB, free: 4.215 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_Test44CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test44CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test44CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test44FMU.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_Test44.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test44CalcHelperMain.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_Test44_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test44.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test44.fmu] Error 1