Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable1D.Test27.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.CombiTable1D.Test27,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test27",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.313/2.313, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.572e-05/3.62e-05, allocations: 4 kB / 309.8 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.379/0.3791, allocations: 54.85 MB / 364.6 MB, free: 5.547 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1446/0.5238, allocations: 80.9 MB / 445.5 MB, free: 15.59 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002684/0.5241, allocations: 71.97 kB / 445.6 MB, free: 15.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01329/0.5374, allocations: 3.352 MB / 448.9 MB, free: 12.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.5375, allocations: 0 / 448.9 MB, free: 12.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.566e-05/0.5375, allocations: 4 kB / 448.9 MB, free: 12.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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005128/0.538, allocations: 428.7 kB / 449.4 MB, free: 11.72 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.5381, allocations: 8.031 kB / 449.4 MB, free: 11.71 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.006e-05/0.5381, allocations: 34.56 kB / 449.4 MB, free: 11.67 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.559e-05/0.5382, allocations: 11.91 kB / 449.4 MB, free: 11.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000315/0.5385, allocations: 208.2 kB / 449.6 MB, free: 11.42 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.5385, allocations: 7.984 kB / 449.6 MB, free: 11.41 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.117e-05/0.5386, allocations: 0 / 449.6 MB, free: 11.41 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001249/0.5387, allocations: 38.58 kB / 449.7 MB, free: 11.37 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/0.5387, allocations: 11.86 kB / 449.7 MB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.5388, allocations: 4 kB / 449.7 MB, free: 11.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.5388, allocations: 0.8438 kB / 449.7 MB, free: 11.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.701e-05/0.5388, allocations: 15.98 kB / 449.7 MB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000517/0.5394, allocations: 304.9 kB / 450 MB, free: 10.99 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002236/0.5396, allocations: 42.52 kB / 450 MB, free: 10.94 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.855e-05/0.5397, allocations: 12.86 kB / 450.1 MB, free: 10.92 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.076e-05/0.5397, allocations: 4 kB / 450.1 MB, free: 10.92 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.685e-05/0.5397, allocations: 38.5 kB / 450.1 MB, free: 10.88 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.673e-06/0.5398, allocations: 0 / 450.1 MB, free: 10.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005221/0.5403, allocations: 125.2 kB / 450.2 MB, free: 10.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.542e-05/0.5403, allocations: 51.97 kB / 450.3 MB, free: 10.68 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004018/0.5408, allocations: 238.5 kB / 450.5 MB, free: 10.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.5408, allocations: 25.7 kB / 450.5 MB, free: 10.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.356e-05/0.5409, allocations: 166.6 kB / 450.7 MB, free: 10.24 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.122e-05/0.5409, allocations: 27.72 kB / 450.7 MB, free: 10.21 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.921e-06/0.541, allocations: 0 / 450.7 MB, free: 10.21 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.5411, allocations: 315.9 kB / 451 MB, free: 9.895 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.458e-05/0.5412, allocations: 12 kB / 451 MB, free: 9.883 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.804e-05/0.5412, allocations: 23.88 kB / 451.1 MB, free: 9.859 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.226e-05/0.5413, allocations: 41.69 kB / 451.1 MB, free: 9.812 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.5413, allocations: 0 / 451.1 MB, free: 9.812 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.00019/0.5415, allocations: 99.34 kB / 451.2 MB, free: 9.703 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.464e-05/0.5416, allocations: 33.69 kB / 451.2 MB, free: 9.664 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.441e-06/0.5416, allocations: 0 / 451.2 MB, free: 9.664 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.5416, allocations: 4 kB / 451.2 MB, free: 9.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.5417, allocations: 12 kB / 451.2 MB, free: 9.648 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.5418, allocations: 0 / 451.2 MB, free: 9.648 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.719e-05/0.5419, allocations: 17.39 kB / 451.3 MB, free: 9.633 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.04e-05/0.5419, allocations: 0 / 451.3 MB, free: 9.633 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.848e-05/0.542, allocations: 105 kB / 451.4 MB, free: 9.523 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.27e-05/0.542, allocations: 19.7 kB / 451.4 MB, free: 9.504 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002359/0.5423, allocations: 90.66 kB / 451.5 MB, free: 9.406 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.5423, allocations: 4.141 kB / 451.5 MB, free: 9.402 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.5423, allocations: 3.984 kB / 451.5 MB, free: 9.398 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.5423, allocations: 0 / 451.5 MB, free: 9.398 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005727/0.5429, allocations: 378.4 kB / 451.8 MB, free: 8.973 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.5429, allocations: 1.438 kB / 451.8 MB, free: 8.973 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00011/0.5431, allocations: 15.98 kB / 451.9 MB, free: 8.957 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.5431, allocations: 4 kB / 451.9 MB, free: 8.953 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.648e-06/0.5431, allocations: 4 kB / 451.9 MB, free: 8.949 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.5431, allocations: 0 / 451.9 MB, free: 8.949 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.5431, allocations: 0 / 451.9 MB, free: 8.949 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002208/0.5434, allocations: 175.2 kB / 452 MB, free: 8.762 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.657e-05/0.5435, allocations: 97 kB / 452.1 MB, free: 8.648 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.798e-05/0.5435, allocations: 4.812 kB / 452.1 MB, free: 8.645 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/0.5436, allocations: 8 kB / 452.2 MB, free: 8.637 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.662e-05/0.5437, allocations: 11.92 kB / 452.2 MB, free: 8.625 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.662e-06/0.5437, allocations: 0 / 452.2 MB, free: 8.625 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002646/0.544, allocations: 197.1 kB / 452.4 MB, free: 8.434 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.544, allocations: 0 / 452.4 MB, free: 8.434 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003207/0.5443, allocations: 20 kB / 452.4 MB, free: 8.414 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.00119/0.5455, allocations: 0.8834 MB / 453.3 MB, free: 7.582 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001964/0.5457, allocations: 99.33 kB / 453.4 MB, free: 7.473 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.5458, allocations: 0 / 453.4 MB, free: 7.473 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.237e-05/0.5458, allocations: 20 kB / 453.4 MB, free: 7.453 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002394/0.5461, allocations: 15.56 kB / 453.4 MB, free: 7.438 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007851/0.5469, allocations: 289.3 kB / 453.7 MB, free: 7.117 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003528/0.5472, allocations: 0.7198 MB / 454.4 MB, free: 6.371 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.5474, allocations: 39.42 kB / 454.4 MB, free: 6.332 MB / 378.7 MB Notification: Performance of SimCode: time 7.11e-07/0.5474, allocations: 0 / 454.4 MB, free: 6.332 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_CombiTable1D_Test27CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test27CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test27CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test27FMU.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_CombiTable1D_Test27.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test27CalcHelperMain.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_CombiTable1D_Test27_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test27.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test27.fmu] Error 1