Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test9,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test9",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.162/2.162, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.146e-05/5.157e-05, allocations: 8 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1314, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4372/0.5687, allocations: 75.73 MB / 397.6 MB, free: 14.09 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003039/0.569, allocations: 71.95 kB / 397.7 MB, free: 14.02 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01811/0.5872, allocations: 4.036 MB / 401.7 MB, free: 9.996 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.5872, allocations: 0 / 401.7 MB, free: 9.996 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.912e-05/0.5873, allocations: 8 kB / 401.7 MB, free: 9.988 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.0005818/0.5879, allocations: 411.9 kB / 402.1 MB, free: 9.535 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.5879, allocations: 12.03 kB / 402.1 MB, free: 9.523 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.826e-05/0.588, allocations: 34.56 kB / 402.2 MB, free: 9.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.931e-05/0.588, allocations: 11.91 kB / 402.2 MB, free: 9.469 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003298/0.5884, allocations: 204.5 kB / 402.4 MB, free: 9.23 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.5884, allocations: 4 kB / 402.4 MB, free: 9.227 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.975e-05/0.5885, allocations: 4 kB / 402.4 MB, free: 9.223 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001451/0.5886, allocations: 53.61 kB / 402.4 MB, free: 9.164 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.5886, allocations: 0 / 402.4 MB, free: 9.164 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.23e-05/0.5887, allocations: 0 / 402.4 MB, free: 9.164 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.5887, allocations: 0 / 402.4 MB, free: 9.164 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.97e-05/0.5888, allocations: 8 kB / 402.4 MB, free: 9.156 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005377/0.5893, allocations: 300.9 kB / 402.7 MB, free: 8.812 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002606/0.5896, allocations: 46.97 kB / 402.8 MB, free: 8.758 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.9e-05/0.5896, allocations: 20.78 kB / 402.8 MB, free: 8.734 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.294e-05/0.5897, allocations: 0 / 402.8 MB, free: 8.734 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001546/0.5898, allocations: 59.48 kB / 402.9 MB, free: 8.664 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.104e-06/0.5899, allocations: 4 kB / 402.9 MB, free: 8.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005132/0.5904, allocations: 109.2 kB / 403 MB, free: 8.547 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.091e-05/0.5904, allocations: 55.34 kB / 403 MB, free: 8.48 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002932/0.5907, allocations: 181.3 kB / 403.2 MB, free: 8.297 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.608e-05/0.5908, allocations: 33.64 kB / 403.2 MB, free: 8.258 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.828e-05/0.5909, allocations: 162.6 kB / 403.4 MB, free: 8.098 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.209e-05/0.5909, allocations: 15.8 kB / 403.4 MB, free: 8.082 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.929e-06/0.591, allocations: 4 kB / 403.4 MB, free: 8.078 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.5911, allocations: 310.8 kB / 403.7 MB, free: 7.766 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.132e-05/0.5912, allocations: 32 kB / 403.7 MB, free: 7.734 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.968e-05/0.5913, allocations: 20 kB / 403.8 MB, free: 7.715 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001062/0.5914, allocations: 53.69 kB / 403.8 MB, free: 7.656 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.5914, allocations: 0 / 403.8 MB, free: 7.656 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002944/0.5917, allocations: 123.3 kB / 403.9 MB, free: 7.523 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.822e-05/0.5918, allocations: 33.7 kB / 404 MB, free: 7.484 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.5918, allocations: 0 / 404 MB, free: 7.484 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.842e-05/0.5918, allocations: 4 kB / 404 MB, free: 7.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.401e-05/0.5919, allocations: 7.984 kB / 404 MB, free: 7.473 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.5919, allocations: 7.953 kB / 404 MB, free: 7.465 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.263e-05/0.592, allocations: 4 kB / 404 MB, free: 7.461 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.5921, allocations: 4 kB / 404 MB, free: 7.457 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.0001008/0.5922, allocations: 109.1 kB / 404.1 MB, free: 7.344 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.35e-05/0.5922, allocations: 15.75 kB / 404.1 MB, free: 7.328 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000307/0.5925, allocations: 93.69 kB / 404.2 MB, free: 7.23 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.5926, allocations: 0 / 404.2 MB, free: 7.23 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.79e-06/0.5926, allocations: 128 / 404.2 MB, free: 7.23 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.5926, allocations: 7.953 kB / 404.2 MB, free: 7.223 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000562/0.5932, allocations: 358.6 kB / 404.6 MB, free: 6.816 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.876e-06/0.5932, allocations: 3.984 kB / 404.6 MB, free: 6.812 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.015e-05/0.5933, allocations: 11.94 kB / 404.6 MB, free: 6.801 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.5933, allocations: 4 kB / 404.6 MB, free: 6.797 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.5933, allocations: 0 / 404.6 MB, free: 6.797 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.5933, allocations: 3.953 kB / 404.6 MB, free: 6.793 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.5933, allocations: 0 / 404.6 MB, free: 6.793 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002518/0.5936, allocations: 175.4 kB / 404.8 MB, free: 6.605 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.469e-05/0.5937, allocations: 92.92 kB / 404.9 MB, free: 6.496 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.165e-05/0.5937, allocations: 0 / 404.9 MB, free: 6.496 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.5939, allocations: 8 kB / 404.9 MB, free: 6.488 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.791e-05/0.5939, allocations: 7.938 kB / 404.9 MB, free: 6.48 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.5939, allocations: 4 kB / 404.9 MB, free: 6.477 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002294/0.5942, allocations: 152.9 kB / 405 MB, free: 6.328 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5942, allocations: 0 / 405 MB, free: 6.328 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000427/0.5946, allocations: 39.94 kB / 405.1 MB, free: 6.289 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.001529/0.5962, allocations: 0.9433 MB / 406 MB, free: 5.375 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003226/0.5965, allocations: 111.4 kB / 406.1 MB, free: 5.254 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.5966, allocations: 0 / 406.1 MB, free: 5.254 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.37e-05/0.5967, allocations: 27.94 kB / 406.1 MB, free: 5.227 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000377/0.597, allocations: 23.88 kB / 406.2 MB, free: 5.203 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007927/0.5979, allocations: 249 kB / 406.4 MB, free: 4.918 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003331/0.5982, allocations: 0.7043 MB / 407.1 MB, free: 4.188 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.537e-05/0.5983, allocations: 31.42 kB / 407.1 MB, free: 4.156 MB / 330.7 MB Notification: Performance of SimCode: time 1.002e-06/0.5983, allocations: 0 / 407.1 MB, free: 4.156 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_Test9CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test9CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test9CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test9FMU.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_Test9.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test9CalcHelperMain.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_Test9_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test9.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test9.fmu] Error 1