<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV =&gt; <g-emoji class="g-emoji" alias="grey_question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2754.png">❔</g-emoji> 4.0.0</li>
<li>Operating System / Platform =&gt; <g-emoji class="g-emoji" alias="grey_question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2754.png">❔</g-emoji> Fedora 27</li>
<li>Compiler =&gt; ❔ gcc 7.3</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">There was a change less than a week ago where the C interface for some modules were removed.  This has caused some build errors that you should be aware.  There are many errors of this sort and the build fails.</p>
<p dir="auto">/usr/local/include/opencv2/imgcodecs/imgcodecs_c.h:96:28: error: redeclaration of ‘CV_IMWRITE_PXM_BINARY’<br>
CV_IMWRITE_PXM_BINARY =32,<br>
^~</p>
<h5 dir="auto">Steps to reproduce</h5>
Build from developer sources.
<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV =&gt; 3.4/master + IE 2018R5</li>
<li>Operating System / Platform =&gt; Ubuntu 16.04</li>
<li>Compiler =&gt; gcc</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">Must be the problem of tests termination at buildbot</p>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">Add memory usage check:</p>
<div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="static void printMem()
{
    std::ifstream status(&quot;/proc/self/status&quot;);
    std::string line, title;
    size_t val;
    while (std::getline(status, line))
    {
        std::istringstream iss(line);
        iss &gt;&gt; title;
        if (title == &quot;VmHWM:&quot;)
        {
            iss &gt;&gt; val;
            std::cout &lt;&lt; &quot;peak: &quot; &lt;&lt; val &lt;&lt; std::endl;
        }
        else if (title == &quot;VmRSS:&quot;)
        {
            iss &gt;&gt; val;
            std::cout &lt;&lt; &quot;rss:  &quot; &lt;&lt; val &lt;&lt; std::endl;
        }
    }
    std::cout &lt;&lt; std::endl;
}

void testONNXModels(const String&amp; basename, const Extension ext = npy, const double l1 = 0, const float lInf = 0)
{
    printMem();
    // ..."><pre class="notranslate"><span class="pl-k">static</span> <span class="pl-k">void</span> <span class="pl-en">printMem</span>()
{
    std::ifstream <span class="pl-smi">status</span>(<span class="pl-s"><span class="pl-pds">"</span>/proc/self/status<span class="pl-pds">"</span></span>);
    std::string line, title;
    <span class="pl-c1">size_t</span> val;
    <span class="pl-k">while</span> (<span class="pl-c1">std::getline</span>(status, line))
    {
        std::istringstream <span class="pl-smi">iss</span>(line);
        iss &gt;&gt; title;
        <span class="pl-k">if</span> (title == <span class="pl-s"><span class="pl-pds">"</span>VmHWM:<span class="pl-pds">"</span></span>)
        {
            iss &gt;&gt; val;
            std::cout &lt;&lt; <span class="pl-s"><span class="pl-pds">"</span>peak: <span class="pl-pds">"</span></span> &lt;&lt; val &lt;&lt; std::endl;
        }
        <span class="pl-k">else</span> <span class="pl-k">if</span> (title == <span class="pl-s"><span class="pl-pds">"</span>VmRSS:<span class="pl-pds">"</span></span>)
        {
            iss &gt;&gt; val;
            std::cout &lt;&lt; <span class="pl-s"><span class="pl-pds">"</span>rss:  <span class="pl-pds">"</span></span> &lt;&lt; val &lt;&lt; std::endl;
        }
    }
    std::cout &lt;&lt; std::endl;
}

<span class="pl-k">void</span> <span class="pl-en">testONNXModels</span>(<span class="pl-k">const</span> String&amp; basename, <span class="pl-k">const</span> Extension ext = npy, <span class="pl-k">const</span> <span class="pl-k">double</span> l1 = <span class="pl-c1">0</span>, <span class="pl-k">const</span> <span class="pl-k">float</span> lInf = <span class="pl-c1">0</span>)
{
    <span class="pl-c1">printMem</span>();
    <span class="pl-c"><span class="pl-c">//</span> ...</span></pre></div>
<p dir="auto">OpenCV tests only:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ make -j4 &amp;&amp; ./bin/opencv_test_dnn --gtest_filter=Test_ONNX_nets*/1:-Test_ONNX_nets.LResNet100E_IR*

[==========] Running 19 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 19 tests from Test_ONNX_nets
[ RUN      ] Test_ONNX_nets.Alexnet/1, where GetParam() = OCV/CPU
[       OK ] Test_ONNX_nets.Alexnet/1 (490 ms)
[ RUN      ] Test_ONNX_nets.Squeezenet/1, where GetParam() = OCV/CPU
peak: 820764
rss:  50532

[       OK ] Test_ONNX_nets.Squeezenet/1 (19 ms)
[ RUN      ] Test_ONNX_nets.Googlenet/1, where GetParam() = OCV/CPU
[       OK ] Test_ONNX_nets.Googlenet/1 (87 ms)
[ RUN      ] Test_ONNX_nets.CaffeNet/1, where GetParam() = OCV/CPU
peak: 820764
rss:  133160

[       OK ] Test_ONNX_nets.CaffeNet/1 (486 ms)
[ RUN      ] Test_ONNX_nets.RCNN_ILSVRC13/1, where GetParam() = OCV/CPU
peak: 827032
rss:  41772

[       OK ] Test_ONNX_nets.RCNN_ILSVRC13/1 (456 ms)
[ RUN      ] Test_ONNX_nets.VGG16/1, where GetParam() = OCV/CPU
peak: 827032
rss:  41772

[       OK ] Test_ONNX_nets.VGG16/1 (1406 ms)
[ RUN      ] Test_ONNX_nets.VGG16_bn/1, where GetParam() = OCV/CPU
peak: 2415128
rss:  41772

[       OK ] Test_ONNX_nets.VGG16_bn/1 (1404 ms)
[ RUN      ] Test_ONNX_nets.ZFNet/1, where GetParam() = OCV/CPU
peak: 2415392
rss:  41772

[       OK ] Test_ONNX_nets.ZFNet/1 (670 ms)
[ RUN      ] Test_ONNX_nets.ResNet18v1/1, where GetParam() = OCV/CPU
peak: 2415392
rss:  41772

[       OK ] Test_ONNX_nets.ResNet18v1/1 (157 ms)
[ RUN      ] Test_ONNX_nets.ResNet50v1/1, where GetParam() = OCV/CPU
peak: 2415392
rss:  41772

[       OK ] Test_ONNX_nets.ResNet50v1/1 (330 ms)
[ RUN      ] Test_ONNX_nets.ResNet101_DUC_HDC/1, where GetParam() = OCV/CPU
peak: 2415392
rss:  41772

[       OK ] Test_ONNX_nets.ResNet101_DUC_HDC/1 (7726 ms)
[ RUN      ] Test_ONNX_nets.TinyYolov2/1, where GetParam() = OCV/CPU
peak: 2415392
rss:  49272

[       OK ] Test_ONNX_nets.TinyYolov2/1 (198 ms)
[ RUN      ] Test_ONNX_nets.CNN_MNIST/1, where GetParam() = OCV/CPU
peak: 2415392
rss:  47828

[       OK ] Test_ONNX_nets.CNN_MNIST/1 (1 ms)
[ RUN      ] Test_ONNX_nets.MobileNet_v2/1, where GetParam() = OCV/CPU
peak: 2415392
rss:  47828

[       OK ] Test_ONNX_nets.MobileNet_v2/1 (70 ms)
[ RUN      ] Test_ONNX_nets.Emotion_ferplus/1, where GetParam() = OCV/CPU
peak: 2415392
rss:  42092

[       OK ] Test_ONNX_nets.Emotion_ferplus/1 (84 ms)
[ RUN      ] Test_ONNX_nets.Inception_v2/1, where GetParam() = OCV/CPU
peak: 2415392
rss:  120788

[       OK ] Test_ONNX_nets.Inception_v2/1 (127 ms)
[ RUN      ] Test_ONNX_nets.DenseNet121/1, where GetParam() = OCV/CPU
peak: 2415392
rss:  138504

[       OK ] Test_ONNX_nets.DenseNet121/1 (151 ms)
[ RUN      ] Test_ONNX_nets.Inception_v1/1, where GetParam() = OCV/CPU
peak: 2415392
rss:  42156

[       OK ] Test_ONNX_nets.Inception_v1/1 (76 ms)
[ RUN      ] Test_ONNX_nets.Shufflenet/1, where GetParam() = OCV/CPU
peak: 2415392
rss:  42156

[       OK ] Test_ONNX_nets.Shufflenet/1 (84 ms)
[----------] 19 tests from Test_ONNX_nets (14023 ms total)

[----------] Global test environment tear-down
[==========] 19 tests from 1 test case ran. (14023 ms total)
[  PASSED  ] 19 tests."><pre class="notranslate"><code class="notranslate">$ make -j4 &amp;&amp; ./bin/opencv_test_dnn --gtest_filter=Test_ONNX_nets*/1:-Test_ONNX_nets.LResNet100E_IR*

[==========] Running 19 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 19 tests from Test_ONNX_nets
[ RUN      ] Test_ONNX_nets.Alexnet/1, where GetParam() = OCV/CPU
[       OK ] Test_ONNX_nets.Alexnet/1 (490 ms)
[ RUN      ] Test_ONNX_nets.Squeezenet/1, where GetParam() = OCV/CPU
peak: 820764
rss:  50532

[       OK ] Test_ONNX_nets.Squeezenet/1 (19 ms)
[ RUN      ] Test_ONNX_nets.Googlenet/1, where GetParam() = OCV/CPU
[       OK ] Test_ONNX_nets.Googlenet/1 (87 ms)
[ RUN      ] Test_ONNX_nets.CaffeNet/1, where GetParam() = OCV/CPU
peak: 820764
rss:  133160

[       OK ] Test_ONNX_nets.CaffeNet/1 (486 ms)
[ RUN      ] Test_ONNX_nets.RCNN_ILSVRC13/1, where GetParam() = OCV/CPU
peak: 827032
rss:  41772

[       OK ] Test_ONNX_nets.RCNN_ILSVRC13/1 (456 ms)
[ RUN      ] Test_ONNX_nets.VGG16/1, where GetParam() = OCV/CPU
peak: 827032
rss:  41772

[       OK ] Test_ONNX_nets.VGG16/1 (1406 ms)
[ RUN      ] Test_ONNX_nets.VGG16_bn/1, where GetParam() = OCV/CPU
peak: 2415128
rss:  41772

[       OK ] Test_ONNX_nets.VGG16_bn/1 (1404 ms)
[ RUN      ] Test_ONNX_nets.ZFNet/1, where GetParam() = OCV/CPU
peak: 2415392
rss:  41772

[       OK ] Test_ONNX_nets.ZFNet/1 (670 ms)
[ RUN      ] Test_ONNX_nets.ResNet18v1/1, where GetParam() = OCV/CPU
peak: 2415392
rss:  41772

[       OK ] Test_ONNX_nets.ResNet18v1/1 (157 ms)
[ RUN      ] Test_ONNX_nets.ResNet50v1/1, where GetParam() = OCV/CPU
peak: 2415392
rss:  41772

[       OK ] Test_ONNX_nets.ResNet50v1/1 (330 ms)
[ RUN      ] Test_ONNX_nets.ResNet101_DUC_HDC/1, where GetParam() = OCV/CPU
peak: 2415392
rss:  41772

[       OK ] Test_ONNX_nets.ResNet101_DUC_HDC/1 (7726 ms)
[ RUN      ] Test_ONNX_nets.TinyYolov2/1, where GetParam() = OCV/CPU
peak: 2415392
rss:  49272

[       OK ] Test_ONNX_nets.TinyYolov2/1 (198 ms)
[ RUN      ] Test_ONNX_nets.CNN_MNIST/1, where GetParam() = OCV/CPU
peak: 2415392
rss:  47828

[       OK ] Test_ONNX_nets.CNN_MNIST/1 (1 ms)
[ RUN      ] Test_ONNX_nets.MobileNet_v2/1, where GetParam() = OCV/CPU
peak: 2415392
rss:  47828

[       OK ] Test_ONNX_nets.MobileNet_v2/1 (70 ms)
[ RUN      ] Test_ONNX_nets.Emotion_ferplus/1, where GetParam() = OCV/CPU
peak: 2415392
rss:  42092

[       OK ] Test_ONNX_nets.Emotion_ferplus/1 (84 ms)
[ RUN      ] Test_ONNX_nets.Inception_v2/1, where GetParam() = OCV/CPU
peak: 2415392
rss:  120788

[       OK ] Test_ONNX_nets.Inception_v2/1 (127 ms)
[ RUN      ] Test_ONNX_nets.DenseNet121/1, where GetParam() = OCV/CPU
peak: 2415392
rss:  138504

[       OK ] Test_ONNX_nets.DenseNet121/1 (151 ms)
[ RUN      ] Test_ONNX_nets.Inception_v1/1, where GetParam() = OCV/CPU
peak: 2415392
rss:  42156

[       OK ] Test_ONNX_nets.Inception_v1/1 (76 ms)
[ RUN      ] Test_ONNX_nets.Shufflenet/1, where GetParam() = OCV/CPU
peak: 2415392
rss:  42156

[       OK ] Test_ONNX_nets.Shufflenet/1 (84 ms)
[----------] 19 tests from Test_ONNX_nets (14023 ms total)

[----------] Global test environment tear-down
[==========] 19 tests from 1 test case ran. (14023 ms total)
[  PASSED  ] 19 tests.
</code></pre></div>
<p dir="auto">DLIE/CPU tests:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ make -j4 &amp;&amp; ./bin/opencv_test_dnn --gtest_filter=Test_ONNX_nets*/0:-Test_ONNX_nets.LResNet100E_IR*

[==========] Running 19 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 19 tests from Test_ONNX_nets
[ RUN      ] Test_ONNX_nets.Alexnet/0, where GetParam() = DLIE/CPU
[       OK ] Test_ONNX_nets.Alexnet/0 (1442 ms)
[ RUN      ] Test_ONNX_nets.Squeezenet/0, where GetParam() = DLIE/CPU
peak: 820860
rss:  84860

[       OK ] Test_ONNX_nets.Squeezenet/0 (99 ms)
[ RUN      ] Test_ONNX_nets.Googlenet/0, where GetParam() = DLIE/CPU
[     SKIP ] 
[       OK ] Test_ONNX_nets.Googlenet/0 (0 ms)
[ RUN      ] Test_ONNX_nets.CaffeNet/0, where GetParam() = DLIE/CPU
peak: 820860
rss:  94116

[       OK ] Test_ONNX_nets.CaffeNet/0 (1425 ms)
[ RUN      ] Test_ONNX_nets.RCNN_ILSVRC13/0, where GetParam() = DLIE/CPU
peak: 864380
rss:  93272

[       OK ] Test_ONNX_nets.RCNN_ILSVRC13/0 (1339 ms)
[ RUN      ] Test_ONNX_nets.VGG16/0, where GetParam() = DLIE/CPU
peak: 864380
rss:  93272

[       OK ] Test_ONNX_nets.VGG16/0 (3475 ms)
[ RUN      ] Test_ONNX_nets.VGG16_bn/0, where GetParam() = DLIE/CPU
peak: 2456332
rss:  197132

[       OK ] Test_ONNX_nets.VGG16_bn/0 (3459 ms)
[ RUN      ] Test_ONNX_nets.ZFNet/0, where GetParam() = DLIE/CPU
peak: 2554384
rss:  234012

[       OK ] Test_ONNX_nets.ZFNet/0 (2056 ms)
[ RUN      ] Test_ONNX_nets.ResNet18v1/0, where GetParam() = DLIE/CPU
peak: 2554384
rss:  257736

[       OK ] Test_ONNX_nets.ResNet18v1/0 (334 ms)
[ RUN      ] Test_ONNX_nets.ResNet50v1/0, where GetParam() = DLIE/CPU
peak: 2554384
rss:  437168

[       OK ] Test_ONNX_nets.ResNet50v1/0 (721 ms)
[ RUN      ] Test_ONNX_nets.ResNet101_DUC_HDC/0, where GetParam() = DLIE/CPU
peak: 2554384
rss:  736676

[       OK ] Test_ONNX_nets.ResNet101_DUC_HDC/0 (37156 ms)
[ RUN      ] Test_ONNX_nets.TinyYolov2/0, where GetParam() = DLIE/CPU
peak: 2554384
rss:  2148244

[       OK ] Test_ONNX_nets.TinyYolov2/0 (367 ms)
[ RUN      ] Test_ONNX_nets.CNN_MNIST/0, where GetParam() = DLIE/CPU
peak: 2554384
rss:  2093548

[       OK ] Test_ONNX_nets.CNN_MNIST/0 (9 ms)
[ RUN      ] Test_ONNX_nets.MobileNet_v2/0, where GetParam() = DLIE/CPU
peak: 2554384
rss:  2093932

[       OK ] Test_ONNX_nets.MobileNet_v2/0 (235 ms)
[ RUN      ] Test_ONNX_nets.Emotion_ferplus/0, where GetParam() = DLIE/CPU
peak: 2554384
rss:  2094008

[       OK ] Test_ONNX_nets.Emotion_ferplus/0 (198 ms)
[ RUN      ] Test_ONNX_nets.Inception_v2/0, where GetParam() = DLIE/CPU
[     SKIP ] 
[       OK ] Test_ONNX_nets.Inception_v2/0 (0 ms)
[ RUN      ] Test_ONNX_nets.DenseNet121/0, where GetParam() = DLIE/CPU
peak: 2554384
rss:  2094008

[       OK ] Test_ONNX_nets.DenseNet121/0 (704 ms)
[ RUN      ] Test_ONNX_nets.Inception_v1/0, where GetParam() = DLIE/CPU
peak: 2554384
rss:  2114880

[       OK ] Test_ONNX_nets.Inception_v1/0 (297 ms)
[ RUN      ] Test_ONNX_nets.Shufflenet/0, where GetParam() = DLIE/CPU
peak: 2554384
rss:  2114880

[       OK ] Test_ONNX_nets.Shufflenet/0 (367 ms)
[----------] 19 tests from Test_ONNX_nets (53684 ms total)

[----------] Global test environment tear-down
[==========] 19 tests from 1 test case ran. (53684 ms total)
[  PASSED  ] 19 tests."><pre class="notranslate"><code class="notranslate">$ make -j4 &amp;&amp; ./bin/opencv_test_dnn --gtest_filter=Test_ONNX_nets*/0:-Test_ONNX_nets.LResNet100E_IR*

[==========] Running 19 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 19 tests from Test_ONNX_nets
[ RUN      ] Test_ONNX_nets.Alexnet/0, where GetParam() = DLIE/CPU
[       OK ] Test_ONNX_nets.Alexnet/0 (1442 ms)
[ RUN      ] Test_ONNX_nets.Squeezenet/0, where GetParam() = DLIE/CPU
peak: 820860
rss:  84860

[       OK ] Test_ONNX_nets.Squeezenet/0 (99 ms)
[ RUN      ] Test_ONNX_nets.Googlenet/0, where GetParam() = DLIE/CPU
[     SKIP ] 
[       OK ] Test_ONNX_nets.Googlenet/0 (0 ms)
[ RUN      ] Test_ONNX_nets.CaffeNet/0, where GetParam() = DLIE/CPU
peak: 820860
rss:  94116

[       OK ] Test_ONNX_nets.CaffeNet/0 (1425 ms)
[ RUN      ] Test_ONNX_nets.RCNN_ILSVRC13/0, where GetParam() = DLIE/CPU
peak: 864380
rss:  93272

[       OK ] Test_ONNX_nets.RCNN_ILSVRC13/0 (1339 ms)
[ RUN      ] Test_ONNX_nets.VGG16/0, where GetParam() = DLIE/CPU
peak: 864380
rss:  93272

[       OK ] Test_ONNX_nets.VGG16/0 (3475 ms)
[ RUN      ] Test_ONNX_nets.VGG16_bn/0, where GetParam() = DLIE/CPU
peak: 2456332
rss:  197132

[       OK ] Test_ONNX_nets.VGG16_bn/0 (3459 ms)
[ RUN      ] Test_ONNX_nets.ZFNet/0, where GetParam() = DLIE/CPU
peak: 2554384
rss:  234012

[       OK ] Test_ONNX_nets.ZFNet/0 (2056 ms)
[ RUN      ] Test_ONNX_nets.ResNet18v1/0, where GetParam() = DLIE/CPU
peak: 2554384
rss:  257736

[       OK ] Test_ONNX_nets.ResNet18v1/0 (334 ms)
[ RUN      ] Test_ONNX_nets.ResNet50v1/0, where GetParam() = DLIE/CPU
peak: 2554384
rss:  437168

[       OK ] Test_ONNX_nets.ResNet50v1/0 (721 ms)
[ RUN      ] Test_ONNX_nets.ResNet101_DUC_HDC/0, where GetParam() = DLIE/CPU
peak: 2554384
rss:  736676

[       OK ] Test_ONNX_nets.ResNet101_DUC_HDC/0 (37156 ms)
[ RUN      ] Test_ONNX_nets.TinyYolov2/0, where GetParam() = DLIE/CPU
peak: 2554384
rss:  2148244

[       OK ] Test_ONNX_nets.TinyYolov2/0 (367 ms)
[ RUN      ] Test_ONNX_nets.CNN_MNIST/0, where GetParam() = DLIE/CPU
peak: 2554384
rss:  2093548

[       OK ] Test_ONNX_nets.CNN_MNIST/0 (9 ms)
[ RUN      ] Test_ONNX_nets.MobileNet_v2/0, where GetParam() = DLIE/CPU
peak: 2554384
rss:  2093932

[       OK ] Test_ONNX_nets.MobileNet_v2/0 (235 ms)
[ RUN      ] Test_ONNX_nets.Emotion_ferplus/0, where GetParam() = DLIE/CPU
peak: 2554384
rss:  2094008

[       OK ] Test_ONNX_nets.Emotion_ferplus/0 (198 ms)
[ RUN      ] Test_ONNX_nets.Inception_v2/0, where GetParam() = DLIE/CPU
[     SKIP ] 
[       OK ] Test_ONNX_nets.Inception_v2/0 (0 ms)
[ RUN      ] Test_ONNX_nets.DenseNet121/0, where GetParam() = DLIE/CPU
peak: 2554384
rss:  2094008

[       OK ] Test_ONNX_nets.DenseNet121/0 (704 ms)
[ RUN      ] Test_ONNX_nets.Inception_v1/0, where GetParam() = DLIE/CPU
peak: 2554384
rss:  2114880

[       OK ] Test_ONNX_nets.Inception_v1/0 (297 ms)
[ RUN      ] Test_ONNX_nets.Shufflenet/0, where GetParam() = DLIE/CPU
peak: 2554384
rss:  2114880

[       OK ] Test_ONNX_nets.Shufflenet/0 (367 ms)
[----------] 19 tests from Test_ONNX_nets (53684 ms total)

[----------] Global test environment tear-down
[==========] 19 tests from 1 test case ran. (53684 ms total)
[  PASSED  ] 19 tests.
</code></pre></div>
<p dir="auto">Note: <code class="notranslate">LResNet100E_IR</code> is excluded because they changed the model again <g-emoji class="g-emoji" alias="confused" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f615.png">😕</g-emoji></p>