Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test27,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test27",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.189/2.189, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.129e-05/4.147e-05, allocations: 8 kB / 273.2 MB, free: 0.6289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.1494, allocations: 48.7 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4552/0.6047, allocations: 75.75 MB / 397.6 MB, free: 14.15 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002793/0.605, allocations: 68.53 kB / 397.7 MB, free: 14.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01789/0.6229, allocations: 3.918 MB / 401.6 MB, free: 10.18 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.623, allocations: 0 / 401.6 MB, free: 10.18 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.563e-05/0.623, allocations: 4 kB / 401.6 MB, free: 10.17 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.0005669/0.6236, allocations: 423.9 kB / 402 MB, free: 9.707 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.6237, allocations: 8.031 kB / 402 MB, free: 9.699 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.538e-05/0.6237, allocations: 34.55 kB / 402.1 MB, free: 9.656 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.63e-05/0.6238, allocations: 7.906 kB / 402.1 MB, free: 9.648 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002888/0.6241, allocations: 194.9 kB / 402.2 MB, free: 9.418 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.726e-05/0.6241, allocations: 4 kB / 402.3 MB, free: 9.414 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.075e-05/0.6242, allocations: 7.906 kB / 402.3 MB, free: 9.406 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001182/0.6243, allocations: 45.62 kB / 402.3 MB, free: 9.355 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.6243, allocations: 0 / 402.3 MB, free: 9.355 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.6243, allocations: 4 kB / 402.3 MB, free: 9.352 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.6244, allocations: 4 kB / 402.3 MB, free: 9.348 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.232e-05/0.6244, allocations: 19.94 kB / 402.3 MB, free: 9.328 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004704/0.6249, allocations: 284.9 kB / 402.6 MB, free: 9 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002475/0.6252, allocations: 43.03 kB / 402.7 MB, free: 8.949 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.293e-05/0.6253, allocations: 12.86 kB / 402.7 MB, free: 8.934 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.269e-05/0.6253, allocations: 0 / 402.7 MB, free: 8.934 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001399/0.6254, allocations: 63.48 kB / 402.7 MB, free: 8.859 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 7.174e-06/0.6255, allocations: 0 / 402.7 MB, free: 8.859 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.000495/0.626, allocations: 109.3 kB / 402.8 MB, free: 8.746 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.209e-05/0.626, allocations: 59.39 kB / 402.9 MB, free: 8.676 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002338/0.6263, allocations: 152.5 kB / 403 MB, free: 8.52 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.351e-05/0.6263, allocations: 29.7 kB / 403.1 MB, free: 8.484 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.209e-05/0.6264, allocations: 162.5 kB / 403.2 MB, free: 8.324 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.671e-05/0.6264, allocations: 23.8 kB / 403.3 MB, free: 8.301 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.215e-06/0.6265, allocations: 0 / 403.3 MB, free: 8.301 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.6266, allocations: 318.8 kB / 403.6 MB, free: 7.98 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.487e-05/0.6267, allocations: 24 kB / 403.6 MB, free: 7.957 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.615e-05/0.6268, allocations: 23.94 kB / 403.6 MB, free: 7.934 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001196/0.6269, allocations: 53.69 kB / 403.7 MB, free: 7.875 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.6269, allocations: 3.938 kB / 403.7 MB, free: 7.871 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000292/0.6272, allocations: 127.3 kB / 403.8 MB, free: 7.734 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.003e-05/0.6273, allocations: 33.7 kB / 403.8 MB, free: 7.695 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.6273, allocations: 0 / 403.8 MB, free: 7.695 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.6273, allocations: 8.047 kB / 403.8 MB, free: 7.688 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.643e-05/0.6274, allocations: 15.88 kB / 403.8 MB, free: 7.672 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.804e-06/0.6275, allocations: 0 / 403.8 MB, free: 7.672 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.085e-05/0.6276, allocations: 7.984 kB / 403.9 MB, free: 7.664 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.68e-05/0.6276, allocations: 4.062 kB / 403.9 MB, free: 7.66 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.164e-05/0.6277, allocations: 109 kB / 404 MB, free: 7.547 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.811e-05/0.6277, allocations: 8.047 kB / 404 MB, free: 7.539 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002844/0.628, allocations: 85.75 kB / 404.1 MB, free: 7.453 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.6281, allocations: 8 kB / 404.1 MB, free: 7.445 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.6281, allocations: 3.953 kB / 404.1 MB, free: 7.441 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.6281, allocations: 0 / 404.1 MB, free: 7.441 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004929/0.6286, allocations: 350.5 kB / 404.4 MB, free: 7.043 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.6286, allocations: 3.984 kB / 404.4 MB, free: 7.039 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.208e-05/0.6287, allocations: 4 kB / 404.4 MB, free: 7.035 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.6287, allocations: 0 / 404.4 MB, free: 7.035 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.116e-05/0.6287, allocations: 7.953 kB / 404.4 MB, free: 7.027 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.6287, allocations: 0 / 404.4 MB, free: 7.027 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.6288, allocations: 4 kB / 404.4 MB, free: 7.023 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002428/0.629, allocations: 179.4 kB / 404.6 MB, free: 6.832 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.652e-05/0.6291, allocations: 85.02 kB / 404.7 MB, free: 6.73 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.087e-05/0.6291, allocations: 4 kB / 404.7 MB, free: 6.727 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001001/0.6292, allocations: 3.953 kB / 404.7 MB, free: 6.723 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.859e-05/0.6293, allocations: 7.984 kB / 404.7 MB, free: 6.715 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.359e-05/0.6293, allocations: 4 kB / 404.7 MB, free: 6.711 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001579/0.6295, allocations: 127.8 kB / 404.8 MB, free: 6.586 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6295, allocations: 0 / 404.8 MB, free: 6.586 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003951/0.6299, allocations: 43.92 kB / 404.9 MB, free: 6.543 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.001467/0.6314, allocations: 0.9545 MB / 405.8 MB, free: 5.621 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002839/0.6317, allocations: 111.4 kB / 405.9 MB, free: 5.5 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.6317, allocations: 0 / 405.9 MB, free: 5.5 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.938e-05/0.6318, allocations: 16 kB / 406 MB, free: 5.484 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003373/0.6322, allocations: 19.94 kB / 406 MB, free: 5.465 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007289/0.6329, allocations: 225.2 kB / 406.2 MB, free: 5.203 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003308/0.6333, allocations: 0.7043 MB / 406.9 MB, free: 4.473 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.554e-05/0.6334, allocations: 23.44 kB / 406.9 MB, free: 4.449 MB / 330.7 MB Notification: Performance of SimCode: time 9.62e-07/0.6334, allocations: 0 / 406.9 MB, free: 4.449 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_Test27CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test27CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test27CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test27FMU.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_Test27.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test27CalcHelperMain.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_Test27_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test27.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test27.fmu] Error 1