@ Nicoos
Try to check your design in the ModelSim first, if the memory model is initialized by viewing the memory profile. Try to see if you are able to read the contents of the memory by initially setting the design in read mode.
For example, in case while using single port ram megacore function, the altsyncram component should be synthesized and you will see the memory model.
@ Kadiyam
The error means that that you have not added the lpm library int o your work folder. You can get most of the components in the following folder (C:/altera/version/quartus/eda/sim_lib). Find the one which corresponds to your design.