Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2D.Test5,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.045/2.045, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.831e-05/3.836e-05, allocations: 4 kB / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1096, allocations: 48.7 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4243/0.534, allocations: 74.47 MB / 396.3 MB, free: 15.46 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000359/0.5344, allocations: 67.97 kB / 396.4 MB, free: 15.39 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02623/0.5607, allocations: 5.176 MB / 401.6 MB, free: 10.22 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.404e-06/0.5607, allocations: 4 kB / 401.6 MB, free: 10.21 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.627e-05/0.5608, allocations: 8 kB / 401.6 MB, free: 10.21 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.001022/0.5618, allocations: 0.5653 MB / 402.1 MB, free: 9.594 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.745e-05/0.5619, allocations: 8.031 kB / 402.1 MB, free: 9.586 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.126e-05/0.562, allocations: 34.56 kB / 402.2 MB, free: 9.543 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001629/0.5622, allocations: 47.39 kB / 402.2 MB, free: 9.496 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008873/0.5631, allocations: 319.3 kB / 402.5 MB, free: 9.145 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.493e-05/0.5631, allocations: 0 / 402.5 MB, free: 9.145 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.68e-05/0.5632, allocations: 8 kB / 402.5 MB, free: 9.137 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001779/0.5633, allocations: 45.69 kB / 402.6 MB, free: 9.086 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/0.5634, allocations: 4 kB / 402.6 MB, free: 9.082 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.935e-05/0.5634, allocations: 4 kB / 402.6 MB, free: 9.078 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.5634, allocations: 0 / 402.6 MB, free: 9.078 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.68e-05/0.5636, allocations: 12 kB / 402.6 MB, free: 9.066 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001104/0.5647, allocations: 428.6 kB / 403 MB, free: 8.598 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003012/0.565, allocations: 46.56 kB / 403.1 MB, free: 8.543 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.262e-05/0.5651, allocations: 10.23 kB / 403.1 MB, free: 8.531 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.168e-05/0.5651, allocations: 4.062 kB / 403.1 MB, free: 8.527 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.083e-05/0.5652, allocations: 38.56 kB / 403.1 MB, free: 8.48 MB / 330.7 MB Notification: Performance of pre-optimization done (n=3): time 2.955e-06/0.5652, allocations: 0 / 403.1 MB, free: 8.48 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.000887/0.5661, allocations: 188.2 kB / 403.3 MB, free: 8.289 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.735e-05/0.5662, allocations: 55.41 kB / 403.4 MB, free: 8.223 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002821/0.569, allocations: 0.7615 MB / 404.1 MB, free: 7.449 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.173e-05/0.5691, allocations: 33.69 kB / 404.2 MB, free: 7.41 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002959/0.5694, allocations: 234.4 kB / 404.4 MB, free: 7.18 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.38e-05/0.5695, allocations: 15.81 kB / 404.4 MB, free: 7.164 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.038e-05/0.5695, allocations: 0 / 404.4 MB, free: 7.164 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.5697, allocations: 310.8 kB / 404.7 MB, free: 6.852 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.26e-05/0.5698, allocations: 12 kB / 404.7 MB, free: 6.84 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.79e-05/0.5698, allocations: 16 kB / 404.7 MB, free: 6.824 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001105/0.57, allocations: 45.69 kB / 404.8 MB, free: 6.773 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.57, allocations: 3.938 kB / 404.8 MB, free: 6.77 MB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000332/0.5703, allocations: 91.39 kB / 404.9 MB, free: 6.668 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.926e-05/0.5704, allocations: 33.7 kB / 404.9 MB, free: 6.629 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.5705, allocations: 7.891 kB / 404.9 MB, free: 6.621 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.5705, allocations: 0 / 404.9 MB, free: 6.621 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001969/0.5707, allocations: 15.98 kB / 404.9 MB, free: 6.605 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/0.5707, allocations: 0 / 404.9 MB, free: 6.605 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002224/0.571, allocations: 8 kB / 404.9 MB, free: 6.598 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.571, allocations: 7.938 kB / 404.9 MB, free: 6.59 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 5 * 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.0001112/0.5711, allocations: 101 kB / 405 MB, free: 6.484 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001932/0.5713, allocations: 47.44 kB / 405.1 MB, free: 6.438 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004446/0.5718, allocations: 120.9 kB / 405.2 MB, free: 6.312 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.784e-06/0.5718, allocations: 3.953 kB / 405.2 MB, free: 6.309 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.5719, allocations: 0 / 405.2 MB, free: 6.309 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.5719, allocations: 0 / 405.2 MB, free: 6.309 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001558/0.5735, allocations: 0.557 MB / 405.8 MB, free: 5.695 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.5735, allocations: 0 / 405.8 MB, free: 5.695 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001772/0.5737, allocations: 20.44 kB / 405.8 MB, free: 5.676 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.708e-06/0.5737, allocations: 3.953 kB / 405.8 MB, free: 5.672 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/0.5737, allocations: 3.984 kB / 405.8 MB, free: 5.668 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.747e-06/0.5738, allocations: 4 kB / 405.8 MB, free: 5.664 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.237e-06/0.5738, allocations: 0 / 405.8 MB, free: 5.664 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004216/0.5742, allocations: 195.1 kB / 406 MB, free: 5.457 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004072/0.5746, allocations: 160.5 kB / 406.1 MB, free: 5.281 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.553e-05/0.5748, allocations: 3.953 kB / 406.1 MB, free: 5.277 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002516/0.575, allocations: 4 kB / 406.2 MB, free: 5.273 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.298e-05/0.5751, allocations: 7.984 kB / 406.2 MB, free: 5.266 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.119e-05/0.5751, allocations: 0 / 406.2 MB, free: 5.266 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001706/0.5769, allocations: 0.6264 MB / 406.8 MB, free: 4.645 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.72e-07/0.5769, allocations: 0 / 406.8 MB, free: 4.645 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007322/0.5776, allocations: 59.94 kB / 406.8 MB, free: 4.586 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.001633/0.5793, allocations: 0.8549 MB / 407.7 MB, free: 3.754 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002571/0.5796, allocations: 83.41 kB / 407.8 MB, free: 3.66 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.5796, allocations: 0 / 407.8 MB, free: 3.66 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.919e-05/0.5797, allocations: 19.94 kB / 407.8 MB, free: 3.641 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005083/0.5802, allocations: 25.98 kB / 407.8 MB, free: 3.617 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002879/0.5831, allocations: 0.8354 MB / 408.7 MB, free: 2.738 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007524/0.5839, allocations: 0.8262 MB / 409.5 MB, free: 1.887 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004378/0.5844, allocations: 107.6 kB / 409.6 MB, free: 1.781 MB / 330.7 MB Notification: Performance of SimCode: time 1.153e-06/0.5844, allocations: 0 / 409.6 MB, free: 1.781 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_CombiTable2D_Test5CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test5CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test5CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test5FMU.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_CombiTable2D_Test5.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test5CalcHelperMain.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_CombiTable2D_Test5_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test5.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test5.fmu] Error 1