Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test3,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.111/2.111, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.061e-05/4.072e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1173, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5439/0.6612, allocations: 75.72 MB / 397.6 MB, free: 14.21 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002784/0.6616, allocations: 71.95 kB / 397.6 MB, free: 14.14 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01779/0.6794, allocations: 3.816 MB / 401.4 MB, free: 10.33 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.6794, allocations: 0 / 401.4 MB, free: 10.33 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.368e-05/0.6794, allocations: 0 / 401.4 MB, free: 10.33 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.000646/0.6801, allocations: 416 kB / 401.9 MB, free: 9.875 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.6802, allocations: 15.97 kB / 401.9 MB, free: 9.859 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.503e-05/0.6802, allocations: 30.56 kB / 401.9 MB, free: 9.82 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.502e-05/0.6803, allocations: 7.906 kB / 401.9 MB, free: 9.812 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003099/0.6806, allocations: 194.8 kB / 402.1 MB, free: 9.582 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/0.6806, allocations: 8 kB / 402.1 MB, free: 9.574 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.831e-05/0.6807, allocations: 0 / 402.1 MB, free: 9.574 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001412/0.6808, allocations: 49.62 kB / 402.2 MB, free: 9.52 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.6809, allocations: 0 / 402.2 MB, free: 9.52 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.6809, allocations: 0 / 402.2 MB, free: 9.52 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.6809, allocations: 3.984 kB / 402.2 MB, free: 9.516 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.116e-05/0.681, allocations: 19.98 kB / 402.2 MB, free: 9.496 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005067/0.6815, allocations: 284.9 kB / 402.5 MB, free: 9.168 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002593/0.6818, allocations: 42.97 kB / 402.5 MB, free: 9.117 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.11e-05/0.6818, allocations: 20.94 kB / 402.5 MB, free: 9.094 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.333e-05/0.6819, allocations: 0 / 402.5 MB, free: 9.094 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001668/0.682, allocations: 63.39 kB / 402.6 MB, free: 9.02 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.184e-06/0.6821, allocations: 0 / 402.6 MB, free: 9.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004892/0.6826, allocations: 109.3 kB / 402.7 MB, free: 8.906 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.272e-05/0.6826, allocations: 55.41 kB / 402.7 MB, free: 8.84 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002035/0.6828, allocations: 137 kB / 402.9 MB, free: 8.695 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.465e-05/0.6829, allocations: 25.7 kB / 402.9 MB, free: 8.664 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.672e-05/0.683, allocations: 158.6 kB / 403.1 MB, free: 8.508 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.217e-05/0.683, allocations: 19.73 kB / 403.1 MB, free: 8.488 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.945e-06/0.683, allocations: 4 kB / 403.1 MB, free: 8.484 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.6832, allocations: 318.8 kB / 403.4 MB, free: 8.164 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.802e-05/0.6833, allocations: 20 kB / 403.4 MB, free: 8.145 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.734e-05/0.6834, allocations: 23.98 kB / 403.4 MB, free: 8.121 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001104/0.6835, allocations: 49.7 kB / 403.5 MB, free: 8.066 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.6835, allocations: 7.875 kB / 403.5 MB, free: 8.059 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003202/0.6838, allocations: 131.3 kB / 403.6 MB, free: 7.918 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.412e-05/0.6839, allocations: 36.83 kB / 403.6 MB, free: 7.879 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.6839, allocations: 0 / 403.6 MB, free: 7.879 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.684, allocations: 7.984 kB / 403.7 MB, free: 7.871 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.538e-05/0.6841, allocations: 8 kB / 403.7 MB, free: 7.863 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.359e-05/0.6841, allocations: 3.953 kB / 403.7 MB, free: 7.859 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.899e-05/0.6842, allocations: 7.938 kB / 403.7 MB, free: 7.852 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.844e-05/0.6842, allocations: 4.062 kB / 403.7 MB, free: 7.848 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.888e-05/0.6843, allocations: 105 kB / 403.8 MB, free: 7.738 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.953e-05/0.6844, allocations: 11.91 kB / 403.8 MB, free: 7.727 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002836/0.6847, allocations: 85.75 kB / 403.9 MB, free: 7.641 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.702e-06/0.6847, allocations: 8 kB / 403.9 MB, free: 7.633 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.6847, allocations: 0 / 403.9 MB, free: 7.633 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.6847, allocations: 3.953 kB / 403.9 MB, free: 7.629 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005023/0.6852, allocations: 338.5 kB / 404.2 MB, free: 7.242 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.6852, allocations: 3.984 kB / 404.2 MB, free: 7.238 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.327e-05/0.6853, allocations: 8 kB / 404.2 MB, free: 7.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.938e-06/0.6853, allocations: 0 / 404.2 MB, free: 7.23 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.6854, allocations: 0 / 404.2 MB, free: 7.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.875e-06/0.6854, allocations: 7.953 kB / 404.2 MB, free: 7.223 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.6854, allocations: 4 kB / 404.2 MB, free: 7.219 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002549/0.6856, allocations: 175.4 kB / 404.4 MB, free: 7.031 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.713e-05/0.6857, allocations: 81.02 kB / 404.5 MB, free: 6.934 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.488e-05/0.6858, allocations: 8 kB / 404.5 MB, free: 6.926 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.185e-05/0.6859, allocations: 0 / 404.5 MB, free: 6.926 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.673e-05/0.6859, allocations: 11.94 kB / 404.5 MB, free: 6.914 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.686, allocations: 0 / 404.5 MB, free: 6.914 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001485/0.6861, allocations: 115.3 kB / 404.6 MB, free: 6.801 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6861, allocations: 4 kB / 404.6 MB, free: 6.797 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003755/0.6865, allocations: 31.94 kB / 404.7 MB, free: 6.766 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.001617/0.6881, allocations: 0.9534 MB / 405.6 MB, free: 5.84 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003318/0.6885, allocations: 111.4 kB / 405.7 MB, free: 5.719 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.6885, allocations: 0 / 405.7 MB, free: 5.719 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.679e-05/0.6886, allocations: 19.94 kB / 405.7 MB, free: 5.699 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003532/0.689, allocations: 19.94 kB / 405.8 MB, free: 5.68 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006779/0.6897, allocations: 197.6 kB / 406 MB, free: 5.441 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003343/0.69, allocations: 0.7004 MB / 406.7 MB, free: 4.715 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.908e-05/0.6901, allocations: 23.44 kB / 406.7 MB, free: 4.691 MB / 330.7 MB Notification: Performance of SimCode: time 9.92e-07/0.6902, allocations: 0 / 406.7 MB, free: 4.691 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_Test3CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test3CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test3CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test3FMU.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_Test3.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test3CalcHelperMain.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_Test3_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test3.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test3.fmu] Error 1