A system for carrying out reactions that includes a small volume rotary selector valve having a plurality of peripheral ports and a small volume rotary switching valve, also having a plurality of peripheral ports, where the selector valve and switching valve are controlled by a computer. The outer hub and the inner hub include corresponding respective raceways wherein are housed balls which are guided by a cage arranged between the outer hub and the inner hub. The objective function is determined based on a dynamic simulation model of the energy profile of the energy assets. The compounds have formula :wherein R1, R2, n, and m have the meanings given in the specification. The analysis system, tool, and method provide for a tool including a spectroscope for use in downhole fluid analysis which utilizes an adaptive optical element such as a Micro Mirror Array and two distinct light channels and detectors to provide real-time scaling or normalization.