How to create synthetic RAW image?

I understand what you are saying but in my test I still want to avoid the effect of lens and to have the mosaic in the dng. Lens is something which is inevitable but the choice of raw converter is not, so by isolating the effect of lens I can focus on other things without having influence by the variations which different lens models add. As for compression - I am not sure what exactly you mean. Could you please expand? In case you mean some compression applied by the camera software (or hardware) that may be better to exclude too as it is also inevitable. In my test I am willing to focus entirely on the raw conversion without any additional post processing such as color profile correction, lens aberration correction, noise filtering, sharpening etc. Of course if you know something about if certain raw converters use different demosaic or WB algorithms which depend on the camera model, I would be interested to learn more about that too.