Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test41,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test41",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.323/2.323, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.874e-05/4.885e-05, allocations: 4 kB / 273.1 MB, free: 0.625 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1187, allocations: 48.71 MB / 321.8 MB, free: 15.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4497/0.5684, allocations: 75.77 MB / 397.6 MB, free: 14.03 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002908/0.5688, allocations: 71.06 kB / 397.7 MB, free: 13.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01887/0.5877, allocations: 4.134 MB / 401.8 MB, free: 9.84 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.5877, allocations: 0 / 401.8 MB, free: 9.84 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.643e-05/0.5878, allocations: 8 kB / 401.8 MB, free: 9.832 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.0005878/0.5884, allocations: 419.9 kB / 402.2 MB, free: 9.371 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.663e-05/0.5884, allocations: 8.031 kB / 402.2 MB, free: 9.363 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.649e-05/0.5885, allocations: 34.56 kB / 402.3 MB, free: 9.32 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.237e-05/0.5886, allocations: 15.89 kB / 402.3 MB, free: 9.305 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003338/0.5889, allocations: 204.5 kB / 402.5 MB, free: 9.066 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.334e-05/0.5889, allocations: 0 / 402.5 MB, free: 9.066 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.155e-05/0.589, allocations: 8 kB / 402.5 MB, free: 9.059 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001325/0.5891, allocations: 49.62 kB / 402.6 MB, free: 9.004 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.5892, allocations: 0 / 402.6 MB, free: 9.004 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.5892, allocations: 0 / 402.6 MB, free: 9.004 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.5892, allocations: 4 kB / 402.6 MB, free: 9 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.254e-05/0.5893, allocations: 15.98 kB / 402.6 MB, free: 8.984 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000528/0.5898, allocations: 292.9 kB / 402.9 MB, free: 8.648 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002548/0.5901, allocations: 38.98 kB / 402.9 MB, free: 8.602 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.954e-05/0.5902, allocations: 24.94 kB / 402.9 MB, free: 8.574 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.233e-05/0.5902, allocations: 0 / 402.9 MB, free: 8.574 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001437/0.5903, allocations: 55.41 kB / 403 MB, free: 8.508 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.993e-06/0.5904, allocations: 0 / 403 MB, free: 8.508 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005071/0.5909, allocations: 121.2 kB / 403.1 MB, free: 8.383 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.177e-05/0.5909, allocations: 51.41 kB / 403.1 MB, free: 8.32 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002812/0.5912, allocations: 177.3 kB / 403.3 MB, free: 8.141 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.679e-05/0.5913, allocations: 33.69 kB / 403.3 MB, free: 8.102 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.431e-05/0.5914, allocations: 162.6 kB / 403.5 MB, free: 7.941 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.752e-05/0.5914, allocations: 15.75 kB / 403.5 MB, free: 7.926 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.356e-06/0.5914, allocations: 4 kB / 403.5 MB, free: 7.922 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.5916, allocations: 314.8 kB / 403.8 MB, free: 7.605 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.933e-05/0.5917, allocations: 23.98 kB / 403.9 MB, free: 7.582 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.651e-05/0.5917, allocations: 27.98 kB / 403.9 MB, free: 7.555 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001062/0.5919, allocations: 53.72 kB / 403.9 MB, free: 7.496 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.5919, allocations: 0 / 403.9 MB, free: 7.496 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002957/0.5922, allocations: 127.3 kB / 404.1 MB, free: 7.359 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.117e-05/0.5923, allocations: 37.69 kB / 404.1 MB, free: 7.316 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.5923, allocations: 0 / 404.1 MB, free: 7.316 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.031e-05/0.5923, allocations: 144 / 404.1 MB, free: 7.316 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.264e-05/0.5924, allocations: 8 kB / 404.1 MB, free: 7.309 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-05/0.5924, allocations: 3.953 kB / 404.1 MB, free: 7.305 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.627e-05/0.5925, allocations: 4 kB / 404.1 MB, free: 7.301 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.318e-05/0.5926, allocations: 11.97 kB / 404.1 MB, free: 7.289 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.146e-05/0.5927, allocations: 112.9 kB / 404.2 MB, free: 7.172 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.011e-05/0.5927, allocations: 15.81 kB / 404.3 MB, free: 7.156 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002807/0.593, allocations: 89.75 kB / 404.3 MB, free: 7.062 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.593, allocations: 4 kB / 404.3 MB, free: 7.059 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.593, allocations: 0 / 404.3 MB, free: 7.059 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/0.593, allocations: 3.953 kB / 404.3 MB, free: 7.055 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005588/0.5936, allocations: 358.5 kB / 404.7 MB, free: 6.648 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.5936, allocations: 192 / 404.7 MB, free: 6.648 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.323e-05/0.5937, allocations: 8 kB / 404.7 MB, free: 6.641 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.608e-06/0.5937, allocations: 4 kB / 404.7 MB, free: 6.637 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.5937, allocations: 4 kB / 404.7 MB, free: 6.633 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.284e-06/0.5938, allocations: 3.953 kB / 404.7 MB, free: 6.629 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.5938, allocations: 3.984 kB / 404.7 MB, free: 6.625 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002606/0.594, allocations: 171.4 kB / 404.9 MB, free: 6.441 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.61e-05/0.5941, allocations: 96.92 kB / 405 MB, free: 6.328 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.679e-05/0.5942, allocations: 3.984 kB / 405 MB, free: 6.324 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.5943, allocations: 4 kB / 405 MB, free: 6.32 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.776e-05/0.5944, allocations: 7.953 kB / 405 MB, free: 6.312 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.672e-05/0.5944, allocations: 8 kB / 405 MB, free: 6.305 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000203/0.5946, allocations: 148.9 kB / 405.2 MB, free: 6.16 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.275e-06/0.5946, allocations: 0 / 405.2 MB, free: 6.16 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003848/0.595, allocations: 47.8 kB / 405.2 MB, free: 6.113 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.001523/0.5966, allocations: 0.9391 MB / 406.1 MB, free: 5.203 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003155/0.5969, allocations: 111.4 kB / 406.2 MB, free: 5.082 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.5969, allocations: 0 / 406.2 MB, free: 5.082 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.214e-05/0.597, allocations: 23.94 kB / 406.3 MB, free: 5.059 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000361/0.5974, allocations: 27.88 kB / 406.3 MB, free: 5.031 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008284/0.5982, allocations: 241 kB / 406.5 MB, free: 4.754 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003534/0.5986, allocations: 0.7082 MB / 407.2 MB, free: 4.02 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.773e-05/0.5987, allocations: 35.36 kB / 407.3 MB, free: 3.984 MB / 330.7 MB Notification: Performance of SimCode: time 1.192e-06/0.5987, allocations: 0 / 407.3 MB, free: 3.984 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_Test41CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test41CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test41CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test41FMU.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_Test41.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test41CalcHelperMain.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_Test41_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test41.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test41.fmu] Error 1