0s autopkgtest [16:22:40]: starting date and time: 2025-03-15 16:22:40+0000 0s autopkgtest [16:22:40]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production' 0s autopkgtest [16:22:40]: host juju-7f2275-prod-proposed-migration-environment-9; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.8it736wa/out --timeout-copy=6000 --setup-commands 'ln -s /dev/null /etc/systemd/system/bluetooth.service; printf "http_proxy=http://squid.internal:3128\nhttps_proxy=http://squid.internal:3128\nno_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com,radosgw.ps5.canonical.com\n" >> /etc/environment' --apt-pocket=proposed=src:glibc --apt-upgrade r-cran-nleqslv --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=glibc/2.41-1ubuntu2 -- lxd -r lxd-armhf-10.145.243.188 lxd-armhf-10.145.243.188:autopkgtest/ubuntu/plucky/armhf 22s autopkgtest [16:23:02]: testbed dpkg architecture: armhf 24s autopkgtest [16:23:04]: testbed apt version: 2.9.33 27s autopkgtest [16:23:07]: @@@@@@@@@@@@@@@@@@@@ test bed setup 29s autopkgtest [16:23:09]: testbed release detected to be: None 37s autopkgtest [16:23:17]: updating testbed package index (apt update) 39s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [126 kB] 39s Get:2 http://ftpmaster.internal/ubuntu plucky InRelease [257 kB] 40s Get:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease [126 kB] 40s Get:4 http://ftpmaster.internal/ubuntu plucky-security InRelease [126 kB] 40s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [379 kB] 41s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [15.8 kB] 41s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [99.7 kB] 41s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf Packages [114 kB] 41s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf c-n-f Metadata [1832 B] 41s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/restricted armhf c-n-f Metadata [116 B] 41s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf Packages [312 kB] 41s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf c-n-f Metadata [11.1 kB] 41s Get:13 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse armhf Packages [3472 B] 41s Get:14 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse armhf c-n-f Metadata [240 B] 41s Get:15 http://ftpmaster.internal/ubuntu plucky/main Sources [1394 kB] 44s Get:16 http://ftpmaster.internal/ubuntu plucky/multiverse Sources [299 kB] 44s Get:17 http://ftpmaster.internal/ubuntu plucky/universe Sources [21.0 MB] 73s Get:18 http://ftpmaster.internal/ubuntu plucky/main armhf Packages [1378 kB] 75s Get:19 http://ftpmaster.internal/ubuntu plucky/main armhf c-n-f Metadata [29.4 kB] 75s Get:20 http://ftpmaster.internal/ubuntu plucky/restricted armhf c-n-f Metadata [108 B] 75s Get:21 http://ftpmaster.internal/ubuntu plucky/universe armhf Packages [15.1 MB] 96s Get:22 http://ftpmaster.internal/ubuntu plucky/multiverse armhf Packages [172 kB] 98s Fetched 41.0 MB in 59s (690 kB/s) 99s Reading package lists... 105s autopkgtest [16:24:25]: upgrading testbed (apt dist-upgrade and autopurge) 107s Reading package lists... 107s Building dependency tree... 107s Reading state information... 108s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 108s Starting 2 pkgProblemResolver with broken count: 0 108s Done 108s Entering ResolveByKeep 109s 109s Calculating upgrade... 109s The following packages will be upgraded: 109s libc-bin libc6 locales pinentry-curses python3-jinja2 sos strace 110s 7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 110s Need to get 8683 kB of archives. 110s After this operation, 23.6 kB of additional disk space will be used. 110s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf libc6 armhf 2.41-1ubuntu2 [2932 kB] 114s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf libc-bin armhf 2.41-1ubuntu2 [545 kB] 114s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf locales all 2.41-1ubuntu2 [4246 kB] 120s Get:4 http://ftpmaster.internal/ubuntu plucky/main armhf strace armhf 6.13+ds-1ubuntu1 [445 kB] 120s Get:5 http://ftpmaster.internal/ubuntu plucky/main armhf pinentry-curses armhf 1.3.1-2ubuntu3 [40.6 kB] 120s Get:6 http://ftpmaster.internal/ubuntu plucky/main armhf python3-jinja2 all 3.1.5-2ubuntu1 [109 kB] 120s Get:7 http://ftpmaster.internal/ubuntu plucky/main armhf sos all 4.9.0-5 [365 kB] 121s Preconfiguring packages ... 121s Fetched 8683 kB in 12s (752 kB/s) 122s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64655 files and directories currently installed.) 122s Preparing to unpack .../libc6_2.41-1ubuntu2_armhf.deb ... 122s Unpacking libc6:armhf (2.41-1ubuntu2) over (2.41-1ubuntu1) ... 122s Setting up libc6:armhf (2.41-1ubuntu2) ... 122s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64655 files and directories currently installed.) 122s Preparing to unpack .../libc-bin_2.41-1ubuntu2_armhf.deb ... 122s Unpacking libc-bin (2.41-1ubuntu2) over (2.41-1ubuntu1) ... 122s Setting up libc-bin (2.41-1ubuntu2) ... 123s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64655 files and directories currently installed.) 123s Preparing to unpack .../locales_2.41-1ubuntu2_all.deb ... 123s Unpacking locales (2.41-1ubuntu2) over (2.41-1ubuntu1) ... 123s Preparing to unpack .../strace_6.13+ds-1ubuntu1_armhf.deb ... 123s Unpacking strace (6.13+ds-1ubuntu1) over (6.11-0ubuntu1) ... 123s Preparing to unpack .../pinentry-curses_1.3.1-2ubuntu3_armhf.deb ... 123s Unpacking pinentry-curses (1.3.1-2ubuntu3) over (1.3.1-2ubuntu2) ... 123s Preparing to unpack .../python3-jinja2_3.1.5-2ubuntu1_all.deb ... 123s Unpacking python3-jinja2 (3.1.5-2ubuntu1) over (3.1.5-2) ... 123s Preparing to unpack .../archives/sos_4.9.0-5_all.deb ... 124s Unpacking sos (4.9.0-5) over (4.9.0-4) ... 124s Setting up sos (4.9.0-5) ... 124s Setting up pinentry-curses (1.3.1-2ubuntu3) ... 124s Setting up locales (2.41-1ubuntu2) ... 125s Generating locales (this might take a while)... 127s en_US.UTF-8... done 127s Generation complete. 127s Setting up python3-jinja2 (3.1.5-2ubuntu1) ... 127s Setting up strace (6.13+ds-1ubuntu1) ... 127s Processing triggers for man-db (2.13.0-1) ... 129s Processing triggers for systemd (257.3-1ubuntu3) ... 131s Reading package lists... 131s Building dependency tree... 131s Reading state information... 132s Starting pkgProblemResolver with broken count: 0 132s Starting 2 pkgProblemResolver with broken count: 0 132s Done 132s Solving dependencies... 133s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 134s autopkgtest [16:24:54]: rebooting testbed after setup commands that affected boot 174s autopkgtest [16:25:34]: testbed running kernel: Linux 6.8.0-52-generic #53~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jan 15 18:10:51 UTC 2 199s autopkgtest [16:25:59]: @@@@@@@@@@@@@@@@@@@@ apt-source r-cran-nleqslv 209s Get:1 http://ftpmaster.internal/ubuntu plucky/universe r-cran-nleqslv 3.3.5-1 (dsc) [2073 B] 209s Get:2 http://ftpmaster.internal/ubuntu plucky/universe r-cran-nleqslv 3.3.5-1 (tar) [82.5 kB] 209s Get:3 http://ftpmaster.internal/ubuntu plucky/universe r-cran-nleqslv 3.3.5-1 (diff) [2444 B] 209s gpgv: Signature made Mon Nov 27 19:33:07 2023 UTC 209s gpgv: using RSA key F1F007320A035541F0A663CA578A0494D1C646D1 209s gpgv: issuer "tille@debian.org" 209s gpgv: Can't check signature: No public key 209s dpkg-source: warning: cannot verify inline signature for ./r-cran-nleqslv_3.3.5-1.dsc: no acceptable signature found 210s autopkgtest [16:26:10]: testing package r-cran-nleqslv version 3.3.5-1 212s autopkgtest [16:26:12]: build not needed 215s autopkgtest [16:26:15]: test generic: preparing testbed 217s Reading package lists... 217s Building dependency tree... 217s Reading state information... 218s Starting pkgProblemResolver with broken count: 0 218s Starting 2 pkgProblemResolver with broken count: 0 218s Done 219s The following NEW packages will be installed: 219s fontconfig fontconfig-config fonts-dejavu-core fonts-dejavu-mono libblas3 219s libcairo2 libdatrie1 libdeflate0 libfontconfig1 libfreetype6 libgfortran5 219s libgomp1 libgraphite2-3 libharfbuzz0b libice6 libjbig0 libjpeg-turbo8 219s libjpeg8 liblapack3 liblerc4 libpango-1.0-0 libpangocairo-1.0-0 219s libpangoft2-1.0-0 libpaper-utils libpaper2 libpixman-1-0 libsharpyuv0 libsm6 219s libtcl8.6 libthai-data libthai0 libtiff6 libtk8.6 libwebp7 libxcb-render0 219s libxcb-shm0 libxft2 libxrender1 libxss1 libxt6t64 r-base-core r-cran-nleqslv 219s unzip x11-common xdg-utils zip 219s 0 upgraded, 46 newly installed, 0 to remove and 0 not upgraded. 219s Need to get 37.7 MB of archives. 219s After this operation, 70.6 MB of additional disk space will be used. 219s Get:1 http://ftpmaster.internal/ubuntu plucky/main armhf libfreetype6 armhf 2.13.3+dfsg-1 [330 kB] 219s Get:2 http://ftpmaster.internal/ubuntu plucky/main armhf fonts-dejavu-mono all 2.37-8 [502 kB] 220s Get:3 http://ftpmaster.internal/ubuntu plucky/main armhf fonts-dejavu-core all 2.37-8 [835 kB] 221s Get:4 http://ftpmaster.internal/ubuntu plucky/main armhf fontconfig-config armhf 2.15.0-2ubuntu1 [37.5 kB] 221s Get:5 http://ftpmaster.internal/ubuntu plucky/main armhf libfontconfig1 armhf 2.15.0-2ubuntu1 [114 kB] 221s Get:6 http://ftpmaster.internal/ubuntu plucky/main armhf fontconfig armhf 2.15.0-2ubuntu1 [190 kB] 221s Get:7 http://ftpmaster.internal/ubuntu plucky/main armhf libblas3 armhf 3.12.1-2 [132 kB] 221s Get:8 http://ftpmaster.internal/ubuntu plucky/main armhf libpixman-1-0 armhf 0.44.0-3 [183 kB] 222s Get:9 http://ftpmaster.internal/ubuntu plucky/main armhf libxcb-render0 armhf 1.17.0-2 [15.3 kB] 222s Get:10 http://ftpmaster.internal/ubuntu plucky/main armhf libxcb-shm0 armhf 1.17.0-2 [5774 B] 222s Get:11 http://ftpmaster.internal/ubuntu plucky/main armhf libxrender1 armhf 1:0.9.10-1.1build1 [16.0 kB] 222s Get:12 http://ftpmaster.internal/ubuntu plucky/main armhf libcairo2 armhf 1.18.2-2 [484 kB] 222s Get:13 http://ftpmaster.internal/ubuntu plucky/main armhf libdatrie1 armhf 0.2.13-3build1 [15.7 kB] 222s Get:14 http://ftpmaster.internal/ubuntu plucky/main armhf libdeflate0 armhf 1.23-1 [38.5 kB] 222s Get:15 http://ftpmaster.internal/ubuntu plucky/main armhf libgfortran5 armhf 15-20250222-0ubuntu1 [330 kB] 223s Get:16 http://ftpmaster.internal/ubuntu plucky/main armhf libgomp1 armhf 15-20250222-0ubuntu1 [128 kB] 223s Get:17 http://ftpmaster.internal/ubuntu plucky/main armhf libgraphite2-3 armhf 1.3.14-2ubuntu1 [64.8 kB] 223s Get:18 http://ftpmaster.internal/ubuntu plucky/main armhf libharfbuzz0b armhf 10.2.0-1 [464 kB] 223s Get:19 http://ftpmaster.internal/ubuntu plucky/main armhf x11-common all 1:7.7+23ubuntu3 [21.7 kB] 223s Get:20 http://ftpmaster.internal/ubuntu plucky/main armhf libice6 armhf 2:1.1.1-1 [36.5 kB] 224s Get:21 http://ftpmaster.internal/ubuntu plucky/main armhf libjpeg-turbo8 armhf 2.1.5-3ubuntu2 [127 kB] 224s Get:22 http://ftpmaster.internal/ubuntu plucky/main armhf libjpeg8 armhf 8c-2ubuntu11 [2148 B] 224s Get:23 http://ftpmaster.internal/ubuntu plucky/main armhf liblapack3 armhf 3.12.1-2 [2091 kB] 226s Get:24 http://ftpmaster.internal/ubuntu plucky/main armhf liblerc4 armhf 4.0.0+ds-5ubuntu1 [160 kB] 226s Get:25 http://ftpmaster.internal/ubuntu plucky/main armhf libthai-data all 0.1.29-2build1 [158 kB] 226s Get:26 http://ftpmaster.internal/ubuntu plucky/main armhf libthai0 armhf 0.1.29-2build1 [15.2 kB] 226s Get:27 http://ftpmaster.internal/ubuntu plucky/main armhf libpango-1.0-0 armhf 1.56.2-1 [216 kB] 227s Get:28 http://ftpmaster.internal/ubuntu plucky/main armhf libpangoft2-1.0-0 armhf 1.56.2-1 [43.6 kB] 227s Get:29 http://ftpmaster.internal/ubuntu plucky/main armhf libpangocairo-1.0-0 armhf 1.56.2-1 [25.1 kB] 227s Get:30 http://ftpmaster.internal/ubuntu plucky/main armhf libpaper2 armhf 2.2.5-0.3 [16.3 kB] 227s Get:31 http://ftpmaster.internal/ubuntu plucky/main armhf libpaper-utils armhf 2.2.5-0.3 [14.2 kB] 227s Get:32 http://ftpmaster.internal/ubuntu plucky/main armhf libsharpyuv0 armhf 1.5.0-0.1 [16.4 kB] 227s Get:33 http://ftpmaster.internal/ubuntu plucky/main armhf libsm6 armhf 2:1.2.4-1 [15.1 kB] 227s Get:34 http://ftpmaster.internal/ubuntu plucky/main armhf libtcl8.6 armhf 8.6.16+dfsg-1 [909 kB] 228s Get:35 http://ftpmaster.internal/ubuntu plucky/main armhf libjbig0 armhf 2.1-6.1ubuntu2 [24.9 kB] 228s Get:36 http://ftpmaster.internal/ubuntu plucky/main armhf libwebp7 armhf 1.5.0-0.1 [188 kB] 228s Get:37 http://ftpmaster.internal/ubuntu plucky/main armhf libtiff6 armhf 4.5.1+git230720-4ubuntu4 [179 kB] 228s Get:38 http://ftpmaster.internal/ubuntu plucky/main armhf libxft2 armhf 2.3.6-1build1 [37.4 kB] 228s Get:39 http://ftpmaster.internal/ubuntu plucky/main armhf libxss1 armhf 1:1.2.3-1build3 [6500 B] 228s Get:40 http://ftpmaster.internal/ubuntu plucky/main armhf libtk8.6 armhf 8.6.16-1 [686 kB] 229s Get:41 http://ftpmaster.internal/ubuntu plucky/main armhf libxt6t64 armhf 1:1.2.1-1.2build1 [145 kB] 229s Get:42 http://ftpmaster.internal/ubuntu plucky/main armhf zip armhf 3.0-14ubuntu2 [164 kB] 229s Get:43 http://ftpmaster.internal/ubuntu plucky/main armhf unzip armhf 6.0-28ubuntu6 [167 kB] 229s Get:44 http://ftpmaster.internal/ubuntu plucky/main armhf xdg-utils all 1.2.1-2ubuntu1 [66.0 kB] 229s Get:45 http://ftpmaster.internal/ubuntu plucky/universe armhf r-base-core armhf 4.4.3-1 [28.2 MB] 260s Get:46 http://ftpmaster.internal/ubuntu plucky/universe armhf r-cran-nleqslv armhf 3.3.5-1 [97.2 kB] 260s Preconfiguring packages ... 260s Fetched 37.7 MB in 41s (915 kB/s) 260s Selecting previously unselected package libfreetype6:armhf. 260s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64655 files and directories currently installed.) 260s Preparing to unpack .../00-libfreetype6_2.13.3+dfsg-1_armhf.deb ... 260s Unpacking libfreetype6:armhf (2.13.3+dfsg-1) ... 260s Selecting previously unselected package fonts-dejavu-mono. 260s Preparing to unpack .../01-fonts-dejavu-mono_2.37-8_all.deb ... 260s Unpacking fonts-dejavu-mono (2.37-8) ... 260s Selecting previously unselected package fonts-dejavu-core. 261s Preparing to unpack .../02-fonts-dejavu-core_2.37-8_all.deb ... 261s Unpacking fonts-dejavu-core (2.37-8) ... 261s Selecting previously unselected package fontconfig-config. 261s Preparing to unpack .../03-fontconfig-config_2.15.0-2ubuntu1_armhf.deb ... 261s Unpacking fontconfig-config (2.15.0-2ubuntu1) ... 261s Selecting previously unselected package libfontconfig1:armhf. 261s Preparing to unpack .../04-libfontconfig1_2.15.0-2ubuntu1_armhf.deb ... 261s Unpacking libfontconfig1:armhf (2.15.0-2ubuntu1) ... 261s Selecting previously unselected package fontconfig. 261s Preparing to unpack .../05-fontconfig_2.15.0-2ubuntu1_armhf.deb ... 261s Unpacking fontconfig (2.15.0-2ubuntu1) ... 261s Selecting previously unselected package libblas3:armhf. 261s Preparing to unpack .../06-libblas3_3.12.1-2_armhf.deb ... 261s Unpacking libblas3:armhf (3.12.1-2) ... 261s Selecting previously unselected package libpixman-1-0:armhf. 261s Preparing to unpack .../07-libpixman-1-0_0.44.0-3_armhf.deb ... 261s Unpacking libpixman-1-0:armhf (0.44.0-3) ... 261s Selecting previously unselected package libxcb-render0:armhf. 261s Preparing to unpack .../08-libxcb-render0_1.17.0-2_armhf.deb ... 261s Unpacking libxcb-render0:armhf (1.17.0-2) ... 261s Selecting previously unselected package libxcb-shm0:armhf. 261s Preparing to unpack .../09-libxcb-shm0_1.17.0-2_armhf.deb ... 261s Unpacking libxcb-shm0:armhf (1.17.0-2) ... 261s Selecting previously unselected package libxrender1:armhf. 261s Preparing to unpack .../10-libxrender1_1%3a0.9.10-1.1build1_armhf.deb ... 261s Unpacking libxrender1:armhf (1:0.9.10-1.1build1) ... 261s Selecting previously unselected package libcairo2:armhf. 261s Preparing to unpack .../11-libcairo2_1.18.2-2_armhf.deb ... 261s Unpacking libcairo2:armhf (1.18.2-2) ... 261s Selecting previously unselected package libdatrie1:armhf. 261s Preparing to unpack .../12-libdatrie1_0.2.13-3build1_armhf.deb ... 261s Unpacking libdatrie1:armhf (0.2.13-3build1) ... 261s Selecting previously unselected package libdeflate0:armhf. 261s Preparing to unpack .../13-libdeflate0_1.23-1_armhf.deb ... 261s Unpacking libdeflate0:armhf (1.23-1) ... 261s Selecting previously unselected package libgfortran5:armhf. 261s Preparing to unpack .../14-libgfortran5_15-20250222-0ubuntu1_armhf.deb ... 261s Unpacking libgfortran5:armhf (15-20250222-0ubuntu1) ... 261s Selecting previously unselected package libgomp1:armhf. 261s Preparing to unpack .../15-libgomp1_15-20250222-0ubuntu1_armhf.deb ... 261s Unpacking libgomp1:armhf (15-20250222-0ubuntu1) ... 261s Selecting previously unselected package libgraphite2-3:armhf. 261s Preparing to unpack .../16-libgraphite2-3_1.3.14-2ubuntu1_armhf.deb ... 261s Unpacking libgraphite2-3:armhf (1.3.14-2ubuntu1) ... 261s Selecting previously unselected package libharfbuzz0b:armhf. 261s Preparing to unpack .../17-libharfbuzz0b_10.2.0-1_armhf.deb ... 261s Unpacking libharfbuzz0b:armhf (10.2.0-1) ... 262s Selecting previously unselected package x11-common. 262s Preparing to unpack .../18-x11-common_1%3a7.7+23ubuntu3_all.deb ... 262s Unpacking x11-common (1:7.7+23ubuntu3) ... 262s Selecting previously unselected package libice6:armhf. 262s Preparing to unpack .../19-libice6_2%3a1.1.1-1_armhf.deb ... 262s Unpacking libice6:armhf (2:1.1.1-1) ... 262s Selecting previously unselected package libjpeg-turbo8:armhf. 262s Preparing to unpack .../20-libjpeg-turbo8_2.1.5-3ubuntu2_armhf.deb ... 262s Unpacking libjpeg-turbo8:armhf (2.1.5-3ubuntu2) ... 262s Selecting previously unselected package libjpeg8:armhf. 262s Preparing to unpack .../21-libjpeg8_8c-2ubuntu11_armhf.deb ... 262s Unpacking libjpeg8:armhf (8c-2ubuntu11) ... 262s Selecting previously unselected package liblapack3:armhf. 262s Preparing to unpack .../22-liblapack3_3.12.1-2_armhf.deb ... 262s Unpacking liblapack3:armhf (3.12.1-2) ... 262s Selecting previously unselected package liblerc4:armhf. 262s Preparing to unpack .../23-liblerc4_4.0.0+ds-5ubuntu1_armhf.deb ... 262s Unpacking liblerc4:armhf (4.0.0+ds-5ubuntu1) ... 262s Selecting previously unselected package libthai-data. 262s Preparing to unpack .../24-libthai-data_0.1.29-2build1_all.deb ... 262s Unpacking libthai-data (0.1.29-2build1) ... 262s Selecting previously unselected package libthai0:armhf. 262s Preparing to unpack .../25-libthai0_0.1.29-2build1_armhf.deb ... 262s Unpacking libthai0:armhf (0.1.29-2build1) ... 262s Selecting previously unselected package libpango-1.0-0:armhf. 262s Preparing to unpack .../26-libpango-1.0-0_1.56.2-1_armhf.deb ... 262s Unpacking libpango-1.0-0:armhf (1.56.2-1) ... 262s Selecting previously unselected package libpangoft2-1.0-0:armhf. 262s Preparing to unpack .../27-libpangoft2-1.0-0_1.56.2-1_armhf.deb ... 262s Unpacking libpangoft2-1.0-0:armhf (1.56.2-1) ... 262s Selecting previously unselected package libpangocairo-1.0-0:armhf. 262s Preparing to unpack .../28-libpangocairo-1.0-0_1.56.2-1_armhf.deb ... 262s Unpacking libpangocairo-1.0-0:armhf (1.56.2-1) ... 262s Selecting previously unselected package libpaper2:armhf. 262s Preparing to unpack .../29-libpaper2_2.2.5-0.3_armhf.deb ... 262s Unpacking libpaper2:armhf (2.2.5-0.3) ... 262s Selecting previously unselected package libpaper-utils. 262s Preparing to unpack .../30-libpaper-utils_2.2.5-0.3_armhf.deb ... 262s Unpacking libpaper-utils (2.2.5-0.3) ... 262s Selecting previously unselected package libsharpyuv0:armhf. 262s Preparing to unpack .../31-libsharpyuv0_1.5.0-0.1_armhf.deb ... 262s Unpacking libsharpyuv0:armhf (1.5.0-0.1) ... 262s Selecting previously unselected package libsm6:armhf. 262s Preparing to unpack .../32-libsm6_2%3a1.2.4-1_armhf.deb ... 262s Unpacking libsm6:armhf (2:1.2.4-1) ... 262s Selecting previously unselected package libtcl8.6:armhf. 262s Preparing to unpack .../33-libtcl8.6_8.6.16+dfsg-1_armhf.deb ... 262s Unpacking libtcl8.6:armhf (8.6.16+dfsg-1) ... 262s Selecting previously unselected package libjbig0:armhf. 262s Preparing to unpack .../34-libjbig0_2.1-6.1ubuntu2_armhf.deb ... 262s Unpacking libjbig0:armhf (2.1-6.1ubuntu2) ... 262s Selecting previously unselected package libwebp7:armhf. 262s Preparing to unpack .../35-libwebp7_1.5.0-0.1_armhf.deb ... 262s Unpacking libwebp7:armhf (1.5.0-0.1) ... 262s Selecting previously unselected package libtiff6:armhf. 263s Preparing to unpack .../36-libtiff6_4.5.1+git230720-4ubuntu4_armhf.deb ... 263s Unpacking libtiff6:armhf (4.5.1+git230720-4ubuntu4) ... 263s Selecting previously unselected package libxft2:armhf. 263s Preparing to unpack .../37-libxft2_2.3.6-1build1_armhf.deb ... 263s Unpacking libxft2:armhf (2.3.6-1build1) ... 263s Selecting previously unselected package libxss1:armhf. 263s Preparing to unpack .../38-libxss1_1%3a1.2.3-1build3_armhf.deb ... 263s Unpacking libxss1:armhf (1:1.2.3-1build3) ... 263s Selecting previously unselected package libtk8.6:armhf. 263s Preparing to unpack .../39-libtk8.6_8.6.16-1_armhf.deb ... 263s Unpacking libtk8.6:armhf (8.6.16-1) ... 263s Selecting previously unselected package libxt6t64:armhf. 263s Preparing to unpack .../40-libxt6t64_1%3a1.2.1-1.2build1_armhf.deb ... 263s Unpacking libxt6t64:armhf (1:1.2.1-1.2build1) ... 263s Selecting previously unselected package zip. 263s Preparing to unpack .../41-zip_3.0-14ubuntu2_armhf.deb ... 263s Unpacking zip (3.0-14ubuntu2) ... 263s Selecting previously unselected package unzip. 263s Preparing to unpack .../42-unzip_6.0-28ubuntu6_armhf.deb ... 263s Unpacking unzip (6.0-28ubuntu6) ... 263s Selecting previously unselected package xdg-utils. 263s Preparing to unpack .../43-xdg-utils_1.2.1-2ubuntu1_all.deb ... 263s Unpacking xdg-utils (1.2.1-2ubuntu1) ... 263s Selecting previously unselected package r-base-core. 263s Preparing to unpack .../44-r-base-core_4.4.3-1_armhf.deb ... 263s Unpacking r-base-core (4.4.3-1) ... 263s Selecting previously unselected package r-cran-nleqslv. 263s Preparing to unpack .../45-r-cran-nleqslv_3.3.5-1_armhf.deb ... 263s Unpacking r-cran-nleqslv (3.3.5-1) ... 263s Setting up libgraphite2-3:armhf (1.3.14-2ubuntu1) ... 263s Setting up libpixman-1-0:armhf (0.44.0-3) ... 263s Setting up libsharpyuv0:armhf (1.5.0-0.1) ... 263s Setting up liblerc4:armhf (4.0.0+ds-5ubuntu1) ... 263s Setting up libxrender1:armhf (1:0.9.10-1.1build1) ... 263s Setting up libdatrie1:armhf (0.2.13-3build1) ... 263s Setting up libxcb-render0:armhf (1.17.0-2) ... 263s Setting up unzip (6.0-28ubuntu6) ... 263s Setting up x11-common (1:7.7+23ubuntu3) ... 264s Setting up libdeflate0:armhf (1.23-1) ... 264s Setting up libxcb-shm0:armhf (1.17.0-2) ... 264s Setting up libgomp1:armhf (15-20250222-0ubuntu1) ... 264s Setting up libjbig0:armhf (2.1-6.1ubuntu2) ... 264s Setting up zip (3.0-14ubuntu2) ... 264s Setting up libblas3:armhf (3.12.1-2) ... 264s update-alternatives: using /usr/lib/arm-linux-gnueabihf/blas/libblas.so.3 to provide /usr/lib/arm-linux-gnueabihf/libblas.so.3 (libblas.so.3-arm-linux-gnueabihf) in auto mode 264s Setting up libfreetype6:armhf (2.13.3+dfsg-1) ... 264s Setting up fonts-dejavu-mono (2.37-8) ... 264s Setting up libtcl8.6:armhf (8.6.16+dfsg-1) ... 264s Setting up fonts-dejavu-core (2.37-8) ... 264s Setting up libjpeg-turbo8:armhf (2.1.5-3ubuntu2) ... 264s Setting up libgfortran5:armhf (15-20250222-0ubuntu1) ... 264s Setting up libwebp7:armhf (1.5.0-0.1) ... 264s Setting up libharfbuzz0b:armhf (10.2.0-1) ... 264s Setting up libthai-data (0.1.29-2build1) ... 264s Setting up libxss1:armhf (1:1.2.3-1build3) ... 264s Setting up libpaper2:armhf (2.2.5-0.3) ... 264s Setting up xdg-utils (1.2.1-2ubuntu1) ... 264s update-alternatives: using /usr/bin/xdg-open to provide /usr/bin/open (open) in auto mode 264s Setting up libjpeg8:armhf (8c-2ubuntu11) ... 264s Setting up libice6:armhf (2:1.1.1-1) ... 264s Setting up liblapack3:armhf (3.12.1-2) ... 264s update-alternatives: using /usr/lib/arm-linux-gnueabihf/lapack/liblapack.so.3 to provide /usr/lib/arm-linux-gnueabihf/liblapack.so.3 (liblapack.so.3-arm-linux-gnueabihf) in auto mode 264s Setting up fontconfig-config (2.15.0-2ubuntu1) ... 264s Setting up libpaper-utils (2.2.5-0.3) ... 264s Setting up libthai0:armhf (0.1.29-2build1) ... 264s Setting up libtiff6:armhf (4.5.1+git230720-4ubuntu4) ... 264s Setting up libfontconfig1:armhf (2.15.0-2ubuntu1) ... 264s Setting up libsm6:armhf (2:1.2.4-1) ... 264s Setting up fontconfig (2.15.0-2ubuntu1) ... 266s Regenerating fonts cache... done. 266s Setting up libxft2:armhf (2.3.6-1build1) ... 266s Setting up libtk8.6:armhf (8.6.16-1) ... 266s Setting up libpango-1.0-0:armhf (1.56.2-1) ... 266s Setting up libcairo2:armhf (1.18.2-2) ... 266s Setting up libxt6t64:armhf (1:1.2.1-1.2build1) ... 266s Setting up libpangoft2-1.0-0:armhf (1.56.2-1) ... 266s Setting up libpangocairo-1.0-0:armhf (1.56.2-1) ... 266s Setting up r-base-core (4.4.3-1) ... 266s Creating config file /etc/R/Renviron with new version 266s Setting up r-cran-nleqslv (3.3.5-1) ... 266s Processing triggers for man-db (2.13.0-1) ... 267s Processing triggers for install-info (7.1.1-1) ... 267s Processing triggers for libc-bin (2.41-1ubuntu2) ... 275s autopkgtest [16:27:15]: test generic: [----------------------- 277s BEGIN TEST tests/brdban.R 277s 277s R version 4.4.3 (2025-02-28) -- "Trophy Case" 277s Copyright (C) 2025 The R Foundation for Statistical Computing 277s Platform: arm-unknown-linux-gnueabihf (32-bit) 277s 277s R is free software and comes with ABSOLUTELY NO WARRANTY. 277s You are welcome to redistribute it under certain conditions. 277s Type 'license()' or 'licence()' for distribution details. 277s 277s R is a collaborative project with many contributors. 277s Type 'contributors()' for more information and 277s 'citation()' on how to cite R or R packages in publications. 277s 277s Type 'demo()' for some demos, 'help()' for on-line help, or 277s 'help.start()' for an HTML browser interface to help. 277s Type 'q()' to quit R. 277s 277s > # Broyden banded function 277s > 277s > library("nleqslv") 277s > 277s > brdban <- function(x) { 277s + ml <- 5 277s + mu <- 1 277s + n <- length(x) 277s + y <- numeric(n) 277s + 277s + for( k in 1:n ) { 277s + 277s + k1 <- max(1, k - ml) 277s + k2 <- min(n, k + mu) 277s + 277s + temp = 0.0 277s + for(j in k1:k2) { 277s + if ( j != k ) { 277s + temp <- temp + x[j] * (1.0 + x[j]) 277s + } 277s + } 277s + 277s + y[k] <- x[k] * (2.0 + 5.0 * x[k]**2) + 1.0 - temp 277s + 277s + } 277s + y 277s + } 277s > 277s > n <- 10 277s > xstart <- -rep(1,n) 277s > 277s > xsol <- c( -0.42830, -0.47660, -0.51965, -0.55810, -0.59251, 277s + -0.62450, -0.62324, -0.62139, -0.62045, -0.58647 ) 277s > 277s > fsol <- brdban(xsol) 277s > 277s > znlq <- nleqslv(xstart, brdban, global="dbldog", method="Newton", 277s + control=list(trace=0,ftol=1e-8,xtol=1e-8,btol=1e-2,delta=-1.0)) 277s > znlq$termcd # should be 2 for x values within tolerance 277s [1] 1 277s > all(abs(znlq$fvec)<=1e-7) # may not have achieved ftol 277s [1] TRUE 277s > 277s > xstart <- -2*rep(1,n) 277s > znlq <- nleqslv(xstart, brdban, global="dbldog", method="Newton", 277s + control=list(trace=0,ftol=1e-8,xtol=1e-8,btol=1e-2,delta=-1.0)) 277s > znlq$termcd 277s [1] 1 277s > all(abs(znlq$fvec)<=1e-8) 277s [1] TRUE 277s > 277s > znlq <- nleqslv(xstart, brdban, global="dbldog", 277s + control=list(trace=0,ftol=1e-8,xtol=1e-8,btol=1e-2,delta=-1.0)) 277s > znlq$termcd # should be 2 for x values within tolerance 277s [1] 1 277s > all(abs(znlq$fvec)<=1e-7) # may not have achieved ftol 277s [1] TRUE 277s > 277s > xstart <- -2*rep(1,n) 277s > znlq <- nleqslv(xstart, brdban, global="dbldog", 277s + control=list(trace=0,ftol=1e-8,xtol=1e-8,btol=1e-2,delta=-1.0)) 277s > znlq$termcd 277s [1] 1 277s > all(abs(znlq$fvec)<=1e-8) 277s [1] TRUE 277s > 277s BEGIN TEST tests/brdbanded.R 277s 277s R version 4.4.3 (2025-02-28) -- "Trophy Case" 277s Copyright (C) 2025 The R Foundation for Statistical Computing 277s Platform: arm-unknown-linux-gnueabihf (32-bit) 277s 277s R is free software and comes with ABSOLUTELY NO WARRANTY. 277s You are welcome to redistribute it under certain conditions. 277s Type 'license()' or 'licence()' for distribution details. 277s 277s R is a collaborative project with many contributors. 277s Type 'contributors()' for more information and 277s 'citation()' on how to cite R or R packages in publications. 277s 277s Type 'demo()' for some demos, 'help()' for on-line help, or 277s 'help.start()' for an HTML browser interface to help. 277s Type 'q()' to quit R. 277s 277s > # Broyden banded 277s > 277s > library("nleqslv") 277s > 277s > brdban <- function(x,ml=5,mu=1) { 277s + n <- length(x) 277s + y <- numeric(n) 277s + 277s + for( k in 1:n ) { 277s + 277s + k1 <- max(1, k - ml) 277s + k2 <- min(n, k + mu) 277s + 277s + temp <- 0.0 277s + for(j in k1:k2) { 277s + if ( j != k ) { 277s + temp <- temp + x[j] * (1.0 + x[j]) 277s + } 277s + } 277s + 277s + y[k] <- x[k] * (2.0 + 5.0 * x[k]**2) + 1.0 - temp 277s + 277s + } 277s + y 277s + } 277s > 277s > n <- 10 277s > xstart <- -rep(1,n) 277s > ztol <- 1000*.Machine$double.eps 277s > 277s > z1 <- nleqslv(xstart,brdban, method="Newton") 277s > z2 <- nleqslv(xstart,brdban, method="Newton", control=list(dsub=5,dsuper=1)) 277s > 277s > cat("z1 termcd=",z1$termcd, "jcnt,fcnt=",z1$njcnt,z1$nfcnt,"\n") 277s z1 termcd= 1 jcnt,fcnt= 5 5 277s > cat("z2 termcd=",z2$termcd, "jcnt,fcnt=",z2$njcnt,z2$nfcnt,"\n") 277s z2 termcd= 1 jcnt,fcnt= 5 5 277s > z1$message 277s [1] "Function criterion near zero" 277s > z2$message 277s [1] "Function criterion near zero" 277s > all.equal(z2$x,z1$x) 277s [1] TRUE 277s > all.equal(z2$x,z1$x, tolerance=ztol) 277s [1] TRUE 277s > 277s > z1 <- nleqslv(xstart,brdban, ml=2,mu=2, method="Newton") 277s > z2 <- nleqslv(xstart,brdban, ml=2,mu=2, method="Newton", control=list(dsub=2,dsuper=2)) 277s > 277s > cat("z1 termcd=",z1$termcd, "jcnt,fcnt=",z1$njcnt,z1$nfcnt,"\n") 277s z1 termcd= 1 jcnt,fcnt= 5 5 277s > cat("z2 termcd=",z2$termcd, "jcnt,fcnt=",z2$njcnt,z2$nfcnt,"\n") 277s z2 termcd= 1 jcnt,fcnt= 5 5 277s > z1$message 277s [1] "Function criterion near zero" 277s > z2$message 277s [1] "Function criterion near zero" 277s > all.equal(z2$x,z1$x, tolerance=ztol) 277s [1] TRUE 277s > 277s > z3 <- nleqslv(xstart,brdban, ml=2,mu=2, method="Broyden") 277s > z4 <- nleqslv(xstart,brdban, ml=2,mu=2, method="Broyden", control=list(dsub=2,dsuper=2)) 277s > 277s > cat("z3 termcd=",z1$termcd, "jcnt,fcnt=",z3$njcnt,z3$nfcnt,"\n") 277s z3 termcd= 1 jcnt,fcnt= 1 20 277s > cat("z4 termcd=",z2$termcd, "jcnt,fcnt=",z4$njcnt,z4$nfcnt,"\n") 277s z4 termcd= 1 jcnt,fcnt= 1 20 277s > z3$message 277s [1] "Function criterion near zero" 277s > z4$message 277s [1] "Function criterion near zero" 277s > all.equal(z3$x,z1$x) 277s [1] TRUE 277s > all.equal(z4$x,z1$x) 277s [1] TRUE 277s > all.equal(z4$x,z3$x, tolerance=ztol) 277s [1] TRUE 277s > 277s BEGIN TEST tests/brdtri.R 277s 277s R version 4.4.3 (2025-02-28) -- "Trophy Case" 277s Copyright (C) 2025 The R Foundation for Statistical Computing 277s Platform: arm-unknown-linux-gnueabihf (32-bit) 277s 277s R is free software and comes with ABSOLUTELY NO WARRANTY. 277s You are welcome to redistribute it under certain conditions. 277s Type 'license()' or 'licence()' for distribution details. 277s 277s R is a collaborative project with many contributors. 277s Type 'contributors()' for more information and 277s 'citation()' on how to cite R or R packages in publications. 277s 277s Type 'demo()' for some demos, 'help()' for on-line help, or 277s 'help.start()' for an HTML browser interface to help. 277s Type 'q()' to quit R. 277s 278s > # Broyden tridiagonal 278s > 278s > library("nleqslv") 278s > 278s > brdtri <- function(x) { 278s + n <- length(x) 278s + y <- numeric(n) 278s + 278s + y[1] <- (3-2*x[1])*x[1] - 2*x[2] + 1 278s + y[n] <- (3-2*x[n])*x[n] - x[n-1] + 1 278s + 278s + k <- 2:(n-1) 278s + y[k] <- (3-2*x[k])*x[k] - x[k-1] - 2 * x[k+1] + 1 278s + 278s + y 278s + } 278s > 278s > n <- 100 278s > xstart <- -rep(1,n) 278s > ztol <- 1000*.Machine$double.eps 278s > 278s > z1 <- nleqslv(xstart,brdtri, method="Newton") 278s > z2 <- nleqslv(xstart,brdtri, method="Newton", control=list(dsub=1,dsuper=1)) 278s > 278s > cat("z1 termcd=",z1$termcd, "jcnt,fcnt=",z1$njcnt,z1$nfcnt,"\n") 278s z1 termcd= 1 jcnt,fcnt= 4 4 278s > cat("z2 termcd=",z2$termcd, "jcnt,fcnt=",z2$njcnt,z2$nfcnt,"\n") 278s z2 termcd= 1 jcnt,fcnt= 4 4 278s > z1$message 278s [1] "Function criterion near zero" 278s > z2$message 278s [1] "Function criterion near zero" 278s > all.equal(z2$x,z1$x) 278s [1] TRUE 278s > all.equal(z2$x,z1$x, tolerance=ztol) 278s [1] TRUE 278s > 278s > z1 <- nleqslv(xstart,brdtri, method="Newton") 278s > z2 <- nleqslv(xstart,brdtri, method="Newton", control=list(dsub=1,dsuper=1)) 278s > 278s > cat("z1 termcd=",z1$termcd, "jcnt,fcnt=",z1$njcnt,z1$nfcnt,"\n") 278s z1 termcd= 1 jcnt,fcnt= 4 4 278s > cat("z2 termcd=",z2$termcd, "jcnt,fcnt=",z2$njcnt,z2$nfcnt,"\n") 278s z2 termcd= 1 jcnt,fcnt= 4 4 278s > z1$message 278s [1] "Function criterion near zero" 278s > z2$message 278s [1] "Function criterion near zero" 278s > all.equal(z2$x,z1$x, tolerance=ztol) 278s [1] TRUE 278s > 278s > z3 <- nleqslv(xstart,brdtri, method="Broyden") 278s > z4 <- nleqslv(xstart,brdtri, method="Broyden", control=list(dsub=1,dsuper=1)) 278s > 278s > cat("z3 termcd=",z1$termcd, "jcnt,fcnt=",z3$njcnt,z3$nfcnt,"\n") 278s z3 termcd= 1 jcnt,fcnt= 1 10 278s > cat("z4 termcd=",z2$termcd, "jcnt,fcnt=",z4$njcnt,z4$nfcnt,"\n") 278s z4 termcd= 1 jcnt,fcnt= 1 10 278s > z3$message 278s [1] "x-values within tolerance 'xtol'" 278s > z4$message 278s [1] "x-values within tolerance 'xtol'" 278s > all.equal(z3$x,z1$x) 278s [1] TRUE 278s > all.equal(z4$x,z1$x) 278s [1] TRUE 278s > all.equal(z4$x,z3$x, tolerance=ztol) 278s [1] TRUE 278s > 278s BEGIN TEST tests/brdtrijac.R 278s 278s R version 4.4.3 (2025-02-28) -- "Trophy Case" 278s Copyright (C) 2025 The R Foundation for Statistical Computing 278s Platform: arm-unknown-linux-gnueabihf (32-bit) 278s 278s R is free software and comes with ABSOLUTELY NO WARRANTY. 278s You are welcome to redistribute it under certain conditions. 278s Type 'license()' or 'licence()' for distribution details. 278s 278s R is a collaborative project with many contributors. 278s Type 'contributors()' for more information and 278s 'citation()' on how to cite R or R packages in publications. 278s 278s Type 'demo()' for some demos, 'help()' for on-line help, or 278s 'help.start()' for an HTML browser interface to help. 278s Type 'q()' to quit R. 278s 278s > # Broyden banded function 278s > 278s > library(nleqslv) 278s > 278s > brdtri <- function(x) { 278s + n <- length(x) 278s + y <- numeric(n) 278s + 278s + # y[1] <- (3-2*x[1])*x[1] - 2*x[2] + 1 278s + # y[n] <- (3-2*x[n])*x[n] - x[n-1] + 1 278s + # 278s + # k <- 2:(n-1) 278s + # y[k] <- (3-2*x[k])*x[k] - x[k-1] - 2 * x[k+1] + 1 278s + # 278s + y <- (3-2*x)*x - c(0,x[-n]) - 2*c(x[-1],0) + 1 278s + y 278s + } 278s > 278s > brdtrijac <- function(x) { 278s + n <- length(x) 278s + J <- diag(3-4*x,n,n) 278s + J[row(J)==col(J)+1] <- -1 278s + J[row(J)==col(J)-1] <- -2 278s + J 278s + } 278s > 278s > options(echo=TRUE) 278s > 278s > n <- 10 278s > xstart <- -rep(1,n) 278s > fstart <- brdtri(xstart) 278s > 278s > z0 <- nleqslv(xstart,brdtri, method="Newton", global="dbldog") 278s > z0$message 278s [1] "Function criterion near zero" 278s > 278s > z1 <- nleqslv(xstart,brdtri, brdtrijac, method="Newton", global="dbldog",control=list(trace=0)) 278s > z1$message 278s [1] "Function criterion near zero" 278s > all.equal(z1$x,z0$x) 278s [1] TRUE 278s > 278s > z2 <- nleqslv(xstart,brdtri, brdtrijac, method="Newton", global="dbldog",control=list(trace=0,chkjac=TRUE)) 278s > z2$message 278s [1] "Function criterion near zero" 278s > all.equal(z2$x,z0$x) 278s [1] TRUE 278s > 278s > z3 <- nleqslv(xstart,brdtri, brdtrijac, method="Newton", global="dbldog",control=list(trace=0,dsub=1,dsuper=1)) 278s > z3$message 278s [1] "Function criterion near zero" 278s > all.equal(z2$x,z0$x) 278s [1] TRUE 278s > 278s > z4 <- nleqslv(xstart,brdtri, brdtrijac, method="Newton", global="dbldog",control=list(trace=0,dsub=1,dsuper=1,chkjac=TRUE)) 278s > z4$message 278s [1] "Function criterion near zero" 278s > all.equal(z2$x,z0$x) 278s [1] TRUE 278s > 278s BEGIN TEST tests/chquad.R 278s 278s R version 4.4.3 (2025-02-28) -- "Trophy Case" 278s Copyright (C) 2025 The R Foundation for Statistical Computing 278s Platform: arm-unknown-linux-gnueabihf (32-bit) 278s 278s R is free software and comes with ABSOLUTELY NO WARRANTY. 278s You are welcome to redistribute it under certain conditions. 278s Type 'license()' or 'licence()' for distribution details. 278s 278s R is a collaborative project with many contributors. 278s Type 'contributors()' for more information and 278s 'citation()' on how to cite R or R packages in publications. 278s 278s Type 'demo()' for some demos, 'help()' for on-line help, or 278s 'help.start()' for an HTML browser interface to help. 278s Type 'q()' to quit R. 278s 278s > 278s > # Chebyquad functions (no solution for n=8) 278s > 278s > library("nleqslv") 278s > 278s > chebyquad <- function(x) { 278s + n <- length(x) 278s + y <- numeric(n) 278s + 278s + for(j in 1:n) { 278s + t1 <- 1.0 278s + t2 <- 2.0*x[j] - 1.0 278s + tmp <- 2.0*t2 278s + 278s + for(i in 1:n) { 278s + y[i] <- y[i] + t2 278s + t3 <- tmp * t2 - t1 278s + t1 <- t2 278s + t2 <- t3 278s + } 278s + } 278s + 278s + y = y / n 278s + 278s + for(i in 1:n) { 278s + if ( i%%2 == 0 ) { 278s + y[i] = y[i] + 1.0 / (i * i - 1) 278s + } 278s + } 278s + 278s + y 278s + } 278s > 278s > chebyinit <- function(n) { 278s + x <- (1:n) / (n + 1) 278s + } 278s > 278s > for (n in c(1:7,9)) { # exclude n=8 since there is no solution 278s + xstart <- chebyinit(n) 278s + fstart <- chebyquad(xstart) 278s + 278s + zz <- nleqslv(xstart, chebyquad, global="dbldog", 278s + control=list(ftol=1e-8,xtol=1e-8,trace=0,btol=.01,delta=-2)) 278s + print(all(abs(zz$fvec)<=1e-8)) 278s + } 278s [1] TRUE 278s [1] TRUE 278s [1] TRUE 278s [1] TRUE 278s [1] TRUE 278s [1] TRUE 278s [1] TRUE 278s [1] TRUE 278s > 278s > for (n in c(1:7,9)) { # exclude n=8 since there is no solution 278s + xstart <- chebyinit(n) 278s + fstart <- chebyquad(xstart) 278s + 278s + zz <- nleqslv(xstart, chebyquad, global="dbldog", method="Newton", 278s + control=list(ftol=1e-8,xtol=1e-8,trace=0,btol=.01,delta=-2)) 278s + print(all(abs(zz$fvec)<=1e-8)) 278s + } 278s [1] TRUE 278s [1] TRUE 278s [1] TRUE 278s [1] TRUE 278s [1] TRUE 278s [1] TRUE 278s [1] TRUE 278s [1] TRUE 278s > 278s BEGIN TEST tests/control-try.R 278s 278s R version 4.4.3 (2025-02-28) -- "Trophy Case" 278s Copyright (C) 2025 The R Foundation for Statistical Computing 278s Platform: arm-unknown-linux-gnueabihf (32-bit) 278s 278s R is free software and comes with ABSOLUTELY NO WARRANTY. 278s You are welcome to redistribute it under certain conditions. 278s Type 'license()' or 'licence()' for distribution details. 278s 278s R is a collaborative project with many contributors. 278s Type 'contributors()' for more information and 278s 'citation()' on how to cite R or R packages in publications. 278s 278s Type 'demo()' for some demos, 'help()' for on-line help, or 278s 'help.start()' for an HTML browser interface to help. 278s Type 'q()' to quit R. 278s 278s > 278s > library(nleqslv) 278s > 278s > # Dennis Schnabel example 6.5.1 page 149 278s > f <- function(x) { 278s + y <- numeric(2) 278s + y[1] <- x[1]^2 + x[2]^2 - 2 278s + y[2] <- exp(x[1]-1) + x[2]^3 - 2 278s + y 278s + } 278s > 278s > # check error handling in control argument 278s > try(nleqslv(f,control=list(1e-3))) 278s > try(nleqslv(f,control=list(f=1e-3))) 278s Error in nleqslv(f, control = list(0.001)) : 278s 'control' argument must be a named list 278s > try(nleqslv(f,control=list(f=1e-7,b=1e-3))) 278s > 278s Error in nleqslv(f, control = list(f = 0.001)) : 278s unknown names in control: 'f' 278s Error in nleqslv(f, control = list(f = 1e-07, b = 0.001)) : 278s unknown names in control: 'f', 'b' 278s BEGIN TEST tests/dslnex.R 278s 278s R version 4.4.3 (2025-02-28) -- "Trophy Case" 278s Copyright (C) 2025 The R Foundation for Statistical Computing 278s Platform: arm-unknown-linux-gnueabihf (32-bit) 278s 278s R is free software and comes with ABSOLUTELY NO WARRANTY. 278s You are welcome to redistribute it under certain conditions. 278s Type 'license()' or 'licence()' for distribution details. 278s 278s R is a collaborative project with many contributors. 278s Type 'contributors()' for more information and 278s 'citation()' on how to cite R or R packages in publications. 278s 278s Type 'demo()' for some demos, 'help()' for on-line help, or 278s 'help.start()' for an HTML browser interface to help. 278s Type 'q()' to quit R. 278s 279s > 279s > library("nleqslv") 279s > 279s > # Dennis & Schnabel,1996,"Numerical methods for unconstrained optimization and nonlinear equations", SIAM 279s > # example 6.5.1 page 149 279s > 279s > dslnex <- function(x) { 279s + y <- numeric(2) 279s + y[1] <- x[1]^2 + x[2]^2 - 2 279s + y[2] <- exp(x[1]-1) + x[2]^3 - 2 279s + y 279s + } 279s > 279s > jacdsln <- function(x) { 279s + n <- length(x) 279s + Df <- matrix(numeric(n*n),n,n) 279s + Df[1,1] <- 2*x[1] 279s + Df[1,2] <- 2*x[2] 279s + Df[2,1] <- exp(x[1]-1) 279s + Df[2,2] <- 3*x[2]^2 279s + 279s + Df 279s + } 279s > 279s > xstart <- c(2,0.5) 279s > fstart <- dslnex(xstart) 279s > xstart 279s [1] 2.0 0.5 279s > fstart 279s [1] 2.2500000 0.8432818 279s > 279s > # a solution is c(1,1) 279s > 279s > do.print.xf <- FALSE 279s > 279s > print.result <- function(z) { 279s + if( do.print.xf ) { 279s + print(z$x) 279s + print(z$fvec) 279s + } 279s + print(z$message) 279s + print(all(abs(z$fvec)<=1e-8)) 279s + } 279s > 279s > # Broyden numerical Jacobian 279s > for( z in c("cline", "qline", "gline") ) { # cubic, quadratic, geometric linesearch 279s + znlq <- nleqslv(xstart, dslnex, global=z,control=list(btol=.01)) 279s + print.result(znlq) 279s + } 279s [1] "Function criterion near zero" 279s [1] TRUE 279s [1] "Function criterion near zero" 279s [1] TRUE 279s [1] "Function criterion near zero" 279s [1] TRUE 279s > 279s > # Broyden numerical Jacobian 279s > for( z in c("dbldog","pwldog") ) { # double dogleg, Powell (single) dogleg 279s + for( delta in c(-1.0, -2.0) ) { # Cauchy step , Newton step 279s + znlq <- nleqslv(xstart, dslnex, global=z, control=list(btol=.01,delta=delta)) 279s + print.result(znlq) 279s + } 279s + } 279s [1] "Function criterion near zero" 279s [1] TRUE 279s [1] "Function criterion near zero" 279s [1] TRUE 279s [1] "Function criterion near zero" 279s [1] TRUE 279s [1] "Function criterion near zero" 279s [1] TRUE 279s > 279s > # Broyden analytical jacobian 279s > for( z in c("dbldog","pwldog") ) { # double dogleg, Powell (single) dogleg 279s + for( delta in c(-1.0, -2.0) ) { # Cauchy step , Newton step 279s + znlq <- nleqslv(xstart, dslnex, jacdsln, global=z, control=list(btol=.01,delta=delta)) 279s + print.result(znlq) 279s + } 279s + } 279s [1] "Function criterion near zero" 279s [1] TRUE 279s [1] "Function criterion near zero" 279s [1] TRUE 279s [1] "Function criterion near zero" 279s [1] TRUE 279s [1] "Function criterion near zero" 279s [1] TRUE 279s > 279s > # Newton analytical jacobian 279s > for( z in c("dbldog","pwldog") ) { # double dogleg, Powell (single) dogleg 279s + for( delta in c(-1.0, -2.0) ) { # Cauchy step , Newton step 279s + znlq <- nleqslv(xstart, dslnex, jacdsln, method="Newton", global=z, control=list(btol=.01,delta=delta)) 279s + print.result(znlq) 279s + } 279s + } 279s [1] "Function criterion near zero" 279s [1] TRUE 279s [1] "Function criterion near zero" 279s [1] TRUE 279s [1] "Function criterion near zero" 279s [1] TRUE 279s [1] "Function criterion near zero" 279s [1] TRUE 279s > 279s BEGIN TEST tests/dslnexCN.R 279s 279s R version 4.4.3 (2025-02-28) -- "Trophy Case" 279s Copyright (C) 2025 The R Foundation for Statistical Computing 279s Platform: arm-unknown-linux-gnueabihf (32-bit) 279s 279s R is free software and comes with ABSOLUTELY NO WARRANTY. 279s You are welcome to redistribute it under certain conditions. 279s Type 'license()' or 'licence()' for distribution details. 279s 279s R is a collaborative project with many contributors. 279s Type 'contributors()' for more information and 279s 'citation()' on how to cite R or R packages in publications. 279s 279s Type 'demo()' for some demos, 'help()' for on-line help, or 279s 'help.start()' for an HTML browser interface to help. 279s Type 'q()' to quit R. 279s 279s > 279s > library("nleqslv") 279s > 279s > # Dennis & Schnabel,1996,"Numerical methods for unconstrained optimization and nonlinear equations", SIAM 279s > # example 6.5.1 page 149 279s > 279s > dslnex <- function(x) { 279s + y <- numeric(2) 279s + y[1] <- x[1]^2 + x[2]^2 - 2 279s + y[2] <- exp(x[1]-1) + x[2]^3 - 2 279s + y 279s + } 279s > 279s > 279s > xstart <- c(2,0.5) 279s > fstart <- dslnex(xstart) 279s > xstart 279s [1] 2.0 0.5 279s > fstart 279s [1] 2.2500000 0.8432818 279s > 279s > do.print.xf <- TRUE 279s > 279s > print.result <- function(z) { 279s + if( do.print.xf ) { 279s + print(z$x) 279s + print(z$fvec) 279s + } 279s + print(z$message) 279s + print(all(abs(z$fvec)<=1e-8)) 279s + } 279s > 279s > sink("dslnexCN-num.txt") 279s > for( z in c("dbldog","pwldog") ) { # double dogleg, Powell (single) dogleg 279s + for( delta in c(-1.0, -2.0) ) { # Cauchy step , Newton step 279s + znlq <- nleqslv(xstart, dslnex, global=z, control=list(btol=.01,delta=delta, trace=1)) 279s + print.result(znlq) 279s + } 279s + } 279s > sink() 279s > 279s > sink("dslnexCN-char.txt") 279s > for( z in c("dbldog","pwldog") ) { # double dogleg, Powell (single) dogleg 279s + for( delta in c("cauchy", "newton") ) { # Cauchy step , Newton step 279s + znlq <- nleqslv(xstart, dslnex, global=z, control=list(btol=.01,delta=delta,trace=1)) 279s + print.result(znlq) 279s + } 279s + } 279s > sink() 279s > 279s > z1 <- readLines(con="dslnexCN-num.txt") 279s > z2 <- readLines(con="dslnexCN-char.txt") 279s > 279s > all.equal(z1,z2) 279s [1] TRUE 279s > 279s BEGIN TEST tests/dslnexHook.R 279s 279s R version 4.4.3 (2025-02-28) -- "Trophy Case" 279s Copyright (C) 2025 The R Foundation for Statistical Computing 279s Platform: arm-unknown-linux-gnueabihf (32-bit) 279s 279s R is free software and comes with ABSOLUTELY NO WARRANTY. 279s You are welcome to redistribute it under certain conditions. 279s Type 'license()' or 'licence()' for distribution details. 279s 279s R is a collaborative project with many contributors. 279s Type 'contributors()' for more information and 279s 'citation()' on how to cite R or R packages in publications. 279s 279s Type 'demo()' for some demos, 'help()' for on-line help, or 279s 'help.start()' for an HTML browser interface to help. 279s Type 'q()' to quit R. 279s 279s > 279s > library(nleqslv) 279s > 279s > # Dennis & Schnabel,1996,"Numerical methods for unconstrained optimization and nonlinear equations", SIAM 279s > # example 6.5.1 page 149 279s > 279s > dslnex <- function(x) { 279s + y <- numeric(2) 279s + y[1] <- x[1]^2 + x[2]^2 - 2 279s + y[2] <- exp(x[1]-1) + x[2]^3 - 2 279s + y 279s + } 279s > 279s > 279s > do.print.xf <- FALSE 279s > do.trace <- 0 279s > print.result <- function(z) { 279s + if( do.print.xf ) { 279s + print(z$x) 279s + print(z$fvec) 279s + } 279s + print(z$message) 279s + print(all(abs(z$fvec)<=1e-8)) 279s + } 279s > 279s > xcmp.result <- function(z1,z2) all(abs(z1$x-z2$x) <= 1e-8) 279s > 279s > xstart <- c(2,0.5) 279s > hnlq1 <- nleqslv(xstart, dslnex, global="hook", control=list(btol=.01,delta="cauchy", trace=do.trace)) 279s > hnlq2 <- nleqslv(xstart, dslnex, global="hook", control=list(btol=.01,delta="newton", trace=do.trace)) 279s > print.result(hnlq1) 279s [1] "Function criterion near zero" 279s [1] TRUE 279s > print.result(hnlq2) 279s [1] "Function criterion near zero" 279s [1] TRUE 279s > xcmp.result(hnlq1,hnlq2) 279s [1] TRUE 279s > 279s > dnlq1 <- nleqslv(xstart, dslnex, global="dbldog", control=list(btol=.01,delta="cauchy", trace=do.trace)) 279s > dnlq2 <- nleqslv(xstart, dslnex, global="dbldog", control=list(btol=.01,delta="newton", trace=do.trace)) 279s > print.result(dnlq1) 279s [1] "Function criterion near zero" 279s [1] TRUE 279s > print.result(dnlq2) 279s [1] "Function criterion near zero" 279s [1] TRUE 279s > xcmp.result(dnlq1,dnlq2) 279s [1] TRUE 279s > xcmp.result(hnlq1,dnlq1) 279s [1] TRUE 279s > 279s > xstart <- c(1.1,1.1) 279s > hnlq1 <- nleqslv(xstart, dslnex, global="hook", control=list(btol=.01,delta="cauchy", trace=do.trace)) 279s > hnlq2 <- nleqslv(xstart, dslnex, global="hook", control=list(btol=.01,delta="newton", trace=do.trace)) 279s > print.result(hnlq1) 279s [1] "Function criterion near zero" 279s [1] TRUE 279s > print.result(hnlq2) 279s [1] "Function criterion near zero" 279s [1] TRUE 279s > xcmp.result(hnlq1,hnlq2) 279s [1] TRUE 279s > 279s > dnlq1 <- nleqslv(xstart, dslnex, global="dbldog", control=list(btol=.01,delta="cauchy", trace=do.trace)) 279s > dnlq2 <- nleqslv(xstart, dslnex, global="dbldog", control=list(btol=.01,delta="newton", trace=do.trace)) 279s > print.result(dnlq1) 279s [1] "Function criterion near zero" 279s [1] TRUE 279s > print.result(dnlq2) 279s [1] "Function criterion near zero" 279s [1] TRUE 279s > xcmp.result(dnlq1,dnlq2) 279s [1] TRUE 279s > xcmp.result(hnlq1,dnlq1) 279s [1] TRUE 279s > 279s BEGIN TEST tests/dslnexauto.R 279s 279s R version 4.4.3 (2025-02-28) -- "Trophy Case" 279s Copyright (C) 2025 The R Foundation for Statistical Computing 279s Platform: arm-unknown-linux-gnueabihf (32-bit) 279s 279s R is free software and comes with ABSOLUTELY NO WARRANTY. 279s You are welcome to redistribute it under certain conditions. 279s Type 'license()' or 'licence()' for distribution details. 279s 279s R is a collaborative project with many contributors. 279s Type 'contributors()' for more information and 279s 'citation()' on how to cite R or R packages in publications. 279s 279s Type 'demo()' for some demos, 'help()' for on-line help, or 279s 'help.start()' for an HTML browser interface to help. 279s Type 'q()' to quit R. 279s 279s > # Dennis Schnabel example 279s > 279s > library("nleqslv") 279s > 279s > dslnex <- function(x) { 279s + y <- numeric(2) 279s + y[1] <- x[1]^2 + x[2]^2 - 2 279s + y[2] <- exp(x[1]-1) + x[2]^3 - 2 279s + y 279s + } 279s > 279s > jacdsln <- function(x) { 279s + n <- length(x) 279s + Df <- matrix(numeric(n*n),n,n) 279s + Df[1,1] <- 2*x[1] 279s + Df[1,2] <- 2*x[2] 279s + Df[2,1] <- exp(x[1]-1) 279s + Df[2,2] <- 3*x[2]^2 279s + 279s + Df 279s + } 279s > 279s > xstart <- c(2,0.5) 279s > fstart <- dslnex(xstart) 279s > xstart 279s [1] 2.0 0.5 279s > fstart 279s [1] 2.2500000 0.8432818 279s > 279s > # a solution is c(1,1) 279s > 279s > do.print.xf <- FALSE 279s > 279s > print.result <- function(z) { 279s + if( do.print.xf ) { 279s + print(z$x) 279s + print(z$fvec) 279s + } 279s + print(z$message) 279s + print(all(abs(z$fvec)<=1e-8)) 279s + } 279s > 279s > # Use automatic scaling of x-values. Dosn't always work. 279s > 279s > # Broyden numerical Jacobian 279s > for( z in c("qline", "gline") ) { # quadratic, geometric linesearch 279s + znlq <- nleqslv(xstart, dslnex, global=z,xscalm="auto",control=list(btol=.01)) 279s + print.result(znlq) 279s + } 279s [1] "Function criterion near zero" 279s [1] TRUE 279s [1] "Function criterion near zero" 279s [1] TRUE 279s > 279s > # Broyden numerical Jacobian 279s > for( z in c("dbldog","pwldog") ) { # double dogleg, Powell (single) dogleg 279s + for( delta in c(-1.0, -2.0) ) { # Cauchy step , Newton step 279s + znlq <- nleqslv(xstart, dslnex, global=z,xscalm="auto", control=list(btol=.01,delta=delta)) 279s + print.result(znlq) 279s + } 279s + } 279s [1] "Function criterion near zero" 279s [1] TRUE 279s [1] "No better point found (algorithm has stalled)" 279s [1] FALSE 279s [1] "Function criterion near zero" 279s [1] TRUE 279s [1] "No better point found (algorithm has stalled)" 279s [1] FALSE 279s > 279s > # Broyden analytical jacobian 279s > for( z in c("dbldog","pwldog") ) { # double dogleg, Powell (single) dogleg 279s + for( delta in c(-1.0, -2.0) ) { # Cauchy step , Newton step 279s + znlq <- nleqslv(xstart, dslnex, jacdsln, global=z,xscalm="auto", control=list(btol=.01,delta=delta)) 279s + print.result(znlq) 279s + } 279s + } 279s [1] "Function criterion near zero" 279s [1] TRUE 279s [1] "No better point found (algorithm has stalled)" 279s [1] FALSE 279s [1] "Function criterion near zero" 279s [1] TRUE 279s [1] "No better point found (algorithm has stalled)" 279s [1] FALSE 279s > 279s > # Newton analytical jacobian 279s > for( z in c("dbldog","pwldog") ) { # double dogleg, Powell (single) dogleg 279s + for( delta in c(-1.0, -2.0) ) { # Cauchy step , Newton step 279s + znlq <- nleqslv(xstart, dslnex, jacdsln, method="Newton", global=z,xscalm="auto", control=list(btol=.01,delta=delta)) 279s + print.result(znlq) 279s + } 279s + } 279s [1] "No better point found (algorithm has stalled)" 279s [1] FALSE 279s [1] "No better point found (algorithm has stalled)" 279s [1] FALSE 279s [1] "No better point found (algorithm has stalled)" 279s [1] FALSE 279s [1] "No better point found (algorithm has stalled)" 279s [1] FALSE 279s > 279s BEGIN TEST tests/dslnexjacout.R 280s 280s R version 4.4.3 (2025-02-28) -- "Trophy Case" 280s Copyright (C) 2025 The R Foundation for Statistical Computing 280s Platform: arm-unknown-linux-gnueabihf (32-bit) 280s 280s R is free software and comes with ABSOLUTELY NO WARRANTY. 280s You are welcome to redistribute it under certain conditions. 280s Type 'license()' or 'licence()' for distribution details. 280s 280s R is a collaborative project with many contributors. 280s Type 'contributors()' for more information and 280s 'citation()' on how to cite R or R packages in publications. 280s 280s Type 'demo()' for some demos, 'help()' for on-line help, or 280s 'help.start()' for an HTML browser interface to help. 280s Type 'q()' to quit R. 280s 280s > # Dennis & Schnabel,1996,"Numerical methods for unconstrained optimization and nonlinear equations", SIAM 280s > # example 6.5.1 page 149 280s > 280s > library(nleqslv) 280s > 280s > dslnex <- function(x) { 280s + y <- numeric(2) 280s + y[1] <- x[1]^2 + x[2]^2 - 2 280s + y[2] <- exp(x[1]-1) + x[2]^3 - 2 280s + y 280s + } 280s > 280s > jacdsln <- function(x) { 280s + n <- length(x) 280s + Df <- matrix(numeric(n*n),n,n) 280s + Df[1,1] <- 2*x[1] 280s + Df[1,2] <- 2*x[2] 280s + Df[2,1] <- exp(x[1]-1) 280s + Df[2,2] <- 3*x[2]^2 280s + 280s + Df 280s + } 280s > 280s > do.print.xf <- FALSE 280s > do.trace <- 0 280s > 280s > print.result <- function(z) { 280s + if( do.print.xf ) { 280s + print(z$x) 280s + print(z$fvec) 280s + } 280s + print(z$message) 280s + print(all(abs(z$fvec)<=1e-8)) 280s + } 280s > 280s > xstart <- c(2,.5) 280s > 280s > z <- nleqslv(xstart,dslnex, jacobian=TRUE, control=list(trace=do.trace)) 280s > print.result(z) 280s [1] "Function criterion near zero" 280s [1] TRUE 280s > all.equal(z$jac,jacdsln(z$x), tolerance=0.05) 280s [1] TRUE 280s > 280s > z <- nleqslv(xstart,dslnex,jacdsln, jacobian=TRUE, control=list(trace=do.trace)) 280s > print.result(z) 280s [1] "Function criterion near zero" 280s [1] TRUE 280s > all.equal(z$jac,jacdsln(z$x), tolerance=0.05) 280s [1] TRUE 280s > 280s > z <- nleqslv(xstart,dslnex, method="Newton", jacobian=TRUE, control=list(trace=do.trace)) 280s > print.result(z) 280s [1] "Function criterion near zero" 280s [1] TRUE 280s > all.equal(z$jac,jacdsln(z$x), tolerance=10^3*.Machine$double.eps^0.5) 280s [1] TRUE 280s > 280s > z <- nleqslv(xstart,dslnex, jacdsln, method="Newton", jacobian=TRUE, control=list(trace=do.trace)) 280s > print.result(z) 280s [1] "Function criterion near zero" 280s [1] TRUE 280s > identical(z$jac,jacdsln(z$x)) 280s [1] TRUE 280s > 280s BEGIN TEST tests/dslnexscaled.R 280s 280s R version 4.4.3 (2025-02-28) -- "Trophy Case" 280s Copyright (C) 2025 The R Foundation for Statistical Computing 280s Platform: arm-unknown-linux-gnueabihf (32-bit) 280s 280s R is free software and comes with ABSOLUTELY NO WARRANTY. 280s You are welcome to redistribute it under certain conditions. 280s Type 'license()' or 'licence()' for distribution details. 280s 280s R is a collaborative project with many contributors. 280s Type 'contributors()' for more information and 280s 'citation()' on how to cite R or R packages in publications. 280s 280s Type 'demo()' for some demos, 'help()' for on-line help, or 280s 'help.start()' for an HTML browser interface to help. 280s Type 'q()' to quit R. 280s 280s > # Dennis Schnabel example 280s > 280s > library("nleqslv") 280s > 280s > dslnex <- function(x) { 280s + y <- numeric(2) 280s + y[1] <- x[1]^2 + x[2]^2 - 2 280s + y[2] <- exp(x[1]-1) + x[2]^3 - 2 280s + y 280s + } 280s > 280s > jacdsln <- function(x) { 280s + n <- length(x) 280s + Df <- matrix(numeric(n*n),n,n) 280s + Df[1,1] <- 2*x[1] 280s + Df[1,2] <- 2*x[2] 280s + Df[2,1] <- exp(x[1]-1) 280s + Df[2,2] <- 3*x[2]^2 280s + 280s + Df 280s + } 280s > 280s > xstart <- c(2,0.5) 280s > fstart <- dslnex(xstart) 280s > xstart 280s [1] 2.0 0.5 280s > fstart 280s [1] 2.2500000 0.8432818 280s > 280s > # a solution is c(1,1) 280s > 280s > do.print.xf <- FALSE 280s > 280s > print.result <- function(z) { 280s + if( do.print.xf ) { 280s + print(z$x) 280s + print(z$fvec) 280s + } 280s + print(z$message) 280s + print(all(abs(z$fvec)<=1e-8)) 280s + } 280s > 280s > # Use our fixed scaling 280s > 280s > znlq <- nleqslv(xstart, dslnex, jacdsln, global="dbldog", control=list(btol=.01,delta=-1.0,chkjac=TRUE,scalex=c(2,3))) 280s > if(znlq$termcd == -10) stop("Internal error in check analytical jacobian") 280s > 280s > # Broyden analytical jacobian 280s > for( z in c("dbldog","pwldog") ) { # double dogleg, Powell (single) dogleg 280s + for( delta in c(-1.0, -2.0) ) { # Cauchy step , Newton step 280s + znlq <- nleqslv(xstart, dslnex, jacdsln, global=z, control=list(btol=.01,delta=delta,chkjac=TRUE,scalex=c(2,3))) 280s + print.result(znlq) 280s + } 280s + } 280s [1] "Function criterion near zero" 280s [1] TRUE 280s [1] "Function criterion near zero" 280s [1] TRUE 280s [1] "Function criterion near zero" 280s [1] TRUE 280s [1] "Function criterion near zero" 280s [1] TRUE 280s > 280s > # Newton analytical jacobian 280s > for( z in c("dbldog","pwldog") ) { # double dogleg, Powell (single) dogleg 280s + for( delta in c(-1.0, -2.0) ) { # Cauchy step , Newton step 280s + znlq <- nleqslv(xstart, dslnex, jacdsln, method="Newton", global=z, control=list(btol=.01,delta=delta,chkjac=TRUE,scalex=c(2,3))) 280s + print.result(znlq) 280s + } 280s + } 280s [1] "Function criterion near zero" 280s [1] TRUE 280s [1] "Function criterion near zero" 280s [1] TRUE 280s [1] "Function criterion near zero" 280s [1] TRUE 280s [1] "Function criterion near zero" 280s [1] TRUE 280s > 280s BEGIN TEST tests/singular1.R 280s 280s R version 4.4.3 (2025-02-28) -- "Trophy Case" 280s Copyright (C) 2025 The R Foundation for Statistical Computing 280s Platform: arm-unknown-linux-gnueabihf (32-bit) 280s 280s R is free software and comes with ABSOLUTELY NO WARRANTY. 280s You are welcome to redistribute it under certain conditions. 280s Type 'license()' or 'licence()' for distribution details. 280s 280s R is a collaborative project with many contributors. 280s Type 'contributors()' for more information and 280s 'citation()' on how to cite R or R packages in publications. 280s 280s Type 'demo()' for some demos, 'help()' for on-line help, or 280s 'help.start()' for an HTML browser interface to help. 280s Type 'q()' to quit R. 280s 280s > 280s > library(nleqslv) 280s > 280s > # Brown almost linear function 280s > 280s > brown <- function(x) { 280s + n <- length(x) 280s + y <- numeric(n) 280s + 280s + y[1:(n-1)] <- x[1:(n-1)] + sum(x[1:n]) - (n + 1) 280s + y[n] <- prod(x[1:n]) - 1.0 280s + 280s + y 280s + } 280s > 280s > brownjac <- function(x) { 280s + n <- length(x) 280s + J <- matrix(1,nrow=n,ncol=n) 280s + diag(J) <- 2 280s + xprod <- prod(x) 280s + J[n,] <- xprod/x # exact 280s + J 280s + } 280s > 280s > print.result <- function(z, do.print.xf=FALSE) { 280s + if( do.print.xf ) { 280s + print(z$x) 280s + print(z$fvec) 280s + } 280s + print(z$message) 280s + print(all(abs(z$fvec)<=1e-8)) 280s + } 280s > 280s > for( m in c("Newton","Broyden") ) { 280s + for( n in c(50,100) ) { 280s + xstart <- rep(1,n)/2 280s + z <- nleqslv(xstart, brown, brownjac, method="Newton", 280s + control=list(trace=0,ftol=1e-10,delta="cauchy",allowSingular=TRUE)) 280s + print.result(z) 280s + } 280s + } 280s [1] "Function criterion near zero" 280s [1] TRUE 280s [1] "Function criterion near zero" 280s [1] TRUE 280s [1] "Function criterion near zero" 280s [1] TRUE 280s [1] "Function criterion near zero" 280s [1] TRUE 280s > 280s BEGIN TEST tests/singular2.R 280s 280s R version 4.4.3 (2025-02-28) -- "Trophy Case" 280s Copyright (C) 2025 The R Foundation for Statistical Computing 280s Platform: arm-unknown-linux-gnueabihf (32-bit) 280s 280s R is free software and comes with ABSOLUTELY NO WARRANTY. 280s You are welcome to redistribute it under certain conditions. 280s Type 'license()' or 'licence()' for distribution details. 280s 280s R is a collaborative project with many contributors. 280s Type 'contributors()' for more information and 280s 'citation()' on how to cite R or R packages in publications. 280s 280s Type 'demo()' for some demos, 'help()' for on-line help, or 280s 'help.start()' for an HTML browser interface to help. 280s Type 'q()' to quit R. 280s 280s > # http://stackoverflow.com/questions/29134996/solving-nonlinear-equation-in-r 280s > 280s > # wants to know if system has closed form solution 280s > # I want to see how nleqslv behaves 280s > 280s > set.seed(29) 280s > 280s > library(nleqslv) 280s > 280s > print.result <- function(z, do.print.xf=FALSE) { 280s + if( do.print.xf ) { 280s + print(z$x) 280s + print(z$fvec) 280s + } 280s + print(z$message) 280s + print(all(abs(z$fvec)<=1e-8)) 280s + } 280s > 280s > f <- function(X, a, b, c1, c2, c3) { 280s + Y <- numeric(3) 280s + x <- X[1] 280s + y <- X[2] 280s + z <- X[3] 280s + Y[1] <- x + y - x*y - c1 280s + Y[2] <- x + z - x*z - c2 280s + Y[3] <- a*y + b*z - c3 280s + return(Y) 280s + } 280s > 280s > Jac <- function(X, a, b, c1, c2, c3) { 280s + J <- matrix(0,nrow=3,ncol=3) 280s + x <- X[1] 280s + y <- X[2] 280s + z <- X[3] 280s + 280s + J[1,1] <- 1-y 280s + J[2,1] <- 1-z 280s + J[3,1] <- 0 280s + J[1,2] <- 1-x 280s + J[2,2] <- 0 280s + J[3,2] <- a 280s + J[1,3] <- 0 280s + J[2,3] <- 1-x 280s + J[3,3] <- b 280s + J 280s + } 280s > 280s > a <- 1 280s > b <- 1 280s > c1 <- 2 280s > c2 <- 3 280s > c3 <- 4 280s > 280s > # exact solution 280s > x <- (a*c1+b*c2-c3)/(a+b-c3) 280s > y <- (b*c1-b*c2-c1*c3+c3)/(-a*c1+a-b*c2+b) 280s > z <- (a*(c1-c2)+(c2-1)*c3)/(a*(c1-1)+b*(c2-1)) 280s > xsol <- c(x,y,z) 280s > 280s > X.start <- c(1,2,3) 280s > z1 <- nleqslv(X.start,f,Jac,a=a,b=b,c1=c1,c2=c2,c3=c3, 280s + method="Newton",control=list(trace=0,allowSingular=TRUE)) 281s > 281s > z2 <- nleqslv(X.start,f,Jac,a=a,b=b,c1=c1,c2=c2,c3=c3, 281s + method="Broyden",control=list(trace=0,allowSingular=TRUE)) 281s > 281s > all.equal(z1$x,xsol) 281s [1] TRUE 281s > all.equal(z2$x,xsol) 281s [1] TRUE 281s > print.result(z1) 281s [1] "Function criterion near zero" 281s [1] TRUE 281s > print.result(z2) 281s [1] "Function criterion near zero" 281s [1] TRUE 281s > 281s BEGIN TEST tests/singular3.R 281s 281s R version 4.4.3 (2025-02-28) -- "Trophy Case" 281s Copyright (C) 2025 The R Foundation for Statistical Computing 281s Platform: arm-unknown-linux-gnueabihf (32-bit) 281s 281s R is free software and comes with ABSOLUTELY NO WARRANTY. 281s You are welcome to redistribute it under certain conditions. 281s Type 'license()' or 'licence()' for distribution details. 281s 281s R is a collaborative project with many contributors. 281s Type 'contributors()' for more information and 281s 'citation()' on how to cite R or R packages in publications. 281s 281s Type 'demo()' for some demos, 'help()' for on-line help, or 281s 'help.start()' for an HTML browser interface to help. 281s Type 'q()' to quit R. 281s 281s > 281s > library(nleqslv) 281s > 281s > print.result <- function(z, do.print.xf=FALSE) { 281s + if( do.print.xf ) { 281s + print(z$x) 281s + print(z$fvec) 281s + } 281s + print(z$message) 281s + print(all(abs(z$fvec)<=1e-8)) 281s + } 281s > 281s > # Powell cautionary example 281s > # M.J.D. Powell, "A Hybrid Method for Nonlinear Equations", 281s > # in Numerical methods for Nonlinear Algebraic Equations, ed. P. Rabinowitz, 1970. 281s > 281s > 281s > f <- function(x) { 281s + y <- numeric(2) 281s + y[1] <- x[1] 281s + y[2] <- 10*x[1]/(x[1]+.1) + 2*x[2]^2 281s + 281s + y 281s + } 281s > 281s > jac <- function(x) { 281s + fjac <- matrix(0,nrow=2,ncol=2) 281s + 281s + fjac[1, 1] <- 1 281s + fjac[1, 2] <- 0 281s + fjac[2, 1] <- 1/(x[1]+0.1)^2 281s + fjac[2, 2] <- 4*x[2] 281s + 281s + fjac 281s + } 281s > 281s > xstart <- c(3,1) 281s > z1 <- nleqslv(xstart,f, method="Newton",control=list(trace=0,allowSingular=TRUE)) 281s > print.result(z1) 281s [1] "Function criterion near zero" 281s [1] TRUE 281s > xstart <- c(3,0) # singular start 281s > z2 <- nleqslv(xstart,f, method="Newton",control=list(trace=0,allowSingular=TRUE)) 281s > print.result(z2) 281s [1] "Function criterion near zero" 281s [1] TRUE 281s > 281s BEGIN TEST tests/trig.R 281s 281s R version 4.4.3 (2025-02-28) -- "Trophy Case" 281s Copyright (C) 2025 The R Foundation for Statistical Computing 281s Platform: arm-unknown-linux-gnueabihf (32-bit) 281s 281s R is free software and comes with ABSOLUTELY NO WARRANTY. 281s You are welcome to redistribute it under certain conditions. 281s Type 'license()' or 'licence()' for distribution details. 281s 281s R is a collaborative project with many contributors. 281s Type 'contributors()' for more information and 281s 'citation()' on how to cite R or R packages in publications. 281s 281s Type 'demo()' for some demos, 'help()' for on-line help, or 281s 'help.start()' for an HTML browser interface to help. 281s Type 'q()' to quit R. 281s 281s > 281s > library("nleqslv") 281s > 281s > # Trigonometric function 281s > trig <- function(x) { 281s + n <- length(x) 281s + y <- cos(x) 281s + s <- sum(y) 281s + y <- n - s + c(1:n) * (1-y) - sin(x) 281s + 281s + y 281s + } 281s > 281s > trigjac <- function(x) { 281s + n <- length(x) 281s + J <- matrix(numeric(n*n),n,n) 281s + 281s + for (p in 1:n) { 281s + J[,p] <- sin(x[p]) 281s + J[p,p] <- (p+1) * sin(x[p]) - cos(x[p]) 281s + } 281s + 281s + J 281s + } 281s > 281s > do.print.xf <- FALSE 281s > 281s > print.result <- function(z) { 281s + if( do.print.xf ) { 281s + print(z$x) 281s + print(z$fvec) 281s + } 281s + print(z$message) 281s + print(all(abs(z$fvec)<=1e-8)) 281s + } 281s > 281s > n <- 10 281s > xstart <- rep(1,n)/n 281s > fstart <- trig(xstart) 281s > 281s > znlm <- nleqslv(xstart, trig, global="dbldog", control=list(trace=0)) 281s > print.result(znlm) 281s [1] "Function criterion near zero" 281s [1] TRUE 281s > 281s BEGIN TEST tests/tscalargrad.R 281s 281s R version 4.4.3 (2025-02-28) -- "Trophy Case" 281s Copyright (C) 2025 The R Foundation for Statistical Computing 281s Platform: arm-unknown-linux-gnueabihf (32-bit) 281s 281s R is free software and comes with ABSOLUTELY NO WARRANTY. 281s You are welcome to redistribute it under certain conditions. 281s Type 'license()' or 'licence()' for distribution details. 281s 281s R is a collaborative project with many contributors. 281s Type 'contributors()' for more information and 281s 'citation()' on how to cite R or R packages in publications. 281s 281s Type 'demo()' for some demos, 'help()' for on-line help, or 281s 'help.start()' for an HTML browser interface to help. 281s Type 'q()' to quit R. 281s 281s > # http://r.789695.n4.nabble.com/newton-method-td2306111.html#a2306111 281s > # R-help, 29-07-2010: newton.method 281s > 281s > library(nleqslv) 281s > 281s > f <- function(x) 2.5*exp(-0.5*(2*0.045 - x)) + 2.5*exp(-0.045) + 2.5*exp(-1.5*x) - 100 281s > 281s > g1 <- function(x) 0.5*2.5*exp(-0.5*(2*0.045 - x)) - 1.5*2.5*exp(-1.5*x) 281s > g2 <- function(x) matrix(0.5*2.5*exp(-0.5*(2*0.045 - x)) - 1.5*2.5*exp(-1.5*x), nrow=1,ncol=1) 281s > 281s > xu.1 <- uniroot(f,c(-3,0), tol=1e-8)$root 281s > xu.2 <- uniroot(f,c( 6,8), tol=1e-8)$root 281s > 281s > xg1.1 <- nleqslv(-2,f,g1)$x 281s > xg2.1 <- nleqslv(-2,f,g2)$x 281s > 281s > xg1.2 <- nleqslv(8,f,g1)$x 281s > xg2.2 <- nleqslv(8,f,g2)$x 281s > 281s > all.equal(xg1.1, xu.1) 281s [1] TRUE 281s > all.equal(xg1.2, xu.2) 281s [1] TRUE 281s > all.equal(xg1.2, xg2.2) 281s [1] TRUE 281s > 281s > all.equal(xg2.1, xu.1) 281s [1] TRUE 281s > all.equal(xg2.2, xu.2) 281s [1] TRUE 281s > all.equal(xg1.2, xg2.2) 281s [1] TRUE 281s > 281s BEGIN TEST tests/xcutlip1p2.R 281s 281s R version 4.4.3 (2025-02-28) -- "Trophy Case" 281s Copyright (C) 2025 The R Foundation for Statistical Computing 281s Platform: arm-unknown-linux-gnueabihf (32-bit) 281s 281s R is free software and comes with ABSOLUTELY NO WARRANTY. 281s You are welcome to redistribute it under certain conditions. 281s Type 'license()' or 'licence()' for distribution details. 281s 281s R is a collaborative project with many contributors. 281s Type 'contributors()' for more information and 281s 'citation()' on how to cite R or R packages in publications. 281s 281s Type 'demo()' for some demos, 'help()' for on-line help, or 281s 'help.start()' for an HTML browser interface to help. 281s Type 'q()' to quit R. 281s 282s > # Steady-State solution for reaction rate equations 282s > # Shacham homotopy method (discrete changing of one or more parameters) 282s > # M. Shacham: Numerical Solution of Constrained Non-linear algebriac equations 282s > # International Journal for Numerical Methods in Engineering, 1986, pp.1455--1481. 282s > 282s > # solution should always be > 0 282s > 282s > library(nleqslv) 282s > 282s > RNGkind(kind="Wichmann-Hill") 282s > set.seed(123) 282s > 282s > # Problem 2, page 1463/1464 282s > 282s > cutlip <- function(x) { 282s + # paper has wrong order of parameters 282s + # use the Fortran program to get the correct values 282s + 282s + # parameter set 2 282s + k1 <- 17.721 282s + k2 <- 3.483 282s + k3 <- 505.051 282s + kr1<- 0.118 282s + kr2<- 0.033 282s + 282s + r <- numeric(6) 282s + 282s + r[1] = 1 - x[1] - k1*x[1]*x[6] + kr1 * x[4] 282s + r[2] = 1 - x[2] - k2*x[2]*x[6] + kr2 * x[5] 282s + r[3] = -x[3] + 2*k3*x[4]*x[5] 282s + r[4] = k1*x[1]*x[6] - kr1*x[4] - k3*x[4]*x[5] 282s + r[5] = 1.5*(k2*x[2]*x[6] - kr2*x[5]) - k3*x[4]*x[5] 282s + r[6] = 1 - x[4] - x[5] - x[6] 282s + 282s + r 282s + } 282s > 282s > 282s > Nrep <- 50 282s > xstart <- matrix(0,nrow=Nrep, ncol=6) 282s > xstart[,1] <- runif(Nrep,min=0,max=2) 282s > xstart[,2] <- runif(Nrep,min=0,max=1) 282s > xstart[,3] <- runif(Nrep,min=0,max=2) 282s > xstart[,4] <- runif(Nrep,min=0,max=1) 282s > xstart[,5] <- runif(Nrep,min=0,max=1) 282s > xstart[,6] <- runif(Nrep,min=0,max=1) 282s > 282s > ans <- searchZeros(xstart,cutlip, method="Broyden",global="dbldog") 282s > nrow(ans$x)==4 282s [1] TRUE 282s > all(ans$xfnorm <= 1e-10) 282s [1] TRUE 282s > 282s > zans <- searchZeros(ans$xstart,cutlip, method="Broyden",global="dbldog") 282s > length(zans$idxcvg)==4 282s [1] TRUE 282s > all(ans$xfnorm == zans$xfnorm) 282s [1] TRUE 282s > 282s BEGIN TEST tests/xnames.R 282s 282s R version 4.4.3 (2025-02-28) -- "Trophy Case" 282s Copyright (C) 2025 The R Foundation for Statistical Computing 282s Platform: arm-unknown-linux-gnueabihf (32-bit) 282s 282s R is free software and comes with ABSOLUTELY NO WARRANTY. 282s You are welcome to redistribute it under certain conditions. 282s Type 'license()' or 'licence()' for distribution details. 282s 282s R is a collaborative project with many contributors. 282s Type 'contributors()' for more information and 282s 'citation()' on how to cite R or R packages in publications. 282s 282s Type 'demo()' for some demos, 'help()' for on-line help, or 282s 'help.start()' for an HTML browser interface to help. 282s Type 'q()' to quit R. 282s 282s > 282s > library(nleqslv) 282s > 282s > f <- function(x) { 282s + y <-numeric(length(x)) 282s + y[1] <- x[1]^2 + x[2]^3 282s + y[2] <- x[1] + 2*x[2] + 3 282s + y 282s + } 282s > 282s > # test named x-values 282s > xstart <- c(a=1.0, b=0.5) 282s > xstart 282s a b 282s 1.0 0.5 282s > 282s > z <- nleqslv(xstart,f, control=list(trace=0)) 282s > all(names(z$x) == names(xstart)) 282s [1] TRUE 282s > 282s > # test named x-values 282s > xstart <- c(u=1.0, 0.5) 282s > xstart 282s u 282s 1.0 0.5 282s > 282s > z <- nleqslv(xstart,f, control=list(trace=0)) 282s > all(names(z$x) == names(xstart)) 282s [1] TRUE 282s > 282s BEGIN TEST tests/xsearchzeros.R 282s 282s R version 4.4.3 (2025-02-28) -- "Trophy Case" 282s Copyright (C) 2025 The R Foundation for Statistical Computing 282s Platform: arm-unknown-linux-gnueabihf (32-bit) 282s 282s R is free software and comes with ABSOLUTELY NO WARRANTY. 282s You are welcome to redistribute it under certain conditions. 282s Type 'license()' or 'licence()' for distribution details. 282s 282s R is a collaborative project with many contributors. 282s Type 'contributors()' for more information and 282s 'citation()' on how to cite R or R packages in publications. 282s 282s Type 'demo()' for some demos, 'help()' for on-line help, or 282s 'help.start()' for an HTML browser interface to help. 282s Type 'q()' to quit R. 282s 282s > # R. Baker Kearfott, Some tests of Generalized Bisection, 282s > # ACM Transactions on Methematical Software, Vol. 13, No. 3, 1987, pp 197-220 282s > 282s > # A high-degree polynomial system (section 4.3 Problem 12) 282s > # There are 12 real roots (and 126 complex roots to this system!) 282s > 282s > library(nleqslv) 282s > 282s > hdp <- function(x) { 282s + f <- numeric(length(x)) 282s + f[1] <- 5 * x[1]^9 - 6 * x[1]^5 * x[2]^2 + x[1] * x[2]^4 + 2 * x[1] * x[3] 282s + f[2] <- -2 * x[1]^6 * x[2] + 2 * x[1]^2 * x[2]^3 + 2 * x[2] * x[3] 282s + f[3] <- x[1]^2 + x[2]^2 - 0.265625 282s + f 282s + } 282s > 282s > 282s > N <- 40 282s > set.seed(123) 282s > xstart <- matrix(runif(3*N,min=-1,max=1), N, 3) # N starting values, each of length 3 282s > 282s > ans <- searchZeros(xstart,hdp, method="Broyden",global="dbldog") 282s > nrow(ans$x) == 12 282s [1] TRUE 282s > all(ans$xfnorm <= 1e-10) 282s [1] TRUE 282s > 282s > zans <- searchZeros(ans$xstart,hdp, method="Broyden",global="dbldog") 282s > length(zans$idxcvg) == 12 282s [1] TRUE 282s > 282s BEGIN TEST tests/xtestnslv.R 282s 282s R version 4.4.3 (2025-02-28) -- "Trophy Case" 282s Copyright (C) 2025 The R Foundation for Statistical Computing 282s Platform: arm-unknown-linux-gnueabihf (32-bit) 282s 282s R is free software and comes with ABSOLUTELY NO WARRANTY. 282s You are welcome to redistribute it under certain conditions. 282s Type 'license()' or 'licence()' for distribution details. 282s 282s R is a collaborative project with many contributors. 282s Type 'contributors()' for more information and 282s 'citation()' on how to cite R or R packages in publications. 282s 282s Type 'demo()' for some demos, 'help()' for on-line help, or 282s 'help.start()' for an HTML browser interface to help. 282s Type 'q()' to quit R. 282s 282s > 282s > library(nleqslv) 282s > 282s > # function to replace small number with OK or if not with NZ 282s > # this is to avoid differences in the Fnorm column between machines/cpu/os/compilers 282s > 282s > # the test is for checking that testnslv (still) works as expected 282s > 282s > fixsmall <- function(x) { 282s + z <- ifelse(x < .Machine$double.eps^(2/3), "OK","NZ") 282s + z <- ifelse(is.na(z), "NA", z) 282s + z 282s + } 282s > 282s > dslnex <- function(x) { 282s + y <- numeric(2) 282s + y[1] <- x[1]^2 + x[2]^2 - 2 282s + y[2] <- exp(x[1]-1) + x[2]^3 - 2 282s + y 282s + } 282s > xstart <- c(0.5,0.5) 282s > fstart <- dslnex(xstart) 282s > z <- testnslv(xstart,dslnex) 282s > zfn <- z$out[,"Fnorm"] 282s > z$out[,"Fnorm"] <- fixsmall(zfn) 282s > z 282s Call: 282s testnslv(x = xstart, fn = dslnex) 282s 282s Results: 282s Method Global termcd Fcnt Jcnt Iter Message Fnorm 282s 1 Newton cline 1 7 6 6 Fcrit OK 282s 2 Newton qline 1 7 6 6 Fcrit OK 282s 3 Newton gline 1 9 5 5 Fcrit OK 282s 4 Newton pwldog 1 7 6 6 Fcrit OK 282s 5 Newton dbldog 1 7 6 6 Fcrit OK 282s 6 Newton hook 1 7 6 6 Fcrit OK 282s 7 Newton none 1 8 8 8 Fcrit OK 282s 8 Broyden cline 1 12 1 9 Fcrit OK 282s 9 Broyden qline 1 12 1 9 Fcrit OK 282s 10 Broyden gline 1 14 1 10 Fcrit OK 282s 11 Broyden pwldog 1 12 1 10 Fcrit OK 282s 12 Broyden dbldog 1 12 1 10 Fcrit OK 282s 13 Broyden hook 1 12 1 10 Fcrit OK 282s 14 Broyden none 1 13 1 13 Fcrit OK 282s > 282s > # this will encounter an error 282s > xstart <- c(2.0,0.5) 282s > fstart <- dslnex(xstart) 282s > z <- testnslv(xstart,dslnex) 282s Error (method=Newton global=none): non-finite value(s) detected in jacobian (row=2,col=1) 282s > zfn <- z$out[,"Fnorm"] 282s > z$out[,"Fnorm"] <- fixsmall(zfn) 282s > z 282s Call: 282s testnslv(x = xstart, fn = dslnex) 282s 282s Results: 282s Method Global termcd Fcnt Jcnt Iter Message Fnorm 282s 1 Newton cline 1 11 7 7 Fcrit OK 282s 2 Newton qline 1 10 7 7 Fcrit OK 282s 3 Newton gline 1 17 7 7 Fcrit OK 282s 4 Newton pwldog 1 6 5 5 Fcrit OK 282s 5 Newton dbldog 1 6 5 5 Fcrit OK 282s 6 Newton hook 1 11 7 7 Fcrit OK 282s 7 Newton none NA NA NA NA ERROR NA 282s 8 Broyden cline 1 17 1 11 Fcrit OK 282s 9 Broyden qline 1 18 1 13 Fcrit OK 282s 10 Broyden gline 1 25 1 11 Fcrit OK 282s 11 Broyden pwldog 1 12 1 10 Fcrit OK 282s 12 Broyden dbldog 1 12 1 10 Fcrit OK 282s 13 Broyden hook 1 16 1 12 Fcrit OK 282s 14 Broyden none 4 20 1 20 Maxiter NZ 282s > 283s autopkgtest [16:27:23]: test generic: -----------------------] 287s generic PASS 287s autopkgtest [16:27:27]: test generic: - - - - - - - - - - results - - - - - - - - - - 290s autopkgtest [16:27:30]: test pkg-r-autopkgtest: preparing testbed 292s Reading package lists... 292s Building dependency tree... 292s Reading state information... 293s Starting pkgProblemResolver with broken count: 0 293s Starting 2 pkgProblemResolver with broken count: 0 293s Done 294s The following NEW packages will be installed: 294s build-essential cpp cpp-14 cpp-14-arm-linux-gnueabihf 294s cpp-arm-linux-gnueabihf dctrl-tools g++ g++-14 g++-14-arm-linux-gnueabihf 294s g++-arm-linux-gnueabihf gcc gcc-14 gcc-14-arm-linux-gnueabihf 294s gcc-arm-linux-gnueabihf gfortran gfortran-14 gfortran-14-arm-linux-gnueabihf 294s gfortran-arm-linux-gnueabihf icu-devtools libasan8 libblas-dev libbz2-dev 294s libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libdeflate-dev libgcc-14-dev 294s libgfortran-14-dev libicu-dev libisl23 libjpeg-dev libjpeg-turbo8-dev 294s libjpeg8-dev liblapack-dev liblzma-dev libmpc3 libncurses-dev libpcre2-16-0 294s libpcre2-32-0 libpcre2-dev libpcre2-posix3 libpkgconf3 libpng-dev 294s libreadline-dev libstdc++-14-dev libtirpc-dev libubsan1 linux-libc-dev 294s pkg-r-autopkgtest pkgconf pkgconf-bin r-base-dev rpcsvc-proto zlib1g-dev 294s 0 upgraded, 55 newly installed, 0 to remove and 0 not upgraded. 294s Need to get 78.1 MB of archives. 294s After this operation, 243 MB of additional disk space will be used. 294s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf libc-dev-bin armhf 2.41-1ubuntu2 [23.0 kB] 294s Get:2 http://ftpmaster.internal/ubuntu plucky/main armhf linux-libc-dev armhf 6.14.0-10.10 [1683 kB] 296s Get:3 http://ftpmaster.internal/ubuntu plucky/main armhf libcrypt-dev armhf 1:4.4.38-1 [120 kB] 296s Get:4 http://ftpmaster.internal/ubuntu plucky/main armhf rpcsvc-proto armhf 1.4.2-0ubuntu7 [62.2 kB] 296s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf libc6-dev armhf 2.41-1ubuntu2 [1396 kB] 298s Get:6 http://ftpmaster.internal/ubuntu plucky/main armhf libisl23 armhf 0.27-1 [546 kB] 298s Get:7 http://ftpmaster.internal/ubuntu plucky/main armhf libmpc3 armhf 1.3.1-1build2 [47.1 kB] 299s Get:8 http://ftpmaster.internal/ubuntu plucky/main armhf cpp-14-arm-linux-gnueabihf armhf 14.2.0-17ubuntu3 [9220 kB] 310s Get:9 http://ftpmaster.internal/ubuntu plucky/main armhf cpp-14 armhf 14.2.0-17ubuntu3 [1030 B] 310s Get:10 http://ftpmaster.internal/ubuntu plucky/main armhf cpp-arm-linux-gnueabihf armhf 4:14.2.0-1ubuntu1 [5578 B] 310s Get:11 http://ftpmaster.internal/ubuntu plucky/main armhf cpp armhf 4:14.2.0-1ubuntu1 [22.4 kB] 310s Get:12 http://ftpmaster.internal/ubuntu plucky/main armhf libcc1-0 armhf 15-20250222-0ubuntu1 [38.9 kB] 310s Get:13 http://ftpmaster.internal/ubuntu plucky/main armhf libasan8 armhf 15-20250222-0ubuntu1 [2955 kB] 314s Get:14 http://ftpmaster.internal/ubuntu plucky/main armhf libubsan1 armhf 15-20250222-0ubuntu1 [1191 kB] 316s Get:15 http://ftpmaster.internal/ubuntu plucky/main armhf libgcc-14-dev armhf 14.2.0-17ubuntu3 [897 kB] 317s Get:16 http://ftpmaster.internal/ubuntu plucky/main armhf gcc-14-arm-linux-gnueabihf armhf 14.2.0-17ubuntu3 [18.0 MB] 343s Get:17 http://ftpmaster.internal/ubuntu plucky/main armhf gcc-14 armhf 14.2.0-17ubuntu3 [506 kB] 344s Get:18 http://ftpmaster.internal/ubuntu plucky/main armhf gcc-arm-linux-gnueabihf armhf 4:14.2.0-1ubuntu1 [1218 B] 344s Get:19 http://ftpmaster.internal/ubuntu plucky/main armhf gcc armhf 4:14.2.0-1ubuntu1 [5004 B] 344s Get:20 http://ftpmaster.internal/ubuntu plucky/main armhf libstdc++-14-dev armhf 14.2.0-17ubuntu3 [2573 kB] 347s Get:21 http://ftpmaster.internal/ubuntu plucky/main armhf g++-14-arm-linux-gnueabihf armhf 14.2.0-17ubuntu3 [10.5 MB] 358s Get:22 http://ftpmaster.internal/ubuntu plucky/main armhf g++-14 armhf 14.2.0-17ubuntu3 [21.8 kB] 358s Get:23 http://ftpmaster.internal/ubuntu plucky/main armhf g++-arm-linux-gnueabihf armhf 4:14.2.0-1ubuntu1 [966 B] 358s Get:24 http://ftpmaster.internal/ubuntu plucky/main armhf g++ armhf 4:14.2.0-1ubuntu1 [1084 B] 358s Get:25 http://ftpmaster.internal/ubuntu plucky/main armhf build-essential armhf 12.10ubuntu1 [4928 B] 358s Get:26 http://ftpmaster.internal/ubuntu plucky/main armhf dctrl-tools armhf 2.24-3build3 [94.7 kB] 359s Get:27 http://ftpmaster.internal/ubuntu plucky/main armhf libgfortran-14-dev armhf 14.2.0-17ubuntu3 [370 kB] 359s Get:28 http://ftpmaster.internal/ubuntu plucky/main armhf gfortran-14-arm-linux-gnueabihf armhf 14.2.0-17ubuntu3 [9763 kB] 369s Get:29 http://ftpmaster.internal/ubuntu plucky/main armhf gfortran-14 armhf 14.2.0-17ubuntu3 [13.6 kB] 369s Get:30 http://ftpmaster.internal/ubuntu plucky/main armhf gfortran-arm-linux-gnueabihf armhf 4:14.2.0-1ubuntu1 [1026 B] 369s Get:31 http://ftpmaster.internal/ubuntu plucky/main armhf gfortran armhf 4:14.2.0-1ubuntu1 [1166 B] 369s Get:32 http://ftpmaster.internal/ubuntu plucky/main armhf icu-devtools armhf 76.1-1ubuntu2 [206 kB] 369s Get:33 http://ftpmaster.internal/ubuntu plucky/main armhf libblas-dev armhf 3.12.1-2 [141 kB] 370s Get:34 http://ftpmaster.internal/ubuntu plucky/main armhf libbz2-dev armhf 1.0.8-6 [30.9 kB] 370s Get:35 http://ftpmaster.internal/ubuntu plucky/main armhf libdeflate-dev armhf 1.23-1 [45.0 kB] 370s Get:36 http://ftpmaster.internal/ubuntu plucky/main armhf libicu-dev armhf 76.1-1ubuntu2 [12.0 MB] 383s Get:37 http://ftpmaster.internal/ubuntu plucky/main armhf libjpeg-turbo8-dev armhf 2.1.5-3ubuntu2 [265 kB] 383s Get:38 http://ftpmaster.internal/ubuntu plucky/main armhf libjpeg8-dev armhf 8c-2ubuntu11 [1484 B] 383s Get:39 http://ftpmaster.internal/ubuntu plucky/main armhf libjpeg-dev armhf 8c-2ubuntu11 [1482 B] 383s Get:40 http://ftpmaster.internal/ubuntu plucky/main armhf liblapack-dev armhf 3.12.1-2 [2207 kB] 386s Get:41 http://ftpmaster.internal/ubuntu plucky/main armhf libncurses-dev armhf 6.5+20250216-2 [345 kB] 386s Get:42 http://ftpmaster.internal/ubuntu plucky/main armhf libpcre2-16-0 armhf 10.45-1 [207 kB] 386s Get:43 http://ftpmaster.internal/ubuntu plucky/main armhf libpcre2-32-0 armhf 10.45-1 [197 kB] 387s Get:44 http://ftpmaster.internal/ubuntu plucky/main armhf libpcre2-posix3 armhf 10.45-1 [6300 B] 387s Get:45 http://ftpmaster.internal/ubuntu plucky/main armhf libpcre2-dev armhf 10.45-1 [752 kB] 387s Get:46 http://ftpmaster.internal/ubuntu plucky/main armhf libpkgconf3 armhf 1.8.1-4 [26.6 kB] 387s Get:47 http://ftpmaster.internal/ubuntu plucky/main armhf zlib1g-dev armhf 1:1.3.dfsg+really1.3.1-1ubuntu1 [880 kB] 388s Get:48 http://ftpmaster.internal/ubuntu plucky/main armhf libpng-dev armhf 1.6.47-1 [251 kB] 389s Get:49 http://ftpmaster.internal/ubuntu plucky/main armhf libreadline-dev armhf 8.2-6 [153 kB] 389s Get:50 http://ftpmaster.internal/ubuntu plucky/main armhf liblzma-dev armhf 5.6.4-1 [166 kB] 389s Get:51 http://ftpmaster.internal/ubuntu plucky/main armhf pkgconf-bin armhf 1.8.1-4 [21.2 kB] 389s Get:52 http://ftpmaster.internal/ubuntu plucky/main armhf pkgconf armhf 1.8.1-4 [16.8 kB] 389s Get:53 http://ftpmaster.internal/ubuntu plucky/main armhf libtirpc-dev armhf 1.3.4+ds-1.3 [184 kB] 389s Get:54 http://ftpmaster.internal/ubuntu plucky/universe armhf r-base-dev all 4.4.3-1 [4176 B] 389s Get:55 http://ftpmaster.internal/ubuntu plucky/universe armhf pkg-r-autopkgtest all 20231212ubuntu1 [6448 B] 390s Fetched 78.1 MB in 1min 36s (817 kB/s) 390s Selecting previously unselected package libc-dev-bin. 390s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 66872 files and directories currently installed.) 390s Preparing to unpack .../00-libc-dev-bin_2.41-1ubuntu2_armhf.deb ... 390s Unpacking libc-dev-bin (2.41-1ubuntu2) ... 390s Selecting previously unselected package linux-libc-dev:armhf. 390s Preparing to unpack .../01-linux-libc-dev_6.14.0-10.10_armhf.deb ... 390s Unpacking linux-libc-dev:armhf (6.14.0-10.10) ... 390s Selecting previously unselected package libcrypt-dev:armhf. 390s Preparing to unpack .../02-libcrypt-dev_1%3a4.4.38-1_armhf.deb ... 390s Unpacking libcrypt-dev:armhf (1:4.4.38-1) ... 390s Selecting previously unselected package rpcsvc-proto. 390s Preparing to unpack .../03-rpcsvc-proto_1.4.2-0ubuntu7_armhf.deb ... 390s Unpacking rpcsvc-proto (1.4.2-0ubuntu7) ... 390s Selecting previously unselected package libc6-dev:armhf. 390s Preparing to unpack .../04-libc6-dev_2.41-1ubuntu2_armhf.deb ... 390s Unpacking libc6-dev:armhf (2.41-1ubuntu2) ... 390s Selecting previously unselected package libisl23:armhf. 390s Preparing to unpack .../05-libisl23_0.27-1_armhf.deb ... 390s Unpacking libisl23:armhf (0.27-1) ... 391s Selecting previously unselected package libmpc3:armhf. 391s Preparing to unpack .../06-libmpc3_1.3.1-1build2_armhf.deb ... 391s Unpacking libmpc3:armhf (1.3.1-1build2) ... 391s Selecting previously unselected package cpp-14-arm-linux-gnueabihf. 391s Preparing to unpack .../07-cpp-14-arm-linux-gnueabihf_14.2.0-17ubuntu3_armhf.deb ... 391s Unpacking cpp-14-arm-linux-gnueabihf (14.2.0-17ubuntu3) ... 391s Selecting previously unselected package cpp-14. 391s Preparing to unpack .../08-cpp-14_14.2.0-17ubuntu3_armhf.deb ... 391s Unpacking cpp-14 (14.2.0-17ubuntu3) ... 391s Selecting previously unselected package cpp-arm-linux-gnueabihf. 391s Preparing to unpack .../09-cpp-arm-linux-gnueabihf_4%3a14.2.0-1ubuntu1_armhf.deb ... 391s Unpacking cpp-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 391s Selecting previously unselected package cpp. 391s Preparing to unpack .../10-cpp_4%3a14.2.0-1ubuntu1_armhf.deb ... 391s Unpacking cpp (4:14.2.0-1ubuntu1) ... 391s Selecting previously unselected package libcc1-0:armhf. 391s Preparing to unpack .../11-libcc1-0_15-20250222-0ubuntu1_armhf.deb ... 391s Unpacking libcc1-0:armhf (15-20250222-0ubuntu1) ... 391s Selecting previously unselected package libasan8:armhf. 391s Preparing to unpack .../12-libasan8_15-20250222-0ubuntu1_armhf.deb ... 391s Unpacking libasan8:armhf (15-20250222-0ubuntu1) ... 391s Selecting previously unselected package libubsan1:armhf. 391s Preparing to unpack .../13-libubsan1_15-20250222-0ubuntu1_armhf.deb ... 391s Unpacking libubsan1:armhf (15-20250222-0ubuntu1) ... 391s Selecting previously unselected package libgcc-14-dev:armhf. 391s Preparing to unpack .../14-libgcc-14-dev_14.2.0-17ubuntu3_armhf.deb ... 391s Unpacking libgcc-14-dev:armhf (14.2.0-17ubuntu3) ... 391s Selecting previously unselected package gcc-14-arm-linux-gnueabihf. 391s Preparing to unpack .../15-gcc-14-arm-linux-gnueabihf_14.2.0-17ubuntu3_armhf.deb ... 391s Unpacking gcc-14-arm-linux-gnueabihf (14.2.0-17ubuntu3) ... 392s Selecting previously unselected package gcc-14. 392s Preparing to unpack .../16-gcc-14_14.2.0-17ubuntu3_armhf.deb ... 392s Unpacking gcc-14 (14.2.0-17ubuntu3) ... 392s Selecting previously unselected package gcc-arm-linux-gnueabihf. 392s Preparing to unpack .../17-gcc-arm-linux-gnueabihf_4%3a14.2.0-1ubuntu1_armhf.deb ... 392s Unpacking gcc-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 392s Selecting previously unselected package gcc. 392s Preparing to unpack .../18-gcc_4%3a14.2.0-1ubuntu1_armhf.deb ... 392s Unpacking gcc (4:14.2.0-1ubuntu1) ... 392s Selecting previously unselected package libstdc++-14-dev:armhf. 392s Preparing to unpack .../19-libstdc++-14-dev_14.2.0-17ubuntu3_armhf.deb ... 392s Unpacking libstdc++-14-dev:armhf (14.2.0-17ubuntu3) ... 393s Selecting previously unselected package g++-14-arm-linux-gnueabihf. 393s Preparing to unpack .../20-g++-14-arm-linux-gnueabihf_14.2.0-17ubuntu3_armhf.deb ... 393s Unpacking g++-14-arm-linux-gnueabihf (14.2.0-17ubuntu3) ... 393s Selecting previously unselected package g++-14. 393s Preparing to unpack .../21-g++-14_14.2.0-17ubuntu3_armhf.deb ... 393s Unpacking g++-14 (14.2.0-17ubuntu3) ... 393s Selecting previously unselected package g++-arm-linux-gnueabihf. 393s Preparing to unpack .../22-g++-arm-linux-gnueabihf_4%3a14.2.0-1ubuntu1_armhf.deb ... 393s Unpacking g++-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 393s Selecting previously unselected package g++. 393s Preparing to unpack .../23-g++_4%3a14.2.0-1ubuntu1_armhf.deb ... 393s Unpacking g++ (4:14.2.0-1ubuntu1) ... 393s Selecting previously unselected package build-essential. 393s Preparing to unpack .../24-build-essential_12.10ubuntu1_armhf.deb ... 393s Unpacking build-essential (12.10ubuntu1) ... 393s Selecting previously unselected package dctrl-tools. 393s Preparing to unpack .../25-dctrl-tools_2.24-3build3_armhf.deb ... 393s Unpacking dctrl-tools (2.24-3build3) ... 393s Selecting previously unselected package libgfortran-14-dev:armhf. 393s Preparing to unpack .../26-libgfortran-14-dev_14.2.0-17ubuntu3_armhf.deb ... 393s Unpacking libgfortran-14-dev:armhf (14.2.0-17ubuntu3) ... 393s Selecting previously unselected package gfortran-14-arm-linux-gnueabihf. 393s Preparing to unpack .../27-gfortran-14-arm-linux-gnueabihf_14.2.0-17ubuntu3_armhf.deb ... 393s Unpacking gfortran-14-arm-linux-gnueabihf (14.2.0-17ubuntu3) ... 394s Selecting previously unselected package gfortran-14. 394s Preparing to unpack .../28-gfortran-14_14.2.0-17ubuntu3_armhf.deb ... 394s Unpacking gfortran-14 (14.2.0-17ubuntu3) ... 394s Selecting previously unselected package gfortran-arm-linux-gnueabihf. 394s Preparing to unpack .../29-gfortran-arm-linux-gnueabihf_4%3a14.2.0-1ubuntu1_armhf.deb ... 394s Unpacking gfortran-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 394s Selecting previously unselected package gfortran. 394s Preparing to unpack .../30-gfortran_4%3a14.2.0-1ubuntu1_armhf.deb ... 394s Unpacking gfortran (4:14.2.0-1ubuntu1) ... 394s Selecting previously unselected package icu-devtools. 394s Preparing to unpack .../31-icu-devtools_76.1-1ubuntu2_armhf.deb ... 394s Unpacking icu-devtools (76.1-1ubuntu2) ... 394s Selecting previously unselected package libblas-dev:armhf. 394s Preparing to unpack .../32-libblas-dev_3.12.1-2_armhf.deb ... 394s Unpacking libblas-dev:armhf (3.12.1-2) ... 394s Selecting previously unselected package libbz2-dev:armhf. 394s Preparing to unpack .../33-libbz2-dev_1.0.8-6_armhf.deb ... 394s Unpacking libbz2-dev:armhf (1.0.8-6) ... 394s Selecting previously unselected package libdeflate-dev:armhf. 394s Preparing to unpack .../34-libdeflate-dev_1.23-1_armhf.deb ... 394s Unpacking libdeflate-dev:armhf (1.23-1) ... 394s Selecting previously unselected package libicu-dev:armhf. 394s Preparing to unpack .../35-libicu-dev_76.1-1ubuntu2_armhf.deb ... 394s Unpacking libicu-dev:armhf (76.1-1ubuntu2) ... 395s Selecting previously unselected package libjpeg-turbo8-dev:armhf. 395s Preparing to unpack .../36-libjpeg-turbo8-dev_2.1.5-3ubuntu2_armhf.deb ... 395s Unpacking libjpeg-turbo8-dev:armhf (2.1.5-3ubuntu2) ... 395s Selecting previously unselected package libjpeg8-dev:armhf. 395s Preparing to unpack .../37-libjpeg8-dev_8c-2ubuntu11_armhf.deb ... 395s Unpacking libjpeg8-dev:armhf (8c-2ubuntu11) ... 395s Selecting previously unselected package libjpeg-dev:armhf. 395s Preparing to unpack .../38-libjpeg-dev_8c-2ubuntu11_armhf.deb ... 395s Unpacking libjpeg-dev:armhf (8c-2ubuntu11) ... 395s Selecting previously unselected package liblapack-dev:armhf. 395s Preparing to unpack .../39-liblapack-dev_3.12.1-2_armhf.deb ... 395s Unpacking liblapack-dev:armhf (3.12.1-2) ... 395s Selecting previously unselected package libncurses-dev:armhf. 395s Preparing to unpack .../40-libncurses-dev_6.5+20250216-2_armhf.deb ... 395s Unpacking libncurses-dev:armhf (6.5+20250216-2) ... 395s Selecting previously unselected package libpcre2-16-0:armhf. 395s Preparing to unpack .../41-libpcre2-16-0_10.45-1_armhf.deb ... 395s Unpacking libpcre2-16-0:armhf (10.45-1) ... 395s Selecting previously unselected package libpcre2-32-0:armhf. 395s Preparing to unpack .../42-libpcre2-32-0_10.45-1_armhf.deb ... 395s Unpacking libpcre2-32-0:armhf (10.45-1) ... 395s Selecting previously unselected package libpcre2-posix3:armhf. 395s Preparing to unpack .../43-libpcre2-posix3_10.45-1_armhf.deb ... 395s Unpacking libpcre2-posix3:armhf (10.45-1) ... 395s Selecting previously unselected package libpcre2-dev:armhf. 395s Preparing to unpack .../44-libpcre2-dev_10.45-1_armhf.deb ... 395s Unpacking libpcre2-dev:armhf (10.45-1) ... 395s Selecting previously unselected package libpkgconf3:armhf. 395s Preparing to unpack .../45-libpkgconf3_1.8.1-4_armhf.deb ... 395s Unpacking libpkgconf3:armhf (1.8.1-4) ... 395s Selecting previously unselected package zlib1g-dev:armhf. 395s Preparing to unpack .../46-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu1_armhf.deb ... 395s Unpacking zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 395s Selecting previously unselected package libpng-dev:armhf. 395s Preparing to unpack .../47-libpng-dev_1.6.47-1_armhf.deb ... 395s Unpacking libpng-dev:armhf (1.6.47-1) ... 395s Selecting previously unselected package libreadline-dev:armhf. 395s Preparing to unpack .../48-libreadline-dev_8.2-6_armhf.deb ... 395s Unpacking libreadline-dev:armhf (8.2-6) ... 395s Selecting previously unselected package liblzma-dev:armhf. 395s Preparing to unpack .../49-liblzma-dev_5.6.4-1_armhf.deb ... 395s Unpacking liblzma-dev:armhf (5.6.4-1) ... 395s Selecting previously unselected package pkgconf-bin. 395s Preparing to unpack .../50-pkgconf-bin_1.8.1-4_armhf.deb ... 395s Unpacking pkgconf-bin (1.8.1-4) ... 395s Selecting previously unselected package pkgconf:armhf. 395s Preparing to unpack .../51-pkgconf_1.8.1-4_armhf.deb ... 395s Unpacking pkgconf:armhf (1.8.1-4) ... 395s Selecting previously unselected package libtirpc-dev:armhf. 395s Preparing to unpack .../52-libtirpc-dev_1.3.4+ds-1.3_armhf.deb ... 395s Unpacking libtirpc-dev:armhf (1.3.4+ds-1.3) ... 396s Selecting previously unselected package r-base-dev. 396s Preparing to unpack .../53-r-base-dev_4.4.3-1_all.deb ... 396s Unpacking r-base-dev (4.4.3-1) ... 396s Selecting previously unselected package pkg-r-autopkgtest. 396s Preparing to unpack .../54-pkg-r-autopkgtest_20231212ubuntu1_all.deb ... 396s Unpacking pkg-r-autopkgtest (20231212ubuntu1) ... 396s Setting up linux-libc-dev:armhf (6.14.0-10.10) ... 396s Setting up libpcre2-16-0:armhf (10.45-1) ... 396s Setting up libpcre2-32-0:armhf (10.45-1) ... 396s Setting up libtirpc-dev:armhf (1.3.4+ds-1.3) ... 396s Setting up libpkgconf3:armhf (1.8.1-4) ... 396s Setting up rpcsvc-proto (1.4.2-0ubuntu7) ... 396s Setting up libmpc3:armhf (1.3.1-1build2) ... 396s Setting up icu-devtools (76.1-1ubuntu2) ... 396s Setting up pkgconf-bin (1.8.1-4) ... 396s Setting up liblzma-dev:armhf (5.6.4-1) ... 396s Setting up libubsan1:armhf (15-20250222-0ubuntu1) ... 396s Setting up libpcre2-posix3:armhf (10.45-1) ... 396s Setting up libcrypt-dev:armhf (1:4.4.38-1) ... 396s Setting up libasan8:armhf (15-20250222-0ubuntu1) ... 396s Setting up libgcc-14-dev:armhf (14.2.0-17ubuntu3) ... 396s Setting up libisl23:armhf (0.27-1) ... 396s Setting up libc-dev-bin (2.41-1ubuntu2) ... 396s Setting up libdeflate-dev:armhf (1.23-1) ... 396s Setting up libcc1-0:armhf (15-20250222-0ubuntu1) ... 396s Setting up libblas-dev:armhf (3.12.1-2) ... 396s update-alternatives: using /usr/lib/arm-linux-gnueabihf/blas/libblas.so to provide /usr/lib/arm-linux-gnueabihf/libblas.so (libblas.so-arm-linux-gnueabihf) in auto mode 396s Setting up dctrl-tools (2.24-3build3) ... 396s Setting up cpp-14-arm-linux-gnueabihf (14.2.0-17ubuntu3) ... 396s Setting up libgfortran-14-dev:armhf (14.2.0-17ubuntu3) ... 396s Setting up gcc-14-arm-linux-gnueabihf (14.2.0-17ubuntu3) ... 396s Setting up pkgconf:armhf (1.8.1-4) ... 396s Setting up liblapack-dev:armhf (3.12.1-2) ... 396s update-alternatives: using /usr/lib/arm-linux-gnueabihf/lapack/liblapack.so to provide /usr/lib/arm-linux-gnueabihf/liblapack.so (liblapack.so-arm-linux-gnueabihf) in auto mode 396s Setting up cpp-14 (14.2.0-17ubuntu3) ... 396s Setting up libc6-dev:armhf (2.41-1ubuntu2) ... 396s Setting up libstdc++-14-dev:armhf (14.2.0-17ubuntu3) ... 396s Setting up libicu-dev:armhf (76.1-1ubuntu2) ... 396s Setting up cpp-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 396s Setting up gfortran-14-arm-linux-gnueabihf (14.2.0-17ubuntu3) ... 396s Setting up libbz2-dev:armhf (1.0.8-6) ... 396s Setting up gcc-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 396s Setting up g++-14-arm-linux-gnueabihf (14.2.0-17ubuntu3) ... 396s Setting up libjpeg-turbo8-dev:armhf (2.1.5-3ubuntu2) ... 396s Setting up libncurses-dev:armhf (6.5+20250216-2) ... 396s Setting up libpcre2-dev:armhf (10.45-1) ... 396s Setting up libreadline-dev:armhf (8.2-6) ... 396s Setting up gcc-14 (14.2.0-17ubuntu3) ... 396s Setting up gfortran-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 396s Setting up zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 396s Setting up cpp (4:14.2.0-1ubuntu1) ... 396s Setting up g++-14 (14.2.0-17ubuntu3) ... 396s Setting up libjpeg8-dev:armhf (8c-2ubuntu11) ... 396s Setting up gfortran-14 (14.2.0-17ubuntu3) ... 396s Setting up g++-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 396s Setting up libpng-dev:armhf (1.6.47-1) ... 396s Setting up libjpeg-dev:armhf (8c-2ubuntu11) ... 396s Setting up gcc (4:14.2.0-1ubuntu1) ... 396s Setting up g++ (4:14.2.0-1ubuntu1) ... 396s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 396s Setting up build-essential (12.10ubuntu1) ... 396s Setting up gfortran (4:14.2.0-1ubuntu1) ... 396s update-alternatives: using /usr/bin/gfortran to provide /usr/bin/f95 (f95) in auto mode 396s update-alternatives: warning: skip creation of /usr/share/man/man1/f95.1.gz because associated file /usr/share/man/man1/gfortran.1.gz (of link group f95) doesn't exist 396s update-alternatives: using /usr/bin/gfortran to provide /usr/bin/f77 (f77) in auto mode 396s update-alternatives: warning: skip creation of /usr/share/man/man1/f77.1.gz because associated file /usr/share/man/man1/gfortran.1.gz (of link group f77) doesn't exist 396s Setting up r-base-dev (4.4.3-1) ... 396s Setting up pkg-r-autopkgtest (20231212ubuntu1) ... 396s Processing triggers for libc-bin (2.41-1ubuntu2) ... 396s Processing triggers for man-db (2.13.0-1) ... 397s Processing triggers for install-info (7.1.1-1) ... 404s autopkgtest [16:29:24]: test pkg-r-autopkgtest: /usr/share/dh-r/pkg-r-autopkgtest 404s autopkgtest [16:29:24]: test pkg-r-autopkgtest: [----------------------- 406s Test: Try to load the R library nleqslv 406s 406s R version 4.4.3 (2025-02-28) -- "Trophy Case" 406s Copyright (C) 2025 The R Foundation for Statistical Computing 406s Platform: arm-unknown-linux-gnueabihf (32-bit) 406s 406s R is free software and comes with ABSOLUTELY NO WARRANTY. 406s You are welcome to redistribute it under certain conditions. 406s Type 'license()' or 'licence()' for distribution details. 406s 406s R is a collaborative project with many contributors. 406s Type 'contributors()' for more information and 406s 'citation()' on how to cite R or R packages in publications. 406s 406s Type 'demo()' for some demos, 'help()' for on-line help, or 406s 'help.start()' for an HTML browser interface to help. 406s Type 'q()' to quit R. 406s 407s > library('nleqslv') 407s > 407s > 407s Other tests are currently unsupported! 407s They will be progressively added. 407s autopkgtest [16:29:27]: test pkg-r-autopkgtest: -----------------------] 411s autopkgtest [16:29:31]: test pkg-r-autopkgtest: - - - - - - - - - - results - - - - - - - - - - 411s pkg-r-autopkgtest PASS 414s autopkgtest [16:29:34]: @@@@@@@@@@@@@@@@@@@@ summary 414s generic PASS 414s pkg-r-autopkgtest PASS