In a quantum circuit or a qasm file, when quantum measurements of qubits that are no longer in use occur before quantum gates on other qubits, the dm-sim calculation gets incorrect results.
For instance, the following operation sequence will cause this problem.
measure q[1] -> c[1];
sx q[2];
measure q[2] -> c[2];