As it turns out, you can put \verb inside a \hbox.
\documentclass{article}
\usepackage{mathtools}
\newsavebox{\boxA}
\newsavebox{\boxB}
\newsavebox{\boxC}
\newsavebox{\boxD}
\newsavebox{\boxE}
\begin{document}
\setbox\boxA=\hbox{\verb!tActKT ~ poly(I(1/nprocs), 3, raw=T) + poly(ndoms, 3, raw=T)!}%
\setbox\boxB=\hbox{\verb! + poly(nDOF, 3, raw=T)!}%
\setbox\boxC=\hbox{\verb! + I(1/nprocs):poly(nDOF, 2, raw=T)!}%
\setbox\boxD=\hbox{\verb!tActDir ~ poly(I(1/nprocs), 3, raw=T) + poly(nDOF, 3, raw=T)!}%
\setbox\boxE=\hbox{\verb! + poly(ndoms, 3, raw=T)!}%
% you must define the saveboxes OUTSIDE the math environment
\begin{align}
&\begin{aligned}
&\usebox\boxA \\
&\usebox\boxB \\
&\usebox\boxC
\end{aligned}\\
&\begin{aligned}
&\usebox\boxD \\
&\usebox\boxE
\end{aligned}
\end{align}
\end{document}

One can simplify this a bit using lstlisting, but at the cost of making every line in a block the same width.
\documentclass{article}
\usepackage{mathtools}
\usepackage{listings}
\newsavebox{\boxA}
\newsavebox{\boxB}
\begin{document}
\setbox\boxA=\hbox{\begin{lstlisting}[basicstyle=\footnotesize\ttfamily]
tActKT ~ poly(I(1/nprocs), 3, raw=T) + poly(ndoms, 3, raw=T)
+ poly(nDOF, 3, raw=T)
+ I(1/nprocs):poly(nDOF, 2, raw=T)
\end{lstlisting}}
\setbox\boxB=\hbox{\begin{lstlisting}[basicstyle=\footnotesize\ttfamily]
tActDir ~ poly(I(1/nprocs), 3, raw=T) + poly(nDOF, 3, raw=T)
+ poly(ndoms, 3, raw=T)
\end{lstlisting}}
% you must define the saveboxes OUTSIDE the math environment
\begin{align}
&\usebox\boxA \\
&\usebox\boxB
\end{align}
\end{document}

\verbcannot be used inside other macros. The wayalign/alignedgathers up its contents probably does not allow the use of\verbin this context. What exactly are you trying to do here? Why should these be numbered as math? – daleif May 02 '17 at 13:49process_input_buffercallback to read in and play back verbatim material. – Mico May 02 '17 at 14:08listingspackage. – daleif May 02 '17 at 14:21