Generated Code

The following is c code generated by the CellML API from this CellML file. (Back to language selection)

The raw code is available.

Model is unsuitably constrained (i.e. there were still some variables left to be computed, and some unusable equations left over).
At the time of the error, the following variables were found:
 * Defined: time in component environment
 * Defined: V in component membrane
 * Undefined: R in component membrane
 * Undefined: T in component membrane
 * Undefined: F in component membrane
 * Undefined: C_sc in component membrane
 * Undefined: i_Na in component fast_sodium_current
 * Undefined: i_Ca in component L_type_Ca_current
 * Undefined: i_Ca_K in component L_type_Ca_current
 * Undefined: i_Kr in component rapid_activating_delayed_rectifiyer_K_current
 * Undefined: i_Ks in component slow_activating_delayed_rectifiyer_K_current
 * Undefined: i_to1 in component transient_outward_potassium_current
 * Undefined: i_K1 in component time_independent_potassium_current
 * Undefined: i_Kp in component plateau_potassium_current
 * Undefined: i_NaCa in component Na_Ca_exchanger
 * Undefined: i_NaK in component sodium_potassium_pump
 * Undefined: i_p_Ca in component sarcolemmal_calcium_pump
 * Undefined: i_Ca_b in component calcium_background_current
 * Undefined: i_Na_b in component sodium_background_current
 * Undefined: E_Na in component fast_sodium_current
 * Undefined: g_Na in component fast_sodium_current
 * Undefined: Nao in component standard_ionic_concentrations
 * Defined: Nai in component intracellular_ion_concentrations
 * Defined: m in component fast_sodium_current_m_gate
 * Defined: h in component fast_sodium_current_h_gate
 * Defined: j in component fast_sodium_current_j_gate
 * Defined: alpha_m in component fast_sodium_current_m_gate
 * Defined: beta_m in component fast_sodium_current_m_gate
 * Defined: alpha_h in component fast_sodium_current_h_gate
 * Defined: beta_h in component fast_sodium_current_h_gate
 * Defined: alpha_j in component fast_sodium_current_j_gate
 * Defined: beta_j in component fast_sodium_current_j_gate
 * Undefined: E_K in component rapid_activating_delayed_rectifiyer_K_current
 * Undefined: g_Kr in component rapid_activating_delayed_rectifiyer_K_current
 * Undefined: f_Ko in component rapid_activating_delayed_rectifiyer_K_current
 * Defined: R_V in component rapid_activating_delayed_rectifiyer_K_current
 * Undefined: Ko in component standard_ionic_concentrations
 * Defined: Ki in component intracellular_ion_concentrations
 * Defined: X_kr in component rapid_activating_delayed_rectifiyer_K_current_X_kr_gate
 * Defined: K12 in component rapid_activating_delayed_rectifiyer_K_current_X_kr_gate
 * Defined: K21 in component rapid_activating_delayed_rectifiyer_K_current_X_kr_gate
 * Undefined: g_Ks in component slow_activating_delayed_rectifiyer_K_current
 * Undefined: E_Ks in component slow_activating_delayed_rectifiyer_K_current
 * Defined: X_ks in component slow_activating_delayed_rectifiyer_K_current_X_ks_gate
 * Defined: tau_X_ks in component slow_activating_delayed_rectifiyer_K_current_X_ks_gate
 * Defined: X_ks_infinity in component slow_activating_delayed_rectifiyer_K_current_X_ks_gate
 * Undefined: g_to1 in component transient_outward_potassium_current
 * Defined: X_to1 in component transient_outward_potassium_current_X_to1_gate
 * Defined: Y_to1 in component transient_outward_potassium_current_Y_to1_gate
 * Defined: alpha_X_to1 in component transient_outward_potassium_current_X_to1_gate
 * Defined: beta_X_to1 in component transient_outward_potassium_current_X_to1_gate
 * Defined: alpha_Y_to1 in component transient_outward_potassium_current_Y_to1_gate
 * Defined: beta_Y_to1 in component transient_outward_potassium_current_Y_to1_gate
 * Undefined: g_K1 in component time_independent_potassium_current
 * Undefined: K_mK1 in component time_independent_potassium_current
 * Undefined: K1_infinity_V in component time_independent_potassium_current_K1_gate
 * Undefined: g_Kp in component plateau_potassium_current
 * Defined: Kp_V in component plateau_potassium_current_Kp_gate
 * Undefined: K_mCa in component Na_Ca_exchanger
 * Undefined: K_mNa in component Na_Ca_exchanger
 * Undefined: K_NaCa in component Na_Ca_exchanger
 * Undefined: K_sat in component Na_Ca_exchanger
 * Undefined: eta in component Na_Ca_exchanger
 * Defined: Ca_i in component intracellular_ion_concentrations
 * Undefined: Cao in component standard_ionic_concentrations
 * Undefined: I_NaK in component sodium_potassium_pump
 * Undefined: S_MgATP in component S_MgATP
 * Undefined: I_p_Ca in component sarcolemmal_calcium_pump
 * Undefined: J_up in component SERCA_pump
 * Undefined: j_up in component SERCA_pump
 * Undefined: MgATP_i0 in component S_MgATP
 * Defined: MgATP_i in component Ca_and_Mg_buffering_by_ATP
 * Undefined: g_Cab in component calcium_background_current
 * Undefined: E_Ca in component calcium_background_current
 * Undefined: g_Nab in component sodium_background_current
 * Undefined: P_Ca in component L_type_Ca_current
 * Undefined: P_K in component L_type_Ca_current
 * Undefined: p_k in component L_type_Ca_current
 * Undefined: i_Ca_half in component L_type_Ca_current
 * Undefined: i_Ca_max in component L_type_Ca_current
 * Defined: O in component L_type_Ca_current
 * Defined: O_Ca in component L_type_Ca_current
 * Defined: alpha in component L_type_Ca_current
 * Defined: beta in component L_type_Ca_current
 * Defined: gamma in component L_type_Ca_current
 * Undefined: alpha_a in component L_type_Ca_current
 * Undefined: beta_b in component L_type_Ca_current
 * Undefined: a in component L_type_Ca_current
 * Undefined: b in component L_type_Ca_current
 * Undefined: g in component L_type_Ca_current
 * Undefined: f in component L_type_Ca_current
 * Undefined: g_ in component L_type_Ca_current
 * Undefined: f_ in component L_type_Ca_current
 * Undefined: omega in component L_type_Ca_current
 * Defined: C0 in component L_type_Ca_current
 * Defined: C1 in component L_type_Ca_current
 * Defined: C2 in component L_type_Ca_current
 * Defined: C3 in component L_type_Ca_current
 * Defined: C4 in component L_type_Ca_current
 * Defined: C_Ca0 in component L_type_Ca_current
 * Defined: C_Ca1 in component L_type_Ca_current
 * Defined: C_Ca2 in component L_type_Ca_current
 * Defined: C_Ca3 in component L_type_Ca_current
 * Defined: C_Ca4 in component L_type_Ca_current
 * Defined: Ca_ss in component intracellular_ion_concentrations
 * Defined: y in component L_type_Ca_current_y_gate
 * Defined: y_infinity in component L_type_Ca_current_y_gate
 * Defined: tau_y in component L_type_Ca_current_y_gate
 * Undefined: J_rel in component RyR_channel
 * Undefined: v1 in component RyR_channel
 * Undefined: k_a_plus in component RyR_channel
 * Undefined: k_a_minus in component RyR_channel
 * Undefined: k_b_plus in component RyR_channel
 * Undefined: k_b_minus in component RyR_channel
 * Undefined: k_c_plus in component RyR_channel
 * Undefined: k_c_minus in component RyR_channel
 * Defined: P_O1 in component RyR_channel
 * Defined: P_O2 in component RyR_channel
 * Defined: P_C1 in component RyR_channel
 * Defined: P_C2 in component RyR_channel
 * Undefined: n in component RyR_channel
 * Undefined: m in component RyR_channel
 * Defined: Ca_JSR in component intracellular_ion_concentrations
 * Undefined: J_tr in component intracellular_Ca_fluxes
 * Undefined: J_xfer in component intracellular_Ca_fluxes
 * Undefined: J_trpn in component intracellular_Ca_fluxes
 * Undefined: tau_tr in component intracellular_Ca_fluxes
 * Undefined: tau_xfer in component intracellular_Ca_fluxes
 * Defined: HTRPNCa in component intracellular_Ca_fluxes
 * Defined: LTRPNCa in component intracellular_Ca_fluxes
 * Undefined: J_HTRPNCa in component intracellular_Ca_fluxes
 * Undefined: J_LTRPNCa in component intracellular_Ca_fluxes
 * Undefined: HTRPN_tot in component intracellular_Ca_fluxes
 * Undefined: LTRPN_tot in component intracellular_Ca_fluxes
 * Undefined: k_htrpn_plus in component intracellular_Ca_fluxes
 * Undefined: k_htrpn_minus in component intracellular_Ca_fluxes
 * Undefined: k_ltrpn_plus in component intracellular_Ca_fluxes
 * Undefined: k_ltrpn_minus in component intracellular_Ca_fluxes
 * Defined: Ca_NSR in component intracellular_ion_concentrations
 * Undefined: A_cap in component intracellular_ion_concentrations
 * Undefined: V_JSR in component intracellular_ion_concentrations
 * Undefined: V_NSR in component intracellular_ion_concentrations
 * Undefined: K_mCMDN in component intracellular_ion_concentrations
 * Undefined: K_mCSQN in component intracellular_ion_concentrations
 * Undefined: CMDN_tot in component intracellular_ion_concentrations
 * Undefined: CSQN_tot in component intracellular_ion_concentrations
 * Undefined: beta_i in component intracellular_ion_concentrations
 * Undefined: beta_SS in component intracellular_ion_concentrations
 * Undefined: beta_JSR in component intracellular_ion_concentrations
 * Undefined: V_myo in component model_parameters
 * Undefined: V_ss in component model_parameters
 * Undefined: k_plus_CaATP in component Ca_and_Mg_buffering_by_ATP
 * Undefined: k_minus_CaATP in component Ca_and_Mg_buffering_by_ATP
 * Undefined: k_plus_CaADP in component Ca_and_Mg_buffering_by_ATP
 * Undefined: k_minus_CaADP in component Ca_and_Mg_buffering_by_ATP
 * Defined: CaADP_i in component Ca_and_Mg_buffering_by_ATP
 * Defined: CaADP_ss in component Ca_and_Mg_buffering_by_ATP
 * Defined: CaATP_ss in component Ca_and_Mg_buffering_by_ATP
 * Undefined: ATP_i in component Ca_and_Mg_buffering_by_ATP
 * Undefined: ADP_i in component Ca_and_Mg_buffering_by_ATP
 * Undefined: ADP_ss in component Ca_and_Mg_buffering_by_ATP
 * Undefined: ATP_ss in component Ca_and_Mg_buffering_by_ATP
 * Defined: CaATP_i in component Ca_and_Mg_buffering_by_ATP
 * Undefined: Mg_ss in component Ca_and_Mg_buffering_by_ATP
 * Undefined: Mg_i in component Ca_and_Mg_buffering_by_ATP
 * Defined: MgADP_i in component Ca_and_Mg_buffering_by_ATP
 * Defined: MgADP_ss in component Ca_and_Mg_buffering_by_ATP
 * Defined: MgATP_ss in component Ca_and_Mg_buffering_by_ATP
 * Undefined: ATP_tot in component Ca_and_Mg_buffering_by_ATP
 * Undefined: k_plus_MgATP in component Ca_and_Mg_buffering_by_ATP
 * Undefined: k_minus_MgATP in component Ca_and_Mg_buffering_by_ATP
 * Undefined: Jxfer_CaATP in component Ca_and_Mg_buffering_by_ATP
 * Undefined: Jxfer_MgATP in component Ca_and_Mg_buffering_by_ATP
 * Undefined: Jxfer_Mg in component Ca_and_Mg_buffering_by_ATP
 * Undefined: tau_xfer_CaATP in component Ca_and_Mg_buffering_by_ATP
 * Undefined: tau_xfer_MgATP in component Ca_and_Mg_buffering_by_ATP
 * Undefined: tau_xfer_Mg in component Ca_and_Mg_buffering_by_ATP
 * Undefined: ADP_tot in component Ca_and_Mg_buffering_by_ATP
 * Undefined: k_plus_MgADP in component Ca_and_Mg_buffering_by_ATP
 * Undefined: k_minus_MgADP in component Ca_and_Mg_buffering_by_ATP
 * Undefined: Jxfer_CaADP in component Ca_and_Mg_buffering_by_ATP
 * Undefined: Jxfer_MgADP in component Ca_and_Mg_buffering_by_ATP
 * Undefined: tau_xfer_CaADP in component Ca_and_Mg_buffering_by_ATP
 * Undefined: tau_xfer_MgADP in component Ca_and_Mg_buffering_by_ATP
 * Undefined: d/dt V in component membrane
 * Defined: d/dt m in component fast_sodium_current_m_gate
 * Defined: d/dt h in component fast_sodium_current_h_gate
 * Defined: d/dt j in component fast_sodium_current_j_gate
 * Defined: d/dt X_kr in component rapid_activating_delayed_rectifiyer_K_current_X_kr_gate
 * Defined: d/dt X_ks in component slow_activating_delayed_rectifiyer_K_current_X_ks_gate
 * Defined: d/dt X_to1 in component transient_outward_potassium_current_X_to1_gate
 * Defined: d/dt Y_to1 in component transient_outward_potassium_current_Y_to1_gate
 * Undefined: d/dt C0 in component L_type_Ca_current
 * Undefined: d/dt C1 in component L_type_Ca_current
 * Undefined: d/dt C2 in component L_type_Ca_current
 * Undefined: d/dt C3 in component L_type_Ca_current
 * Undefined: d/dt C4 in component L_type_Ca_current
 * Undefined: d/dt O in component L_type_Ca_current
 * Undefined: d/dt C_Ca0 in component L_type_Ca_current
 * Undefined: d/dt C_Ca1 in component L_type_Ca_current
 * Undefined: d/dt C_Ca2 in component L_type_Ca_current
 * Undefined: d/dt C_Ca3 in component L_type_Ca_current
 * Undefined: d/dt C_Ca4 in component L_type_Ca_current
 * Undefined: d/dt O_Ca in component L_type_Ca_current
 * Defined: d/dt y in component L_type_Ca_current_y_gate
 * Undefined: d/dt P_C1 in component RyR_channel
 * Undefined: d/dt P_O1 in component RyR_channel
 * Undefined: d/dt P_O2 in component RyR_channel
 * Undefined: d/dt P_C2 in component RyR_channel
 * Undefined: d/dt HTRPNCa in component intracellular_Ca_fluxes
 * Undefined: d/dt LTRPNCa in component intracellular_Ca_fluxes
 * Undefined: d/dt Ca_i in component intracellular_ion_concentrations
 * Undefined: d/dt Nai in component intracellular_ion_concentrations
 * Undefined: d/dt Ki in component intracellular_ion_concentrations
 * Undefined: d/dt Ca_ss in component intracellular_ion_concentrations
 * Undefined: d/dt Ca_JSR in component intracellular_ion_concentrations
 * Undefined: d/dt Ca_NSR in component intracellular_ion_concentrations
 * Undefined: d/dt CaATP_ss in component Ca_and_Mg_buffering_by_ATP
 * Undefined: d/dt MgATP_ss in component Ca_and_Mg_buffering_by_ATP
 * Undefined: d/dt CaATP_i in component Ca_and_Mg_buffering_by_ATP
 * Undefined: d/dt MgATP_i in component Ca_and_Mg_buffering_by_ATP
 * Undefined: d/dt CaADP_ss in component Ca_and_Mg_buffering_by_ATP
 * Undefined: d/dt MgADP_ss in component Ca_and_Mg_buffering_by_ATP
 * Undefined: d/dt CaADP_i in component Ca_and_Mg_buffering_by_ATP
 * Undefined: d/dt MgADP_i in component Ca_and_Mg_buffering_by_ATP
The following equations couldn't be used:
 * Equation in apply element with id membrane_voltage_diff_eq.
 * Equation in apply element with id i_Na_calculation.
 * Equation in apply element with id E_Na_calculation.
 * Equation in apply element with id E_K_calculation.
 * Equation in apply element with id i_Kr_calculation.
 * Equation in apply element with id f_Ko_calculation.
 * Equation in apply element with id i_Ks_calculation.
 * Equation in apply element with id E_Ks_calculation.
 * Equation in apply element with id i_to1_calculation.
 * Equation in apply element with id i_K1_calculation.
 * Equation in apply element with id alpha_K1_calculation.
 * Equation in apply element with id i_Kp_calculation.
 * Equation in apply element with id Na_Ca_exchanger.
 * Equation in apply element with id i_NaK_calculation.
 * Equation in apply element with id i_p_Ca_calculation.
 * Equation in apply element with id J_up_calculation.
 * Equation in apply element with id S_MgATP_calculation.
 * Equation in apply element with id E_Ca_calculation.
 * Equation in apply element with id i_Ca_b_calculation.
 * Equation in apply element with id i_Na_b_calculation.
 * Equation in apply element with id i_Ca_calculation.
 * Equation in apply element with id i_Ca_K_calculation.
 * Equation in apply element with id p_k_calculation.
 * Equation in apply element with id i_Ca_max_calculation.
 * Equation in apply element with id alpha_a_calculation.
 * Equation in apply element with id beta_b_calculation.
 * Equation in apply element with id C0_diff_eq.
 * Equation in apply element with id C1_diff_eq.
 * Equation in apply element with id C2_diff_eq.
 * Equation in apply element with id C3_diff_eq.
 * Equation in apply element with id C4_diff_eq.
 * Equation in apply element with id O_diff_eq.
 * Equation in apply element with id C_Ca0_diff_eq.
 * Equation in apply element with id C_Ca1_diff_eq.
 * Equation in apply element with id C_Ca2_diff_eq.
 * Equation in apply element with id C_Ca3_diff_eq.
 * Equation in apply element with id C_Ca4_diff_eq.
 * Equation in apply element with id O_Ca_diff_eq.
 * Equation in apply element with id P_C1_diff_eq.
 * Equation in apply element with id P_O1_diff_eq.
 * Equation in apply element with id P_O2_diff_eq.
 * Equation in apply element with id P_C2_diff_eq.
 * Equation in apply element with id J_rel_calculation.
 * Equation in apply element with id J_tr_calculation.
 * Equation in apply element with id J_xfer_calculation.
 * Equation in apply element with id J_trpn_calculation.
 * Equation in apply element with id J_HTRPNCa_calculation.
 * Equation in apply element with id HTRPNCa_diff_eq.
 * Equation in apply element with id J_LTRPNCa_calculation.
 * Equation in apply element with id LTRPNCa_diff_eq.
 * Equation in apply element with id Ca_i_diff_eq.
 * Equation in apply element with id Nai_diff_eq.
 * Equation in apply element with id Ki_internal_diff_eq.
 * Equation in apply element with id beta_i_calculation.
 * Equation in apply element with id beta_SS_calculation.
 * Equation in apply element with id beta_JSR_calculation.
 * Equation in apply element with id Ca_ss_diff_eq.
 * Equation in apply element with id Ca_JSR_diff_eq.
 * Equation in apply element with id Ca_NSR_diff_eq.
 * Equation in apply element with id ATP_ss_calculation.
 * Equation in apply element with id CaATP_ss_diff_eq.
 * Equation in apply element with id MgATP_ss_diff_eq.
 * Equation in apply element with id ATP_i_calculation.
 * Equation in apply element with id CaATP_i_diff_eq.
 * Equation in apply element with id MgATP_i_diff_eq.
 * Equation in apply element with id Jxfer_CaATP_calculation.
 * Equation in apply element with id Jxfer_MgATP_calculation.
 * Equation in apply element with id ADP_ss_calculation.
 * Equation in apply element with id CaADP_ss_diff_eq.
 * Equation in apply element with id MgADP_ss_diff_eq.
 * Equation in apply element with id ADP_i_calculation.
 * Equation in apply element with id CaADP_i_diff_eq.
 * Equation in apply element with id MgADP_i_diff_eq.
 * Equation in apply element with id Jxfer_CaADP_calculation.
 * Equation in apply element with id Jxfer_MgADP_calculation.
 * Equation in apply element with id Mg_ss_calculation.
 * Equation in apply element with id Mg_i_calculation.
 * Equation in apply element with id Jxfer_Mg_calculation.