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.Test29.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.Test29,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test29",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.476/2.476, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.586e-05/4.605e-05, allocations: 7.984 kB / 309.8 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4019/0.402, allocations: 54.85 MB / 364.6 MB, free: 5.543 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.149/0.5511, allocations: 80.88 MB / 445.5 MB, free: 15.58 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002705/0.5515, allocations: 72.8 kB / 445.6 MB, free: 15.51 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0128/0.5643, allocations: 3.018 MB / 448.6 MB, free: 12.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5643, allocations: 0 / 448.6 MB, free: 12.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.531e-05/0.5644, allocations: 0 / 448.6 MB, free: 12.52 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.0006713/0.5651, allocations: 427.2 kB / 449 MB, free: 12.05 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/0.5651, allocations: 8.031 kB / 449 MB, free: 12.05 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.183e-05/0.5652, allocations: 38.55 kB / 449.1 MB, free: 12 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.883e-05/0.5652, allocations: 8.469 kB / 449.1 MB, free: 11.99 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002818/0.5655, allocations: 191.5 kB / 449.3 MB, free: 11.76 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.5656, allocations: 8 kB / 449.3 MB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.078e-05/0.5656, allocations: 0 / 449.3 MB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001436/0.5658, allocations: 49.69 kB / 449.3 MB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.5658, allocations: 11.88 kB / 449.3 MB, free: 11.69 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.297e-05/0.5658, allocations: 4.703 kB / 449.3 MB, free: 11.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.5658, allocations: 0 / 449.3 MB, free: 11.69 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.474e-05/0.5659, allocations: 16 kB / 449.3 MB, free: 11.67 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004526/0.5664, allocations: 292.8 kB / 449.6 MB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001083/0.5665, allocations: 34.53 kB / 449.7 MB, free: 11.29 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.533e-05/0.5666, allocations: 24.89 kB / 449.7 MB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.844e-05/0.5666, allocations: 3.984 kB / 449.7 MB, free: 11.26 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.844e-05/0.5667, allocations: 30.56 kB / 449.7 MB, free: 11.22 MB / 378.7 MB Notification: Performance of pre-optimization done (n=4): time 1.763e-06/0.5667, allocations: 1.688 kB / 449.7 MB, free: 11.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.000643/0.5673, allocations: 145.3 kB / 449.9 MB, free: 11.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.772e-05/0.5674, allocations: 59.39 kB / 449.9 MB, free: 11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000256/0.5676, allocations: 178.2 kB / 450.1 MB, free: 10.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.785e-05/0.5677, allocations: 29.7 kB / 450.1 MB, free: 10.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.012e-05/0.5678, allocations: 162.5 kB / 450.3 MB, free: 10.62 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.674e-05/0.5678, allocations: 27.64 kB / 450.3 MB, free: 10.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.588e-06/0.5678, allocations: 0 / 450.3 MB, free: 10.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.568, allocations: 314.8 kB / 450.6 MB, free: 10.28 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.535e-05/0.568, allocations: 20 kB / 450.6 MB, free: 10.26 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.5e-05/0.5681, allocations: 16 kB / 450.7 MB, free: 10.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.9e-05/0.5682, allocations: 45.7 kB / 450.7 MB, free: 10.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/0.5682, allocations: 3.953 kB / 450.7 MB, free: 10.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002162/0.5684, allocations: 107.3 kB / 450.8 MB, free: 10.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.621e-05/0.5685, allocations: 33.69 kB / 450.8 MB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.5685, allocations: 0 / 450.8 MB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.5685, allocations: 4 kB / 450.8 MB, free: 10.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001984/0.5687, allocations: 19.98 kB / 450.9 MB, free: 10.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.066e-05/0.5688, allocations: 0.6562 kB / 450.9 MB, free: 10.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001425/0.5689, allocations: 19.98 kB / 450.9 MB, free: 9.992 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.27e-05/0.569, allocations: 0 / 450.9 MB, free: 9.992 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 8.364e-05/0.5691, allocations: 109 kB / 451 MB, free: 9.879 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.889e-05/0.5691, allocations: 11.86 kB / 451 MB, free: 9.867 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002712/0.5694, allocations: 98.44 kB / 451.1 MB, free: 9.762 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.5694, allocations: 0 / 451.1 MB, free: 9.762 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.5694, allocations: 5.031 kB / 451.1 MB, free: 9.758 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.5694, allocations: 0 / 451.1 MB, free: 9.758 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005445/0.57, allocations: 370.6 kB / 451.5 MB, free: 9.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.57, allocations: 144 / 451.5 MB, free: 9.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001682/0.5702, allocations: 27.92 kB / 451.5 MB, free: 9.312 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.5702, allocations: 3.984 kB / 451.5 MB, free: 9.309 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.452e-05/0.5702, allocations: 4 kB / 451.5 MB, free: 9.305 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.069e-06/0.5703, allocations: 4 kB / 451.5 MB, free: 9.301 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.5703, allocations: 4 kB / 451.5 MB, free: 9.297 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002325/0.5705, allocations: 175.4 kB / 451.7 MB, free: 9.109 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.598e-05/0.5706, allocations: 93 kB / 451.8 MB, free: 9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.651e-05/0.5706, allocations: 3.938 kB / 451.8 MB, free: 8.996 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001506/0.5708, allocations: 15.98 kB / 451.8 MB, free: 8.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.659e-05/0.5709, allocations: 11.98 kB / 451.8 MB, free: 8.969 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.026e-05/0.5709, allocations: 4 kB / 451.8 MB, free: 8.965 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001741/0.5711, allocations: 135.3 kB / 451.9 MB, free: 8.832 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5711, allocations: 0 / 451.9 MB, free: 8.832 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003231/0.5714, allocations: 27.98 kB / 452 MB, free: 8.805 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.00118/0.5726, allocations: 0.8907 MB / 452.9 MB, free: 7.969 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002706/0.5729, allocations: 111.3 kB / 453 MB, free: 7.848 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.5729, allocations: 0 / 453 MB, free: 7.848 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.591e-05/0.573, allocations: 20 kB / 453 MB, free: 7.828 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002681/0.5733, allocations: 11.94 kB / 453 MB, free: 7.816 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007251/0.574, allocations: 244.5 kB / 453.2 MB, free: 7.531 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000324/0.5744, allocations: 0.7004 MB / 453.9 MB, free: 6.805 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001038/0.5745, allocations: 27.42 kB / 454 MB, free: 6.777 MB / 378.7 MB Notification: Performance of SimCode: time 1.272e-06/0.5745, allocations: 7.938 kB / 454 MB, free: 6.77 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_Test29CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test29CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test29CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test29FMU.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_Test29.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test29CalcHelperMain.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_Test29_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test29.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test29.fmu] Error 1