Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable1D.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.CombiTable1D.Test2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.329/2.329, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.567e-05/3.584e-05, allocations: 4 kB / 309.8 MB, free: 1.242 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3765/0.3766, allocations: 54.85 MB / 364.6 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1463/0.5229, allocations: 80.86 MB / 445.5 MB, free: 15.63 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002685/0.5233, allocations: 67.97 kB / 445.6 MB, free: 15.56 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01171/0.535, allocations: 2.726 MB / 448.3 MB, free: 12.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.548e-06/0.5351, allocations: 3.984 kB / 448.3 MB, free: 12.85 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.337e-05/0.5351, allocations: 0 / 448.3 MB, free: 12.85 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004748/0.5356, allocations: 388.5 kB / 448.7 MB, free: 12.42 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.5356, allocations: 12.03 kB / 448.7 MB, free: 12.41 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.419e-05/0.5357, allocations: 34.56 kB / 448.7 MB, free: 12.37 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.921e-05/0.5357, allocations: 11.95 kB / 448.7 MB, free: 12.36 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002435/0.536, allocations: 182.9 kB / 448.9 MB, free: 12.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.671e-05/0.536, allocations: 7.938 kB / 448.9 MB, free: 12.13 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.12e-05/0.536, allocations: 4.75 kB / 448.9 MB, free: 12.12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001309/0.5362, allocations: 42.56 kB / 449 MB, free: 12.08 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.5362, allocations: 0 / 449 MB, free: 12.08 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.978e-06/0.5362, allocations: 0 / 449 MB, free: 12.08 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.5363, allocations: 3.953 kB / 449 MB, free: 12.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.937e-05/0.5363, allocations: 16 kB / 449 MB, free: 12.06 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004676/0.5368, allocations: 280.9 kB / 449.2 MB, free: 11.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002281/0.5371, allocations: 50.48 kB / 449.3 MB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.849e-05/0.5371, allocations: 9.703 kB / 449.3 MB, free: 11.66 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.5372, allocations: 0 / 449.3 MB, free: 11.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.328e-05/0.5372, allocations: 42.52 kB / 449.3 MB, free: 11.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.513e-06/0.5372, allocations: 0 / 449.3 MB, free: 11.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005276/0.5378, allocations: 116.9 kB / 449.5 MB, free: 11.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.5378, allocations: 51.41 kB / 449.5 MB, free: 11.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001452/0.538, allocations: 118.6 kB / 449.6 MB, free: 11.31 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.989e-05/0.538, allocations: 29.7 kB / 449.7 MB, free: 11.27 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.075e-05/0.5381, allocations: 158.6 kB / 449.8 MB, free: 11.12 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.697e-05/0.5381, allocations: 16.77 kB / 449.8 MB, free: 11.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.103e-05/0.5382, allocations: 12 kB / 449.8 MB, free: 11.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.5383, allocations: 310.8 kB / 450.1 MB, free: 10.78 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.344e-05/0.5383, allocations: 12 kB / 450.2 MB, free: 10.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.999e-05/0.5384, allocations: 12 kB / 450.2 MB, free: 10.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.078e-05/0.5385, allocations: 49.62 kB / 450.2 MB, free: 10.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.5385, allocations: 4 kB / 450.2 MB, free: 10.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001906/0.5387, allocations: 95.33 kB / 450.3 MB, free: 10.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.014e-05/0.5388, allocations: 33.66 kB / 450.3 MB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.5388, allocations: 7.984 kB / 450.3 MB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.5388, allocations: 4 kB / 450.4 MB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001223/0.5389, allocations: 13.41 kB / 450.4 MB, free: 10.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.539, allocations: 0 / 450.4 MB, free: 10.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.353e-05/0.5391, allocations: 7.984 kB / 450.4 MB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.36e-05/0.5391, allocations: 4 kB / 450.4 MB, free: 10.52 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 7.333e-05/0.5392, allocations: 101 kB / 450.5 MB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.021e-05/0.5392, allocations: 7.906 kB / 450.5 MB, free: 10.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002344/0.5395, allocations: 89.66 kB / 450.6 MB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.5395, allocations: 0 / 450.6 MB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.5395, allocations: 0 / 450.6 MB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.5395, allocations: 0 / 450.6 MB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004756/0.54, allocations: 332.7 kB / 450.9 MB, free: 9.926 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.54, allocations: 3.953 kB / 450.9 MB, free: 9.922 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001113/0.5401, allocations: 19.92 kB / 450.9 MB, free: 9.902 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.5401, allocations: 0 / 450.9 MB, free: 9.902 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.5402, allocations: 8 kB / 450.9 MB, free: 9.895 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.5402, allocations: 3.938 kB / 450.9 MB, free: 9.891 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.5402, allocations: 0 / 450.9 MB, free: 9.891 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002103/0.5404, allocations: 159.5 kB / 451.1 MB, free: 9.719 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.042e-05/0.5405, allocations: 92.95 kB / 451.2 MB, free: 9.609 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.108e-05/0.5405, allocations: 0 / 451.2 MB, free: 9.609 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001063/0.5406, allocations: 8 kB / 451.2 MB, free: 9.602 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.609e-05/0.5407, allocations: 11.98 kB / 451.2 MB, free: 9.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-06/0.5407, allocations: 0.5 kB / 451.2 MB, free: 9.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.507e-05/0.5408, allocations: 100.7 kB / 451.3 MB, free: 9.492 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5408, allocations: 0 / 451.3 MB, free: 9.492 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003214/0.5412, allocations: 19.98 kB / 451.3 MB, free: 9.473 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.001132/0.5423, allocations: 0.8846 MB / 452.2 MB, free: 8.637 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00022/0.5425, allocations: 95.34 kB / 452.3 MB, free: 8.531 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5426, allocations: 0 / 452.3 MB, free: 8.531 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.415e-05/0.5426, allocations: 23.92 kB / 452.3 MB, free: 8.508 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002501/0.5429, allocations: 11.44 kB / 452.3 MB, free: 8.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005925/0.5435, allocations: 184.2 kB / 452.5 MB, free: 8.273 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002924/0.5438, allocations: 0.6887 MB / 453.2 MB, free: 7.559 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.028e-05/0.5439, allocations: 23.42 kB / 453.2 MB, free: 7.535 MB / 378.7 MB Notification: Performance of SimCode: time 1.573e-06/0.5439, allocations: 4 kB / 453.2 MB, free: 7.531 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_CombiTable1D_Test2CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test2CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test2CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_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_CombiTable1D_Test2.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_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_CombiTable1D_Test2_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test2.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test2.fmu] Error 1