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.Test12.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.Test12,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.38/2.38, allocations: 235 MB / 248.1 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.408e-05/3.419e-05, allocations: 4 kB / 309.8 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.403/0.4031, allocations: 54.85 MB / 364.6 MB, free: 5.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1993/0.6025, allocations: 80.85 MB / 445.5 MB, free: 15.66 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002676/0.6028, allocations: 75.94 kB / 445.6 MB, free: 15.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01218/0.615, allocations: 2.799 MB / 448.4 MB, free: 12.81 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.615, allocations: 0 / 448.4 MB, free: 12.81 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.429e-05/0.6151, allocations: 8 kB / 448.4 MB, free: 12.8 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.0004976/0.6156, allocations: 388.6 kB / 448.7 MB, free: 12.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.6156, allocations: 8.031 kB / 448.8 MB, free: 12.37 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.204e-05/0.6157, allocations: 46.44 kB / 448.8 MB, free: 12.31 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.729e-05/0.6158, allocations: 11.86 kB / 448.8 MB, free: 12.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000269/0.616, allocations: 188 kB / 449 MB, free: 12.08 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.206e-06/0.6161, allocations: 4 kB / 449 MB, free: 12.07 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.268e-05/0.6161, allocations: 0 / 449 MB, free: 12.07 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001311/0.6162, allocations: 51.81 kB / 449 MB, free: 12.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.6163, allocations: 3.984 kB / 449 MB, free: 12.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.6163, allocations: 4 kB / 449.1 MB, free: 12.01 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.6163, allocations: 3.953 kB / 449.1 MB, free: 12.01 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.892e-05/0.6164, allocations: 12 kB / 449.1 MB, free: 12 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004813/0.6169, allocations: 284.8 kB / 449.3 MB, free: 11.67 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002227/0.6171, allocations: 42.56 kB / 449.4 MB, free: 11.62 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.555e-05/0.6172, allocations: 16.86 kB / 449.4 MB, free: 11.6 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.883e-05/0.6172, allocations: 0.9375 kB / 449.4 MB, free: 11.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.681e-05/0.6173, allocations: 34.52 kB / 449.4 MB, free: 11.55 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 2.034e-06/0.6173, allocations: 0 / 449.4 MB, free: 11.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005317/0.6178, allocations: 113.5 kB / 449.6 MB, free: 11.44 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.293e-05/0.6179, allocations: 55.41 kB / 449.6 MB, free: 11.37 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001912/0.6181, allocations: 141.1 kB / 449.7 MB, free: 11.22 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.893e-05/0.6181, allocations: 25.7 kB / 449.8 MB, free: 11.19 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.6182, allocations: 166.5 kB / 449.9 MB, free: 11.03 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.536e-05/0.6183, allocations: 11.8 kB / 449.9 MB, free: 11.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.132e-05/0.6183, allocations: 8 kB / 449.9 MB, free: 11.01 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.6184, allocations: 315.6 kB / 450.3 MB, free: 10.69 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.452e-05/0.6185, allocations: 12 kB / 450.3 MB, free: 10.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.285e-05/0.6186, allocations: 16 kB / 450.3 MB, free: 10.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.226e-05/0.6187, allocations: 49.69 kB / 450.3 MB, free: 10.61 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.6187, allocations: 0 / 450.3 MB, free: 10.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002008/0.6189, allocations: 91.89 kB / 450.4 MB, free: 10.51 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.695e-05/0.6189, allocations: 38.75 kB / 450.5 MB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.619, allocations: 0 / 450.5 MB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.619, allocations: 7.922 kB / 450.5 MB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001299/0.6191, allocations: 12.81 kB / 450.5 MB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.6191, allocations: 0 / 450.5 MB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.363e-05/0.6192, allocations: 15.98 kB / 450.5 MB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.423e-05/0.6193, allocations: 4 kB / 450.5 MB, free: 10.43 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 7.8e-05/0.6194, allocations: 104.9 kB / 450.6 MB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.52e-05/0.6194, allocations: 11.91 kB / 450.6 MB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002452/0.6197, allocations: 86.66 kB / 450.7 MB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.6197, allocations: 0 / 450.7 MB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.6197, allocations: 0 / 450.7 MB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.6197, allocations: 0 / 450.7 MB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004956/0.6202, allocations: 346.5 kB / 451 MB, free: 9.816 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.6202, allocations: 0 / 451 MB, free: 9.816 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001168/0.6204, allocations: 15.95 kB / 451.1 MB, free: 9.801 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.6204, allocations: 0 / 451.1 MB, free: 9.801 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.036e-05/0.6204, allocations: 0 / 451.1 MB, free: 9.801 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.6204, allocations: 0 / 451.1 MB, free: 9.801 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.6204, allocations: 3.984 kB / 451.1 MB, free: 9.797 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002128/0.6206, allocations: 183.3 kB / 451.2 MB, free: 9.602 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.979e-05/0.6207, allocations: 81.11 kB / 451.3 MB, free: 9.504 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.548e-05/0.6208, allocations: 3.953 kB / 451.3 MB, free: 9.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.6209, allocations: 7.984 kB / 451.3 MB, free: 9.492 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.691e-05/0.6209, allocations: 4 kB / 451.3 MB, free: 9.488 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.621, allocations: 0 / 451.3 MB, free: 9.488 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001351/0.6211, allocations: 125.2 kB / 451.5 MB, free: 9.367 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.6211, allocations: 0 / 451.5 MB, free: 9.367 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003115/0.6214, allocations: 31.92 kB / 451.5 MB, free: 9.336 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.001178/0.6226, allocations: 0.8749 MB / 452.4 MB, free: 8.512 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002131/0.6229, allocations: 83.41 kB / 452.4 MB, free: 8.418 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.6229, allocations: 0 / 452.4 MB, free: 8.418 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.83e-05/0.623, allocations: 27.98 kB / 452.5 MB, free: 8.391 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002532/0.6232, allocations: 8.984 kB / 452.5 MB, free: 8.383 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006388/0.6239, allocations: 219.9 kB / 452.7 MB, free: 8.125 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002895/0.6242, allocations: 0.6926 MB / 453.4 MB, free: 7.406 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.627e-05/0.6243, allocations: 27.42 kB / 453.4 MB, free: 7.379 MB / 378.7 MB Notification: Performance of SimCode: time 1.102e-06/0.6243, allocations: 0 / 453.4 MB, free: 7.379 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_Test12CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test12CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test12CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test12FMU.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_Test12.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test12CalcHelperMain.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_Test12_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test12.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test12.fmu] Error 1