Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test16,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test16",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.059/2.059, allocations: 209.3 MB / 221.9 MB, free: 1.945 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.852e-05/3.875e-05, allocations: 4 kB / 273.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1092, allocations: 48.72 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.433/0.5423, allocations: 75.73 MB / 397.6 MB, free: 14.1 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002869/0.5426, allocations: 70.78 kB / 397.6 MB, free: 14.04 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01744/0.5601, allocations: 3.856 MB / 401.5 MB, free: 10.19 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.5601, allocations: 0 / 401.5 MB, free: 10.19 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.585e-05/0.5602, allocations: 4 kB / 401.5 MB, free: 10.18 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.0005705/0.5607, allocations: 411.9 kB / 401.9 MB, free: 9.73 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.5608, allocations: 12.03 kB / 401.9 MB, free: 9.719 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.219e-05/0.5609, allocations: 42.55 kB / 402 MB, free: 9.668 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.676e-05/0.561, allocations: 7.906 kB / 402 MB, free: 9.66 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002988/0.5613, allocations: 190.9 kB / 402.2 MB, free: 9.434 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.583e-05/0.5613, allocations: 4 kB / 402.2 MB, free: 9.43 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.337e-05/0.5613, allocations: 0 / 402.2 MB, free: 9.43 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001372/0.5615, allocations: 53.61 kB / 402.2 MB, free: 9.371 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.5615, allocations: 0 / 402.2 MB, free: 9.371 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.464e-05/0.5615, allocations: 8 kB / 402.2 MB, free: 9.363 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.5615, allocations: 3.938 kB / 402.2 MB, free: 9.359 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.074e-05/0.5616, allocations: 11.98 kB / 402.2 MB, free: 9.348 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004923/0.5621, allocations: 288.8 kB / 402.5 MB, free: 9.016 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002648/0.5624, allocations: 50.97 kB / 402.6 MB, free: 8.957 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.6e-05/0.5625, allocations: 8.859 kB / 402.6 MB, free: 8.945 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.956e-05/0.5625, allocations: 4 kB / 402.6 MB, free: 8.941 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001775/0.5627, allocations: 67.47 kB / 402.6 MB, free: 8.863 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.845e-06/0.5627, allocations: 0 / 402.6 MB, free: 8.863 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005483/0.5633, allocations: 109.3 kB / 402.8 MB, free: 8.75 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.59e-05/0.5633, allocations: 55.39 kB / 402.8 MB, free: 8.684 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002341/0.5636, allocations: 145.2 kB / 402.9 MB, free: 8.531 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.348e-05/0.5636, allocations: 25.7 kB / 403 MB, free: 8.5 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.894e-05/0.5637, allocations: 166.5 kB / 403.1 MB, free: 8.336 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.792e-05/0.5638, allocations: 11.81 kB / 403.1 MB, free: 8.324 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.726e-06/0.5638, allocations: 4 kB / 403.2 MB, free: 8.32 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.5639, allocations: 318.8 kB / 403.5 MB, free: 8 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.63e-05/0.564, allocations: 23.94 kB / 403.5 MB, free: 7.977 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.312e-05/0.5641, allocations: 27.97 kB / 403.5 MB, free: 7.949 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001158/0.5642, allocations: 53.69 kB / 403.6 MB, free: 7.891 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.5643, allocations: 0 / 403.6 MB, free: 7.891 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000303/0.5646, allocations: 119.3 kB / 403.7 MB, free: 7.762 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.074e-05/0.5646, allocations: 41.69 kB / 403.7 MB, free: 7.715 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.5647, allocations: 0 / 403.7 MB, free: 7.715 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.06e-05/0.5647, allocations: 3.953 kB / 403.7 MB, free: 7.711 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.5648, allocations: 8 kB / 403.7 MB, free: 7.703 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.196e-06/0.5648, allocations: 0 / 403.7 MB, free: 7.703 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001649/0.565, allocations: 8.094 kB / 403.7 MB, free: 7.695 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.132e-05/0.565, allocations: 11.88 kB / 403.8 MB, free: 7.684 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.916e-05/0.5651, allocations: 105 kB / 403.9 MB, free: 7.574 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.305e-05/0.5652, allocations: 11.89 kB / 403.9 MB, free: 7.562 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003125/0.5655, allocations: 89.77 kB / 404 MB, free: 7.473 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.5655, allocations: 0 / 404 MB, free: 7.473 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.5656, allocations: 3.953 kB / 404 MB, free: 7.469 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.5656, allocations: 0 / 404 MB, free: 7.469 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005218/0.5661, allocations: 350.5 kB / 404.3 MB, free: 7.07 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.5661, allocations: 192 / 404.3 MB, free: 7.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.29e-05/0.5662, allocations: 12 kB / 404.3 MB, free: 7.059 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.5662, allocations: 0 / 404.3 MB, free: 7.059 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.493e-05/0.5662, allocations: 7.953 kB / 404.3 MB, free: 7.051 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.5663, allocations: 4 kB / 404.3 MB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.5663, allocations: 3.984 kB / 404.3 MB, free: 7.043 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002501/0.5665, allocations: 175.3 kB / 404.5 MB, free: 6.855 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.808e-05/0.5666, allocations: 85.02 kB / 404.6 MB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.486e-05/0.5667, allocations: 4.125 kB / 404.6 MB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.5668, allocations: 11.95 kB / 404.6 MB, free: 6.738 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.592e-05/0.5668, allocations: 3.984 kB / 404.6 MB, free: 6.734 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.5669, allocations: 8 kB / 404.6 MB, free: 6.727 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001457/0.567, allocations: 122.3 kB / 404.7 MB, free: 6.609 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.567, allocations: 0 / 404.7 MB, free: 6.609 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003718/0.5674, allocations: 32 kB / 404.8 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.001492/0.5689, allocations: 0.9457 MB / 405.7 MB, free: 5.66 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002945/0.5692, allocations: 115.4 kB / 405.8 MB, free: 5.535 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.5693, allocations: 0 / 405.8 MB, free: 5.535 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.11e-05/0.5693, allocations: 19.94 kB / 405.8 MB, free: 5.516 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003336/0.5697, allocations: 23.94 kB / 405.9 MB, free: 5.492 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006808/0.5704, allocations: 201.4 kB / 406.1 MB, free: 5.254 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003361/0.5707, allocations: 0.6998 MB / 406.8 MB, free: 4.531 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.961e-05/0.5708, allocations: 35.36 kB / 406.8 MB, free: 4.496 MB / 330.7 MB Notification: Performance of SimCode: time 1.142e-06/0.5708, allocations: 0 / 406.8 MB, free: 4.496 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_Test16CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test16CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test16CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test16FMU.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_Test16.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test16CalcHelperMain.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_Test16_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test16.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test16.fmu] Error 1