Diff of the two buildlogs: -- --- b1/build.log 2021-07-12 06:50:16.737089978 +0000 +++ b2/build.log 2021-07-12 07:00:28.150068846 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sun Jul 11 18:35:04 -12 2021 -I: pbuilder-time-stamp: 1626071704 +I: Current time: Mon Jul 12 20:50:27 +14 2021 +I: pbuilder-time-stamp: 1626072627 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bullseye-reproducible-base.tgz] I: copying local configuration @@ -16,8 +16,8 @@ I: copying [./octave-optim_1.6.0-6.debian.tar.xz] I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' -gpgv: keyblock resource '/tmp/dpkg-verify-sig.HlCJkKaO/trustedkeys.kbx': General error -gpgv: Signature made Wed Dec 9 21:30:51 2020 -12 +gpgv: keyblock resource '/tmp/dpkg-verify-sig.WnhqTdF1/trustedkeys.kbx': General error +gpgv: Signature made Thu Dec 10 23:30:51 2020 +14 gpgv: using RSA key 53951D95272E0C5B82BE8C4A2CECE9350ECEBE4A gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./octave-optim_1.6.0-6.dsc @@ -30,135 +30,169 @@ dpkg-source: info: applying octave6.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/19623/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/7934/tmp/hooks/D01_modify_environment starting +debug: Running on virt64a. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' +Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' +Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' +Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash' +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/7934/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/7934/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='armhf' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=3' - DISTRIBUTION='' - HOME='/root' - HOST_ARCH='armhf' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="1" [2]="4" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf") + BASH_VERSION='5.1.4(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=armhf + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=4' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='ef6e8baf600f4357bce0a3ffb644799d' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='19623' - PS1='# ' - PS2='> ' + INVOCATION_ID=cb4f0a315ed74b0c9ee97fa022d3c0df + LANG=C + LANGUAGE=it_CH:it + LC_ALL=C + MACHTYPE=arm-unknown-linux-gnueabihf + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnueabihf + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=7934 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.66LUuuAAdD/pbuilderrc_VWIY --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.66LUuuAAdD/b1 --logfile b1/build.log octave-optim_1.6.0-6.dsc' - SUDO_GID='113' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://10.0.0.15:8000/' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.66LUuuAAdD/pbuilderrc_zjru --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.66LUuuAAdD/b2 --logfile b2/build.log --extrapackages usrmerge octave-optim_1.6.0-6.dsc' + SUDO_GID=114 + SUDO_UID=108 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://10.0.0.15:8000/ I: uname -a - Linux virt32a 5.10.0-7-armmp-lpae #1 SMP Debian 5.10.40-1 (2021-05-28) armv7l GNU/Linux + Linux i-capture-the-hostname 5.10.0-7-arm64 #1 SMP Debian 5.10.40-1 (2021-05-28) aarch64 GNU/Linux I: ls -l /bin total 3580 - -rwxr-xr-x 1 root root 816764 Jun 21 14:26 bash - -rwxr-xr-x 3 root root 26052 Jul 20 2020 bunzip2 - -rwxr-xr-x 3 root root 26052 Jul 20 2020 bzcat - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2225 Jul 20 2020 bzdiff - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4877 Sep 4 2019 bzexe - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3775 Jul 20 2020 bzgrep - -rwxr-xr-x 3 root root 26052 Jul 20 2020 bzip2 - -rwxr-xr-x 1 root root 9636 Jul 20 2020 bzip2recover - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Jul 20 2020 bzmore - -rwxr-xr-x 1 root root 26668 Sep 22 2020 cat - -rwxr-xr-x 1 root root 43104 Sep 22 2020 chgrp - -rwxr-xr-x 1 root root 38984 Sep 22 2020 chmod - -rwxr-xr-x 1 root root 43112 Sep 22 2020 chown - -rwxr-xr-x 1 root root 92616 Sep 22 2020 cp - -rwxr-xr-x 1 root root 75524 Dec 10 2020 dash - -rwxr-xr-x 1 root root 75880 Sep 22 2020 date - -rwxr-xr-x 1 root root 55436 Sep 22 2020 dd - -rwxr-xr-x 1 root root 59912 Sep 22 2020 df - -rwxr-xr-x 1 root root 96764 Sep 22 2020 dir - -rwxr-xr-x 1 root root 55012 Feb 7 02:38 dmesg - lrwxrwxrwx 1 root root 8 Nov 6 2019 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Nov 6 2019 domainname -> hostname - -rwxr-xr-x 1 root root 22508 Sep 22 2020 echo - -rwxr-xr-x 1 root root 28 Nov 9 2020 egrep - -rwxr-xr-x 1 root root 22496 Sep 22 2020 false - -rwxr-xr-x 1 root root 28 Nov 9 2020 fgrep - -rwxr-xr-x 1 root root 47492 Feb 7 02:38 findmnt - -rwsr-xr-x 1 root root 26076 Feb 26 04:12 fusermount - -rwxr-xr-x 1 root root 124508 Nov 9 2020 grep - -rwxr-xr-x 2 root root 2346 Mar 2 11:30 gunzip - -rwxr-xr-x 1 root root 6376 Mar 2 11:30 gzexe - -rwxr-xr-x 1 root root 64212 Mar 2 11:30 gzip - -rwxr-xr-x 1 root root 13784 Nov 6 2019 hostname - -rwxr-xr-x 1 root root 43180 Sep 22 2020 ln - -rwxr-xr-x 1 root root 35068 Feb 7 2020 login - -rwxr-xr-x 1 root root 96764 Sep 22 2020 ls - -rwxr-xr-x 1 root root 99940 Feb 7 02:38 lsblk - -rwxr-xr-x 1 root root 51408 Sep 22 2020 mkdir - -rwxr-xr-x 1 root root 43184 Sep 22 2020 mknod - -rwxr-xr-x 1 root root 30780 Sep 22 2020 mktemp - -rwxr-xr-x 1 root root 34408 Feb 7 02:38 more - -rwsr-xr-x 1 root root 34400 Feb 7 02:38 mount - -rwxr-xr-x 1 root root 9824 Feb 7 02:38 mountpoint - -rwxr-xr-x 1 root root 88524 Sep 22 2020 mv - lrwxrwxrwx 1 root root 8 Nov 6 2019 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 18 03:38 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 26652 Sep 22 2020 pwd - lrwxrwxrwx 1 root root 4 Jun 21 14:26 rbash -> bash - -rwxr-xr-x 1 root root 30740 Sep 22 2020 readlink - -rwxr-xr-x 1 root root 43104 Sep 22 2020 rm - -rwxr-xr-x 1 root root 30732 Sep 22 2020 rmdir - -rwxr-xr-x 1 root root 14144 Sep 27 2020 run-parts - -rwxr-xr-x 1 root root 76012 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Jul 9 21:26 sh -> dash - -rwxr-xr-x 1 root root 22532 Sep 22 2020 sleep - -rwxr-xr-x 1 root root 55360 Sep 22 2020 stty - -rwsr-xr-x 1 root root 46704 Feb 7 02:38 su - -rwxr-xr-x 1 root root 22532 Sep 22 2020 sync - -rwxr-xr-x 1 root root 340872 Feb 16 21:55 tar - -rwxr-xr-x 1 root root 9808 Sep 27 2020 tempfile - -rwxr-xr-x 1 root root 67696 Sep 22 2020 touch - -rwxr-xr-x 1 root root 22496 Sep 22 2020 true - -rwxr-xr-x 1 root root 9636 Feb 26 04:12 ulockmgr_server - -rwsr-xr-x 1 root root 22108 Feb 7 02:38 umount - -rwxr-xr-x 1 root root 22520 Sep 22 2020 uname - -rwxr-xr-x 2 root root 2346 Mar 2 11:30 uncompress - -rwxr-xr-x 1 root root 96764 Sep 22 2020 vdir - -rwxr-xr-x 1 root root 38512 Feb 7 02:38 wdctl - lrwxrwxrwx 1 root root 8 Nov 6 2019 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Mar 2 11:30 zcat - -rwxr-xr-x 1 root root 1678 Mar 2 11:30 zcmp - -rwxr-xr-x 1 root root 5880 Mar 2 11:30 zdiff - -rwxr-xr-x 1 root root 29 Mar 2 11:30 zegrep - -rwxr-xr-x 1 root root 29 Mar 2 11:30 zfgrep - -rwxr-xr-x 1 root root 2081 Mar 2 11:30 zforce - -rwxr-xr-x 1 root root 7585 Mar 2 11:30 zgrep - -rwxr-xr-x 1 root root 2206 Mar 2 11:30 zless - -rwxr-xr-x 1 root root 1842 Mar 2 11:30 zmore - -rwxr-xr-x 1 root root 4553 Mar 2 11:30 znew -I: user script /srv/workspace/pbuilder/19623/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 816764 Jun 22 16:26 bash + -rwxr-xr-x 3 root root 26052 Jul 21 2020 bunzip2 + -rwxr-xr-x 3 root root 26052 Jul 21 2020 bzcat + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2225 Jul 21 2020 bzdiff + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4877 Sep 5 2019 bzexe + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3775 Jul 21 2020 bzgrep + -rwxr-xr-x 3 root root 26052 Jul 21 2020 bzip2 + -rwxr-xr-x 1 root root 9636 Jul 21 2020 bzip2recover + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Jul 21 2020 bzmore + -rwxr-xr-x 1 root root 26668 Sep 23 2020 cat + -rwxr-xr-x 1 root root 43104 Sep 23 2020 chgrp + -rwxr-xr-x 1 root root 38984 Sep 23 2020 chmod + -rwxr-xr-x 1 root root 43112 Sep 23 2020 chown + -rwxr-xr-x 1 root root 92616 Sep 23 2020 cp + -rwxr-xr-x 1 root root 75524 Dec 11 2020 dash + -rwxr-xr-x 1 root root 75880 Sep 23 2020 date + -rwxr-xr-x 1 root root 55436 Sep 23 2020 dd + -rwxr-xr-x 1 root root 59912 Sep 23 2020 df + -rwxr-xr-x 1 root root 96764 Sep 23 2020 dir + -rwxr-xr-x 1 root root 55012 Feb 8 04:38 dmesg + lrwxrwxrwx 1 root root 8 Nov 8 2019 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Nov 8 2019 domainname -> hostname + -rwxr-xr-x 1 root root 22508 Sep 23 2020 echo + -rwxr-xr-x 1 root root 28 Nov 10 2020 egrep + -rwxr-xr-x 1 root root 22496 Sep 23 2020 false + -rwxr-xr-x 1 root root 28 Nov 10 2020 fgrep + -rwxr-xr-x 1 root root 47492 Feb 8 04:38 findmnt + -rwsr-xr-x 1 root root 26076 Feb 27 06:12 fusermount + -rwxr-xr-x 1 root root 124508 Nov 10 2020 grep + -rwxr-xr-x 2 root root 2346 Mar 3 13:30 gunzip + -rwxr-xr-x 1 root root 6376 Mar 3 13:30 gzexe + -rwxr-xr-x 1 root root 64212 Mar 3 13:30 gzip + -rwxr-xr-x 1 root root 13784 Nov 8 2019 hostname + -rwxr-xr-x 1 root root 43180 Sep 23 2020 ln + -rwxr-xr-x 1 root root 35068 Feb 8 2020 login + -rwxr-xr-x 1 root root 96764 Sep 23 2020 ls + -rwxr-xr-x 1 root root 99940 Feb 8 04:38 lsblk + -rwxr-xr-x 1 root root 51408 Sep 23 2020 mkdir + -rwxr-xr-x 1 root root 43184 Sep 23 2020 mknod + -rwxr-xr-x 1 root root 30780 Sep 23 2020 mktemp + -rwxr-xr-x 1 root root 34408 Feb 8 04:38 more + -rwsr-xr-x 1 root root 34400 Feb 8 04:38 mount + -rwxr-xr-x 1 root root 9824 Feb 8 04:38 mountpoint + -rwxr-xr-x 1 root root 88524 Sep 23 2020 mv + lrwxrwxrwx 1 root root 8 Nov 8 2019 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 19 05:38 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 26652 Sep 23 2020 pwd + lrwxrwxrwx 1 root root 4 Jun 22 16:26 rbash -> bash + -rwxr-xr-x 1 root root 30740 Sep 23 2020 readlink + -rwxr-xr-x 1 root root 43104 Sep 23 2020 rm + -rwxr-xr-x 1 root root 30732 Sep 23 2020 rmdir + -rwxr-xr-x 1 root root 14144 Sep 28 2020 run-parts + -rwxr-xr-x 1 root root 76012 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Jul 12 20:50 sh -> bash + lrwxrwxrwx 1 root root 4 Jul 11 23:25 sh.distrib -> dash + -rwxr-xr-x 1 root root 22532 Sep 23 2020 sleep + -rwxr-xr-x 1 root root 55360 Sep 23 2020 stty + -rwsr-xr-x 1 root root 46704 Feb 8 04:38 su + -rwxr-xr-x 1 root root 22532 Sep 23 2020 sync + -rwxr-xr-x 1 root root 340872 Feb 17 23:55 tar + -rwxr-xr-x 1 root root 9808 Sep 28 2020 tempfile + -rwxr-xr-x 1 root root 67696 Sep 23 2020 touch + -rwxr-xr-x 1 root root 22496 Sep 23 2020 true + -rwxr-xr-x 1 root root 9636 Feb 27 06:12 ulockmgr_server + -rwsr-xr-x 1 root root 22108 Feb 8 04:38 umount + -rwxr-xr-x 1 root root 22520 Sep 23 2020 uname + -rwxr-xr-x 2 root root 2346 Mar 3 13:30 uncompress + -rwxr-xr-x 1 root root 96764 Sep 23 2020 vdir + -rwxr-xr-x 1 root root 38512 Feb 8 04:38 wdctl + lrwxrwxrwx 1 root root 8 Nov 8 2019 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Mar 3 13:30 zcat + -rwxr-xr-x 1 root root 1678 Mar 3 13:30 zcmp + -rwxr-xr-x 1 root root 5880 Mar 3 13:30 zdiff + -rwxr-xr-x 1 root root 29 Mar 3 13:30 zegrep + -rwxr-xr-x 1 root root 29 Mar 3 13:30 zfgrep + -rwxr-xr-x 1 root root 2081 Mar 3 13:30 zforce + -rwxr-xr-x 1 root root 7585 Mar 3 13:30 zgrep + -rwxr-xr-x 1 root root 2206 Mar 3 13:30 zless + -rwxr-xr-x 1 root root 1842 Mar 3 13:30 zmore + -rwxr-xr-x 1 root root 4553 Mar 3 13:30 znew +I: user script /srv/workspace/pbuilder/7934/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -678,7 +712,7 @@ Get: 472 http://deb.debian.org/debian bullseye/main armhf texlive-latex-base all 2020.20210202-3 [1120 kB] Get: 473 http://deb.debian.org/debian bullseye/main armhf texlive-latex-recommended all 2020.20210202-3 [14.5 MB] Get: 474 http://deb.debian.org/debian bullseye/main armhf texlive all 2020.20210202-3 [34.2 kB] -Fetched 199 MB in 42s (4725 kB/s) +Fetched 199 MB in 19s (10.4 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package bsdextrautils. (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 ... 19398 files and directories currently installed.) @@ -2635,8 +2669,26 @@ Writing extended state information... Building tag database... -> Finished parsing the build-deps +Reading package lists... +Building dependency tree... +Reading state information... +The following NEW packages will be installed: + usrmerge +0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. +Need to get 13.0 kB of archives. +After this operation, 43.0 kB of additional disk space will be used. +Get:1 http://deb.debian.org/debian bullseye/main armhf usrmerge all 25 [13.0 kB] +debconf: delaying package configuration, since apt-utils is not installed +Fetched 13.0 kB in 0s (270 kB/s) +Selecting previously unselected package usrmerge. +(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 ... 46670 files and directories currently installed.) +Preparing to unpack .../archives/usrmerge_25_all.deb ... +Unpacking usrmerge (25) ... +Setting up usrmerge (25) ... +The system has been successfully converted. I: Building the package -I: Running cd /build/octave-optim-1.6.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../octave-optim_1.6.0-6_source.changes +hostname: Name or service not known +I: Running cd /build/octave-optim-1.6.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../octave-optim_1.6.0-6_source.changes dpkg-buildpackage: info: source package octave-optim dpkg-buildpackage: info: source version 1.6.0-6 dpkg-buildpackage: info: source distribution unstable @@ -2677,7 +2729,7 @@ checking for mkoctfile... /usr/bin/mkoctfile --verbose checking for octave-config... /usr/bin/octave-config -checking for a sed that does not truncate output... /bin/sed +checking for a sed that does not truncate output... /usr/bin/sed checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... @@ -2691,8 +2743,8 @@ checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E -checking for grep that handles long lines and -e... /bin/grep -checking for egrep... /bin/grep -E +checking for grep that handles long lines and -e... /usr/bin/grep +checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes @@ -2724,20 +2776,20 @@ if grep -q DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS __bfgsmin.cc; then echo "The string 'DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS' must not be present in source code, but is in __bfgsmin.cc."; exit 1; fi if grep -q DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS numgradient.cc; then echo "The string 'DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS' must not be present in source code, but is in numgradient.cc."; exit 1; fi if grep -q DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS numhessian.cc; then echo "The string 'DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS' must not be present in source code, but is in numhessian.cc."; exit 1; fi -if grep -q DEFUNX_DLD_REPLACEMENT_FOR_PACKAGE_DOCS numhessian.cc; then echo "The string 'DEFUNX_DLD_REPLACEMENT_FOR_PACKAGE_DOCS' must not be present in source code, but is in numhessian.cc."; exit 1; fi if grep -q DEFUNX_DLD_REPLACEMENT_FOR_PACKAGE_DOCS __bfgsmin.cc; then echo "The string 'DEFUNX_DLD_REPLACEMENT_FOR_PACKAGE_DOCS' must not be present in source code, but is in __bfgsmin.cc."; exit 1; fi if grep -q DEFUNX_DLD_REPLACEMENT_FOR_PACKAGE_DOCS numgradient.cc; then echo "The string 'DEFUNX_DLD_REPLACEMENT_FOR_PACKAGE_DOCS' must not be present in source code, but is in numgradient.cc."; exit 1; fi -(echo "#include "; echo "int main () {"; sed -e s/DEFUN_DLD/DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS/g -e s/DEFUNX_DLD/DEFUNX_DLD_REPLACEMENT_FOR_PACKAGE_DOCS/g numhessian.cc | g++ -E `/usr/bin/mkoctfile --verbose -p INCFLAGS` -x c++ -iquote '.' -D'DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,args,nargout,doc)=DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,doc)' -D'DEFUNX_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,fname,gname,args,nargout,doc)=DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,doc)' - | sed -e '/.*DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS/!D'; echo "}";) | g++ -x c++ -D'DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,doc)=printf("%c" #name "\n@c " #name " numhessian.cc\n" doc "\n\n", 0x1D);' -o numhessian.bin - +if grep -q DEFUNX_DLD_REPLACEMENT_FOR_PACKAGE_DOCS numhessian.cc; then echo "The string 'DEFUNX_DLD_REPLACEMENT_FOR_PACKAGE_DOCS' must not be present in source code, but is in numhessian.cc."; exit 1; fi (echo "#include "; echo "int main () {"; sed -e s/DEFUN_DLD/DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS/g -e s/DEFUNX_DLD/DEFUNX_DLD_REPLACEMENT_FOR_PACKAGE_DOCS/g __bfgsmin.cc | g++ -E `/usr/bin/mkoctfile --verbose -p INCFLAGS` -x c++ -iquote '.' -D'DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,args,nargout,doc)=DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,doc)' -D'DEFUNX_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,fname,gname,args,nargout,doc)=DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,doc)' - | sed -e '/.*DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS/!D'; echo "}";) | g++ -x c++ -D'DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,doc)=printf("%c" #name "\n@c " #name " __bfgsmin.cc\n" doc "\n\n", 0x1D);' -o __bfgsmin.bin - (echo "#include "; echo "int main () {"; sed -e s/DEFUN_DLD/DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS/g -e s/DEFUNX_DLD/DEFUNX_DLD_REPLACEMENT_FOR_PACKAGE_DOCS/g numgradient.cc | g++ -E `/usr/bin/mkoctfile --verbose -p INCFLAGS` -x c++ -iquote '.' -D'DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,args,nargout,doc)=DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,doc)' -D'DEFUNX_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,fname,gname,args,nargout,doc)=DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,doc)' - | sed -e '/.*DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS/!D'; echo "}";) | g++ -x c++ -D'DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,doc)=printf("%c" #name "\n@c " #name " numgradient.cc\n" doc "\n\n", 0x1D);' -o numgradient.bin - +(echo "#include "; echo "int main () {"; sed -e s/DEFUN_DLD/DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS/g -e s/DEFUNX_DLD/DEFUNX_DLD_REPLACEMENT_FOR_PACKAGE_DOCS/g numhessian.cc | g++ -E `/usr/bin/mkoctfile --verbose -p INCFLAGS` -x c++ -iquote '.' -D'DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,args,nargout,doc)=DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,doc)' -D'DEFUNX_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,fname,gname,args,nargout,doc)=DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,doc)' - | sed -e '/.*DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS/!D'; echo "}";) | g++ -x c++ -D'DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,doc)=printf("%c" #name "\n@c " #name " numhessian.cc\n" doc "\n\n", 0x1D);' -o numhessian.bin - if grep -q DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS __disna_optim__.cc; then echo "The string 'DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS' must not be present in source code, but is in __disna_optim__.cc."; exit 1; fi if grep -q DEFUNX_DLD_REPLACEMENT_FOR_PACKAGE_DOCS __disna_optim__.cc; then echo "The string 'DEFUNX_DLD_REPLACEMENT_FOR_PACKAGE_DOCS' must not be present in source code, but is in __disna_optim__.cc."; exit 1; fi (echo "#include "; echo "int main () {"; sed -e s/DEFUN_DLD/DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS/g -e s/DEFUNX_DLD/DEFUNX_DLD_REPLACEMENT_FOR_PACKAGE_DOCS/g __disna_optim__.cc | g++ -E `/usr/bin/mkoctfile --verbose -p INCFLAGS` -x c++ -iquote '.' -D'DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,args,nargout,doc)=DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,doc)' -D'DEFUNX_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,fname,gname,args,nargout,doc)=DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,doc)' - | sed -e '/.*DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS/!D'; echo "}";) | g++ -x c++ -D'DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,doc)=printf("%c" #name "\n@c " #name " __disna_optim__.cc\n" doc "\n\n", 0x1D);' -o __disna_optim__.bin - CXXFLAGS="-g -O2 -fdebug-prefix-map=/build/octave-optim-1.6.0=. -fstack-protector-strong -Wformat -Werror=format-security" /usr/bin/mkoctfile --verbose -c error-helpers.cc g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-6.2.0/octave/.. -I/usr/include/octave-6.2.0/octave -pthread -fopenmp -g -O2 -fdebug-prefix-map=/build/octave-optim-1.6.0=. -fstack-protector-strong -Wformat -Werror=format-security error-helpers.cc -o error-helpers.o -(echo "### This file is generated automatically from the"; echo "### corresponding .cc file by a Makefile rule."; echo ""; ./numgradient.bin) > numgradient.cc.docstrings -(echo "### This file is generated automatically from the"; echo "### corresponding .cc file by a Makefile rule."; echo ""; ./numhessian.bin) > numhessian.cc.docstrings (echo "### This file is generated automatically from the"; echo "### corresponding .cc file by a Makefile rule."; echo ""; ./__bfgsmin.bin) > __bfgsmin.cc.docstrings +(echo "### This file is generated automatically from the"; echo "### corresponding .cc file by a Makefile rule."; echo ""; ./numhessian.bin) > numhessian.cc.docstrings +(echo "### This file is generated automatically from the"; echo "### corresponding .cc file by a Makefile rule."; echo ""; ./numgradient.bin) > numgradient.cc.docstrings (echo "### This file is generated automatically from the"; echo "### corresponding .cc file by a Makefile rule."; echo ""; ./__disna_optim__.bin) > __disna_optim__.cc.docstrings ./munge-texi.pl MFDOCSTRINGS __bfgsmin.cc.docstrings numgradient.cc.docstrings numhessian.cc.docstrings __disna_optim__.cc.docstrings < ../doc/optim.txi > ../doc/optim.texi makeinfo ../doc/optim.texi -o ../doc/optim.info @@ -2745,36 +2797,11 @@ CXXFLAGS="-g -O2 -fdebug-prefix-map=/build/octave-optim-1.6.0=. -fstack-protector-strong -Wformat -Werror=format-security" /usr/bin/mkoctfile --verbose __bfgsmin.cc error-helpers.o CXXFLAGS="-g -O2 -fdebug-prefix-map=/build/octave-optim-1.6.0=. -fstack-protector-strong -Wformat -Werror=format-security" /usr/bin/mkoctfile --verbose numgradient.cc error-helpers.o CXXFLAGS="-g -O2 -fdebug-prefix-map=/build/octave-optim-1.6.0=. -fstack-protector-strong -Wformat -Werror=format-security" /usr/bin/mkoctfile --verbose numhessian.cc error-helpers.o -g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-6.2.0/octave/.. -I/usr/include/octave-6.2.0/octave -pthread -fopenmp -g -O2 -fdebug-prefix-map=/build/octave-optim-1.6.0=. -fstack-protector-strong -Wformat -Werror=format-security __bfgsmin.cc -o /tmp/oct-N6Os4D.o CXXFLAGS="-g -O2 -fdebug-prefix-map=/build/octave-optim-1.6.0=. -fstack-protector-strong -Wformat -Werror=format-security" /usr/bin/mkoctfile --verbose -llapack -lblas __disna_optim__.cc error-helpers.o -g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-6.2.0/octave/.. -I/usr/include/octave-6.2.0/octave -pthread -fopenmp -g -O2 -fdebug-prefix-map=/build/octave-optim-1.6.0=. -fstack-protector-strong -Wformat -Werror=format-security numgradient.cc -o /tmp/oct-mettMN.o -g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-6.2.0/octave/.. -I/usr/include/octave-6.2.0/octave -pthread -fopenmp -g -O2 -fdebug-prefix-map=/build/octave-optim-1.6.0=. -fstack-protector-strong -Wformat -Werror=format-security __disna_optim__.cc -o /tmp/oct-E2tfra.o -g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-6.2.0/octave/.. -I/usr/include/octave-6.2.0/octave -pthread -fopenmp -g -O2 -fdebug-prefix-map=/build/octave-optim-1.6.0=. -fstack-protector-strong -Wformat -Werror=format-security numhessian.cc -o /tmp/oct-pxZ4Kk.o -In file included from numgradient.cc:24: -numgradient.cc: In function 'bool any_bad_argument(const octave_value_list&)': -error-helpers.h:119:13: warning: 'error_state' is deprecated: [6]: this variable is obsolete and always has the value 0 [-Wdeprecated-declarations] - 119 | if (error_state) \ - | ^~~~~~~~~~~ -numgradient.cc:47:7: note: in expansion of macro 'SET_ERR' - 47 | SET_ERR (tmp = args(2).int_value(), err); - | ^~~~~~~ -In file included from /usr/include/octave-6.2.0/octave/oct.h:36, - from numgradient.cc:18: -/usr/include/octave-6.2.0/octave/error.h:495:26: note: declared here - 495 | extern OCTINTERP_API int error_state; - | ^~~~~~~~~~~ -In file included from numgradient.cc:24: -error-helpers.h:121:13: warning: 'error_state' is deprecated: [6]: this variable is obsolete and always has the value 0 [-Wdeprecated-declarations] - 121 | error_state = 0; \ - | ^~~~~~~~~~~ -numgradient.cc:47:7: note: in expansion of macro 'SET_ERR' - 47 | SET_ERR (tmp = args(2).int_value(), err); - | ^~~~~~~ -In file included from /usr/include/octave-6.2.0/octave/oct.h:36, - from numgradient.cc:18: -/usr/include/octave-6.2.0/octave/error.h:495:26: note: declared here - 495 | extern OCTINTERP_API int error_state; - | ^~~~~~~~~~~ +g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-6.2.0/octave/.. -I/usr/include/octave-6.2.0/octave -pthread -fopenmp -g -O2 -fdebug-prefix-map=/build/octave-optim-1.6.0=. -fstack-protector-strong -Wformat -Werror=format-security __bfgsmin.cc -o /tmp/oct-abtHsl.o +g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-6.2.0/octave/.. -I/usr/include/octave-6.2.0/octave -pthread -fopenmp -g -O2 -fdebug-prefix-map=/build/octave-optim-1.6.0=. -fstack-protector-strong -Wformat -Werror=format-security numgradient.cc -o /tmp/oct-Ht26Co.o +g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-6.2.0/octave/.. -I/usr/include/octave-6.2.0/octave -pthread -fopenmp -g -O2 -fdebug-prefix-map=/build/octave-optim-1.6.0=. -fstack-protector-strong -Wformat -Werror=format-security numhessian.cc -o /tmp/oct-jJJyUr.o +g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-6.2.0/octave/.. -I/usr/include/octave-6.2.0/octave -pthread -fopenmp -g -O2 -fdebug-prefix-map=/build/octave-optim-1.6.0=. -fstack-protector-strong -Wformat -Werror=format-security __disna_optim__.cc -o /tmp/oct-4uW5Iw.o In file included from numhessian.cc:24: numhessian.cc: In function 'bool any_bad_argument(const octave_value_list&)': error-helpers.h:119:13: warning: 'error_state' is deprecated: [6]: this variable is obsolete and always has the value 0 [-Wdeprecated-declarations] @@ -2910,10 +2937,35 @@ /usr/include/octave-6.2.0/octave/error.h:495:26: note: declared here 495 | extern OCTINTERP_API int error_state; | ^~~~~~~~~~~ -g++ -I/usr/include/octave-6.2.0/octave/.. -I/usr/include/octave-6.2.0/octave -pthread -fopenmp -g -O2 -fdebug-prefix-map=/build/octave-optim-1.6.0=. -fstack-protector-strong -Wformat -Werror=format-security -o __disna_optim__.oct error-helpers.o /tmp/oct-E2tfra.o -shared -Wl,-Bsymbolic -Wl,-z,relro -llapack -lblas -L/usr/lib/arm-linux-gnueabihf -Wl,-z,relro -g++ -I/usr/include/octave-6.2.0/octave/.. -I/usr/include/octave-6.2.0/octave -pthread -fopenmp -g -O2 -fdebug-prefix-map=/build/octave-optim-1.6.0=. -fstack-protector-strong -Wformat -Werror=format-security -o numgradient.oct error-helpers.o /tmp/oct-mettMN.o -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/arm-linux-gnueabihf -Wl,-z,relro -g++ -I/usr/include/octave-6.2.0/octave/.. -I/usr/include/octave-6.2.0/octave -pthread -fopenmp -g -O2 -fdebug-prefix-map=/build/octave-optim-1.6.0=. -fstack-protector-strong -Wformat -Werror=format-security -o numhessian.oct error-helpers.o /tmp/oct-pxZ4Kk.o -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/arm-linux-gnueabihf -Wl,-z,relro -g++ -I/usr/include/octave-6.2.0/octave/.. -I/usr/include/octave-6.2.0/octave -pthread -fopenmp -g -O2 -fdebug-prefix-map=/build/octave-optim-1.6.0=. -fstack-protector-strong -Wformat -Werror=format-security -o __bfgsmin.oct error-helpers.o /tmp/oct-N6Os4D.o -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/arm-linux-gnueabihf -Wl,-z,relro +In file included from numgradient.cc:24: +numgradient.cc: In function 'bool any_bad_argument(const octave_value_list&)': +error-helpers.h:119:13: warning: 'error_state' is deprecated: [6]: this variable is obsolete and always has the value 0 [-Wdeprecated-declarations] + 119 | if (error_state) \ + | ^~~~~~~~~~~ +numgradient.cc:47:7: note: in expansion of macro 'SET_ERR' + 47 | SET_ERR (tmp = args(2).int_value(), err); + | ^~~~~~~ +In file included from /usr/include/octave-6.2.0/octave/oct.h:36, + from numgradient.cc:18: +/usr/include/octave-6.2.0/octave/error.h:495:26: note: declared here + 495 | extern OCTINTERP_API int error_state; + | ^~~~~~~~~~~ +In file included from numgradient.cc:24: +error-helpers.h:121:13: warning: 'error_state' is deprecated: [6]: this variable is obsolete and always has the value 0 [-Wdeprecated-declarations] + 121 | error_state = 0; \ + | ^~~~~~~~~~~ +numgradient.cc:47:7: note: in expansion of macro 'SET_ERR' + 47 | SET_ERR (tmp = args(2).int_value(), err); + | ^~~~~~~ +In file included from /usr/include/octave-6.2.0/octave/oct.h:36, + from numgradient.cc:18: +/usr/include/octave-6.2.0/octave/error.h:495:26: note: declared here + 495 | extern OCTINTERP_API int error_state; + | ^~~~~~~~~~~ +g++ -I/usr/include/octave-6.2.0/octave/.. -I/usr/include/octave-6.2.0/octave -pthread -fopenmp -g -O2 -fdebug-prefix-map=/build/octave-optim-1.6.0=. -fstack-protector-strong -Wformat -Werror=format-security -o __disna_optim__.oct error-helpers.o /tmp/oct-4uW5Iw.o -shared -Wl,-Bsymbolic -Wl,-z,relro -llapack -lblas -L/usr/lib/arm-linux-gnueabihf -Wl,-z,relro +g++ -I/usr/include/octave-6.2.0/octave/.. -I/usr/include/octave-6.2.0/octave -pthread -fopenmp -g -O2 -fdebug-prefix-map=/build/octave-optim-1.6.0=. -fstack-protector-strong -Wformat -Werror=format-security -o numhessian.oct error-helpers.o /tmp/oct-jJJyUr.o -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/arm-linux-gnueabihf -Wl,-z,relro +g++ -I/usr/include/octave-6.2.0/octave/.. -I/usr/include/octave-6.2.0/octave -pthread -fopenmp -g -O2 -fdebug-prefix-map=/build/octave-optim-1.6.0=. -fstack-protector-strong -Wformat -Werror=format-security -o numgradient.oct error-helpers.o /tmp/oct-Ht26Co.o -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/arm-linux-gnueabihf -Wl,-z,relro +g++ -I/usr/include/octave-6.2.0/octave/.. -I/usr/include/octave-6.2.0/octave -pthread -fopenmp -g -O2 -fdebug-prefix-map=/build/octave-optim-1.6.0=. -fstack-protector-strong -Wformat -Werror=format-security -o __bfgsmin.oct error-helpers.o /tmp/oct-abtHsl.o -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/arm-linux-gnueabihf -Wl,-z,relro rm numhessian.bin numgradient.cc.docstrings MFDOCSTRINGS numgradient.bin __disna_optim__.cc.docstrings __disna_optim__.bin numhessian.cc.docstrings __bfgsmin.bin __bfgsmin.cc.docstrings make[2]: Leaving directory '/build/octave-optim-1.6.0/src' copyfile /build/octave-optim-1.6.0/./src/__bfgsmin.oct /build/octave-optim-1.6.0/./src/__disna_optim__.oct /build/octave-optim-1.6.0/./src/numgradient.oct /build/octave-optim-1.6.0/./src/numhessian.oct /build/octave-optim-1.6.0/./inst/arm-unknown-linux-gnueabihf-api-v55 @@ -2922,7 +2974,7 @@ ( cd src ; ./configure ; make doc ) checking for mkoctfile... mkoctfile checking for octave-config... octave-config -checking for a sed that does not truncate output... /bin/sed +checking for a sed that does not truncate output... /usr/bin/sed checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... @@ -2936,8 +2988,8 @@ checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E -checking for grep that handles long lines and -e... /bin/grep -checking for egrep... /bin/grep -E +checking for grep that handles long lines and -e... /usr/bin/grep +checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes @@ -3000,43 +3052,86 @@ ## and solve it with de_min [x, obj_value, nfeval, convergence] = de_min (f, ctl) 1 test, 1 passed, 0 known failure, 0 skipped -[inst/nlinfit.m] ->>>>> /build/octave-optim-1.6.0/inst/nlinfit.m -***** test - modelfun = @(b, x) (b(1) + b(2) * exp (- b(3) * x)); - b = [1;3;2]; - v = rande ("state"); - rande ("seed", 1234); - xdata = exprnd (2,100,1); - rande ("state", v); - v = randn ("state"); - randn ("seed", 1234); - ydata = modelfun (b,xdata) + normrnd (0,0.1,100,1); - randn ("state", v); - beta0 = [2;2;3]; - beta = nlinfit(xdata,ydata,modelfun,beta0); - assert (beta, [1;3;2], 1e-1) -***** demo - modelfun = @(b, x) (b(1) + b(2) * exp (- b(3) * x)); - %% actual value - beta_without_noise = [1; 3; 2]; - x = [3.49622; 0.33751; 1.25675; 3.66981; 0.26237; 5.51095; ... - 2.11407; 1.48774; 6.22436; 2.04519]; - y_actual = modelfun (beta_without_noise, x); - noise = [0.176110; -0.066850; 0.231000; -0.047570; -0.108230; ... - 0.122790; 0.062940; 0.151510; 0.116010; -0.097460]; - y_noisy = y_actual + noise; - %% initial guess - beta0 = [2; 2; 2]; - %% weights vector - weights = [5; 16; 1; 20; 12; 11; 17; 8; 11; 13]; - [beta, R, J, covb, mse] = nlinfit (x, y_noisy, modelfun, beta0) - [beta_w, R_w, J_w, covb_w, mse_w] = nlinfit (x, y_noisy, modelfun, beta0, [], "weights", weights) -1 test, 1 passed, 0 known failure, 0 skipped [inst/__all_stat_opts__.m] >>>>> /build/octave-optim-1.6.0/inst/__all_stat_opts__.m ***** assert (1) 1 test, 1 passed, 0 known failure, 0 skipped +[inst/linprog.m] +>>>>> /build/octave-optim-1.6.0/inst/linprog.m +***** test + f = [1; -1]; + A = []; + b = []; + Aeq = [1, 0]; + beq = [2]; + lb = [0; Inf]; + ub = [-Inf; 0]; + x_exp = [2; 0]; + assert (linprog (f, A, b, Aeq, beq, lb, ub), x_exp); +***** shared f, A, b, lb, ub, x_exp, fval_exp + f = [21 25 31 34 23 19 32 36 27 25 19]'; + + A1 = [ 1 0 0 0 1 0 0 1 0 0 0; + 0 1 0 0 0 1 0 0 1 0 0; + 0 0 1 0 0 0 0 0 0 1 0; + 0 0 0 1 0 0 1 0 0 0 1]; + A2 = [ 1 1 1 1 0 0 0 0 0 0 0; + 0 0 0 0 1 1 1 0 0 0 0; + 0 0 0 0 0 0 0 1 1 1 1]; + A = [-A1; A2]; + + b1 = [40; 50; 50; 70]; + b2 = [100; 60; 50]; + b = [-b1; b2]; + + lb = zeros (rows (f), 1); + ub = Inf (rows (f), 1); + + x_exp = [40 0 50 10 0 50 10 0 0 0 50]'; + fval_exp = f' * x_exp; + +***** test + Aeq = []; + beq = []; + [x_obs fval_obs] = linprog (f, A, b, Aeq, beq, lb, ub); + assert ([x_obs; fval_obs], [x_exp; fval_exp]); + +***** test + Aeq = zeros (1, rows (f)); + beq = 0; + assert (linprog (f, A, b, Aeq, beq, lb, ub), x_exp); +3 tests, 3 passed, 0 known failure, 0 skipped +[inst/nonlin_curvefit.m] +>>>>> /build/octave-optim-1.6.0/inst/nonlin_curvefit.m +***** demo + ## Example for linear inequality constraints + ## (see also the same example in 'demo nonlin_residmin') + + ## independents and observations + indep = 1:5; + obs = [1, 2, 4, 7, 14]; + ## model function: + f = @ (p, x) p(1) * exp (p(2) * x); + ## initial values: + init = [.25; .25]; + ## linear constraints, A.' * parametervector + B >= 0 + A = [1; -1]; B = 0; # p(1) >= p(2); + settings = optimset ("inequc", {A, B}); + + ## start optimization + [p, model_values, cvg, outp] = nonlin_curvefit (f, init, indep, obs, settings) +***** test + t = optim_problems ().curve.schittkowski_327; + cp = nonlin_curvefit (@ (p, x) t.f (x, p), t.init_p, t.data.x, t.data.y, optimset ("lbound", t.non_strict_inequc.bounds(:, 1), "ubound", t.non_strict_inequc.bounds(:, 2), "inequc", {t.non_strict_inequc.general}, "dfdp", @ (p, x) t.dfdp (x, p))); + assert (cp, t.result.p, [.0001; .001]); +1 test, 1 passed, 0 known failure, 0 skipped +[inst/vfzero.m] +>>>>> /build/octave-optim-1.6.0/inst/vfzero.m +***** shared opt0 + opt0 = optimset ("tolx", 0); +***** assert(vfzero(@cos, [0, 3], opt0), pi/2, 10*eps) +***** assert(vfzero(@(x) x^(1/3) - 1e-8, [0,1], opt0), 1e-24, 1e-22*eps) +2 tests, 2 passed, 0 known failure, 0 skipped [inst/residmin_stat.m] >>>>> /build/octave-optim-1.6.0/inst/residmin_stat.m ***** test @@ -3162,71 +3257,6 @@ assert (info.corp, corp, .0001); 4 tests, 4 passed, 0 known failure, 0 skipped -[inst/nonlin_curvefit.m] ->>>>> /build/octave-optim-1.6.0/inst/nonlin_curvefit.m -***** demo - ## Example for linear inequality constraints - ## (see also the same example in 'demo nonlin_residmin') - - ## independents and observations - indep = 1:5; - obs = [1, 2, 4, 7, 14]; - ## model function: - f = @ (p, x) p(1) * exp (p(2) * x); - ## initial values: - init = [.25; .25]; - ## linear constraints, A.' * parametervector + B >= 0 - A = [1; -1]; B = 0; # p(1) >= p(2); - settings = optimset ("inequc", {A, B}); - - ## start optimization - [p, model_values, cvg, outp] = nonlin_curvefit (f, init, indep, obs, settings) -***** test - t = optim_problems ().curve.schittkowski_327; - cp = nonlin_curvefit (@ (p, x) t.f (x, p), t.init_p, t.data.x, t.data.y, optimset ("lbound", t.non_strict_inequc.bounds(:, 1), "ubound", t.non_strict_inequc.bounds(:, 2), "inequc", {t.non_strict_inequc.general}, "dfdp", @ (p, x) t.dfdp (x, p))); - assert (cp, t.result.p, [.0001; .001]); -1 test, 1 passed, 0 known failure, 0 skipped -[inst/statget.m] ->>>>> /build/octave-optim-1.6.0/inst/statget.m -***** shared opts - opts = statset ("maxit", 100); -***** assert (statget (opts, "maxit"), 100) -***** assert (statget (opts, "MaxITer"), 100) -***** assert (statget (opts, "TolFun"), []) -***** assert (statget (opts, "TolFun", 1e-3), 1e-3) -***** error statget () -***** error statget (1) -***** error statget (1,2,3,4,5) -***** error statget (1, "name") -***** error statget (struct (), 2) -9 tests, 9 passed, 0 known failure, 0 skipped -[inst/statset.m] ->>>>> /build/octave-optim-1.6.0/inst/statset.m -***** assert (isfield (statset (), "TolFun")) -***** assert (isfield (statset ("tolFun", 1e-3), "TolFun")) -***** error statset ("1_Parameter") -***** error statset ("%NOT_A_REAL_FUNCTION_NAME%") -***** warning statset ("foobar", 13); -5 tests, 5 passed, 0 known failure, 0 skipped -[inst/polyconf.m] ->>>>> /build/octave-optim-1.6.0/inst/polyconf.m -***** test - # data from Hocking, RR, "Methods and Applications of Linear Models" - temperature=[40;40;40;45;45;45;50;50;50;55;55;55;60;60;60;65;65;65]; - strength=[66.3;64.84;64.36;69.70;66.26;72.06;73.23;71.4;68.85;75.78;72.57;76.64;78.87;77.37;75.94;78.82;77.13;77.09]; - [p,s] = polyfit(temperature,strength,1); - [y,dy] = polyconf(p,40,s,0.05,'ci'); - assert([y,dy],[66.15396825396826,1.71702862681486],200*eps); - [y,dy] = polyconf(p,40,s,0.05,'pi'); - assert(dy,4.45345484470743,200*eps); -1 test, 1 passed, 0 known failure, 0 skipped -[inst/vfzero.m] ->>>>> /build/octave-optim-1.6.0/inst/vfzero.m -***** shared opt0 - opt0 = optimset ("tolx", 0); -***** assert(vfzero(@cos, [0, 3], opt0), pi/2, 10*eps) -***** assert(vfzero(@(x) x^(1/3) - 1e-8, [0,1], opt0), 1e-24, 1e-22*eps) -2 tests, 2 passed, 0 known failure, 0 skipped [inst/lsqlin.m] >>>>> /build/octave-optim-1.6.0/inst/lsqlin.m ***** test @@ -3257,7 +3287,7 @@ lsqlin at line 123 column 21 __test__ at line 17 column 32 test at line 677 column 11 - /tmp/tmp.j2gUUyJCjH at line 86 column 31 + /tmp/tmp.nwOuE0qUkM at line 62 column 31 ***** test Aeq = []; @@ -3291,6 +3321,28 @@ ub = ones(4,1); [x, resnorm, residual, flag, output, lambda] = lsqlin (C, d, A, b, Aeq, beq, lb, ub) 2 tests, 2 passed, 0 known failure, 0 skipped +[inst/jacobs.m] +>>>>> /build/octave-optim-1.6.0/inst/jacobs.m +***** assert (jacobs (1, @(x) x), 1) +***** assert (jacobs (6, @(x) x^2), 12) +***** assert (jacobs ([1; 1], @(x) [x(1)^2; x(1)*x(2)]), [2, 0; 1, 1]) +***** assert (jacobs ([1; 2], @(x) [x(1)^2 + x(2); x(2)*exp(x(1))]), [2, 1; 2*exp(1), exp(1)]) +***** error jacobs () +***** error jacobs (1) +***** error jacobs (1, 2, 3, 4) +***** error jacobs (@sin, 1, [1, 1]) +***** error jacobs (@sin, 1, ones(2, 2)) +***** demo + # Relative error against several h-values + k = 3:20; h = 10 .^ (-k); x = 0.3*pi; + err = zeros (1, numel (k)); + for count = 1 : numel (k) + err(count) = abs (jacobs (x, @sin, struct ("h", h(count))) - cos (x)) / abs (cos (x)) + eps; + endfor + loglog (h, err); grid minor; + xlabel ("h"); ylabel ("|Df(x) - cos(x)| / |cos(x)|") + title ("f(x)=sin(x), f'(x)=cos(x) at x = 0.3pi") +9 tests, 9 passed, 0 known failure, 0 skipped [inst/nonlin_residmin.m] >>>>> /build/octave-optim-1.6.0/inst/nonlin_residmin.m ***** demo @@ -3429,228 +3481,6 @@ assert (p, [1.0590; 1.9266; 4.0456; 2.7061; .3; 1], .0001); 4 tests, 4 passed, 0 known failure, 0 skipped -[inst/lsqcurvefit.m] ->>>>> /build/octave-optim-1.6.0/inst/lsqcurvefit.m -***** test - xdata = [0 .3 .8 1.1 1.6 2.3]; - ydata = [.82 .72 .63 .60 .55 .50]; - yhat = @(p,x) p(1) + p(2)*exp(-x); - opt = optimset('TolFun',1e-100); - [p, resnorm, residual] = lsqcurvefit(yhat,[1 1], xdata, ydata,[0 0],[],opt); - assert (p, [ 0.47595; 0.34132], 1e-5) - assert (resnorm, 3.2419e-004, 1e-8) - assert(residual, [-2.7283e-003, 8.8079e-003, -6.8307e-004, -1.0432e-002, -5.1366e-003, 1.0172e-002], 1e-5) -***** test - problem.solver = "lsqcurvefit"; - problem.objective = @(p,x) p(1) + p(2)*exp(-x); - problem.x0 = [1, 1]; - problem.xdata = [0 .3 .8 1.1 1.6 2.3]; - problem.ydata = [.82 .72 .63 .60 .55 .50]; - problem.lb = [0, 0]; - problem.ub = []; - problem.options = optimset('TolFun',1e-100); - [p, resnorm, residual] = lsqcurvefit (problem); - assert (p, [ 0.47595; 0.34132], 1e-5) - assert (resnorm, 3.2419e-004, 1e-8) - assert(residual, [-2.7283e-003, 8.8079e-003, -6.8307e-004, -1.0432e-002, -5.1366e-003, 1.0172e-002], 1e-5) -***** demo - %% Example for user specified Jacobian. - - %% independents - x = [1:10:100]'; - %% observed data - y =[9.2160e-001, 3.3170e-001, 8.9789e-002, 2.8480e-002, 2.6055e-002,... - 8.3641e-003, 4.2362e-003, 3.1693e-003, 1.4739e-004, 2.9406e-004]'; - %% initial values: - p0=[0.8; 0.05]; - %% bounds - lb=[0; 0]; ub=[]; - %% Jacobian setting - opts = optimset ("Jacobian", "on") - - %% model function: - function [F,J] = myfun (p, x) - F = p(1) * exp (-p(2) * x); - if nargout > 1 - J = [exp(- p(2) * x), - p(1) * x .* exp(- p(2) * x)]; - endif - endfunction - - [c, resnorm, residual, flag, output, lambda, jacob] = ... - lsqcurvefit (@ (varargin) myfun(varargin{:}), p0, x, y, lb, ub, opts) -2 tests, 2 passed, 0 known failure, 0 skipped -[inst/linprog.m] ->>>>> /build/octave-optim-1.6.0/inst/linprog.m -***** test - f = [1; -1]; - A = []; - b = []; - Aeq = [1, 0]; - beq = [2]; - lb = [0; Inf]; - ub = [-Inf; 0]; - x_exp = [2; 0]; - assert (linprog (f, A, b, Aeq, beq, lb, ub), x_exp); -***** shared f, A, b, lb, ub, x_exp, fval_exp - f = [21 25 31 34 23 19 32 36 27 25 19]'; - - A1 = [ 1 0 0 0 1 0 0 1 0 0 0; - 0 1 0 0 0 1 0 0 1 0 0; - 0 0 1 0 0 0 0 0 0 1 0; - 0 0 0 1 0 0 1 0 0 0 1]; - A2 = [ 1 1 1 1 0 0 0 0 0 0 0; - 0 0 0 0 1 1 1 0 0 0 0; - 0 0 0 0 0 0 0 1 1 1 1]; - A = [-A1; A2]; - - b1 = [40; 50; 50; 70]; - b2 = [100; 60; 50]; - b = [-b1; b2]; - - lb = zeros (rows (f), 1); - ub = Inf (rows (f), 1); - - x_exp = [40 0 50 10 0 50 10 0 0 0 50]'; - fval_exp = f' * x_exp; - -***** test - Aeq = []; - beq = []; - [x_obs fval_obs] = linprog (f, A, b, Aeq, beq, lb, ub); - assert ([x_obs; fval_obs], [x_exp; fval_exp]); - -***** test - Aeq = zeros (1, rows (f)); - beq = 0; - assert (linprog (f, A, b, Aeq, beq, lb, ub), x_exp); -3 tests, 3 passed, 0 known failure, 0 skipped -[inst/quadprog.m] ->>>>> /build/octave-optim-1.6.0/inst/quadprog.m -***** test - H= diag([1; 0]); - f = [3; 4]; - A= [-1 -3; 2 5; 3 4]; - b = [-15; 100; 80]; - l= zeros(2,1); - [x,fval,exitflag,output] = quadprog(H,f,A,b,[],[],l,[]); - assert(x,[0;5]) - assert(fval,20) - assert(exitflag,1) - assert(output.iterations,1) -***** demo - C = [0.9501 0.7620 0.6153 0.4057 - 0.2311 0.4564 0.7919 0.9354 - 0.6068 0.0185 0.9218 0.9169 - 0.4859 0.8214 0.7382 0.4102 - 0.8912 0.4447 0.1762 0.8936]; - %% Linear Inequality Constraints - d = [0.0578; 0.3528; 0.8131; 0.0098; 0.1388]; - A =[0.2027 0.2721 0.7467 0.4659 - 0.1987 0.1988 0.4450 0.4186 - 0.6037 0.0152 0.9318 0.8462]; - b =[0.5251; 0.2026; 0.6721]; - %% Linear Equality Constraints - Aeq = [3 5 7 9]; - beq = 4; - %% Bound constraints - lb = -0.1*ones(4,1); - ub = ones(4,1); - H = C' * C; - f = -C' * d; - [x, obj, flag, output, lambda]=quadprog (H, f, A, b, Aeq, beq, lb, ub) -1 test, 1 passed, 0 known failure, 0 skipped -[inst/jacobs.m] ->>>>> /build/octave-optim-1.6.0/inst/jacobs.m -***** assert (jacobs (1, @(x) x), 1) -***** assert (jacobs (6, @(x) x^2), 12) -***** assert (jacobs ([1; 1], @(x) [x(1)^2; x(1)*x(2)]), [2, 0; 1, 1]) -***** assert (jacobs ([1; 2], @(x) [x(1)^2 + x(2); x(2)*exp(x(1))]), [2, 1; 2*exp(1), exp(1)]) -***** error jacobs () -***** error jacobs (1) -***** error jacobs (1, 2, 3, 4) -***** error jacobs (@sin, 1, [1, 1]) -***** error jacobs (@sin, 1, ones(2, 2)) -***** demo - # Relative error against several h-values - k = 3:20; h = 10 .^ (-k); x = 0.3*pi; - err = zeros (1, numel (k)); - for count = 1 : numel (k) - err(count) = abs (jacobs (x, @sin, struct ("h", h(count))) - cos (x)) / abs (cos (x)) + eps; - endfor - loglog (h, err); grid minor; - xlabel ("h"); ylabel ("|Df(x) - cos(x)| / |cos(x)|") - title ("f(x)=sin(x), f'(x)=cos(x) at x = 0.3pi") -9 tests, 9 passed, 0 known failure, 0 skipped -[inst/fmincon.m] ->>>>> /build/octave-optim-1.6.0/inst/fmincon.m -***** demo - ## Example for default optimization (Levenberg/Marquardt with - ## BFGS), one non-linear equality constraint. Constrained optimum is - ## at p = [0; 1]. - objective_function = @ (p) p(1)^2 + p(2)^2; - pin = [-2; 5]; - constraint_function = @ (p) - (p(1)^2 + 1 - p(2)); - [p, objf, cvg, outp] = fmincon (objective_function, pin, [], [], [], [], [], [], @ (p) {[], constraint_function(p)}{:}) -***** test - ## equality constraint - objective_function = @ (p) p(1)^2 + p(2)^2; - pin = [-2; 5]; - constraint_function = @ (p) - (p(1)^2 + 1 - p(2)); - [p, objf, cvg, outp] = fmincon (objective_function, pin, [], [], [], [], [], [], @ (p) {[], constraint_function(p)}{:}, optimset ("Algorithm", "lm_feasible")); - assert (p, [0; 1], 1e-6) -***** test - ## inequality constraint - objective_function = @ (p) p(1)^2 + p(2)^2; - pin = [2; 6]; - constraint_function = @ (p) p(1)^2 + 1 - p(2); - [p, objf, cvg, outp] = fmincon (objective_function, pin, [], [], [], [], [], [], @ (p) {constraint_function(p), []}{:}, optimset ("Algorithm", "lm_feasible")); - assert (p, [0; 1], 1e-6) -***** test - ## independents - indep = 1:5; - ## objective function: - f = @ (p) sumsq (p(1) * exp (p(2) * indep) - [1, 2, 4, 7, 14]); - ## initial values: - init = [.25; .25]; - ## linear constraints, A.' * parametervector + B >= 0 - A = [1; -1]; B = 0; # p(1) >= p(2); - - assert (fmincon (f, init, -A, B), [.6203; .6203], .0001); -***** test - ## problem structure - indep = 1:5; - problem = struct ("objective", - @ (p) sumsq (p(1) * exp (p(2) * indep) - [1, 2, 4, 7, 14]), - "x0", [.25; .25], - "Aineq", [-1; 1], - "bineq", 0, - "solver", "fmincon"); - assert (fmincon (problem), [.6203; .6203], .0001); -***** test - ## Octave sqp solver with a lot of inequality constraints - objf = @ (p) sumsq (p(4:9)); - init = [300; -100; -.1997; -127; -151; 379; 421; 460; 426]; - lbound = [-Inf; -Inf; -Inf; 0; 0; 0; 0; 0; 0]; - inequc = @ (p) vertcat ( ... - p(1) + p(2) * exp (-5 * p(3)) + p(4) - 127, - p(1) + p(2) * exp (-3 * p(3)) + p(5) - 151, - p(1) + p(2) * exp (-p(3)) + p(6) - 379, - p(1) + p(2) * exp (p(3)) + p(7) - 421, - p(1) + p(2) * exp (3 * p(3)) + p(8) - 460, - p(1) + p(2) * exp (5 * p(3)) + p(9) - 426, - -p(1) - p(2) * exp (-5 * p(3)) + p(4) + 127, - -p(1) - p(2) * exp (-3 * p(3)) + p(5) + 151, - -p(1) - p(2) * exp (-p(3)) + p(6) + 379, - -p(1) - p(2) * exp (p(3)) + p(7) + 421, - -p(1) - p(2) * exp (3 * p(3)) + p(8) + 460, - -p(1) - p(2) * exp (5 * p(3)) + p(9) + 426); - [p, objf, cvg, outp] = fmincon (objf, init, [], [], [], [], lbound, [], - @ (p) {- inequc(p), []}{:}, - optimset ("Algorithm", "octave_sqp")); - assert (p, [5.2330e+02; -1.5694e+02; -1.9966e-01; 2.9607e+01; - 8.6615e+01; 4.7326e+01; 2.6235e+01; 2.2915e+01; - 3.9470e+01], .01); -5 tests, 5 passed, 0 known failure, 0 skipped [inst/nonlin_min.m] >>>>> /build/octave-optim-1.6.0/inst/nonlin_min.m ***** demo @@ -3775,6 +3605,56 @@ assert (p, [1.0590; 1.9266; 4.0456; 2.7061; .3; 1], .005); 3 tests, 3 passed, 0 known failure, 0 skipped +[inst/lsqcurvefit.m] +>>>>> /build/octave-optim-1.6.0/inst/lsqcurvefit.m +***** test + xdata = [0 .3 .8 1.1 1.6 2.3]; + ydata = [.82 .72 .63 .60 .55 .50]; + yhat = @(p,x) p(1) + p(2)*exp(-x); + opt = optimset('TolFun',1e-100); + [p, resnorm, residual] = lsqcurvefit(yhat,[1 1], xdata, ydata,[0 0],[],opt); + assert (p, [ 0.47595; 0.34132], 1e-5) + assert (resnorm, 3.2419e-004, 1e-8) + assert(residual, [-2.7283e-003, 8.8079e-003, -6.8307e-004, -1.0432e-002, -5.1366e-003, 1.0172e-002], 1e-5) +***** test + problem.solver = "lsqcurvefit"; + problem.objective = @(p,x) p(1) + p(2)*exp(-x); + problem.x0 = [1, 1]; + problem.xdata = [0 .3 .8 1.1 1.6 2.3]; + problem.ydata = [.82 .72 .63 .60 .55 .50]; + problem.lb = [0, 0]; + problem.ub = []; + problem.options = optimset('TolFun',1e-100); + [p, resnorm, residual] = lsqcurvefit (problem); + assert (p, [ 0.47595; 0.34132], 1e-5) + assert (resnorm, 3.2419e-004, 1e-8) + assert(residual, [-2.7283e-003, 8.8079e-003, -6.8307e-004, -1.0432e-002, -5.1366e-003, 1.0172e-002], 1e-5) +***** demo + %% Example for user specified Jacobian. + + %% independents + x = [1:10:100]'; + %% observed data + y =[9.2160e-001, 3.3170e-001, 8.9789e-002, 2.8480e-002, 2.6055e-002,... + 8.3641e-003, 4.2362e-003, 3.1693e-003, 1.4739e-004, 2.9406e-004]'; + %% initial values: + p0=[0.8; 0.05]; + %% bounds + lb=[0; 0]; ub=[]; + %% Jacobian setting + opts = optimset ("Jacobian", "on") + + %% model function: + function [F,J] = myfun (p, x) + F = p(1) * exp (-p(2) * x); + if nargout > 1 + J = [exp(- p(2) * x), - p(1) * x .* exp(- p(2) * x)]; + endif + endfunction + + [c, resnorm, residual, flag, output, lambda, jacob] = ... + lsqcurvefit (@ (varargin) myfun(varargin{:}), p0, x, y, lb, ub, opts) +2 tests, 2 passed, 0 known failure, 0 skipped [inst/lsqnonlin.m] >>>>> /build/octave-optim-1.6.0/inst/lsqnonlin.m ***** test @@ -3825,6 +3705,178 @@ [c, resnorm, residual, flag, output, lambda, jacob] = ... lsqnonlin(@(p) myfun(p, x, y), p0, lb, ub, opts) 2 tests, 2 passed, 0 known failure, 0 skipped +[inst/statset.m] +>>>>> /build/octave-optim-1.6.0/inst/statset.m +***** assert (isfield (statset (), "TolFun")) +***** assert (isfield (statset ("tolFun", 1e-3), "TolFun")) +***** error statset ("1_Parameter") +***** error statset ("%NOT_A_REAL_FUNCTION_NAME%") +***** warning statset ("foobar", 13); +5 tests, 5 passed, 0 known failure, 0 skipped +[inst/statget.m] +>>>>> /build/octave-optim-1.6.0/inst/statget.m +***** shared opts + opts = statset ("maxit", 100); +***** assert (statget (opts, "maxit"), 100) +***** assert (statget (opts, "MaxITer"), 100) +***** assert (statget (opts, "TolFun"), []) +***** assert (statget (opts, "TolFun", 1e-3), 1e-3) +***** error statget () +***** error statget (1) +***** error statget (1,2,3,4,5) +***** error statget (1, "name") +***** error statget (struct (), 2) +9 tests, 9 passed, 0 known failure, 0 skipped +[inst/nlinfit.m] +>>>>> /build/octave-optim-1.6.0/inst/nlinfit.m +***** test + modelfun = @(b, x) (b(1) + b(2) * exp (- b(3) * x)); + b = [1;3;2]; + v = rande ("state"); + rande ("seed", 1234); + xdata = exprnd (2,100,1); + rande ("state", v); + v = randn ("state"); + randn ("seed", 1234); + ydata = modelfun (b,xdata) + normrnd (0,0.1,100,1); + randn ("state", v); + beta0 = [2;2;3]; + beta = nlinfit(xdata,ydata,modelfun,beta0); + assert (beta, [1;3;2], 1e-1) +***** demo + modelfun = @(b, x) (b(1) + b(2) * exp (- b(3) * x)); + %% actual value + beta_without_noise = [1; 3; 2]; + x = [3.49622; 0.33751; 1.25675; 3.66981; 0.26237; 5.51095; ... + 2.11407; 1.48774; 6.22436; 2.04519]; + y_actual = modelfun (beta_without_noise, x); + noise = [0.176110; -0.066850; 0.231000; -0.047570; -0.108230; ... + 0.122790; 0.062940; 0.151510; 0.116010; -0.097460]; + y_noisy = y_actual + noise; + %% initial guess + beta0 = [2; 2; 2]; + %% weights vector + weights = [5; 16; 1; 20; 12; 11; 17; 8; 11; 13]; + [beta, R, J, covb, mse] = nlinfit (x, y_noisy, modelfun, beta0) + [beta_w, R_w, J_w, covb_w, mse_w] = nlinfit (x, y_noisy, modelfun, beta0, [], "weights", weights) +1 test, 1 passed, 0 known failure, 0 skipped +[inst/polyconf.m] +>>>>> /build/octave-optim-1.6.0/inst/polyconf.m +***** test + # data from Hocking, RR, "Methods and Applications of Linear Models" + temperature=[40;40;40;45;45;45;50;50;50;55;55;55;60;60;60;65;65;65]; + strength=[66.3;64.84;64.36;69.70;66.26;72.06;73.23;71.4;68.85;75.78;72.57;76.64;78.87;77.37;75.94;78.82;77.13;77.09]; + [p,s] = polyfit(temperature,strength,1); + [y,dy] = polyconf(p,40,s,0.05,'ci'); + assert([y,dy],[66.15396825396826,1.71702862681486],200*eps); + [y,dy] = polyconf(p,40,s,0.05,'pi'); + assert(dy,4.45345484470743,200*eps); +1 test, 1 passed, 0 known failure, 0 skipped +[inst/fmincon.m] +>>>>> /build/octave-optim-1.6.0/inst/fmincon.m +***** demo + ## Example for default optimization (Levenberg/Marquardt with + ## BFGS), one non-linear equality constraint. Constrained optimum is + ## at p = [0; 1]. + objective_function = @ (p) p(1)^2 + p(2)^2; + pin = [-2; 5]; + constraint_function = @ (p) - (p(1)^2 + 1 - p(2)); + [p, objf, cvg, outp] = fmincon (objective_function, pin, [], [], [], [], [], [], @ (p) {[], constraint_function(p)}{:}) +***** test + ## equality constraint + objective_function = @ (p) p(1)^2 + p(2)^2; + pin = [-2; 5]; + constraint_function = @ (p) - (p(1)^2 + 1 - p(2)); + [p, objf, cvg, outp] = fmincon (objective_function, pin, [], [], [], [], [], [], @ (p) {[], constraint_function(p)}{:}, optimset ("Algorithm", "lm_feasible")); + assert (p, [0; 1], 1e-6) +***** test + ## inequality constraint + objective_function = @ (p) p(1)^2 + p(2)^2; + pin = [2; 6]; + constraint_function = @ (p) p(1)^2 + 1 - p(2); + [p, objf, cvg, outp] = fmincon (objective_function, pin, [], [], [], [], [], [], @ (p) {constraint_function(p), []}{:}, optimset ("Algorithm", "lm_feasible")); + assert (p, [0; 1], 1e-6) +***** test + ## independents + indep = 1:5; + ## objective function: + f = @ (p) sumsq (p(1) * exp (p(2) * indep) - [1, 2, 4, 7, 14]); + ## initial values: + init = [.25; .25]; + ## linear constraints, A.' * parametervector + B >= 0 + A = [1; -1]; B = 0; # p(1) >= p(2); + + assert (fmincon (f, init, -A, B), [.6203; .6203], .0001); +***** test + ## problem structure + indep = 1:5; + problem = struct ("objective", + @ (p) sumsq (p(1) * exp (p(2) * indep) - [1, 2, 4, 7, 14]), + "x0", [.25; .25], + "Aineq", [-1; 1], + "bineq", 0, + "solver", "fmincon"); + assert (fmincon (problem), [.6203; .6203], .0001); +***** test + ## Octave sqp solver with a lot of inequality constraints + objf = @ (p) sumsq (p(4:9)); + init = [300; -100; -.1997; -127; -151; 379; 421; 460; 426]; + lbound = [-Inf; -Inf; -Inf; 0; 0; 0; 0; 0; 0]; + inequc = @ (p) vertcat ( ... + p(1) + p(2) * exp (-5 * p(3)) + p(4) - 127, + p(1) + p(2) * exp (-3 * p(3)) + p(5) - 151, + p(1) + p(2) * exp (-p(3)) + p(6) - 379, + p(1) + p(2) * exp (p(3)) + p(7) - 421, + p(1) + p(2) * exp (3 * p(3)) + p(8) - 460, + p(1) + p(2) * exp (5 * p(3)) + p(9) - 426, + -p(1) - p(2) * exp (-5 * p(3)) + p(4) + 127, + -p(1) - p(2) * exp (-3 * p(3)) + p(5) + 151, + -p(1) - p(2) * exp (-p(3)) + p(6) + 379, + -p(1) - p(2) * exp (p(3)) + p(7) + 421, + -p(1) - p(2) * exp (3 * p(3)) + p(8) + 460, + -p(1) - p(2) * exp (5 * p(3)) + p(9) + 426); + [p, objf, cvg, outp] = fmincon (objf, init, [], [], [], [], lbound, [], + @ (p) {- inequc(p), []}{:}, + optimset ("Algorithm", "octave_sqp")); + assert (p, [5.2330e+02; -1.5694e+02; -1.9966e-01; 2.9607e+01; + 8.6615e+01; 4.7326e+01; 2.6235e+01; 2.2915e+01; + 3.9470e+01], .01); +5 tests, 5 passed, 0 known failure, 0 skipped +[inst/quadprog.m] +>>>>> /build/octave-optim-1.6.0/inst/quadprog.m +***** test + H= diag([1; 0]); + f = [3; 4]; + A= [-1 -3; 2 5; 3 4]; + b = [-15; 100; 80]; + l= zeros(2,1); + [x,fval,exitflag,output] = quadprog(H,f,A,b,[],[],l,[]); + assert(x,[0;5]) + assert(fval,20) + assert(exitflag,1) + assert(output.iterations,1) +***** demo + C = [0.9501 0.7620 0.6153 0.4057 + 0.2311 0.4564 0.7919 0.9354 + 0.6068 0.0185 0.9218 0.9169 + 0.4859 0.8214 0.7382 0.4102 + 0.8912 0.4447 0.1762 0.8936]; + %% Linear Inequality Constraints + d = [0.0578; 0.3528; 0.8131; 0.0098; 0.1388]; + A =[0.2027 0.2721 0.7467 0.4659 + 0.1987 0.1988 0.4450 0.4186 + 0.6037 0.0152 0.9318 0.8462]; + b =[0.5251; 0.2026; 0.6721]; + %% Linear Equality Constraints + Aeq = [3 5 7 9]; + beq = 4; + %% Bound constraints + lb = -0.1*ones(4,1); + ub = ones(4,1); + H = C' * C; + f = -C' * d; + [x, obj, flag, output, lambda]=quadprog (H, f, A, b, Aeq, beq, lb, ub) +1 test, 1 passed, 0 known failure, 0 skipped Checking C++ files ... Summary: 56 tests, 56 passed, 0 known failures, 0 skipped dh_installdocs -O--buildsystem=octave @@ -3842,7 +3894,7 @@ dh_strip -a -O--buildsystem=octave dh_makeshlibs -a -O--buildsystem=octave dh_shlibdeps -a -O--buildsystem=octave -dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/octave-optim/usr/lib/arm-linux-gnueabihf/octave/packages/optim-1.6.0/arm-unknown-linux-gnueabihf-api-v55/__bfgsmin.oct debian/octave-optim/usr/lib/arm-linux-gnueabihf/octave/packages/optim-1.6.0/arm-unknown-linux-gnueabihf-api-v55/__disna_optim__.oct debian/octave-optim/usr/lib/arm-linux-gnueabihf/octave/packages/optim-1.6.0/arm-unknown-linux-gnueabihf-api-v55/numhessian.oct debian/octave-optim/usr/lib/arm-linux-gnueabihf/octave/packages/optim-1.6.0/arm-unknown-linux-gnueabihf-api-v55/numgradient.oct were not linked against libpthread.so.0 (they use none of the library's symbols) +dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/octave-optim/usr/lib/arm-linux-gnueabihf/octave/packages/optim-1.6.0/arm-unknown-linux-gnueabihf-api-v55/numgradient.oct debian/octave-optim/usr/lib/arm-linux-gnueabihf/octave/packages/optim-1.6.0/arm-unknown-linux-gnueabihf-api-v55/__disna_optim__.oct debian/octave-optim/usr/lib/arm-linux-gnueabihf/octave/packages/optim-1.6.0/arm-unknown-linux-gnueabihf-api-v55/__bfgsmin.oct debian/octave-optim/usr/lib/arm-linux-gnueabihf/octave/packages/optim-1.6.0/arm-unknown-linux-gnueabihf-api-v55/numhessian.oct were not linked against libpthread.so.0 (they use none of the library's symbols) dh_octave_substvar -O--buildsystem=octave dh_installdeb -O--buildsystem=octave dh_gencontrol -O--buildsystem=octave @@ -3860,12 +3912,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/7934/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/7934/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/19623 and its subdirectories -I: Current time: Sun Jul 11 18:50:13 -12 2021 -I: pbuilder-time-stamp: 1626072613 +I: removing directory /srv/workspace/pbuilder/7934 and its subdirectories +I: Current time: Mon Jul 12 21:00:24 +14 2021 +I: pbuilder-time-stamp: 1626073224