Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test46,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test46",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.364/2.364, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.606e-05/5.622e-05, allocations: 8 kB / 273.1 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1114, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4479/0.5594, allocations: 75.76 MB / 397.6 MB, free: 14.17 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003543/0.5599, allocations: 63.97 kB / 397.7 MB, free: 14.11 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02674/0.5866, allocations: 4.326 MB / 402 MB, free: 9.785 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.5867, allocations: 4 kB / 402 MB, free: 9.781 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.014e-05/0.5867, allocations: 3.938 kB / 402 MB, free: 9.777 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.0008207/0.5876, allocations: 443.8 kB / 402.4 MB, free: 9.293 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.945e-05/0.5877, allocations: 8.031 kB / 402.4 MB, free: 9.285 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.913e-05/0.5877, allocations: 34.56 kB / 402.5 MB, free: 9.242 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001111/0.5879, allocations: 15.81 kB / 402.5 MB, free: 9.227 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004904/0.5884, allocations: 206.8 kB / 402.7 MB, free: 8.984 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/0.5884, allocations: 0 / 402.7 MB, free: 8.984 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.94e-05/0.5885, allocations: 4 kB / 402.7 MB, free: 8.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001774/0.5887, allocations: 41.69 kB / 402.7 MB, free: 8.934 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.438e-05/0.5887, allocations: 12 kB / 402.7 MB, free: 8.922 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.884e-05/0.5887, allocations: 3.984 kB / 402.7 MB, free: 8.918 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.224e-05/0.5888, allocations: 0 / 402.7 MB, free: 8.918 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.674e-05/0.5889, allocations: 11.94 kB / 402.8 MB, free: 8.906 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007719/0.5897, allocations: 300.9 kB / 403.1 MB, free: 8.562 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000339/0.59, allocations: 47.03 kB / 403.1 MB, free: 8.508 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.264e-05/0.5901, allocations: 16.94 kB / 403.1 MB, free: 8.488 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.962e-05/0.5902, allocations: 4 kB / 403.1 MB, free: 8.484 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002074/0.5904, allocations: 59.34 kB / 403.2 MB, free: 8.414 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 4.068e-06/0.5904, allocations: 0 / 403.2 MB, free: 8.414 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0006917/0.5911, allocations: 125.1 kB / 403.3 MB, free: 8.285 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.936e-05/0.5912, allocations: 55.34 kB / 403.4 MB, free: 8.219 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006035/0.5918, allocations: 222.7 kB / 403.6 MB, free: 7.988 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.514e-05/0.5919, allocations: 29.7 kB / 403.6 MB, free: 7.953 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.5921, allocations: 174.5 kB / 403.8 MB, free: 7.781 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.037e-05/0.5921, allocations: 11.81 kB / 403.8 MB, free: 7.77 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.17e-05/0.5922, allocations: 0 / 403.8 MB, free: 7.77 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.5923, allocations: 322.8 kB / 404.1 MB, free: 7.445 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001153/0.5925, allocations: 20 kB / 404.1 MB, free: 7.426 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001075/0.5926, allocations: 24 kB / 404.1 MB, free: 7.402 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001506/0.5928, allocations: 49.69 kB / 404.2 MB, free: 7.348 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.5928, allocations: 3.938 kB / 404.2 MB, free: 7.344 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004837/0.5933, allocations: 131.3 kB / 404.3 MB, free: 7.203 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.966e-05/0.5934, allocations: 33.7 kB / 404.4 MB, free: 7.164 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.5934, allocations: 0 / 404.4 MB, free: 7.164 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/0.5934, allocations: 0 / 404.4 MB, free: 7.164 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.5936, allocations: 12 kB / 404.4 MB, free: 7.152 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.565e-05/0.5936, allocations: 3.953 kB / 404.4 MB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001584/0.5938, allocations: 7.984 kB / 404.4 MB, free: 7.141 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.795e-05/0.5939, allocations: 4.062 kB / 404.4 MB, free: 7.137 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.0001138/0.594, allocations: 105 kB / 404.5 MB, free: 7.027 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.868e-05/0.5941, allocations: 19.81 kB / 404.5 MB, free: 7.008 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004643/0.5946, allocations: 94.61 kB / 404.6 MB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.5946, allocations: 0 / 404.6 MB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/0.5946, allocations: 4 kB / 404.6 MB, free: 6.906 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/0.5946, allocations: 7.938 kB / 404.6 MB, free: 6.898 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008573/0.5955, allocations: 374.4 kB / 405 MB, free: 6.477 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.5956, allocations: 0 / 405 MB, free: 6.477 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.535e-05/0.5957, allocations: 11.98 kB / 405 MB, free: 6.465 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.156e-05/0.5957, allocations: 8.141 kB / 405 MB, free: 6.457 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.5957, allocations: 0 / 405 MB, free: 6.457 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.444e-06/0.5957, allocations: 3.953 kB / 405 MB, free: 6.453 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.73e-06/0.5957, allocations: 3.984 kB / 405 MB, free: 6.449 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003762/0.5961, allocations: 175.4 kB / 405.2 MB, free: 6.262 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001224/0.5963, allocations: 93 kB / 405.3 MB, free: 6.152 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.882e-05/0.5964, allocations: 4 kB / 405.3 MB, free: 6.148 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001735/0.5965, allocations: 4 kB / 405.3 MB, free: 6.145 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.558e-05/0.5966, allocations: 15.94 kB / 405.3 MB, free: 6.129 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.812e-05/0.5967, allocations: 0 / 405.3 MB, free: 6.129 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003932/0.5971, allocations: 189.1 kB / 405.5 MB, free: 5.945 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.71e-07/0.5971, allocations: 0 / 405.5 MB, free: 5.945 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006307/0.5977, allocations: 36 kB / 405.5 MB, free: 5.91 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.002135/0.5999, allocations: 0.9559 MB / 406.5 MB, free: 4.984 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004074/0.6004, allocations: 119.3 kB / 406.6 MB, free: 4.855 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.6004, allocations: 0 / 406.6 MB, free: 4.855 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.358e-05/0.6005, allocations: 16 kB / 406.6 MB, free: 4.84 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000498/0.601, allocations: 24.12 kB / 406.6 MB, free: 4.812 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001201/0.6022, allocations: 285 kB / 406.9 MB, free: 4.496 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004563/0.6027, allocations: 0.7199 MB / 407.6 MB, free: 3.75 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001589/0.6029, allocations: 31.42 kB / 407.6 MB, free: 3.719 MB / 330.7 MB Notification: Performance of SimCode: time 1.313e-06/0.6029, allocations: 0 / 407.6 MB, free: 3.719 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_Test46CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test46CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test46CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test46FMU.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_Test46.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test46CalcHelperMain.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_Test46_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test46.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test46.fmu] Error 1