Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test49,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test49",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.151/2.151, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.258e-05/4.27e-05, allocations: 8 kB / 273.2 MB, free: 0.6211 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.108, allocations: 48.7 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4368/0.5449, allocations: 75.78 MB / 397.6 MB, free: 14.02 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002877/0.5452, allocations: 71.08 kB / 397.7 MB, free: 13.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01977/0.565, allocations: 4.338 MB / 402.1 MB, free: 9.625 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.5651, allocations: 0 / 402.1 MB, free: 9.625 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.942e-05/0.5651, allocations: 4 kB / 402.1 MB, free: 9.621 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.0006305/0.5657, allocations: 423.9 kB / 402.5 MB, free: 9.156 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/0.5658, allocations: 16.03 kB / 402.5 MB, free: 9.141 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.638e-05/0.5659, allocations: 34.55 kB / 402.5 MB, free: 9.098 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.447e-05/0.5659, allocations: 11.81 kB / 402.5 MB, free: 9.086 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003562/0.5663, allocations: 214.8 kB / 402.7 MB, free: 8.836 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/0.5663, allocations: 4 kB / 402.7 MB, free: 8.832 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.477e-05/0.5664, allocations: 4 kB / 402.8 MB, free: 8.828 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001288/0.5665, allocations: 41.69 kB / 402.8 MB, free: 8.781 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.5665, allocations: 0 / 402.8 MB, free: 8.781 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/0.5666, allocations: 0 / 402.8 MB, free: 8.781 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.5666, allocations: 8 kB / 402.8 MB, free: 8.773 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.171e-05/0.5667, allocations: 15.98 kB / 402.8 MB, free: 8.758 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005302/0.5672, allocations: 300.9 kB / 403.1 MB, free: 8.414 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000264/0.5675, allocations: 46.97 kB / 403.2 MB, free: 8.359 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.304e-05/0.5676, allocations: 12.86 kB / 403.2 MB, free: 8.344 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.577e-05/0.5676, allocations: 0 / 403.2 MB, free: 8.344 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001578/0.5677, allocations: 63.48 kB / 403.2 MB, free: 8.27 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.645e-06/0.5678, allocations: 0 / 403.2 MB, free: 8.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005161/0.5683, allocations: 121 kB / 403.3 MB, free: 8.145 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.802e-05/0.5684, allocations: 55.41 kB / 403.4 MB, free: 8.078 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004191/0.5688, allocations: 218.7 kB / 403.6 MB, free: 7.852 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.132e-05/0.5688, allocations: 29.7 kB / 403.6 MB, free: 7.816 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.5689, allocations: 166.6 kB / 403.8 MB, free: 7.652 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.452e-05/0.569, allocations: 15.8 kB / 403.8 MB, free: 7.637 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.08e-05/0.569, allocations: 8 kB / 403.8 MB, free: 7.629 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.5692, allocations: 318.8 kB / 404.1 MB, free: 7.309 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.092e-05/0.5693, allocations: 20 kB / 404.2 MB, free: 7.289 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.979e-05/0.5694, allocations: 27.92 kB / 404.2 MB, free: 7.262 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001146/0.5695, allocations: 57.62 kB / 404.2 MB, free: 7.199 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.5695, allocations: 0 / 404.2 MB, free: 7.199 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003073/0.5698, allocations: 123.3 kB / 404.4 MB, free: 7.066 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.001e-05/0.5699, allocations: 37.69 kB / 404.4 MB, free: 7.023 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.5699, allocations: 0 / 404.4 MB, free: 7.023 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/0.5699, allocations: 8 kB / 404.4 MB, free: 7.016 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.718e-05/0.57, allocations: 8 kB / 404.4 MB, free: 7.008 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.5701, allocations: 3.953 kB / 404.4 MB, free: 7.004 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.905e-05/0.5702, allocations: 0 / 404.4 MB, free: 7.004 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.369e-05/0.5702, allocations: 4 kB / 404.4 MB, free: 7 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.0001027/0.5703, allocations: 112.9 kB / 404.5 MB, free: 6.883 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.427e-05/0.5704, allocations: 19.8 kB / 404.6 MB, free: 6.863 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002992/0.5707, allocations: 82.81 kB / 404.6 MB, free: 6.777 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.283e-06/0.5707, allocations: 11.98 kB / 404.6 MB, free: 6.766 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.5707, allocations: 4.125 kB / 404.7 MB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.5707, allocations: 3.953 kB / 404.7 MB, free: 6.758 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006105/0.5714, allocations: 378.4 kB / 405 MB, free: 6.332 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.5714, allocations: 0 / 405 MB, free: 6.332 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.945e-05/0.5715, allocations: 12 kB / 405 MB, free: 6.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5e-06/0.5715, allocations: 0 / 405 MB, free: 6.32 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.5715, allocations: 0 / 405 MB, free: 6.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/0.5715, allocations: 3.953 kB / 405 MB, free: 6.316 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.5715, allocations: 4 kB / 405 MB, free: 6.312 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000265/0.5718, allocations: 179.3 kB / 405.2 MB, free: 6.121 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.782e-05/0.5719, allocations: 93 kB / 405.3 MB, free: 6.012 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.883e-05/0.572, allocations: 8 kB / 405.3 MB, free: 6.004 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.5721, allocations: 96 / 405.3 MB, free: 6.004 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.163e-05/0.5721, allocations: 11.89 kB / 405.3 MB, free: 5.992 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.5722, allocations: 0 / 405.3 MB, free: 5.992 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000291/0.5725, allocations: 197.1 kB / 405.5 MB, free: 5.801 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5725, allocations: 0 / 405.5 MB, free: 5.801 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004621/0.5729, allocations: 35.98 kB / 405.6 MB, free: 5.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.001587/0.5746, allocations: 0.9585 MB / 406.5 MB, free: 4.836 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003017/0.5749, allocations: 111.3 kB / 406.6 MB, free: 4.715 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.5749, allocations: 3.938 kB / 406.6 MB, free: 4.711 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.951e-05/0.575, allocations: 23.98 kB / 406.7 MB, free: 4.688 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003656/0.5754, allocations: 20.12 kB / 406.7 MB, free: 4.664 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008925/0.5763, allocations: 289 kB / 407 MB, free: 4.344 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005021/0.5768, allocations: 0.7121 MB / 407.7 MB, free: 3.605 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001388/0.577, allocations: 35.42 kB / 407.7 MB, free: 3.57 MB / 330.7 MB Notification: Performance of SimCode: time 1.122e-06/0.577, allocations: 0 / 407.7 MB, free: 3.57 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_Test49CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test49CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test49CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test49FMU.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_Test49.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test49CalcHelperMain.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_Test49_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test49.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test49.fmu] Error 1