Abstract
We introduce AC-SAMMM (The AaChen platform for Structured Automatic Manipulation of Mathematical Models), a new software infrastructure for efficient transformation and evaluation of expressions and their higher-order derivatives. We describe the way this software can be used to perform automatically the translation of a model written in an equation-oriented language like Modelica into a subset of C/C++ and the generation of the model’s higher-order derivative code by algorithmic differentiation (AD) techniques. The derivatives are generated, using the derivative code compiler (dcc), an AD tool which provides source code transformation for a restricted but numerically relevant subset of C/C++. dcc can be applied repeatedly to its own output, to generate derivative codes of arbitrary order.