Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test51,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test51",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.088/2.088, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.068e-05/4.08e-05, allocations: 4 kB / 273.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1018, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4038/0.5056, allocations: 75.77 MB / 397.6 MB, free: 14.07 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002821/0.5059, allocations: 71.06 kB / 397.7 MB, free: 14.01 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01837/0.5243, allocations: 4.188 MB / 401.9 MB, free: 9.832 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.5244, allocations: 0 / 401.9 MB, free: 9.832 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.285e-05/0.5244, allocations: 0 / 401.9 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.0006324/0.5251, allocations: 431.9 kB / 402.3 MB, free: 9.359 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.793e-05/0.5251, allocations: 8.031 kB / 402.3 MB, free: 9.352 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.881e-05/0.5252, allocations: 34.56 kB / 402.3 MB, free: 9.309 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.963e-05/0.5253, allocations: 7.906 kB / 402.3 MB, free: 9.301 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003499/0.5256, allocations: 206.8 kB / 402.5 MB, free: 9.059 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.5257, allocations: 4 kB / 402.5 MB, free: 9.055 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.294e-05/0.5257, allocations: 0 / 402.5 MB, free: 9.055 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001349/0.5258, allocations: 45.69 kB / 402.6 MB, free: 9.004 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.5259, allocations: 0 / 402.6 MB, free: 9.004 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.5259, allocations: 0 / 402.6 MB, free: 9.004 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.5259, allocations: 0 / 402.6 MB, free: 9.004 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.581e-05/0.526, allocations: 15.98 kB / 402.6 MB, free: 8.988 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005169/0.5265, allocations: 308.7 kB / 402.9 MB, free: 8.637 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002536/0.5268, allocations: 46.97 kB / 402.9 MB, free: 8.582 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.528e-05/0.5269, allocations: 12.86 kB / 403 MB, free: 8.566 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.598e-05/0.5269, allocations: 0 / 403 MB, free: 8.566 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001555/0.527, allocations: 59.48 kB / 403 MB, free: 8.496 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.024e-06/0.5271, allocations: 0 / 403 MB, free: 8.496 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.00049/0.5276, allocations: 121.4 kB / 403.1 MB, free: 8.371 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.868e-05/0.5276, allocations: 51.41 kB / 403.2 MB, free: 8.309 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003145/0.5279, allocations: 186.5 kB / 403.4 MB, free: 8.113 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.396e-05/0.528, allocations: 29.7 kB / 403.4 MB, free: 8.078 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.5281, allocations: 170.5 kB / 403.6 MB, free: 7.91 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.34e-05/0.5282, allocations: 19.72 kB / 403.6 MB, free: 7.891 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.625e-06/0.5282, allocations: 0 / 403.6 MB, free: 7.891 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.5283, allocations: 322.8 kB / 403.9 MB, free: 7.566 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.91e-05/0.5284, allocations: 24 kB / 403.9 MB, free: 7.543 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001105/0.5286, allocations: 27.92 kB / 404 MB, free: 7.516 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001122/0.5287, allocations: 57.62 kB / 404 MB, free: 7.453 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.5287, allocations: 0 / 404 MB, free: 7.453 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002914/0.529, allocations: 119.4 kB / 404.1 MB, free: 7.324 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.879e-05/0.5291, allocations: 37.69 kB / 404.2 MB, free: 7.281 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.5291, allocations: 0 / 404.2 MB, free: 7.281 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.5291, allocations: 0 / 404.2 MB, free: 7.281 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.016e-05/0.5292, allocations: 11.94 kB / 404.2 MB, free: 7.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.5292, allocations: 3.953 kB / 404.2 MB, free: 7.266 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.911e-05/0.5293, allocations: 12 kB / 404.2 MB, free: 7.254 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.75e-05/0.5294, allocations: 4 kB / 404.2 MB, free: 7.25 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.688e-05/0.5295, allocations: 101 kB / 404.3 MB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.473e-05/0.5295, allocations: 15.89 kB / 404.3 MB, free: 7.129 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002879/0.5298, allocations: 86.8 kB / 404.4 MB, free: 7.035 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.129e-05/0.5298, allocations: 8 kB / 404.4 MB, free: 7.027 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.5298, allocations: 3.938 kB / 404.4 MB, free: 7.023 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.5299, allocations: 4.047 kB / 404.4 MB, free: 7.02 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005546/0.5304, allocations: 370.4 kB / 404.8 MB, free: 6.602 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.5304, allocations: 0 / 404.8 MB, free: 6.602 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.338e-05/0.5305, allocations: 8 kB / 404.8 MB, free: 6.594 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.798e-06/0.5305, allocations: 0 / 404.8 MB, free: 6.594 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.5306, allocations: 3.984 kB / 404.8 MB, free: 6.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.5306, allocations: 4.109 kB / 404.8 MB, free: 6.586 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.263e-06/0.5306, allocations: 4 kB / 404.8 MB, free: 6.582 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002632/0.5309, allocations: 175.4 kB / 405 MB, free: 6.395 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.122e-05/0.531, allocations: 93 kB / 405 MB, free: 6.285 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.521e-05/0.531, allocations: 4 kB / 405.1 MB, free: 6.281 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.722e-05/0.5311, allocations: 0 / 405.1 MB, free: 6.281 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.535e-05/0.5312, allocations: 7.953 kB / 405.1 MB, free: 6.273 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.37e-05/0.5312, allocations: 4 kB / 405.1 MB, free: 6.27 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000232/0.5314, allocations: 160.9 kB / 405.2 MB, free: 6.113 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.5314, allocations: 0 / 405.2 MB, free: 6.113 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003836/0.5318, allocations: 35.94 kB / 405.3 MB, free: 6.078 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.001533/0.5334, allocations: 0.963 MB / 406.2 MB, free: 5.148 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002903/0.5337, allocations: 115.4 kB / 406.3 MB, free: 5.023 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.5337, allocations: 0 / 406.3 MB, free: 5.023 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.068e-05/0.5338, allocations: 19.94 kB / 406.4 MB, free: 5.004 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003321/0.5341, allocations: 19.94 kB / 406.4 MB, free: 4.984 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007663/0.5349, allocations: 248.9 kB / 406.6 MB, free: 4.703 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003576/0.5353, allocations: 0.7082 MB / 407.3 MB, free: 3.969 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.523e-05/0.5354, allocations: 39.42 kB / 407.4 MB, free: 3.93 MB / 330.7 MB Notification: Performance of SimCode: time 9.12e-07/0.5354, allocations: 0 / 407.4 MB, free: 3.93 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_Test51CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test51CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test51CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test51FMU.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_Test51.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test51CalcHelperMain.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_Test51_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test51.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test51.fmu] Error 1