Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test21,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test21",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.009/2.009, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.023e-05/5.037e-05, allocations: 8 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1099, allocations: 48.71 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.436/0.5459, allocations: 75.77 MB / 397.6 MB, free: 14.15 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002363/0.5462, allocations: 67.97 kB / 397.7 MB, free: 14.08 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01887/0.5651, allocations: 4.003 MB / 401.7 MB, free: 10.09 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.5652, allocations: 0 / 401.7 MB, free: 10.09 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.51e-05/0.5652, allocations: 4 kB / 401.7 MB, free: 10.08 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.0005984/0.5658, allocations: 419.9 kB / 402.1 MB, free: 9.621 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/0.5659, allocations: 8.031 kB / 402.1 MB, free: 9.613 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.524e-05/0.5659, allocations: 34.56 kB / 402.1 MB, free: 9.57 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.379e-05/0.566, allocations: 7.906 kB / 402.1 MB, free: 9.562 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003251/0.5663, allocations: 194.9 kB / 402.3 MB, free: 9.332 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/0.5664, allocations: 8 kB / 402.3 MB, free: 9.324 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.965e-05/0.5664, allocations: 3.906 kB / 402.3 MB, free: 9.32 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001522/0.5666, allocations: 49.67 kB / 402.4 MB, free: 9.266 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.5666, allocations: 0 / 402.4 MB, free: 9.266 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.5666, allocations: 0 / 402.4 MB, free: 9.266 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.5667, allocations: 4 kB / 402.4 MB, free: 9.262 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.43e-05/0.5667, allocations: 19.89 kB / 402.4 MB, free: 9.242 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004994/0.5672, allocations: 288.9 kB / 402.7 MB, free: 8.91 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002579/0.5675, allocations: 43.03 kB / 402.7 MB, free: 8.859 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.295e-05/0.5676, allocations: 12.86 kB / 402.8 MB, free: 8.844 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.526e-05/0.5676, allocations: 4 kB / 402.8 MB, free: 8.84 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001459/0.5678, allocations: 63.42 kB / 402.8 MB, free: 8.766 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.564e-06/0.5678, allocations: 0 / 402.8 MB, free: 8.766 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005264/0.5683, allocations: 109.3 kB / 402.9 MB, free: 8.652 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.603e-05/0.5684, allocations: 59.34 kB / 403 MB, free: 8.582 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002341/0.5686, allocations: 152.7 kB / 403.1 MB, free: 8.426 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.591e-05/0.5687, allocations: 33.62 kB / 403.2 MB, free: 8.387 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.697e-05/0.5688, allocations: 166.5 kB / 403.3 MB, free: 8.223 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.255e-05/0.5688, allocations: 19.81 kB / 403.4 MB, free: 8.203 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.964e-06/0.5688, allocations: 0 / 403.4 MB, free: 8.203 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.569, allocations: 314.8 kB / 403.7 MB, free: 7.887 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.132e-05/0.5691, allocations: 23.98 kB / 403.7 MB, free: 7.863 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.552e-05/0.5692, allocations: 24 kB / 403.7 MB, free: 7.84 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001247/0.5693, allocations: 53.62 kB / 403.8 MB, free: 7.781 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.5693, allocations: 0 / 403.8 MB, free: 7.781 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003393/0.5697, allocations: 127.2 kB / 403.9 MB, free: 7.645 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.072e-05/0.5697, allocations: 37.69 kB / 403.9 MB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.5698, allocations: 0 / 403.9 MB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.5698, allocations: 7.953 kB / 403.9 MB, free: 7.594 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.489e-05/0.5699, allocations: 8 kB / 403.9 MB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.5699, allocations: 0 / 403.9 MB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.528e-05/0.57, allocations: 4 kB / 403.9 MB, free: 7.582 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.014e-05/0.57, allocations: 8.047 kB / 403.9 MB, free: 7.574 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 9.529e-05/0.5701, allocations: 109 kB / 404.1 MB, free: 7.461 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.11e-05/0.5702, allocations: 11.91 kB / 404.1 MB, free: 7.449 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003109/0.5705, allocations: 89.7 kB / 404.2 MB, free: 7.359 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.5705, allocations: 4 kB / 404.2 MB, free: 7.355 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.5705, allocations: 3.953 kB / 404.2 MB, free: 7.352 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.77e-06/0.5706, allocations: 4 kB / 404.2 MB, free: 7.348 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005266/0.5711, allocations: 346.5 kB / 404.5 MB, free: 6.953 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.5711, allocations: 0 / 404.5 MB, free: 6.953 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.015e-05/0.5712, allocations: 16.22 kB / 404.5 MB, free: 6.938 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.5712, allocations: 3.938 kB / 404.5 MB, free: 6.934 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.588e-05/0.5713, allocations: 7.938 kB / 404.5 MB, free: 6.926 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/0.5713, allocations: 0 / 404.5 MB, free: 6.926 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.5713, allocations: 8 kB / 404.5 MB, free: 6.918 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002486/0.5715, allocations: 167.5 kB / 404.7 MB, free: 6.738 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.616e-05/0.5716, allocations: 89 kB / 404.8 MB, free: 6.633 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.186e-05/0.5717, allocations: 0 / 404.8 MB, free: 6.633 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.5718, allocations: 11.95 kB / 404.8 MB, free: 6.621 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.655e-05/0.5719, allocations: 3.984 kB / 404.8 MB, free: 6.617 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.464e-05/0.5719, allocations: 4 kB / 404.8 MB, free: 6.613 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00017/0.5721, allocations: 139 kB / 404.9 MB, free: 6.48 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5721, allocations: 0 / 404.9 MB, free: 6.48 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003784/0.5725, allocations: 35.92 kB / 405 MB, free: 6.445 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.001482/0.574, allocations: 0.9438 MB / 405.9 MB, free: 5.531 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002965/0.5743, allocations: 115.3 kB / 406 MB, free: 5.406 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.5743, allocations: 0 / 406 MB, free: 5.406 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.402e-05/0.5744, allocations: 23.98 kB / 406.1 MB, free: 5.383 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000324/0.5747, allocations: 19.94 kB / 406.1 MB, free: 5.363 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006892/0.5754, allocations: 221.2 kB / 406.3 MB, free: 5.105 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002971/0.5758, allocations: 0.7004 MB / 407 MB, free: 4.379 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.267e-05/0.5759, allocations: 27.42 kB / 407 MB, free: 4.352 MB / 330.7 MB Notification: Performance of SimCode: time 1.152e-06/0.5759, allocations: 4 kB / 407 MB, free: 4.348 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_Test21CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test21CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test21CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test21FMU.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_Test21.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test21CalcHelperMain.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_Test21_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test21.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test21.fmu] Error 1