Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test14,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.034/2.034, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.172e-05/7.189e-05, allocations: 8 kB / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1315, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.413/0.5446, allocations: 77.47 MB / 399.3 MB, free: 12.34 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002978/0.5449, allocations: 75.12 kB / 399.4 MB, free: 12.27 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02043/0.5654, allocations: 3.949 MB / 403.4 MB, free: 8.332 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.5654, allocations: 0 / 403.4 MB, free: 8.332 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.529e-05/0.5655, allocations: 4 kB / 403.4 MB, free: 8.328 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.001221/0.5667, allocations: 0.546 MB / 403.9 MB, free: 7.719 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.054e-05/0.5668, allocations: 12.02 kB / 403.9 MB, free: 7.707 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.696e-05/0.5669, allocations: 34.56 kB / 404 MB, free: 7.664 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.906e-05/0.567, allocations: 11.91 kB / 404 MB, free: 7.652 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004177/0.5674, allocations: 227.5 kB / 404.2 MB, free: 7.387 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.96e-05/0.5674, allocations: 4 kB / 404.2 MB, free: 7.383 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.323e-05/0.5675, allocations: 15.94 kB / 404.2 MB, free: 7.367 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002724/0.5678, allocations: 85.66 kB / 404.3 MB, free: 7.277 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.5678, allocations: 0 / 404.3 MB, free: 7.277 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.283e-05/0.5678, allocations: 3.984 kB / 404.3 MB, free: 7.273 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.5679, allocations: 0 / 404.3 MB, free: 7.273 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001946/0.5681, allocations: 44 kB / 404.3 MB, free: 7.23 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001203/0.5693, allocations: 432.5 kB / 404.8 MB, free: 6.758 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005497/0.5699, allocations: 82.69 kB / 404.8 MB, free: 6.668 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001705/0.5701, allocations: 36.8 kB / 404.9 MB, free: 6.629 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.252e-05/0.5701, allocations: 8 kB / 404.9 MB, free: 6.621 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000363/0.5705, allocations: 99.3 kB / 405 MB, free: 6.512 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 4.058e-06/0.5705, allocations: 0 / 405 MB, free: 6.512 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0005692/0.5711, allocations: 121.4 kB / 405.1 MB, free: 6.387 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.186e-05/0.5712, allocations: 55.41 kB / 405.2 MB, free: 6.32 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003695/0.5716, allocations: 174.3 kB / 405.3 MB, free: 6.145 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.854e-05/0.5716, allocations: 33.7 kB / 405.4 MB, free: 6.105 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.5718, allocations: 182.4 kB / 405.5 MB, free: 5.926 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.719e-05/0.5719, allocations: 23.86 kB / 405.6 MB, free: 5.902 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.362e-05/0.5719, allocations: 4 kB / 405.6 MB, free: 5.898 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.5721, allocations: 323.1 kB / 405.9 MB, free: 5.574 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000206/0.5724, allocations: 36 kB / 405.9 MB, free: 5.539 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002607/0.5726, allocations: 61.7 kB / 406 MB, free: 5.473 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002547/0.5729, allocations: 95.33 kB / 406.1 MB, free: 5.367 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.685e-06/0.5729, allocations: 7.984 kB / 406.1 MB, free: 5.359 MB / 330.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000696/0.5736, allocations: 205 kB / 406.3 MB, free: 5.141 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.902e-05/0.5738, allocations: 67.39 kB / 406.3 MB, free: 5.062 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.5738, allocations: 0 / 406.3 MB, free: 5.062 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.118e-05/0.5738, allocations: 0 / 406.3 MB, free: 5.062 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004136/0.5742, allocations: 35.92 kB / 406.4 MB, free: 5.027 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.457e-05/0.5743, allocations: 4 kB / 406.4 MB, free: 5.023 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004523/0.5747, allocations: 47.84 kB / 406.4 MB, free: 4.977 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.664e-05/0.5748, allocations: 4 kB / 406.4 MB, free: 4.973 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,$PRE.trapezoid1.T_start,trapezoid1.T_start,$PRE.trapezoid1.count,trapezoid1.count,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 2 * 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.0001618/0.575, allocations: 113 kB / 406.5 MB, free: 4.855 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.656e-05/0.5751, allocations: 23.73 kB / 406.6 MB, free: 4.832 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005739/0.5756, allocations: 131.1 kB / 406.7 MB, free: 4.699 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.5757, allocations: 4 kB / 406.7 MB, free: 4.695 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/0.5757, allocations: 7.953 kB / 406.7 MB, free: 4.688 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/0.5757, allocations: 3.984 kB / 406.7 MB, free: 4.684 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000377/0.5761, allocations: 213.6 kB / 406.9 MB, free: 4.426 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.5761, allocations: 3.984 kB / 406.9 MB, free: 4.422 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004064/0.5766, allocations: 31.92 kB / 406.9 MB, free: 4.391 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.029e-05/0.5766, allocations: 4 kB / 407 MB, free: 4.387 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.979e-05/0.5766, allocations: 3.984 kB / 407 MB, free: 4.383 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.5766, allocations: 4 kB / 407 MB, free: 4.379 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.5767, allocations: 0 / 407 MB, free: 4.379 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007404/0.5774, allocations: 197.3 kB / 407.2 MB, free: 4.168 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001205/0.5776, allocations: 92.95 kB / 407.2 MB, free: 4.059 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.458e-05/0.5776, allocations: 4 kB / 407.2 MB, free: 4.055 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004254/0.5781, allocations: 32.03 kB / 407.3 MB, free: 4.023 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001275/0.5782, allocations: 15.97 kB / 407.3 MB, free: 4.008 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.218e-05/0.5783, allocations: 8 kB / 407.3 MB, free: 4 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002883/0.5786, allocations: 145.2 kB / 407.4 MB, free: 3.859 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.5786, allocations: 0 / 407.4 MB, free: 3.859 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006445/0.5793, allocations: 47.89 kB / 407.5 MB, free: 3.812 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (err1.y) * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,trapezoid1.T_start,trapezoid1.count,t_new.nextTimeEvent) * Number of discrete states: 2 (trapezoid1.count,t_new.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.002494/0.5818, allocations: 0.9521 MB / 408.4 MB, free: 2.887 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007302/0.5826, allocations: 210.7 kB / 408.6 MB, free: 2.656 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.5826, allocations: 0 / 408.6 MB, free: 2.656 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002469/0.5828, allocations: 47.88 kB / 408.7 MB, free: 2.609 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000618/0.5835, allocations: 36.06 kB / 408.7 MB, free: 2.57 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001549/0.5851, allocations: 299.2 kB / 409 MB, free: 2.234 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005017/0.5856, allocations: 0.7197 MB / 409.7 MB, free: 1.488 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000231/0.5859, allocations: 43.42 kB / 409.8 MB, free: 1.445 MB / 330.7 MB Notification: Performance of SimCode: time 1.543e-06/0.5859, allocations: 0 / 409.8 MB, free: 1.445 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_Test14CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test14CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test14CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test14FMU.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_Test14.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test14CalcHelperMain.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_Test14_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test14.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test14.fmu] Error 1