Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test6,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test6",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.993/1.993, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.307e-05/4.315e-05, allocations: 8 kB / 273.1 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1054, allocations: 48.71 MB / 321.8 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4153/0.5207, allocations: 75.78 MB / 397.6 MB, free: 14.05 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002791/0.5211, allocations: 71.05 kB / 397.7 MB, free: 13.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01932/0.5404, allocations: 4.351 MB / 402 MB, free: 9.641 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.5405, allocations: 0 / 402 MB, free: 9.641 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.556e-05/0.5405, allocations: 4 kB / 402 MB, free: 9.637 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.0006385/0.5412, allocations: 443.8 kB / 402.5 MB, free: 9.152 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.5412, allocations: 8.031 kB / 402.5 MB, free: 9.145 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.26e-05/0.5413, allocations: 34.56 kB / 402.5 MB, free: 9.102 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.422e-05/0.5414, allocations: 11.81 kB / 402.5 MB, free: 9.09 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003626/0.5417, allocations: 215.7 kB / 402.7 MB, free: 8.836 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/0.5418, allocations: 0 / 402.7 MB, free: 8.836 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.914e-05/0.5418, allocations: 4 kB / 402.7 MB, free: 8.832 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001403/0.542, allocations: 53.61 kB / 402.8 MB, free: 8.773 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.542, allocations: 0 / 402.8 MB, free: 8.773 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.542, allocations: 7.938 kB / 402.8 MB, free: 8.766 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.542, allocations: 0 / 402.8 MB, free: 8.766 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.783e-05/0.5421, allocations: 12 kB / 402.8 MB, free: 8.754 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005623/0.5427, allocations: 312.8 kB / 403.1 MB, free: 8.398 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002547/0.543, allocations: 46.97 kB / 403.2 MB, free: 8.344 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.849e-05/0.543, allocations: 16.86 kB / 403.2 MB, free: 8.324 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.717e-05/0.5431, allocations: 0 / 403.2 MB, free: 8.324 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001617/0.5432, allocations: 67.48 kB / 403.3 MB, free: 8.246 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.934e-06/0.5432, allocations: 0 / 403.3 MB, free: 8.246 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005125/0.5438, allocations: 113.2 kB / 403.4 MB, free: 8.129 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.825e-05/0.5438, allocations: 55.41 kB / 403.4 MB, free: 8.062 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004155/0.5443, allocations: 233.4 kB / 403.6 MB, free: 7.828 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.658e-05/0.5443, allocations: 33.7 kB / 403.7 MB, free: 7.789 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.5444, allocations: 178.4 kB / 403.9 MB, free: 7.613 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.123e-05/0.5445, allocations: 15.89 kB / 403.9 MB, free: 7.598 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.785e-06/0.5445, allocations: 0 / 403.9 MB, free: 7.598 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.5446, allocations: 318.8 kB / 404.2 MB, free: 7.277 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.212e-05/0.5447, allocations: 20 kB / 404.2 MB, free: 7.258 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.392e-05/0.5448, allocations: 23.98 kB / 404.2 MB, free: 7.234 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001089/0.5449, allocations: 57.62 kB / 404.3 MB, free: 7.172 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.545, allocations: 4 kB / 404.3 MB, free: 7.168 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003229/0.5453, allocations: 123.2 kB / 404.4 MB, free: 7.035 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.98e-05/0.5454, allocations: 37.69 kB / 404.4 MB, free: 6.992 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.291e-06/0.5454, allocations: 0 / 404.4 MB, free: 6.992 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.5454, allocations: 0 / 404.4 MB, free: 6.992 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.692e-05/0.5455, allocations: 8 kB / 404.4 MB, free: 6.984 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.5455, allocations: 4.047 kB / 404.4 MB, free: 6.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.647e-05/0.5456, allocations: 11.94 kB / 404.5 MB, free: 6.969 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.124e-05/0.5457, allocations: 4 kB / 404.5 MB, free: 6.965 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 0.000102/0.5458, allocations: 113 kB / 404.6 MB, free: 6.848 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.833e-05/0.5458, allocations: 15.89 kB / 404.6 MB, free: 6.832 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002997/0.5461, allocations: 94.58 kB / 404.7 MB, free: 6.734 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.5462, allocations: 4 kB / 404.7 MB, free: 6.73 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.5462, allocations: 0 / 404.7 MB, free: 6.73 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.655e-06/0.5462, allocations: 3.953 kB / 404.7 MB, free: 6.727 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006175/0.5468, allocations: 382.5 kB / 405.1 MB, free: 6.297 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.5468, allocations: 0 / 405.1 MB, free: 6.297 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.416e-05/0.5469, allocations: 7.984 kB / 405.1 MB, free: 6.289 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.5469, allocations: 4 kB / 405.1 MB, free: 6.285 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/0.5469, allocations: 4 kB / 405.1 MB, free: 6.281 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.08e-06/0.547, allocations: 3.953 kB / 405.1 MB, free: 6.277 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.547, allocations: 0 / 405.1 MB, free: 6.277 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00027/0.5472, allocations: 179.5 kB / 405.3 MB, free: 6.086 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001014/0.5474, allocations: 97.06 kB / 405.4 MB, free: 5.973 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.686e-05/0.5474, allocations: 4 kB / 405.4 MB, free: 5.969 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.5475, allocations: 8 kB / 405.4 MB, free: 5.961 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.099e-05/0.5476, allocations: 11.94 kB / 405.4 MB, free: 5.949 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.133e-05/0.5476, allocations: 0 / 405.4 MB, free: 5.949 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002957/0.5479, allocations: 191.2 kB / 405.6 MB, free: 5.762 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5479, allocations: 0 / 405.6 MB, free: 5.762 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003853/0.5483, allocations: 35.94 kB / 405.6 MB, free: 5.727 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.001522/0.5499, allocations: 0.9553 MB / 406.6 MB, free: 4.801 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002838/0.5502, allocations: 111.4 kB / 406.7 MB, free: 4.68 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.5502, allocations: 0 / 406.7 MB, free: 4.68 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.895e-05/0.5503, allocations: 27.94 kB / 406.7 MB, free: 4.652 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003808/0.5507, allocations: 27.97 kB / 406.7 MB, free: 4.621 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008699/0.5515, allocations: 297 kB / 407 MB, free: 4.293 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004134/0.552, allocations: 0.716 MB / 407.7 MB, free: 3.551 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.5521, allocations: 35.42 kB / 407.8 MB, free: 3.516 MB / 330.7 MB Notification: Performance of SimCode: time 1.493e-06/0.5521, allocations: 0 / 407.8 MB, free: 3.516 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_Test6CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test6CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test6CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test6FMU.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_Test6.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test6CalcHelperMain.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_Test6_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test6.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test6.fmu] Error 1