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.Test7.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.Test7,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test7",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.559/2.559, allocations: 235 MB / 248.1 MB, free: 14.52 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.319e-05/3.321e-05, allocations: 4 kB / 309.8 MB, free: 1.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4351/0.4351, allocations: 54.85 MB / 364.6 MB, free: 5.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1597/0.5949, allocations: 80.79 MB / 445.4 MB, free: 15.73 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003371/0.5953, allocations: 67.95 kB / 445.5 MB, free: 15.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02534/0.6207, allocations: 5.193 MB / 450.7 MB, free: 10.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.6207, allocations: 0 / 450.7 MB, free: 10.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.021e-05/0.6208, allocations: 8 kB / 450.7 MB, free: 10.47 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.001061/0.6219, allocations: 0.5671 MB / 451.3 MB, free: 9.852 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.982e-05/0.622, allocations: 9.25 kB / 451.3 MB, free: 9.844 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.356e-05/0.622, allocations: 34.56 kB / 451.3 MB, free: 9.801 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001363/0.6222, allocations: 35.53 kB / 451.3 MB, free: 9.766 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008833/0.6231, allocations: 319.3 kB / 451.6 MB, free: 9.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.6231, allocations: 4 kB / 451.6 MB, free: 9.406 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.302e-05/0.6232, allocations: 4 kB / 451.6 MB, free: 9.402 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001544/0.6233, allocations: 41.09 kB / 451.7 MB, free: 9.359 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.6234, allocations: 0 / 451.7 MB, free: 9.359 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.6234, allocations: 3.953 kB / 451.7 MB, free: 9.355 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.6234, allocations: 0 / 451.7 MB, free: 9.355 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.32e-05/0.6235, allocations: 19.94 kB / 451.7 MB, free: 9.336 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001038/0.6246, allocations: 413.7 kB / 452.1 MB, free: 8.883 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.512e-05/0.6247, allocations: 26.53 kB / 452.1 MB, free: 8.848 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.683e-05/0.6247, allocations: 14.14 kB / 452.2 MB, free: 8.832 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.011e-05/0.6248, allocations: 3.984 kB / 452.2 MB, free: 8.828 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.537e-05/0.6249, allocations: 38.5 kB / 452.2 MB, free: 8.781 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 2.124e-06/0.6249, allocations: 0 / 452.2 MB, free: 8.781 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003184/0.6252, allocations: 85.12 kB / 452.3 MB, free: 8.691 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.723e-05/0.6253, allocations: 51.41 kB / 452.3 MB, free: 8.629 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002695/0.628, allocations: 0.7615 MB / 453.1 MB, free: 7.863 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.257e-05/0.628, allocations: 25.7 kB / 453.1 MB, free: 7.832 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002826/0.6283, allocations: 234.6 kB / 453.3 MB, free: 7.602 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.025e-05/0.6284, allocations: 3.906 kB / 453.3 MB, free: 7.598 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.56e-06/0.6284, allocations: 0 / 453.3 MB, free: 7.598 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.6285, allocations: 314.8 kB / 453.7 MB, free: 7.281 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.73e-05/0.6286, allocations: 4.031 kB / 453.7 MB, free: 7.277 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.554e-05/0.6287, allocations: 12.56 kB / 453.7 MB, free: 7.266 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.085e-05/0.6287, allocations: 37.77 kB / 453.7 MB, free: 7.223 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.6288, allocations: 0 / 453.7 MB, free: 7.223 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002056/0.629, allocations: 79.3 kB / 453.8 MB, free: 7.133 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.256e-05/0.629, allocations: 33.69 kB / 453.8 MB, free: 7.094 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.6291, allocations: 0 / 453.8 MB, free: 7.094 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.6291, allocations: 1.031 kB / 453.8 MB, free: 7.094 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.6293, allocations: 8 kB / 453.8 MB, free: 7.086 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.6293, allocations: 0 / 453.8 MB, free: 7.086 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000157/0.6294, allocations: 12 kB / 453.8 MB, free: 7.074 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.821e-05/0.6295, allocations: 4 kB / 453.8 MB, free: 7.07 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 (3): * Single equations (assignments): 2 * 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.0001017/0.6296, allocations: 112.8 kB / 454 MB, free: 6.953 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001843/0.6298, allocations: 47.39 kB / 454 MB, free: 6.906 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003198/0.6301, allocations: 96.42 kB / 454.1 MB, free: 6.801 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.6301, allocations: 0 / 454.1 MB, free: 6.801 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.6302, allocations: 0 / 454.1 MB, free: 6.801 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.6302, allocations: 0 / 454.1 MB, free: 6.801 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000637/0.6308, allocations: 325.4 kB / 454.4 MB, free: 6.434 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.6309, allocations: 0 / 454.4 MB, free: 6.434 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.039e-05/0.6309, allocations: 8 kB / 454.4 MB, free: 6.426 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.631, allocations: 0 / 454.4 MB, free: 6.426 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.631, allocations: 3.953 kB / 454.4 MB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.631, allocations: 0 / 454.4 MB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.631, allocations: 0 / 454.4 MB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003149/0.6313, allocations: 175.1 kB / 454.6 MB, free: 6.234 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003952/0.6318, allocations: 164.5 kB / 454.8 MB, free: 6.055 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.389e-05/0.6319, allocations: 0 / 454.8 MB, free: 6.055 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002174/0.6321, allocations: 11.89 kB / 454.8 MB, free: 6.043 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.214e-05/0.6322, allocations: 0 / 454.8 MB, free: 6.043 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.029e-05/0.6322, allocations: 4 kB / 454.8 MB, free: 6.039 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001632/0.6338, allocations: 0.6186 MB / 455.4 MB, free: 5.422 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.6338, allocations: 4 kB / 455.4 MB, free: 5.418 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000706/0.6346, allocations: 44 kB / 455.4 MB, free: 5.375 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 (2): * Single equations (assignments): 2 * 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.00155/0.6361, allocations: 0.8314 MB / 456.3 MB, free: 4.578 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001993/0.6364, allocations: 75.34 kB / 456.3 MB, free: 4.492 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.6364, allocations: 0 / 456.3 MB, free: 4.492 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.503e-05/0.6364, allocations: 8 kB / 456.4 MB, free: 4.484 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005043/0.637, allocations: 25.97 kB / 456.4 MB, free: 4.461 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002848/0.6398, allocations: 0.8191 MB / 457.2 MB, free: 3.602 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007782/0.6406, allocations: 0.8223 MB / 458 MB, free: 2.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003507/0.641, allocations: 111.6 kB / 458.1 MB, free: 2.641 MB / 378.7 MB Notification: Performance of SimCode: time 1.503e-06/0.641, allocations: 0 / 458.1 MB, free: 2.641 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_Test7CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test7CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test7CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test7FMU.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_Test7.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test7CalcHelperMain.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_Test7_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test7.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test7.fmu] Error 1