Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test32,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test32",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.035/2.035, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.592e-05/4.601e-05, allocations: 8 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1069, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4604/0.5674, allocations: 75.75 MB / 397.6 MB, free: 14.07 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003483/0.5678, allocations: 71.25 kB / 397.7 MB, free: 14.01 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01926/0.5871, allocations: 3.907 MB / 401.6 MB, free: 10.11 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.5872, allocations: 4 kB / 401.6 MB, free: 10.11 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.347e-05/0.5872, allocations: 0 / 401.6 MB, free: 10.11 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.0006011/0.5878, allocations: 423.9 kB / 402 MB, free: 9.641 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.5879, allocations: 8.031 kB / 402 MB, free: 9.633 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.09e-05/0.5879, allocations: 38.55 kB / 402.1 MB, free: 9.586 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.81e-05/0.588, allocations: 11.91 kB / 402.1 MB, free: 9.574 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003018/0.5883, allocations: 190.9 kB / 402.2 MB, free: 9.348 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.523e-05/0.5883, allocations: 4 kB / 402.3 MB, free: 9.344 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.687e-05/0.5884, allocations: 7.906 kB / 402.3 MB, free: 9.336 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001439/0.5885, allocations: 45.69 kB / 402.3 MB, free: 9.285 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.5886, allocations: 4 kB / 402.3 MB, free: 9.281 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.5886, allocations: 0 / 402.3 MB, free: 9.281 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.5886, allocations: 3.984 kB / 402.3 MB, free: 9.277 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.69e-05/0.5887, allocations: 19.94 kB / 402.3 MB, free: 9.258 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004678/0.5892, allocations: 284.9 kB / 402.6 MB, free: 8.93 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002371/0.5894, allocations: 43.03 kB / 402.7 MB, free: 8.879 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.839e-05/0.5895, allocations: 12.95 kB / 402.7 MB, free: 8.863 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.374e-05/0.5895, allocations: 7.984 kB / 402.7 MB, free: 8.855 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001461/0.5897, allocations: 55.41 kB / 402.7 MB, free: 8.789 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 4.668e-06/0.5897, allocations: 0 / 402.7 MB, free: 8.789 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004753/0.5902, allocations: 113.3 kB / 402.8 MB, free: 8.672 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/0.5902, allocations: 51.41 kB / 402.9 MB, free: 8.609 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002293/0.5905, allocations: 161.8 kB / 403 MB, free: 8.445 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.54e-05/0.5905, allocations: 25.7 kB / 403.1 MB, free: 8.414 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.5906, allocations: 174.5 kB / 403.2 MB, free: 8.242 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.505e-05/0.5907, allocations: 7.812 kB / 403.2 MB, free: 8.234 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.191e-05/0.5907, allocations: 8 kB / 403.3 MB, free: 8.227 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.5908, allocations: 314.8 kB / 403.6 MB, free: 7.91 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.746e-05/0.5909, allocations: 24 kB / 403.6 MB, free: 7.887 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.199e-05/0.591, allocations: 23.94 kB / 403.6 MB, free: 7.863 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001089/0.5911, allocations: 61.66 kB / 403.7 MB, free: 7.797 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.5911, allocations: 0 / 403.7 MB, free: 7.797 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003222/0.5915, allocations: 123.4 kB / 403.8 MB, free: 7.664 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.684e-05/0.5916, allocations: 41.7 kB / 403.8 MB, free: 7.617 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.5916, allocations: 80 / 403.8 MB, free: 7.617 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.135e-05/0.5916, allocations: 3.953 kB / 403.8 MB, free: 7.613 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.5918, allocations: 11.94 kB / 403.8 MB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.5918, allocations: 7.969 kB / 403.9 MB, free: 7.594 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.142e-05/0.5919, allocations: 4 kB / 403.9 MB, free: 7.59 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.157e-05/0.5919, allocations: 4 kB / 403.9 MB, free: 7.586 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.065e-05/0.592, allocations: 105 kB / 404 MB, free: 7.477 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.958e-05/0.592, allocations: 7.906 kB / 404 MB, free: 7.469 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000271/0.5923, allocations: 89.77 kB / 404.1 MB, free: 7.379 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.5923, allocations: 0 / 404.1 MB, free: 7.379 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.5924, allocations: 3.953 kB / 404.1 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.5924, allocations: 0 / 404.1 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005165/0.5929, allocations: 354.5 kB / 404.4 MB, free: 6.973 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.5929, allocations: 0 / 404.4 MB, free: 6.973 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.853e-05/0.593, allocations: 4.188 kB / 404.4 MB, free: 6.969 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.112e-06/0.593, allocations: 4 kB / 404.4 MB, free: 6.965 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.564e-05/0.593, allocations: 11.95 kB / 404.4 MB, free: 6.953 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.593, allocations: 0 / 404.4 MB, free: 6.953 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.5931, allocations: 0 / 404.4 MB, free: 6.953 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002489/0.5933, allocations: 175.4 kB / 404.6 MB, free: 6.766 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.731e-05/0.5934, allocations: 89.02 kB / 404.7 MB, free: 6.66 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.308e-05/0.5934, allocations: 4 kB / 404.7 MB, free: 6.656 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.299e-05/0.5935, allocations: 3.953 kB / 404.7 MB, free: 6.652 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.994e-05/0.5936, allocations: 7.984 kB / 404.7 MB, free: 6.645 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-06/0.5936, allocations: 4 kB / 404.7 MB, free: 6.641 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001662/0.5938, allocations: 131.8 kB / 404.8 MB, free: 6.512 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5938, allocations: 0 / 404.8 MB, free: 6.512 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003914/0.5942, allocations: 39.94 kB / 404.9 MB, free: 6.473 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.001538/0.5958, allocations: 0.9505 MB / 405.8 MB, free: 5.555 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002622/0.596, allocations: 107.4 kB / 405.9 MB, free: 5.438 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.5961, allocations: 0 / 405.9 MB, free: 5.438 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.766e-05/0.5961, allocations: 16 kB / 405.9 MB, free: 5.422 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003351/0.5965, allocations: 31.78 kB / 406 MB, free: 5.391 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000678/0.5972, allocations: 225.2 kB / 406.2 MB, free: 5.129 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000338/0.5975, allocations: 0.6965 MB / 406.9 MB, free: 4.406 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.02e-05/0.5976, allocations: 31.38 kB / 406.9 MB, free: 4.375 MB / 330.7 MB Notification: Performance of SimCode: time 7.82e-07/0.5976, allocations: 0 / 406.9 MB, free: 4.375 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_Test32CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test32CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test32CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test32FMU.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_Test32.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test32CalcHelperMain.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_Test32_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test32.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test32.fmu] Error 1