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.Test22.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.Test22,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test22",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.581/2.581, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.75e-05/4.764e-05, allocations: 4 kB / 309.8 MB, free: 1.246 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.432/0.4321, allocations: 54.85 MB / 364.6 MB, free: 5.555 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1599/0.592, allocations: 81.94 MB / 446.6 MB, free: 14.54 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003182/0.5924, allocations: 67.97 kB / 446.6 MB, free: 14.48 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02926/0.6217, allocations: 6.426 MB / 453.1 MB, free: 8.082 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.6217, allocations: 4 kB / 453.1 MB, free: 8.078 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.091e-05/0.6218, allocations: 4 kB / 453.1 MB, free: 8.074 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.001296/0.6231, allocations: 0.7264 MB / 453.8 MB, free: 7.277 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.346e-05/0.6232, allocations: 8.031 kB / 453.8 MB, free: 7.27 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.445e-05/0.6232, allocations: 42.55 kB / 453.8 MB, free: 7.219 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001756/0.6234, allocations: 51.34 kB / 453.9 MB, free: 7.168 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.6245, allocations: 423.3 kB / 454.3 MB, free: 6.711 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.143e-05/0.6245, allocations: 19.89 kB / 454.3 MB, free: 6.691 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.366e-05/0.6246, allocations: 12 kB / 454.3 MB, free: 6.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003142/0.6249, allocations: 120.1 kB / 454.5 MB, free: 6.551 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.6249, allocations: 0 / 454.5 MB, free: 6.551 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.996e-05/0.625, allocations: 7.984 kB / 454.5 MB, free: 6.543 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.625, allocations: 0 / 454.5 MB, free: 6.543 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002044/0.6252, allocations: 64.64 kB / 454.5 MB, free: 6.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001489/0.6267, allocations: 0.676 MB / 455.2 MB, free: 5.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002492/0.627, allocations: 101.2 kB / 455.3 MB, free: 5.633 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.6271, allocations: 41.83 kB / 455.3 MB, free: 5.586 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.623e-05/0.6271, allocations: 4 kB / 455.3 MB, free: 5.582 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.678e-05/0.6272, allocations: 38.45 kB / 455.4 MB, free: 5.535 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 2.545e-06/0.6272, allocations: 0 / 455.4 MB, free: 5.535 MB / 378.7 MB Notification: Performance of matching and sorting (n=16): time 0.001658/0.6289, allocations: 434.8 kB / 455.8 MB, free: 5.102 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.01e-05/0.6289, allocations: 81.05 kB / 455.9 MB, free: 5.004 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001498/0.6305, allocations: 0.7231 MB / 456.6 MB, free: 4.273 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.951e-05/0.6305, allocations: 29.7 kB / 456.6 MB, free: 4.238 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002209/0.6308, allocations: 246.9 kB / 456.9 MB, free: 3.996 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.669e-05/0.6309, allocations: 51.19 kB / 456.9 MB, free: 3.945 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.3e-05/0.6309, allocations: 4 kB / 456.9 MB, free: 3.941 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.6311, allocations: 326.8 kB / 457.3 MB, free: 3.613 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000175/0.6312, allocations: 44 kB / 457.3 MB, free: 3.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001785/0.6314, allocations: 68.83 kB / 457.4 MB, free: 3.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002402/0.6317, allocations: 162.7 kB / 457.5 MB, free: 3.316 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.6317, allocations: 0 / 457.5 MB, free: 3.316 MB / 378.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005632/0.6323, allocations: 272.2 kB / 457.8 MB, free: 3.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.532e-05/0.6324, allocations: 114.8 kB / 457.9 MB, free: 2.883 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.6324, allocations: 0 / 457.9 MB, free: 2.883 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.6324, allocations: 4 kB / 457.9 MB, free: 2.879 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003788/0.6328, allocations: 43.95 kB / 457.9 MB, free: 2.836 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.6328, allocations: 7.938 kB / 458 MB, free: 2.828 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002894/0.6331, allocations: 12 kB / 458 MB, free: 2.816 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.284e-05/0.6332, allocations: 11.98 kB / 458 MB, free: 2.805 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 (20): * Single equations (assignments): 16 * 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.0001121/0.6333, allocations: 116.9 kB / 458.1 MB, free: 2.684 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001523/0.6335, allocations: 51.34 kB / 458.1 MB, free: 2.633 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007429/0.6342, allocations: 225.8 kB / 458.4 MB, free: 2.406 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.179e-06/0.6342, allocations: 0 / 458.4 MB, free: 2.406 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.6343, allocations: 0 / 458.4 MB, free: 2.406 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.6343, allocations: 4 kB / 458.4 MB, free: 2.402 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001737/0.636, allocations: 0.7902 MB / 459.2 MB, free: 1.555 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.6361, allocations: 7.938 kB / 459.2 MB, free: 1.547 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003412/0.6364, allocations: 35.97 kB / 459.2 MB, free: 1.512 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.234e-06/0.6364, allocations: 4 kB / 459.2 MB, free: 1.508 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.03e-05/0.6365, allocations: 4 kB / 459.2 MB, free: 1.504 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.883e-06/0.6365, allocations: 12.3 kB / 459.2 MB, free: 1.492 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.6365, allocations: 7.984 kB / 459.2 MB, free: 1.484 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006393/0.6372, allocations: 367.8 kB / 459.6 MB, free: 1.102 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003274/0.6375, allocations: 168.4 kB / 459.7 MB, free: 0.918 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.172e-05/0.6376, allocations: 8 kB / 459.8 MB, free: 0.9102 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003282/0.6379, allocations: 19.98 kB / 459.8 MB, free: 0.8906 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.35e-05/0.638, allocations: 15.94 kB / 459.8 MB, free: 0.875 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.522e-05/0.6381, allocations: 4 kB / 459.8 MB, free: 0.8711 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001179/0.6393, allocations: 0.5678 MB / 460.4 MB, free: 312 kB / 378.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.6393, allocations: 0 / 460.4 MB, free: 312 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006264/0.6399, allocations: 99.86 kB / 460.5 MB, free: 212 kB / 378.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 (16): * Single equations (assignments): 16 * 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.002599/0.6425, allocations: 1.41 MB / 461.9 MB, free: 14.86 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00062/0.6432, allocations: 333.5 kB / 462.2 MB, free: 14.48 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.6432, allocations: 0 / 462.2 MB, free: 14.48 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001983/0.6434, allocations: 67.92 kB / 462.3 MB, free: 14.41 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006408/0.6441, allocations: 49.91 kB / 462.3 MB, free: 14.36 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002298/0.6464, allocations: 0.8206 MB / 463.1 MB, free: 13.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005896/0.6471, allocations: 0.834 MB / 464 MB, free: 12.63 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004078/0.6475, allocations: 151.4 kB / 464.1 MB, free: 12.48 MB / 394.7 MB Notification: Performance of SimCode: time 1.212e-06/0.6475, allocations: 0 / 464.1 MB, free: 12.48 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_Test22CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test22CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test22CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test22FMU.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_Test22.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test22CalcHelperMain.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_Test22_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test22.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test22.fmu] Error 1