Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test62,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test62",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.091/2.091, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.203e-05/5.21e-05, allocations: 8 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1204, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.447/0.5674, allocations: 75.62 MB / 397.5 MB, free: 14.2 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002804/0.5678, allocations: 71.95 kB / 397.6 MB, free: 14.13 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01828/0.5861, allocations: 4.13 MB / 401.7 MB, free: 10.01 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.409e-06/0.5861, allocations: 3.984 kB / 401.7 MB, free: 10.01 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.605e-05/0.5862, allocations: 0 / 401.7 MB, free: 10.01 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0006068/0.5868, allocations: 431.8 kB / 402.1 MB, free: 9.535 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.412e-05/0.5868, allocations: 12.03 kB / 402.1 MB, free: 9.523 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.351e-05/0.5869, allocations: 30.56 kB / 402.1 MB, free: 9.484 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.311e-05/0.587, allocations: 7.906 kB / 402.2 MB, free: 9.477 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003521/0.5873, allocations: 214.7 kB / 402.4 MB, free: 9.227 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.715e-05/0.5874, allocations: 4 kB / 402.4 MB, free: 9.223 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.856e-05/0.5874, allocations: 0 / 402.4 MB, free: 9.223 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00012/0.5875, allocations: 37.69 kB / 402.4 MB, free: 9.18 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.5875, allocations: 0 / 402.4 MB, free: 9.18 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.5876, allocations: 4 kB / 402.4 MB, free: 9.176 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.511e-06/0.5876, allocations: 0 / 402.4 MB, free: 9.176 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.478e-05/0.5877, allocations: 19.92 kB / 402.4 MB, free: 9.156 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002679/0.5879, allocations: 193.6 kB / 402.6 MB, free: 8.918 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.008e-05/0.588, allocations: 30.52 kB / 402.6 MB, free: 8.879 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.147e-05/0.5881, allocations: 8.922 kB / 402.7 MB, free: 8.867 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.5881, allocations: 4 kB / 402.7 MB, free: 8.863 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001512/0.5883, allocations: 67.81 kB / 402.7 MB, free: 8.785 MB / 330.7 MB Notification: Performance of pre-optimization done (n=3): time 2.174e-06/0.5883, allocations: 0 / 402.7 MB, free: 8.785 MB / 330.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002592/0.5886, allocations: 61.53 kB / 402.8 MB, free: 8.719 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.293e-05/0.5886, allocations: 51.41 kB / 402.8 MB, free: 8.656 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004124/0.589, allocations: 226.6 kB / 403.1 MB, free: 8.422 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.225e-05/0.5891, allocations: 25.7 kB / 403.1 MB, free: 8.391 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.806e-05/0.5892, allocations: 170.6 kB / 403.3 MB, free: 8.223 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.867e-05/0.5892, allocations: 7.844 kB / 403.3 MB, free: 8.215 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.167e-06/0.5893, allocations: 8 kB / 403.3 MB, free: 8.207 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.5894, allocations: 322.8 kB / 403.6 MB, free: 7.883 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.553e-05/0.5895, allocations: 16 kB / 403.6 MB, free: 7.867 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.21e-05/0.5896, allocations: 16 kB / 403.6 MB, free: 7.852 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.711e-05/0.5897, allocations: 45.69 kB / 403.7 MB, free: 7.801 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.5897, allocations: 0 / 403.7 MB, free: 7.801 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002599/0.59, allocations: 107.3 kB / 403.8 MB, free: 7.684 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.74e-05/0.59, allocations: 37.69 kB / 403.8 MB, free: 7.641 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.59, allocations: 0 / 403.8 MB, free: 7.641 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.5901, allocations: 3.938 kB / 403.8 MB, free: 7.637 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.589e-05/0.5902, allocations: 12 kB / 403.8 MB, free: 7.625 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.5902, allocations: 0 / 403.8 MB, free: 7.625 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.767e-05/0.5903, allocations: 4 kB / 403.8 MB, free: 7.621 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.678e-05/0.5903, allocations: 3.984 kB / 403.8 MB, free: 7.617 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 (5): * Single equations (assignments): 4 * 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.94e-05/0.5904, allocations: 112.9 kB / 403.9 MB, free: 7.5 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.87e-05/0.5905, allocations: 11.81 kB / 403.9 MB, free: 7.488 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002324/0.5907, allocations: 74.61 kB / 404 MB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.5907, allocations: 0 / 404 MB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.5908, allocations: 4 kB / 404 MB, free: 7.398 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.5908, allocations: 0 / 404 MB, free: 7.398 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002255/0.591, allocations: 205.5 kB / 404.2 MB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.591, allocations: 0 / 404.2 MB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.581e-05/0.5911, allocations: 7.984 kB / 404.2 MB, free: 7.141 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.5911, allocations: 0 / 404.2 MB, free: 7.141 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.5911, allocations: 0 / 404.2 MB, free: 7.141 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.5911, allocations: 0 / 404.2 MB, free: 7.141 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.5911, allocations: 7.938 kB / 404.2 MB, free: 7.133 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001905/0.5913, allocations: 96.89 kB / 404.3 MB, free: 7.02 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.685e-05/0.5914, allocations: 93 kB / 404.4 MB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.503e-05/0.5915, allocations: 8 kB / 404.4 MB, free: 6.902 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.919e-05/0.5916, allocations: 0 / 404.4 MB, free: 6.902 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.153e-05/0.5916, allocations: 3.984 kB / 404.4 MB, free: 6.898 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.829e-06/0.5916, allocations: 4 kB / 404.4 MB, free: 6.895 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002725/0.5919, allocations: 185.1 kB / 404.6 MB, free: 6.715 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5919, allocations: 0 / 404.6 MB, free: 6.715 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003345/0.5923, allocations: 31.94 kB / 404.7 MB, free: 6.684 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 (4): * Single equations (assignments): 3 * 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.001348/0.5936, allocations: 0.8402 MB / 405.5 MB, free: 5.871 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002609/0.5939, allocations: 99.39 kB / 405.6 MB, free: 5.762 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.594, allocations: 3.938 kB / 405.6 MB, free: 5.758 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.554e-05/0.594, allocations: 19.94 kB / 405.6 MB, free: 5.738 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003038/0.5943, allocations: 16.17 kB / 405.6 MB, free: 5.719 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007646/0.5951, allocations: 277.1 kB / 405.9 MB, free: 5.41 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003618/0.5955, allocations: 0.7121 MB / 406.6 MB, free: 4.672 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.767e-05/0.5956, allocations: 35.42 kB / 406.6 MB, free: 4.637 MB / 330.7 MB Notification: Performance of SimCode: time 1.282e-06/0.5956, allocations: 0 / 406.6 MB, free: 4.637 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_Test62CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test62CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test62CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test62FMU.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_Test62.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test62CalcHelperMain.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_Test62_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test62.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test62.fmu] Error 1