Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test31,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test31",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.007/2.007, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.551e-05/4.614e-05, allocations: 4 kB / 273.1 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1215, allocations: 48.71 MB / 321.8 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4966/0.6182, allocations: 75.73 MB / 397.6 MB, free: 14.19 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.6186, allocations: 75.11 kB / 397.6 MB, free: 14.12 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.018/0.6366, allocations: 3.919 MB / 401.6 MB, free: 10.21 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.6366, allocations: 0 / 401.6 MB, free: 10.21 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.682e-05/0.6367, allocations: 4 kB / 401.6 MB, free: 10.2 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.0006143/0.6373, allocations: 416 kB / 402 MB, free: 9.746 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/0.6374, allocations: 8.031 kB / 402 MB, free: 9.738 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.021e-05/0.6374, allocations: 30.56 kB / 402 MB, free: 9.699 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.503e-05/0.6375, allocations: 15.84 kB / 402 MB, free: 9.684 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003262/0.6378, allocations: 198.9 kB / 402.2 MB, free: 9.449 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.878e-06/0.6379, allocations: 0 / 402.2 MB, free: 9.449 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.498e-05/0.6379, allocations: 11.91 kB / 402.2 MB, free: 9.438 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001344/0.638, allocations: 41.69 kB / 402.3 MB, free: 9.391 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.6381, allocations: 0 / 402.3 MB, free: 9.391 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/0.6381, allocations: 4 kB / 402.3 MB, free: 9.387 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.976e-06/0.6381, allocations: 4 kB / 402.3 MB, free: 9.383 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.167e-05/0.6382, allocations: 19.94 kB / 402.3 MB, free: 9.363 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004852/0.6387, allocations: 288.9 kB / 402.6 MB, free: 9.031 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002403/0.639, allocations: 43.03 kB / 402.6 MB, free: 8.98 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.959e-05/0.639, allocations: 12.86 kB / 402.6 MB, free: 8.965 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.556e-05/0.639, allocations: 4 kB / 402.6 MB, free: 8.961 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001521/0.6392, allocations: 55.5 kB / 402.7 MB, free: 8.895 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.475e-06/0.6392, allocations: 3.938 kB / 402.7 MB, free: 8.891 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004834/0.6397, allocations: 117.2 kB / 402.8 MB, free: 8.77 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.786e-05/0.6398, allocations: 51.41 kB / 402.9 MB, free: 8.707 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002341/0.64, allocations: 162.2 kB / 403 MB, free: 8.543 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.6401, allocations: 25.7 kB / 403 MB, free: 8.512 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.952e-05/0.6402, allocations: 170.5 kB / 403.2 MB, free: 8.344 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.665e-05/0.6402, allocations: 11.8 kB / 403.2 MB, free: 8.332 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.194e-05/0.6402, allocations: 8 kB / 403.2 MB, free: 8.324 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.6404, allocations: 314.8 kB / 403.5 MB, free: 8.008 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.563e-05/0.6405, allocations: 23.94 kB / 403.6 MB, free: 7.984 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.385e-05/0.6406, allocations: 24 kB / 403.6 MB, free: 7.961 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001078/0.6407, allocations: 53.62 kB / 403.6 MB, free: 7.902 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.6407, allocations: 0 / 403.6 MB, free: 7.902 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000294/0.641, allocations: 135.2 kB / 403.8 MB, free: 7.758 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.42e-05/0.6411, allocations: 33.7 kB / 403.8 MB, free: 7.719 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-06/0.6411, allocations: 4 kB / 403.8 MB, free: 7.715 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/0.6411, allocations: 3.953 kB / 403.8 MB, free: 7.711 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.6412, allocations: 11.98 kB / 403.8 MB, free: 7.699 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.6412, allocations: 0 / 403.8 MB, free: 7.699 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.824e-05/0.6413, allocations: 4 kB / 403.8 MB, free: 7.695 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.84e-05/0.6414, allocations: 4 kB / 403.8 MB, free: 7.691 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.435e-05/0.6415, allocations: 108.4 kB / 403.9 MB, free: 7.582 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.851e-05/0.6415, allocations: 7.906 kB / 403.9 MB, free: 7.574 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002846/0.6418, allocations: 97.69 kB / 404 MB, free: 7.477 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.6418, allocations: 0 / 404 MB, free: 7.477 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.6418, allocations: 3.953 kB / 404 MB, free: 7.473 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.6419, allocations: 96 / 404 MB, free: 7.473 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005212/0.6424, allocations: 350.5 kB / 404.4 MB, free: 7.074 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.6424, allocations: 0 / 404.4 MB, free: 7.074 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.422e-05/0.6425, allocations: 8.188 kB / 404.4 MB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.6425, allocations: 3.938 kB / 404.4 MB, free: 7.062 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.774e-05/0.6425, allocations: 11.95 kB / 404.4 MB, free: 7.051 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.6425, allocations: 4.156 kB / 404.4 MB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.6425, allocations: 3.984 kB / 404.4 MB, free: 7.043 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002469/0.6428, allocations: 167.5 kB / 404.6 MB, free: 6.863 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.097e-05/0.6429, allocations: 89.02 kB / 404.7 MB, free: 6.758 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.558e-05/0.6429, allocations: 3.984 kB / 404.7 MB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.492e-05/0.643, allocations: 3.953 kB / 404.7 MB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.622e-05/0.6431, allocations: 8 kB / 404.7 MB, free: 6.742 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.437e-05/0.6431, allocations: 8 kB / 404.7 MB, free: 6.734 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001667/0.6433, allocations: 123.8 kB / 404.8 MB, free: 6.613 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6433, allocations: 0 / 404.8 MB, free: 6.613 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00037/0.6437, allocations: 39.94 kB / 404.9 MB, free: 6.574 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.001555/0.6453, allocations: 0.9517 MB / 405.8 MB, free: 5.652 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003018/0.6456, allocations: 115.3 kB / 405.9 MB, free: 5.527 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.6456, allocations: 0 / 405.9 MB, free: 5.527 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.751e-05/0.6457, allocations: 16 kB / 405.9 MB, free: 5.512 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003253/0.646, allocations: 15.94 kB / 405.9 MB, free: 5.496 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007112/0.6468, allocations: 229.2 kB / 406.2 MB, free: 5.23 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003623/0.6471, allocations: 0.7072 MB / 406.9 MB, free: 4.5 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.668e-05/0.6472, allocations: 27.36 kB / 406.9 MB, free: 4.473 MB / 330.7 MB Notification: Performance of SimCode: time 9.42e-07/0.6473, allocations: 0 / 406.9 MB, free: 4.473 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_Test31CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test31CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test31CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test31FMU.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_Test31.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test31CalcHelperMain.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_Test31_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test31.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test31.fmu] Error 1