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.Test20.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.Test20,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test20",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.379/2.379, allocations: 235 MB / 248.1 MB, free: 14.56 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.247e-05/4.24e-05, allocations: 4 kB / 309.8 MB, free: 1.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4503/0.4503, allocations: 54.85 MB / 364.6 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1561/0.6065, allocations: 82.1 MB / 446.7 MB, free: 14.39 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002784/0.6069, allocations: 67.97 kB / 446.8 MB, free: 14.33 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02909/0.636, allocations: 6.44 MB / 453.2 MB, free: 7.918 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.6361, allocations: 0 / 453.2 MB, free: 7.918 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.02e-05/0.6361, allocations: 8 kB / 453.2 MB, free: 7.91 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.0009911/0.6371, allocations: 0.6856 MB / 453.9 MB, free: 7.148 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.014e-05/0.6372, allocations: 8.031 kB / 453.9 MB, free: 7.141 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.01e-05/0.6373, allocations: 46.56 kB / 454 MB, free: 7.086 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001222/0.6374, allocations: 35.53 kB / 454 MB, free: 7.051 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006467/0.6381, allocations: 295.9 kB / 454.3 MB, free: 6.723 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.12e-05/0.6381, allocations: 4 kB / 454.3 MB, free: 6.719 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.56e-05/0.6382, allocations: 15.95 kB / 454.3 MB, free: 6.703 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003065/0.6385, allocations: 113.5 kB / 454.4 MB, free: 6.586 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/0.6385, allocations: 7.906 kB / 454.4 MB, free: 6.578 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.679e-05/0.6386, allocations: 0 / 454.4 MB, free: 6.578 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.168e-06/0.6386, allocations: 4 kB / 454.4 MB, free: 6.574 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001991/0.6388, allocations: 56 kB / 454.5 MB, free: 6.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009887/0.6398, allocations: 480.3 kB / 455 MB, free: 6 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002458/0.6401, allocations: 87.59 kB / 455.1 MB, free: 5.906 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.364e-05/0.6402, allocations: 28.86 kB / 455.1 MB, free: 5.875 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.403e-05/0.6402, allocations: 11.98 kB / 455.1 MB, free: 5.863 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.594e-05/0.6403, allocations: 34.56 kB / 455.1 MB, free: 5.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=11): time 5.039e-06/0.6403, allocations: 3.984 kB / 455.1 MB, free: 5.816 MB / 378.7 MB Notification: Performance of matching and sorting (n=17): time 0.001249/0.6415, allocations: 325.1 kB / 455.4 MB, free: 5.492 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.66e-05/0.6416, allocations: 55.41 kB / 455.5 MB, free: 5.426 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008926/0.6426, allocations: 415.5 kB / 455.9 MB, free: 5.008 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.14e-05/0.6426, allocations: 25.7 kB / 455.9 MB, free: 4.977 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001834/0.6428, allocations: 230.8 kB / 456.2 MB, free: 4.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.272e-05/0.6429, allocations: 59.11 kB / 456.2 MB, free: 4.691 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.281e-05/0.643, allocations: 0 / 456.2 MB, free: 4.691 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.6431, allocations: 322.8 kB / 456.5 MB, free: 4.367 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001855/0.6433, allocations: 48.38 kB / 456.6 MB, free: 4.316 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001743/0.6435, allocations: 55.31 kB / 456.6 MB, free: 4.266 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002867/0.6438, allocations: 193.4 kB / 456.8 MB, free: 4.047 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.6438, allocations: 0 / 456.8 MB, free: 4.047 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006059/0.6445, allocations: 314 kB / 457.1 MB, free: 3.707 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001172/0.6446, allocations: 148.5 kB / 457.3 MB, free: 3.531 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.6446, allocations: 0 / 457.3 MB, free: 3.531 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/0.6446, allocations: 0 / 457.3 MB, free: 3.531 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003065/0.645, allocations: 39.98 kB / 457.3 MB, free: 3.492 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.645, allocations: 0 / 457.3 MB, free: 3.492 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002131/0.6452, allocations: 8 kB / 457.3 MB, free: 3.484 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.418e-05/0.6453, allocations: 19.92 kB / 457.3 MB, free: 3.465 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.0001126/0.6454, allocations: 113 kB / 457.4 MB, free: 3.348 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.32e-05/0.6455, allocations: 27.62 kB / 457.5 MB, free: 3.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007055/0.6462, allocations: 225.5 kB / 457.7 MB, free: 3.094 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.373e-06/0.6462, allocations: 4 kB / 457.7 MB, free: 3.09 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.6462, allocations: 0 / 457.7 MB, free: 3.09 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.6463, allocations: 3.984 kB / 457.7 MB, free: 3.086 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001267/0.6475, allocations: 0.6245 MB / 458.3 MB, free: 2.406 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.6476, allocations: 0 / 458.3 MB, free: 2.406 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002542/0.6478, allocations: 31.98 kB / 458.4 MB, free: 2.375 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.234e-06/0.6478, allocations: 0 / 458.4 MB, free: 2.375 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.737e-05/0.6479, allocations: 12 kB / 458.4 MB, free: 2.363 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.6479, allocations: 0 / 458.4 MB, free: 2.363 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.6479, allocations: 0 / 458.4 MB, free: 2.363 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005804/0.6485, allocations: 286.9 kB / 458.7 MB, free: 2.066 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001802/0.6487, allocations: 120.7 kB / 458.8 MB, free: 1.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.083e-05/0.6488, allocations: 4 kB / 458.8 MB, free: 1.926 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001633/0.6489, allocations: 11.98 kB / 458.8 MB, free: 1.914 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.187e-05/0.649, allocations: 11.98 kB / 458.8 MB, free: 1.902 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.268e-05/0.649, allocations: 8 kB / 458.8 MB, free: 1.895 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006522/0.6497, allocations: 334.1 kB / 459.1 MB, free: 1.566 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6497, allocations: 3.938 kB / 459.1 MB, free: 1.562 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005259/0.6503, allocations: 103.7 kB / 459.2 MB, free: 1.461 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.002838/0.6531, allocations: 1.416 MB / 460.7 MB, free: 104 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000666/0.6538, allocations: 405 kB / 461 MB, free: 15.64 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.6539, allocations: 0 / 461 MB, free: 15.64 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000178/0.654, allocations: 67.94 kB / 461.1 MB, free: 15.57 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004783/0.6545, allocations: 33.19 kB / 461.1 MB, free: 15.54 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001648/0.6562, allocations: 0.6114 MB / 461.8 MB, free: 14.89 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004761/0.6567, allocations: 0.7907 MB / 462.5 MB, free: 14.07 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000257/0.657, allocations: 99.39 kB / 462.6 MB, free: 13.97 MB / 394.7 MB Notification: Performance of SimCode: time 1.332e-06/0.657, allocations: 0 / 462.6 MB, free: 13.97 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_Test20CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test20CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test20CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test20FMU.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_Test20.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test20CalcHelperMain.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_Test20_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test20.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test20.fmu] Error 1