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.Test23.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.Test23,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test23",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.534/2.534, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.499e-05/3.517e-05, allocations: 4 kB / 309.8 MB, free: 1.242 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4175/0.4176, allocations: 54.85 MB / 364.6 MB, free: 5.445 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.158/0.5757, allocations: 81.87 MB / 446.5 MB, free: 14.52 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002781/0.576, allocations: 75.72 kB / 446.6 MB, free: 14.45 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0345/0.6105, allocations: 6.766 MB / 453.3 MB, free: 7.711 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.6106, allocations: 0 / 453.3 MB, free: 7.711 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.502e-05/0.6107, allocations: 12 kB / 453.3 MB, free: 7.699 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001554/0.6122, allocations: 0.7497 MB / 454.1 MB, free: 6.879 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.811e-05/0.6123, allocations: 8.031 kB / 454.1 MB, free: 6.871 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.063e-05/0.6124, allocations: 42.55 kB / 454.1 MB, free: 6.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001743/0.6126, allocations: 47.44 kB / 454.2 MB, free: 6.773 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001283/0.6139, allocations: 439.1 kB / 454.6 MB, free: 6.301 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.105e-05/0.6139, allocations: 11.94 kB / 454.6 MB, free: 6.289 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.479e-05/0.614, allocations: 19.92 kB / 454.6 MB, free: 6.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004247/0.6144, allocations: 128.2 kB / 454.8 MB, free: 6.133 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.6145, allocations: 0 / 454.8 MB, free: 6.133 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.072e-05/0.6145, allocations: 7.984 kB / 454.8 MB, free: 6.125 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.677e-05/0.6146, allocations: 4 kB / 454.8 MB, free: 6.121 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003231/0.6149, allocations: 63.98 kB / 454.8 MB, free: 6.059 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002048/0.617, allocations: 0.7033 MB / 455.5 MB, free: 5.301 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003792/0.6174, allocations: 105.3 kB / 455.7 MB, free: 5.18 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001751/0.6176, allocations: 45.84 kB / 455.7 MB, free: 5.129 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.29e-05/0.6176, allocations: 0 / 455.7 MB, free: 5.129 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.017e-05/0.6177, allocations: 42.5 kB / 455.7 MB, free: 5.078 MB / 378.7 MB Notification: Performance of pre-optimization done (n=12): time 2.795e-06/0.6177, allocations: 0 / 455.7 MB, free: 5.078 MB / 378.7 MB Notification: Performance of matching and sorting (n=20): time 0.003088/0.6208, allocations: 0.5299 MB / 456.3 MB, free: 4.539 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.919e-05/0.6209, allocations: 77.11 kB / 456.3 MB, free: 4.445 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002054/0.623, allocations: 0.7271 MB / 457.1 MB, free: 3.711 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.257e-05/0.623, allocations: 25.7 kB / 457.1 MB, free: 3.68 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002789/0.6233, allocations: 263 kB / 457.4 MB, free: 3.422 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001153/0.6235, allocations: 66.95 kB / 457.4 MB, free: 3.355 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.214e-05/0.6235, allocations: 4 kB / 457.4 MB, free: 3.352 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.6237, allocations: 322.8 kB / 457.7 MB, free: 3.027 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003199/0.624, allocations: 67.92 kB / 457.8 MB, free: 2.961 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000345/0.6244, allocations: 88.73 kB / 457.9 MB, free: 2.871 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000415/0.6249, allocations: 180.1 kB / 458.1 MB, free: 2.672 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.6249, allocations: 0 / 458.1 MB, free: 2.672 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000988/0.6259, allocations: 328.2 kB / 458.4 MB, free: 2.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.953e-05/0.626, allocations: 110.8 kB / 458.5 MB, free: 2.188 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.435e-06/0.626, allocations: 4 kB / 458.5 MB, free: 2.184 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.6261, allocations: 0 / 458.5 MB, free: 2.184 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007188/0.6268, allocations: 67.94 kB / 458.6 MB, free: 2.117 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.6268, allocations: 0 / 458.6 MB, free: 2.117 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005299/0.6274, allocations: 27.98 kB / 458.6 MB, free: 2.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.527e-05/0.6274, allocations: 19.92 kB / 458.6 MB, free: 2.07 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 4 * 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.0001483/0.6276, allocations: 112.9 kB / 458.7 MB, free: 1.953 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002252/0.6278, allocations: 55.3 kB / 458.8 MB, free: 1.898 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001193/0.629, allocations: 289.7 kB / 459.1 MB, free: 1.609 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.428e-06/0.6291, allocations: 4 kB / 459.1 MB, free: 1.605 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.6291, allocations: 0 / 459.1 MB, free: 1.605 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.818e-06/0.6291, allocations: 4.172 kB / 459.1 MB, free: 1.602 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0025/0.6316, allocations: 0.8566 MB / 459.9 MB, free: 0.6875 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.6317, allocations: 0 / 459.9 MB, free: 0.6875 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006914/0.6324, allocations: 71.89 kB / 460 MB, free: 0.6172 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.045e-05/0.6324, allocations: 3.984 kB / 460 MB, free: 0.6133 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.443e-05/0.6325, allocations: 7.984 kB / 460 MB, free: 0.6055 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-06/0.6325, allocations: 0 / 460 MB, free: 0.6055 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.6325, allocations: 0 / 460 MB, free: 0.6055 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001026/0.6335, allocations: 423.8 kB / 460.4 MB, free: 172 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004374/0.634, allocations: 164.6 kB / 460.6 MB, free: 15.98 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001239/0.6341, allocations: 11.94 kB / 460.6 MB, free: 15.97 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006233/0.6348, allocations: 31.97 kB / 460.6 MB, free: 15.94 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/0.6349, allocations: 19.97 kB / 460.6 MB, free: 15.92 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.33e-05/0.635, allocations: 8 kB / 460.6 MB, free: 15.91 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00157/0.6366, allocations: 0.5639 MB / 461.2 MB, free: 15.35 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.6366, allocations: 0 / 461.2 MB, free: 15.35 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009782/0.6376, allocations: 107.9 kB / 461.3 MB, free: 15.25 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * 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.003607/0.6412, allocations: 1.458 MB / 462.8 MB, free: 13.84 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009755/0.6422, allocations: 393.5 kB / 463.2 MB, free: 13.41 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.6422, allocations: 4 kB / 463.2 MB, free: 13.41 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003852/0.6426, allocations: 87.92 kB / 463.3 MB, free: 13.32 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007883/0.6434, allocations: 46.81 kB / 463.3 MB, free: 13.27 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003241/0.6467, allocations: 0.8682 MB / 464.2 MB, free: 12.36 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007229/0.6475, allocations: 0.8462 MB / 465 MB, free: 11.48 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006004/0.6481, allocations: 167.3 kB / 465.2 MB, free: 11.32 MB / 394.7 MB Notification: Performance of SimCode: time 1.703e-06/0.6481, allocations: 0 / 465.2 MB, free: 11.32 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_Test23CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test23CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test23CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test23FMU.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_Test23.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test23CalcHelperMain.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_Test23_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test23.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test23.fmu] Error 1