Cognitive modeling is a fundamental tool used to understand the processes that underlie behavior, and has become a standard technique in the cognitive sciences. Cognitive modeling depends on the use of cognitive architectures. CARINA is a metacognitive architecture for artificial intelligent agents, derived from the MISM Metacognitive Metamodel that integrates self-regulation and metamemory with support for the metacognitive mechanisms of introspective monitoring and meta-level control. In this paper we show the cognitive modeling process that allows to develop computerized model for simulating human problem solving and mental task processes in metacognitive architecture CARINA. Finally, a runnable cognitive model of syntactic analysis of a sentence is shown.