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

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

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

% 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(:,174));
plot(t,y(:,111));
plot(t,y(:,7));
 + plot(t, (y(:,109) + y(:,110) ));
 + plot(t, (y(:,112) + y(:,111) ));
plot(t,y(:,28));
plot(t,y(:,85));
 +  + plot(t, (y(:,2) + y(:,3) + y(:,7) ));
plot(t,y(:,118));
plot(t,y(:,64));
plot(t,y(:,89));

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

% end of model
