Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable2D.Test19.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2D.Test19,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test19",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.4/2.4, allocations: 235 MB / 248.1 MB, free: 14.56 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.682e-05/3.691e-05, allocations: 4 kB / 309.8 MB, free: 1.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4707/0.4708, allocations: 54.85 MB / 364.6 MB, free: 5.523 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2602/0.7311, allocations: 81.9 MB / 446.5 MB, free: 14.61 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000345/0.7315, allocations: 71.97 kB / 446.6 MB, free: 14.54 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0445/0.7761, allocations: 5.59 MB / 452.2 MB, free: 8.969 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.775e-06/0.7761, allocations: 0 / 452.2 MB, free: 8.969 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.5e-05/0.7762, allocations: 4 kB / 452.2 MB, free: 8.965 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.001171/0.7774, allocations: 0.6432 MB / 452.8 MB, free: 8.246 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.371e-05/0.7775, allocations: 8.031 kB / 452.8 MB, free: 8.238 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.398e-05/0.7776, allocations: 38.56 kB / 452.9 MB, free: 8.191 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001369/0.7777, allocations: 39.52 kB / 452.9 MB, free: 8.152 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008514/0.7786, allocations: 291.9 kB / 453.2 MB, free: 7.824 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.309e-05/0.7786, allocations: 4 kB / 453.2 MB, free: 7.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.87e-05/0.7787, allocations: 8 kB / 453.2 MB, free: 7.812 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003077/0.779, allocations: 69.69 kB / 453.3 MB, free: 7.738 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.779, allocations: 0 / 453.3 MB, free: 7.738 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.658e-05/0.7791, allocations: 0 / 453.3 MB, free: 7.738 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.7791, allocations: 11.95 kB / 453.3 MB, free: 7.727 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002193/0.7793, allocations: 40 kB / 453.3 MB, free: 7.688 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001151/0.7805, allocations: 420.4 kB / 453.7 MB, free: 7.227 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002254/0.7808, allocations: 58.52 kB / 453.8 MB, free: 7.16 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.7809, allocations: 24.97 kB / 453.8 MB, free: 7.133 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.301e-05/0.781, allocations: 4 kB / 453.8 MB, free: 7.129 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.265e-05/0.781, allocations: 42.56 kB / 453.9 MB, free: 7.078 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 4.518e-06/0.7811, allocations: 0 / 453.9 MB, free: 7.078 MB / 378.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004584/0.7815, allocations: 89.41 kB / 454 MB, free: 6.984 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.659e-05/0.7816, allocations: 51.41 kB / 454 MB, free: 6.922 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001191/0.7828, allocations: 423.6 kB / 454.4 MB, free: 6.496 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.758e-05/0.7829, allocations: 25.7 kB / 454.4 MB, free: 6.465 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002204/0.7831, allocations: 206.5 kB / 454.6 MB, free: 6.262 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.27e-05/0.7832, allocations: 31.64 kB / 454.7 MB, free: 6.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.278e-05/0.7832, allocations: 0 / 454.7 MB, free: 6.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000187/0.7834, allocations: 322.8 kB / 455 MB, free: 5.906 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/0.7836, allocations: 16 kB / 455 MB, free: 5.891 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/0.7837, allocations: 25.03 kB / 455 MB, free: 5.867 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002597/0.784, allocations: 161 kB / 455.2 MB, free: 5.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.788e-06/0.784, allocations: 3.938 kB / 455.2 MB, free: 5.676 MB / 378.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0005428/0.7846, allocations: 230.7 kB / 455.4 MB, free: 5.414 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001327/0.7847, allocations: 136.5 kB / 455.6 MB, free: 5.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.7848, allocations: 7.984 kB / 455.6 MB, free: 5.242 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.7848, allocations: 0 / 455.6 MB, free: 5.242 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002216/0.7851, allocations: 12 kB / 455.6 MB, free: 5.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.7851, allocations: 0 / 455.6 MB, free: 5.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000193/0.7853, allocations: 15.84 kB / 455.6 MB, free: 5.215 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.841e-05/0.7854, allocations: 11.98 kB / 455.6 MB, free: 5.203 MB / 378.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 (11): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 5 * 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.0001176/0.7855, allocations: 104.9 kB / 455.7 MB, free: 5.094 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001445/0.7857, allocations: 35.58 kB / 455.7 MB, free: 5.059 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005347/0.7862, allocations: 120.5 kB / 455.9 MB, free: 4.938 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.7863, allocations: 0 / 455.9 MB, free: 4.938 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/0.7863, allocations: 3.938 kB / 455.9 MB, free: 4.934 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.7863, allocations: 0 / 455.9 MB, free: 4.934 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006659/0.787, allocations: 269.5 kB / 456.1 MB, free: 4.621 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.431e-06/0.787, allocations: 0 / 456.1 MB, free: 4.621 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002074/0.7873, allocations: 23.86 kB / 456.1 MB, free: 4.598 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.421e-05/0.7873, allocations: 3.953 kB / 456.1 MB, free: 4.594 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/0.7873, allocations: 0 / 456.1 MB, free: 4.594 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.179e-05/0.7874, allocations: 11.98 kB / 456.2 MB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.7874, allocations: 0 / 456.2 MB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005305/0.7879, allocations: 191.2 kB / 456.3 MB, free: 4.379 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002577/0.7882, allocations: 116.8 kB / 456.5 MB, free: 4.246 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.978e-05/0.7883, allocations: 4.141 kB / 456.5 MB, free: 4.242 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002504/0.7886, allocations: 12 kB / 456.5 MB, free: 4.23 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.226e-05/0.7887, allocations: 7.984 kB / 456.5 MB, free: 4.223 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.7887, allocations: 0 / 456.5 MB, free: 4.223 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009857/0.7897, allocations: 338.1 kB / 456.8 MB, free: 3.895 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.583e-06/0.7898, allocations: 0 / 456.8 MB, free: 3.895 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008079/0.7906, allocations: 59.78 kB / 456.9 MB, free: 3.836 MB / 378.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 (6): * Single equations (assignments): 6 * 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.003112/0.7937, allocations: 1.104 MB / 458 MB, free: 2.793 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006326/0.7944, allocations: 329 kB / 458.3 MB, free: 2.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.7945, allocations: 3.938 kB / 458.3 MB, free: 2.406 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001177/0.7946, allocations: 24 kB / 458.3 MB, free: 2.383 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007467/0.7954, allocations: 45.19 kB / 458.4 MB, free: 2.336 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002199/0.7976, allocations: 0.5101 MB / 458.9 MB, free: 1.785 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006272/0.7983, allocations: 0.7746 MB / 459.7 MB, free: 0.9844 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000284/0.7986, allocations: 79.41 kB / 459.7 MB, free: 0.9062 MB / 378.7 MB Notification: Performance of SimCode: time 2.204e-06/0.7986, allocations: 0 / 459.7 MB, free: 0.9062 MB / 378.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_2_cpp_ModelicaTest_Tables_CombiTable2D_Test19CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test19CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test19CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test19FMU.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_2_cpp_ModelicaTest_Tables_CombiTable2D_Test19.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test19CalcHelperMain.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.2/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.2/Resources/Library/x86_64-linux" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/x86_64-linux" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/linux64" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/linux64" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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_2_cpp_ModelicaTest_Tables_CombiTable2D_Test19_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test19.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test19.fmu] Error 1