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.088/2.088, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.881e-05/4.918e-05, allocations: 8 kB / 273.2 MB, free: 0.625 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1096, allocations: 48.71 MB / 321.9 MB, free: 15.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.445/0.5547, allocations: 75.73 MB / 397.6 MB, free: 14.17 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003256/0.5551, allocations: 70.81 kB / 397.7 MB, free: 14.1 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02558/0.5807, allocations: 3.813 MB / 401.5 MB, free: 10.3 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.5807, allocations: 0 / 401.5 MB, free: 10.3 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.517e-05/0.5808, allocations: 4 kB / 401.5 MB, free: 10.29 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.0007888/0.5816, allocations: 408 kB / 401.9 MB, free: 9.844 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.555e-05/0.5817, allocations: 12.03 kB / 401.9 MB, free: 9.832 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.861e-05/0.5818, allocations: 34.56 kB / 401.9 MB, free: 9.789 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.423e-05/0.5818, allocations: 7.906 kB / 401.9 MB, free: 9.781 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003812/0.5822, allocations: 198.8 kB / 402.1 MB, free: 9.547 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.425e-05/0.5823, allocations: 0 / 402.1 MB, free: 9.547 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.801e-05/0.5823, allocations: 4 kB / 402.1 MB, free: 9.543 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001449/0.5825, allocations: 53.61 kB / 402.2 MB, free: 9.484 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.5825, allocations: 0 / 402.2 MB, free: 9.484 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.5825, allocations: 0 / 402.2 MB, free: 9.484 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.5825, allocations: 4 kB / 402.2 MB, free: 9.48 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.986e-05/0.5826, allocations: 8 kB / 402.2 MB, free: 9.473 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005373/0.5832, allocations: 292.8 kB / 402.5 MB, free: 9.137 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003025/0.5835, allocations: 47.03 kB / 402.5 MB, free: 9.082 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.47e-05/0.5836, allocations: 12.8 kB / 402.5 MB, free: 9.066 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/0.5836, allocations: 0 / 402.5 MB, free: 9.066 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001813/0.5838, allocations: 63.48 kB / 402.6 MB, free: 8.992 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.304e-06/0.5838, allocations: 0 / 402.6 MB, free: 8.992 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0006009/0.5844, allocations: 113.3 kB / 402.7 MB, free: 8.875 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.425e-05/0.5845, allocations: 55.34 kB / 402.8 MB, free: 8.809 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002139/0.5847, allocations: 137 kB / 402.9 MB, free: 8.664 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.612e-05/0.5848, allocations: 25.7 kB / 402.9 MB, free: 8.633 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.251e-05/0.5849, allocations: 158.6 kB / 403.1 MB, free: 8.477 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.788e-05/0.5849, allocations: 19.75 kB / 403.1 MB, free: 8.457 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.005e-06/0.585, allocations: 0 / 403.1 MB, free: 8.457 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.5851, allocations: 322.8 kB / 403.4 MB, free: 8.133 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.022e-05/0.5852, allocations: 24 kB / 403.4 MB, free: 8.109 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.214e-05/0.5853, allocations: 20 kB / 403.5 MB, free: 8.09 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001258/0.5855, allocations: 57.62 kB / 403.5 MB, free: 8.027 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.5855, allocations: 0 / 403.5 MB, free: 8.027 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003629/0.5859, allocations: 127.2 kB / 403.6 MB, free: 7.891 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.602e-05/0.5859, allocations: 37.69 kB / 403.7 MB, free: 7.848 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.586, allocations: 0 / 403.7 MB, free: 7.848 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.586, allocations: 0 / 403.7 MB, free: 7.848 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.5861, allocations: 8 kB / 403.7 MB, free: 7.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.5861, allocations: 7.953 kB / 403.7 MB, free: 7.832 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.543e-05/0.5862, allocations: 8 kB / 403.7 MB, free: 7.824 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/0.5863, allocations: 7.984 kB / 403.7 MB, free: 7.816 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.0001061/0.5864, allocations: 109 kB / 403.8 MB, free: 7.703 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.838e-05/0.5864, allocations: 4.047 kB / 403.8 MB, free: 7.699 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003297/0.5868, allocations: 97.69 kB / 403.9 MB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.5868, allocations: 0 / 403.9 MB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.5868, allocations: 0 / 403.9 MB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.5868, allocations: 7.953 kB / 403.9 MB, free: 7.594 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005213/0.5873, allocations: 334.6 kB / 404.2 MB, free: 7.211 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.5874, allocations: 4 kB / 404.3 MB, free: 7.207 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.842e-05/0.5875, allocations: 7.938 kB / 404.3 MB, free: 7.199 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.5875, allocations: 0 / 404.3 MB, free: 7.199 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.549e-05/0.5875, allocations: 4 kB / 404.3 MB, free: 7.195 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.159e-06/0.5875, allocations: 3.953 kB / 404.3 MB, free: 7.191 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.5875, allocations: 0 / 404.3 MB, free: 7.191 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002709/0.5878, allocations: 179.4 kB / 404.4 MB, free: 7 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.189e-05/0.5879, allocations: 85.02 kB / 404.5 MB, free: 6.898 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.174e-05/0.5879, allocations: 256 / 404.5 MB, free: 6.898 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001507/0.5881, allocations: 7.984 kB / 404.5 MB, free: 6.891 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.268e-05/0.5882, allocations: 7.953 kB / 404.5 MB, free: 6.883 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.5882, allocations: 4 kB / 404.5 MB, free: 6.879 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000143/0.5883, allocations: 114.4 kB / 404.7 MB, free: 6.77 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5883, allocations: 0 / 404.7 MB, free: 6.77 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004627/0.5888, allocations: 43.92 kB / 404.7 MB, free: 6.727 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.001541/0.5904, allocations: 0.9464 MB / 405.6 MB, free: 5.809 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002843/0.5907, allocations: 107.4 kB / 405.8 MB, free: 5.691 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.5907, allocations: 0 / 405.8 MB, free: 5.691 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.82e-05/0.5908, allocations: 23.92 kB / 405.8 MB, free: 5.668 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003352/0.5911, allocations: 23.88 kB / 405.8 MB, free: 5.645 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006336/0.5918, allocations: 185.6 kB / 406 MB, free: 5.418 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000362/0.5922, allocations: 0.7043 MB / 406.7 MB, free: 4.688 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.125e-05/0.5923, allocations: 31.42 kB / 406.7 MB, free: 4.656 MB / 330.7 MB Notification: Performance of SimCode: time 9.22e-07/0.5923, allocations: 0 / 406.7 MB, free: 4.656 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