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.Test24.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.Test24,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test24",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.442/2.442, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.645e-05/3.664e-05, allocations: 7.984 kB / 309.8 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4584/0.4585, allocations: 54.85 MB / 364.6 MB, free: 5.414 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1545/0.613, allocations: 80.89 MB / 445.5 MB, free: 15.49 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002784/0.6134, allocations: 75.95 kB / 445.6 MB, free: 15.42 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01235/0.6257, allocations: 2.872 MB / 448.5 MB, free: 12.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.6258, allocations: 0 / 448.5 MB, free: 12.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.467e-05/0.6258, allocations: 4 kB / 448.5 MB, free: 12.57 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.0005488/0.6264, allocations: 415.9 kB / 448.9 MB, free: 12.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.6264, allocations: 8.031 kB / 448.9 MB, free: 12.1 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.257e-05/0.6265, allocations: 34.56 kB / 448.9 MB, free: 12.06 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.265e-05/0.6265, allocations: 7.906 kB / 448.9 MB, free: 12.05 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002444/0.6268, allocations: 183.9 kB / 449.1 MB, free: 11.83 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.615e-06/0.6268, allocations: 0 / 449.1 MB, free: 11.83 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.838e-05/0.6269, allocations: 4 kB / 449.1 MB, free: 11.83 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001414/0.627, allocations: 49.62 kB / 449.2 MB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/0.627, allocations: 7.938 kB / 449.2 MB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/0.6271, allocations: 3.953 kB / 449.2 MB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.6271, allocations: 0 / 449.2 MB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.29e-05/0.6272, allocations: 23.28 kB / 449.2 MB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004376/0.6276, allocations: 292.7 kB / 449.5 MB, free: 11.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001073/0.6277, allocations: 43.59 kB / 449.5 MB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.39e-05/0.6278, allocations: 12.86 kB / 449.5 MB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/0.6278, allocations: 4 kB / 449.5 MB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.26e-05/0.6279, allocations: 34.64 kB / 449.6 MB, free: 11.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=4): time 1.784e-06/0.6279, allocations: 0 / 449.6 MB, free: 11.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0006271/0.6285, allocations: 137.3 kB / 449.7 MB, free: 11.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.6286, allocations: 51.41 kB / 449.7 MB, free: 11.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000182/0.6288, allocations: 146.4 kB / 449.9 MB, free: 10.94 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.183e-05/0.6288, allocations: 25.7 kB / 449.9 MB, free: 10.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.656e-05/0.6289, allocations: 158.5 kB / 450.1 MB, free: 10.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.129e-05/0.629, allocations: 23.66 kB / 450.1 MB, free: 10.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.254e-06/0.629, allocations: 4 kB / 450.1 MB, free: 10.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.6291, allocations: 315.5 kB / 450.4 MB, free: 10.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.481e-05/0.6292, allocations: 20 kB / 450.4 MB, free: 10.39 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.774e-05/0.6292, allocations: 20 kB / 450.4 MB, free: 10.37 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.088e-05/0.6293, allocations: 41.77 kB / 450.5 MB, free: 10.32 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.259e-06/0.6294, allocations: 3.953 kB / 450.5 MB, free: 10.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002119/0.6296, allocations: 107.5 kB / 450.6 MB, free: 10.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.805e-05/0.6296, allocations: 33.69 kB / 450.6 MB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.6296, allocations: 0.75 kB / 450.6 MB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.6297, allocations: 11.98 kB / 450.6 MB, free: 10.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001968/0.6299, allocations: 19.98 kB / 450.7 MB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.6299, allocations: 0 / 450.7 MB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001111/0.63, allocations: 15.98 kB / 450.7 MB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.63, allocations: 320 / 450.7 MB, free: 10.12 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 7.684e-05/0.6301, allocations: 109 kB / 450.8 MB, free: 10 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.338e-05/0.6302, allocations: 19.8 kB / 450.8 MB, free: 9.984 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002561/0.6305, allocations: 98.97 kB / 450.9 MB, free: 9.879 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.6305, allocations: 0 / 450.9 MB, free: 9.879 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.6305, allocations: 0 / 450.9 MB, free: 9.879 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.6305, allocations: 0 / 450.9 MB, free: 9.879 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005148/0.631, allocations: 354.5 kB / 451.2 MB, free: 9.477 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.631, allocations: 0 / 451.2 MB, free: 9.477 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001716/0.6312, allocations: 31.92 kB / 451.3 MB, free: 9.445 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.6312, allocations: 0 / 451.3 MB, free: 9.445 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.6313, allocations: 0.8438 kB / 451.3 MB, free: 9.445 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.053e-06/0.6313, allocations: 0 / 451.3 MB, free: 9.445 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.6313, allocations: 4 kB / 451.3 MB, free: 9.441 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002282/0.6315, allocations: 179.4 kB / 451.5 MB, free: 9.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.165e-05/0.6316, allocations: 85.02 kB / 451.5 MB, free: 9.148 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.343e-05/0.6316, allocations: 0 / 451.5 MB, free: 9.148 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000149/0.6318, allocations: 19.98 kB / 451.6 MB, free: 9.129 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.834e-05/0.6319, allocations: 11.98 kB / 451.6 MB, free: 9.117 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.909e-05/0.6319, allocations: 0 / 451.6 MB, free: 9.117 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001274/0.6321, allocations: 120.3 kB / 451.7 MB, free: 9.004 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6321, allocations: 0 / 451.7 MB, free: 9.004 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003142/0.6324, allocations: 23.94 kB / 451.7 MB, free: 8.98 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.001173/0.6336, allocations: 0.8833 MB / 452.6 MB, free: 8.148 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002327/0.6338, allocations: 103.3 kB / 452.7 MB, free: 8.035 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.6338, allocations: 0 / 452.7 MB, free: 8.035 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.818e-05/0.6339, allocations: 24 kB / 452.7 MB, free: 8.012 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00024/0.6342, allocations: 7.984 kB / 452.7 MB, free: 8.004 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006524/0.6349, allocations: 216.3 kB / 452.9 MB, free: 7.746 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003088/0.6352, allocations: 0.7082 MB / 453.6 MB, free: 7.012 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.986e-05/0.6353, allocations: 27.42 kB / 453.7 MB, free: 6.988 MB / 378.7 MB Notification: Performance of SimCode: time 1.012e-06/0.6353, allocations: 0 / 453.7 MB, free: 6.988 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_Test24CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test24CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test24CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test24FMU.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_Test24.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test24CalcHelperMain.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_Test24_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test24.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test24.fmu] Error 1