<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE model PUBLIC "-//APACHE//DTD Documentation V1.3//EN" "document-v13.dtd">
<model xmlns="http://www.cellml.org/cellml/1.0#" xmlns:cellml="http://www.cellml.org/cellml/1.0#" xmlns:cmeta="http://www.cellml.org/metadata/1.0#" name="SM_model" cmeta:id="corrias_model_2007">
	
  <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:bqs="http://www.cellml.org/bqs/1.0#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:vCard="http://www.w3.org/2001/vcard-rdf/3.0#" xmlns:cs="http://www.cellml.org/metadata/simulation/1.0#" xmlns:cg="http://www.cellml.org/metadata/graphs/1.0#">

	<rdf:Description rdf:about="">
		<dc:creator rdf:parseType="Resource">
			<vCard:N rdf:parseType="Resource">
				<vCard:Family>Corrias</vCard:Family>
				<vCard:Given>Alberto</vCard:Given>
			</vCard:N>
			<vCard:EMAIL rdf:parseType="Resource">
				<rdf:value>albertocorrias@nus.edu.sg</rdf:value>
				<rdf:type rdf:resource="http://imc.org/vCard/3.0#internet"/>
			</vCard:EMAIL>
			<vCard:ORG rdf:parseType="Resource">
				<vCard:Orgname>National University of Singapore</vCard:Orgname>
				<vCard:Orgunit>Division of BioEngineering</vCard:Orgunit>
			</vCard:ORG>
		</dc:creator>
		<!-- date of creation of CellML code.-->
		<dcterms:created rdf:parseType="Resource">
			<dcterms:W3CDTF>2007-09-10</dcterms:W3CDTF>
		</dcterms:created>
		<!-- The Publisher metadata. -->
		<dc:publisher>
			National University of Singapore
		</dc:publisher>
	</rdf:Description>
	<rdf:Description rdf:about="#corrias_model_2007">
		<!-- A human readable name for the model. -->
		<dc:title>
			Corrias and Buist's 2007 quantitative model of gastric smooth muscle cellular electrophysiology.
		</dc:title>
		<!-- A comment regarding the model. -->
		<cmeta:comment rdf:parseType="Resource">
			<rdf:value>
				This is a CellML description of all the ion channels and intracellular processes contained  in the Corrias and Buist 2007 quantitative model of gastric smooth muscle cellular activation. This encoding of the model includes a stimulus current derived from a psuedo ICC action potential.
			</rdf:value>
			<!-- The creator of the comment. -->
			<dc:creator rdf:parseType="Resource">
				<vCard:FN>Alberto Corrias</vCard:FN>
			</dc:creator>
		</cmeta:comment>
					
		<!--  Keyword(s) -->
		<bqs:reference rdf:parseType="Resource">
			<dc:subject rdf:parseType="Resource">
				<bqs:subject_type>keyword</bqs:subject_type>
				<rdf:value>
					<rdf:Bag>
						<rdf:li>electrophysiology</rdf:li>
						<rdf:li>gastric</rdf:li>
						<rdf:li>smooth muscle</rdf:li>
					</rdf:Bag>
				</rdf:value>
			</dc:subject>
		</bqs:reference>

		<bqs:reference rdf:parseType="Resource">
		<bqs:Pubmed_id>17486452</bqs:Pubmed_id>
		<bqs:JournalArticle rdf:parseType="Resource">
			<dc:creator>
				<rdf:Seq>
					<rdf:li rdf:parseType="Resource">
						<bqs:Person rdf:parseType="Resource">
							<vCard:N rdf:parseType="Resource">
								<vCard:Family>Corrias</vCard:Family>
								<vCard:Given>Alberto</vCard:Given>
							</vCard:N>
						</bqs:Person>
					</rdf:li>
					<rdf:li rdf:parseType="Resource">
						<bqs:Person rdf:parseType="Resource">
							<vCard:N rdf:parseType="Resource">
								<vCard:Family>Buist</vCard:Family>
								<vCard:Given>Martin</vCard:Given>
								<vCard:Other>L</vCard:Other>
							</vCard:N>
						</bqs:Person>
					</rdf:li>
				</rdf:Seq>
			</dc:creator>
			<dc:title>
				A quantitative model of gastric smooth muscle cellular activation
			</dc:title>
			<dcterms:issued rdf:parseType="Resource">
				<dcterms:W3CDTF>2007</dcterms:W3CDTF>
			</dcterms:issued>
			<bqs:Journal rdf:parseType="Resource">
				<dc:title>
					Annals of Biomedical Engineering
				</dc:title>
			</bqs:Journal>
			<bqs:volume>35</bqs:volume>
			<bqs:first_page>1595</bqs:first_page>
			<bqs:last_page>1607</bqs:last_page>
			</bqs:JournalArticle>
                      </bqs:reference>
                      <cs:simulation>
                        <rdf:Description rdf:ID="simulation">
                          <cs:simulationName>SM with psuedo ICC stimulus</cs:simulationName>
                          <cs:multistepMethod>bdf</cs:multistepMethod>
                          <cs:iterationMethod>newton</cs:iterationMethod>
                          <cs:linearSolver>dense</cs:linearSolver>
                          <cs:boundIntervals rdf:parseType="Collection">
                            <rdf:Description>
                              <cs:boundVariable>
                                <rdf:Description rdf:about="#time"/>
                              </cs:boundVariable>
                              <cs:maximumStepSize rdf:datatype="http://www.w3.org/2001/XMLSchema#double">
                                1
                              </cs:maximumStepSize>
                              <cs:tabulationStepSize rdf:datatype="http://www.w3.org/2001/XMLSchema#double">
                                10.0
                              </cs:tabulationStepSize>
                              <cs:startingValue rdf:datatype="http://www.w3.org/2001/XMLSchema#double">
                                0.0
                              </cs:startingValue>
                              <cs:endingValue rdf:datatype="http://www.w3.org/2001/XMLSchema#double">
                                60.0e3
                              </cs:endingValue>
                            </rdf:Description>
                          </cs:boundIntervals>
                        </rdf:Description>
                      </cs:simulation>
                      <cg:graph>
                        <rdf:Description rdf:ID="membrane_potential_graph">
                          <cg:x-label>Time (ms)</cg:x-label>
                          <cg:y-label>Membrane potential (mV)</cg:y-label>
                          <cg:background-colour>#ffffff</cg:background-colour>
                          <cg:traces rdf:parseType="Collection">
                            <rdf:Description>
                              <cg:type rdf:resource="http://www.cellml.org/metadata/graphs/1.0#line"/>
                              <cg:colour>#ff0000</cg:colour>
                              <cg:line-type rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</cg:line-type>
                              <cg:x-variable rdf:parseType="Resource">
                                <cs:simulation rdf:resource="#simulation"/>
                                <cg:variable rdf:resource="#time"/>
                              </cg:x-variable>
                              <cg:y-variable rdf:parseType="Resource">
                                <cs:simulation rdf:resource="#simulation"/>
                                <cg:variable rdf:resource="#Vm"/>
                              </cg:y-variable>
                            </rdf:Description>
                          </cg:traces>
                        </rdf:Description>
                      </cg:graph>
                      <cg:graph>
                        <rdf:Description rdf:ID="stimulus_current_graph">
                          <cg:x-label>Time (ms)</cg:x-label>
                          <cg:y-label>I_stim (pA)</cg:y-label>
                          <cg:background-colour>#ffffff</cg:background-colour>
                          <cg:traces rdf:parseType="Collection">
                            <rdf:Description>
                              <cg:type rdf:resource="http://www.cellml.org/metadata/graphs/1.0#line"/>
                              <cg:colour>#ff0000</cg:colour>
                              <cg:line-type rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</cg:line-type>
                              <cg:x-variable rdf:parseType="Resource">
                                <cs:simulation rdf:resource="#simulation"/>
                                <cg:variable rdf:resource="#time"/>
                              </cg:x-variable>
                              <cg:y-variable rdf:parseType="Resource">
                                <cs:simulation rdf:resource="#simulation"/>
                                <cg:variable rdf:resource="#I_stim"/>
                              </cg:y-variable>
                            </rdf:Description>
                          </cg:traces>
                        </rdf:Description>
                      </cg:graph>
                      <cg:graph>
                        <rdf:Description rdf:ID="AP_Cai">
                          <cg:x-label>Time (ms)</cg:x-label>
                          <cg:y-label>[Ca]i (mM)</cg:y-label>
                          <cg:background-colour>#ffffff</cg:background-colour>
                          <cg:traces rdf:parseType="Collection">
                            <rdf:Description>
                              <cg:type rdf:resource="http://www.cellml.org/metadata/graphs/1.0#line"/>
                              <cg:colour>#ff0000</cg:colour>
                              <cg:line-type rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</cg:line-type>
                              <cg:x-variable rdf:parseType="Resource">
                                <cs:simulation rdf:resource="#simulation"/>
                                <cg:variable rdf:resource="#time"/>
                                <cg:minimum rdf:datatype="http://www.w3.org/2001/XMLSchema#double">19.5e3</cg:minimum>
                                <cg:maximum rdf:datatype="http://www.w3.org/2001/XMLSchema#double">32.0e3</cg:maximum>
                              </cg:x-variable>
                              <cg:y-variable rdf:parseType="Resource">
                                <cs:simulation rdf:resource="#simulation"/>
                                <cg:variable rdf:resource="#Cai"/>
                              </cg:y-variable>
                            </rdf:Description>
                          </cg:traces>
                        </rdf:Description>
                      </cg:graph>
                      <cg:graph>
                        <rdf:Description rdf:ID="AP_IKr">
                          <cg:x-label>Time (ms)</cg:x-label>
                          <cg:y-label>Current (pA)</cg:y-label>
                          <cg:background-colour>#ffffff</cg:background-colour>
                          <cg:traces rdf:parseType="Collection">
                            <rdf:Description>
                              <cg:type rdf:resource="http://www.cellml.org/metadata/graphs/1.0#line"/>
                              <cg:colour>#ff0000</cg:colour>
                              <cg:line-type rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</cg:line-type>
                              <cg:x-variable rdf:parseType="Resource">
                                <cs:simulation rdf:resource="#simulation"/>
                                <cg:variable rdf:resource="#time"/>
                                <cg:minimum rdf:datatype="http://www.w3.org/2001/XMLSchema#double">19.5e3</cg:minimum>
                                <cg:maximum rdf:datatype="http://www.w3.org/2001/XMLSchema#double">32.0e3</cg:maximum>
                              </cg:x-variable>
                              <cg:y-variable rdf:parseType="Resource">
                                <cs:simulation rdf:resource="#simulation"/>
                                <cg:variable rdf:resource="#IKr"/>
                              </cg:y-variable>
                            </rdf:Description>
                          </cg:traces>
                        </rdf:Description>
                      </cg:graph>
                      <cg:graph>
                        <rdf:Description rdf:ID="AP_ICa">
                          <cg:x-label>Time (ms)</cg:x-label>
                          <cg:y-label>Current (pA)</cg:y-label>
                          <cg:background-colour>#ffffff</cg:background-colour>
                          <cg:traces rdf:parseType="Collection">
                            <rdf:Description>
                              <cg:label>ICaL</cg:label>
                              <cg:type rdf:resource="http://www.cellml.org/metadata/graphs/1.0#line"/>
                              <cg:colour>#ff0000</cg:colour>
                              <cg:line-type rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</cg:line-type>
                              <cg:x-variable rdf:parseType="Resource">
                                <cs:simulation rdf:resource="#simulation"/>
                                <cg:variable rdf:resource="#time"/>
                                <cg:minimum rdf:datatype="http://www.w3.org/2001/XMLSchema#double">19.5e3</cg:minimum>
                                <cg:maximum rdf:datatype="http://www.w3.org/2001/XMLSchema#double">32.0e3</cg:maximum>
                              </cg:x-variable>
                              <cg:y-variable rdf:parseType="Resource">
                                <cs:simulation rdf:resource="#simulation"/>
                                <cg:variable rdf:resource="#ICaL"/>
                              </cg:y-variable>
                            </rdf:Description>
                            <rdf:Description>
                              <cg:label>ILVA</cg:label>
                              <cg:type rdf:resource="http://www.cellml.org/metadata/graphs/1.0#line"/>
                              <cg:colour>#0000ff</cg:colour>
                              <cg:line-type rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</cg:line-type>
                              <cg:x-variable rdf:parseType="Resource">
                                <cs:simulation rdf:resource="#simulation"/>
                                <cg:variable rdf:resource="#time"/>
                                <cg:minimum rdf:datatype="http://www.w3.org/2001/XMLSchema#double">19.5e3</cg:minimum>
                                <cg:maximum rdf:datatype="http://www.w3.org/2001/XMLSchema#double">32.0e3</cg:maximum>
                              </cg:x-variable>
                              <cg:y-variable rdf:parseType="Resource">
                                <cs:simulation rdf:resource="#simulation"/>
                                <cg:variable rdf:resource="#ILVA"/>
                              </cg:y-variable>
                            </rdf:Description>
                          </cg:traces>
                        </rdf:Description>
                      </cg:graph>
                      <cg:graph>
                        <rdf:Description rdf:ID="AP_INa">
                          <cg:x-label>Time (ms)</cg:x-label>
                          <cg:y-label>Current (pA)</cg:y-label>
                          <cg:background-colour>#ffffff</cg:background-colour>
                          <cg:traces rdf:parseType="Collection">
                            <rdf:Description>
                              <cg:type rdf:resource="http://www.cellml.org/metadata/graphs/1.0#line"/>
                              <cg:colour>#ff0000</cg:colour>
                              <cg:line-type rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</cg:line-type>
                              <cg:x-variable rdf:parseType="Resource">
                                <cs:simulation rdf:resource="#simulation"/>
                                <cg:variable rdf:resource="#time"/>
                                <cg:minimum rdf:datatype="http://www.w3.org/2001/XMLSchema#double">19.5e3</cg:minimum>
                                <cg:maximum rdf:datatype="http://www.w3.org/2001/XMLSchema#double">32.0e3</cg:maximum>
                              </cg:x-variable>
                              <cg:y-variable rdf:parseType="Resource">
                                <cs:simulation rdf:resource="#simulation"/>
                                <cg:variable rdf:resource="#INa"/>
                              </cg:y-variable>
                            </rdf:Description>
                          </cg:traces>
                        </rdf:Description>
                      </cg:graph>
                      <cg:graph>
                        <rdf:Description rdf:ID="AP_IKA">
                          <cg:x-label>Time (ms)</cg:x-label>
                          <cg:y-label>Current (pA)</cg:y-label>
                          <cg:background-colour>#ffffff</cg:background-colour>
                          <cg:traces rdf:parseType="Collection">
                            <rdf:Description>
                              <cg:type rdf:resource="http://www.cellml.org/metadata/graphs/1.0#line"/>
                              <cg:colour>#ff0000</cg:colour>
                              <cg:line-type rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</cg:line-type>
                              <cg:x-variable rdf:parseType="Resource">
                                <cs:simulation rdf:resource="#simulation"/>
                                <cg:variable rdf:resource="#time"/>
                                <cg:minimum rdf:datatype="http://www.w3.org/2001/XMLSchema#double">19.5e3</cg:minimum>
                                <cg:maximum rdf:datatype="http://www.w3.org/2001/XMLSchema#double">32.0e3</cg:maximum>
                              </cg:x-variable>
                              <cg:y-variable rdf:parseType="Resource">
                                <cs:simulation rdf:resource="#simulation"/>
                                <cg:variable rdf:resource="#IKA"/>
                              </cg:y-variable>
                            </rdf:Description>
                          </cg:traces>
                        </rdf:Description>
                      </cg:graph>
                      <cg:graph>
                        <rdf:Description rdf:ID="AP_IBK">
                          <cg:x-label>Time (ms)</cg:x-label>
                          <cg:y-label>Current (pA)</cg:y-label>
                          <cg:background-colour>#ffffff</cg:background-colour>
                          <cg:traces rdf:parseType="Collection">
                            <rdf:Description>
                              <cg:type rdf:resource="http://www.cellml.org/metadata/graphs/1.0#line"/>
                              <cg:colour>#ff0000</cg:colour>
                              <cg:line-type rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</cg:line-type>
                              <cg:x-variable rdf:parseType="Resource">
                                <cs:simulation rdf:resource="#simulation"/>
                                <cg:variable rdf:resource="#time"/>
                                <cg:minimum rdf:datatype="http://www.w3.org/2001/XMLSchema#double">19.5e3</cg:minimum>
                                <cg:maximum rdf:datatype="http://www.w3.org/2001/XMLSchema#double">32.0e3</cg:maximum>
                              </cg:x-variable>
                              <cg:y-variable rdf:parseType="Resource">
                                <cs:simulation rdf:resource="#simulation"/>
                                <cg:variable rdf:resource="#IBK"/>
                              </cg:y-variable>
                            </rdf:Description>
                          </cg:traces>
                        </rdf:Description>
                      </cg:graph>
                      <cmeta:modification rdf:parseType="Resource">
                        <rdf:value>
                          Tidying up the electrical stimulus protocol and adding simulation and graphing metadata for my CellMLSimulator software.
                        </rdf:value>
                        <cmeta:modifier rdf:parseType="Resource">
                          <vCard:FN>David Nickerson</vCard:FN>
                        </cmeta:modifier>
                        <dcterms:modified rdf:parseType="Resource">
                          <dcterms:W3CDTF>2007-09-20</dcterms:W3CDTF>
                        </dcterms:modified>
		</cmeta:modification>
		<cmeta:modification rdf:parseType="Resource">
			<rdf:value>
				The value of Q10 for Potassium channels (Q10K) was corrected from the value in the published paper (1.5). The correct value to be used is 1.365. 
			</rdf:value>
			<cmeta:modifier rdf:parseType="Resource">
				<vCard:FN>Alberto Corrias</vCard:FN>
			</cmeta:modifier>
			<dcterms:modified rdf:parseType="Resource">
				<dcterms:W3CDTF>2007-09-21</dcterms:W3CDTF>
			</dcterms:modified>
                      </cmeta:modification>
	</rdf:Description>
</rdf:RDF>
	
	<!--UNIT DECLARATION-->
	<units name="conductance_units">
		<unit prefix="nano" units="siemens"/>
	</units>
	<units name="millifarads">
		<unit prefix="milli" units="farad"/>
	</units>
	<units name="voltage_units">
		<unit prefix="milli" units="volt"/>
	</units>
	<units name="volume_units">
		<unit prefix="micro" units="meter" exponent="3"/>
	</units>
	<units name="Inverse_Voltage_units">
		<unit units="voltage_units" exponent="-1"/>
	</units>
	<units name="Inverse_Voltage_Units_per_time_units">
		<unit units="Inverse_Voltage_units"/> 
		<unit units="time_units" exponent="-1"/>
	</units>    
	<units name="time_units">
		<unit prefix="milli" units="second"/>
	</units>
	<units name="current_units">
		<unit units="voltage_units"/>
		<unit units="conductance_units"/>
	</units>
	<units name="rate_constants_units">
		<unit units="time_units" exponent="-1"/>
	</units>
	<units name="capacitance_units">
		<unit prefix="pico" units="farad"/>
	</units>
	<units name="Temperature_units">
		<unit units="kelvin"/>
	</units>
	<units name="Inverse_Temperature_units_times_conductance">
		<unit units="Temperature_units" exponent="-1"/>
		<unit units="conductance_units"/>
	</units>
	<units name="F_units">
		<unit units="mole" exponent="-1"/>
		<unit units="coulomb"/>
	</units>
	<units name="R_units">
		<unit prefix="milli" units="joule"/>
		<unit units="mole" exponent="-1"/>
		<unit units="kelvin" exponent="-1"/>
	</units>
	<units name="millimolar">
		<unit prefix="milli" units="mole"/>
		<unit units="litre" exponent="-1"/>
	</units>
	<units name="per_millimolar">
		<unit units="litre"/>
		<unit prefix="milli" units="mole" exponent="-1"/>
	</units>
	<units name="millimolar_per_millisecond">
		<unit prefix="milli" units="mole"/>
		<unit units="litre" exponent="-1"/>
		<unit prefix="milli" units="second" exponent="-1"/>
	</units>
	<units name="millimolar_per_millisecond_per_millivolt">
		<unit prefix="milli" units="mole"/>
		<unit units="litre" exponent="-1"/>
		<unit units="second" exponent="-1"/>
		<unit prefix="milli" units="volt" exponent="-1"/>
	</units>
	<units name="mole_to_millimole">
		<unit units="mole"/>
		<unit prefix="milli" units="mole" exponent="-1"/>
	</units>
	
	<!--END OF UNIT DECLARATION-->
	
	<component name="Time">
		<variable cmeta:id="time" name="time" public_interface="out" private_interface="out" units="time_units"/>
	</component> <!-- closure of time component-->	
	
	<component name="Neural_input">
		<variable name="Ach" public_interface="out" private_interface="out" initial_value="0.00001" units="millimolar"/>
	</component> <!-- closure of neural input component-->	
	
	<component name="Gap_junction">
		<variable name="Gcouple" public_interface="out" private_interface="out" initial_value="1.3" units="conductance_units"/>
	</component>
	
	<component name="Environment">
		<variable name="T" initial_value="310" private_interface="out" units="Temperature_units"/>
		<variable name="T_exp" initial_value="297" private_interface="out" units="Temperature_units"/>
		<variable name="F" initial_value="96486" public_interface="out" private_interface="out" units="F_units"/>
		<variable name="R" initial_value="8314.4" private_interface="out" units="R_units"/>
		<variable name="Q10Ca" initial_value="2.1" private_interface="out" units="dimensionless"/>
		<variable name="Q10K" initial_value="1.365" private_interface="out" units="dimensionless"/>
		<variable name="Q10Na" initial_value="2.45" private_interface="out" units="dimensionless"/>
		<variable name="Ca_o" initial_value="2.5" private_interface="out" public_interface="out" units="millimolar"/>
		<variable name="Na_o" initial_value="137" public_interface="out" private_interface="out" units="millimolar"/>
		<variable name="K_o" initial_value="5.9" public_interface="out" private_interface="out" units="millimolar"/>
		<variable name="Cl_o" initial_value="134" public_interface="out" private_interface="out" units="millimolar"/>
		<variable name="T_correction_Na" public_interface="out" private_interface="out" units="dimensionless"/>	
		<variable name="T_correction_K" public_interface="out" private_interface="out" units="dimensionless"/>
		<variable name="T_correction_Ca" public_interface="out" private_interface="out" units="dimensionless"/>
		<variable name="T_correction_BK" public_interface="out" private_interface="out" units="conductance_units"/>
		
		<variable name="FoRT" public_interface="out" private_interface="out" units="Inverse_Voltage_units"/>
		<variable name="RToF" public_interface="out" private_interface="out" units="voltage_units"/>
		
		<!-- equation that calculates FoRT-->	
		<math xmlns="http://www.w3.org/1998/Math/MathML">
			<apply><eq/>		
				<ci> FoRT </ci>
				<apply><divide/>
					<ci> F </ci>
					<apply><times/>
						<ci> R </ci>
						<ci> T </ci>
					</apply>
				</apply>		
			</apply><!-- closure of equation that calculates FoRT-->	
		</math>
		
		<!-- equation that calculates RToF-->	
		<math xmlns="http://www.w3.org/1998/Math/MathML">
			<apply><eq/>		
				<ci> RToF </ci>
				<apply><divide/>
					<apply><times/>
						<ci> R </ci>
						<ci> T </ci>
					</apply>
					<ci> F </ci>
				</apply>		
			</apply><!-- closure of equation that calculates FoRT-->	
		</math>
		
		<!-- equation that calculates Tcorrection_Ca-->
		<math xmlns="http://www.w3.org/1998/Math/MathML">
			<apply><eq/>		
				<ci>T_correction_Ca</ci>
				<apply><power/>
					<ci>Q10Ca </ci>
					<apply><divide/>
						<apply><minus/>
							<ci>T </ci>
							<ci>T_exp </ci>
						</apply>
						<cn cellml:units="Temperature_units">10</cn>
					</apply>
				</apply>	
			</apply><!-- closure of equation that calculates TcorrectionCa-->	
		</math>
		
		<!-- equation that calculates Tcorrection_K-->
		<math xmlns="http://www.w3.org/1998/Math/MathML">
			<apply><eq/>		
				<ci>T_correction_K</ci>
				<apply><power/>
					<ci>Q10K </ci>
					<apply><divide/>
						<apply><minus/>
							<ci>T </ci>
							<ci>T_exp </ci>
						</apply>
						<cn cellml:units="Temperature_units">10</cn>
					</apply>
				</apply>	
			</apply><!-- closure of equation that calculates TcorrectionK-->	
		</math>
		
		<!-- equation that calculates Tcorrection_Na-->
		<math xmlns="http://www.w3.org/1998/Math/MathML">
			<apply><eq/>		
				<ci>T_correction_Na</ci>
				<apply><power/>
					<ci>Q10Na </ci>
					<apply><divide/>
						<apply><minus/>
							<ci>T </ci>
							<ci>T_exp </ci>
						</apply>
						<cn cellml:units="Temperature_units">10</cn>
					</apply>
				</apply>	
			</apply><!-- closure of equation that calculates TcorrectionNa-->	
		</math>
		<!-- equation that calculates Tcorrection_Na-->
		<math xmlns="http://www.w3.org/1998/Math/MathML">
			<apply><eq/>		
				<ci>T_correction_BK</ci>
				<apply><times/>
					<cn cellml:units="Inverse_Temperature_units_times_conductance">1.1</cn>
					<apply><minus/>
						<ci>T </ci>
						<ci>T_exp </ci>
					</apply>
				</apply>	
			</apply><!-- closure of equation that calculates TcorrectionNa-->	
		</math>
	</component> <!-- closure of environment component-->
	
	<component name="SM_Membrane">
		
		<variable name="Cm_SM" initial_value="77" units="capacitance_units"/>
		<variable name="Vol_SM" public_interface="out" private_interface="out" initial_value="3500" units="volume_units"/>
		<variable cmeta:id="Vm" name="Vm_SM" private_interface="out" initial_value="-69.75" units="voltage_units"/>
		<variable name="time" public_interface="in" private_interface="out" units="time_units"/>
		<variable cmeta:id="Cai" name="Ca_i" initial_value="0.00008" private_interface="out" units="millimolar"/>
		<variable name="Na_i" initial_value="10" public_interface="out" private_interface="out" units="millimolar"/>
		<variable name="K_i" initial_value="164" private_interface="out" units="millimolar"/>
		<variable name="Ca_o" public_interface="in" private_interface="out" units="millimolar"/>
		<variable name="Ach" public_interface="in" private_interface="out" units="millimolar"/>
		<variable name="Na_o" public_interface="in" private_interface="out" units="millimolar"/>
		<variable name="K_o" public_interface="in" private_interface="out" units="millimolar"/>
		<variable name="Cl_o" public_interface="in" private_interface="out" units="millimolar"/>
		<variable name="T_correction_Ca" public_interface="in" private_interface="out" units="dimensionless"/>
		<variable name="T_correction_Na" public_interface="in" private_interface="out" units="dimensionless"/>
		<variable name="T_correction_K" public_interface="in" private_interface="out" units="dimensionless"/>
		<variable name="T_correction_BK" public_interface="in" private_interface="out" units="conductance_units"/>
		<variable name="RToF" public_interface="in" private_interface="out" units="voltage_units"/>
		<variable name="FoRT" public_interface="in" private_interface="out" units="Inverse_Voltage_units"/>
		<variable name="F" public_interface="in" private_interface="out" units="F_units"/>
		
		
		<variable cmeta:id="INa" name="I_Na_SM" private_interface="in" units="current_units"/>
		<variable cmeta:id="ICaL" name="I_Ltype_SM" private_interface="in" units="current_units"/>
		<variable cmeta:id="ILVA" name="I_LVA_SM" private_interface="in" units="current_units"/>
		<variable cmeta:id="IKr" name="I_kr_SM" private_interface="in" units="current_units"/>
		<variable cmeta:id="IKA" name="I_ka_SM" private_interface="in" units="current_units"/>
		<variable cmeta:id="IBK" name="I_BK_SM" private_interface="in" units="current_units"/>
		<variable name="I_NSCC_SM" private_interface="in" units="current_units"/>
		<variable name="I_bk_SM" private_interface="in" units="current_units"/>
		<variable name="J_CaSR_SM" private_interface="in" units="millimolar_per_millisecond"/>
		<variable name="I_stim" public_interface="in" units="current_units"/>
		

		<!-- equation that calculates dVm_SM/dt-->	     	
		<math xmlns="http://www.w3.org/1998/Math/MathML">   	
			<apply><eq/>		
				<apply><diff/>
					<bvar><ci>time </ci></bvar>
					<ci> Vm_SM </ci>
				</apply>
				<apply><times/>
					<cn cellml:units="dimensionless">-1.0</cn>
					<apply><divide/>
						<cn cellml:units="dimensionless">1.0</cn>
						<ci>Cm_SM</ci>
					</apply>
					<apply><plus/>   			
						<ci> I_Na_SM </ci>
						<ci> I_Ltype_SM </ci>
						<ci> I_LVA_SM </ci>
						<ci> I_kr_SM </ci>
						<ci> I_ka_SM </ci>
						<ci> I_BK_SM </ci>
						<ci> I_NSCC_SM </ci>
						<ci> I_bk_SM </ci>
						<apply><times/>
							<cn cellml:units="dimensionless">-1.0</cn>
							<ci> I_stim </ci>
						</apply>
					</apply>
				</apply><!-- closure of equation dVm_SM/dt= (-1/Cm)*(sum of ionic currents)-->	
			</apply>	
		</math> 
		
		<!-- equation that calculates dCai/dt-->
		<math xmlns="http://www.w3.org/1998/Math/MathML">   	
			<apply><eq/>		
				<apply><diff/>
					<bvar><ci>time </ci></bvar>
					<ci> Ca_i </ci>
				</apply>
				<apply><plus/>
					<apply><divide/>
						<apply><plus/>
							<apply><times/>
								<cn cellml:units="dimensionless">-1</cn>
								<ci> I_Ltype_SM </ci>
							</apply>
							<apply><times/>
								<cn cellml:units="dimensionless">-1</cn>
								<ci> I_LVA_SM </ci>
							</apply>
						</apply>
						<apply><times/>
							<cn cellml:units="dimensionless">2.0</cn>
							<cn cellml:units="mole_to_millimole">0.001</cn>
							<ci> F </ci>
							<ci> Vol_SM </ci>
						</apply>
					</apply>
					<apply><times/>
						<cn cellml:units="dimensionless">-1</cn>
						<ci>J_CaSR_SM</ci>
					</apply>
				</apply>	
			</apply><!--closure of equation Ca_i-->	
		</math>
		

</component> <!-- closure of membrane component-->

<component name="I_stim" cmeta:id="ICC_stimulus">
	
        <variable name="time" public_interface="in" units="time_units"/>
	<variable cmeta:id="local_time" name="local_time" units="time_units"/>
        <variable name="period" units="time_units" initial_value="20000"/>
        <variable cmeta:id="stim_start" name="stim_start" units="time_units"/>
	<variable name="delta_VICC" initial_value="59" units="voltage_units"/>
	<variable name="Gcouple" public_interface="in" units="conductance_units"/>
	<variable name="t_ICCpeak" initial_value="98" units="time_units"/>
	<variable name="t_ICCplateau" initial_value="7582" units="time_units"/>
	<variable name="t_ICC_stimulus" initial_value="10000" units="time_units"/>
	<variable name="V_decay" initial_value="37.25" units="voltage_units"/>
        <variable cmeta:id="I_stim" name="I_stim" public_interface="out" units="current_units"/>
        <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
          <rdf:Description rdf:about="#ICC_stimulus">
            <cmeta:comment rdf:parseType="Resource">
              <rdf:value>
                Here we define a periodic stimulus based on a psuedo ICC action potential. This stimulus protocol is used to test the model under a realistic stimulus protocol, but ideally such a stimulus would originate directly from an ICC cellular electrophysiology model. This stimulus protocol simply applies the psuedo ICC stimulus a fixed number of times.
              </rdf:value>
            </cmeta:comment>
          </rdf:Description>
        </rdf:RDF>
	
        <!-- set the current stimulus start time -->
        <math xmlns="http://www.w3.org/1998/Math/MathML">
          <apply><eq/>
            <ci>stim_start</ci>
            <piecewise>
              <piece>
                <apply><times/>
                  <ci>period</ci>
                  <cn cellml:units="dimensionless">1.0</cn>
                </apply>
                <apply><and/>
                  <apply><gt/>
                    <ci>time</ci>
                    <apply><times/>
                      <ci>period</ci>
                      <cn cellml:units="dimensionless">1.0</cn>
                    </apply>
                  </apply>
                  <apply><leq/>
                    <ci>time</ci>
                    <apply><times/>
                      <ci>period</ci>
                      <cn cellml:units="dimensionless">2.0</cn>
                    </apply>
                  </apply>
                </apply>
              </piece>
              <piece>
                <apply><times/>
                  <ci>period</ci>
                  <cn cellml:units="dimensionless">2.0</cn>
                </apply>
                <apply><and/>
                  <apply><gt/>
                    <ci>time</ci>
                    <apply><times/>
                      <ci>period</ci>
                      <cn cellml:units="dimensionless">2.0</cn>
                    </apply>
                  </apply>
                  <apply><leq/>
                    <ci>time</ci>
                    <apply><times/>
                      <ci>period</ci>
                      <cn cellml:units="dimensionless">3.0</cn>
                    </apply>
                  </apply>
                </apply>
              </piece>
              <piece>
                <apply><times/>
                  <ci>period</ci>
                  <cn cellml:units="dimensionless">3.0</cn>
                </apply>
                <apply><and/>
                  <apply><gt/>
                    <ci>time</ci>
                    <apply><times/>
                      <ci>period</ci>
                      <cn cellml:units="dimensionless">3.0</cn>
                    </apply>
                  </apply>
                  <apply><leq/>
                    <ci>time</ci>
                    <apply><times/>
                      <ci>period</ci>
                      <cn cellml:units="dimensionless">4.0</cn>
                    </apply>
                  </apply>
                </apply>
              </piece>
              <piece>
                <apply><times/>
                  <ci>period</ci>
                  <cn cellml:units="dimensionless">4.0</cn>
                </apply>
                <apply><and/>
                  <apply><gt/>
                    <ci>time</ci>
                    <apply><times/>
                      <ci>period</ci>
                      <cn cellml:units="dimensionless">4.0</cn>
                    </apply>
                  </apply>
                  <apply><leq/>
                    <ci>time</ci>
                    <apply><times/>
                      <ci>period</ci>
                      <cn cellml:units="dimensionless">5.0</cn>
                    </apply>
                  </apply>
                </apply>
              </piece>
              <otherwise>
                <cn cellml:units="time_units">0.0</cn>
              </otherwise>
            </piecewise>
          </apply>
        </math>
        <!-- calculate the local time to use for the stimulus protocol calculation -->
        <math xmlns="http://www.w3.org/1998/Math/MathML">
          <apply><eq/>
            <ci>local_time</ci>
            <apply><minus/>
              <ci>time</ci>
              <apply><plus/>
                <ci>stim_start</ci>
                <ci>t_ICCpeak</ci>
              </apply>
            </apply>
          </apply>
        </math>
<!-- equation that calculates I_stim-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> I_stim </ci>
		<piecewise>
			<piece>
				<apply><times/>
					<ci> Gcouple </ci>
					<ci> delta_VICC </ci>
            			</apply>
				<apply><lt/>
					<ci>local_time</ci>
					<ci>t_ICCpeak</ci>
				</apply>
			</piece>
			<piece>
				<apply><times/>
					<ci> Gcouple </ci>
					<ci> delta_VICC </ci>
					<apply><divide/>
						<cn cellml:units="dimensionless"> 1.0 </cn>
						<apply><plus/>
							<cn cellml:units="dimensionless"> 1.0 </cn>
							<apply><exp/>
								<apply><divide/>
									<apply><minus/>
										<ci> local_time </ci>
										<cn cellml:units="time_units"> 8000 </cn>
									</apply>
									<cn cellml:units="time_units"> 1000 </cn>
								</apply>
							</apply>
						</apply>
					</apply>
				</apply>
				<apply><and/>
					<apply><geq/>
						<ci> local_time </ci>
						<ci> t_ICCpeak </ci>
					</apply>
					<apply><leq/>
						<ci> local_time </ci>
						<ci> t_ICCplateau </ci>
					</apply>
            			</apply>
			</piece>	
			<piece>
				<apply><times/>
					<ci> Gcouple </ci>
					<ci> V_decay </ci>
					<apply><divide/>
						<cn cellml:units="dimensionless"> 1.0 </cn>
						<apply><plus/>
							<cn cellml:units="dimensionless"> 1.0 </cn>
							<apply><exp/>
								<apply><divide/>
									<apply><minus/>
										<ci> local_time </ci>
										<cn cellml:units="time_units"> 8000 </cn>
									</apply>
									<cn cellml:units="time_units"> 150 </cn>
								</apply>
							</apply>
						</apply>
					</apply>
				</apply>
				<apply><and/>
					<apply><gt/>
						<ci> local_time </ci>
						<ci> t_ICCplateau  </ci>
					</apply>
					<apply><lt/>
						<ci> local_time </ci>
						<ci> t_ICC_stimulus</ci>
					</apply>
				</apply>
			</piece>
			<otherwise>
				<cn cellml:units="current_units"> 0.0 </cn>
			</otherwise>
		</piecewise>
              </apply>
	</math>
</component>
<component name="d_Ltype_SM">
	<variable name="Vm_SM" public_interface="in" units="voltage_units"/>
	<variable name="d_inf_Ltype_SM" units="dimensionless"/>
	<variable name="tau_d_Ltype_SM" units="time_units"/>
	<variable name="d_Ltype_SM" initial_value="0.0" public_interface="out" units="dimensionless"/>
	<variable name="time" public_interface="in" units="time_units"/>
	<variable name="T_correction_Ca" public_interface="in" units="dimensionless"/>
	
	<!-- equation that calculates d_inf_Ltype-->	
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> d_inf_Ltype_SM </ci>
			<apply><divide/>
				<cn cellml:units="dimensionless">1.0</cn>
				<apply><plus/>
					<cn cellml:units="dimensionless">1.0</cn>
					<apply><exp/>
						<apply><divide/>
							<apply><plus/>
								<ci> Vm_SM </ci>
								<cn cellml:units="voltage_units">17</cn>
							</apply>
							<cn cellml:units="voltage_units">-4.3</cn>
						</apply>
					</apply>
				</apply>
			</apply>		
		</apply><!-- closure of equation that calculates d_inf_Ltype-->	
	</math>
	
	<!-- equation that calculates tau_d_Ltype-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> tau_d_Ltype_SM </ci>
			<apply><times/>
				<ci>T_correction_Ca</ci>
				<cn cellml:units="time_units">0.47</cn>
			</apply>	
		</apply><!-- closure of equation that calculates tau_d_Ltype-->	
	</math>
	<!-- equation that calculates d_Ltype-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">	
		<apply><eq/>	
			<apply><diff/>
				<bvar><ci>time </ci></bvar>
				<ci> d_Ltype_SM </ci>
			</apply>
			<apply><divide/>	
				<apply><minus/>	
					<ci> d_inf_Ltype_SM </ci>
					<ci>d_Ltype_SM</ci>
				</apply>
				<ci> tau_d_Ltype_SM </ci>
			</apply>
		</apply><!-- closure of equation d(d_Ltype)/dt=(d_inf_Ltype-d_Ltype)/tau_d_Ltype-->	
	</math> 
</component> <!-- closure of d_Ltype-->

<component name="f_Ltype_SM">
	<variable name="Vm_SM" public_interface="in" units="voltage_units"/>
	<variable name="f_inf_Ltype_SM" units="dimensionless"/>
	<variable name="tau_f_Ltype_SM" units="time_units"/>
	<variable name="f_Ltype_SM" initial_value="0.95" public_interface="out" units="dimensionless"/>
	<variable name="time" public_interface="in" units="time_units"/>
	<variable name="T_correction_Ca" public_interface="in" units="dimensionless"/>
	
	<!-- equation that calculates f_inf_Ltype-->	
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> f_inf_Ltype_SM </ci>
			<apply><divide/>
				<cn cellml:units="dimensionless">1.0</cn>
				<apply><plus/>
					<cn cellml:units="dimensionless">1.0</cn>
					<apply><exp/>
						<apply><divide/>
							<apply><plus/>
								<ci> Vm_SM </ci>
								<cn cellml:units="voltage_units">43</cn>
							</apply>
							<cn cellml:units="voltage_units">8.9</cn>
						</apply>
					</apply>
				</apply>
			</apply>		
		</apply><!-- closure of equation that calculates f_inf_Ltype-->	
	</math>
	
	<!-- equation that calculates tau_f_Ltype-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> tau_f_Ltype_SM </ci>
			<apply><times/>
				<ci>T_correction_Ca</ci>
				<cn cellml:units="time_units">86</cn>	
			</apply><!-- closure of equation that calculates tau_f_Ltype-->	
		</apply>
	</math>
	<!-- equation that calculates f_Ltype-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">	
		<apply><eq/>	
			<apply><diff/>
				<bvar><ci>time </ci></bvar>
				<ci> f_Ltype_SM </ci>
			</apply>
			<apply><divide/>	
				<apply><minus/>	
					<ci> f_inf_Ltype_SM </ci>
					<ci>f_Ltype_SM</ci>
				</apply>
				<ci> tau_f_Ltype_SM </ci>
			</apply>
		</apply><!-- closure of equation d(f_Ltype)/dt=(f_inf_Ltype-f_Ltype)/tau_f_Ltype-->	
	</math> 
</component> <!-- closure of f_Ltype-->

<component name="f_ca_Ltype_SM">
	<variable name="Ca_i" public_interface="in" units="millimolar"/>
	<variable name="f_ca_inf_Ltype_SM" units="dimensionless"/>
	<variable name="tau_f_ca_Ltype_SM" units="time_units"/>
	<variable name="f_ca_Ltype_SM" initial_value="1.0" public_interface="out" units="dimensionless"/>
	<variable name="time" public_interface="in" units="time_units"/>
	<variable name="T_correction_Ca" public_interface="in" units="dimensionless"/>
	
	<!-- equation that calculates f_inf_ca Ltype-->	
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> f_ca_inf_Ltype_SM </ci>
			<apply><minus/>
				<cn cellml:units="dimensionless">1.0</cn>
				<apply><divide/>
					<cn cellml:units="dimensionless">1.0</cn>
					<apply><plus/>
						<cn cellml:units="dimensionless">1.0</cn>
						<apply><exp/>
							<apply><divide/>
								<apply><minus/>
									<apply><minus/>
										<ci> Ca_i </ci>
										<cn cellml:units="millimolar">0.00008999</cn>
									</apply>
									<cn cellml:units="millimolar">0.000214</cn>
								</apply>
								<cn cellml:units="millimolar">-0.0000131</cn>
							</apply>
						</apply>
					</apply>
				</apply>
			</apply>		
		</apply><!-- closure of equation that calculates f_ca_inf_Ltype-->	
	</math>
	
	<!-- equation that calculates tau_f_ca_Ltype-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> tau_f_ca_Ltype_SM </ci>
			<apply><times/>
				<ci>T_correction_Ca</ci>
				<cn cellml:units="time_units">2</cn>	
			</apply><!-- closure of equation that calculates tau_f_ca_Ltype-->	
		</apply>
	</math>
	<!-- equation that calculates f_ca_Ltype-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">	
		<apply><eq/>	
			<apply><diff/>
				<bvar><ci>time </ci></bvar>
				<ci> f_ca_Ltype_SM </ci>
			</apply>
			<apply><divide/>	
				<apply><minus/>	
					<ci> f_ca_inf_Ltype_SM </ci>
					<ci>f_ca_Ltype_SM</ci>
				</apply>
				<ci> tau_f_ca_Ltype_SM </ci>
			</apply>
		</apply><!-- closure of equation d(f_ca_Ltype)/dt=(f_ca_inf_Ltype-f_ca_Ltype)/tau_f_ca_Ltype-->	
	</math> 
</component> <!-- closure of f_Ltype-->
<component name="I_Ltype_SM">
	
	<variable name="I_Ltype_SM" public_interface="out" units="current_units"/>
	<variable name="E_Ca" units="voltage_units"/>
	<variable name="G_max_Ltype" initial_value="65" units="conductance_units"/>
	<variable name="Vm_SM" public_interface="in" private_interface="out" units="voltage_units"/>
	<variable name="f_Ltype_SM" private_interface="in" units="dimensionless"/>
	<variable name="d_Ltype_SM" private_interface="in" units="dimensionless"/>
	<variable name="f_ca_Ltype_SM" private_interface="in" units="dimensionless"/>
	<variable name="RToF" public_interface="in" units="voltage_units"/>
	<variable name="Ca_o" public_interface="in" units="millimolar"/>
	<variable name="Ca_i" public_interface="in" private_interface="out" units="millimolar"/>
	<variable name="T_correction_Ca" private_interface="out" public_interface="in" units="dimensionless"/>
	<variable name="time" private_interface="out" public_interface="in" units="time_units"/>
	
	<!-- EQUATION OF E_Ca-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">	
		<apply><eq/>		
			<ci>E_Ca </ci>
			<apply><times/>
				<cn cellml:units="dimensionless">0.5</cn>
				<ci> RToF </ci>
				<apply><ln/>
					<apply><divide/>
						<ci> Ca_o </ci>
						<ci> Ca_i </ci>
					</apply>
				</apply>
			</apply>		
		</apply>	
	</math> <!-- closure ofEquation E_Ca -->
	<!-- EQUATION OF I_Ltype-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">   	
		<apply><eq/>		
			<ci>I_Ltype_SM </ci>
			<apply><times/>     			
				<ci> G_max_Ltype </ci>
				<apply><times/>
					<ci> f_Ltype_SM </ci>
					<ci> d_Ltype_SM </ci>
					<ci> f_ca_Ltype_SM </ci>
				</apply>
				<apply><minus/>
					<ci> Vm_SM </ci>
					<ci> E_Ca </ci>
				</apply>
			</apply>		
		</apply>	
	</math> <!-- closure ofEquation I_Ltype -->
</component> <!-- closure of I_Ltype-->

<component name="J_CaSR_SM">
	
	<variable name="J_CaSR_SM" public_interface="out" units="millimolar_per_millisecond"/>
	<variable name="J_max_CaSR" initial_value="0.31705" units="millimolar_per_millisecond"/>
	<variable name="Ca_i" public_interface="in" units="millimolar"/>
	
	<!-- EQUATION OF J_CaSR-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">   	
		<apply><eq/>		
			<ci>J_CaSR_SM</ci>
			<apply><times/>
				<ci> J_max_CaSR </ci>
				<apply><power/>
					<apply><times/>
						<ci>Ca_i</ci>
						<cn cellml:units="per_millimolar">1.0</cn>
					</apply>
					<cn cellml:units="dimensionless">1.34</cn>
				</apply>
			</apply>		
		</apply>	
	</math> <!-- closure ofEquation J_CaSR -->
</component> <!-- closure of J_CaSR-->

<component name="d_LVA_SM">
	<variable name="Vm_SM" public_interface="in" units="voltage_units"/>
	<variable name="d_inf_LVA_SM" units="dimensionless"/>
	<variable name="tau_d_LVA_SM" units="time_units"/>
	<variable name="d_LVA_SM" initial_value="0.02" public_interface="out" units="dimensionless"/>
	<variable name="time" public_interface="in" units="time_units"/>
	<variable name="T_correction_Ca" public_interface="in" units="dimensionless"/>
	
	<!-- equation that calculates d_inf_LVA-->	
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> d_inf_LVA_SM </ci>
			<apply><divide/>
				<cn cellml:units="dimensionless">1.0</cn>
				<apply><plus/>
					<cn cellml:units="dimensionless">1.0</cn>
					<apply><exp/>
						<apply><divide/>
							<apply><plus/>
								<ci> Vm_SM </ci>
								<cn cellml:units="voltage_units">27.5</cn>
							</apply>
							<cn cellml:units="voltage_units">-10.9</cn>
						</apply>
					</apply>
				</apply>
			</apply>		
		</apply><!-- closure of equation that calculates d_inf_LVA-->	
	</math>
	
	<!-- equation that calculates tau_d_LVA-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> tau_d_LVA_SM </ci>
			<apply><times/>
				<ci>T_correction_Ca</ci>
				<cn cellml:units="time_units">3.0</cn>
			</apply>	
		</apply><!-- closure of equation that calculates tau_d_LVA-->	
	</math>
	<!-- equation that calculates d_LVA-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">	
		<apply><eq/>	
			<apply><diff/>
				<bvar><ci>time </ci></bvar>
				<ci> d_LVA_SM </ci>
			</apply>
			<apply><divide/>	
				<apply><minus/>	
					<ci> d_inf_LVA_SM </ci>
					<ci>d_LVA_SM</ci>
				</apply>
				<ci> tau_d_LVA_SM </ci>
			</apply>
		</apply><!-- closure of equation d(d_LVA)/dt=(d_inf_LVA-d_LVA)/tau_d_LVA-->	
	</math> 
</component> <!-- closure of d_LVA-->

<component name="f_LVA_SM">
	<variable name="Vm_SM" public_interface="in" units="voltage_units"/>
	<variable name="f_inf_LVA_SM" units="dimensionless"/>
	<variable name="tau_f_LVA_SM" units="time_units"/>
	<variable name="f_LVA_SM" initial_value="0.99" public_interface="out" units="dimensionless"/>
	<variable name="time" public_interface="in" units="time_units"/>
	<variable name="T_correction_Ca" public_interface="in" units="dimensionless"/>
	
	<!-- equation that calculates f_inf_LVA-->	
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> f_inf_LVA_SM </ci>
			<apply><divide/>
				<cn cellml:units="dimensionless">1.0</cn>
				<apply><plus/>
					<cn cellml:units="dimensionless">1.0</cn>
					<apply><exp/>
						<apply><divide/>
							<apply><plus/>
								<ci> Vm_SM </ci>
								<cn cellml:units="voltage_units">15.8</cn>
							</apply>
							<cn cellml:units="voltage_units">7</cn>
						</apply>
					</apply>
				</apply>
			</apply>		
		</apply><!-- closure of equation that calculates f_inf_LVA-->	
	</math>
	
	<!-- equation that calculates tau_f_LVA-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> tau_f_LVA_SM </ci>
			<apply><times/>
				<ci>T_correction_Ca</ci>
				<apply><times/>
					<cn cellml:units="time_units">7.58</cn>	
					<apply><exp/>
						<apply><times/>
							<ci>Vm_SM</ci>
							<cn cellml:units="Inverse_Voltage_units">0.00817</cn>
						</apply>
					</apply>
				</apply>
			</apply><!-- closure of equation that calculates tau_f_LVA-->	
		</apply>
	</math>
	<!-- equation that calculates f_LVA-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">	
		<apply><eq/>	
			<apply><diff/>
				<bvar><ci>time </ci></bvar>
				<ci> f_LVA_SM </ci>
			</apply>
			<apply><divide/>	
				<apply><minus/>	
					<ci> f_inf_LVA_SM </ci>
					<ci>f_LVA_SM</ci>
				</apply>
				<ci> tau_f_LVA_SM </ci>
			</apply>
		</apply><!-- closure of equation d(f_LVA)/dt=(f_inf_LVA-f_LVA)/tau_f_LVA-->	
	</math> 
</component> <!-- closure of f_LVA-->

<component name="I_LVA_SM">
	
	<variable name="I_LVA_SM" public_interface="out" units="current_units"/>
	<variable name="E_Ca" units="voltage_units"/>
	<variable name="G_max_LVA" initial_value="0.18" units="conductance_units"/>
	<variable name="Vm_SM" public_interface="in" private_interface="out" units="voltage_units"/>
	<variable name="f_LVA_SM" private_interface="in" units="dimensionless"/>
	<variable name="d_LVA_SM" private_interface="in" units="dimensionless"/>
	<variable name="RToF" public_interface="in" units="voltage_units"/>
	<variable name="Ca_o" public_interface="in" units="millimolar"/>
	<variable name="Ca_i" public_interface="in" units="millimolar"/>
	<variable name="T_correction_Ca" private_interface="out" public_interface="in" units="dimensionless"/>
	<variable name="time" private_interface="out" public_interface="in" units="time_units"/>
	
	<!-- EQUATION OF E_Ca-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">	
		<apply><eq/>		
			<ci>E_Ca </ci>
			<apply><times/>
				<cn cellml:units="dimensionless">0.5</cn>
				<ci> RToF </ci>
				<apply><ln/>
					<apply><divide/>
						<ci> Ca_o </ci>
						<ci> Ca_i </ci>
					</apply>
				</apply>
			</apply>		
		</apply>	
	</math> <!-- closure ofEquation E_Ca -->
	<!-- EQUATION OF I_LVA-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">   	
		<apply><eq/>		
			<ci>I_LVA_SM </ci>
			<apply><times/>     			
				<ci> G_max_LVA </ci>
				<apply><times/>
					<ci> f_LVA_SM </ci>
					<ci> d_LVA_SM </ci>
				</apply>
				<apply><minus/>
					<ci> Vm_SM </ci>
					<ci> E_Ca </ci>
				</apply>
			</apply>		
		</apply>	
	</math> <!-- closure ofEquation I_LVA -->
</component> <!-- closure of I_LVA-->



<component name="d_BK_SM">
	<variable name="Vm_SM" public_interface="in" units="voltage_units"/>
	<variable name="Ca_i" public_interface="in" units="millimolar"/>
	<variable name="d_BK_SM" public_interface="out" units="dimensionless"/>
	<variable name="time" public_interface="in" units="time_units"/>
	
	<!-- equation that calculates d_BK-->	
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> d_BK_SM </ci>
			<apply><divide/>
				<cn cellml:units="dimensionless">1.0</cn>
				<apply><plus/>
					<cn cellml:units="dimensionless">1.0</cn>
					<apply><exp/>
						<apply><minus/>
							<apply><divide/>
								<ci> Vm_SM </ci>
								<cn cellml:units="voltage_units">-17</cn>
							</apply>
							<apply><times/>
								<cn cellml:units="dimensionless">2.0</cn>
								<apply><ln/>
									<apply><divide/>
										<ci> Ca_i </ci>
										<cn cellml:units="millimolar">0.001</cn>
									</apply>
								</apply>
							</apply>
						</apply>
					</apply>
				</apply>
			</apply>
		</apply><!-- closure of equation that calculates d_inf_BK-->	
	</math>
</component> <!-- closure of d_BK-->

<component name="I_BK_SM">
	
	<variable name="I_BK_SM" public_interface="out" units="current_units"/>
	<variable name="Ca_i" private_interface="out" public_interface="in" units="millimolar"/>
	<variable name="E_K" units="voltage_units"/>
	<variable name="G_max_BK" initial_value="45.7" units="conductance_units"/>
	<variable name="Vm_SM" public_interface="in" private_interface="out" units="voltage_units"/>
	<variable name="d_BK_SM" private_interface="in" units="dimensionless"/>
	<variable name="RToF" public_interface="in" units="voltage_units"/>
	<variable name="K_o" public_interface="in" units="millimolar"/>
	<variable name="K_i" public_interface="in" units="millimolar"/>
	<variable name="T_correction_BK" public_interface="in" units="conductance_units"/>
	<variable name="time" private_interface="out" public_interface="in" units="time_units"/>
	<!-- EQUATION OF E_K-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">	
		<apply><eq/>		
			<ci>E_K </ci>
			<apply><times/>     			
				<ci> RToF </ci>
				<apply><ln/>
					<apply><divide/>
						<ci> K_o </ci>
						<ci> K_i </ci>
					</apply>
				</apply>
			</apply>		
		</apply>	
	</math> <!-- closure ofEquation E_K -->
	<!-- EQUATION OF I_BK-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">   	
		<apply><eq/>		
			<ci>I_BK_SM </ci>
			<apply><times/>
				<apply><plus/>
					<ci> G_max_BK </ci>
					<ci> T_correction_BK </ci>
				</apply>
				<ci> d_BK_SM </ci>
				<apply><minus/>
					<ci> Vm_SM </ci>
					<ci> E_K </ci>
				</apply>
			</apply>		
		</apply>	
	</math> <!-- closure ofEquation I_BK -->
</component> <!-- closure of I_BK-->

<component name="I_bk_SM">
	
	<variable name="I_bk_SM" public_interface="out" units="current_units"/>
	<variable name="E_K" units="voltage_units"/>
	<variable name="G_max_bk" initial_value="0.0144" units="conductance_units"/>
	<variable name="Vm_SM" public_interface="in" units="voltage_units"/>
	<variable name="RToF" public_interface="in" units="voltage_units"/>
	<variable name="K_o" public_interface="in" units="millimolar"/>
	<variable name="K_i" public_interface="in" units="millimolar"/>
	<!-- EQUATION OF E_K-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">	
		<apply><eq/>		
			<ci>E_K </ci>
			<apply><times/>     			
				<ci> RToF </ci>
				<apply><ln/>
					<apply><divide/>
						<ci> K_o </ci>
						<ci> K_i </ci>
					</apply>
				</apply>
			</apply>		
		</apply>	
	</math> <!-- closure ofEquation E_K -->
	<!-- EQUATION OF I_bk-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">   	
		<apply><eq/>		
			<ci>I_bk_SM </ci>
			<apply><times/>
				<ci> G_max_bk </ci>
				<apply><minus/>
					<ci> Vm_SM </ci>
					<ci> E_K </ci>
				</apply>
			</apply>		
		</apply>	
	</math> <!-- closure ofEquation I_bk -->
</component> <!-- closure of I_bk-->



<component name="xr1_SM">
	<variable name="Vm_SM" public_interface="in" units="voltage_units"/>
	<variable name="xr1_inf_SM" units="dimensionless"/>
	<variable name="tau_xr1_SM" units="time_units"/>
	<variable name="xr1_SM" initial_value="0.0" public_interface="out" units="dimensionless"/>
	<variable name="time" public_interface="in" units="time_units"/>
	<variable name="T_correction_K" public_interface="in" units="dimensionless"/>
	
	<!-- equation that calculates xr1-->	
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> xr1_inf_SM </ci>
			<apply><divide/>
				<cn cellml:units="dimensionless">1.0</cn>
				<apply><plus/>
					<cn cellml:units="dimensionless">1.0</cn>
					<apply><exp/>
						<apply><divide/>
							<apply><plus/>
								<ci> Vm_SM </ci>
								<cn cellml:units="voltage_units">27</cn>
							</apply>
							<cn cellml:units="voltage_units">-5.0</cn>
						</apply>
					</apply>
				</apply>
			</apply>		
		</apply><!-- closure of equation that calculates xr1-->	
	</math>
	
	<!-- equation that calculates tau_xr1-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> tau_xr1_SM </ci>
			<apply><times/>
				<ci>T_correction_K</ci>
				<cn cellml:units="time_units">80</cn>
			</apply>	
		</apply><!-- closure of equation that calculates xr1-->	
	</math>
	<!-- equation that calculates xr1-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">	
		<apply><eq/>	
			<apply><diff/>
				<bvar><ci>time </ci></bvar>
				<ci> xr1_SM </ci>
			</apply>
			<apply><divide/>	
				<apply><minus/>	
					<ci> xr1_inf_SM</ci>
					<ci>xr1_SM</ci>
				</apply>
				<ci> tau_xr1_SM</ci>
			</apply>
		</apply><!-- closure of equation d(xr1)/dt=(xr1_inf-xr1)/tau_xr1-->	
	</math> 
</component> <!-- closure of xr1-->

<component name="xr2_SM">
	<variable name="Vm_SM" public_interface="in" units="voltage_units"/>
	<variable name="xr2_inf_SM" units="dimensionless"/>
	<variable name="tau_xr2_SM" units="time_units"/>
	<variable name="xr2_SM" initial_value="0.82" public_interface="out" units="dimensionless"/>
	<variable name="time" public_interface="in" units="time_units"/>
	<variable name="T_correction_K" public_interface="in" units="dimensionless"/>
	
	<!-- equation that calculates xr2_inf-->	
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> xr2_inf_SM </ci>
			<apply><plus/>
				<cn cellml:units="dimensionless">0.2</cn>
				<apply><divide/>
					<cn cellml:units="dimensionless">0.8</cn>
					<apply><plus/>
						<cn cellml:units="dimensionless">1.0</cn>
						<apply><exp/>
							<apply><divide/>
								<apply><plus/>
									<ci> Vm_SM </ci>
									<cn cellml:units="voltage_units">58</cn>
								</apply>
								<cn cellml:units="voltage_units">10</cn>
							</apply>
						</apply>
					</apply>
				</apply>	
			</apply>
		</apply><!-- closure of equation that calculates xr2_inf-->	
	</math>
	
	<!-- equation that calculates tau_xr2-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> tau_xr2_SM </ci>
			<apply><times/>
				<ci>T_correction_K</ci>
				<apply><plus/>
					<cn cellml:units="time_units">-707</cn>
					<apply><times/>
						<cn cellml:units="time_units">1481</cn>
						<apply><exp/>
							<apply><divide/>
								<apply><plus/>
									<ci> Vm_SM </ci>
									<cn cellml:units="voltage_units">36</cn>
								</apply>
								<cn cellml:units="voltage_units">95</cn>
							</apply>
						</apply>
					</apply>
				</apply>
			</apply>	
		</apply><!-- closure of equation that calculates tau_xr2-->	
	</math>
	<!-- equation that calculates d_kr-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">	
		<apply><eq/>	
			<apply><diff/>
				<bvar><ci>time </ci></bvar>
				<ci> xr2_SM </ci>
			</apply>
			<apply><divide/>	
				<apply><minus/>	
					<ci> xr2_inf_SM</ci>
					<ci>xr2_SM</ci>
				</apply>
				<ci> tau_xr2_SM</ci>
			</apply>
		</apply><!-- closure of equation d(xr2)/dt=(xr2_inf-xr2)/tau_xr2-->	
	</math> 
</component> <!-- closure of xr2-->

<component name="I_kr_SM">
	
	<variable name="I_kr_SM" public_interface="out" units="current_units"/>
	<variable name="E_K" units="voltage_units"/>
	<variable name="G_max_kr_SM" initial_value="35" units="conductance_units"/>
	<variable name="Vm_SM" public_interface="in" private_interface="out" units="voltage_units"/>
	<variable name="xr1_SM" private_interface="in" units="dimensionless"/>
	<variable name="xr2_SM" private_interface="in" units="dimensionless"/>
	<variable name="RToF" public_interface="in" units="voltage_units"/>
	<variable name="K_o" public_interface="in" units="millimolar"/>
	<variable name="K_i" public_interface="in" units="millimolar"/>
	<variable name="T_correction_K" private_interface="out" public_interface="in" units="dimensionless"/>
	<variable name="time" private_interface="out" public_interface="in" units="time_units"/>
	
	<!-- EQUATION OF E_K-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">	
		<apply><eq/>		
			<ci>E_K </ci>
			<apply><times/>     			
				<ci> RToF </ci>
				<apply><ln/>
					<apply><divide/>
						<ci> K_o </ci>
						<ci> K_i </ci>
					</apply>
				</apply>
			</apply>		
		</apply>	
	</math> <!-- closure ofEquation E_K -->
	<!-- EQUATION OF I_kr-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">   	
		<apply><eq/>		
			<ci>I_kr_SM </ci>
			<apply><times/>     			
				<ci> G_max_kr_SM </ci>
				<apply><times/>
					<ci> xr1_SM </ci>
					<ci> xr2_SM </ci>
				</apply>
				<apply><minus/>
					<ci> Vm_SM </ci>
					<ci> E_K </ci>
				</apply>
			</apply>		
		</apply>	
	</math> <!-- closure ofEquation I_kr -->
</component> <!-- closure of I_kr-->

<component name="m_Na_SM">
	<variable name="Vm_SM" public_interface="in" units="voltage_units"/>
	<variable name="m_inf_Na" units="dimensionless"/>
	<variable name="tau_m_Na" units="time_units"/>
	<variable name="m_Na_SM" initial_value="0.005" public_interface="out" units="dimensionless"/>
	<variable name="time" public_interface="in" units="time_units"/>
	<variable name="T_correction_Na" public_interface="in" units="dimensionless"/>
	
	<!-- equation that calculates m_Na-->	
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> m_inf_Na </ci>
			<apply><divide/>
				<cn cellml:units="dimensionless">1.0</cn>
				<apply><plus/>
					<cn cellml:units="dimensionless">1.0</cn>
					<apply><exp/>
						<apply><divide/>
							<apply><plus/>
								<ci> Vm_SM </ci>
								<cn cellml:units="voltage_units">47</cn>
							</apply>
							<cn cellml:units="voltage_units">-4.8</cn>
						</apply>
					</apply>
				</apply>
			</apply>		
		</apply><!-- closure of equation that calculates m_inf_Na-->	
	</math>
	
	<!-- equation that calculates tau_m_Na-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> tau_m_Na </ci>
			<apply><times/>
				<ci>T_correction_Na</ci>
				<apply><plus/>
					<apply><times/>
						<ci>Vm_SM</ci>
						<cn cellml:units="Inverse_Voltage_units">-0.017</cn>
						<cn cellml:units="time_units">1</cn>
					</apply>
					<cn cellml:units="time_units">0.440</cn>
				</apply>
			</apply>	
		</apply><!-- closure of equation that calculates tau_m_Na-->	
	</math>
	<!-- equation that calculates m_Na-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">	
		<apply><eq/>	
			<apply><diff/>
				<bvar><ci>time </ci></bvar>
				<ci> m_Na_SM </ci>
			</apply>
			<apply><divide/>	
				<apply><minus/>	
					<ci> m_inf_Na </ci>
					<ci>m_Na_SM</ci>
				</apply>
				<ci> tau_m_Na </ci>
			</apply>
		</apply><!-- closure of equation d(m_Na)/dt=(m_inf_Na-m_Na)/tau_m_Na-->	
	</math> 
</component> <!-- closure of m_Na-->

<component name="h_Na_SM">
	<variable name="Vm_SM" public_interface="in" units="voltage_units"/>
	<variable name="h_inf_Na" units="dimensionless"/>
	<variable name="tau_h_Na" units="time_units"/>
	<variable name="h_Na_SM" initial_value="0.05787" public_interface="out" units="dimensionless"/>
	<variable name="time" public_interface="in" units="time_units"/>
	<variable name="T_correction_Na" public_interface="in" units="dimensionless"/>
	
	<!-- equation that calculates f_inf_Na-->	
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> h_inf_Na </ci>
			<apply><divide/>
				<cn cellml:units="dimensionless">1.0</cn>
				<apply><plus/>
					<cn cellml:units="dimensionless">1.0</cn>
					<apply><exp/>
						<apply><divide/>
							<apply><plus/>
								<ci> Vm_SM </ci>
								<cn cellml:units="voltage_units">78</cn>
							</apply>
							<cn cellml:units="voltage_units">3</cn>
						</apply>
					</apply>
				</apply>
			</apply>		
		</apply><!-- closure of equation that calculates h_inf_Na-->	
	</math>
	
	<!-- equation that calculates tau_h_Na-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> tau_h_Na </ci>
			<apply><times/>
				<ci>T_correction_Na</ci>
				<apply><plus/>
					<apply><times/>
						<ci>Vm_SM</ci>
						<cn cellml:units="Inverse_Voltage_units">-0.25</cn>
						<cn cellml:units="time_units">1</cn>
					</apply>
					<cn cellml:units="time_units">5.50</cn>
				</apply>
			</apply>	
		</apply><!-- closure of equation that calculates tau_h_Na-->	
	</math>
	<!-- equation that calculates f_Na-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">	
		<apply><eq/>	
			<apply><diff/>
				<bvar><ci>time </ci></bvar>
				<ci> h_Na_SM </ci>
			</apply>
			<apply><divide/>	
				<apply><minus/>	
					<ci> h_inf_Na </ci>
					<ci>h_Na_SM</ci>
				</apply>
				<ci> tau_h_Na </ci>
			</apply>
		</apply><!-- closure of equation d(h_Na)/dt=(h_inf_Na-f_Na)/tau_h_Na-->	
	</math> 
</component> <!-- closure of hq_Na-->

<component name="I_Na_SM">
	
	<variable name="I_Na_SM" public_interface="out" units="current_units"/>
	<variable name="E_Na" units="voltage_units"/>
	<variable name="G_max_Na_SM" initial_value="3" units="conductance_units"/>
	<variable name="Vm_SM" public_interface="in" private_interface="out" units="voltage_units"/>
	<variable name="h_Na_SM" private_interface="in" units="dimensionless"/>
	<variable name="m_Na_SM" private_interface="in" units="dimensionless"/>
	<variable name="RToF" public_interface="in" units="voltage_units"/>
	<variable name="Na_o" public_interface="in" units="millimolar"/>
	<variable name="Na_i" public_interface="in" units="millimolar"/>
	<variable name="T_correction_Na" private_interface="out" public_interface="in" units="dimensionless"/>
	<variable name="time" private_interface="out" public_interface="in" units="time_units"/>
	
	<!-- EQUATION OF E_Na-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">   	
		<apply><eq/>		
			<ci>E_Na </ci>
			<apply><times/>     			
				<ci> RToF </ci>
				<apply><ln/>
					<apply><divide/>
						<ci> Na_o </ci>
						<ci> Na_i </ci>
					</apply>
				</apply>
			</apply>		
		</apply>	
	</math> <!-- closure ofEquation E_Na -->
	<!-- EQUATION OF I_Na-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">   	
		<apply><eq/>		
			<ci>I_Na_SM </ci>
			<apply><times/>     			
				<ci> G_max_Na_SM </ci>
				<apply><times/>
					<ci> h_Na_SM </ci>
					<ci> m_Na_SM </ci>
				</apply>
				<apply><minus/>
					<ci> Vm_SM </ci>
					<ci> E_Na </ci>
				</apply>
			</apply>		
		</apply>	
	</math> <!-- closure ofEquation I_Na -->
</component> <!-- closure of I_Na-->

<component name="xa1_SM">
	<variable name="Vm_SM" public_interface="in" units="voltage_units"/>
	<variable name="xa1_inf_SM" units="dimensionless"/>
	<variable name="tau_xa1_SM" units="time_units"/>
	<variable name="xa1_SM" initial_value="0.00414" public_interface="out" units="dimensionless"/>
	<variable name="time" public_interface="in" units="time_units"/>
	<variable name="T_correction_K" public_interface="in" units="dimensionless"/>
	
	<!-- equation that calculates xa1_inf-->	
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> xa1_inf_SM </ci>
			<apply><divide/>
				<cn cellml:units="dimensionless">1.0</cn>
				<apply><plus/>
					<cn cellml:units="dimensionless">1.0</cn>
					<apply><exp/>
						<apply><divide/>
							<apply><plus/>
								<ci> Vm_SM </ci>
								<cn cellml:units="voltage_units">26.5</cn>
							</apply>
							<cn cellml:units="voltage_units">-7.9</cn>
						</apply>
					</apply>
				</apply>
			</apply>		
		</apply><!-- closure of equation that calculates xa1_inf-->	
	</math>
	
	<!-- equation that calculates tau_xa1-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> tau_xa1_SM </ci>
			<apply><times/>
				<ci>T_correction_K</ci>
				<apply><plus/>
					<cn cellml:units="time_units">31.8</cn>
					<apply><times/>
						<cn cellml:units="time_units">175</cn>	
						<apply><exp/>
							<apply><times/>
								<cn cellml:units="dimensionless">-0.5</cn>
								<apply><power/>
									<apply><divide/>
										<apply><plus/>
											<ci>Vm_SM</ci>
											<cn cellml:units="voltage_units">44.4</cn>
										</apply>
										<cn cellml:units="voltage_units">22.3</cn>
									</apply>
									<cn cellml:units="dimensionless">2</cn>
								</apply>
							</apply>
						</apply>
					</apply>
				</apply>
			</apply>	
		</apply><!-- closure of equation that calculates tau_xa1-->	
	</math>
	<!-- equation that calculates xa1-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">	
		<apply><eq/>	
			<apply><diff/>
				<bvar><ci>time </ci></bvar>
				<ci> xa1_SM </ci>
			</apply>
			<apply><divide/>	
				<apply><minus/>	
					<ci> xa1_inf_SM</ci>
					<ci>xa1_SM</ci>
				</apply>
				<ci> tau_xa1_SM</ci>
			</apply>
		</apply><!-- closure of equation d(xa1)/dt=(xa1_inf-xa1)/tau_xa1-->	
	</math> 
</component> <!-- closure of xa1-->

<component name="xa2_SM">
	<variable name="Vm_SM" public_interface="in" units="voltage_units"/>
	<variable name="xa2_inf_SM" units="dimensionless"/>
	<variable name="tau_xa2_SM" units="time_units"/>
	<variable name="xa2_SM" initial_value="0.72" public_interface="out" units="dimensionless"/>
	<variable name="time" public_interface="in" units="time_units"/>
	<variable name="T_correction_K" public_interface="in" units="dimensionless"/>
	
	<!-- equation that calculates xa2_inf-->	
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> xa2_inf_SM </ci>
			<apply><plus/>
				<cn cellml:units="dimensionless">0.1</cn>
				<apply><divide/>
					<cn cellml:units="dimensionless">0.9</cn>
					<apply><plus/>
						<cn cellml:units="dimensionless">1.0</cn>
						<apply><exp/>
							<apply><divide/>
								<apply><plus/>
									<ci> Vm_SM </ci>
									<cn cellml:units="voltage_units">65</cn>
								</apply>
								<cn cellml:units="voltage_units">6.2</cn>
							</apply>
						</apply>
					</apply>
				</apply>	
			</apply>
		</apply><!-- closure of equation that calculates xa2_inf-->	
	</math>
	
	<!-- equation that calculates tau_xa2-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> tau_xa2_SM </ci>
			<apply><times/>
				<ci>T_correction_K</ci>
				<cn cellml:units="time_units">90</cn>
			</apply>	
		</apply><!-- closure of equation that calculates tau_xa2-->	
	</math>
	<!-- equation that calculates d_ka-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">	
		<apply><eq/>	
			<apply><diff/>
				<bvar><ci>time </ci></bvar>
				<ci> xa2_SM </ci>
			</apply>
			<apply><divide/>	
				<apply><minus/>	
					<ci> xa2_inf_SM</ci>
					<ci>xa2_SM</ci>
				</apply>
				<ci> tau_xa2_SM</ci>
			</apply>
		</apply><!-- closure of equation d(xa2)/dt=(xa2_inf-d_ka)/tau_xa2-->	
	</math> 
</component> <!-- closure of xa2-->

<component name="I_ka_SM">
	
	<variable name="I_ka_SM" public_interface="out" units="current_units"/>
	<variable name="E_K" units="voltage_units"/>
	<variable name="G_max_ka_SM" initial_value="9" units="conductance_units"/>
	<variable name="Vm_SM" public_interface="in" private_interface="out" units="voltage_units"/>
	<variable name="xa1_SM" private_interface="in" units="dimensionless"/>
	<variable name="xa2_SM" private_interface="in" units="dimensionless"/>
	<variable name="RToF" public_interface="in" units="voltage_units"/>
	<variable name="K_o" public_interface="in" units="millimolar"/>
	<variable name="K_i" public_interface="in" units="millimolar"/>
	<variable name="T_correction_K" private_interface="out" public_interface="in" units="dimensionless"/>
	<variable name="time" private_interface="out" public_interface="in" units="time_units"/>
	
	<!-- EQUATION OF E_K-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">	
		<apply><eq/>		
			<ci>E_K </ci>
			<apply><times/>     			
				<ci> RToF </ci>
				<apply><ln/>
					<apply><divide/>
						<ci> K_o </ci>
						<ci> K_i </ci>
					</apply>
				</apply>
			</apply>		
		</apply>	
	</math> <!-- closure ofEquation E_K -->
	<!-- EQUATION OF I_ka-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">   	
		<apply><eq/>		
			<ci>I_ka_SM </ci>
			<apply><times/>     			
				<ci> G_max_ka_SM </ci>
				<apply><times/>
					<ci> xa1_SM </ci>
					<ci> xa2_SM </ci>
				</apply>
				<apply><minus/>
					<ci> Vm_SM </ci>
					<ci> E_K </ci>
				</apply>
			</apply>		
		</apply>	
	</math> <!-- closure ofEquation I_ka -->
</component> <!-- closure of I_ka-->


<component name="m_NSCC_SM">
	<variable name="Vm_SM" public_interface="in" units="voltage_units"/>
	<variable name="m_inf_NSCC_SM" units="dimensionless"/>
	<variable name="tau_m_NSCC_SM" units="time_units"/>
	<variable name="m_NSCC_SM" initial_value="0.0" public_interface="out" units="dimensionless"/>
	<variable name="time" public_interface="in" units="time_units"/>
	
	<!-- equation that calculates m_inf_NSCC-->	
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> m_inf_NSCC_SM </ci>
			<apply><divide/>
				<cn cellml:units="dimensionless">1.0</cn>
				<apply><plus/>
					<cn cellml:units="dimensionless">1.0</cn>
					<apply><exp/>
						<apply><divide/>
							<apply><plus/>
								<ci> Vm_SM </ci>
								<cn cellml:units="voltage_units">25.0</cn>
							</apply>
							<cn cellml:units="voltage_units">-20</cn>
						</apply>
					</apply>
				</apply>
			</apply>
		</apply><!-- closure of equation that calculates m_inf_NSCC-->	
	</math>
	
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> tau_m_NSCC_SM </ci>
			<apply><times/>
				<apply><divide/>
					<cn cellml:units="dimensionless">1.0</cn>
					<apply><plus/>
						<cn cellml:units="dimensionless">1.0</cn>
						<apply><exp/>
							<apply><divide/>
								<apply><plus/>
									<ci>Vm_SM</ci>
									<cn cellml:units="voltage_units">66</cn>
								</apply>
								<cn cellml:units="voltage_units">-26</cn>
							</apply>
						</apply>
					</apply>
				</apply>
				<cn cellml:units="time_units">150</cn>
			</apply>	
		</apply><!-- closure of equation that calculates tau_m_NSCC-->	
	</math>
	
	<!-- equation that calculates d_NSCC-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">	
		<apply><eq/>	
			<apply><diff/>
				<bvar><ci>time </ci></bvar>
				<ci> m_NSCC_SM </ci>
			</apply>
			<apply><divide/>	
				<apply><minus/>	
					<ci> m_inf_NSCC_SM </ci>
					<ci>m_NSCC_SM</ci>
				</apply>
				<ci> tau_m_NSCC_SM </ci>
			</apply>
		</apply><!-- closure of equation d(m_NSCC)/dt=(m_inf_NSCC-m_NSCC)/tau_m_NSCC-->	
	</math> 
</component> <!-- closure of d_NSCC-->

<component name="I_NSCC_SM">
	
	<variable name="I_NSCC_SM" public_interface="out" units="current_units"/>
	<variable name="E_NSCC" initial_value="-28" units="voltage_units"/>
	<variable name="G_max_NSCC_SM" initial_value="50" units="conductance_units"/>
	<variable name="Vm_SM" private_interface="out" public_interface="in" units="voltage_units"/>
	<variable name="Ca_i" public_interface="in" private_interface="out" units="millimolar"/>
	<variable name="Ach" public_interface="in" units="millimolar"/>
	<variable name="m_NSCC_SM" private_interface="in" units="dimensionless"/>
	<variable name="f_ca_NSCC_SM" units="dimensionless"/>
	<variable name="rach_NSCC_SM" units="dimensionless"/>
	<variable name="RToF" public_interface="in" units="voltage_units"/>
	<variable name="Na_o" public_interface="in" units="millimolar"/>
	<variable name="Na_i" public_interface="in" units="millimolar"/>
	<variable name="K_o" public_interface="in" units="millimolar"/>
	<variable name="K_i" public_interface="in" units="millimolar"/>
	<variable name="time" private_interface="out" public_interface="in" units="time_units"/>
	

	
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> f_ca_NSCC_SM </ci>
			<apply><divide/>
				<cn cellml:units="dimensionless">1.0</cn>
				<apply><plus/>
					<cn cellml:units="dimensionless">1.0</cn>
					<apply><power/>
						<apply><divide/>
							<ci>Ca_i</ci>
							<cn cellml:units="millimolar">0.0002</cn>
							
						</apply>
						<cn cellml:units="dimensionless">-4.0</cn>
					</apply>
				</apply>
			</apply>	
		</apply><!-- closure of equation that calculates fca_NSCC-->	
	</math>
	
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<apply><eq/>		
			<ci> rach_NSCC_SM </ci>
			<apply><divide/>
				<cn cellml:units="dimensionless">1.0</cn>
				<apply><plus/>
					<cn cellml:units="dimensionless">1.0</cn>
					<apply><divide/>
						<cn cellml:units="millimolar">0.01</cn>
						<ci>Ach</ci>
					</apply>
				</apply>
			</apply>	
		</apply><!-- closure of equation that calculates rach_NSCC-->	
	</math>
	
	<!-- EQUATION OF I_NSCC-->
	<math xmlns="http://www.w3.org/1998/Math/MathML">   	
		<apply><eq/>		
			<ci>I_NSCC_SM </ci>
			<apply><times/>     			
				<ci> G_max_NSCC_SM </ci>
				<ci> m_NSCC_SM </ci>
				<ci> f_ca_NSCC_SM </ci>
				<ci> rach_NSCC_SM </ci>
				<apply><minus/>
					<ci> Vm_SM </ci>
					<ci> E_NSCC </ci>
				</apply>
			</apply>		
		</apply>	
	</math> <!-- closure ofEquation I_NSCC -->
</component> <!-- closure of I_NSCC-->


<!--Sodium-->
<connection>
	<map_components component_1="m_Na_SM" component_2="I_Na_SM"/>
	<map_variables variable_1="Vm_SM" variable_2="Vm_SM"/>
	<map_variables variable_1="m_Na_SM" variable_2="m_Na_SM"/>
	<map_variables variable_1="time" variable_2="time"/>
	<map_variables variable_1="T_correction_Na" variable_2="T_correction_Na"/>
</connection>
<connection>
	<map_components component_1="h_Na_SM" component_2="I_Na_SM"/>
	<map_variables variable_1="Vm_SM" variable_2="Vm_SM"/>
	<map_variables variable_1="h_Na_SM" variable_2="h_Na_SM"/>
	<map_variables variable_1="time" variable_2="time"/>
	<map_variables variable_1="T_correction_Na" variable_2="T_correction_Na"/>
</connection>
<connection>
	<map_components component_1="I_Na_SM" component_2="SM_Membrane"/>
	<map_variables variable_1="Na_i" variable_2="Na_i"/>
	<map_variables variable_1="Vm_SM" variable_2="Vm_SM"/>
	<map_variables variable_1="I_Na_SM" variable_2="I_Na_SM"/>
	<map_variables variable_1="time" variable_2="time"/>
	<map_variables variable_1="RToF" variable_2="RToF"/>
	<map_variables variable_1="Na_o" variable_2="Na_o"/>
	<map_variables variable_1="T_correction_Na" variable_2="T_correction_Na"/>
</connection>

<!--Ltype-->
<connection>
	<map_components component_1="d_Ltype_SM" component_2="I_Ltype_SM"/>
	<map_variables variable_1="Vm_SM" variable_2="Vm_SM"/>
	<map_variables variable_1="d_Ltype_SM" variable_2="d_Ltype_SM"/>
	<map_variables variable_1="time" variable_2="time"/>
	<map_variables variable_1="T_correction_Ca" variable_2="T_correction_Ca"/>
</connection>
<connection>
	<map_components component_1="f_Ltype_SM" component_2="I_Ltype_SM"/>
	<map_variables variable_1="Vm_SM" variable_2="Vm_SM"/>
	<map_variables variable_1="f_Ltype_SM" variable_2="f_Ltype_SM"/>
	<map_variables variable_1="time" variable_2="time"/>
	<map_variables variable_1="T_correction_Ca" variable_2="T_correction_Ca"/>
</connection>
<connection>
	<map_components component_1="f_ca_Ltype_SM" component_2="I_Ltype_SM"/>
	<map_variables variable_1="f_ca_Ltype_SM" variable_2="f_ca_Ltype_SM"/>
	<map_variables variable_1="Ca_i" variable_2="Ca_i"/>
	<map_variables variable_1="time" variable_2="time"/>
	<map_variables variable_1="T_correction_Ca" variable_2="T_correction_Ca"/>
</connection>
<connection>
	<map_components component_1="I_Ltype_SM" component_2="SM_Membrane"/>
	<map_variables variable_1="Ca_i" variable_2="Ca_i"/>
	<map_variables variable_1="Vm_SM" variable_2="Vm_SM"/>
	<map_variables variable_1="I_Ltype_SM" variable_2="I_Ltype_SM"/>
	<map_variables variable_1="time" variable_2="time"/>
	<map_variables variable_1="RToF" variable_2="RToF"/>
	<map_variables variable_1="Ca_o" variable_2="Ca_o"/>
	<map_variables variable_1="T_correction_Ca" variable_2="T_correction_Ca"/>
</connection>
	
<!--LVA-->
<connection>
	<map_components component_1="d_LVA_SM" component_2="I_LVA_SM"/>
	<map_variables variable_1="Vm_SM" variable_2="Vm_SM"/>
	<map_variables variable_1="d_LVA_SM" variable_2="d_LVA_SM"/>
	<map_variables variable_1="time" variable_2="time"/>
	<map_variables variable_1="T_correction_Ca" variable_2="T_correction_Ca"/>
</connection>
<connection>
	<map_components component_1="f_LVA_SM" component_2="I_LVA_SM"/>
	<map_variables variable_1="Vm_SM" variable_2="Vm_SM"/>
	<map_variables variable_1="f_LVA_SM" variable_2="f_LVA_SM"/>
	<map_variables variable_1="time" variable_2="time"/>
	<map_variables variable_1="T_correction_Ca" variable_2="T_correction_Ca"/>
</connection>
<connection>
	<map_components component_1="I_LVA_SM" component_2="SM_Membrane"/>
	<map_variables variable_1="Ca_i" variable_2="Ca_i"/>
	<map_variables variable_1="Vm_SM" variable_2="Vm_SM"/>
	<map_variables variable_1="I_LVA_SM" variable_2="I_LVA_SM"/>
	<map_variables variable_1="time" variable_2="time"/>
	<map_variables variable_1="RToF" variable_2="RToF"/>
	<map_variables variable_1="Ca_o" variable_2="Ca_o"/>
	<map_variables variable_1="T_correction_Ca" variable_2="T_correction_Ca"/>
</connection>

<!--kr-->
<connection>
	<map_components component_1="xr1_SM" component_2="I_kr_SM"/>
	<map_variables variable_1="Vm_SM" variable_2="Vm_SM"/>
	<map_variables variable_1="xr1_SM" variable_2="xr1_SM"/>
	<map_variables variable_1="time" variable_2="time"/>
	<map_variables variable_1="T_correction_K" variable_2="T_correction_K"/>
</connection>
<connection>
	<map_components component_1="xr2_SM" component_2="I_kr_SM"/>
	<map_variables variable_1="Vm_SM" variable_2="Vm_SM"/>
	<map_variables variable_1="xr2_SM" variable_2="xr2_SM"/>
	<map_variables variable_1="time" variable_2="time"/>
	<map_variables variable_1="T_correction_K" variable_2="T_correction_K"/>
</connection>
<connection>
	<map_components component_1="I_kr_SM" component_2="SM_Membrane"/>
	<map_variables variable_1="K_i" variable_2="K_i"/>
	<map_variables variable_1="Vm_SM" variable_2="Vm_SM"/>
	<map_variables variable_1="I_kr_SM" variable_2="I_kr_SM"/>
	<map_variables variable_1="time" variable_2="time"/>
	<map_variables variable_1="RToF" variable_2="RToF"/>
	<map_variables variable_1="K_o" variable_2="K_o"/>
	<map_variables variable_1="T_correction_K" variable_2="T_correction_K"/>
</connection>


<!--katype-->
<connection>
	<map_components component_1="xa1_SM" component_2="I_ka_SM"/>
	<map_variables variable_1="Vm_SM" variable_2="Vm_SM"/>
	<map_variables variable_1="xa1_SM" variable_2="xa1_SM"/>
	<map_variables variable_1="time" variable_2="time"/>
	<map_variables variable_1="T_correction_K" variable_2="T_correction_K"/>
</connection>
<connection>
	<map_components component_1="xa2_SM" component_2="I_ka_SM"/>
	<map_variables variable_1="Vm_SM" variable_2="Vm_SM"/>
	<map_variables variable_1="xa2_SM" variable_2="xa2_SM"/>
	<map_variables variable_1="time" variable_2="time"/>
	<map_variables variable_1="T_correction_K" variable_2="T_correction_K"/>
</connection>
<connection>
	<map_components component_1="I_ka_SM" component_2="SM_Membrane"/>
	<map_variables variable_1="K_i" variable_2="K_i"/>
	<map_variables variable_1="Vm_SM" variable_2="Vm_SM"/>
	<map_variables variable_1="I_ka_SM" variable_2="I_ka_SM"/>
	<map_variables variable_1="time" variable_2="time"/>
	<map_variables variable_1="RToF" variable_2="RToF"/>
	<map_variables variable_1="K_o" variable_2="K_o"/>
	<map_variables variable_1="T_correction_K" variable_2="T_correction_K"/>
</connection>
<!--BK-->
<connection>
	<map_components component_1="d_BK_SM" component_2="I_BK_SM"/>
	<map_variables variable_1="Vm_SM" variable_2="Vm_SM"/>
	<map_variables variable_1="Ca_i" variable_2="Ca_i"/>
	<map_variables variable_1="d_BK_SM" variable_2="d_BK_SM"/>
	<map_variables variable_1="time" variable_2="time"/>
</connection>
<connection>
	<map_components component_1="I_BK_SM" component_2="SM_Membrane"/>
	<map_variables variable_1="K_i" variable_2="K_i"/>
	<map_variables variable_1="Ca_i" variable_2="Ca_i"/>
	<map_variables variable_1="Vm_SM" variable_2="Vm_SM"/>
	<map_variables variable_1="I_BK_SM" variable_2="I_BK_SM"/>
	<map_variables variable_1="time" variable_2="time"/>
	<map_variables variable_1="RToF" variable_2="RToF"/>
	<map_variables variable_1="K_o" variable_2="K_o"/>
	<map_variables variable_1="T_correction_BK" variable_2="T_correction_BK"/>
</connection>

<!--kb-->
<connection>
	<map_components component_1="I_bk_SM" component_2="SM_Membrane"/>
	<map_variables variable_1="K_i" variable_2="K_i"/>
	<map_variables variable_1="Vm_SM" variable_2="Vm_SM"/>
	<map_variables variable_1="I_bk_SM" variable_2="I_bk_SM"/>
	<map_variables variable_1="RToF" variable_2="RToF"/>
	<map_variables variable_1="K_o" variable_2="K_o"/>
</connection>

<!--NSCC-->
<connection>
	<map_components component_1="m_NSCC_SM" component_2="I_NSCC_SM"/>
	<map_variables variable_1="Vm_SM" variable_2="Vm_SM"/>
	<map_variables variable_1="m_NSCC_SM" variable_2="m_NSCC_SM"/>
	<map_variables variable_1="time" variable_2="time"/>
</connection>
<connection>
	<map_components component_1="I_NSCC_SM" component_2="SM_Membrane"/>
	<map_variables variable_1="K_i" variable_2="K_i"/>
	<map_variables variable_1="Na_i" variable_2="Na_i"/>
	<map_variables variable_1="Vm_SM" variable_2="Vm_SM"/>
	<map_variables variable_1="I_NSCC_SM" variable_2="I_NSCC_SM"/>
	<map_variables variable_1="time" variable_2="time"/>
	<map_variables variable_1="RToF" variable_2="RToF"/>
	<map_variables variable_1="K_o" variable_2="K_o"/>
	<map_variables variable_1="Na_o" variable_2="Na_o"/>
	<map_variables variable_1="Ca_i" variable_2="Ca_i"/>
	<map_variables variable_1="Ach" variable_2="Ach"/>
</connection>

<!--Jsr-->
<connection>
	<map_components component_1="J_CaSR_SM" component_2="SM_Membrane"/>
	<map_variables variable_1="J_CaSR_SM" variable_2="J_CaSR_SM"/>
	<map_variables variable_1="Ca_i" variable_2="Ca_i"/>
</connection>

<connection>
	<map_components component_1="SM_Membrane" component_2="Environment"/>
	<map_variables variable_1="Ca_o" variable_2="Ca_o"/>
	<map_variables variable_1="Na_o" variable_2="Na_o"/>
	<map_variables variable_1="K_o" variable_2="K_o"/>
	<map_variables variable_1="Cl_o" variable_2="Cl_o"/>
	<map_variables variable_1="RToF" variable_2="RToF"/>
	<map_variables variable_1="FoRT" variable_2="FoRT"/>
	<map_variables variable_1="F" variable_2="F"/>
	<map_variables variable_1="T_correction_Ca" variable_2="T_correction_Ca"/>
	<map_variables variable_1="T_correction_Na" variable_2="T_correction_Na"/>
	<map_variables variable_1="T_correction_K" variable_2="T_correction_K"/>
	<map_variables variable_1="T_correction_BK" variable_2="T_correction_BK"/>
</connection>
<connection>
	<map_components component_1="Time" component_2="SM_Membrane"/>
	<map_variables variable_1="time" variable_2="time"/>
</connection>

<connection>
	<map_components component_1="Gap_junction" component_2="I_stim"/>
	<map_variables variable_1="Gcouple" variable_2="Gcouple"/>
</connection>
<connection>
	<map_components component_1="I_stim" component_2="SM_Membrane"/>
	<map_variables variable_1="I_stim" variable_2="I_stim"/>
</connection>
<connection>
        <map_components component_1="I_stim" component_2="Time"/>
        <map_variables variable_1="time" variable_2="time"/>
</connection>
<connection>
	<map_components component_1="Neural_input" component_2="SM_Membrane"/>
	<map_variables variable_1="Ach" variable_2="Ach"/>
</connection>

<group><relationship_ref relationship="encapsulation"/>
	<component_ref component="SM_Membrane">
		<component_ref component="I_Na_SM">
			<component_ref component="m_Na_SM"/>
			<component_ref component="h_Na_SM"/>
		</component_ref>
		<component_ref component="I_Ltype_SM">
			<component_ref component="d_Ltype_SM"/>
			<component_ref component="f_Ltype_SM"/>
			<component_ref component="f_ca_Ltype_SM"/>
		</component_ref>
		<component_ref component="I_LVA_SM">
			<component_ref component="d_LVA_SM"/>
			<component_ref component="f_LVA_SM"/>
		</component_ref>
		<component_ref component="I_BK_SM">
			<component_ref component="d_BK_SM"/>
		</component_ref>
		<component_ref component="I_kr_SM">
			<component_ref component="xr1_SM"/>
			<component_ref component="xr2_SM"/>
		</component_ref>
		<component_ref component="I_ka_SM">
			<component_ref component="xa1_SM"/>
			<component_ref component="xa2_SM"/>
		</component_ref>
		<component_ref component="I_bk_SM">
		</component_ref>
		<component_ref component="I_NSCC_SM">
			<component_ref component="m_NSCC_SM"/>
		</component_ref>
		<component_ref component="J_CaSR_SM">
		</component_ref>
	</component_ref>	
	
</group>
</model>