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.Test3.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.Test3,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.326/2.326, allocations: 235 MB / 248.1 MB, free: 14.6 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.495e-05/4.525e-05, allocations: 4 kB / 309.8 MB, free: 1.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4974/0.4975, allocations: 54.85 MB / 364.6 MB, free: 5.527 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1602/0.6577, allocations: 80.9 MB / 445.5 MB, free: 15.63 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003187/0.6581, allocations: 63.97 kB / 445.6 MB, free: 15.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02019/0.6783, allocations: 5.477 MB / 451.1 MB, free: 10.11 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.6784, allocations: 0 / 451.1 MB, free: 10.11 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.292e-05/0.6784, allocations: 7.984 kB / 451.1 MB, free: 10.1 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000847/0.6793, allocations: 0.5818 MB / 451.6 MB, free: 9.465 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.208e-05/0.6794, allocations: 8.031 kB / 451.7 MB, free: 9.457 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.026e-05/0.6794, allocations: 30.56 kB / 451.7 MB, free: 9.418 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001101/0.6795, allocations: 43.44 kB / 451.7 MB, free: 9.375 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006916/0.6802, allocations: 319.4 kB / 452 MB, free: 9.02 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.899e-06/0.6803, allocations: 0 / 452 MB, free: 9.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.236e-05/0.6803, allocations: 4 kB / 452 MB, free: 9.016 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001631/0.6805, allocations: 60.53 kB / 452.1 MB, free: 8.957 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.6805, allocations: 4.844 kB / 452.1 MB, free: 8.953 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.6805, allocations: 3.984 kB / 452.1 MB, free: 8.949 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.6805, allocations: 0 / 452.1 MB, free: 8.949 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.968e-05/0.6806, allocations: 23.94 kB / 452.1 MB, free: 8.926 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000914/0.6816, allocations: 420.7 kB / 452.5 MB, free: 8.465 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001203/0.6817, allocations: 38.58 kB / 452.6 MB, free: 8.418 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.599e-05/0.6818, allocations: 16.86 kB / 452.6 MB, free: 8.398 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.717e-05/0.6818, allocations: 0 / 452.6 MB, free: 8.398 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/0.6819, allocations: 42.58 kB / 452.6 MB, free: 8.348 MB / 378.7 MB Notification: Performance of pre-optimization done (n=4): time 1.693e-06/0.6819, allocations: 1.406 kB / 452.6 MB, free: 8.348 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0008323/0.6827, allocations: 212.2 kB / 452.9 MB, free: 8.133 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.597e-05/0.6828, allocations: 63.34 kB / 452.9 MB, free: 8.059 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002014/0.6848, allocations: 0.7615 MB / 453.7 MB, free: 7.293 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.232e-05/0.6849, allocations: 25.7 kB / 453.7 MB, free: 7.262 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002278/0.6852, allocations: 234.5 kB / 453.9 MB, free: 7.031 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.11e-05/0.6852, allocations: 23.64 kB / 454 MB, free: 7.008 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.105e-06/0.6852, allocations: 4 kB / 454 MB, free: 7.004 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.6854, allocations: 318.8 kB / 454.3 MB, free: 6.684 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.571e-05/0.6855, allocations: 12 kB / 454.3 MB, free: 6.672 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.528e-05/0.6856, allocations: 28.06 kB / 454.3 MB, free: 6.645 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.739e-05/0.6857, allocations: 45.69 kB / 454.4 MB, free: 6.594 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.6857, allocations: 0 / 454.4 MB, free: 6.594 MB / 378.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002548/0.686, allocations: 99.39 kB / 454.4 MB, free: 6.484 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.627e-05/0.686, allocations: 33.7 kB / 454.5 MB, free: 6.445 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.686, allocations: 3.938 kB / 454.5 MB, free: 6.441 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.6861, allocations: 0 / 454.5 MB, free: 6.441 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002343/0.6863, allocations: 27.92 kB / 454.5 MB, free: 6.414 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.09e-05/0.6863, allocations: 4 kB / 454.5 MB, free: 6.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002003/0.6866, allocations: 15.92 kB / 454.5 MB, free: 6.395 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/0.6866, allocations: 4 kB / 454.5 MB, free: 6.391 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 (8): * Single equations (assignments): 7 * 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.236e-05/0.6867, allocations: 111.3 kB / 454.6 MB, free: 6.277 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001268/0.6868, allocations: 43.44 kB / 454.7 MB, free: 6.234 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004113/0.6873, allocations: 133.5 kB / 454.8 MB, free: 6.094 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.6873, allocations: 0 / 454.8 MB, free: 6.094 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.6873, allocations: 7.938 kB / 454.8 MB, free: 6.086 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.6873, allocations: 4 kB / 454.8 MB, free: 6.082 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001276/0.6886, allocations: 0.5764 MB / 455.4 MB, free: 5.449 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.6886, allocations: 0 / 455.4 MB, free: 5.449 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002015/0.6889, allocations: 23.98 kB / 455.4 MB, free: 5.426 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.653e-06/0.6889, allocations: 0 / 455.4 MB, free: 5.426 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.293e-05/0.6889, allocations: 0 / 455.4 MB, free: 5.426 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.6889, allocations: 4 kB / 455.4 MB, free: 5.422 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.6889, allocations: 0 / 455.4 MB, free: 5.422 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003886/0.6893, allocations: 215.3 kB / 455.6 MB, free: 5.195 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003146/0.6897, allocations: 156.6 kB / 455.8 MB, free: 5.023 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.326e-05/0.6897, allocations: 0 / 455.8 MB, free: 5.023 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002243/0.69, allocations: 20.86 kB / 455.8 MB, free: 5.004 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.93e-05/0.6901, allocations: 4 kB / 455.8 MB, free: 5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.396e-05/0.6901, allocations: 4 kB / 455.8 MB, free: 4.996 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001285/0.6914, allocations: 0.6186 MB / 456.4 MB, free: 4.379 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.82e-07/0.6914, allocations: 0 / 456.4 MB, free: 4.379 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004646/0.6919, allocations: 56 kB / 456.5 MB, free: 4.324 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 (7): * Single equations (assignments): 7 * 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.001481/0.6934, allocations: 0.925 MB / 457.4 MB, free: 3.449 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002822/0.6937, allocations: 103.4 kB / 457.5 MB, free: 3.336 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/0.6937, allocations: 0 / 457.5 MB, free: 3.336 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.537e-05/0.6938, allocations: 35.86 kB / 457.6 MB, free: 3.301 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003856/0.6942, allocations: 18.09 kB / 457.6 MB, free: 3.281 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002237/0.6965, allocations: 0.851 MB / 458.4 MB, free: 2.383 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006167/0.6972, allocations: 0.8271 MB / 459.3 MB, free: 1.527 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003075/0.6975, allocations: 107.6 kB / 459.4 MB, free: 1.422 MB / 378.7 MB Notification: Performance of SimCode: time 1.172e-06/0.6975, allocations: 0 / 459.4 MB, free: 1.422 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_Test3CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test3CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test3CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test3FMU.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_Test3.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test3CalcHelperMain.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_Test3_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test3.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test3.fmu] Error 1