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.Test4.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.Test4,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.403/2.403, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.619e-05/3.634e-05, allocations: 8 kB / 309.8 MB, free: 1.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4187/0.4187, allocations: 54.84 MB / 364.6 MB, free: 5.566 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2053/0.6241, allocations: 80.92 MB / 445.5 MB, free: 15.57 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002725/0.6244, allocations: 71.97 kB / 445.6 MB, free: 15.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02025/0.6447, allocations: 5.337 MB / 450.9 MB, free: 10.18 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.6448, allocations: 0 / 450.9 MB, free: 10.18 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.118e-05/0.6448, allocations: 4 kB / 451 MB, free: 10.18 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.0007932/0.6456, allocations: 0.5655 MB / 451.5 MB, free: 9.559 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.6457, allocations: 16.03 kB / 451.5 MB, free: 9.543 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.671e-05/0.6457, allocations: 34.56 kB / 451.6 MB, free: 9.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000109/0.6459, allocations: 40 kB / 451.6 MB, free: 9.461 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006466/0.6465, allocations: 315.3 kB / 451.9 MB, free: 9.109 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.81e-05/0.6466, allocations: 8 kB / 451.9 MB, free: 9.102 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.184e-05/0.6466, allocations: 0 / 451.9 MB, free: 9.102 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001498/0.6468, allocations: 49.64 kB / 452 MB, free: 9.047 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.6468, allocations: 3.172 kB / 452 MB, free: 9.047 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.6468, allocations: 4 kB / 452 MB, free: 9.043 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.6469, allocations: 4.875 kB / 452 MB, free: 9.039 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.892e-05/0.6469, allocations: 19.98 kB / 452 MB, free: 9.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008593/0.6478, allocations: 428.6 kB / 452.4 MB, free: 8.551 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002472/0.6481, allocations: 42.56 kB / 452.5 MB, free: 8.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.901e-05/0.6481, allocations: 8.859 kB / 452.5 MB, free: 8.488 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.543e-05/0.6482, allocations: 4 kB / 452.5 MB, free: 8.484 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.363e-05/0.6482, allocations: 30.56 kB / 452.5 MB, free: 8.445 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 2.725e-06/0.6482, allocations: 0 / 452.5 MB, free: 8.445 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0006662/0.6489, allocations: 192.8 kB / 452.7 MB, free: 8.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.81e-05/0.649, allocations: 51.41 kB / 452.7 MB, free: 8.188 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00193/0.6509, allocations: 0.7654 MB / 453.5 MB, free: 7.418 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.278e-05/0.651, allocations: 25.7 kB / 453.5 MB, free: 7.387 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002165/0.6512, allocations: 246.4 kB / 453.8 MB, free: 7.145 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.051e-05/0.6513, allocations: 11.81 kB / 453.8 MB, free: 7.133 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.195e-06/0.6513, allocations: 0 / 453.8 MB, free: 7.133 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.6514, allocations: 324.1 kB / 454.1 MB, free: 6.809 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.433e-05/0.6515, allocations: 15.98 kB / 454.1 MB, free: 6.793 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.672e-05/0.6515, allocations: 15.25 kB / 454.1 MB, free: 6.781 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.691e-05/0.6516, allocations: 37.7 kB / 454.2 MB, free: 6.738 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.6517, allocations: 0 / 454.2 MB, free: 6.738 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002159/0.6519, allocations: 91.39 kB / 454.3 MB, free: 6.637 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.057e-05/0.6519, allocations: 33.7 kB / 454.3 MB, free: 6.598 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.652, allocations: 0 / 454.3 MB, free: 6.598 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.652, allocations: 4 kB / 454.3 MB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001573/0.6521, allocations: 15.98 kB / 454.3 MB, free: 6.578 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.6522, allocations: 3.938 kB / 454.3 MB, free: 6.574 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001494/0.6523, allocations: 4 kB / 454.3 MB, free: 6.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.568e-05/0.6524, allocations: 4 kB / 454.3 MB, free: 6.566 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.683e-05/0.6525, allocations: 116.9 kB / 454.4 MB, free: 6.445 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000117/0.6526, allocations: 47.42 kB / 454.5 MB, free: 6.398 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003531/0.6529, allocations: 112.9 kB / 454.6 MB, free: 6.277 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.794e-06/0.653, allocations: 3.984 kB / 454.6 MB, free: 6.273 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.653, allocations: 0 / 454.6 MB, free: 6.273 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.653, allocations: 0 / 454.6 MB, free: 6.273 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001103/0.6541, allocations: 0.5592 MB / 455.2 MB, free: 5.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.6541, allocations: 4 kB / 455.2 MB, free: 5.656 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001262/0.6543, allocations: 12 kB / 455.2 MB, free: 5.645 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.586e-06/0.6543, allocations: 4 kB / 455.2 MB, free: 5.641 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/0.6543, allocations: 0 / 455.2 MB, free: 5.641 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.6543, allocations: 0 / 455.2 MB, free: 5.641 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.6543, allocations: 0 / 455.2 MB, free: 5.641 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00033/0.6547, allocations: 199 kB / 455.4 MB, free: 5.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000287/0.655, allocations: 160.5 kB / 455.5 MB, free: 5.254 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.27e-05/0.6551, allocations: 8 kB / 455.5 MB, free: 5.246 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001623/0.6552, allocations: 7.984 kB / 455.5 MB, free: 5.238 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.104e-05/0.6553, allocations: 4 kB / 455.5 MB, free: 5.234 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/0.6553, allocations: 0 / 455.5 MB, free: 5.234 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001165/0.6565, allocations: 0.6225 MB / 456.2 MB, free: 4.613 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.1e-07/0.6565, allocations: 0 / 456.2 MB, free: 4.613 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000435/0.657, allocations: 55.94 kB / 456.2 MB, free: 4.559 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.001343/0.6583, allocations: 0.9214 MB / 457.1 MB, free: 3.684 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002523/0.6586, allocations: 83.41 kB / 457.2 MB, free: 3.59 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.6586, allocations: 0 / 457.2 MB, free: 3.59 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.909e-05/0.6587, allocations: 19.94 kB / 457.2 MB, free: 3.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003865/0.6591, allocations: 21.62 kB / 457.3 MB, free: 3.555 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002152/0.6613, allocations: 0.8471 MB / 458.1 MB, free: 2.664 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005349/0.6618, allocations: 0.8223 MB / 458.9 MB, free: 1.812 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002749/0.6621, allocations: 107.6 kB / 459 MB, free: 1.707 MB / 378.7 MB Notification: Performance of SimCode: time 1.643e-06/0.6622, allocations: 0 / 459 MB, free: 1.707 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_Test4CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test4CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test4CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test4FMU.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_Test4.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test4CalcHelperMain.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_Test4_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test4.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test4.fmu] Error 1