0s autopkgtest [15:42:29]: starting date and time: 2025-03-15 15:42:29+0000 0s autopkgtest [15:42:29]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production' 0s autopkgtest [15:42:29]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.ar8ez11j/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --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 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@bos03-arm64-14.secgroup --name adt-plucky-arm64-r-cran-nleqslv-20250315-154229-juju-7f2275-prod-proposed-migration-environment-2-174a6303-b8f7-422a-99d5-2fae50e7f7e5 --image adt/ubuntu-plucky-arm64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-proposed-migration -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_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'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 148s autopkgtest [15:44:57]: testbed dpkg architecture: arm64 148s autopkgtest [15:44:57]: testbed apt version: 2.9.33 148s autopkgtest [15:44:57]: @@@@@@@@@@@@@@@@@@@@ test bed setup 148s autopkgtest [15:44:57]: testbed release detected to be: None 149s autopkgtest [15:44:58]: updating testbed package index (apt update) 150s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [126 kB] 150s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 150s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 150s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 150s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [99.7 kB] 150s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [15.8 kB] 150s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [379 kB] 151s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 Packages [111 kB] 151s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 c-n-f Metadata [1856 B] 151s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/restricted arm64 c-n-f Metadata [116 B] 151s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/universe arm64 Packages [324 kB] 151s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/universe arm64 c-n-f Metadata [14.7 kB] 151s Get:13 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse arm64 Packages [4948 B] 151s Get:14 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse arm64 c-n-f Metadata [268 B] 151s Fetched 1078 kB in 1s (778 kB/s) 152s Reading package lists... 153s Reading package lists... 153s Building dependency tree... 153s Reading state information... 154s Calculating upgrade... 154s Calculating upgrade... 154s The following packages will be upgraded: 154s pinentry-curses python3-jinja2 strace 154s 3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 154s Need to get 647 kB of archives. 154s After this operation, 11.3 kB of additional disk space will be used. 154s Get:1 http://ftpmaster.internal/ubuntu plucky/main arm64 strace arm64 6.13+ds-1ubuntu1 [499 kB] 155s Get:2 http://ftpmaster.internal/ubuntu plucky/main arm64 pinentry-curses arm64 1.3.1-2ubuntu3 [39.2 kB] 155s Get:3 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-jinja2 all 3.1.5-2ubuntu1 [109 kB] 156s Fetched 647 kB in 1s (459 kB/s) 156s (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 ... 117701 files and directories currently installed.) 156s Preparing to unpack .../strace_6.13+ds-1ubuntu1_arm64.deb ... 156s Unpacking strace (6.13+ds-1ubuntu1) over (6.11-0ubuntu1) ... 156s Preparing to unpack .../pinentry-curses_1.3.1-2ubuntu3_arm64.deb ... 156s Unpacking pinentry-curses (1.3.1-2ubuntu3) over (1.3.1-2ubuntu2) ... 157s Preparing to unpack .../python3-jinja2_3.1.5-2ubuntu1_all.deb ... 157s Unpacking python3-jinja2 (3.1.5-2ubuntu1) over (3.1.5-2) ... 157s Setting up pinentry-curses (1.3.1-2ubuntu3) ... 157s Setting up python3-jinja2 (3.1.5-2ubuntu1) ... 157s Setting up strace (6.13+ds-1ubuntu1) ... 157s Processing triggers for man-db (2.13.0-1) ... 158s Reading package lists... 158s Building dependency tree... 158s Reading state information... 158s Solving dependencies... 159s The following packages will be REMOVED: 159s libnsl2* libpython3.12-minimal* libpython3.12-stdlib* libpython3.12t64* 159s libunwind8* linux-headers-6.11.0-8* linux-headers-6.11.0-8-generic* 159s linux-image-6.11.0-8-generic* linux-modules-6.11.0-8-generic* 159s linux-tools-6.11.0-8* linux-tools-6.11.0-8-generic* 159s 0 upgraded, 0 newly installed, 11 to remove and 5 not upgraded. 159s After this operation, 267 MB disk space will be freed. 159s (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 ... 117701 files and directories currently installed.) 159s Removing linux-tools-6.11.0-8-generic (6.11.0-8.8) ... 159s Removing linux-tools-6.11.0-8 (6.11.0-8.8) ... 159s Removing libpython3.12t64:arm64 (3.12.9-1) ... 159s Removing libpython3.12-stdlib:arm64 (3.12.9-1) ... 159s Removing libnsl2:arm64 (1.3.0-3build3) ... 159s Removing libpython3.12-minimal:arm64 (3.12.9-1) ... 159s Removing libunwind8:arm64 (1.6.2-3.1) ... 159s Removing linux-headers-6.11.0-8-generic (6.11.0-8.8) ... 160s Removing linux-headers-6.11.0-8 (6.11.0-8.8) ... 162s Removing linux-image-6.11.0-8-generic (6.11.0-8.8) ... 162s I: /boot/vmlinuz.old is now a symlink to vmlinuz-6.14.0-10-generic 162s I: /boot/initrd.img.old is now a symlink to initrd.img-6.14.0-10-generic 162s /etc/kernel/postrm.d/initramfs-tools: 162s update-initramfs: Deleting /boot/initrd.img-6.11.0-8-generic 162s /etc/kernel/postrm.d/zz-flash-kernel: 162s flash-kernel: Kernel 6.11.0-8-generic has been removed. 162s flash-kernel: A higher version (6.14.0-10-generic) is still installed, no reflashing required. 162s /etc/kernel/postrm.d/zz-update-grub: 162s Sourcing file `/etc/default/grub' 162s Sourcing file `/etc/default/grub.d/50-cloudimg-settings.cfg' 162s Generating grub configuration file ... 162s Found linux image: /boot/vmlinuz-6.14.0-10-generic 162s Found initrd image: /boot/initrd.img-6.14.0-10-generic 163s Warning: os-prober will not be executed to detect other bootable partitions. 163s Systems on them will not be added to the GRUB boot configuration. 163s Check GRUB_DISABLE_OS_PROBER documentation entry. 163s Adding boot menu entry for UEFI Firmware Settings ... 163s done 163s Removing linux-modules-6.11.0-8-generic (6.11.0-8.8) ... 163s Processing triggers for libc-bin (2.41-1ubuntu1) ... 163s (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 ... 81650 files and directories currently installed.) 163s Purging configuration files for linux-image-6.11.0-8-generic (6.11.0-8.8) ... 163s Purging configuration files for libpython3.12-minimal:arm64 (3.12.9-1) ... 163s Purging configuration files for linux-modules-6.11.0-8-generic (6.11.0-8.8) ... 164s autopkgtest [15:45:13]: upgrading testbed (apt dist-upgrade and autopurge) 164s Reading package lists... 164s Building dependency tree... 164s Reading state information... 165s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 165s Starting 2 pkgProblemResolver with broken count: 0 165s Done 165s Entering ResolveByKeep 166s 166s Calculating upgrade... 166s The following packages will be upgraded: 166s libc-bin libc-dev-bin libc6 libc6-dev locales 167s 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 167s Need to get 9530 kB of archives. 167s After this operation, 0 B of additional disk space will be used. 167s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 libc6-dev arm64 2.41-1ubuntu2 [1750 kB] 168s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 libc-dev-bin arm64 2.41-1ubuntu2 [24.0 kB] 168s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 libc6 arm64 2.41-1ubuntu2 [2910 kB] 170s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 libc-bin arm64 2.41-1ubuntu2 [600 kB] 171s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 locales all 2.41-1ubuntu2 [4246 kB] 175s Preconfiguring packages ... 175s Fetched 9530 kB in 8s (1207 kB/s) 175s (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 ... 81647 files and directories currently installed.) 175s Preparing to unpack .../libc6-dev_2.41-1ubuntu2_arm64.deb ... 175s Unpacking libc6-dev:arm64 (2.41-1ubuntu2) over (2.41-1ubuntu1) ... 175s Preparing to unpack .../libc-dev-bin_2.41-1ubuntu2_arm64.deb ... 175s Unpacking libc-dev-bin (2.41-1ubuntu2) over (2.41-1ubuntu1) ... 175s Preparing to unpack .../libc6_2.41-1ubuntu2_arm64.deb ... 175s Unpacking libc6:arm64 (2.41-1ubuntu2) over (2.41-1ubuntu1) ... 175s Setting up libc6:arm64 (2.41-1ubuntu2) ... 176s (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 ... 81647 files and directories currently installed.) 176s Preparing to unpack .../libc-bin_2.41-1ubuntu2_arm64.deb ... 176s Unpacking libc-bin (2.41-1ubuntu2) over (2.41-1ubuntu1) ... 176s Setting up libc-bin (2.41-1ubuntu2) ... 176s (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 ... 81647 files and directories currently installed.) 176s Preparing to unpack .../locales_2.41-1ubuntu2_all.deb ... 176s Unpacking locales (2.41-1ubuntu2) over (2.41-1ubuntu1) ... 176s Setting up locales (2.41-1ubuntu2) ... 177s Generating locales (this might take a while)... 178s en_US.UTF-8... done 178s Generation complete. 178s Setting up libc-dev-bin (2.41-1ubuntu2) ... 178s Setting up libc6-dev:arm64 (2.41-1ubuntu2) ... 178s Processing triggers for man-db (2.13.0-1) ... 180s Processing triggers for systemd (257.3-1ubuntu3) ... 180s Reading package lists... 181s Building dependency tree... 181s Reading state information... 181s Starting pkgProblemResolver with broken count: 0 181s Starting 2 pkgProblemResolver with broken count: 0 181s Done 182s Solving dependencies... 182s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 182s autopkgtest [15:45:31]: rebooting testbed after setup commands that affected boot 207s autopkgtest [15:45:56]: testbed running kernel: Linux 6.14.0-10-generic #10-Ubuntu SMP PREEMPT_DYNAMIC Wed Mar 12 15:45:31 UTC 2025 210s autopkgtest [15:45:59]: @@@@@@@@@@@@@@@@@@@@ apt-source r-cran-nleqslv 213s Get:1 http://ftpmaster.internal/ubuntu plucky/universe r-cran-nleqslv 3.3.5-1 (dsc) [2073 B] 213s Get:2 http://ftpmaster.internal/ubuntu plucky/universe r-cran-nleqslv 3.3.5-1 (tar) [82.5 kB] 213s Get:3 http://ftpmaster.internal/ubuntu plucky/universe r-cran-nleqslv 3.3.5-1 (diff) [2444 B] 213s gpgv: Signature made Mon Nov 27 19:33:07 2023 UTC 213s gpgv: using RSA key F1F007320A035541F0A663CA578A0494D1C646D1 213s gpgv: issuer "tille@debian.org" 213s gpgv: Can't check signature: No public key 213s dpkg-source: warning: cannot verify inline signature for ./r-cran-nleqslv_3.3.5-1.dsc: no acceptable signature found 213s autopkgtest [15:46:02]: testing package r-cran-nleqslv version 3.3.5-1 214s autopkgtest [15:46:03]: build not needed 217s autopkgtest [15:46:06]: 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 libgfortran5 libgomp1 219s libgraphite2-3 libharfbuzz0b libice6 libjbig0 libjpeg-turbo8 libjpeg8 219s liblapack3 liblerc4 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 219s libpaper-utils libpaper2 libpixman-1-0 libsharpyuv0 libsm6 libtcl8.6 219s libthai-data libthai0 libtiff6 libtk8.6 libwebp7 libxcb-render0 libxcb-shm0 219s libxft2 libxrender1 libxss1 libxt6t64 r-base-core r-cran-nleqslv unzip 219s x11-common xdg-utils zip 219s 0 upgraded, 45 newly installed, 0 to remove and 0 not upgraded. 219s Need to get 38.5 MB of archives. 219s After this operation, 79.6 MB of additional disk space will be used. 219s Get:1 http://ftpmaster.internal/ubuntu plucky/main arm64 fonts-dejavu-mono all 2.37-8 [502 kB] 219s Get:2 http://ftpmaster.internal/ubuntu plucky/main arm64 fonts-dejavu-core all 2.37-8 [835 kB] 220s Get:3 http://ftpmaster.internal/ubuntu plucky/main arm64 fontconfig-config arm64 2.15.0-2ubuntu1 [37.5 kB] 220s Get:4 http://ftpmaster.internal/ubuntu plucky/main arm64 libfontconfig1 arm64 2.15.0-2ubuntu1 [144 kB] 220s Get:5 http://ftpmaster.internal/ubuntu plucky/main arm64 fontconfig arm64 2.15.0-2ubuntu1 [191 kB] 220s Get:6 http://ftpmaster.internal/ubuntu plucky/main arm64 libblas3 arm64 3.12.1-2 [161 kB] 220s Get:7 http://ftpmaster.internal/ubuntu plucky/main arm64 libpixman-1-0 arm64 0.44.0-3 [197 kB] 220s Get:8 http://ftpmaster.internal/ubuntu plucky/main arm64 libxcb-render0 arm64 1.17.0-2 [16.6 kB] 220s Get:9 http://ftpmaster.internal/ubuntu plucky/main arm64 libxcb-shm0 arm64 1.17.0-2 [5884 B] 220s Get:10 http://ftpmaster.internal/ubuntu plucky/main arm64 libxrender1 arm64 1:0.9.10-1.1build1 [18.8 kB] 220s Get:11 http://ftpmaster.internal/ubuntu plucky/main arm64 libcairo2 arm64 1.18.2-2 [560 kB] 221s Get:12 http://ftpmaster.internal/ubuntu plucky/main arm64 libdatrie1 arm64 0.2.13-3build1 [19.2 kB] 221s Get:13 http://ftpmaster.internal/ubuntu plucky/main arm64 libdeflate0 arm64 1.23-1 [46.2 kB] 221s Get:14 http://ftpmaster.internal/ubuntu plucky/main arm64 libgfortran5 arm64 15-20250222-0ubuntu1 [444 kB] 221s Get:15 http://ftpmaster.internal/ubuntu plucky/main arm64 libgomp1 arm64 15-20250222-0ubuntu1 [146 kB] 221s Get:16 http://ftpmaster.internal/ubuntu plucky/main arm64 libgraphite2-3 arm64 1.3.14-2ubuntu1 [70.6 kB] 222s Get:17 http://ftpmaster.internal/ubuntu plucky/main arm64 libharfbuzz0b arm64 10.2.0-1 [490 kB] 222s Get:18 http://ftpmaster.internal/ubuntu plucky/main arm64 x11-common all 1:7.7+23ubuntu3 [21.7 kB] 222s Get:19 http://ftpmaster.internal/ubuntu plucky/main arm64 libice6 arm64 2:1.1.1-1 [42.3 kB] 222s Get:20 http://ftpmaster.internal/ubuntu plucky/main arm64 libjpeg-turbo8 arm64 2.1.5-3ubuntu2 [165 kB] 222s Get:21 http://ftpmaster.internal/ubuntu plucky/main arm64 libjpeg8 arm64 8c-2ubuntu11 [2148 B] 222s Get:22 http://ftpmaster.internal/ubuntu plucky/main arm64 liblapack3 arm64 3.12.1-2 [2307 kB] 224s Get:23 http://ftpmaster.internal/ubuntu plucky/main arm64 liblerc4 arm64 4.0.0+ds-5ubuntu1 [167 kB] 224s Get:24 http://ftpmaster.internal/ubuntu plucky/main arm64 libthai-data all 0.1.29-2build1 [158 kB] 224s Get:25 http://ftpmaster.internal/ubuntu plucky/main arm64 libthai0 arm64 0.1.29-2build1 [18.2 kB] 224s Get:26 http://ftpmaster.internal/ubuntu plucky/main arm64 libpango-1.0-0 arm64 1.56.2-1 [237 kB] 225s Get:27 http://ftpmaster.internal/ubuntu plucky/main arm64 libpangoft2-1.0-0 arm64 1.56.2-1 [49.5 kB] 225s Get:28 http://ftpmaster.internal/ubuntu plucky/main arm64 libpangocairo-1.0-0 arm64 1.56.2-1 [27.6 kB] 225s Get:29 http://ftpmaster.internal/ubuntu plucky/main arm64 libpaper2 arm64 2.2.5-0.3 [17.3 kB] 225s Get:30 http://ftpmaster.internal/ubuntu plucky/main arm64 libpaper-utils arm64 2.2.5-0.3 [15.4 kB] 225s Get:31 http://ftpmaster.internal/ubuntu plucky/main arm64 libsharpyuv0 arm64 1.5.0-0.1 [16.9 kB] 225s Get:32 http://ftpmaster.internal/ubuntu plucky/main arm64 libsm6 arm64 2:1.2.4-1 [16.4 kB] 225s Get:33 http://ftpmaster.internal/ubuntu plucky/main arm64 libtcl8.6 arm64 8.6.16+dfsg-1 [987 kB] 226s Get:34 http://ftpmaster.internal/ubuntu plucky/main arm64 libjbig0 arm64 2.1-6.1ubuntu2 [29.3 kB] 226s Get:35 http://ftpmaster.internal/ubuntu plucky/main arm64 libwebp7 arm64 1.5.0-0.1 [194 kB] 226s Get:36 http://ftpmaster.internal/ubuntu plucky/main arm64 libtiff6 arm64 4.5.1+git230720-4ubuntu4 [193 kB] 226s Get:37 http://ftpmaster.internal/ubuntu plucky/main arm64 libxft2 arm64 2.3.6-1build1 [44.1 kB] 226s Get:38 http://ftpmaster.internal/ubuntu plucky/main arm64 libxss1 arm64 1:1.2.3-1build3 [7244 B] 226s Get:39 http://ftpmaster.internal/ubuntu plucky/main arm64 libtk8.6 arm64 8.6.16-1 [776 kB] 227s Get:40 http://ftpmaster.internal/ubuntu plucky/main arm64 libxt6t64 arm64 1:1.2.1-1.2build1 [168 kB] 227s Get:41 http://ftpmaster.internal/ubuntu plucky/main arm64 zip arm64 3.0-14ubuntu2 [173 kB] 227s Get:42 http://ftpmaster.internal/ubuntu plucky/main arm64 unzip arm64 6.0-28ubuntu6 [178 kB] 227s Get:43 http://ftpmaster.internal/ubuntu plucky/main arm64 xdg-utils all 1.2.1-2ubuntu1 [66.0 kB] 227s Get:44 http://ftpmaster.internal/ubuntu plucky/universe arm64 r-base-core arm64 4.4.3-1 [28.4 MB] 251s Get:45 http://ftpmaster.internal/ubuntu plucky/universe arm64 r-cran-nleqslv arm64 3.3.5-1 [101 kB] 252s Preconfiguring packages ... 252s Fetched 38.5 MB in 33s (1181 kB/s) 252s Selecting previously unselected package fonts-dejavu-mono. 252s (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 ... 81647 files and directories currently installed.) 252s Preparing to unpack .../00-fonts-dejavu-mono_2.37-8_all.deb ... 252s Unpacking fonts-dejavu-mono (2.37-8) ... 252s Selecting previously unselected package fonts-dejavu-core. 252s Preparing to unpack .../01-fonts-dejavu-core_2.37-8_all.deb ... 252s Unpacking fonts-dejavu-core (2.37-8) ... 252s Selecting previously unselected package fontconfig-config. 252s Preparing to unpack .../02-fontconfig-config_2.15.0-2ubuntu1_arm64.deb ... 252s Unpacking fontconfig-config (2.15.0-2ubuntu1) ... 252s Selecting previously unselected package libfontconfig1:arm64. 252s Preparing to unpack .../03-libfontconfig1_2.15.0-2ubuntu1_arm64.deb ... 252s Unpacking libfontconfig1:arm64 (2.15.0-2ubuntu1) ... 252s Selecting previously unselected package fontconfig. 252s Preparing to unpack .../04-fontconfig_2.15.0-2ubuntu1_arm64.deb ... 252s Unpacking fontconfig (2.15.0-2ubuntu1) ... 252s Selecting previously unselected package libblas3:arm64. 252s Preparing to unpack .../05-libblas3_3.12.1-2_arm64.deb ... 252s Unpacking libblas3:arm64 (3.12.1-2) ... 252s Selecting previously unselected package libpixman-1-0:arm64. 252s Preparing to unpack .../06-libpixman-1-0_0.44.0-3_arm64.deb ... 252s Unpacking libpixman-1-0:arm64 (0.44.0-3) ... 252s Selecting previously unselected package libxcb-render0:arm64. 252s Preparing to unpack .../07-libxcb-render0_1.17.0-2_arm64.deb ... 252s Unpacking libxcb-render0:arm64 (1.17.0-2) ... 252s Selecting previously unselected package libxcb-shm0:arm64. 252s Preparing to unpack .../08-libxcb-shm0_1.17.0-2_arm64.deb ... 252s Unpacking libxcb-shm0:arm64 (1.17.0-2) ... 252s Selecting previously unselected package libxrender1:arm64. 252s Preparing to unpack .../09-libxrender1_1%3a0.9.10-1.1build1_arm64.deb ... 252s Unpacking libxrender1:arm64 (1:0.9.10-1.1build1) ... 253s Selecting previously unselected package libcairo2:arm64. 253s Preparing to unpack .../10-libcairo2_1.18.2-2_arm64.deb ... 253s Unpacking libcairo2:arm64 (1.18.2-2) ... 253s Selecting previously unselected package libdatrie1:arm64. 253s Preparing to unpack .../11-libdatrie1_0.2.13-3build1_arm64.deb ... 253s Unpacking libdatrie1:arm64 (0.2.13-3build1) ... 253s Selecting previously unselected package libdeflate0:arm64. 253s Preparing to unpack .../12-libdeflate0_1.23-1_arm64.deb ... 253s Unpacking libdeflate0:arm64 (1.23-1) ... 253s Selecting previously unselected package libgfortran5:arm64. 253s Preparing to unpack .../13-libgfortran5_15-20250222-0ubuntu1_arm64.deb ... 253s Unpacking libgfortran5:arm64 (15-20250222-0ubuntu1) ... 253s Selecting previously unselected package libgomp1:arm64. 253s Preparing to unpack .../14-libgomp1_15-20250222-0ubuntu1_arm64.deb ... 253s Unpacking libgomp1:arm64 (15-20250222-0ubuntu1) ... 253s Selecting previously unselected package libgraphite2-3:arm64. 253s Preparing to unpack .../15-libgraphite2-3_1.3.14-2ubuntu1_arm64.deb ... 253s Unpacking libgraphite2-3:arm64 (1.3.14-2ubuntu1) ... 253s Selecting previously unselected package libharfbuzz0b:arm64. 253s Preparing to unpack .../16-libharfbuzz0b_10.2.0-1_arm64.deb ... 253s Unpacking libharfbuzz0b:arm64 (10.2.0-1) ... 253s Selecting previously unselected package x11-common. 253s Preparing to unpack .../17-x11-common_1%3a7.7+23ubuntu3_all.deb ... 253s Unpacking x11-common (1:7.7+23ubuntu3) ... 253s Selecting previously unselected package libice6:arm64. 253s Preparing to unpack .../18-libice6_2%3a1.1.1-1_arm64.deb ... 253s Unpacking libice6:arm64 (2:1.1.1-1) ... 253s Selecting previously unselected package libjpeg-turbo8:arm64. 253s Preparing to unpack .../19-libjpeg-turbo8_2.1.5-3ubuntu2_arm64.deb ... 253s Unpacking libjpeg-turbo8:arm64 (2.1.5-3ubuntu2) ... 253s Selecting previously unselected package libjpeg8:arm64. 253s Preparing to unpack .../20-libjpeg8_8c-2ubuntu11_arm64.deb ... 253s Unpacking libjpeg8:arm64 (8c-2ubuntu11) ... 253s Selecting previously unselected package liblapack3:arm64. 253s Preparing to unpack .../21-liblapack3_3.12.1-2_arm64.deb ... 253s Unpacking liblapack3:arm64 (3.12.1-2) ... 253s Selecting previously unselected package liblerc4:arm64. 253s Preparing to unpack .../22-liblerc4_4.0.0+ds-5ubuntu1_arm64.deb ... 253s Unpacking liblerc4:arm64 (4.0.0+ds-5ubuntu1) ... 253s Selecting previously unselected package libthai-data. 253s Preparing to unpack .../23-libthai-data_0.1.29-2build1_all.deb ... 253s Unpacking libthai-data (0.1.29-2build1) ... 253s Selecting previously unselected package libthai0:arm64. 253s Preparing to unpack .../24-libthai0_0.1.29-2build1_arm64.deb ... 253s Unpacking libthai0:arm64 (0.1.29-2build1) ... 253s Selecting previously unselected package libpango-1.0-0:arm64. 253s Preparing to unpack .../25-libpango-1.0-0_1.56.2-1_arm64.deb ... 253s Unpacking libpango-1.0-0:arm64 (1.56.2-1) ... 253s Selecting previously unselected package libpangoft2-1.0-0:arm64. 253s Preparing to unpack .../26-libpangoft2-1.0-0_1.56.2-1_arm64.deb ... 253s Unpacking libpangoft2-1.0-0:arm64 (1.56.2-1) ... 253s Selecting previously unselected package libpangocairo-1.0-0:arm64. 253s Preparing to unpack .../27-libpangocairo-1.0-0_1.56.2-1_arm64.deb ... 253s Unpacking libpangocairo-1.0-0:arm64 (1.56.2-1) ... 253s Selecting previously unselected package libpaper2:arm64. 253s Preparing to unpack .../28-libpaper2_2.2.5-0.3_arm64.deb ... 253s Unpacking libpaper2:arm64 (2.2.5-0.3) ... 253s Selecting previously unselected package libpaper-utils. 253s Preparing to unpack .../29-libpaper-utils_2.2.5-0.3_arm64.deb ... 253s Unpacking libpaper-utils (2.2.5-0.3) ... 253s Selecting previously unselected package libsharpyuv0:arm64. 253s Preparing to unpack .../30-libsharpyuv0_1.5.0-0.1_arm64.deb ... 253s Unpacking libsharpyuv0:arm64 (1.5.0-0.1) ... 253s Selecting previously unselected package libsm6:arm64. 253s Preparing to unpack .../31-libsm6_2%3a1.2.4-1_arm64.deb ... 253s Unpacking libsm6:arm64 (2:1.2.4-1) ... 253s Selecting previously unselected package libtcl8.6:arm64. 253s Preparing to unpack .../32-libtcl8.6_8.6.16+dfsg-1_arm64.deb ... 253s Unpacking libtcl8.6:arm64 (8.6.16+dfsg-1) ... 253s Selecting previously unselected package libjbig0:arm64. 253s Preparing to unpack .../33-libjbig0_2.1-6.1ubuntu2_arm64.deb ... 253s Unpacking libjbig0:arm64 (2.1-6.1ubuntu2) ... 253s Selecting previously unselected package libwebp7:arm64. 253s Preparing to unpack .../34-libwebp7_1.5.0-0.1_arm64.deb ... 253s Unpacking libwebp7:arm64 (1.5.0-0.1) ... 253s Selecting previously unselected package libtiff6:arm64. 254s Preparing to unpack .../35-libtiff6_4.5.1+git230720-4ubuntu4_arm64.deb ... 254s Unpacking libtiff6:arm64 (4.5.1+git230720-4ubuntu4) ... 254s Selecting previously unselected package libxft2:arm64. 254s Preparing to unpack .../36-libxft2_2.3.6-1build1_arm64.deb ... 254s Unpacking libxft2:arm64 (2.3.6-1build1) ... 254s Selecting previously unselected package libxss1:arm64. 254s Preparing to unpack .../37-libxss1_1%3a1.2.3-1build3_arm64.deb ... 254s Unpacking libxss1:arm64 (1:1.2.3-1build3) ... 254s Selecting previously unselected package libtk8.6:arm64. 254s Preparing to unpack .../38-libtk8.6_8.6.16-1_arm64.deb ... 254s Unpacking libtk8.6:arm64 (8.6.16-1) ... 254s Selecting previously unselected package libxt6t64:arm64. 254s Preparing to unpack .../39-libxt6t64_1%3a1.2.1-1.2build1_arm64.deb ... 254s Unpacking libxt6t64:arm64 (1:1.2.1-1.2build1) ... 254s Selecting previously unselected package zip. 254s Preparing to unpack .../40-zip_3.0-14ubuntu2_arm64.deb ... 254s Unpacking zip (3.0-14ubuntu2) ... 254s Selecting previously unselected package unzip. 254s Preparing to unpack .../41-unzip_6.0-28ubuntu6_arm64.deb ... 254s Unpacking unzip (6.0-28ubuntu6) ... 254s Selecting previously unselected package xdg-utils. 254s Preparing to unpack .../42-xdg-utils_1.2.1-2ubuntu1_all.deb ... 254s Unpacking xdg-utils (1.2.1-2ubuntu1) ... 254s Selecting previously unselected package r-base-core. 254s Preparing to unpack .../43-r-base-core_4.4.3-1_arm64.deb ... 254s Unpacking r-base-core (4.4.3-1) ... 254s Selecting previously unselected package r-cran-nleqslv. 254s Preparing to unpack .../44-r-cran-nleqslv_3.3.5-1_arm64.deb ... 254s Unpacking r-cran-nleqslv (3.3.5-1) ... 254s Setting up libgraphite2-3:arm64 (1.3.14-2ubuntu1) ... 254s Setting up libpixman-1-0:arm64 (0.44.0-3) ... 254s Setting up libsharpyuv0:arm64 (1.5.0-0.1) ... 254s Setting up liblerc4:arm64 (4.0.0+ds-5ubuntu1) ... 254s Setting up libxrender1:arm64 (1:0.9.10-1.1build1) ... 254s Setting up libdatrie1:arm64 (0.2.13-3build1) ... 254s Setting up libxcb-render0:arm64 (1.17.0-2) ... 254s Setting up unzip (6.0-28ubuntu6) ... 254s Setting up x11-common (1:7.7+23ubuntu3) ... 255s Setting up libdeflate0:arm64 (1.23-1) ... 255s Setting up libxcb-shm0:arm64 (1.17.0-2) ... 255s Setting up libgomp1:arm64 (15-20250222-0ubuntu1) ... 255s Setting up libjbig0:arm64 (2.1-6.1ubuntu2) ... 255s Setting up zip (3.0-14ubuntu2) ... 255s Setting up libblas3:arm64 (3.12.1-2) ... 255s update-alternatives: using /usr/lib/aarch64-linux-gnu/blas/libblas.so.3 to provide /usr/lib/aarch64-linux-gnu/libblas.so.3 (libblas.so.3-aarch64-linux-gnu) in auto mode 255s Setting up fonts-dejavu-mono (2.37-8) ... 255s Setting up libtcl8.6:arm64 (8.6.16+dfsg-1) ... 255s Setting up fonts-dejavu-core (2.37-8) ... 255s Setting up libjpeg-turbo8:arm64 (2.1.5-3ubuntu2) ... 255s Setting up libgfortran5:arm64 (15-20250222-0ubuntu1) ... 255s Setting up libwebp7:arm64 (1.5.0-0.1) ... 255s Setting up libharfbuzz0b:arm64 (10.2.0-1) ... 255s Setting up libthai-data (0.1.29-2build1) ... 255s Setting up libxss1:arm64 (1:1.2.3-1build3) ... 255s Setting up libpaper2:arm64 (2.2.5-0.3) ... 255s Setting up xdg-utils (1.2.1-2ubuntu1) ... 255s update-alternatives: using /usr/bin/xdg-open to provide /usr/bin/open (open) in auto mode 255s Setting up libjpeg8:arm64 (8c-2ubuntu11) ... 255s Setting up libice6:arm64 (2:1.1.1-1) ... 255s Setting up liblapack3:arm64 (3.12.1-2) ... 255s update-alternatives: using /usr/lib/aarch64-linux-gnu/lapack/liblapack.so.3 to provide /usr/lib/aarch64-linux-gnu/liblapack.so.3 (liblapack.so.3-aarch64-linux-gnu) in auto mode 255s Setting up fontconfig-config (2.15.0-2ubuntu1) ... 255s Setting up libpaper-utils (2.2.5-0.3) ... 255s Setting up libthai0:arm64 (0.1.29-2build1) ... 255s Setting up libtiff6:arm64 (4.5.1+git230720-4ubuntu4) ... 255s Setting up libfontconfig1:arm64 (2.15.0-2ubuntu1) ... 255s Setting up libsm6:arm64 (2:1.2.4-1) ... 255s Setting up fontconfig (2.15.0-2ubuntu1) ... 257s Regenerating fonts cache... done. 257s Setting up libxft2:arm64 (2.3.6-1build1) ... 257s Setting up libtk8.6:arm64 (8.6.16-1) ... 257s Setting up libpango-1.0-0:arm64 (1.56.2-1) ... 257s Setting up libcairo2:arm64 (1.18.2-2) ... 257s Setting up libxt6t64:arm64 (1:1.2.1-1.2build1) ... 257s Setting up libpangoft2-1.0-0:arm64 (1.56.2-1) ... 257s Setting up libpangocairo-1.0-0:arm64 (1.56.2-1) ... 257s Setting up r-base-core (4.4.3-1) ... 257s Creating config file /etc/R/Renviron with new version 257s Setting up r-cran-nleqslv (3.3.5-1) ... 257s Processing triggers for man-db (2.13.0-1) ... 259s Processing triggers for install-info (7.1.1-1) ... 259s Processing triggers for libc-bin (2.41-1ubuntu2) ... 260s autopkgtest [15:46:49]: test generic: [----------------------- 260s BEGIN TEST tests/brdban.R 260s 260s R version 4.4.3 (2025-02-28) -- "Trophy Case" 260s Copyright (C) 2025 The R Foundation for Statistical Computing 260s Platform: aarch64-unknown-linux-gnu 260s 260s R is free software and comes with ABSOLUTELY NO WARRANTY. 260s You are welcome to redistribute it under certain conditions. 260s Type 'license()' or 'licence()' for distribution details. 260s 260s R is a collaborative project with many contributors. 260s Type 'contributors()' for more information and 260s 'citation()' on how to cite R or R packages in publications. 260s 260s Type 'demo()' for some demos, 'help()' for on-line help, or 260s 'help.start()' for an HTML browser interface to help. 260s Type 'q()' to quit R. 260s 260s > # Broyden banded function 260s > 260s > library("nleqslv") 260s > 260s > brdban <- function(x) { 260s + ml <- 5 260s + mu <- 1 260s + n <- length(x) 260s + y <- numeric(n) 260s + 260s + for( k in 1:n ) { 260s + 260s + k1 <- max(1, k - ml) 260s + k2 <- min(n, k + mu) 260s + 260s + temp = 0.0 260s + for(j in k1:k2) { 260s + if ( j != k ) { 260s + temp <- temp + x[j] * (1.0 + x[j]) 260s + } 260s + } 260s + 260s + y[k] <- x[k] * (2.0 + 5.0 * x[k]**2) + 1.0 - temp 260s + 260s + } 260s + y 260s + } 260s > 260s > n <- 10 260s > xstart <- -rep(1,n) 260s > 260s > xsol <- c( -0.42830, -0.47660, -0.51965, -0.55810, -0.59251, 260s + -0.62450, -0.62324, -0.62139, -0.62045, -0.58647 ) 260s > 260s > fsol <- brdban(xsol) 261s > 261s > znlq <- nleqslv(xstart, brdban, global="dbldog", method="Newton", 261s + control=list(trace=0,ftol=1e-8,xtol=1e-8,btol=1e-2,delta=-1.0)) 261s > znlq$termcd # should be 2 for x values within tolerance 261s [1] 1 261s > all(abs(znlq$fvec)<=1e-7) # may not have achieved ftol 261s [1] TRUE 261s > 261s > xstart <- -2*rep(1,n) 261s > znlq <- nleqslv(xstart, brdban, global="dbldog", method="Newton", 261s + control=list(trace=0,ftol=1e-8,xtol=1e-8,btol=1e-2,delta=-1.0)) 261s > znlq$termcd 261s [1] 1 261s > all(abs(znlq$fvec)<=1e-8) 261s [1] TRUE 261s > 261s > znlq <- nleqslv(xstart, brdban, global="dbldog", 261s + control=list(trace=0,ftol=1e-8,xtol=1e-8,btol=1e-2,delta=-1.0)) 261s > znlq$termcd # should be 2 for x values within tolerance 261s [1] 1 261s > all(abs(znlq$fvec)<=1e-7) # may not have achieved ftol 261s [1] TRUE 261s > 261s > xstart <- -2*rep(1,n) 261s > znlq <- nleqslv(xstart, brdban, global="dbldog", 261s + control=list(trace=0,ftol=1e-8,xtol=1e-8,btol=1e-2,delta=-1.0)) 261s > znlq$termcd 261s [1] 1 261s > all(abs(znlq$fvec)<=1e-8) 261s [1] TRUE 261s > 261s BEGIN TEST tests/brdbanded.R 261s 261s R version 4.4.3 (2025-02-28) -- "Trophy Case" 261s Copyright (C) 2025 The R Foundation for Statistical Computing 261s Platform: aarch64-unknown-linux-gnu 261s 261s R is free software and comes with ABSOLUTELY NO WARRANTY. 261s You are welcome to redistribute it under certain conditions. 261s Type 'license()' or 'licence()' for distribution details. 261s 261s R is a collaborative project with many contributors. 261s Type 'contributors()' for more information and 261s 'citation()' on how to cite R or R packages in publications. 261s 261s Type 'demo()' for some demos, 'help()' for on-line help, or 261s 'help.start()' for an HTML browser interface to help. 261s Type 'q()' to quit R. 261s 261s > # Broyden banded 261s > 261s > library("nleqslv") 261s > 261s > brdban <- function(x,ml=5,mu=1) { 261s + n <- length(x) 261s + y <- numeric(n) 261s + 261s + for( k in 1:n ) { 261s + 261s + k1 <- max(1, k - ml) 261s + k2 <- min(n, k + mu) 261s + 261s + temp <- 0.0 261s + for(j in k1:k2) { 261s + if ( j != k ) { 261s + temp <- temp + x[j] * (1.0 + x[j]) 261s + } 261s + } 261s + 261s + y[k] <- x[k] * (2.0 + 5.0 * x[k]**2) + 1.0 - temp 261s + 261s + } 261s + y 261s + } 261s > 261s > n <- 10 261s > xstart <- -rep(1,n) 261s > ztol <- 1000*.Machine$double.eps 261s > 261s > z1 <- nleqslv(xstart,brdban, method="Newton") 261s > z2 <- nleqslv(xstart,brdban, method="Newton", control=list(dsub=5,dsuper=1)) 261s > 261s > cat("z1 termcd=",z1$termcd, "jcnt,fcnt=",z1$njcnt,z1$nfcnt,"\n") 261s z1 termcd= 1 jcnt,fcnt= 5 5 261s > cat("z2 termcd=",z2$termcd, "jcnt,fcnt=",z2$njcnt,z2$nfcnt,"\n") 261s z2 termcd= 1 jcnt,fcnt= 5 5 261s > z1$message 261s [1] "Function criterion near zero" 261s > z2$message 261s [1] "Function criterion near zero" 261s > all.equal(z2$x,z1$x) 261s [1] TRUE 261s > all.equal(z2$x,z1$x, tolerance=ztol) 261s [1] TRUE 261s > 261s > z1 <- nleqslv(xstart,brdban, ml=2,mu=2, method="Newton") 261s > z2 <- nleqslv(xstart,brdban, ml=2,mu=2, method="Newton", control=list(dsub=2,dsuper=2)) 261s > 261s > cat("z1 termcd=",z1$termcd, "jcnt,fcnt=",z1$njcnt,z1$nfcnt,"\n") 261s z1 termcd= 1 jcnt,fcnt= 5 5 261s > cat("z2 termcd=",z2$termcd, "jcnt,fcnt=",z2$njcnt,z2$nfcnt,"\n") 261s z2 termcd= 1 jcnt,fcnt= 5 5 261s > z1$message 261s [1] "Function criterion near zero" 261s > z2$message 261s [1] "Function criterion near zero" 261s > all.equal(z2$x,z1$x, tolerance=ztol) 261s [1] TRUE 261s > 261s > z3 <- nleqslv(xstart,brdban, ml=2,mu=2, method="Broyden") 261s > z4 <- nleqslv(xstart,brdban, ml=2,mu=2, method="Broyden", control=list(dsub=2,dsuper=2)) 261s > 261s > cat("z3 termcd=",z1$termcd, "jcnt,fcnt=",z3$njcnt,z3$nfcnt,"\n") 261s z3 termcd= 1 jcnt,fcnt= 1 20 261s > cat("z4 termcd=",z2$termcd, "jcnt,fcnt=",z4$njcnt,z4$nfcnt,"\n") 261s z4 termcd= 1 jcnt,fcnt= 1 20 261s > z3$message 261s [1] "Function criterion near zero" 261s > z4$message 261s [1] "Function criterion near zero" 261s > all.equal(z3$x,z1$x) 261s [1] TRUE 261s > all.equal(z4$x,z1$x) 261s [1] TRUE 261s > all.equal(z4$x,z3$x, tolerance=ztol) 261s [1] TRUE 261s > 261s BEGIN TEST tests/brdtri.R 261s 261s R version 4.4.3 (2025-02-28) -- "Trophy Case" 261s Copyright (C) 2025 The R Foundation for Statistical Computing 261s Platform: aarch64-unknown-linux-gnu 261s 261s R is free software and comes with ABSOLUTELY NO WARRANTY. 261s You are welcome to redistribute it under certain conditions. 261s Type 'license()' or 'licence()' for distribution details. 261s 261s R is a collaborative project with many contributors. 261s Type 'contributors()' for more information and 261s 'citation()' on how to cite R or R packages in publications. 261s 261s Type 'demo()' for some demos, 'help()' for on-line help, or 261s 'help.start()' for an HTML browser interface to help. 261s Type 'q()' to quit R. 261s 261s > # Broyden tridiagonal 261s > 261s > library("nleqslv") 261s > 261s > brdtri <- function(x) { 261s + n <- length(x) 261s + y <- numeric(n) 261s + 261s + y[1] <- (3-2*x[1])*x[1] - 2*x[2] + 1 261s + y[n] <- (3-2*x[n])*x[n] - x[n-1] + 1 261s + 261s + k <- 2:(n-1) 261s + y[k] <- (3-2*x[k])*x[k] - x[k-1] - 2 * x[k+1] + 1 261s + 261s + y 261s + } 261s > 261s > n <- 100 261s > xstart <- -rep(1,n) 261s > ztol <- 1000*.Machine$double.eps 261s > 261s > z1 <- nleqslv(xstart,brdtri, method="Newton") 261s > z2 <- nleqslv(xstart,brdtri, method="Newton", control=list(dsub=1,dsuper=1)) 261s > 261s > cat("z1 termcd=",z1$termcd, "jcnt,fcnt=",z1$njcnt,z1$nfcnt,"\n") 261s z1 termcd= 1 jcnt,fcnt= 4 4 261s > cat("z2 termcd=",z2$termcd, "jcnt,fcnt=",z2$njcnt,z2$nfcnt,"\n") 261s z2 termcd= 1 jcnt,fcnt= 4 4 261s > z1$message 261s [1] "Function criterion near zero" 261s > z2$message 261s [1] "Function criterion near zero" 261s > all.equal(z2$x,z1$x) 261s [1] TRUE 261s > all.equal(z2$x,z1$x, tolerance=ztol) 261s [1] TRUE 261s > 261s > z1 <- nleqslv(xstart,brdtri, method="Newton") 261s > z2 <- nleqslv(xstart,brdtri, method="Newton", control=list(dsub=1,dsuper=1)) 261s > 261s > cat("z1 termcd=",z1$termcd, "jcnt,fcnt=",z1$njcnt,z1$nfcnt,"\n") 261s z1 termcd= 1 jcnt,fcnt= 4 4 261s > cat("z2 termcd=",z2$termcd, "jcnt,fcnt=",z2$njcnt,z2$nfcnt,"\n") 261s z2 termcd= 1 jcnt,fcnt= 4 4 261s > z1$message 261s [1] "Function criterion near zero" 261s > z2$message 261s [1] "Function criterion near zero" 261s > all.equal(z2$x,z1$x, tolerance=ztol) 261s [1] TRUE 261s > 261s > z3 <- nleqslv(xstart,brdtri, method="Broyden") 261s > z4 <- nleqslv(xstart,brdtri, method="Broyden", control=list(dsub=1,dsuper=1)) 261s > 261s > cat("z3 termcd=",z1$termcd, "jcnt,fcnt=",z3$njcnt,z3$nfcnt,"\n") 261s z3 termcd= 1 jcnt,fcnt= 1 10 261s > cat("z4 termcd=",z2$termcd, "jcnt,fcnt=",z4$njcnt,z4$nfcnt,"\n") 261s z4 termcd= 1 jcnt,fcnt= 1 10 261s > z3$message 261s [1] "x-values within tolerance 'xtol'" 261s > z4$message 261s [1] "x-values within tolerance 'xtol'" 261s > all.equal(z3$x,z1$x) 261s [1] TRUE 261s > all.equal(z4$x,z1$x) 261s [1] TRUE 261s > all.equal(z4$x,z3$x, tolerance=ztol) 261s [1] TRUE 261s > 261s BEGIN TEST tests/brdtrijac.R 261s 261s R version 4.4.3 (2025-02-28) -- "Trophy Case" 261s Copyright (C) 2025 The R Foundation for Statistical Computing 261s Platform: aarch64-unknown-linux-gnu 261s 261s R is free software and comes with ABSOLUTELY NO WARRANTY. 261s You are welcome to redistribute it under certain conditions. 261s Type 'license()' or 'licence()' for distribution details. 261s 261s R is a collaborative project with many contributors. 261s Type 'contributors()' for more information and 261s 'citation()' on how to cite R or R packages in publications. 261s 261s Type 'demo()' for some demos, 'help()' for on-line help, or 261s 'help.start()' for an HTML browser interface to help. 261s Type 'q()' to quit R. 261s 261s > # Broyden banded function 261s > 261s > library(nleqslv) 261s > 261s > brdtri <- function(x) { 261s + n <- length(x) 261s + y <- numeric(n) 261s + 261s + # y[1] <- (3-2*x[1])*x[1] - 2*x[2] + 1 261s + # y[n] <- (3-2*x[n])*x[n] - x[n-1] + 1 261s + # 261s + # k <- 2:(n-1) 261s + # y[k] <- (3-2*x[k])*x[k] - x[k-1] - 2 * x[k+1] + 1 261s + # 261s + y <- (3-2*x)*x - c(0,x[-n]) - 2*c(x[-1],0) + 1 261s + y 261s + } 261s > 261s > brdtrijac <- function(x) { 261s + n <- length(x) 261s + J <- diag(3-4*x,n,n) 261s + J[row(J)==col(J)+1] <- -1 261s + J[row(J)==col(J)-1] <- -2 261s + J 261s + } 261s > 261s > options(echo=TRUE) 261s > 261s > n <- 10 261s > xstart <- -rep(1,n) 261s > fstart <- brdtri(xstart) 261s > 261s > z0 <- nleqslv(xstart,brdtri, method="Newton", global="dbldog") 261s > z0$message 261s [1] "Function criterion near zero" 261s > 261s > z1 <- nleqslv(xstart,brdtri, brdtrijac, method="Newton", global="dbldog",control=list(trace=0)) 261s > z1$message 261s [1] "Function criterion near zero" 261s > all.equal(z1$x,z0$x) 261s [1] TRUE 261s > 261s > z2 <- nleqslv(xstart,brdtri, brdtrijac, method="Newton", global="dbldog",control=list(trace=0,chkjac=TRUE)) 261s > z2$message 261s [1] "Function criterion near zero" 261s > all.equal(z2$x,z0$x) 261s [1] TRUE 261s > 261s > z3 <- nleqslv(xstart,brdtri, brdtrijac, method="Newton", global="dbldog",control=list(trace=0,dsub=1,dsuper=1)) 261s > z3$message 261s [1] "Function criterion near zero" 261s > all.equal(z2$x,z0$x) 261s [1] TRUE 261s > 261s > z4 <- nleqslv(xstart,brdtri, brdtrijac, method="Newton", global="dbldog",control=list(trace=0,dsub=1,dsuper=1,chkjac=TRUE)) 261s > z4$message 261s [1] "Function criterion near zero" 261s > all.equal(z2$x,z0$x) 261s [1] TRUE 261s > 261s BEGIN TEST tests/chquad.R 261s 261s R version 4.4.3 (2025-02-28) -- "Trophy Case" 261s Copyright (C) 2025 The R Foundation for Statistical Computing 261s Platform: aarch64-unknown-linux-gnu 261s 261s R is free software and comes with ABSOLUTELY NO WARRANTY. 261s You are welcome to redistribute it under certain conditions. 261s Type 'license()' or 'licence()' for distribution details. 261s 261s R is a collaborative project with many contributors. 261s Type 'contributors()' for more information and 261s 'citation()' on how to cite R or R packages in publications. 261s 261s Type 'demo()' for some demos, 'help()' for on-line help, or 261s 'help.start()' for an HTML browser interface to help. 261s Type 'q()' to quit R. 261s 261s > 261s > # Chebyquad functions (no solution for n=8) 261s > 261s > library("nleqslv") 261s > 261s > chebyquad <- function(x) { 261s + n <- length(x) 261s + y <- numeric(n) 261s + 261s + for(j in 1:n) { 261s + t1 <- 1.0 261s + t2 <- 2.0*x[j] - 1.0 261s + tmp <- 2.0*t2 261s + 261s + for(i in 1:n) { 261s + y[i] <- y[i] + t2 261s + t3 <- tmp * t2 - t1 261s + t1 <- t2 261s + t2 <- t3 261s + } 261s + } 261s + 261s + y = y / n 261s + 261s + for(i in 1:n) { 261s + if ( i%%2 == 0 ) { 261s + y[i] = y[i] + 1.0 / (i * i - 1) 261s + } 261s + } 261s + 261s + y 261s + } 261s > 261s > chebyinit <- function(n) { 261s + x <- (1:n) / (n + 1) 261s + } 261s > 261s > for (n in c(1:7,9)) { # exclude n=8 since there is no solution 261s + xstart <- chebyinit(n) 261s + fstart <- chebyquad(xstart) 261s + 261s + zz <- nleqslv(xstart, chebyquad, global="dbldog", 261s + control=list(ftol=1e-8,xtol=1e-8,trace=0,btol=.01,delta=-2)) 261s + print(all(abs(zz$fvec)<=1e-8)) 261s + } 261s [1] TRUE 261s [1] TRUE 261s [1] TRUE 261s [1] TRUE 261s [1] TRUE 261s [1] TRUE 261s [1] TRUE 261s [1] TRUE 261s > 261s > for (n in c(1:7,9)) { # exclude n=8 since there is no solution 261s + xstart <- chebyinit(n) 261s + fstart <- chebyquad(xstart) 261s + 261s + zz <- nleqslv(xstart, chebyquad, global="dbldog", method="Newton", 261s + control=list(ftol=1e-8,xtol=1e-8,trace=0,btol=.01,delta=-2)) 261s + print(all(abs(zz$fvec)<=1e-8)) 261s + } 262s [1] TRUE 262s [1] TRUE 262s [1] TRUE 262s [1] TRUE 262s [1] TRUE 262s [1] TRUE 262s [1] TRUE 262s [1] TRUE 262s > 262s BEGIN TEST tests/control-try.R 262s 262s R version 4.4.3 (2025-02-28) -- "Trophy Case" 262s Copyright (C) 2025 The R Foundation for Statistical Computing 262s Platform: aarch64-unknown-linux-gnu 262s 262s R is free software and comes with ABSOLUTELY NO WARRANTY. 262s You are welcome to redistribute it under certain conditions. 262s Type 'license()' or 'licence()' for distribution details. 262s 262s R is a collaborative project with many contributors. 262s Type 'contributors()' for more information and 262s 'citation()' on how to cite R or R packages in publications. 262s 262s Type 'demo()' for some demos, 'help()' for on-line help, or 262s 'help.start()' for an HTML browser interface to help. 262s Type 'q()' to quit R. 262s 262s > 262s > library(nleqslv) 262s > 262s > # Dennis Schnabel example 6.5.1 page 149 262s > f <- function(x) { 262s + y <- numeric(2) 262s + y[1] <- x[1]^2 + x[2]^2 - 2 262s + y[2] <- exp(x[1]-1) + x[2]^3 - 2 262s + y 262s + } 262s > 262s > # check error handling in control argument 262s > try(nleqslv(f,control=list(1e-3))) 262s > try(nleqslv(f,control=list(f=1e-3))) 262s > try(nleqslv(f,control=list(f=1e-7,b=1e-3))) 262s > 262s BEGIN TEST tests/dslnex.R 262s Error in nleqslv(f, control = list(0.001)) : 262s 'control' argument must be a named list 262s Error in nleqslv(f, control = list(f = 0.001)) : 262s unknown names in control: 'f' 262s Error in nleqslv(f, control = list(f = 1e-07, b = 0.001)) : 262s unknown names in control: 'f', 'b' 262s 262s R version 4.4.3 (2025-02-28) -- "Trophy Case" 262s Copyright (C) 2025 The R Foundation for Statistical Computing 262s Platform: aarch64-unknown-linux-gnu 262s 262s R is free software and comes with ABSOLUTELY NO WARRANTY. 262s You are welcome to redistribute it under certain conditions. 262s Type 'license()' or 'licence()' for distribution details. 262s 262s R is a collaborative project with many contributors. 262s Type 'contributors()' for more information and 262s 'citation()' on how to cite R or R packages in publications. 262s 262s Type 'demo()' for some demos, 'help()' for on-line help, or 262s 'help.start()' for an HTML browser interface to help. 262s Type 'q()' to quit R. 262s 262s > 262s > library("nleqslv") 262s > 262s > # Dennis & Schnabel,1996,"Numerical methods for unconstrained optimization and nonlinear equations", SIAM 262s > # example 6.5.1 page 149 262s > 262s > dslnex <- function(x) { 262s + y <- numeric(2) 262s + y[1] <- x[1]^2 + x[2]^2 - 2 262s + y[2] <- exp(x[1]-1) + x[2]^3 - 2 262s + y 262s + } 262s > 262s > jacdsln <- function(x) { 262s + n <- length(x) 262s + Df <- matrix(numeric(n*n),n,n) 262s + Df[1,1] <- 2*x[1] 262s + Df[1,2] <- 2*x[2] 262s + Df[2,1] <- exp(x[1]-1) 262s + Df[2,2] <- 3*x[2]^2 262s + 262s + Df 262s + } 262s > 262s > xstart <- c(2,0.5) 262s > fstart <- dslnex(xstart) 262s > xstart 262s [1] 2.0 0.5 262s > fstart 262s [1] 2.2500000 0.8432818 262s > 262s > # a solution is c(1,1) 262s > 262s > do.print.xf <- FALSE 262s > 262s > print.result <- function(z) { 262s + if( do.print.xf ) { 262s + print(z$x) 262s + print(z$fvec) 262s + } 262s + print(z$message) 262s + print(all(abs(z$fvec)<=1e-8)) 262s + } 262s > 262s > # Broyden numerical Jacobian 262s > for( z in c("cline", "qline", "gline") ) { # cubic, quadratic, geometric linesearch 262s + znlq <- nleqslv(xstart, dslnex, global=z,control=list(btol=.01)) 262s + print.result(znlq) 262s + } 262s [1] "Function criterion near zero" 262s [1] TRUE 262s [1] "Function criterion near zero" 262s [1] TRUE 262s [1] "Function criterion near zero" 262s [1] TRUE 262s > 262s > # Broyden numerical Jacobian 262s > for( z in c("dbldog","pwldog") ) { # double dogleg, Powell (single) dogleg 262s + for( delta in c(-1.0, -2.0) ) { # Cauchy step , Newton step 262s + znlq <- nleqslv(xstart, dslnex, global=z, control=list(btol=.01,delta=delta)) 262s + print.result(znlq) 262s + } 262s + } 262s [1] "Function criterion near zero" 262s [1] TRUE 262s [1] "Function criterion near zero" 262s [1] TRUE 262s [1] "Function criterion near zero" 262s [1] TRUE 262s [1] "Function criterion near zero" 262s [1] TRUE 262s > 262s > # Broyden analytical jacobian 262s > for( z in c("dbldog","pwldog") ) { # double dogleg, Powell (single) dogleg 262s + for( delta in c(-1.0, -2.0) ) { # Cauchy step , Newton step 262s + znlq <- nleqslv(xstart, dslnex, jacdsln, global=z, control=list(btol=.01,delta=delta)) 262s + print.result(znlq) 262s + } 262s + } 262s [1] "Function criterion near zero" 262s [1] TRUE 262s [1] "Function criterion near zero" 262s [1] TRUE 262s [1] "Function criterion near zero" 262s [1] TRUE 262s [1] "Function criterion near zero" 262s [1] TRUE 262s > 262s > # Newton analytical jacobian 262s > for( z in c("dbldog","pwldog") ) { # double dogleg, Powell (single) dogleg 262s + for( delta in c(-1.0, -2.0) ) { # Cauchy step , Newton step 262s + znlq <- nleqslv(xstart, dslnex, jacdsln, method="Newton", global=z, control=list(btol=.01,delta=delta)) 262s + print.result(znlq) 262s + } 262s + } 262s [1] "Function criterion near zero" 262s [1] TRUE 262s [1] "Function criterion near zero" 262s [1] TRUE 262s [1] "Function criterion near zero" 262s [1] TRUE 262s [1] "Function criterion near zero" 262s [1] TRUE 262s > 262s BEGIN TEST tests/dslnexCN.R 262s 262s R version 4.4.3 (2025-02-28) -- "Trophy Case" 262s Copyright (C) 2025 The R Foundation for Statistical Computing 262s Platform: aarch64-unknown-linux-gnu 262s 262s R is free software and comes with ABSOLUTELY NO WARRANTY. 262s You are welcome to redistribute it under certain conditions. 262s Type 'license()' or 'licence()' for distribution details. 262s 262s R is a collaborative project with many contributors. 262s Type 'contributors()' for more information and 262s 'citation()' on how to cite R or R packages in publications. 262s 262s Type 'demo()' for some demos, 'help()' for on-line help, or 262s 'help.start()' for an HTML browser interface to help. 262s Type 'q()' to quit R. 262s 262s > 262s > library("nleqslv") 262s > 262s > # Dennis & Schnabel,1996,"Numerical methods for unconstrained optimization and nonlinear equations", SIAM 262s > # example 6.5.1 page 149 262s > 262s > dslnex <- function(x) { 262s + y <- numeric(2) 262s + y[1] <- x[1]^2 + x[2]^2 - 2 262s + y[2] <- exp(x[1]-1) + x[2]^3 - 2 262s + y 262s + } 262s > 262s > 262s > xstart <- c(2,0.5) 262s > fstart <- dslnex(xstart) 262s > xstart 262s [1] 2.0 0.5 262s > fstart 262s [1] 2.2500000 0.8432818 262s > 262s > do.print.xf <- TRUE 262s > 262s > print.result <- function(z) { 262s + if( do.print.xf ) { 262s + print(z$x) 262s + print(z$fvec) 262s + } 262s + print(z$message) 262s + print(all(abs(z$fvec)<=1e-8)) 262s + } 262s > 262s > sink("dslnexCN-num.txt") 262s > for( z in c("dbldog","pwldog") ) { # double dogleg, Powell (single) dogleg 262s + for( delta in c(-1.0, -2.0) ) { # Cauchy step , Newton step 262s + znlq <- nleqslv(xstart, dslnex, global=z, control=list(btol=.01,delta=delta, trace=1)) 262s + print.result(znlq) 262s + } 262s + } 262s > sink() 262s > 262s > sink("dslnexCN-char.txt") 262s > for( z in c("dbldog","pwldog") ) { # double dogleg, Powell (single) dogleg 262s + for( delta in c("cauchy", "newton") ) { # Cauchy step , Newton step 262s + znlq <- nleqslv(xstart, dslnex, global=z, control=list(btol=.01,delta=delta,trace=1)) 262s + print.result(znlq) 262s + } 262s + } 262s > sink() 262s > 262s > z1 <- readLines(con="dslnexCN-num.txt") 262s > z2 <- readLines(con="dslnexCN-char.txt") 262s > 262s > all.equal(z1,z2) 262s [1] TRUE 262s > 262s BEGIN TEST tests/dslnexHook.R 262s 262s R version 4.4.3 (2025-02-28) -- "Trophy Case" 262s Copyright (C) 2025 The R Foundation for Statistical Computing 262s Platform: aarch64-unknown-linux-gnu 262s 262s R is free software and comes with ABSOLUTELY NO WARRANTY. 262s You are welcome to redistribute it under certain conditions. 262s Type 'license()' or 'licence()' for distribution details. 262s 262s R is a collaborative project with many contributors. 262s Type 'contributors()' for more information and 262s 'citation()' on how to cite R or R packages in publications. 262s 262s Type 'demo()' for some demos, 'help()' for on-line help, or 262s 'help.start()' for an HTML browser interface to help. 262s Type 'q()' to quit R. 262s 262s > 262s > library(nleqslv) 262s > 262s > # Dennis & Schnabel,1996,"Numerical methods for unconstrained optimization and nonlinear equations", SIAM 262s > # example 6.5.1 page 149 262s > 262s > dslnex <- function(x) { 262s + y <- numeric(2) 262s + y[1] <- x[1]^2 + x[2]^2 - 2 262s + y[2] <- exp(x[1]-1) + x[2]^3 - 2 262s + y 262s + } 262s > 262s > 262s > do.print.xf <- FALSE 262s > do.trace <- 0 262s > print.result <- function(z) { 262s + if( do.print.xf ) { 262s + print(z$x) 262s + print(z$fvec) 262s + } 262s + print(z$message) 262s + print(all(abs(z$fvec)<=1e-8)) 262s + } 262s > 262s > xcmp.result <- function(z1,z2) all(abs(z1$x-z2$x) <= 1e-8) 262s > 262s > xstart <- c(2,0.5) 262s > hnlq1 <- nleqslv(xstart, dslnex, global="hook", control=list(btol=.01,delta="cauchy", trace=do.trace)) 262s > hnlq2 <- nleqslv(xstart, dslnex, global="hook", control=list(btol=.01,delta="newton", trace=do.trace)) 262s > print.result(hnlq1) 262s [1] "Function criterion near zero" 262s [1] TRUE 262s > print.result(hnlq2) 262s [1] "Function criterion near zero" 262s [1] TRUE 262s > xcmp.result(hnlq1,hnlq2) 262s [1] TRUE 262s > 262s > dnlq1 <- nleqslv(xstart, dslnex, global="dbldog", control=list(btol=.01,delta="cauchy", trace=do.trace)) 262s > dnlq2 <- nleqslv(xstart, dslnex, global="dbldog", control=list(btol=.01,delta="newton", trace=do.trace)) 262s > print.result(dnlq1) 262s [1] "Function criterion near zero" 262s [1] TRUE 262s > print.result(dnlq2) 262s [1] "Function criterion near zero" 262s [1] TRUE 262s > xcmp.result(dnlq1,dnlq2) 262s [1] TRUE 262s > xcmp.result(hnlq1,dnlq1) 262s [1] TRUE 262s > 262s > xstart <- c(1.1,1.1) 262s > hnlq1 <- nleqslv(xstart, dslnex, global="hook", control=list(btol=.01,delta="cauchy", trace=do.trace)) 262s > hnlq2 <- nleqslv(xstart, dslnex, global="hook", control=list(btol=.01,delta="newton", trace=do.trace)) 262s > print.result(hnlq1) 262s [1] "Function criterion near zero" 262s [1] TRUE 262s > print.result(hnlq2) 262s [1] "Function criterion near zero" 262s [1] TRUE 262s > xcmp.result(hnlq1,hnlq2) 262s [1] TRUE 262s > 262s > dnlq1 <- nleqslv(xstart, dslnex, global="dbldog", control=list(btol=.01,delta="cauchy", trace=do.trace)) 262s > dnlq2 <- nleqslv(xstart, dslnex, global="dbldog", control=list(btol=.01,delta="newton", trace=do.trace)) 262s > print.result(dnlq1) 262s [1] "Function criterion near zero" 262s [1] TRUE 262s > print.result(dnlq2) 262s [1] "Function criterion near zero" 262s [1] TRUE 262s > xcmp.result(dnlq1,dnlq2) 262s [1] TRUE 262s > xcmp.result(hnlq1,dnlq1) 262s [1] TRUE 262s > 262s BEGIN TEST tests/dslnexauto.R 262s 262s R version 4.4.3 (2025-02-28) -- "Trophy Case" 262s Copyright (C) 2025 The R Foundation for Statistical Computing 262s Platform: aarch64-unknown-linux-gnu 262s 262s R is free software and comes with ABSOLUTELY NO WARRANTY. 262s You are welcome to redistribute it under certain conditions. 262s Type 'license()' or 'licence()' for distribution details. 262s 262s R is a collaborative project with many contributors. 262s Type 'contributors()' for more information and 262s 'citation()' on how to cite R or R packages in publications. 262s 262s Type 'demo()' for some demos, 'help()' for on-line help, or 262s 'help.start()' for an HTML browser interface to help. 262s Type 'q()' to quit R. 262s 263s > # Dennis Schnabel example 263s > 263s > library("nleqslv") 263s > 263s > dslnex <- function(x) { 263s + y <- numeric(2) 263s + y[1] <- x[1]^2 + x[2]^2 - 2 263s + y[2] <- exp(x[1]-1) + x[2]^3 - 2 263s + y 263s + } 263s > 263s > jacdsln <- function(x) { 263s + n <- length(x) 263s + Df <- matrix(numeric(n*n),n,n) 263s + Df[1,1] <- 2*x[1] 263s + Df[1,2] <- 2*x[2] 263s + Df[2,1] <- exp(x[1]-1) 263s + Df[2,2] <- 3*x[2]^2 263s + 263s + Df 263s + } 263s > 263s > xstart <- c(2,0.5) 263s > fstart <- dslnex(xstart) 263s > xstart 263s [1] 2.0 0.5 263s > fstart 263s [1] 2.2500000 0.8432818 263s > 263s > # a solution is c(1,1) 263s > 263s > do.print.xf <- FALSE 263s > 263s > print.result <- function(z) { 263s + if( do.print.xf ) { 263s + print(z$x) 263s + print(z$fvec) 263s + } 263s + print(z$message) 263s + print(all(abs(z$fvec)<=1e-8)) 263s + } 263s > 263s > # Use automatic scaling of x-values. Dosn't always work. 263s > 263s > # Broyden numerical Jacobian 263s > for( z in c("qline", "gline") ) { # quadratic, geometric linesearch 263s + znlq <- nleqslv(xstart, dslnex, global=z,xscalm="auto",control=list(btol=.01)) 263s + print.result(znlq) 263s + } 263s [1] "Function criterion near zero" 263s [1] TRUE 263s [1] "Function criterion near zero" 263s [1] TRUE 263s > 263s > # Broyden numerical Jacobian 263s > for( z in c("dbldog","pwldog") ) { # double dogleg, Powell (single) dogleg 263s + for( delta in c(-1.0, -2.0) ) { # Cauchy step , Newton step 263s + znlq <- nleqslv(xstart, dslnex, global=z,xscalm="auto", control=list(btol=.01,delta=delta)) 263s + print.result(znlq) 263s + } 263s + } 263s [1] "Function criterion near zero" 263s [1] TRUE 263s [1] "No better point found (algorithm has stalled)" 263s [1] FALSE 263s [1] "Function criterion near zero" 263s [1] TRUE 263s [1] "No better point found (algorithm has stalled)" 263s [1] FALSE 263s > 263s > # Broyden analytical jacobian 263s > for( z in c("dbldog","pwldog") ) { # double dogleg, Powell (single) dogleg 263s + for( delta in c(-1.0, -2.0) ) { # Cauchy step , Newton step 263s + znlq <- nleqslv(xstart, dslnex, jacdsln, global=z,xscalm="auto", control=list(btol=.01,delta=delta)) 263s + print.result(znlq) 263s + } 263s + } 263s [1] "Function criterion near zero" 263s [1] TRUE 263s [1] "No better point found (algorithm has stalled)" 263s [1] FALSE 263s [1] "Function criterion near zero" 263s [1] TRUE 263s [1] "No better point found (algorithm has stalled)" 263s [1] FALSE 263s > 263s > # Newton analytical jacobian 263s > for( z in c("dbldog","pwldog") ) { # double dogleg, Powell (single) dogleg 263s + for( delta in c(-1.0, -2.0) ) { # Cauchy step , Newton step 263s + znlq <- nleqslv(xstart, dslnex, jacdsln, method="Newton", global=z,xscalm="auto", control=list(btol=.01,delta=delta)) 263s + print.result(znlq) 263s + } 263s + } 263s [1] "No better point found (algorithm has stalled)" 263s [1] FALSE 263s [1] "No better point found (algorithm has stalled)" 263s [1] FALSE 263s [1] "No better point found (algorithm has stalled)" 263s [1] FALSE 263s [1] "No better point found (algorithm has stalled)" 263s [1] FALSE 263s > 263s BEGIN TEST tests/dslnexjacout.R 263s 263s R version 4.4.3 (2025-02-28) -- "Trophy Case" 263s Copyright (C) 2025 The R Foundation for Statistical Computing 263s Platform: aarch64-unknown-linux-gnu 263s 263s R is free software and comes with ABSOLUTELY NO WARRANTY. 263s You are welcome to redistribute it under certain conditions. 263s Type 'license()' or 'licence()' for distribution details. 263s 263s R is a collaborative project with many contributors. 263s Type 'contributors()' for more information and 263s 'citation()' on how to cite R or R packages in publications. 263s 263s Type 'demo()' for some demos, 'help()' for on-line help, or 263s 'help.start()' for an HTML browser interface to help. 263s Type 'q()' to quit R. 263s 263s > # Dennis & Schnabel,1996,"Numerical methods for unconstrained optimization and nonlinear equations", SIAM 263s > # example 6.5.1 page 149 263s > 263s > library(nleqslv) 263s > 263s > dslnex <- function(x) { 263s + y <- numeric(2) 263s + y[1] <- x[1]^2 + x[2]^2 - 2 263s + y[2] <- exp(x[1]-1) + x[2]^3 - 2 263s + y 263s + } 263s > 263s > jacdsln <- function(x) { 263s + n <- length(x) 263s + Df <- matrix(numeric(n*n),n,n) 263s + Df[1,1] <- 2*x[1] 263s + Df[1,2] <- 2*x[2] 263s + Df[2,1] <- exp(x[1]-1) 263s + Df[2,2] <- 3*x[2]^2 263s + 263s + Df 263s + } 263s > 263s > do.print.xf <- FALSE 263s > do.trace <- 0 263s > 263s > print.result <- function(z) { 263s + if( do.print.xf ) { 263s + print(z$x) 263s + print(z$fvec) 263s + } 263s + print(z$message) 263s + print(all(abs(z$fvec)<=1e-8)) 263s + } 263s > 263s > xstart <- c(2,.5) 263s > 263s > z <- nleqslv(xstart,dslnex, jacobian=TRUE, control=list(trace=do.trace)) 263s > print.result(z) 263s [1] "Function criterion near zero" 263s [1] TRUE 263s > all.equal(z$jac,jacdsln(z$x), tolerance=0.05) 263s [1] TRUE 263s > 263s > z <- nleqslv(xstart,dslnex,jacdsln, jacobian=TRUE, control=list(trace=do.trace)) 263s > print.result(z) 263s [1] "Function criterion near zero" 263s [1] TRUE 263s > all.equal(z$jac,jacdsln(z$x), tolerance=0.05) 263s [1] TRUE 263s > 263s > z <- nleqslv(xstart,dslnex, method="Newton", jacobian=TRUE, control=list(trace=do.trace)) 263s > print.result(z) 263s [1] "Function criterion near zero" 263s [1] TRUE 263s > all.equal(z$jac,jacdsln(z$x), tolerance=10^3*.Machine$double.eps^0.5) 263s [1] TRUE 263s > 263s > z <- nleqslv(xstart,dslnex, jacdsln, method="Newton", jacobian=TRUE, control=list(trace=do.trace)) 263s > print.result(z) 263s [1] "Function criterion near zero" 263s [1] TRUE 263s > identical(z$jac,jacdsln(z$x)) 263s [1] TRUE 263s > 263s BEGIN TEST tests/dslnexscaled.R 263s 263s R version 4.4.3 (2025-02-28) -- "Trophy Case" 263s Copyright (C) 2025 The R Foundation for Statistical Computing 263s Platform: aarch64-unknown-linux-gnu 263s 263s R is free software and comes with ABSOLUTELY NO WARRANTY. 263s You are welcome to redistribute it under certain conditions. 263s Type 'license()' or 'licence()' for distribution details. 263s 263s R is a collaborative project with many contributors. 263s Type 'contributors()' for more information and 263s 'citation()' on how to cite R or R packages in publications. 263s 263s Type 'demo()' for some demos, 'help()' for on-line help, or 263s 'help.start()' for an HTML browser interface to help. 263s Type 'q()' to quit R. 263s 263s > # Dennis Schnabel example 263s > 263s > library("nleqslv") 263s > 263s > dslnex <- function(x) { 263s + y <- numeric(2) 263s + y[1] <- x[1]^2 + x[2]^2 - 2 263s + y[2] <- exp(x[1]-1) + x[2]^3 - 2 263s + y 263s + } 263s > 263s > jacdsln <- function(x) { 263s + n <- length(x) 263s + Df <- matrix(numeric(n*n),n,n) 263s + Df[1,1] <- 2*x[1] 263s + Df[1,2] <- 2*x[2] 263s + Df[2,1] <- exp(x[1]-1) 263s + Df[2,2] <- 3*x[2]^2 263s + 263s + Df 263s + } 263s > 263s > xstart <- c(2,0.5) 263s > fstart <- dslnex(xstart) 263s > xstart 263s [1] 2.0 0.5 263s > fstart 263s [1] 2.2500000 0.8432818 263s > 263s > # a solution is c(1,1) 263s > 263s > do.print.xf <- FALSE 263s > 263s > print.result <- function(z) { 263s + if( do.print.xf ) { 263s + print(z$x) 263s + print(z$fvec) 263s + } 263s + print(z$message) 263s + print(all(abs(z$fvec)<=1e-8)) 263s + } 263s > 263s > # Use our fixed scaling 263s > 263s > znlq <- nleqslv(xstart, dslnex, jacdsln, global="dbldog", control=list(btol=.01,delta=-1.0,chkjac=TRUE,scalex=c(2,3))) 263s > if(znlq$termcd == -10) stop("Internal error in check analytical jacobian") 263s > 263s > # Broyden analytical jacobian 263s > for( z in c("dbldog","pwldog") ) { # double dogleg, Powell (single) dogleg 263s + for( delta in c(-1.0, -2.0) ) { # Cauchy step , Newton step 263s + znlq <- nleqslv(xstart, dslnex, jacdsln, global=z, control=list(btol=.01,delta=delta,chkjac=TRUE,scalex=c(2,3))) 263s + print.result(znlq) 263s + } 263s + } 263s [1] "Function criterion near zero" 263s [1] TRUE 263s [1] "Function criterion near zero" 263s [1] TRUE 263s [1] "Function criterion near zero" 263s [1] TRUE 263s [1] "Function criterion near zero" 263s [1] TRUE 263s > 263s > # Newton analytical jacobian 263s > for( z in c("dbldog","pwldog") ) { # double dogleg, Powell (single) dogleg 263s + for( delta in c(-1.0, -2.0) ) { # Cauchy step , Newton step 263s + znlq <- nleqslv(xstart, dslnex, jacdsln, method="Newton", global=z, control=list(btol=.01,delta=delta,chkjac=TRUE,scalex=c(2,3))) 263s + print.result(znlq) 263s + } 263s + } 263s [1] "Function criterion near zero" 263s [1] TRUE 263s [1] "Function criterion near zero" 263s [1] TRUE 263s [1] "Function criterion near zero" 263s [1] TRUE 263s [1] "Function criterion near zero" 263s [1] TRUE 263s > 263s BEGIN TEST tests/singular1.R 263s 263s R version 4.4.3 (2025-02-28) -- "Trophy Case" 263s Copyright (C) 2025 The R Foundation for Statistical Computing 263s Platform: aarch64-unknown-linux-gnu 263s 263s R is free software and comes with ABSOLUTELY NO WARRANTY. 263s You are welcome to redistribute it under certain conditions. 263s Type 'license()' or 'licence()' for distribution details. 263s 263s R is a collaborative project with many contributors. 263s Type 'contributors()' for more information and 263s 'citation()' on how to cite R or R packages in publications. 263s 263s Type 'demo()' for some demos, 'help()' for on-line help, or 263s 'help.start()' for an HTML browser interface to help. 263s Type 'q()' to quit R. 263s 263s > 263s > library(nleqslv) 263s > 263s > # Brown almost linear function 263s > 263s > brown <- function(x) { 263s + n <- length(x) 263s + y <- numeric(n) 263s + 263s + y[1:(n-1)] <- x[1:(n-1)] + sum(x[1:n]) - (n + 1) 263s + y[n] <- prod(x[1:n]) - 1.0 263s + 263s + y 263s + } 263s > 263s > brownjac <- function(x) { 263s + n <- length(x) 263s + J <- matrix(1,nrow=n,ncol=n) 263s + diag(J) <- 2 263s + xprod <- prod(x) 263s + J[n,] <- xprod/x # exact 263s + J 263s + } 263s > 263s > print.result <- function(z, do.print.xf=FALSE) { 263s + if( do.print.xf ) { 263s + print(z$x) 263s + print(z$fvec) 263s + } 263s + print(z$message) 263s + print(all(abs(z$fvec)<=1e-8)) 263s + } 263s > 263s > for( m in c("Newton","Broyden") ) { 263s + for( n in c(50,100) ) { 263s + xstart <- rep(1,n)/2 263s + z <- nleqslv(xstart, brown, brownjac, method="Newton", 263s + control=list(trace=0,ftol=1e-10,delta="cauchy",allowSingular=TRUE)) 263s + print.result(z) 263s + } 263s + } 263s [1] "Function criterion near zero" 263s [1] TRUE 263s [1] "Function criterion near zero" 263s [1] TRUE 263s [1] "Function criterion near zero" 263s [1] TRUE 263s [1] "Function criterion near zero" 263s [1] TRUE 263s > 263s BEGIN TEST tests/singular2.R 264s 264s R version 4.4.3 (2025-02-28) -- "Trophy Case" 264s Copyright (C) 2025 The R Foundation for Statistical Computing 264s Platform: aarch64-unknown-linux-gnu 264s 264s R is free software and comes with ABSOLUTELY NO WARRANTY. 264s You are welcome to redistribute it under certain conditions. 264s Type 'license()' or 'licence()' for distribution details. 264s 264s R is a collaborative project with many contributors. 264s Type 'contributors()' for more information and 264s 'citation()' on how to cite R or R packages in publications. 264s 264s Type 'demo()' for some demos, 'help()' for on-line help, or 264s 'help.start()' for an HTML browser interface to help. 264s Type 'q()' to quit R. 264s 264s > # http://stackoverflow.com/questions/29134996/solving-nonlinear-equation-in-r 264s > 264s > # wants to know if system has closed form solution 264s > # I want to see how nleqslv behaves 264s > 264s > set.seed(29) 264s > 264s > library(nleqslv) 264s > 264s > print.result <- function(z, do.print.xf=FALSE) { 264s + if( do.print.xf ) { 264s + print(z$x) 264s + print(z$fvec) 264s + } 264s + print(z$message) 264s + print(all(abs(z$fvec)<=1e-8)) 264s + } 264s > 264s > f <- function(X, a, b, c1, c2, c3) { 264s + Y <- numeric(3) 264s + x <- X[1] 264s + y <- X[2] 264s + z <- X[3] 264s + Y[1] <- x + y - x*y - c1 264s + Y[2] <- x + z - x*z - c2 264s + Y[3] <- a*y + b*z - c3 264s + return(Y) 264s + } 264s > 264s > Jac <- function(X, a, b, c1, c2, c3) { 264s + J <- matrix(0,nrow=3,ncol=3) 264s + x <- X[1] 264s + y <- X[2] 264s + z <- X[3] 264s + 264s + J[1,1] <- 1-y 264s + J[2,1] <- 1-z 264s + J[3,1] <- 0 264s + J[1,2] <- 1-x 264s + J[2,2] <- 0 264s + J[3,2] <- a 264s + J[1,3] <- 0 264s + J[2,3] <- 1-x 264s + J[3,3] <- b 264s + J 264s + } 264s > 264s > a <- 1 264s > b <- 1 264s > c1 <- 2 264s > c2 <- 3 264s > c3 <- 4 264s > 264s > # exact solution 264s > x <- (a*c1+b*c2-c3)/(a+b-c3) 264s > y <- (b*c1-b*c2-c1*c3+c3)/(-a*c1+a-b*c2+b) 264s > z <- (a*(c1-c2)+(c2-1)*c3)/(a*(c1-1)+b*(c2-1)) 264s > xsol <- c(x,y,z) 264s > 264s > X.start <- c(1,2,3) 264s > z1 <- nleqslv(X.start,f,Jac,a=a,b=b,c1=c1,c2=c2,c3=c3, 264s + method="Newton",control=list(trace=0,allowSingular=TRUE)) 264s > 264s > z2 <- nleqslv(X.start,f,Jac,a=a,b=b,c1=c1,c2=c2,c3=c3, 264s + method="Broyden",control=list(trace=0,allowSingular=TRUE)) 264s > 264s > all.equal(z1$x,xsol) 264s [1] TRUE 264s > all.equal(z2$x,xsol) 264s [1] TRUE 264s > print.result(z1) 264s [1] "Function criterion near zero" 264s [1] TRUE 264s > print.result(z2) 264s [1] "Function criterion near zero" 264s [1] TRUE 264s > 264s BEGIN TEST tests/singular3.R 264s 264s R version 4.4.3 (2025-02-28) -- "Trophy Case" 264s Copyright (C) 2025 The R Foundation for Statistical Computing 264s Platform: aarch64-unknown-linux-gnu 264s 264s R is free software and comes with ABSOLUTELY NO WARRANTY. 264s You are welcome to redistribute it under certain conditions. 264s Type 'license()' or 'licence()' for distribution details. 264s 264s R is a collaborative project with many contributors. 264s Type 'contributors()' for more information and 264s 'citation()' on how to cite R or R packages in publications. 264s 264s Type 'demo()' for some demos, 'help()' for on-line help, or 264s 'help.start()' for an HTML browser interface to help. 264s Type 'q()' to quit R. 264s 264s > 264s > library(nleqslv) 264s > 264s > print.result <- function(z, do.print.xf=FALSE) { 264s + if( do.print.xf ) { 264s + print(z$x) 264s + print(z$fvec) 264s + } 264s + print(z$message) 264s + print(all(abs(z$fvec)<=1e-8)) 264s + } 264s > 264s > # Powell cautionary example 264s > # M.J.D. Powell, "A Hybrid Method for Nonlinear Equations", 264s > # in Numerical methods for Nonlinear Algebraic Equations, ed. P. Rabinowitz, 1970. 264s > 264s > 264s > f <- function(x) { 264s + y <- numeric(2) 264s + y[1] <- x[1] 264s + y[2] <- 10*x[1]/(x[1]+.1) + 2*x[2]^2 264s + 264s + y 264s + } 264s > 264s > jac <- function(x) { 264s + fjac <- matrix(0,nrow=2,ncol=2) 264s + 264s + fjac[1, 1] <- 1 264s + fjac[1, 2] <- 0 264s + fjac[2, 1] <- 1/(x[1]+0.1)^2 264s + fjac[2, 2] <- 4*x[2] 264s + 264s + fjac 264s + } 264s > 264s > xstart <- c(3,1) 264s > z1 <- nleqslv(xstart,f, method="Newton",control=list(trace=0,allowSingular=TRUE)) 264s > print.result(z1) 264s [1] "Function criterion near zero" 264s [1] TRUE 264s > xstart <- c(3,0) # singular start 264s > z2 <- nleqslv(xstart,f, method="Newton",control=list(trace=0,allowSingular=TRUE)) 264s > print.result(z2) 264s [1] "Function criterion near zero" 264s [1] TRUE 264s > 264s BEGIN TEST tests/trig.R 264s 264s R version 4.4.3 (2025-02-28) -- "Trophy Case" 264s Copyright (C) 2025 The R Foundation for Statistical Computing 264s Platform: aarch64-unknown-linux-gnu 264s 264s R is free software and comes with ABSOLUTELY NO WARRANTY. 264s You are welcome to redistribute it under certain conditions. 264s Type 'license()' or 'licence()' for distribution details. 264s 264s R is a collaborative project with many contributors. 264s Type 'contributors()' for more information and 264s 'citation()' on how to cite R or R packages in publications. 264s 264s Type 'demo()' for some demos, 'help()' for on-line help, or 264s 'help.start()' for an HTML browser interface to help. 264s Type 'q()' to quit R. 264s 264s > 264s > library("nleqslv") 264s > 264s > # Trigonometric function 264s > trig <- function(x) { 264s + n <- length(x) 264s + y <- cos(x) 264s + s <- sum(y) 264s + y <- n - s + c(1:n) * (1-y) - sin(x) 264s + 264s + y 264s + } 264s > 264s > trigjac <- function(x) { 264s + n <- length(x) 264s + J <- matrix(numeric(n*n),n,n) 264s + 264s + for (p in 1:n) { 264s + J[,p] <- sin(x[p]) 264s + J[p,p] <- (p+1) * sin(x[p]) - cos(x[p]) 264s + } 264s + 264s + J 264s + } 264s > 264s > do.print.xf <- FALSE 264s > 264s > print.result <- function(z) { 264s + if( do.print.xf ) { 264s + print(z$x) 264s + print(z$fvec) 264s + } 264s + print(z$message) 264s + print(all(abs(z$fvec)<=1e-8)) 264s + } 264s > 264s > n <- 10 264s > xstart <- rep(1,n)/n 264s > fstart <- trig(xstart) 264s > 264s > znlm <- nleqslv(xstart, trig, global="dbldog", control=list(trace=0)) 264s > print.result(znlm) 264s [1] "Function criterion near zero" 264s [1] TRUE 264s > 264s BEGIN TEST tests/tscalargrad.R 264s 264s R version 4.4.3 (2025-02-28) -- "Trophy Case" 264s Copyright (C) 2025 The R Foundation for Statistical Computing 264s Platform: aarch64-unknown-linux-gnu 264s 264s R is free software and comes with ABSOLUTELY NO WARRANTY. 264s You are welcome to redistribute it under certain conditions. 264s Type 'license()' or 'licence()' for distribution details. 264s 264s R is a collaborative project with many contributors. 264s Type 'contributors()' for more information and 264s 'citation()' on how to cite R or R packages in publications. 264s 264s Type 'demo()' for some demos, 'help()' for on-line help, or 264s 'help.start()' for an HTML browser interface to help. 264s Type 'q()' to quit R. 264s 264s > # http://r.789695.n4.nabble.com/newton-method-td2306111.html#a2306111 264s > # R-help, 29-07-2010: newton.method 264s > 264s > library(nleqslv) 264s > 264s > f <- function(x) 2.5*exp(-0.5*(2*0.045 - x)) + 2.5*exp(-0.045) + 2.5*exp(-1.5*x) - 100 264s > 264s > g1 <- function(x) 0.5*2.5*exp(-0.5*(2*0.045 - x)) - 1.5*2.5*exp(-1.5*x) 264s > 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) 264s > 264s > xu.1 <- uniroot(f,c(-3,0), tol=1e-8)$root 264s > xu.2 <- uniroot(f,c( 6,8), tol=1e-8)$root 264s > 264s > xg1.1 <- nleqslv(-2,f,g1)$x 264s > xg2.1 <- nleqslv(-2,f,g2)$x 264s > 264s > xg1.2 <- nleqslv(8,f,g1)$x 264s > xg2.2 <- nleqslv(8,f,g2)$x 264s > 264s > all.equal(xg1.1, xu.1) 264s [1] TRUE 264s > all.equal(xg1.2, xu.2) 264s [1] TRUE 264s > all.equal(xg1.2, xg2.2) 264s [1] TRUE 264s > 264s > all.equal(xg2.1, xu.1) 264s [1] TRUE 264s > all.equal(xg2.2, xu.2) 264s [1] TRUE 264s > all.equal(xg1.2, xg2.2) 264s [1] TRUE 264s > 264s BEGIN TEST tests/xcutlip1p2.R 264s 264s R version 4.4.3 (2025-02-28) -- "Trophy Case" 264s Copyright (C) 2025 The R Foundation for Statistical Computing 264s Platform: aarch64-unknown-linux-gnu 264s 264s R is free software and comes with ABSOLUTELY NO WARRANTY. 264s You are welcome to redistribute it under certain conditions. 264s Type 'license()' or 'licence()' for distribution details. 264s 264s R is a collaborative project with many contributors. 264s Type 'contributors()' for more information and 264s 'citation()' on how to cite R or R packages in publications. 264s 264s Type 'demo()' for some demos, 'help()' for on-line help, or 264s 'help.start()' for an HTML browser interface to help. 264s Type 'q()' to quit R. 264s 264s > # Steady-State solution for reaction rate equations 264s > # Shacham homotopy method (discrete changing of one or more parameters) 264s > # M. Shacham: Numerical Solution of Constrained Non-linear algebriac equations 264s > # International Journal for Numerical Methods in Engineering, 1986, pp.1455--1481. 264s > 264s > # solution should always be > 0 264s > 264s > library(nleqslv) 264s > 264s > RNGkind(kind="Wichmann-Hill") 264s > set.seed(123) 264s > 264s > # Problem 2, page 1463/1464 264s > 264s > cutlip <- function(x) { 264s + # paper has wrong order of parameters 264s + # use the Fortran program to get the correct values 264s + 264s + # parameter set 2 264s + k1 <- 17.721 264s + k2 <- 3.483 264s + k3 <- 505.051 264s + kr1<- 0.118 264s + kr2<- 0.033 264s + 264s + r <- numeric(6) 264s + 264s + r[1] = 1 - x[1] - k1*x[1]*x[6] + kr1 * x[4] 264s + r[2] = 1 - x[2] - k2*x[2]*x[6] + kr2 * x[5] 264s + r[3] = -x[3] + 2*k3*x[4]*x[5] 264s + r[4] = k1*x[1]*x[6] - kr1*x[4] - k3*x[4]*x[5] 264s + r[5] = 1.5*(k2*x[2]*x[6] - kr2*x[5]) - k3*x[4]*x[5] 264s + r[6] = 1 - x[4] - x[5] - x[6] 264s + 264s + r 264s + } 264s > 264s > 264s > Nrep <- 50 264s > xstart <- matrix(0,nrow=Nrep, ncol=6) 264s > xstart[,1] <- runif(Nrep,min=0,max=2) 264s > xstart[,2] <- runif(Nrep,min=0,max=1) 264s > xstart[,3] <- runif(Nrep,min=0,max=2) 264s > xstart[,4] <- runif(Nrep,min=0,max=1) 264s > xstart[,5] <- runif(Nrep,min=0,max=1) 264s > xstart[,6] <- runif(Nrep,min=0,max=1) 264s > 264s > ans <- searchZeros(xstart,cutlip, method="Broyden",global="dbldog") 264s > nrow(ans$x)==4 264s [1] TRUE 264s > all(ans$xfnorm <= 1e-10) 264s [1] TRUE 264s > 264s > zans <- searchZeros(ans$xstart,cutlip, method="Broyden",global="dbldog") 264s > length(zans$idxcvg)==4 264s [1] TRUE 264s > all(ans$xfnorm == zans$xfnorm) 264s [1] TRUE 264s > 264s BEGIN TEST tests/xnames.R 265s 265s R version 4.4.3 (2025-02-28) -- "Trophy Case" 265s Copyright (C) 2025 The R Foundation for Statistical Computing 265s Platform: aarch64-unknown-linux-gnu 265s 265s R is free software and comes with ABSOLUTELY NO WARRANTY. 265s You are welcome to redistribute it under certain conditions. 265s Type 'license()' or 'licence()' for distribution details. 265s 265s R is a collaborative project with many contributors. 265s Type 'contributors()' for more information and 265s 'citation()' on how to cite R or R packages in publications. 265s 265s Type 'demo()' for some demos, 'help()' for on-line help, or 265s 'help.start()' for an HTML browser interface to help. 265s Type 'q()' to quit R. 265s 265s > 265s > library(nleqslv) 265s > 265s > f <- function(x) { 265s + y <-numeric(length(x)) 265s + y[1] <- x[1]^2 + x[2]^3 265s + y[2] <- x[1] + 2*x[2] + 3 265s + y 265s + } 265s > 265s > # test named x-values 265s > xstart <- c(a=1.0, b=0.5) 265s > xstart 265s a b 265s 1.0 0.5 265s > 265s > z <- nleqslv(xstart,f, control=list(trace=0)) 265s > all(names(z$x) == names(xstart)) 265s [1] TRUE 265s > 265s > # test named x-values 265s > xstart <- c(u=1.0, 0.5) 265s > xstart 265s u 265s 1.0 0.5 265s > 265s > z <- nleqslv(xstart,f, control=list(trace=0)) 265s > all(names(z$x) == names(xstart)) 265s [1] TRUE 265s > 265s BEGIN TEST tests/xsearchzeros.R 265s 265s R version 4.4.3 (2025-02-28) -- "Trophy Case" 265s Copyright (C) 2025 The R Foundation for Statistical Computing 265s Platform: aarch64-unknown-linux-gnu 265s 265s R is free software and comes with ABSOLUTELY NO WARRANTY. 265s You are welcome to redistribute it under certain conditions. 265s Type 'license()' or 'licence()' for distribution details. 265s 265s R is a collaborative project with many contributors. 265s Type 'contributors()' for more information and 265s 'citation()' on how to cite R or R packages in publications. 265s 265s Type 'demo()' for some demos, 'help()' for on-line help, or 265s 'help.start()' for an HTML browser interface to help. 265s Type 'q()' to quit R. 265s 265s > # R. Baker Kearfott, Some tests of Generalized Bisection, 265s > # ACM Transactions on Methematical Software, Vol. 13, No. 3, 1987, pp 197-220 265s > 265s > # A high-degree polynomial system (section 4.3 Problem 12) 265s > # There are 12 real roots (and 126 complex roots to this system!) 265s > 265s > library(nleqslv) 265s > 265s > hdp <- function(x) { 265s + f <- numeric(length(x)) 265s + f[1] <- 5 * x[1]^9 - 6 * x[1]^5 * x[2]^2 + x[1] * x[2]^4 + 2 * x[1] * x[3] 265s + f[2] <- -2 * x[1]^6 * x[2] + 2 * x[1]^2 * x[2]^3 + 2 * x[2] * x[3] 265s + f[3] <- x[1]^2 + x[2]^2 - 0.265625 265s + f 265s + } 265s > 265s > 265s > N <- 40 265s > set.seed(123) 265s > xstart <- matrix(runif(3*N,min=-1,max=1), N, 3) # N starting values, each of length 3 265s > 265s > ans <- searchZeros(xstart,hdp, method="Broyden",global="dbldog") 265s > nrow(ans$x) == 12 265s [1] TRUE 265s > all(ans$xfnorm <= 1e-10) 265s [1] TRUE 265s > 265s > zans <- searchZeros(ans$xstart,hdp, method="Broyden",global="dbldog") 265s > length(zans$idxcvg) == 12 265s [1] TRUE 265s > 265s BEGIN TEST tests/xtestnslv.R 265s 265s R version 4.4.3 (2025-02-28) -- "Trophy Case" 265s Copyright (C) 2025 The R Foundation for Statistical Computing 265s Platform: aarch64-unknown-linux-gnu 265s 265s R is free software and comes with ABSOLUTELY NO WARRANTY. 265s You are welcome to redistribute it under certain conditions. 265s Type 'license()' or 'licence()' for distribution details. 265s 265s R is a collaborative project with many contributors. 265s Type 'contributors()' for more information and 265s 'citation()' on how to cite R or R packages in publications. 265s 265s Type 'demo()' for some demos, 'help()' for on-line help, or 265s 'help.start()' for an HTML browser interface to help. 265s Type 'q()' to quit R. 265s 265s > 265s > library(nleqslv) 265s > 265s > # function to replace small number with OK or if not with NZ 265s > # this is to avoid differences in the Fnorm column between machines/cpu/os/compilers 265s > 265s > # the test is for checking that testnslv (still) works as expected 265s > 265s > fixsmall <- function(x) { 265s + z <- ifelse(x < .Machine$double.eps^(2/3), "OK","NZ") 265s + z <- ifelse(is.na(z), "NA", z) 265s + z 265s + } 265s > 265s > dslnex <- function(x) { 265s + y <- numeric(2) 265s + y[1] <- x[1]^2 + x[2]^2 - 2 265s + y[2] <- exp(x[1]-1) + x[2]^3 - 2 265s + y 265s + } 265s > xstart <- c(0.5,0.5) 265s > fstart <- dslnex(xstart) 265s > z <- testnslv(xstart,dslnex) 265s > zfn <- z$out[,"Fnorm"] 265s > z$out[,"Fnorm"] <- fixsmall(zfn) 265s > z 265s Call: 265s testnslv(x = xstart, fn = dslnex) 265s 265s Results: 265s Method Global termcd Fcnt Jcnt Iter Message Fnorm 265s 1 Newton cline 1 7 6 6 Fcrit OK 265s 2 Newton qline 1 7 6 6 Fcrit OK 265s 3 Newton gline 1 9 5 5 Fcrit OK 265s 4 Newton pwldog 1 7 6 6 Fcrit OK 265s 5 Newton dbldog 1 7 6 6 Fcrit OK 265s 6 Newton hook 1 7 6 6 Fcrit OK 265s 7 Newton none 1 8 8 8 Fcrit OK 265s 8 Broyden cline 1 12 1 9 Fcrit OK 265s 9 Broyden qline 1 12 1 9 Fcrit OK 265s 10 Broyden gline 1 14 1 10 Fcrit OK 265s 11 Broyden pwldog 1 12 1 10 Fcrit OK 265s 12 Broyden dbldog 1 12 1 10 Fcrit OK 265s 13 Broyden hook 1 12 1 10 Fcrit OK 265s 14 Broyden none 1 13 1 13 Fcrit OK 265s > 265s > # this will encounter an error 265s > xstart <- c(2.0,0.5) 265s > fstart <- dslnex(xstart) 265s > z <- testnslv(xstart,dslnex) 265s Error (method=Newton global=none): non-finite value(s) detected in jacobian (row=2,col=1) 265s > zfn <- z$out[,"Fnorm"] 265s > z$out[,"Fnorm"] <- fixsmall(zfn) 265s > z 265s Call: 265s testnslv(x = xstart, fn = dslnex) 265s 265s Results: 265s Method Global termcd Fcnt Jcnt Iter Message Fnorm 265s 1 Newton cline 1 11 7 7 Fcrit OK 265s 2 Newton qline 1 10 7 7 Fcrit OK 265s 3 Newton gline 1 17 7 7 Fcrit OK 265s 4 Newton pwldog 1 6 5 5 Fcrit OK 265s 5 Newton dbldog 1 6 5 5 Fcrit OK 265s 6 Newton hook 1 11 7 7 Fcrit OK 265s 7 Newton none NA NA NA NA ERROR NA 265s 8 Broyden cline 1 17 1 11 Fcrit OK 265s 9 Broyden qline 1 18 1 13 Fcrit OK 265s 10 Broyden gline 1 25 1 11 Fcrit OK 265s 11 Broyden pwldog 1 12 1 10 Fcrit OK 265s 12 Broyden dbldog 1 12 1 10 Fcrit OK 265s 13 Broyden hook 1 16 1 12 Fcrit OK 265s 14 Broyden none 4 20 1 20 Maxiter NZ 265s > 265s autopkgtest [15:46:54]: test generic: -----------------------] 266s generic PASS 266s autopkgtest [15:46:55]: test generic: - - - - - - - - - - results - - - - - - - - - - 266s autopkgtest [15:46:55]: test pkg-r-autopkgtest: preparing testbed 267s Reading package lists... 267s Building dependency tree... 267s Reading state information... 267s Starting pkgProblemResolver with broken count: 0 267s Starting 2 pkgProblemResolver with broken count: 0 267s Done 268s The following NEW packages will be installed: 268s build-essential cpp cpp-14 cpp-14-aarch64-linux-gnu cpp-aarch64-linux-gnu 268s dctrl-tools g++ g++-14 g++-14-aarch64-linux-gnu g++-aarch64-linux-gnu gcc 268s gcc-14 gcc-14-aarch64-linux-gnu gcc-aarch64-linux-gnu gfortran gfortran-14 268s gfortran-14-aarch64-linux-gnu gfortran-aarch64-linux-gnu icu-devtools 268s libasan8 libblas-dev libbz2-dev libcc1-0 libdeflate-dev libgcc-14-dev 268s libgfortran-14-dev libhwasan0 libicu-dev libisl23 libitm1 libjpeg-dev 268s libjpeg-turbo8-dev libjpeg8-dev liblapack-dev liblsan0 liblzma-dev libmpc3 268s libncurses-dev libpcre2-16-0 libpcre2-32-0 libpcre2-dev libpcre2-posix3 268s libpkgconf3 libpng-dev libreadline-dev libstdc++-14-dev libtirpc-dev 268s libtsan2 libubsan1 pkg-r-autopkgtest pkgconf pkgconf-bin r-base-dev 268s zlib1g-dev 268s 0 upgraded, 54 newly installed, 0 to remove and 0 not upgraded. 268s Need to get 92.7 MB of archives. 268s After this operation, 334 MB of additional disk space will be used. 268s Get:1 http://ftpmaster.internal/ubuntu plucky/main arm64 libisl23 arm64 0.27-1 [676 kB] 269s Get:2 http://ftpmaster.internal/ubuntu plucky/main arm64 libmpc3 arm64 1.3.1-1build2 [56.8 kB] 269s Get:3 http://ftpmaster.internal/ubuntu plucky/main arm64 cpp-14-aarch64-linux-gnu arm64 14.2.0-17ubuntu3 [10.6 MB] 286s Get:4 http://ftpmaster.internal/ubuntu plucky/main arm64 cpp-14 arm64 14.2.0-17ubuntu3 [1028 B] 286s Get:5 http://ftpmaster.internal/ubuntu plucky/main arm64 cpp-aarch64-linux-gnu arm64 4:14.2.0-1ubuntu1 [5558 B] 286s Get:6 http://ftpmaster.internal/ubuntu plucky/main arm64 cpp arm64 4:14.2.0-1ubuntu1 [22.4 kB] 286s Get:7 http://ftpmaster.internal/ubuntu plucky/main arm64 libcc1-0 arm64 15-20250222-0ubuntu1 [44.2 kB] 286s Get:8 http://ftpmaster.internal/ubuntu plucky/main arm64 libitm1 arm64 15-20250222-0ubuntu1 [28.0 kB] 286s Get:9 http://ftpmaster.internal/ubuntu plucky/main arm64 libasan8 arm64 15-20250222-0ubuntu1 [2924 kB] 290s Get:10 http://ftpmaster.internal/ubuntu plucky/main arm64 liblsan0 arm64 15-20250222-0ubuntu1 [1319 kB] 292s Get:11 http://ftpmaster.internal/ubuntu plucky/main arm64 libtsan2 arm64 15-20250222-0ubuntu1 [2694 kB] 296s Get:12 http://ftpmaster.internal/ubuntu plucky/main arm64 libubsan1 arm64 15-20250222-0ubuntu1 [1178 kB] 297s Get:13 http://ftpmaster.internal/ubuntu plucky/main arm64 libhwasan0 arm64 15-20250222-0ubuntu1 [1642 kB] 300s Get:14 http://ftpmaster.internal/ubuntu plucky/main arm64 libgcc-14-dev arm64 14.2.0-17ubuntu3 [2593 kB] 304s Get:15 http://ftpmaster.internal/ubuntu plucky/main arm64 gcc-14-aarch64-linux-gnu arm64 14.2.0-17ubuntu3 [20.9 MB] 341s Get:16 http://ftpmaster.internal/ubuntu plucky/main arm64 gcc-14 arm64 14.2.0-17ubuntu3 [526 kB] 342s Get:17 http://ftpmaster.internal/ubuntu plucky/main arm64 gcc-aarch64-linux-gnu arm64 4:14.2.0-1ubuntu1 [1200 B] 342s Get:18 http://ftpmaster.internal/ubuntu plucky/main arm64 gcc arm64 4:14.2.0-1ubuntu1 [4998 B] 342s Get:19 http://ftpmaster.internal/ubuntu plucky/main arm64 libstdc++-14-dev arm64 14.2.0-17ubuntu3 [2499 kB] 346s Get:20 http://ftpmaster.internal/ubuntu plucky/main arm64 g++-14-aarch64-linux-gnu arm64 14.2.0-17ubuntu3 [12.1 MB] 368s Get:21 http://ftpmaster.internal/ubuntu plucky/main arm64 g++-14 arm64 14.2.0-17ubuntu3 [21.8 kB] 368s Get:22 http://ftpmaster.internal/ubuntu plucky/main arm64 g++-aarch64-linux-gnu arm64 4:14.2.0-1ubuntu1 [956 B] 368s Get:23 http://ftpmaster.internal/ubuntu plucky/main arm64 g++ arm64 4:14.2.0-1ubuntu1 [1080 B] 368s Get:24 http://ftpmaster.internal/ubuntu plucky/main arm64 build-essential arm64 12.10ubuntu1 [4932 B] 368s Get:25 http://ftpmaster.internal/ubuntu plucky/main arm64 dctrl-tools arm64 2.24-3build3 [103 kB] 369s Get:26 http://ftpmaster.internal/ubuntu plucky/main arm64 libgfortran-14-dev arm64 14.2.0-17ubuntu3 [498 kB] 369s Get:27 http://ftpmaster.internal/ubuntu plucky/main arm64 gfortran-14-aarch64-linux-gnu arm64 14.2.0-17ubuntu3 [11.4 MB] 390s Get:28 http://ftpmaster.internal/ubuntu plucky/main arm64 gfortran-14 arm64 14.2.0-17ubuntu3 [13.6 kB] 390s Get:29 http://ftpmaster.internal/ubuntu plucky/main arm64 gfortran-aarch64-linux-gnu arm64 4:14.2.0-1ubuntu1 [1022 B] 390s Get:30 http://ftpmaster.internal/ubuntu plucky/main arm64 gfortran arm64 4:14.2.0-1ubuntu1 [1166 B] 390s Get:31 http://ftpmaster.internal/ubuntu plucky/main arm64 icu-devtools arm64 76.1-1ubuntu2 [213 kB] 390s Get:32 http://ftpmaster.internal/ubuntu plucky/main arm64 libblas-dev arm64 3.12.1-2 [126 kB] 391s Get:33 http://ftpmaster.internal/ubuntu plucky/main arm64 libbz2-dev arm64 1.0.8-6 [36.1 kB] 391s Get:34 http://ftpmaster.internal/ubuntu plucky/main arm64 libdeflate-dev arm64 1.23-1 [53.7 kB] 391s Get:35 http://ftpmaster.internal/ubuntu plucky/main arm64 libicu-dev arm64 76.1-1ubuntu2 [12.2 MB] 413s Get:36 http://ftpmaster.internal/ubuntu plucky/main arm64 libjpeg-turbo8-dev arm64 2.1.5-3ubuntu2 [306 kB] 413s Get:37 http://ftpmaster.internal/ubuntu plucky/main arm64 libjpeg8-dev arm64 8c-2ubuntu11 [1484 B] 413s Get:38 http://ftpmaster.internal/ubuntu plucky/main arm64 libjpeg-dev arm64 8c-2ubuntu11 [1482 B] 413s Get:39 http://ftpmaster.internal/ubuntu plucky/main arm64 liblapack-dev arm64 3.12.1-2 [4439 kB] 420s Get:40 http://ftpmaster.internal/ubuntu plucky/main arm64 libncurses-dev arm64 6.5+20250216-2 [389 kB] 421s Get:41 http://ftpmaster.internal/ubuntu plucky/main arm64 libpcre2-16-0 arm64 10.45-1 [222 kB] 421s Get:42 http://ftpmaster.internal/ubuntu plucky/main arm64 libpcre2-32-0 arm64 10.45-1 [210 kB] 421s Get:43 http://ftpmaster.internal/ubuntu plucky/main arm64 libpcre2-posix3 arm64 10.45-1 [7084 B] 421s Get:44 http://ftpmaster.internal/ubuntu plucky/main arm64 libpcre2-dev arm64 10.45-1 [768 kB] 423s Get:45 http://ftpmaster.internal/ubuntu plucky/main arm64 libpkgconf3 arm64 1.8.1-4 [31.4 kB] 423s Get:46 http://ftpmaster.internal/ubuntu plucky/main arm64 zlib1g-dev arm64 1:1.3.dfsg+really1.3.1-1ubuntu1 [894 kB] 424s Get:47 http://ftpmaster.internal/ubuntu plucky/main arm64 libpng-dev arm64 1.6.47-1 [269 kB] 425s Get:48 http://ftpmaster.internal/ubuntu plucky/main arm64 libreadline-dev arm64 8.2-6 [179 kB] 425s Get:49 http://ftpmaster.internal/ubuntu plucky/main arm64 liblzma-dev arm64 5.6.4-1 [180 kB] 425s Get:50 http://ftpmaster.internal/ubuntu plucky/main arm64 pkgconf-bin arm64 1.8.1-4 [20.9 kB] 425s Get:51 http://ftpmaster.internal/ubuntu plucky/main arm64 pkgconf arm64 1.8.1-4 [16.7 kB] 425s Get:52 http://ftpmaster.internal/ubuntu plucky/main arm64 libtirpc-dev arm64 1.3.4+ds-1.3 [201 kB] 426s Get:53 http://ftpmaster.internal/ubuntu plucky/universe arm64 r-base-dev all 4.4.3-1 [4176 B] 426s Get:54 http://ftpmaster.internal/ubuntu plucky/universe arm64 pkg-r-autopkgtest all 20231212ubuntu1 [6448 B] 426s Fetched 92.7 MB in 2min 37s (589 kB/s) 426s Selecting previously unselected package libisl23:arm64. 427s (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 ... 83858 files and directories currently installed.) 427s Preparing to unpack .../00-libisl23_0.27-1_arm64.deb ... 427s Unpacking libisl23:arm64 (0.27-1) ... 427s Selecting previously unselected package libmpc3:arm64. 427s Preparing to unpack .../01-libmpc3_1.3.1-1build2_arm64.deb ... 427s Unpacking libmpc3:arm64 (1.3.1-1build2) ... 427s Selecting previously unselected package cpp-14-aarch64-linux-gnu. 427s Preparing to unpack .../02-cpp-14-aarch64-linux-gnu_14.2.0-17ubuntu3_arm64.deb ... 427s Unpacking cpp-14-aarch64-linux-gnu (14.2.0-17ubuntu3) ... 427s Selecting previously unselected package cpp-14. 427s Preparing to unpack .../03-cpp-14_14.2.0-17ubuntu3_arm64.deb ... 427s Unpacking cpp-14 (14.2.0-17ubuntu3) ... 427s Selecting previously unselected package cpp-aarch64-linux-gnu. 427s Preparing to unpack .../04-cpp-aarch64-linux-gnu_4%3a14.2.0-1ubuntu1_arm64.deb ... 427s Unpacking cpp-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 427s Selecting previously unselected package cpp. 427s Preparing to unpack .../05-cpp_4%3a14.2.0-1ubuntu1_arm64.deb ... 427s Unpacking cpp (4:14.2.0-1ubuntu1) ... 427s Selecting previously unselected package libcc1-0:arm64. 427s Preparing to unpack .../06-libcc1-0_15-20250222-0ubuntu1_arm64.deb ... 427s Unpacking libcc1-0:arm64 (15-20250222-0ubuntu1) ... 427s Selecting previously unselected package libitm1:arm64. 427s Preparing to unpack .../07-libitm1_15-20250222-0ubuntu1_arm64.deb ... 427s Unpacking libitm1:arm64 (15-20250222-0ubuntu1) ... 427s Selecting previously unselected package libasan8:arm64. 427s Preparing to unpack .../08-libasan8_15-20250222-0ubuntu1_arm64.deb ... 427s Unpacking libasan8:arm64 (15-20250222-0ubuntu1) ... 427s Selecting previously unselected package liblsan0:arm64. 427s Preparing to unpack .../09-liblsan0_15-20250222-0ubuntu1_arm64.deb ... 427s Unpacking liblsan0:arm64 (15-20250222-0ubuntu1) ... 428s Selecting previously unselected package libtsan2:arm64. 428s Preparing to unpack .../10-libtsan2_15-20250222-0ubuntu1_arm64.deb ... 428s Unpacking libtsan2:arm64 (15-20250222-0ubuntu1) ... 428s Selecting previously unselected package libubsan1:arm64. 428s Preparing to unpack .../11-libubsan1_15-20250222-0ubuntu1_arm64.deb ... 428s Unpacking libubsan1:arm64 (15-20250222-0ubuntu1) ... 428s Selecting previously unselected package libhwasan0:arm64. 428s Preparing to unpack .../12-libhwasan0_15-20250222-0ubuntu1_arm64.deb ... 428s Unpacking libhwasan0:arm64 (15-20250222-0ubuntu1) ... 428s Selecting previously unselected package libgcc-14-dev:arm64. 428s Preparing to unpack .../13-libgcc-14-dev_14.2.0-17ubuntu3_arm64.deb ... 428s Unpacking libgcc-14-dev:arm64 (14.2.0-17ubuntu3) ... 428s Selecting previously unselected package gcc-14-aarch64-linux-gnu. 428s Preparing to unpack .../14-gcc-14-aarch64-linux-gnu_14.2.0-17ubuntu3_arm64.deb ... 428s Unpacking gcc-14-aarch64-linux-gnu (14.2.0-17ubuntu3) ... 429s Selecting previously unselected package gcc-14. 429s Preparing to unpack .../15-gcc-14_14.2.0-17ubuntu3_arm64.deb ... 429s Unpacking gcc-14 (14.2.0-17ubuntu3) ... 429s Selecting previously unselected package gcc-aarch64-linux-gnu. 429s Preparing to unpack .../16-gcc-aarch64-linux-gnu_4%3a14.2.0-1ubuntu1_arm64.deb ... 429s Unpacking gcc-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 429s Selecting previously unselected package gcc. 429s Preparing to unpack .../17-gcc_4%3a14.2.0-1ubuntu1_arm64.deb ... 429s Unpacking gcc (4:14.2.0-1ubuntu1) ... 429s Selecting previously unselected package libstdc++-14-dev:arm64. 429s Preparing to unpack .../18-libstdc++-14-dev_14.2.0-17ubuntu3_arm64.deb ... 429s Unpacking libstdc++-14-dev:arm64 (14.2.0-17ubuntu3) ... 429s Selecting previously unselected package g++-14-aarch64-linux-gnu. 429s Preparing to unpack .../19-g++-14-aarch64-linux-gnu_14.2.0-17ubuntu3_arm64.deb ... 429s Unpacking g++-14-aarch64-linux-gnu (14.2.0-17ubuntu3) ... 429s Selecting previously unselected package g++-14. 429s Preparing to unpack .../20-g++-14_14.2.0-17ubuntu3_arm64.deb ... 429s Unpacking g++-14 (14.2.0-17ubuntu3) ... 429s Selecting previously unselected package g++-aarch64-linux-gnu. 429s Preparing to unpack .../21-g++-aarch64-linux-gnu_4%3a14.2.0-1ubuntu1_arm64.deb ... 429s Unpacking g++-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 429s Selecting previously unselected package g++. 429s Preparing to unpack .../22-g++_4%3a14.2.0-1ubuntu1_arm64.deb ... 429s Unpacking g++ (4:14.2.0-1ubuntu1) ... 430s Selecting previously unselected package build-essential. 430s Preparing to unpack .../23-build-essential_12.10ubuntu1_arm64.deb ... 430s Unpacking build-essential (12.10ubuntu1) ... 430s Selecting previously unselected package dctrl-tools. 430s Preparing to unpack .../24-dctrl-tools_2.24-3build3_arm64.deb ... 430s Unpacking dctrl-tools (2.24-3build3) ... 430s Selecting previously unselected package libgfortran-14-dev:arm64. 430s Preparing to unpack .../25-libgfortran-14-dev_14.2.0-17ubuntu3_arm64.deb ... 430s Unpacking libgfortran-14-dev:arm64 (14.2.0-17ubuntu3) ... 430s Selecting previously unselected package gfortran-14-aarch64-linux-gnu. 430s Preparing to unpack .../26-gfortran-14-aarch64-linux-gnu_14.2.0-17ubuntu3_arm64.deb ... 430s Unpacking gfortran-14-aarch64-linux-gnu (14.2.0-17ubuntu3) ... 430s Selecting previously unselected package gfortran-14. 430s Preparing to unpack .../27-gfortran-14_14.2.0-17ubuntu3_arm64.deb ... 430s Unpacking gfortran-14 (14.2.0-17ubuntu3) ... 430s Selecting previously unselected package gfortran-aarch64-linux-gnu. 430s Preparing to unpack .../28-gfortran-aarch64-linux-gnu_4%3a14.2.0-1ubuntu1_arm64.deb ... 430s Unpacking gfortran-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 430s Selecting previously unselected package gfortran. 430s Preparing to unpack .../29-gfortran_4%3a14.2.0-1ubuntu1_arm64.deb ... 430s Unpacking gfortran (4:14.2.0-1ubuntu1) ... 430s Selecting previously unselected package icu-devtools. 430s Preparing to unpack .../30-icu-devtools_76.1-1ubuntu2_arm64.deb ... 430s Unpacking icu-devtools (76.1-1ubuntu2) ... 430s Selecting previously unselected package libblas-dev:arm64. 430s Preparing to unpack .../31-libblas-dev_3.12.1-2_arm64.deb ... 430s Unpacking libblas-dev:arm64 (3.12.1-2) ... 430s Selecting previously unselected package libbz2-dev:arm64. 431s Preparing to unpack .../32-libbz2-dev_1.0.8-6_arm64.deb ... 431s Unpacking libbz2-dev:arm64 (1.0.8-6) ... 431s Selecting previously unselected package libdeflate-dev:arm64. 431s Preparing to unpack .../33-libdeflate-dev_1.23-1_arm64.deb ... 431s Unpacking libdeflate-dev:arm64 (1.23-1) ... 431s Selecting previously unselected package libicu-dev:arm64. 431s Preparing to unpack .../34-libicu-dev_76.1-1ubuntu2_arm64.deb ... 431s Unpacking libicu-dev:arm64 (76.1-1ubuntu2) ... 431s Selecting previously unselected package libjpeg-turbo8-dev:arm64. 431s Preparing to unpack .../35-libjpeg-turbo8-dev_2.1.5-3ubuntu2_arm64.deb ... 431s Unpacking libjpeg-turbo8-dev:arm64 (2.1.5-3ubuntu2) ... 431s Selecting previously unselected package libjpeg8-dev:arm64. 431s Preparing to unpack .../36-libjpeg8-dev_8c-2ubuntu11_arm64.deb ... 431s Unpacking libjpeg8-dev:arm64 (8c-2ubuntu11) ... 431s Selecting previously unselected package libjpeg-dev:arm64. 431s Preparing to unpack .../37-libjpeg-dev_8c-2ubuntu11_arm64.deb ... 431s Unpacking libjpeg-dev:arm64 (8c-2ubuntu11) ... 431s Selecting previously unselected package liblapack-dev:arm64. 431s Preparing to unpack .../38-liblapack-dev_3.12.1-2_arm64.deb ... 431s Unpacking liblapack-dev:arm64 (3.12.1-2) ... 431s Selecting previously unselected package libncurses-dev:arm64. 431s Preparing to unpack .../39-libncurses-dev_6.5+20250216-2_arm64.deb ... 431s Unpacking libncurses-dev:arm64 (6.5+20250216-2) ... 431s Selecting previously unselected package libpcre2-16-0:arm64. 431s Preparing to unpack .../40-libpcre2-16-0_10.45-1_arm64.deb ... 431s Unpacking libpcre2-16-0:arm64 (10.45-1) ... 431s Selecting previously unselected package libpcre2-32-0:arm64. 431s Preparing to unpack .../41-libpcre2-32-0_10.45-1_arm64.deb ... 431s Unpacking libpcre2-32-0:arm64 (10.45-1) ... 431s Selecting previously unselected package libpcre2-posix3:arm64. 431s Preparing to unpack .../42-libpcre2-posix3_10.45-1_arm64.deb ... 431s Unpacking libpcre2-posix3:arm64 (10.45-1) ... 432s Selecting previously unselected package libpcre2-dev:arm64. 432s Preparing to unpack .../43-libpcre2-dev_10.45-1_arm64.deb ... 432s Unpacking libpcre2-dev:arm64 (10.45-1) ... 432s Selecting previously unselected package libpkgconf3:arm64. 432s Preparing to unpack .../44-libpkgconf3_1.8.1-4_arm64.deb ... 432s Unpacking libpkgconf3:arm64 (1.8.1-4) ... 432s Selecting previously unselected package zlib1g-dev:arm64. 432s Preparing to unpack .../45-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu1_arm64.deb ... 432s Unpacking zlib1g-dev:arm64 (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 432s Selecting previously unselected package libpng-dev:arm64. 432s Preparing to unpack .../46-libpng-dev_1.6.47-1_arm64.deb ... 432s Unpacking libpng-dev:arm64 (1.6.47-1) ... 432s Selecting previously unselected package libreadline-dev:arm64. 432s Preparing to unpack .../47-libreadline-dev_8.2-6_arm64.deb ... 432s Unpacking libreadline-dev:arm64 (8.2-6) ... 432s Selecting previously unselected package liblzma-dev:arm64. 432s Preparing to unpack .../48-liblzma-dev_5.6.4-1_arm64.deb ... 432s Unpacking liblzma-dev:arm64 (5.6.4-1) ... 432s Selecting previously unselected package pkgconf-bin. 432s Preparing to unpack .../49-pkgconf-bin_1.8.1-4_arm64.deb ... 432s Unpacking pkgconf-bin (1.8.1-4) ... 432s Selecting previously unselected package pkgconf:arm64. 432s Preparing to unpack .../50-pkgconf_1.8.1-4_arm64.deb ... 432s Unpacking pkgconf:arm64 (1.8.1-4) ... 432s Selecting previously unselected package libtirpc-dev:arm64. 432s Preparing to unpack .../51-libtirpc-dev_1.3.4+ds-1.3_arm64.deb ... 432s Unpacking libtirpc-dev:arm64 (1.3.4+ds-1.3) ... 432s Selecting previously unselected package r-base-dev. 432s Preparing to unpack .../52-r-base-dev_4.4.3-1_all.deb ... 432s Unpacking r-base-dev (4.4.3-1) ... 432s Selecting previously unselected package pkg-r-autopkgtest. 432s Preparing to unpack .../53-pkg-r-autopkgtest_20231212ubuntu1_all.deb ... 432s Unpacking pkg-r-autopkgtest (20231212ubuntu1) ... 432s Setting up libjpeg-turbo8-dev:arm64 (2.1.5-3ubuntu2) ... 432s Setting up libncurses-dev:arm64 (6.5+20250216-2) ... 432s Setting up libreadline-dev:arm64 (8.2-6) ... 432s Setting up libpcre2-16-0:arm64 (10.45-1) ... 432s Setting up libpcre2-32-0:arm64 (10.45-1) ... 432s Setting up libtirpc-dev:arm64 (1.3.4+ds-1.3) ... 432s Setting up libpkgconf3:arm64 (1.8.1-4) ... 432s Setting up libmpc3:arm64 (1.3.1-1build2) ... 432s Setting up icu-devtools (76.1-1ubuntu2) ... 432s Setting up pkgconf-bin (1.8.1-4) ... 432s Setting up liblzma-dev:arm64 (5.6.4-1) ... 432s Setting up libubsan1:arm64 (15-20250222-0ubuntu1) ... 432s Setting up zlib1g-dev:arm64 (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 432s Setting up libpcre2-posix3:arm64 (10.45-1) ... 432s Setting up libhwasan0:arm64 (15-20250222-0ubuntu1) ... 432s Setting up libasan8:arm64 (15-20250222-0ubuntu1) ... 432s Setting up libtsan2:arm64 (15-20250222-0ubuntu1) ... 432s Setting up libjpeg8-dev:arm64 (8c-2ubuntu11) ... 432s Setting up libisl23:arm64 (0.27-1) ... 432s Setting up libdeflate-dev:arm64 (1.23-1) ... 432s Setting up libicu-dev:arm64 (76.1-1ubuntu2) ... 432s Setting up libcc1-0:arm64 (15-20250222-0ubuntu1) ... 432s Setting up liblsan0:arm64 (15-20250222-0ubuntu1) ... 432s Setting up libblas-dev:arm64 (3.12.1-2) ... 432s update-alternatives: using /usr/lib/aarch64-linux-gnu/blas/libblas.so to provide /usr/lib/aarch64-linux-gnu/libblas.so (libblas.so-aarch64-linux-gnu) in auto mode 432s Setting up dctrl-tools (2.24-3build3) ... 432s Setting up libitm1:arm64 (15-20250222-0ubuntu1) ... 432s Setting up libbz2-dev:arm64 (1.0.8-6) ... 432s Setting up libpcre2-dev:arm64 (10.45-1) ... 432s Setting up libpng-dev:arm64 (1.6.47-1) ... 432s Setting up libjpeg-dev:arm64 (8c-2ubuntu11) ... 432s Setting up pkgconf:arm64 (1.8.1-4) ... 432s Setting up liblapack-dev:arm64 (3.12.1-2) ... 432s update-alternatives: using /usr/lib/aarch64-linux-gnu/lapack/liblapack.so to provide /usr/lib/aarch64-linux-gnu/liblapack.so (liblapack.so-aarch64-linux-gnu) in auto mode 432s Setting up cpp-14-aarch64-linux-gnu (14.2.0-17ubuntu3) ... 432s Setting up libgcc-14-dev:arm64 (14.2.0-17ubuntu3) ... 432s Setting up libstdc++-14-dev:arm64 (14.2.0-17ubuntu3) ... 432s Setting up libgfortran-14-dev:arm64 (14.2.0-17ubuntu3) ... 432s Setting up cpp-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 432s Setting up cpp-14 (14.2.0-17ubuntu3) ... 432s Setting up cpp (4:14.2.0-1ubuntu1) ... 432s Setting up gcc-14-aarch64-linux-gnu (14.2.0-17ubuntu3) ... 432s Setting up gcc-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 432s Setting up g++-14-aarch64-linux-gnu (14.2.0-17ubuntu3) ... 432s Setting up gcc-14 (14.2.0-17ubuntu3) ... 432s Setting up gfortran-14-aarch64-linux-gnu (14.2.0-17ubuntu3) ... 432s Setting up g++-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 432s Setting up gfortran-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 432s Setting up g++-14 (14.2.0-17ubuntu3) ... 432s Setting up gfortran-14 (14.2.0-17ubuntu3) ... 432s Setting up gcc (4:14.2.0-1ubuntu1) ... 432s Setting up g++ (4:14.2.0-1ubuntu1) ... 432s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 432s Setting up build-essential (12.10ubuntu1) ... 432s Setting up gfortran (4:14.2.0-1ubuntu1) ... 432s update-alternatives: using /usr/bin/gfortran to provide /usr/bin/f95 (f95) in auto mode 432s 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 432s update-alternatives: using /usr/bin/gfortran to provide /usr/bin/f77 (f77) in auto mode 432s 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 432s Setting up r-base-dev (4.4.3-1) ... 432s Setting up pkg-r-autopkgtest (20231212ubuntu1) ... 432s Processing triggers for libc-bin (2.41-1ubuntu2) ... 432s Processing triggers for man-db (2.13.0-1) ... 433s Processing triggers for install-info (7.1.1-1) ... 434s autopkgtest [15:49:43]: test pkg-r-autopkgtest: /usr/share/dh-r/pkg-r-autopkgtest 434s autopkgtest [15:49:43]: test pkg-r-autopkgtest: [----------------------- 434s Test: Try to load the R library nleqslv 435s 435s R version 4.4.3 (2025-02-28) -- "Trophy Case" 435s Copyright (C) 2025 The R Foundation for Statistical Computing 435s Platform: aarch64-unknown-linux-gnu 435s 435s R is free software and comes with ABSOLUTELY NO WARRANTY. 435s You are welcome to redistribute it under certain conditions. 435s Type 'license()' or 'licence()' for distribution details. 435s 435s R is a collaborative project with many contributors. 435s Type 'contributors()' for more information and 435s 'citation()' on how to cite R or R packages in publications. 435s 435s Type 'demo()' for some demos, 'help()' for on-line help, or 435s 'help.start()' for an HTML browser interface to help. 435s Type 'q()' to quit R. 435s 435s > library('nleqslv') 435s > 435s > 435s Other tests are currently unsupported! 435s They will be progressively added. 435s autopkgtest [15:49:44]: test pkg-r-autopkgtest: -----------------------] 435s pkg-r-autopkgtest PASS 435s autopkgtest [15:49:44]: test pkg-r-autopkgtest: - - - - - - - - - - results - - - - - - - - - - 436s autopkgtest [15:49:45]: @@@@@@@@@@@@@@@@@@@@ summary 436s generic PASS 436s pkg-r-autopkgtest PASS 454s nova [W] Using flock in prodstack6-arm64 454s Creating nova instance adt-plucky-arm64-r-cran-nleqslv-20250315-154229-juju-7f2275-prod-proposed-migration-environment-2-174a6303-b8f7-422a-99d5-2fae50e7f7e5 from image adt/ubuntu-plucky-arm64-server-20250315.img (UUID bd6e766c-b51f-4b53-86d6-23aa4d18f524)... 454s nova [W] Timed out waiting for edee1ca4-07a9-4d41-bdb0-84bf6395d9a8 to get deleted.