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.Test6.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.Test6,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test6",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.262/2.262, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.488e-05/3.502e-05, allocations: 0 / 309.8 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4159/0.416, allocations: 54.84 MB / 364.6 MB, free: 5.566 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1518/0.5678, allocations: 81.01 MB / 445.6 MB, free: 15.46 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002745/0.5681, allocations: 72.61 kB / 445.7 MB, free: 15.39 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01466/0.5828, allocations: 3.465 MB / 449.2 MB, free: 11.94 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5829, allocations: 0 / 449.2 MB, free: 11.94 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.667e-05/0.5829, allocations: 4.594 kB / 449.2 MB, free: 11.94 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005556/0.5835, allocations: 423.9 kB / 449.6 MB, free: 11.47 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/0.5835, allocations: 12.03 kB / 449.6 MB, free: 11.46 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.624e-05/0.5836, allocations: 34.55 kB / 449.6 MB, free: 11.42 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.108e-05/0.5836, allocations: 15.77 kB / 449.6 MB, free: 11.4 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003185/0.584, allocations: 206.8 kB / 449.8 MB, free: 11.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.465e-05/0.584, allocations: 4 kB / 449.9 MB, free: 11.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.96e-05/0.584, allocations: 4.734 kB / 449.9 MB, free: 11.15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002016/0.5843, allocations: 79.34 kB / 449.9 MB, free: 11.06 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.5843, allocations: 1.688 kB / 449.9 MB, free: 11.06 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.5843, allocations: 0 / 449.9 MB, free: 11.06 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.5843, allocations: 3.953 kB / 449.9 MB, free: 11.06 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00011/0.5844, allocations: 31.92 kB / 450 MB, free: 11.03 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006515/0.5851, allocations: 401 kB / 450.4 MB, free: 10.58 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003763/0.5855, allocations: 85.16 kB / 450.4 MB, free: 10.48 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.971e-05/0.5856, allocations: 25.72 kB / 450.5 MB, free: 10.45 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.273e-05/0.5856, allocations: 7.953 kB / 450.5 MB, free: 10.44 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/0.5857, allocations: 38.64 kB / 450.5 MB, free: 10.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 2.104e-06/0.5857, allocations: 3.938 kB / 450.5 MB, free: 10.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0008098/0.5865, allocations: 205.2 kB / 450.7 MB, free: 10.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.965e-05/0.5866, allocations: 81.11 kB / 450.8 MB, free: 10.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003234/0.5869, allocations: 194.4 kB / 451 MB, free: 9.883 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.019e-05/0.587, allocations: 33.7 kB / 451 MB, free: 9.844 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.353e-05/0.5871, allocations: 158.6 kB / 451.2 MB, free: 9.688 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.472e-05/0.5871, allocations: 35.55 kB / 451.2 MB, free: 9.652 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.056e-05/0.5872, allocations: 4 kB / 451.2 MB, free: 9.648 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.5873, allocations: 314.8 kB / 451.5 MB, free: 9.332 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.993e-05/0.5874, allocations: 28.83 kB / 451.6 MB, free: 9.305 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.423e-05/0.5875, allocations: 24 kB / 451.6 MB, free: 9.281 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001163/0.5876, allocations: 58.45 kB / 451.6 MB, free: 9.219 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.5877, allocations: 0 / 451.6 MB, free: 9.219 MB / 378.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003025/0.588, allocations: 144 kB / 451.8 MB, free: 9.066 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.123e-05/0.588, allocations: 33.69 kB / 451.8 MB, free: 9.027 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.5881, allocations: 4 kB / 451.8 MB, free: 9.023 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.5881, allocations: 0 / 451.8 MB, free: 9.023 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001896/0.5883, allocations: 27.97 kB / 451.8 MB, free: 8.996 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.5883, allocations: 0.8438 kB / 451.8 MB, free: 8.996 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.704e-05/0.5884, allocations: 4 kB / 451.8 MB, free: 8.992 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.434e-05/0.5884, allocations: 4 kB / 451.8 MB, free: 8.988 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 (11): * Single equations (assignments): 10 * 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.821e-05/0.5885, allocations: 112.9 kB / 452 MB, free: 8.871 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.161e-05/0.5886, allocations: 15.86 kB / 452 MB, free: 8.855 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003926/0.589, allocations: 130.5 kB / 452.1 MB, free: 8.723 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.589, allocations: 7.938 kB / 452.1 MB, free: 8.715 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.5891, allocations: 0 / 452.1 MB, free: 8.715 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.5891, allocations: 0 / 452.1 MB, free: 8.715 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009534/0.59, allocations: 0.5108 MB / 452.6 MB, free: 8.145 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.5901, allocations: 4.031 kB / 452.6 MB, free: 8.141 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001769/0.5903, allocations: 23.98 kB / 452.6 MB, free: 8.117 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.024e-06/0.5903, allocations: 0 / 452.6 MB, free: 8.117 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.5903, allocations: 4 kB / 452.7 MB, free: 8.113 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.414e-05/0.5903, allocations: 7.938 kB / 452.7 MB, free: 8.105 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.5903, allocations: 3.938 kB / 452.7 MB, free: 8.102 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003811/0.5907, allocations: 310.8 kB / 453 MB, free: 7.766 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.435e-05/0.5908, allocations: 97 kB / 453.1 MB, free: 7.652 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.791e-05/0.5909, allocations: 256 / 453.1 MB, free: 7.652 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001628/0.5911, allocations: 8 kB / 453.1 MB, free: 7.645 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.369e-05/0.5911, allocations: 19.94 kB / 453.1 MB, free: 7.625 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/0.5912, allocations: 7.938 kB / 453.1 MB, free: 7.617 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002372/0.5914, allocations: 163.9 kB / 453.3 MB, free: 7.457 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5914, allocations: 0 / 453.3 MB, free: 7.457 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003948/0.5918, allocations: 28 kB / 453.3 MB, free: 7.43 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * 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.001457/0.5933, allocations: 1.158 MB / 454.4 MB, free: 6.309 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003098/0.5936, allocations: 123.3 kB / 454.6 MB, free: 6.176 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.5936, allocations: 0 / 454.6 MB, free: 6.176 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001175/0.5938, allocations: 39.92 kB / 454.6 MB, free: 6.137 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003262/0.5941, allocations: 8 kB / 454.6 MB, free: 6.129 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009329/0.5951, allocations: 314.3 kB / 454.9 MB, free: 5.777 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003845/0.5955, allocations: 0.716 MB / 455.6 MB, free: 5.035 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.5956, allocations: 39.42 kB / 455.7 MB, free: 4.996 MB / 378.7 MB Notification: Performance of SimCode: time 9.41e-07/0.5956, allocations: 0 / 455.7 MB, free: 4.996 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_Test6CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test6CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test6CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test6FMU.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_Test6.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test6CalcHelperMain.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_Test6_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test6.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test6.fmu] Error 1