Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test28,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test28",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.117/2.117, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.092e-05/4.115e-05, allocations: 8 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1135, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4389/0.5525, allocations: 75.73 MB / 397.6 MB, free: 14.2 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002962/0.5529, allocations: 71.08 kB / 397.6 MB, free: 14.14 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01823/0.5711, allocations: 3.926 MB / 401.6 MB, free: 10.21 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.5712, allocations: 0 / 401.6 MB, free: 10.21 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.554e-05/0.5712, allocations: 0 / 401.6 MB, free: 10.21 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.0006404/0.5719, allocations: 419.9 kB / 402 MB, free: 9.754 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.009e-05/0.5719, allocations: 12.03 kB / 402 MB, free: 9.742 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.976e-05/0.572, allocations: 30.56 kB / 402 MB, free: 9.703 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.371e-05/0.5721, allocations: 7.906 kB / 402 MB, free: 9.695 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003585/0.5724, allocations: 198.9 kB / 402.2 MB, free: 9.461 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.5725, allocations: 4 kB / 402.2 MB, free: 9.457 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.399e-05/0.5725, allocations: 7.906 kB / 402.2 MB, free: 9.449 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001372/0.5727, allocations: 45.67 kB / 402.3 MB, free: 9.398 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.5727, allocations: 0 / 402.3 MB, free: 9.398 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.5727, allocations: 0 / 402.3 MB, free: 9.398 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.5727, allocations: 4 kB / 402.3 MB, free: 9.395 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.866e-05/0.5728, allocations: 19.95 kB / 402.3 MB, free: 9.375 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005236/0.5734, allocations: 288.9 kB / 402.6 MB, free: 9.043 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002653/0.5736, allocations: 39.03 kB / 402.6 MB, free: 8.996 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.493e-05/0.5737, allocations: 16.86 kB / 402.6 MB, free: 8.977 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.398e-05/0.5737, allocations: 0 / 402.6 MB, free: 8.977 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001575/0.5739, allocations: 63.48 kB / 402.7 MB, free: 8.902 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.414e-06/0.5739, allocations: 0 / 402.7 MB, free: 8.902 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004886/0.5744, allocations: 113.3 kB / 402.8 MB, free: 8.785 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.212e-05/0.5745, allocations: 51.41 kB / 402.9 MB, free: 8.723 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002385/0.5747, allocations: 152.9 kB / 403 MB, free: 8.566 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.897e-05/0.5748, allocations: 29.7 kB / 403 MB, free: 8.531 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.513e-05/0.5749, allocations: 166.5 kB / 403.2 MB, free: 8.367 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.622e-05/0.5749, allocations: 23.8 kB / 403.2 MB, free: 8.344 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.466e-06/0.5749, allocations: 3.938 kB / 403.2 MB, free: 8.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.5751, allocations: 314.8 kB / 403.5 MB, free: 8.023 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.01e-05/0.5752, allocations: 31.88 kB / 403.6 MB, free: 7.992 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.568e-05/0.5753, allocations: 23.98 kB / 403.6 MB, free: 7.969 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001128/0.5754, allocations: 53.69 kB / 403.6 MB, free: 7.91 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.5754, allocations: 0 / 403.6 MB, free: 7.91 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003065/0.5757, allocations: 127.2 kB / 403.8 MB, free: 7.773 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.118e-05/0.5758, allocations: 33.69 kB / 403.8 MB, free: 7.734 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.5758, allocations: 4 kB / 403.8 MB, free: 7.73 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.387e-05/0.5758, allocations: 7.953 kB / 403.8 MB, free: 7.723 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.576, allocations: 8 kB / 403.8 MB, free: 7.715 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.576, allocations: 0 / 403.8 MB, free: 7.715 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.613e-05/0.5761, allocations: 0 / 403.8 MB, free: 7.715 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.831e-05/0.5761, allocations: 8.062 kB / 403.8 MB, free: 7.707 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.786e-05/0.5762, allocations: 109 kB / 403.9 MB, free: 7.594 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.142e-05/0.5763, allocations: 11.91 kB / 403.9 MB, free: 7.582 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000317/0.5766, allocations: 93.7 kB / 404 MB, free: 7.488 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.5766, allocations: 4 kB / 404 MB, free: 7.484 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/0.5766, allocations: 3.953 kB / 404 MB, free: 7.48 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.5766, allocations: 144 / 404 MB, free: 7.48 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005129/0.5772, allocations: 346.6 kB / 404.4 MB, free: 7.086 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.5772, allocations: 3.984 kB / 404.4 MB, free: 7.082 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.657e-05/0.5773, allocations: 7.984 kB / 404.4 MB, free: 7.074 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.698e-06/0.5773, allocations: 0 / 404.4 MB, free: 7.074 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.231e-05/0.5773, allocations: 7.953 kB / 404.4 MB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.5773, allocations: 7.938 kB / 404.4 MB, free: 7.059 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.5773, allocations: 0 / 404.4 MB, free: 7.059 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002442/0.5776, allocations: 167.5 kB / 404.6 MB, free: 6.879 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.494e-05/0.5777, allocations: 92.94 kB / 404.7 MB, free: 6.77 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.629e-05/0.5777, allocations: 8 kB / 404.7 MB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.97e-05/0.5778, allocations: 3.953 kB / 404.7 MB, free: 6.758 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.561e-05/0.5779, allocations: 4 kB / 404.7 MB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.501e-05/0.5779, allocations: 3.984 kB / 404.7 MB, free: 6.75 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001632/0.5781, allocations: 135 kB / 404.8 MB, free: 6.621 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.5781, allocations: 0 / 404.8 MB, free: 6.621 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004177/0.5785, allocations: 43.86 kB / 404.9 MB, free: 6.578 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.00152/0.5801, allocations: 0.9441 MB / 405.8 MB, free: 5.664 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003031/0.5804, allocations: 115.3 kB / 405.9 MB, free: 5.539 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.5804, allocations: 0 / 405.9 MB, free: 5.539 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.289e-05/0.5805, allocations: 19.98 kB / 405.9 MB, free: 5.52 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003355/0.5809, allocations: 15.95 kB / 405.9 MB, free: 5.504 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007052/0.5816, allocations: 229.2 kB / 406.2 MB, free: 5.238 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003454/0.582, allocations: 0.6965 MB / 406.9 MB, free: 4.516 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.896e-05/0.5821, allocations: 31.42 kB / 406.9 MB, free: 4.484 MB / 330.7 MB Notification: Performance of SimCode: time 1.603e-06/0.5821, allocations: 3.938 kB / 406.9 MB, free: 4.48 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_Test28CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test28CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test28CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test28FMU.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_Test28.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test28CalcHelperMain.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_Test28_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test28.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test28.fmu] Error 1