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.Test21.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.Test21,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test21",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.625/2.625, allocations: 235 MB / 248.1 MB, free: 14.54 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.677e-05/3.693e-05, allocations: 4 kB / 309.8 MB, free: 1.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4129/0.413, allocations: 54.85 MB / 364.6 MB, free: 5.543 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2/0.6131, allocations: 82.23 MB / 446.9 MB, free: 14.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003366/0.6135, allocations: 71.95 kB / 446.9 MB, free: 14.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02903/0.6426, allocations: 6.584 MB / 453.5 MB, free: 7.645 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.6426, allocations: 0 / 453.5 MB, free: 7.645 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.477e-05/0.6427, allocations: 8 kB / 453.5 MB, free: 7.637 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0009197/0.6436, allocations: 0.6817 MB / 454.2 MB, free: 6.879 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.277e-05/0.6437, allocations: 12.02 kB / 454.2 MB, free: 6.867 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.209e-05/0.6438, allocations: 42.56 kB / 454.2 MB, free: 6.816 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.6439, allocations: 35.53 kB / 454.3 MB, free: 6.781 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006217/0.6445, allocations: 295.9 kB / 454.6 MB, free: 6.453 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.078e-05/0.6446, allocations: 4 kB / 454.6 MB, free: 6.449 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.645e-05/0.6446, allocations: 19.95 kB / 454.6 MB, free: 6.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000296/0.6449, allocations: 105.5 kB / 454.7 MB, free: 6.32 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.506e-05/0.645, allocations: 11.83 kB / 454.7 MB, free: 6.309 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.747e-05/0.645, allocations: 0 / 454.7 MB, free: 6.309 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.645, allocations: 7.984 kB / 454.7 MB, free: 6.301 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002028/0.6452, allocations: 60 kB / 454.8 MB, free: 6.242 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009737/0.6462, allocations: 476.3 kB / 455.2 MB, free: 5.727 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002511/0.6465, allocations: 87.48 kB / 455.3 MB, free: 5.633 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.212e-05/0.6466, allocations: 28.86 kB / 455.4 MB, free: 5.602 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.282e-05/0.6467, allocations: 7.938 kB / 455.4 MB, free: 5.594 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.17e-05/0.6467, allocations: 42.55 kB / 455.4 MB, free: 5.543 MB / 378.7 MB Notification: Performance of pre-optimization done (n=11): time 2.896e-06/0.6467, allocations: 0 / 455.4 MB, free: 5.543 MB / 378.7 MB Notification: Performance of matching and sorting (n=17): time 0.001192/0.6479, allocations: 320.9 kB / 455.7 MB, free: 5.223 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.566e-05/0.648, allocations: 59.39 kB / 455.8 MB, free: 5.152 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008154/0.6488, allocations: 415.5 kB / 456.2 MB, free: 4.734 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.426e-05/0.6489, allocations: 29.7 kB / 456.2 MB, free: 4.699 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001606/0.649, allocations: 218.9 kB / 456.4 MB, free: 4.484 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.588e-05/0.6491, allocations: 63.11 kB / 456.5 MB, free: 4.422 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.371e-05/0.6492, allocations: 0 / 456.5 MB, free: 4.422 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003033/0.6495, allocations: 322.8 kB / 456.8 MB, free: 4.098 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001603/0.6497, allocations: 52.31 kB / 456.9 MB, free: 4.043 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001479/0.6498, allocations: 51.56 kB / 456.9 MB, free: 3.996 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002493/0.6501, allocations: 189.4 kB / 457.1 MB, free: 3.781 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.6501, allocations: 0 / 457.1 MB, free: 3.781 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005698/0.6507, allocations: 322.3 kB / 457.4 MB, free: 3.434 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001062/0.6508, allocations: 136.5 kB / 457.5 MB, free: 3.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.6508, allocations: 0 / 457.5 MB, free: 3.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.148e-05/0.6508, allocations: 8 kB / 457.5 MB, free: 3.262 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003027/0.6512, allocations: 39.97 kB / 457.6 MB, free: 3.223 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.6512, allocations: 0 / 457.6 MB, free: 3.223 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001973/0.6514, allocations: 8 kB / 457.6 MB, free: 3.215 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.595e-05/0.6514, allocations: 12 kB / 457.6 MB, free: 3.203 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 (22): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 5 * 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.0001168/0.6516, allocations: 116.9 kB / 457.7 MB, free: 3.082 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.26e-05/0.6517, allocations: 27.62 kB / 457.7 MB, free: 3.055 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007016/0.6524, allocations: 224.6 kB / 458 MB, free: 2.828 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/0.6524, allocations: 8 kB / 458 MB, free: 2.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.6524, allocations: 0 / 458 MB, free: 2.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.6524, allocations: 3.938 kB / 458 MB, free: 2.816 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001336/0.6538, allocations: 0.6248 MB / 458.6 MB, free: 2.137 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.6538, allocations: 4 kB / 458.6 MB, free: 2.133 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002581/0.6541, allocations: 31.98 kB / 458.6 MB, free: 2.102 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.827e-06/0.6541, allocations: 0 / 458.6 MB, free: 2.102 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.281e-05/0.6541, allocations: 8 kB / 458.6 MB, free: 2.094 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.6542, allocations: 0 / 458.6 MB, free: 2.094 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.6542, allocations: 0 / 458.6 MB, free: 2.094 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005192/0.6547, allocations: 284.3 kB / 458.9 MB, free: 1.801 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001777/0.6549, allocations: 128.7 kB / 459 MB, free: 1.656 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.142e-05/0.655, allocations: 0 / 459 MB, free: 1.656 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001583/0.6551, allocations: 19.92 kB / 459.1 MB, free: 1.637 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.303e-05/0.6552, allocations: 7.984 kB / 459.1 MB, free: 1.629 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.359e-05/0.6552, allocations: 8 kB / 459.1 MB, free: 1.621 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006167/0.6559, allocations: 338 kB / 459.4 MB, free: 1.289 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6559, allocations: 0 / 459.4 MB, free: 1.289 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005187/0.6564, allocations: 99.7 kB / 459.5 MB, free: 1.191 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 (17): * Single equations (assignments): 17 * 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.002872/0.6593, allocations: 1.422 MB / 460.9 MB, free: 15.82 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000639/0.66, allocations: 401 kB / 461.3 MB, free: 15.37 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.66, allocations: 0 / 461.3 MB, free: 15.37 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001774/0.6602, allocations: 67.94 kB / 461.4 MB, free: 15.3 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004996/0.6607, allocations: 33.19 kB / 461.4 MB, free: 15.27 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001727/0.6625, allocations: 0.6115 MB / 462 MB, free: 14.62 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004668/0.663, allocations: 0.7906 MB / 462.8 MB, free: 13.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002652/0.6633, allocations: 99.39 kB / 462.9 MB, free: 13.7 MB / 394.7 MB Notification: Performance of SimCode: time 1.754e-06/0.6633, allocations: 0 / 462.9 MB, free: 13.7 MB / 394.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_Test21CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test21CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test21CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test21FMU.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_Test21.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test21CalcHelperMain.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_Test21_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test21.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test21.fmu] Error 1