 %  DOQCS : http://doqcs.ncbs.res.in/ 
 %  Accession Name = Ajay_Bhalla_2004_PKM_MKP3_Tuning 
 %  Accession Number = 77 
 %  Transcriber = Upinder S. Bhalla, NCBS 
 %  Developer = Sriram M. Ajay and Upinder S. Bhalla, NCBS 
 %  Species = Rat 
 %  Tissue = Hippocampal CA1 
 %  Cell Compartment = Dendrite 
 %  Notes =  This model is based on <a href=http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=pubmed&cmd=Retrieve&dopt=AbstractPlus&list_uids=15548210&query_hl=1&itool=pubmed_docsum>Ajay SM, Bhalla US. Eur J Neurosci. 2004 Nov;20(10):2671-80</a>. This is the feedforward model with MPK3 from figure 8a.  
 
   % Note: All the concentrations are in micro Mole (uM)

function moose_convert
%Matlab simulation for chemical kinetics

% Saved on Wed Jul 25 14:59:57 2007
% Automatically generated from kkit model in MOOSE by conv_matlab

global buff;
global t;
global y;

% Define Tables here
tspan=[0, 6000];
% Molecule names
molnames = {
'1 /kinetics/PKC/PKC-Ca'
'2 /kinetics/PKC/PKC-Ca-memb*'
'3 /kinetics/PKC/PKC-DAG-memb*'
'4 /kinetics/PKC/PKC-Ca-DAG'
'5 /kinetics/PKC/PKC-DAG'
'6 /kinetics/PKC/PKC-cytosolic'
'7 /kinetics/PKC/PKM-zeta'
'8 /kinetics/DAG'
'9 /kinetics/AA'
'10 /kinetics/PLA2/PLA2-cytosolic'
'11 /kinetics/PLA2/PLA2-Ca*'
'12 /kinetics/PLA2/PLA2-Ca*/kenz/kenz_cplx'
'13 /kinetics/PLA2/PIP2-PLA2*'
'14 /kinetics/PLA2/PIP2-PLA2*/kenz/kenz_cplx'
'15 /kinetics/PLA2/PIP2-Ca-PLA2*'
'16 /kinetics/PLA2/PIP2-Ca-PLA2*/kenz/kenz_cplx'
'17 /kinetics/PLA2/DAG-Ca-PLA2*'
'18 /kinetics/PLA2/DAG-Ca-PLA2*/kenz/kenz_cplx'
'19 /kinetics/PLA2/PLA2*-Ca'
'20 /kinetics/PLA2/PLA2*-Ca/kenz/kenz_cplx'
'21 /kinetics/PLA2/PLA2*'
'22 /kinetics/MAPK*'
'23 /kinetics/MAPK*/MAPK*/MAPK*_cplx'
'24 /kinetics/MAPK*/MAPK*-feedback/MAPK*-feedback_cplx'
'25 /kinetics/MAPK*/phosph_Sos/phosph_Sos_cplx'
'26 /kinetics/IP3'
'27 /kinetics/PLCbeta/PLC'
'28 /kinetics/PLCbeta/PLC-Ca'
'29 /kinetics/PLCbeta/PLC-Ca/PLC-Ca/PLC-Ca_cplx'
'30 /kinetics/PLCbeta/PLC-Ca-Gq'
'31 /kinetics/PLCbeta/PLC-Ca-Gq/PLCb-Ca-Gq/PLCb-Ca-Gq_cplx'
'32 /kinetics/PLCbeta/PLC-Gq'
'33 /kinetics/BetaGamma'
'34 /kinetics/G*GTP'
'35 /kinetics/G*GDP'
'36 /kinetics/Gq/G-GDP'
'37 /kinetics/Gq/mGluR'
'38 /kinetics/Gq/Rec-Glu'
'39 /kinetics/Gq/Rec-Gq'
'40 /kinetics/Gq/Rec-Glu-Gq'
'41 /kinetics/Gq/Blocked-rec-Gq'
'42 /kinetics/MAPK/craf-1'
'43 /kinetics/MAPK/craf-1*'
'44 /kinetics/MAPK/MAPKK'
'45 /kinetics/MAPK/MAPK'
'46 /kinetics/MAPK/craf-1**'
'47 /kinetics/MAPK/MAPK-tyr'
'48 /kinetics/MAPK/MAPKK*'
'49 /kinetics/MAPK/MAPKK*/MAPKKtyr/MAPKKtyr_cplx'
'50 /kinetics/MAPK/MAPKK*/MAPKKthr/MAPKKthr_cplx'
'51 /kinetics/MAPK/MAPKK-ser'
'52 /kinetics/MAPK/Raf*-GTP-Ras'
'53 /kinetics/MAPK/Raf*-GTP-Ras/Raf*-GTP-Ras.1/Raf*-GTP-Ras.1_cplx'
'54 /kinetics/MAPK/Raf*-GTP-Ras/Raf*-GTP-Ras.2/Raf*-GTP-Ras.2_cplx'
'55 /kinetics/PPhosphatase2A'
'56 /kinetics/PPhosphatase2A/craf-deph/craf-deph_cplx'
'57 /kinetics/PPhosphatase2A/MAPKK-deph/MAPKK-deph_cplx'
'58 /kinetics/PPhosphatase2A/MAPKK-deph-ser/MAPKK-deph-ser_cplx'
'59 /kinetics/PPhosphatase2A/craf**-deph/craf**-deph_cplx'
'60 /kinetics/CaM(Ca)n-CaNAB/dephosph-PP1-I*/dephosph-PP1-I*_cplx'
'61 /kinetics/Ras/GEF-Gprot-bg'
'62 /kinetics/Ras/GEF-Gprot-bg/GEF-bg_act-ras/GEF-bg_act-ras_cplx'
'63 /kinetics/Ras/inact-GEF'
'64 /kinetics/Ras/GEF*'
'65 /kinetics/Ras/GEF*/GEF*-act-ras/GEF*-act-ras_cplx'
'66 /kinetics/Ras/GTP-Ras'
'67 /kinetics/Ras/GDP-Ras'
'68 /kinetics/Ras/GAP*'
'69 /kinetics/Ras/GAP'
'70 /kinetics/Ras/GAP/GAP-inact-ras/GAP-inact-ras_cplx'
'71 /kinetics/Ras/inact-GEF*'
'72 /kinetics/Ras/CaM-GEF'
'73 /kinetics/Ras/CaM-GEF/CaM-GEF-act-ras/CaM-GEF-act-ras_cplx'
'74 /kinetics/PKA-active'
'75 /kinetics/PKA-active/PKA-phosph-GEF/PKA-phosph-GEF_cplx'
'76 /kinetics/PKA-active/PKA-phosph-I1/PKA-phosph-I1_cplx'
'77 /kinetics/PKA-active/phosph-PDE/phosph-PDE_cplx'
'78 /kinetics/CaM-Ca4'
'79 /kinetics/Shc*.Sos.Grb2'
'80 /kinetics/Shc*.Sos.Grb2/Sos.Ras_GEF/Sos.Ras_GEF_cplx'
'81 /kinetics/EGFR/EGFR'
'82 /kinetics/EGFR/L.EGFR'
'83 /kinetics/EGFR/L.EGFR/phosph_PLC_g/phosph_PLC_g_cplx'
'84 /kinetics/EGFR/L.EGFR/phosph_Shc/phosph_Shc_cplx'
'85 /kinetics/EGFR/SHC'
'86 /kinetics/EGFR/SHC*'
'87 /kinetics/EGFR/Internal_L.EGFR'
'88 /kinetics/Sos/Sos*.Grb2'
'89 /kinetics/Sos/Grb2'
'90 /kinetics/Sos/Sos.Grb2'
'91 /kinetics/Sos/Sos*'
'92 /kinetics/Sos/Sos'
'93 /kinetics/PLC_g/PLC_g'
'94 /kinetics/PLC_g/PLC_G*'
'95 /kinetics/PLC_g/Ca.PLC_g'
'96 /kinetics/PLC_g/Ca.PLC_g*'
'97 /kinetics/CaMKII/CaMKII'
'98 /kinetics/CaMKII/CaMKII-CaM'
'99 /kinetics/CaMKII/CaMKII-thr286*-CaM'
'100 /kinetics/CaMKII/CaMKII***'
'101 /kinetics/CaMKII/CaMKII-thr286'
'102 /kinetics/CaMKII/CaMK-thr306'
'103 /kinetics/CaMKII/tot_CaM_CaMKII/CaM_act_305/CaM_act_305_cplx'
'104 /kinetics/CaMKII/tot_CaM_CaMKII/CaM_act_286/CaM_act_286_cplx'
'105 /kinetics/CaMKII/tot_autonomous_CaMKII/auton_305/auton_305_cplx'
'106 /kinetics/CaMKII/tot_autonomous_CaMKII/auton_286/auton_286_cplx'
'107 /kinetics/PP1-active'
'108 /kinetics/PP1-active/Deph-thr286/Deph-thr286_cplx'
'109 /kinetics/PP1-active/Deph-thr305/Deph-thr305_cplx'
'110 /kinetics/PP1-active/Deph-thr306/Deph-thr306_cplx'
'111 /kinetics/PP1-active/Deph-thr286c/Deph-thr286c_cplx'
'112 /kinetics/PP1-active/Deph_thr286b/Deph_thr286b_cplx'
'113 /kinetics/CaM/CaM'
'114 /kinetics/CaM/neurogranin-CaM'
'115 /kinetics/CaM/neurogranin*'
'116 /kinetics/CaM/neurogranin'
'117 /kinetics/CaM-Ca3'
'118 /kinetics/CaM-TR2-Ca2'
'119 /kinetics/CaM(Ca)n-CaNAB/dephosph_neurogranin/dephosph_neurogranin_cplx'
'120 /kinetics/CaM(Ca)n-CaNAB/dephosph_inhib1/dephosph_inhib1_cplx'
'121 /kinetics/PP1/I1'
'122 /kinetics/PP1/I1*'
'123 /kinetics/PP1/PP1-I1*'
'124 /kinetics/PP1/PP1-I1'
'125 /kinetics/PP2A'
'126 /kinetics/PP2A/PP2A-dephosph-I1/PP2A-dephosph-I1_cplx'
'127 /kinetics/PP2A/PP2A-dephosph-PP1-I*/PP2A-dephosph-PP1-I*_cplx'
'128 /kinetics/CaNAB-Ca4'
'129 /kinetics/CaNAB-Ca4/dephosph_inhib1_noCaM/dephosph_inhib1_noCaM_cplx'
'130 /kinetics/PP2B/CaNAB'
'131 /kinetics/PP2B/CaNAB-Ca2'
'132 /kinetics/PP2B/CaMCa3-CaNAB'
'133 /kinetics/PP2B/CaMCa2-CANAB'
'134 /kinetics/PP2B/CaMCa4-CaNAB'
'135 /kinetics/PKA/R2C2'
'136 /kinetics/PKA/R2C2-cAMP'
'137 /kinetics/PKA/R2C2-cAMP2'
'138 /kinetics/PKA/R2C2-cAMP3'
'139 /kinetics/PKA/R2C2-cAMP4'
'140 /kinetics/PKA/R2C-cAMP4'
'141 /kinetics/PKA/R2-cAMP4'
'142 /kinetics/PKA/PKA-inhibitor'
'143 /kinetics/PKA/inhibited-PKA'
'144 /kinetics/cAMP'
'145 /kinetics/AC/AC1-CaM'
'146 /kinetics/AC/AC1'
'147 /kinetics/AC/AC2*'
'148 /kinetics/AC/AC2-Gs'
'149 /kinetics/AC/AC2'
'150 /kinetics/AC/AC1-Gs'
'151 /kinetics/AC/AMP'
'152 /kinetics/AC/AC2*-Gs'
'153 /kinetics/AC/cAMP-PDE'
'154 /kinetics/AC/cAMP-PDE/PDE/PDE_cplx'
'155 /kinetics/AC/cAMP-PDE*'
'156 /kinetics/AC/cAMP-PDE*/PDE*/PDE*_cplx'
'157 /kinetics/AC/PDE1'
'158 /kinetics/AC/PDE1/PDE1/PDE1_cplx'
'159 /kinetics/AC/CaM.PDE1'
'160 /kinetics/AC/CaM.PDE1/CaM.PDE1/CaM.PDE1_cplx'
'161 /kinetics/Gs-alpha'
'162 /kinetics/Ca'
'163 /kinetics/Ca_input'
'164 /kinetics/MKP3/nuc_MAPK*'
'165 /kinetics/MKP3/nuc_MAPK*/act_transcription/act_transcription_cplx'
'166 /kinetics/MKP3/MKP-3'
'167 /kinetics/MKP3/MKP-3/MKP3-thr-deph/MKP3-thr-deph_cplx'
'168 /kinetics/MKP3/MKP-3/MKP3-tyr-deph/MKP3-tyr-deph_cplx'
'169 /kinetics/MKP3/MKP3_synthesis'
'170 /kinetics/MKP3/MKP3_synthesis/kenz/kenz_cplx'
'171 /kinetics/PKC-active/PKC-act-raf/PKC-act-raf_cplx'
'172 /kinetics/PKC-active/PKC-inact-GAP/PKC-inact-GAP_cplx'
'173 /kinetics/PKC-active/PKC-act-GEF/PKC-act-GEF_cplx'
'174 /kinetics/PKC-active/PKC-phosph-neurogranin/PKC-phosph-neurogranin_cplx'
'175 /kinetics/PKC-active/PKC-phosph-ng-CaM/PKC-phosph-ng-CaM_cplx'
'176 /kinetics/PKC-active/phosph-AC2/phosph-AC2_cplx'
'177 /kinetics/PKM/Ca_detector'
'178 /kinetics/PKM/PKM_synthesis'
'179 /kinetics/PKM/PKM_synthesis/kenz/kenz_cplx'
'180 /kinetics/PKM/Ca.detector_complex'
'181 /kinetics/PKM/Ca.detector_complex/kenz/kenz_cplx'
'182 /kinetics/PKM/PKM_activator'
};

bufnames = {
'1 /kinetics/PLA2/APC'
'2 /kinetics/temp-PIP2'
'3 /kinetics/Glu'
'4 /kinetics/PLCbeta/Inositol'
'5 /kinetics/PLCbeta/PC'
'6 /kinetics/PIP2'
'7 /kinetics/Gq/mGluRAntag'
'8 /kinetics/EGFR/EGF'
'9 /kinetics/AC/ATP'
'10 /kinetics/MKP3/nucleotides'
'11 /kinetics/MKP3/ubiquitination'
'12 /kinetics/MKP3/MKP3_AA'
'13 /kinetics/PKM/AA_pool'
'14 /kinetics/PKM/degraded_PKM'
};

sumtotnames = {
'1 /kinetics/CaMKII/tot_CaM_CaMKII'
'2 /kinetics/CaMKII/tot_autonomous_CaMKII'
'3 /kinetics/CaM(Ca)n-CaNAB'
'4 /kinetics/PKC-active'
};

% Initial concs of 182 molecules
y0(1) = 3.72078e-17;
y0(2) = 1.38956e-17;
y0(3) = 9.43511e-21;
y0(4) = 8.46311e-23;
y0(5) = 1.161e-16;
y0(6) = 1;
y0(7) = 0.0555556;
y0(8) = 0;
y0(9) = 0;
y0(10) = 0.4;
y0(11) = 0;
y0(12) = 0;
y0(13) = 0;
y0(14) = 0;
y0(15) = 0;
y0(16) = 0;
y0(17) = 0;
y0(18) = 0;
y0(19) = 0;
y0(20) = 0;
y0(21) = 0;
y0(22) = 0;
y0(23) = 0;
y0(24) = 0;
y0(25) = 0;
y0(26) = 0.73;
y0(27) = 0.8;
y0(28) = 0;
y0(29) = 0;
y0(30) = 0;
y0(31) = 0;
y0(32) = 0;
y0(33) = 0;
y0(34) = 0;
y0(35) = 0;
y0(36) = 1;
y0(37) = 0.3;
y0(38) = 0;
y0(39) = 0;
y0(40) = 0;
y0(41) = 0;
y0(42) = 0.5;
y0(43) = 0;
y0(44) = 0.5;
y0(45) = 3.6;
y0(46) = 0;
y0(47) = 0;
y0(48) = 0;
y0(49) = 0;
y0(50) = 0;
y0(51) = 0;
y0(52) = 0;
y0(53) = 0;
y0(54) = 0;
y0(55) = 1;
y0(56) = 0;
y0(57) = 0;
y0(58) = 0;
y0(59) = 0;
y0(60) = 0;
y0(61) = 0;
y0(62) = 0;
y0(63) = 0.1;
y0(64) = 0;
y0(65) = 0;
y0(66) = 0;
y0(67) = 0.5;
y0(68) = 0;
y0(69) = 0.01;
y0(70) = 0;
y0(71) = 0;
y0(72) = 0;
y0(73) = 0;
y0(74) = 0;
y0(75) = 0;
y0(76) = 0;
y0(77) = 0;
y0(78) = 0;
y0(79) = 0;
y0(80) = 0;
y0(81) = 0.166667;
y0(82) = 0;
y0(83) = 0;
y0(84) = 0;
y0(85) = 0.5;
y0(86) = 0;
y0(87) = 0;
y0(88) = 0;
y0(89) = 1;
y0(90) = 0;
y0(91) = 0;
y0(92) = 0.1;
y0(93) = 0.82;
y0(94) = 0;
y0(95) = 0;
y0(96) = 0;
y0(97) = 70;
y0(98) = 0;
y0(99) = 0;
y0(100) = 0;
y0(101) = 0;
y0(102) = 0;
y0(103) = 0;
y0(104) = 0;
y0(105) = 0;
y0(106) = 0;
y0(107) = 1.8;
y0(108) = 0;
y0(109) = 0;
y0(110) = 0;
y0(111) = 0;
y0(112) = 0;
y0(113) = 20;
y0(114) = 0;
y0(115) = 0;
y0(116) = 10;
y0(117) = 0;
y0(118) = 0;
y0(119) = 0;
y0(120) = 0;
y0(121) = 1.8;
y0(122) = 0.001;
y0(123) = 0;
y0(124) = 0;
y0(125) = 0.12;
y0(126) = 0;
y0(127) = 0;
y0(128) = 0;
y0(129) = 0;
y0(130) = 1;
y0(131) = 0;
y0(132) = 0;
y0(133) = 0;
y0(134) = 0;
y0(135) = 0.5;
y0(136) = 0;
y0(137) = 0;
y0(138) = 0;
y0(139) = 0;
y0(140) = 0;
y0(141) = 0;
y0(142) = 0.25;
y0(143) = 0;
y0(144) = 0;
y0(145) = 0;
y0(146) = 0.02;
y0(147) = 0;
y0(148) = 0;
y0(149) = 0.015;
y0(150) = 0;
y0(151) = 325493;
y0(152) = 0;
y0(153) = 0.45;
y0(154) = 0;
y0(155) = 0;
y0(156) = 0;
y0(157) = 2;
y0(158) = 0;
y0(159) = 0;
y0(160) = 0;
y0(161) = 0;
y0(162) = 0.08;
y0(163) = 0.08;
y0(164) = 0;
y0(165) = 0;
y0(166) = 0.02;
y0(167) = 0;
y0(168) = 0;
y0(169) = 0.0014;
y0(170) = 0;
y0(171) = 0;
y0(172) = 0;
y0(173) = 0;
y0(174) = 0;
y0(175) = 0;
y0(176) = 0;
y0(177) = 1;
y0(178) = 0.00555556;
y0(179) = 0;
y0(180) = 0;
y0(181) = 0;
y0(182) = 0.0944444;
buff(1) = 30;
buff(2) = 2.5;
buff(3) = 0;
buff(4) = 0;
buff(5) = 0;
buff(6) = 10;
buff(7) = 0;
buff(8) = 0;
buff(9) = 5000;
buff(10) = 0.2;
buff(11) = 0;
buff(12) = 1;
buff(13) = 1;
buff(14) = 0;
% Sumtotal eqn for /kinetics/CaMKII/tot_CaM_CaMKII: sumtot(1) =  (y(98) + y(99) )
% Sumtotal eqn for /kinetics/CaMKII/tot_autonomous_CaMKII: sumtot(2) =  (y(101) + y(100) )
% Sumtotal eqn for /kinetics/CaM(Ca)n-CaNAB: sumtot(3) =  (y(134) + y(132) + y(133) )
% Sumtotal eqn for /kinetics/PKC-active: sumtot(4) =  (y(2) + y(3) + y(7) )

% Call the ODE solver and display results
[t, y] = ode23s(@f, tspan, y0);

hold on;
do_plots;

function do_plots()
global t;
global y;
global buff;
plot(t,y(:,166));
plot(t,y(:,169));
plot(t,y(:,100));
plot(t, (y(:,98) + y(:,99) ));
plot(t,y(:,22));
plot(t, (y(:,2) + y(:,3) + y(:,7) ));
plot(t,y(:,78));
plot(t,y(:,7));
plot(t,y(:,74));

% Evaluation function
function dydt = f(t, y)
global buff;
dydt = [
 + 0.600003 * y(6) * y(162) - 0.5 * y(1) - 0.00799983 * y(8) * y(1) + 8.6348 * y(4) - 1.2705 * y(1) + 3.5026 * y(2)
 + 1.2705 * y(1) - 3.5026 * y(2)
 + 1 * y(4) - 0.1 * y(3)
 + 0.00799983 * y(8) * y(1) - 8.6348 * y(4) - 1 * y(4) + 0.1 * y(3)
 + 0.000600003 * y(6) * y(8) - 0.1 * y(5)
 - 0.600003 * y(6) * y(162) + 0.5 * y(1) - 0.000600003 * y(6) * y(8) + 0.1 * y(5)
 + 0.05 * y(179) - 0.0005 * y(7)
 - 0.00799983 * y(8) * y(1) + 8.6348 * y(4) - 0.000600003 * y(6) * y(8) + 0.1 * y(5) - 0.00299997 * y(8) * y(11) + 4 * y(17) + 48 * y(31) - 0.15 * y(8) + 10 * y(29) + 14 * y(95) * buff(6) / ( 97.2222 + buff(6) ) + 57 * y(96) * buff(6) / ( 19.7917 + buff(6) )
 + 5.4 * y(12) + 11.04 * y(14) + 36 * y(16) + 60 * y(18) + 120 * y(20) - 0.4 * y(9)
 - 0.99999 * y(10) * y(162) + 0.1 * y(11) - 0.00119997 * buff(2) * y(10) + 0.5 * y(13) - 1.95003 * y(10) * y(22) + 40 * y(23) + 0.17 * y(21)
 + 0.99999 * y(10) * y(162) - 0.1 * y(11) - 1.35 * buff(1) * y(11) + 21.6 * y(12) + 5.4 * y(12) - 0.0119997 * buff(2) * y(11) + 0.1 * y(15) - 0.00299997 * y(8) * y(11) + 4 * y(17)
 + 1.35 * buff(1) * y(11) - 21.6 * y(12) - 5.4 * y(12)
 + 0.00119997 * buff(2) * y(10) - 0.5 * y(13) - 2.76003 * buff(1) * y(13) + 44.16 * y(14) + 11.04 * y(14)
 + 2.76003 * buff(1) * y(13) - 44.16 * y(14) - 11.04 * y(14)
 + 0.0119997 * buff(2) * y(11) - 0.1 * y(15) - 9 * buff(1) * y(15) + 144 * y(16) + 36 * y(16)
 + 9 * buff(1) * y(15) - 144 * y(16) - 36 * y(16)
 + 0.00299997 * y(8) * y(11) - 4 * y(17) - 15.0003 * buff(1) * y(17) + 240 * y(18) + 60 * y(18)
 + 15.0003 * buff(1) * y(17) - 240 * y(18) - 60 * y(18)
 - 29.9997 * buff(1) * y(19) + 480 * y(20) + 120 * y(20) + 6.00003 * y(21) * y(162) - 0.1 * y(19)
 + 29.9997 * buff(1) * y(19) - 480 * y(20) - 120 * y(20)
 + 10 * y(23) - 6.00003 * y(21) * y(162) + 0.1 * y(19) - 0.17 * y(21)
 - 1.95003 * y(10) * y(22) + 40 * y(23) + 10 * y(23) - 1.95003 * y(43) * y(22) + 40 * y(24) + 10 * y(24) + 0.3 * y(50) - 19.5003 * y(92) * y(22) + 40 * y(25) + 10 * y(25) - 1.99998 * y(22) * y(166) + 16 * y(167) - 0.000500004 * y(22)*y(22) + 0.002 * y(164)
 + 1.95003 * y(10) * y(22) - 40 * y(23) - 10 * y(23)
 + 1.95003 * y(43) * y(22) - 40 * y(24) - 10 * y(24)
 + 19.5003 * y(92) * y(22) - 40 * y(25) - 10 * y(25)
 + 48 * y(31) - 2.5 * y(26) + 10 * y(29) + 14 * y(95) * buff(6) / ( 97.2222 + buff(6) ) + 57 * y(96) * buff(6) / ( 19.7917 + buff(6) )
 - 2.99997 * y(162) * y(27) + 1 * y(28) - 2.52 * y(27) * y(34) + 1 * y(32)
 + 2.99997 * y(162) * y(27) - 1 * y(28) - 25.2 * y(34) * y(28) + 1 * y(30) + 0.0133 * y(30) - 2.52 * buff(6) * y(28) + 40 * y(29) + 10 * y(29)
 + 2.52 * buff(6) * y(28) - 40 * y(29) - 10 * y(29)
 - 47.9997 * buff(6) * y(30) + 192 * y(31) + 48 * y(31) + 25.2 * y(34) * y(28) - 1 * y(30) - 0.0133 * y(30) + 29.9997 * y(162) * y(32) - 1 * y(30)
 + 47.9997 * buff(6) * y(30) - 192 * y(31) - 48 * y(31)
 + 2.52 * y(27) * y(34) - 1 * y(32) - 29.9997 * y(162) * y(32) + 1 * y(30)
 - 6.00003 * y(35) * y(33) + 0.0001 * y(36) + 0.01 * y(40) - 6.00003 * y(33) * y(63) + 1 * y(61)
 - 25.2 * y(34) * y(28) + 1 * y(30) - 2.52 * y(27) * y(34) + 1 * y(32) - 0.0133 * y(34) + 0.0001 * y(36) + 0.01 * y(40)
 + 0.0133 * y(30) + 0.0133 * y(34) - 6.00003 * y(35) * y(33)
 + 6.00003 * y(35) * y(33) - 0.0001 * y(36) - 0.00600003 * y(36) * y(38) + 0.0001 * y(40) - 0.600003 * y(36) * y(37) + 1 * y(39)
 - 16.8003 * y(37) * buff(3) + 10 * y(38) - 0.600003 * y(36) * y(37) + 1 * y(39)
 + 16.8003 * y(37) * buff(3) - 10 * y(38) - 0.00600003 * y(36) * y(38) + 0.0001 * y(40) + 0.01 * y(40)
 - 16.8003 * buff(3) * y(39) + 0.1 * y(40) + 0.600003 * y(36) * y(37) - 1 * y(39) - 60.0003 * y(39) * buff(7) + 0.01 * y(41)
 + 0.00600003 * y(36) * y(38) - 0.0001 * y(40) + 16.8003 * buff(3) * y(39) - 0.1 * y(40) - 0.01 * y(40)
 + 60.0003 * y(39) * buff(7) - 0.01 * y(41)
 - 0.99999 * y(42) *  (y(2) + y(3) + y(7) ) + 16 * y(171) + 6 * y(56)
 + 4 * y(171) - 1.95003 * y(43) * y(22) + 40 * y(24) - 1.9161 * y(43) * y(55) + 24 * y(56) + 6 * y(59) - 9.9999 * y(43) * y(66) + 0.5 * y(52)
 + 6 * y(58) - 9.4284 * y(44) * y(52) + 1.2 * y(53)
 - 32.4 * y(45) * y(48) + 1.2 * y(49) + 4 * y(168)
 + 10 * y(24) - 1.9161 * y(46) * y(55) + 24 * y(59)
 + 0.3 * y(49) - 32.4 * y(47) * y(48) + 1.2 * y(50) + 4 * y(167) - 1.99998 * y(47) * y(166) + 16 * y(168)
 - 32.4 * y(45) * y(48) + 1.2 * y(49) + 0.3 * y(49) - 32.4 * y(47) * y(48) + 1.2 * y(50) + 0.3 * y(50) - 1.9161 * y(48) * y(55) + 24 * y(57) + 0.3 * y(54)
 + 32.4 * y(45) * y(48) - 1.2 * y(49) - 0.3 * y(49)
 + 32.4 * y(47) * y(48) - 1.2 * y(50) - 0.3 * y(50)
 + 6 * y(57) - 1.9161 * y(51) * y(55) + 24 * y(58) + 0.3 * y(53) - 9.4284 * y(51) * y(52) + 1.2 * y(54)
 + 9.9999 * y(43) * y(66) - 0.5 * y(52) - 9.4284 * y(44) * y(52) + 1.2 * y(53) + 0.3 * y(53) - 9.4284 * y(51) * y(52) + 1.2 * y(54) + 0.3 * y(54)
 + 9.4284 * y(44) * y(52) - 1.2 * y(53) - 0.3 * y(53)
 + 9.4284 * y(51) * y(52) - 1.2 * y(54) - 0.3 * y(54)
 - 1.9161 * y(43) * y(55) + 24 * y(56) + 6 * y(56) - 1.9161 * y(48) * y(55) + 24 * y(57) + 6 * y(57) - 1.9161 * y(51) * y(55) + 24 * y(58) + 6 * y(58) - 1.9161 * y(46) * y(55) + 24 * y(59) + 6 * y(59)
 + 1.9161 * y(43) * y(55) - 24 * y(56) - 6 * y(56)
 + 1.9161 * y(48) * y(55) - 24 * y(57) - 6 * y(57)
 + 1.9161 * y(51) * y(55) - 24 * y(58) - 6 * y(58)
 + 1.9161 * y(46) * y(55) - 24 * y(59) - 6 * y(59)
 + 0.342 * y(123) *  (y(134) + y(132) + y(133) ) - 1.36 * y(60) - 0.34 * y(60)
 - 0.198 * y(67) * y(61) + 0.08 * y(62) + 0.02 * y(62) + 6.00003 * y(33) * y(63) - 1 * y(61)
 + 0.198 * y(67) * y(61) - 0.08 * y(62) - 0.02 * y(62)
 - 6.00003 * y(33) * y(63) + 1 * y(61) - 6.00003 * y(63) *  (y(2) + y(3) + y(7) ) + 16 * y(173) + 1 * y(64) - 6.00003 * y(63) * y(74) + 36 * y(75) - 199.998 * y(63) * y(78) + 1 * y(72) + 1 * y(71)
 + 4 * y(173) - 1 * y(64) - 0.198 * y(67) * y(64) + 0.08 * y(65) + 0.02 * y(65)
 + 0.198 * y(67) * y(64) - 0.08 * y(65) - 0.02 * y(65)
 + 0.02 * y(62) - 49.4856 * y(66) * y(69) + 40 * y(70) - 0.0001 * y(66) + 0.02 * y(65) + 0.02 * y(73) - 9.9999 * y(43) * y(66) + 0.5 * y(52) + 0.02 * y(80)
 - 0.198 * y(67) * y(61) + 0.08 * y(62) + 10 * y(70) + 0.0001 * y(66) - 0.198 * y(67) * y(64) + 0.08 * y(65) - 0.198 * y(67) * y(72) + 0.08 * y(73) - 0.198 * y(67) * y(79) + 0.08 * y(80)
 + 4 * y(172) - 0.1 * y(68)
 - 49.4856 * y(66) * y(69) + 40 * y(70) + 10 * y(70) - 6.00003 * y(69) *  (y(2) + y(3) + y(7) ) + 16 * y(172) + 0.1 * y(68)
 + 49.4856 * y(66) * y(69) - 40 * y(70) - 10 * y(70)
 + 9 * y(75) - 1 * y(71)
 + 199.998 * y(63) * y(78) - 1 * y(72) - 0.198 * y(67) * y(72) + 0.08 * y(73) + 0.02 * y(73)
 + 0.198 * y(67) * y(72) - 0.08 * y(73) - 0.02 * y(73)
 - 6.00003 * y(63) * y(74) + 36 * y(75) + 9 * y(75) - 6.00003 * y(121) * y(74) + 36 * y(76) + 9 * y(76) + 60 * y(139) - 18 * y(74) * y(140) + 60 * y(140) - 18 * y(74) * y(141) - 60.0003 * y(74) * y(142) + 1 * y(143) - 6.00003 * y(153) * y(74) + 36 * y(77) + 9 * y(77)
 + 6.00003 * y(63) * y(74) - 36 * y(75) - 9 * y(75)
 + 6.00003 * y(121) * y(74) - 36 * y(76) - 9 * y(76)
 + 6.00003 * y(153) * y(74) - 36 * y(77) - 9 * y(77)
 - 199.998 * y(63) * y(78) + 1 * y(72) - 49.9995 * y(78) * y(97) + 5 * y(98) - 1000.17 * y(101) * y(78) + 0.1 * y(99) + 0.465003 * y(117) * y(162) - 10 * y(78) - 600.003 * y(78) * y(128) + 1 * y(134) - 49.9995 * y(78) * y(146) + 1 * y(145) - 720 * y(157) * y(78) + 5 * y(159)
 + 0.499977 * y(90) * y(86) - 0.1 * y(79) - 0.198 * y(67) * y(79) + 0.08 * y(80) + 0.02 * y(80)
 + 0.198 * y(67) * y(79) - 0.08 * y(80) - 0.02 * y(80)
 - 4.20003 * y(81) * buff(8) + 0.25 * y(82)
 + 4.20003 * y(81) * buff(8) - 0.25 * y(82) - 2.99997 * y(95) * y(82) + 0.8 * y(83) + 0.2 * y(83) - 1.19997 * y(85) * y(82) + 0.8 * y(84) + 0.2 * y(84) - 0.002 * y(82) + 0.00033 * y(87)
 + 2.99997 * y(95) * y(82) - 0.8 * y(83) - 0.2 * y(83)
 + 1.19997 * y(85) * y(82) - 0.8 * y(84) - 0.2 * y(84)
 + 0.0016667 * y(86) - 1.19997 * y(85) * y(82) + 0.8 * y(84)
 - 0.0016667 * y(86) - 0.499977 * y(90) * y(86) + 0.1 * y(79) + 0.2 * y(84)
 + 0.002 * y(82) - 0.00033 * y(87)
 + 0.0250002 * y(91) * y(89) - 0.0168 * y(88)
 - 0.0250002 * y(89) * y(92) + 0.0168 * y(90) - 0.0250002 * y(91) * y(89) + 0.0168 * y(88)
 + 0.0250002 * y(89) * y(92) - 0.0168 * y(90) - 0.499977 * y(90) * y(86) + 0.1 * y(79)
 + 10 * y(25) - 0.0250002 * y(91) * y(89) + 0.0168 * y(88) - 0.001 * y(91)
 - 0.0250002 * y(89) * y(92) + 0.0168 * y(90) - 19.5003 * y(92) * y(22) + 40 * y(25) + 0.001 * y(91)
 - 180 * y(93) * y(162) + 10 * y(95)
 - 11.9997 * y(162) * y(94) + 10 * y(96)
 + 180 * y(93) * y(162) - 10 * y(95) - 2.99997 * y(95) * y(82) + 0.8 * y(83) + 0.05 * y(96)
 + 11.9997 * y(162) * y(94) - 10 * y(96) + 0.2 * y(83) - 0.05 * y(96)
 - 49.9995 * y(78) * y(97) + 5 * y(98) + 0.35 * y(110) + 0.35 * y(112) - 0.003 * y(97)
 + 49.9995 * y(78) * y(97) - 5 * y(98) + 0.35 * y(108) - 0.0220068 * y(98) *  (y(98) + y(99) ) + 2 * y(104) - 0.0142857 * y(98) *  (y(101) + y(100) ) + 2 * y(106)
 + 1000.17 * y(101) * y(78) - 0.1 * y(99) - 0.343197 * y(99) * y(107) + 1.4 * y(108) + 0.5 * y(104) + 0.5 * y(106)
 - 0.343197 * y(100) * y(107) + 1.4 * y(109) - 0.343197 * y(100) * y(107) + 1.4 * y(111) + 6 * y(103) + 6 * y(105)
 - 1000.17 * y(101) * y(78) + 0.1 * y(99) + 0.35 * y(109) - 0.343197 * y(101) * y(107) + 1.4 * y(112) + 0.003 * y(97) - 0.264087 * y(101) *  (y(98) + y(99) ) + 24 * y(103) - 0.171423 * y(101) *  (y(101) + y(100) ) + 24 * y(105)
 - 0.343197 * y(102) * y(107) + 1.4 * y(110) + 0.35 * y(111)
 + 0.264087 * y(101) *  (y(98) + y(99) ) - 24 * y(103) - 6 * y(103)
 + 0.0220068 * y(98) *  (y(98) + y(99) ) - 2 * y(104) - 0.5 * y(104)
 + 0.171423 * y(101) *  (y(101) + y(100) ) - 24 * y(105) - 6 * y(105)
 + 0.0142857 * y(98) *  (y(101) + y(100) ) - 2 * y(106) - 0.5 * y(106)
 - 0.343197 * y(99) * y(107) + 1.4 * y(108) + 0.35 * y(108) - 0.343197 * y(100) * y(107) + 1.4 * y(109) + 0.35 * y(109) - 0.343197 * y(102) * y(107) + 1.4 * y(110) + 0.35 * y(110) - 0.343197 * y(101) * y(107) + 1.4 * y(112) + 0.35 * y(112) - 0.343197 * y(100) * y(107) + 1.4 * y(111) + 0.35 * y(111) - 499.977 * y(122) * y(107) + 0.1 * y(123) + 1 * y(124)
 + 0.343197 * y(99) * y(107) - 1.4 * y(108) - 0.35 * y(108)
 + 0.343197 * y(100) * y(107) - 1.4 * y(109) - 0.35 * y(109)
 + 0.343197 * y(102) * y(107) - 1.4 * y(110) - 0.35 * y(110)
 + 0.343197 * y(100) * y(107) - 1.4 * y(111) - 0.35 * y(111)
 + 0.343197 * y(101) * y(107) - 1.4 * y(112) - 0.35 * y(112)
 - 72.0001 * y(113) * y(162)*y(162) + 72 * y(118) - 0.299997 * y(116) * y(113) + 1 * y(114) + 0.35 * y(175)
 + 0.299997 * y(116) * y(113) - 1 * y(114) - 0.0612 * y(114) *  (y(2) + y(3) + y(7) ) + 1.4 * y(175)
 - 0.333603 * y(115) *  (y(134) + y(132) + y(133) ) + 2.67 * y(119) + 0.58 * y(174) + 0.35 * y(175) - 0.005 * y(115)
 + 0.67 * y(119) - 0.299997 * y(116) * y(113) + 1 * y(114) - 0.101997 * y(116) *  (y(2) + y(3) + y(7) ) + 2.34 * y(174) + 0.005 * y(115)
 + 3.6 * y(118) * y(162) - 10 * y(117) - 0.465003 * y(117) * y(162) + 10 * y(78) - 2.23803 * y(117) * y(128) + 1 * y(132)
 + 72.0001 * y(113) * y(162)*y(162) - 72 * y(118) - 3.6 * y(118) * y(162) + 10 * y(117) - 0.240003 * y(128) * y(118) + 1 * y(133)
 + 0.333603 * y(115) *  (y(134) + y(132) + y(133) ) - 2.67 * y(119) - 0.67 * y(119)
 + 0.342 * y(122) *  (y(134) + y(132) + y(133) ) - 1.36 * y(120) - 0.34 * y(120)
 - 6.00003 * y(121) * y(74) + 36 * y(76) + 0.034 * y(129) + 0.34 * y(120) + 6 * y(126) + 1 * y(124)
 - 499.977 * y(122) * y(107) + 0.1 * y(123) + 9 * y(76) - 0.0342 * y(122) * y(128) + 0.136 * y(129) - 0.342 * y(122) *  (y(134) + y(132) + y(133) ) + 1.36 * y(120) - 3.96 * y(122) * y(125) + 25 * y(126)
 + 499.977 * y(122) * y(107) - 0.1 * y(123) - 3.96 * y(123) * y(125) + 25 * y(127) - 0.342 * y(123) *  (y(134) + y(132) + y(133) ) + 1.36 * y(60)
 - 1 * y(124) + 6 * y(127) + 0.34 * y(60)
 - 3.96 * y(122) * y(125) + 25 * y(126) + 6 * y(126) - 3.96 * y(123) * y(125) + 25 * y(127) + 6 * y(127)
 + 3.96 * y(122) * y(125) - 25 * y(126) - 6 * y(126)
 + 3.96 * y(123) * y(125) - 25 * y(127) - 6 * y(127)
 - 0.0342 * y(122) * y(128) + 0.136 * y(129) + 0.034 * y(129) + 3.59996 * y(162)*y(162) * y(131) - 1 * y(128) - 0.240003 * y(128) * y(118) + 1 * y(133) - 600.003 * y(78) * y(128) + 1 * y(134) - 2.23803 * y(117) * y(128) + 1 * y(132)
 + 0.0342 * y(122) * y(128) - 0.136 * y(129) - 0.034 * y(129)
 - 10008.4 * y(130) * y(162)*y(162) + 1 * y(131)
 + 10008.4 * y(130) * y(162)*y(162) - 1 * y(131) - 3.59996 * y(162)*y(162) * y(131) + 1 * y(128)
 + 2.23803 * y(117) * y(128) - 1 * y(132)
 + 0.240003 * y(128) * y(118) - 1 * y(133)
 + 600.003 * y(78) * y(128) - 1 * y(134)
 - 54 * y(135) * y(144) + 33 * y(136)
 + 54 * y(135) * y(144) - 33 * y(136) - 54 * y(136) * y(144) + 33 * y(137)
 + 54 * y(136) * y(144) - 33 * y(137) - 74.9997 * y(137) * y(144) + 110 * y(138)
 + 74.9997 * y(137) * y(144) - 110 * y(138) - 74.9997 * y(144) * y(138) + 32.5 * y(139)
 + 74.9997 * y(144) * y(138) - 32.5 * y(139) - 60 * y(139) + 18 * y(74) * y(140)
 + 60 * y(139) - 18 * y(74) * y(140) - 60 * y(140) + 18 * y(74) * y(141)
 + 60 * y(140) - 18 * y(74) * y(141)
 - 60.0003 * y(74) * y(142) + 1 * y(143)
 + 60.0003 * y(74) * y(142) - 1 * y(143)
 - 54 * y(135) * y(144) + 33 * y(136) - 54 * y(136) * y(144) + 33 * y(137) - 74.9997 * y(137) * y(144) + 110 * y(138) - 74.9997 * y(144) * y(138) + 32.5 * y(139) + 7 * y(147) * buff(9) / ( 20.1153 + buff(9) ) + 18 * y(148) * buff(9) / ( 20 + buff(9) ) + 18 * y(145) * buff(9) / ( 20 + buff(9) ) + 18 * y(150) * buff(9) / ( 20 + buff(9) ) + 54 * y(152) * buff(9) / ( 60 + buff(9) ) - 5.04 * y(144) * y(155) + 80 * y(156) - 2.52 * y(144) * y(153) + 40 * y(154) - 0.209997 * y(144) * y(157) + 6.67 * y(158) - 1.26 * y(144) * y(159) + 40 * y(160)
 + 49.9995 * y(78) * y(146) - 1 * y(145)
 - 49.9995 * y(78) * y(146) + 1 * y(145) - 126 * y(161) * y(146) + 1 * y(150)
 + 4 * y(176) - 0.1 * y(147) - 833.283 * y(161) * y(147) + 1 * y(152)
 + 499.995 * y(149) * y(161) - 1 * y(148)
 - 499.995 * y(149) * y(161) + 1 * y(148) - 0.600003 * y(149) *  (y(2) + y(3) + y(7) ) + 16 * y(176) + 0.1 * y(147)
 + 126 * y(161) * y(146) - 1 * y(150)
 + 1.2e+07 * y(156) + 6e+06 * y(154) + 6e+06 * y(160) + 1.0002e+06 * y(158)
 + 833.283 * y(161) * y(147) - 1 * y(152)
 - 2.52 * y(144) * y(153) + 40 * y(154) + 10 * y(154) + 0.1 * y(155) - 6.00003 * y(153) * y(74) + 36 * y(77)
 + 2.52 * y(144) * y(153) - 40 * y(154) - 10 * y(154)
 - 5.04 * y(144) * y(155) + 80 * y(156) + 20 * y(156) - 0.1 * y(155) + 9 * y(77)
 + 5.04 * y(144) * y(155) - 80 * y(156) - 20 * y(156)
 - 0.209997 * y(144) * y(157) + 6.67 * y(158) + 1.667 * y(158) - 720 * y(157) * y(78) + 5 * y(159)
 + 0.209997 * y(144) * y(157) - 6.67 * y(158) - 1.667 * y(158)
 - 1.26 * y(144) * y(159) + 40 * y(160) + 10 * y(160) + 720 * y(157) * y(78) - 5 * y(159)
 + 1.26 * y(144) * y(159) - 40 * y(160) - 10 * y(160)
 - 499.995 * y(149) * y(161) + 1 * y(148) - 126 * y(161) * y(146) + 1 * y(150) - 833.283 * y(161) * y(147) + 1 * y(152)
 - 0.600003 * y(6) * y(162) + 0.5 * y(1) - 0.99999 * y(10) * y(162) + 0.1 * y(11) - 6.00003 * y(21) * y(162) + 0.1 * y(19) - 2.99997 * y(162) * y(27) + 1 * y(28) - 29.9997 * y(162) * y(32) + 1 * y(30) - 180 * y(93) * y(162) + 10 * y(95) - 11.9997 * y(162) * y(94) + 10 * y(96) - 144 * y(113) * y(162)*y(162) + 144 * y(118) - 3.6 * y(118) * y(162) + 10 * y(117) - 0.465003 * y(117) * y(162) + 10 * y(78) - 7.19993 * y(162)*y(162) * y(131) + 2 * y(128) - 20016.7 * y(130) * y(162)*y(162) + 2 * y(131) + 100 * y(163) - 100 * y(162) - 0.200005 * y(177) * y(162)*y(162) + 0.8 * y(180)
 - 100 * y(163) + 100 * y(162)
 - 0.00500004 * buff(10) * y(164) + 0.016 * y(165) + 0.004 * y(165) + 0.000250002 * y(22)*y(22) - 0.001 * y(164)
 + 0.00500004 * buff(10) * y(164) - 0.016 * y(165) - 0.004 * y(165)
 - 1.99998 * y(47) * y(166) + 16 * y(168) + 4 * y(168) - 1.99998 * y(22) * y(166) + 16 * y(167) + 4 * y(167) - 0.0005 * y(166) + 0.01 * y(170)
 + 1.99998 * y(22) * y(166) - 16 * y(167) - 4 * y(167)
 + 1.99998 * y(47) * y(166) - 16 * y(168) - 4 * y(168)
 - 0.250002 * buff(12) * y(169) + 0.04 * y(170) + 0.01 * y(170) + 0.004 * y(165) + 1e-06 * buff(10) - 0.001 * y(169)
 + 0.250002 * buff(12) * y(169) - 0.04 * y(170) - 0.01 * y(170)
 + 0.99999 * y(42) *  (y(2) + y(3) + y(7) ) - 16 * y(171) - 4 * y(171)
 + 6.00003 * y(69) *  (y(2) + y(3) + y(7) ) - 16 * y(172) - 4 * y(172)
 + 6.00003 * y(63) *  (y(2) + y(3) + y(7) ) - 16 * y(173) - 4 * y(173)
 + 0.101997 * y(116) *  (y(2) + y(3) + y(7) ) - 2.34 * y(174) - 0.58 * y(174)
 + 0.0612 * y(114) *  (y(2) + y(3) + y(7) ) - 1.4 * y(175) - 0.35 * y(175)
 + 0.600003 * y(149) *  (y(2) + y(3) + y(7) ) - 16 * y(176) - 4 * y(176)
 - 0.100003 * y(177) * y(162)*y(162) + 0.4 * y(180)
 - 0.0250002 * buff(13) * y(178) + 0.2 * y(179) + 0.05 * y(179) + 0.2 * y(181) - 0.001 * y(178)
 + 0.0250002 * buff(13) * y(178) - 0.2 * y(179) - 0.05 * y(179)
 - 0.199998 * y(182) * y(180) + 0.8 * y(181) + 0.2 * y(181) + 0.100003 * y(177) * y(162)*y(162) - 0.4 * y(180)
 + 0.199998 * y(182) * y(180) - 0.8 * y(181) - 0.2 * y(181)
 - 0.199998 * y(182) * y(180) + 0.8 * y(181) + 0.001 * y(178)
];

% end of model
