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.Test5.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.Test5,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.363/2.363, allocations: 235 MB / 248.1 MB, free: 14.52 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.833e-05/3.849e-05, allocations: 4 kB / 309.8 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4757/0.4758, allocations: 54.85 MB / 364.6 MB, free: 5.547 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1709/0.6468, allocations: 80.91 MB / 445.5 MB, free: 15.59 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003328/0.6472, allocations: 71.97 kB / 445.6 MB, free: 15.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02034/0.6675, allocations: 5.332 MB / 450.9 MB, free: 10.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.6676, allocations: 0 / 450.9 MB, free: 10.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.358e-05/0.6676, allocations: 8 kB / 451 MB, free: 10.19 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.0009548/0.6686, allocations: 0.5654 MB / 451.5 MB, free: 9.574 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.6687, allocations: 8.031 kB / 451.5 MB, free: 9.566 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.669e-05/0.6687, allocations: 30.56 kB / 451.6 MB, free: 9.527 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001345/0.6689, allocations: 47.44 kB / 451.6 MB, free: 9.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006866/0.6696, allocations: 320.2 kB / 451.9 MB, free: 9.125 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.6696, allocations: 0 / 451.9 MB, free: 9.125 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.938e-05/0.6697, allocations: 8 kB / 451.9 MB, free: 9.117 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001491/0.6698, allocations: 45.64 kB / 452 MB, free: 9.066 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.6698, allocations: 3.391 kB / 452 MB, free: 9.066 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.874e-05/0.6699, allocations: 7.984 kB / 452 MB, free: 9.059 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.6699, allocations: 8.812 kB / 452 MB, free: 9.051 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.657e-05/0.67, allocations: 12 kB / 452 MB, free: 9.039 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008393/0.6708, allocations: 432.6 kB / 452.4 MB, free: 8.566 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002379/0.6711, allocations: 39.36 kB / 452.5 MB, free: 8.52 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.436e-05/0.6711, allocations: 16.94 kB / 452.5 MB, free: 8.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.612e-05/0.6712, allocations: 0 / 452.5 MB, free: 8.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.067e-05/0.6712, allocations: 34.56 kB / 452.5 MB, free: 8.457 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.553e-06/0.6712, allocations: 4 kB / 452.5 MB, free: 8.453 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0006581/0.6719, allocations: 184.1 kB / 452.7 MB, free: 8.266 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.961e-05/0.672, allocations: 51.41 kB / 452.7 MB, free: 8.203 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001961/0.674, allocations: 0.7615 MB / 453.5 MB, free: 7.438 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.551e-05/0.674, allocations: 29.7 kB / 453.5 MB, free: 7.402 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002342/0.6743, allocations: 239.2 kB / 453.8 MB, free: 7.168 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.982e-05/0.6743, allocations: 15.8 kB / 453.8 MB, free: 7.152 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.931e-06/0.6743, allocations: 4 kB / 453.8 MB, free: 7.148 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.6745, allocations: 310.8 kB / 454.1 MB, free: 6.836 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.958e-05/0.6746, allocations: 16 kB / 454.1 MB, free: 6.82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.855e-05/0.6746, allocations: 16.06 kB / 454.1 MB, free: 6.805 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.404e-05/0.6747, allocations: 45.64 kB / 454.2 MB, free: 6.754 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.6747, allocations: 0 / 454.2 MB, free: 6.754 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002222/0.675, allocations: 91.34 kB / 454.3 MB, free: 6.652 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.288e-05/0.675, allocations: 38.72 kB / 454.3 MB, free: 6.609 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/0.6751, allocations: 0 / 454.3 MB, free: 6.609 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.6751, allocations: 4 kB / 454.3 MB, free: 6.605 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001466/0.6752, allocations: 12 kB / 454.3 MB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.6753, allocations: 0 / 454.3 MB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001452/0.6754, allocations: 7.984 kB / 454.3 MB, free: 6.586 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.336e-05/0.6754, allocations: 7.938 kB / 454.3 MB, free: 6.578 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 (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 8.767e-05/0.6755, allocations: 108.9 kB / 454.4 MB, free: 6.465 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001346/0.6757, allocations: 43.44 kB / 454.5 MB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003387/0.676, allocations: 124.9 kB / 454.6 MB, free: 6.289 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.6761, allocations: 0 / 454.6 MB, free: 6.289 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.6761, allocations: 3.938 kB / 454.6 MB, free: 6.285 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.6761, allocations: 4 kB / 454.6 MB, free: 6.281 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001193/0.6773, allocations: 0.553 MB / 455.2 MB, free: 5.672 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.6773, allocations: 0 / 455.2 MB, free: 5.672 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001281/0.6774, allocations: 15.98 kB / 455.2 MB, free: 5.656 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.6775, allocations: 0 / 455.2 MB, free: 5.656 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.6775, allocations: 4 kB / 455.2 MB, free: 5.652 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/0.6775, allocations: 4.25 kB / 455.2 MB, free: 5.648 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.6775, allocations: 0 / 455.2 MB, free: 5.648 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003001/0.6778, allocations: 199 kB / 455.4 MB, free: 5.438 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000298/0.6781, allocations: 160.5 kB / 455.5 MB, free: 5.262 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.986e-05/0.6782, allocations: 0 / 455.5 MB, free: 5.262 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001597/0.6784, allocations: 12 kB / 455.5 MB, free: 5.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.327e-05/0.6784, allocations: 7.984 kB / 455.5 MB, free: 5.242 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.446e-06/0.6785, allocations: 0 / 455.5 MB, free: 5.242 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001178/0.6797, allocations: 0.6186 MB / 456.2 MB, free: 4.625 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6797, allocations: 0 / 456.2 MB, free: 4.625 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004435/0.6801, allocations: 63.92 kB / 456.2 MB, free: 4.562 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 (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.001411/0.6816, allocations: 0.9008 MB / 457.1 MB, free: 3.711 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002259/0.6818, allocations: 91.39 kB / 457.2 MB, free: 3.609 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.6818, allocations: 0 / 457.2 MB, free: 3.609 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.212e-05/0.6819, allocations: 23.94 kB / 457.2 MB, free: 3.586 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003716/0.6823, allocations: 18.03 kB / 457.3 MB, free: 3.57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002171/0.6845, allocations: 0.8432 MB / 458.1 MB, free: 2.684 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005745/0.6851, allocations: 0.8184 MB / 458.9 MB, free: 1.836 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002695/0.6854, allocations: 111.6 kB / 459 MB, free: 1.727 MB / 378.7 MB Notification: Performance of SimCode: time 1.423e-06/0.6854, allocations: 0 / 459 MB, free: 1.727 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_Test5CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test5CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test5CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_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_2_cpp_ModelicaTest_Tables_CombiTable2D_Test5.so OMCppModelicaTest_3_2_2_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.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_Test5_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test5.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test5.fmu] Error 1