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.Test32.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.Test32,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test32",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.489/2.489, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.398e-05/3.408e-05, allocations: 4 kB / 309.8 MB, free: 1.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4123/0.4123, allocations: 54.85 MB / 364.6 MB, free: 5.539 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1483/0.5607, allocations: 80.9 MB / 445.5 MB, free: 15.57 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002647/0.561, allocations: 68.47 kB / 445.6 MB, free: 15.51 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01363/0.5746, allocations: 3.246 MB / 448.8 MB, free: 12.28 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5747, allocations: 0 / 448.8 MB, free: 12.28 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.47e-05/0.5747, allocations: 0 / 448.8 MB, free: 12.28 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.0005557/0.5753, allocations: 419.9 kB / 449.2 MB, free: 11.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/0.5754, allocations: 16.03 kB / 449.3 MB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.617e-05/0.5754, allocations: 34.56 kB / 449.3 MB, free: 11.76 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.33e-05/0.5755, allocations: 11.81 kB / 449.3 MB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003146/0.5758, allocations: 200.7 kB / 449.5 MB, free: 11.51 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.5758, allocations: 0 / 449.5 MB, free: 11.51 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.42e-05/0.5759, allocations: 4 kB / 449.5 MB, free: 11.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001399/0.576, allocations: 41.69 kB / 449.5 MB, free: 11.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.576, allocations: 3.953 kB / 449.6 MB, free: 11.45 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.5761, allocations: 4 kB / 449.6 MB, free: 11.45 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.5761, allocations: 4 kB / 449.6 MB, free: 11.45 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.385e-05/0.5762, allocations: 19.94 kB / 449.6 MB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000533/0.5767, allocations: 293 kB / 449.9 MB, free: 11.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002346/0.577, allocations: 42.52 kB / 449.9 MB, free: 11.04 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.549e-05/0.577, allocations: 12.86 kB / 449.9 MB, free: 11.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.796e-05/0.5771, allocations: 7.984 kB / 449.9 MB, free: 11.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.844e-05/0.5771, allocations: 39.16 kB / 450 MB, free: 10.97 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.643e-06/0.5771, allocations: 0 / 450 MB, free: 10.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005579/0.5777, allocations: 123.8 kB / 450.1 MB, free: 10.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.945e-05/0.5777, allocations: 51.41 kB / 450.1 MB, free: 10.78 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003408/0.5781, allocations: 213.4 kB / 450.3 MB, free: 10.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.983e-05/0.5781, allocations: 33.64 kB / 450.4 MB, free: 10.53 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.107e-05/0.5782, allocations: 162.6 kB / 450.5 MB, free: 10.37 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.561e-05/0.5783, allocations: 20.5 kB / 450.6 MB, free: 10.35 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.951e-06/0.5783, allocations: 0 / 450.6 MB, free: 10.35 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.5784, allocations: 314.8 kB / 450.9 MB, free: 10.03 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.619e-05/0.5785, allocations: 20 kB / 450.9 MB, free: 10.01 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.995e-05/0.5786, allocations: 12 kB / 450.9 MB, free: 10 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.847e-05/0.5787, allocations: 41.69 kB / 450.9 MB, free: 9.953 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.5787, allocations: 0 / 450.9 MB, free: 9.953 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002099/0.5789, allocations: 103.3 kB / 451 MB, free: 9.84 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.774e-05/0.5789, allocations: 30.36 kB / 451.1 MB, free: 9.805 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.579, allocations: 0 / 451.1 MB, free: 9.805 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.579, allocations: 0 / 451.1 MB, free: 9.805 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.5791, allocations: 15.98 kB / 451.1 MB, free: 9.789 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.5791, allocations: 3.938 kB / 451.1 MB, free: 9.785 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8e-05/0.5792, allocations: 8 kB / 451.1 MB, free: 9.777 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.405e-05/0.5793, allocations: 4 kB / 451.1 MB, free: 9.773 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 9.403e-05/0.5794, allocations: 113.8 kB / 451.2 MB, free: 9.656 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.428e-05/0.5794, allocations: 15.91 kB / 451.2 MB, free: 9.641 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000255/0.5797, allocations: 91.41 kB / 451.3 MB, free: 9.547 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.5797, allocations: 0 / 451.3 MB, free: 9.547 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.5797, allocations: 4 kB / 451.3 MB, free: 9.543 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.5797, allocations: 0 / 451.3 MB, free: 9.543 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006543/0.5804, allocations: 366.8 kB / 451.7 MB, free: 9.129 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.5804, allocations: 4.062 kB / 451.7 MB, free: 9.125 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001179/0.5805, allocations: 19.98 kB / 451.7 MB, free: 9.105 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.5806, allocations: 0.8438 kB / 451.7 MB, free: 9.105 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.759e-06/0.5806, allocations: 0 / 451.7 MB, free: 9.105 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.5806, allocations: 0 / 451.7 MB, free: 9.105 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.5806, allocations: 4 kB / 451.7 MB, free: 9.102 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002718/0.5809, allocations: 175.3 kB / 451.9 MB, free: 8.914 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.889e-05/0.581, allocations: 96.91 kB / 452 MB, free: 8.801 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.591e-05/0.581, allocations: 4 kB / 452 MB, free: 8.797 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001107/0.5812, allocations: 4 kB / 452 MB, free: 8.793 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.294e-05/0.5812, allocations: 11.98 kB / 452 MB, free: 8.781 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.595e-06/0.5813, allocations: 0.5625 kB / 452 MB, free: 8.781 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002446/0.5815, allocations: 164.8 kB / 452.2 MB, free: 8.621 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.585e-06/0.5815, allocations: 0 / 452.2 MB, free: 8.621 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003271/0.5819, allocations: 31.92 kB / 452.2 MB, free: 8.59 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.001305/0.5832, allocations: 0.8844 MB / 453.1 MB, free: 7.758 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002082/0.5834, allocations: 83.41 kB / 453.1 MB, free: 7.664 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.5834, allocations: 0 / 453.1 MB, free: 7.664 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.101e-05/0.5835, allocations: 27.98 kB / 453.2 MB, free: 7.637 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002663/0.5838, allocations: 8.5 kB / 453.2 MB, free: 7.629 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007736/0.5846, allocations: 272.4 kB / 453.4 MB, free: 7.316 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003403/0.5849, allocations: 0.7121 MB / 454.2 MB, free: 6.578 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.794e-05/0.585, allocations: 35.42 kB / 454.2 MB, free: 6.543 MB / 378.7 MB Notification: Performance of SimCode: time 4.338e-06/0.5851, allocations: 0 / 454.2 MB, free: 6.543 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_Test32CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test32CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test32CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test32FMU.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_Test32.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test32CalcHelperMain.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_Test32_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test32.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test32.fmu] Error 1