Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test6,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test6",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.129/2.129, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.314e-05/4.325e-05, allocations: 4 kB / 273.2 MB, free: 0.6289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.115, allocations: 48.7 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4425/0.5576, allocations: 75.8 MB / 397.7 MB, free: 14.02 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003002/0.5579, allocations: 71.16 kB / 397.7 MB, free: 13.95 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02027/0.5782, allocations: 4.354 MB / 402.1 MB, free: 9.609 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.3e-06/0.5783, allocations: 0 / 402.1 MB, free: 9.609 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.509e-05/0.5783, allocations: 7.938 kB / 402.1 MB, free: 9.602 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.0006905/0.579, allocations: 435.8 kB / 402.5 MB, free: 9.125 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.865e-05/0.5791, allocations: 12.03 kB / 402.5 MB, free: 9.113 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.089e-05/0.5792, allocations: 30.56 kB / 402.6 MB, free: 9.074 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.182e-05/0.5793, allocations: 15.81 kB / 402.6 MB, free: 9.059 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004073/0.5797, allocations: 211.7 kB / 402.8 MB, free: 8.809 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.141e-05/0.5797, allocations: 4 kB / 402.8 MB, free: 8.805 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.105e-05/0.5798, allocations: 7.938 kB / 402.8 MB, free: 8.797 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001544/0.5799, allocations: 49.67 kB / 402.8 MB, free: 8.742 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.58, allocations: 0 / 402.8 MB, free: 8.742 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.585e-05/0.58, allocations: 4 kB / 402.8 MB, free: 8.738 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.58, allocations: 0 / 402.8 MB, free: 8.738 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.218e-05/0.5801, allocations: 12 kB / 402.8 MB, free: 8.727 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006788/0.5808, allocations: 312.8 kB / 403.2 MB, free: 8.371 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003037/0.5811, allocations: 54.97 kB / 403.2 MB, free: 8.309 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.387e-05/0.5812, allocations: 8.859 kB / 403.2 MB, free: 8.297 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.815e-05/0.5812, allocations: 0 / 403.2 MB, free: 8.297 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000178/0.5814, allocations: 63.48 kB / 403.3 MB, free: 8.223 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.084e-06/0.5814, allocations: 0 / 403.3 MB, free: 8.223 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005415/0.582, allocations: 113.2 kB / 403.4 MB, free: 8.105 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.473e-05/0.582, allocations: 55.41 kB / 403.4 MB, free: 8.039 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004425/0.5825, allocations: 237.4 kB / 403.7 MB, free: 7.801 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.311e-05/0.5825, allocations: 25.7 kB / 403.7 MB, free: 7.77 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.5827, allocations: 182.4 kB / 403.9 MB, free: 7.59 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.909e-05/0.5827, allocations: 11.91 kB / 403.9 MB, free: 7.578 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.185e-06/0.5827, allocations: 0 / 403.9 MB, free: 7.578 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.5829, allocations: 318.8 kB / 404.2 MB, free: 7.258 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.263e-05/0.583, allocations: 23.98 kB / 404.2 MB, free: 7.234 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.395e-05/0.5831, allocations: 20 kB / 404.2 MB, free: 7.215 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001139/0.5832, allocations: 61.66 kB / 404.3 MB, free: 7.148 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.5832, allocations: 4 kB / 404.3 MB, free: 7.145 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003576/0.5836, allocations: 123.2 kB / 404.4 MB, free: 7.012 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.688e-05/0.5836, allocations: 37.69 kB / 404.5 MB, free: 6.969 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.5837, allocations: 0 / 404.5 MB, free: 6.969 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.5837, allocations: 0 / 404.5 MB, free: 6.969 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.778e-05/0.5838, allocations: 8 kB / 404.5 MB, free: 6.961 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.5838, allocations: 3.953 kB / 404.5 MB, free: 6.957 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001005/0.5839, allocations: 4 kB / 404.5 MB, free: 6.953 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.038e-05/0.584, allocations: 8 kB / 404.5 MB, free: 6.945 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.000113/0.5841, allocations: 113 kB / 404.6 MB, free: 6.828 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.845e-05/0.5841, allocations: 7.906 kB / 404.6 MB, free: 6.82 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003189/0.5845, allocations: 102.5 kB / 404.7 MB, free: 6.715 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.745e-06/0.5845, allocations: 4 kB / 404.7 MB, free: 6.711 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.5845, allocations: 0 / 404.7 MB, free: 6.711 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.5845, allocations: 3.953 kB / 404.7 MB, free: 6.707 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006026/0.5851, allocations: 370.7 kB / 405.1 MB, free: 6.289 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.5851, allocations: 8 kB / 405.1 MB, free: 6.281 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.238e-05/0.5852, allocations: 11.92 kB / 405.1 MB, free: 6.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.025e-06/0.5852, allocations: 3.984 kB / 405.1 MB, free: 6.266 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.764e-05/0.5853, allocations: 8 kB / 405.1 MB, free: 6.258 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.093e-06/0.5853, allocations: 3.953 kB / 405.1 MB, free: 6.254 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.5853, allocations: 192 / 405.1 MB, free: 6.254 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002756/0.5856, allocations: 175.4 kB / 405.3 MB, free: 6.066 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/0.5857, allocations: 97 kB / 405.4 MB, free: 5.953 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.53e-05/0.5858, allocations: 0 / 405.4 MB, free: 5.953 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001164/0.5859, allocations: 12 kB / 405.4 MB, free: 5.941 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.974e-05/0.586, allocations: 7.938 kB / 405.4 MB, free: 5.934 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.23e-05/0.586, allocations: 4 kB / 405.4 MB, free: 5.93 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002927/0.5863, allocations: 187.2 kB / 405.6 MB, free: 5.746 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5863, allocations: 0 / 405.6 MB, free: 5.746 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004059/0.5867, allocations: 39.94 kB / 405.6 MB, free: 5.707 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.00164/0.5884, allocations: 0.9554 MB / 406.6 MB, free: 4.781 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003119/0.5887, allocations: 107.3 kB / 406.7 MB, free: 4.664 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.5888, allocations: 4 kB / 406.7 MB, free: 4.66 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.711e-05/0.5888, allocations: 16 kB / 406.7 MB, free: 4.645 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003789/0.5892, allocations: 20.12 kB / 406.7 MB, free: 4.621 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009789/0.5902, allocations: 301 kB / 407 MB, free: 4.289 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004158/0.5907, allocations: 0.7189 MB / 407.7 MB, free: 3.547 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.5908, allocations: 47.36 kB / 407.8 MB, free: 3.5 MB / 330.7 MB Notification: Performance of SimCode: time 3.155e-06/0.5908, allocations: 0 / 407.8 MB, free: 3.5 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_Test6CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test6CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test6CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test6FMU.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_Test6.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test6CalcHelperMain.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_Test6_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test6.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test6.fmu] Error 1