Modeling and Simulation of Invasive Applications and Architectures