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.Test2.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.Test2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.43/2.43, allocations: 235 MB / 248.1 MB, free: 14.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.349e-05/3.365e-05, allocations: 3.984 kB / 309.8 MB, free: 1.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4164/0.4165, allocations: 54.86 MB / 364.6 MB, free: 5.547 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1665/0.583, allocations: 80.95 MB / 445.6 MB, free: 15.57 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003113/0.5834, allocations: 67.95 kB / 445.6 MB, free: 15.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02322/0.6066, allocations: 5.441 MB / 451.1 MB, free: 10.08 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.6067, allocations: 0 / 451.1 MB, free: 10.08 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.153e-05/0.6068, allocations: 4 kB / 451.1 MB, free: 10.07 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.0008062/0.6076, allocations: 0.5616 MB / 451.7 MB, free: 9.461 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.3e-05/0.6076, allocations: 8.031 kB / 451.7 MB, free: 9.453 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.109e-05/0.6077, allocations: 42.55 kB / 451.7 MB, free: 9.402 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001084/0.6078, allocations: 39.44 kB / 451.7 MB, free: 9.363 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006729/0.6085, allocations: 319.3 kB / 452.1 MB, free: 9.008 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.183e-05/0.6085, allocations: 12 kB / 452.1 MB, free: 8.996 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.345e-05/0.6086, allocations: 0 / 452.1 MB, free: 8.996 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000158/0.6088, allocations: 53.03 kB / 452.1 MB, free: 8.941 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.6088, allocations: 0 / 452.1 MB, free: 8.941 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/0.6088, allocations: 4 kB / 452.1 MB, free: 8.938 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.6088, allocations: 3.938 kB / 452.1 MB, free: 8.934 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.092e-05/0.6089, allocations: 16 kB / 452.1 MB, free: 8.918 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009149/0.6098, allocations: 428.6 kB / 452.6 MB, free: 8.449 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002412/0.6101, allocations: 38.58 kB / 452.6 MB, free: 8.402 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.136e-05/0.6102, allocations: 16.94 kB / 452.6 MB, free: 8.383 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.593e-05/0.6102, allocations: 0 / 452.6 MB, free: 8.383 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.295e-05/0.6102, allocations: 32.44 kB / 452.6 MB, free: 8.344 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.933e-06/0.6102, allocations: 0 / 452.6 MB, free: 8.344 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.000707/0.611, allocations: 188.1 kB / 452.8 MB, free: 8.152 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.124e-05/0.611, allocations: 51.41 kB / 452.9 MB, free: 8.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00193/0.613, allocations: 0.7654 MB / 453.6 MB, free: 7.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.157e-05/0.6131, allocations: 25.7 kB / 453.7 MB, free: 7.289 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002563/0.6133, allocations: 242.4 kB / 453.9 MB, free: 7.051 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.451e-05/0.6134, allocations: 19.86 kB / 453.9 MB, free: 7.031 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.141e-06/0.6134, allocations: 0 / 453.9 MB, free: 7.031 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.6136, allocations: 318.8 kB / 454.2 MB, free: 6.711 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.556e-05/0.6136, allocations: 12 kB / 454.2 MB, free: 6.699 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.79e-05/0.6137, allocations: 15.94 kB / 454.3 MB, free: 6.684 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.224e-05/0.6138, allocations: 45.64 kB / 454.3 MB, free: 6.633 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.6138, allocations: 0 / 454.3 MB, free: 6.633 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002143/0.614, allocations: 87.41 kB / 454.4 MB, free: 6.535 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.544e-05/0.6141, allocations: 33.69 kB / 454.4 MB, free: 6.496 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-06/0.6141, allocations: 0 / 454.4 MB, free: 6.496 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.6141, allocations: 4 kB / 454.4 MB, free: 6.492 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001466/0.6143, allocations: 12.5 kB / 454.4 MB, free: 6.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.54e-05/0.6143, allocations: 4 kB / 454.4 MB, free: 6.477 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001573/0.6145, allocations: 11.92 kB / 454.5 MB, free: 6.465 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.189e-05/0.6145, allocations: 256 / 454.5 MB, free: 6.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 (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.873e-05/0.6146, allocations: 116.9 kB / 454.6 MB, free: 6.344 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/0.6148, allocations: 43.44 kB / 454.6 MB, free: 6.301 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003696/0.6151, allocations: 117 kB / 454.7 MB, free: 6.176 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.6152, allocations: 4 kB / 454.7 MB, free: 6.172 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.6152, allocations: 0 / 454.7 MB, free: 6.172 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.6152, allocations: 0 / 454.7 MB, free: 6.172 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001184/0.6164, allocations: 0.5569 MB / 455.3 MB, free: 5.559 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.6164, allocations: 0 / 455.3 MB, free: 5.559 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001393/0.6166, allocations: 15.98 kB / 455.3 MB, free: 5.543 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.632e-06/0.6166, allocations: 0 / 455.3 MB, free: 5.543 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.6166, allocations: 4 kB / 455.3 MB, free: 5.539 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.307e-06/0.6166, allocations: 0 / 455.3 MB, free: 5.539 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.6166, allocations: 4 kB / 455.3 MB, free: 5.535 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002971/0.6169, allocations: 195 kB / 455.5 MB, free: 5.328 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003097/0.6173, allocations: 160.5 kB / 455.7 MB, free: 5.152 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.393e-05/0.6173, allocations: 8.078 kB / 455.7 MB, free: 5.145 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001609/0.6175, allocations: 8 kB / 455.7 MB, free: 5.137 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.803e-05/0.6176, allocations: 11.97 kB / 455.7 MB, free: 5.125 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.846e-06/0.6176, allocations: 4 kB / 455.7 MB, free: 5.121 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001218/0.6188, allocations: 0.6186 MB / 456.3 MB, free: 4.504 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.21e-07/0.6189, allocations: 0 / 456.3 MB, free: 4.504 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004806/0.6194, allocations: 59.92 kB / 456.4 MB, free: 4.445 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.001355/0.6207, allocations: 0.8919 MB / 457.3 MB, free: 3.598 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002234/0.621, allocations: 91.33 kB / 457.4 MB, free: 3.496 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.621, allocations: 4 kB / 457.4 MB, free: 3.492 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.715e-05/0.6211, allocations: 16 kB / 457.4 MB, free: 3.477 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004054/0.6215, allocations: 29.34 kB / 457.4 MB, free: 3.453 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002135/0.6237, allocations: 0.8471 MB / 458.2 MB, free: 2.562 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005366/0.6243, allocations: 0.8223 MB / 459.1 MB, free: 1.711 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002891/0.6246, allocations: 107.6 kB / 459.2 MB, free: 1.605 MB / 378.7 MB Notification: Performance of SimCode: time 1.603e-06/0.6246, allocations: 0 / 459.2 MB, free: 1.605 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_Test2CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test2CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test2CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test2FMU.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_Test2.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test2CalcHelperMain.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_Test2_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test2.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test2.fmu] Error 1