Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test60,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.12/2.12, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.036e-05/5.043e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1261, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4332/0.5594, allocations: 75.99 MB / 397.8 MB, free: 13.94 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003033/0.5598, allocations: 79.11 kB / 397.9 MB, free: 13.86 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02752/0.5873, allocations: 4.773 MB / 402.7 MB, free: 9.109 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.5874, allocations: 0 / 402.7 MB, free: 9.109 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.514e-05/0.5874, allocations: 4 kB / 402.7 MB, free: 9.105 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.0006823/0.5881, allocations: 404 kB / 403.1 MB, free: 8.66 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.215e-05/0.5882, allocations: 15.97 kB / 403.1 MB, free: 8.645 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.196e-05/0.5882, allocations: 34.56 kB / 403.1 MB, free: 8.602 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.205e-05/0.5883, allocations: 7.906 kB / 403.1 MB, free: 8.594 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000356/0.5887, allocations: 186.9 kB / 403.3 MB, free: 8.371 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/0.5887, allocations: 4 kB / 403.3 MB, free: 8.367 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.207e-05/0.5888, allocations: 4 kB / 403.3 MB, free: 8.363 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001937/0.589, allocations: 59.41 kB / 403.4 MB, free: 8.293 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.589, allocations: 3.984 kB / 403.4 MB, free: 8.289 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.536e-05/0.589, allocations: 0 / 403.4 MB, free: 8.289 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.5891, allocations: 4 kB / 403.4 MB, free: 8.285 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.431e-05/0.5892, allocations: 15.94 kB / 403.4 MB, free: 8.27 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005802/0.5898, allocations: 280.9 kB / 403.7 MB, free: 7.945 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003164/0.5901, allocations: 50.56 kB / 403.7 MB, free: 7.887 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.34e-05/0.5902, allocations: 8.859 kB / 403.7 MB, free: 7.875 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.277e-05/0.5902, allocations: 0 / 403.7 MB, free: 7.875 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001915/0.5904, allocations: 63.42 kB / 403.8 MB, free: 7.801 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.615e-06/0.5905, allocations: 0 / 403.8 MB, free: 7.801 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005988/0.5911, allocations: 109.4 kB / 403.9 MB, free: 7.688 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.767e-05/0.5912, allocations: 93.03 kB / 404 MB, free: 7.578 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002172/0.5914, allocations: 124.9 kB / 404.1 MB, free: 7.449 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.639e-05/0.5915, allocations: 29.7 kB / 404.1 MB, free: 7.414 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.842e-05/0.5916, allocations: 154.6 kB / 404.3 MB, free: 7.262 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.802e-05/0.5916, allocations: 19.75 kB / 404.3 MB, free: 7.242 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.555e-05/0.5917, allocations: 0 / 404.3 MB, free: 7.242 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.5918, allocations: 326.8 kB / 404.6 MB, free: 6.914 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.352e-05/0.592, allocations: 16 kB / 404.7 MB, free: 6.898 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001199/0.5921, allocations: 41.66 kB / 404.7 MB, free: 6.852 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001356/0.5922, allocations: 49.69 kB / 404.7 MB, free: 6.797 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.5923, allocations: 0 / 404.7 MB, free: 6.797 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003688/0.5926, allocations: 119.3 kB / 404.9 MB, free: 6.668 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.568e-05/0.5927, allocations: 33.7 kB / 404.9 MB, free: 6.629 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.5927, allocations: 0 / 404.9 MB, free: 6.629 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.5928, allocations: 0 / 404.9 MB, free: 6.629 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.5929, allocations: 8 kB / 404.9 MB, free: 6.621 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.707e-05/0.5929, allocations: 3.953 kB / 404.9 MB, free: 6.617 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.593, allocations: 16.02 kB / 404.9 MB, free: 6.602 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.197e-05/0.5931, allocations: 4 kB / 404.9 MB, free: 6.598 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.0001108/0.5932, allocations: 101.1 kB / 405 MB, free: 6.492 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.952e-05/0.5933, allocations: 11.89 kB / 405 MB, free: 6.48 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003542/0.5937, allocations: 89.7 kB / 405.1 MB, free: 6.391 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.5937, allocations: 4 kB / 405.1 MB, free: 6.387 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.5937, allocations: 0 / 405.1 MB, free: 6.387 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/0.5937, allocations: 3.953 kB / 405.1 MB, free: 6.383 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006242/0.5944, allocations: 346.5 kB / 405.5 MB, free: 5.988 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.5944, allocations: 0 / 405.5 MB, free: 5.988 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.342e-05/0.5945, allocations: 11.98 kB / 405.5 MB, free: 5.977 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.5945, allocations: 0 / 405.5 MB, free: 5.977 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.71e-05/0.5945, allocations: 4 kB / 405.5 MB, free: 5.973 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.5946, allocations: 3.953 kB / 405.5 MB, free: 5.969 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.5946, allocations: 0 / 405.5 MB, free: 5.969 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003124/0.5949, allocations: 171.5 kB / 405.7 MB, free: 5.785 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.811e-05/0.595, allocations: 89 kB / 405.7 MB, free: 5.68 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.97e-05/0.5951, allocations: 96 / 405.7 MB, free: 5.68 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001576/0.5952, allocations: 12.19 kB / 405.8 MB, free: 5.668 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.099e-05/0.5953, allocations: 11.88 kB / 405.8 MB, free: 5.656 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-05/0.5953, allocations: 8 kB / 405.8 MB, free: 5.648 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001505/0.5955, allocations: 104.5 kB / 405.9 MB, free: 5.547 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.5955, allocations: 0 / 405.9 MB, free: 5.547 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006783/0.5962, allocations: 47.88 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.002293/0.5985, allocations: 1.024 MB / 406.9 MB, free: 4.512 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003624/0.5989, allocations: 99.41 kB / 407 MB, free: 4.402 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.5989, allocations: 4 kB / 407 MB, free: 4.398 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.737e-05/0.5991, allocations: 23.98 kB / 407.1 MB, free: 4.375 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004642/0.5995, allocations: 27.86 kB / 407.1 MB, free: 4.348 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.003423/0.603, allocations: 0.7355 MB / 407.8 MB, free: 3.566 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003694/0.6034, 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 0.0001183/0.6035, allocations: 23.42 kB / 408.5 MB, free: 2.824 MB / 330.7 MB Notification: Performance of SimCode: time 1.332e-06/0.6035, allocations: 4 kB / 408.6 MB, free: 2.82 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_Test60CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60FMU.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_Test60.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60CalcHelperMain.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_Test60_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60.fmu] Error 1