Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test57,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test57",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.203/2.203, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.107e-05/4.124e-05, allocations: 8 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1144, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4497/0.5642, allocations: 76 MB / 397.8 MB, free: 13.94 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002942/0.5645, allocations: 79.08 kB / 397.9 MB, free: 13.86 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02179/0.5863, allocations: 4.765 MB / 402.7 MB, free: 9.117 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.5864, allocations: 4 kB / 402.7 MB, free: 9.113 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.702e-05/0.5864, allocations: 0 / 402.7 MB, free: 9.113 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.0006683/0.5871, allocations: 412 kB / 403.1 MB, free: 8.66 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.735e-05/0.5872, allocations: 8.031 kB / 403.1 MB, free: 8.652 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.194e-05/0.5873, allocations: 42.55 kB / 403.1 MB, free: 8.602 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.913e-05/0.5873, allocations: 3.906 kB / 403.1 MB, free: 8.598 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003366/0.5877, allocations: 190.9 kB / 403.3 MB, free: 8.371 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.622e-05/0.5877, allocations: 0 / 403.3 MB, free: 8.371 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.495e-05/0.5878, allocations: 8 kB / 403.3 MB, free: 8.363 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001733/0.5879, allocations: 67.33 kB / 403.4 MB, free: 8.285 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/0.588, allocations: 0 / 403.4 MB, free: 8.285 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.588, allocations: 0 / 403.4 MB, free: 8.285 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.588, allocations: 0 / 403.4 MB, free: 8.285 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.174e-05/0.5881, allocations: 15.98 kB / 403.4 MB, free: 8.27 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004756/0.5886, allocations: 280.9 kB / 403.7 MB, free: 7.945 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002544/0.5889, allocations: 46.56 kB / 403.7 MB, free: 7.891 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.263e-05/0.5889, allocations: 16.8 kB / 403.7 MB, free: 7.871 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.686e-05/0.5889, allocations: 0 / 403.7 MB, free: 7.871 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001562/0.5891, allocations: 55.48 kB / 403.8 MB, free: 7.805 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.033e-06/0.5891, allocations: 0 / 403.8 MB, free: 7.805 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005075/0.5896, allocations: 117.3 kB / 403.9 MB, free: 7.684 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.543e-05/0.5897, allocations: 81.11 kB / 404 MB, free: 7.586 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001696/0.5899, allocations: 132.9 kB / 404.1 MB, free: 7.449 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.206e-05/0.5899, allocations: 25.7 kB / 404.1 MB, free: 7.418 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.077e-05/0.59, allocations: 158.6 kB / 404.3 MB, free: 7.262 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.007e-05/0.5901, allocations: 19.75 kB / 404.3 MB, free: 7.242 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.254e-06/0.5901, allocations: 3.938 kB / 404.3 MB, free: 7.238 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.5902, allocations: 314.8 kB / 404.6 MB, free: 6.922 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.749e-05/0.5903, allocations: 23.98 kB / 404.7 MB, free: 6.898 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.383e-05/0.5904, allocations: 41.66 kB / 404.7 MB, free: 6.852 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001012/0.5905, allocations: 49.69 kB / 404.7 MB, free: 6.797 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.5905, allocations: 0 / 404.7 MB, free: 6.797 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002595/0.5908, allocations: 115.3 kB / 404.9 MB, free: 6.672 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.833e-05/0.5909, allocations: 33.69 kB / 404.9 MB, free: 6.633 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.5909, allocations: 4 kB / 404.9 MB, free: 6.629 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.5909, allocations: 0 / 404.9 MB, free: 6.629 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.583e-05/0.591, allocations: 8 kB / 404.9 MB, free: 6.621 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.968e-06/0.591, allocations: 3.953 kB / 404.9 MB, free: 6.617 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.313e-05/0.5911, allocations: 4.031 kB / 404.9 MB, free: 6.613 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.033e-05/0.5911, allocations: 8 kB / 404.9 MB, free: 6.605 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.248e-05/0.5912, allocations: 112.9 kB / 405 MB, free: 6.488 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.563e-05/0.5913, allocations: 7.906 kB / 405 MB, free: 6.48 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002739/0.5916, allocations: 85.77 kB / 405.1 MB, free: 6.395 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.5916, allocations: 0 / 405.1 MB, free: 6.395 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.5916, allocations: 0 / 405.1 MB, free: 6.395 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.5916, allocations: 3.953 kB / 405.1 MB, free: 6.391 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004807/0.5921, allocations: 342.6 kB / 405.5 MB, free: 6 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.5921, allocations: 8.062 kB / 405.5 MB, free: 5.992 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.951e-05/0.5922, allocations: 4 kB / 405.5 MB, free: 5.988 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.5922, allocations: 0 / 405.5 MB, free: 5.988 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.068e-05/0.5922, allocations: 12.08 kB / 405.5 MB, free: 5.977 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.5923, allocations: 7.891 kB / 405.5 MB, free: 5.969 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.5923, allocations: 0 / 405.5 MB, free: 5.969 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002362/0.5925, allocations: 175.4 kB / 405.7 MB, free: 5.781 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.102e-05/0.5926, allocations: 85.14 kB / 405.7 MB, free: 5.68 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.111e-05/0.5926, allocations: 4 kB / 405.7 MB, free: 5.676 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.94e-05/0.5927, allocations: 7.984 kB / 405.8 MB, free: 5.668 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.495e-05/0.5928, allocations: 7.953 kB / 405.8 MB, free: 5.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.779e-05/0.5928, allocations: 7.984 kB / 405.8 MB, free: 5.652 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001164/0.593, allocations: 100.5 kB / 405.9 MB, free: 5.555 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.593, allocations: 0 / 405.9 MB, free: 5.555 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004242/0.5934, allocations: 55.84 kB / 405.9 MB, free: 5.5 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.001696/0.5951, allocations: 1.02 MB / 406.9 MB, free: 4.516 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000278/0.5954, allocations: 103.4 kB / 407 MB, free: 4.402 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.5954, allocations: 4 kB / 407 MB, free: 4.398 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.887e-05/0.5955, allocations: 19.94 kB / 407.1 MB, free: 4.379 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003238/0.5959, allocations: 19.94 kB / 407.1 MB, free: 4.359 MB / 330.7 MB Warning: Could not resolve URI (uri) at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002632/0.5985, allocations: 0.7471 MB / 407.8 MB, free: 3.566 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/0.5988, allocations: 0.6926 MB / 408.5 MB, free: 2.848 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.777e-05/0.5989, allocations: 27.42 kB / 408.6 MB, free: 2.82 MB / 330.7 MB Notification: Performance of SimCode: time 1.623e-06/0.599, allocations: 4 kB / 408.6 MB, free: 2.816 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_Test57CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test57FMU.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_Test57.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.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" -lModelicaExternalC -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_Test57_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test57.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test57.fmu] Error 1