Generated Code

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

The raw code is available.

/*
   There are a total of 11 entries in the algebraic variable array.
   There are a total of 2 entries in each of the rate and state variable arrays.
   There are a total of 561 entries in the constant variable array.
 */
/*
 * CONSTANTS[0] is VPF in component input_values (litre).
 * CONSTANTS[1] is DOB in component input_values (mL_per_minute).
 * CONSTANTS[2] is RMO in component input_values (mL_per_minute).
 * CONSTANTS[3] is QRO in component input_values (L_per_minute).
 * CONSTANTS[4] is HM in component input_values (dimensionless).
 * CONSTANTS[5] is A1K in component parameter_values (minute).
 * CONSTANTS[6] is A2K in component parameter_values (minute).
 * CONSTANTS[7] is A3K in component parameter_values (minute).
 * CONSTANTS[8] is A4K in component parameter_values (minute).
 * CONSTANTS[9] is A4K2 in component parameter_values (minute).
 * CONSTANTS[10] is AARK in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[11] is AARLL in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[12] is ADHINF in component parameter_values (dimensionless).
 * CONSTANTS[13] is ADHKLL in component parameter_values (dimensionless).
 * CONSTANTS[14] is ADHKUL in component parameter_values (dimensionless).
 * CONSTANTS[15] is ADHPAM in component parameter_values (per_mmHg2).
 * CONSTANTS[16] is ADHPUL in component parameter_values (mmHg).
 * CONSTANTS[17] is ADHTC in component parameter_values (minute).
 * CONSTANTS[18] is ADHVLL in component parameter_values (dimensionless).
 * CONSTANTS[19] is ADHVUL in component parameter_values (dimensionless).
 * CONSTANTS[20] is AH10 in component parameter_values (dimensionless).
 * CONSTANTS[21] is AH11 in component parameter_values (minute).
 * CONSTANTS[22] is AH9 in component parameter_values (per_mmHg).
 * CONSTANTS[23] is AHMNAR in component parameter_values (dimensionless).
 * CONSTANTS[24] is AHTHM in component parameter_values (dimensionless).
 * CONSTANTS[25] is ALCLK in component parameter_values (dimensionless).
 * CONSTANTS[26] is ALDINF in component parameter_values (dimensionless).
 * CONSTANTS[27] is ALDKNS in component parameter_values (dimensionless).
 * CONSTANTS[28] is ALDMM in component parameter_values (dimensionless).
 * CONSTANTS[29] is AM1LL in component parameter_values (dimensionless).
 * CONSTANTS[30] is AM1UL in component parameter_values (dimensionless).
 * CONSTANTS[31] is AMCSNS in component parameter_values (dimensionless).
 * CONSTANTS[32] is AMKM in component parameter_values (dimensionless).
 * CONSTANTS[33] is AMKMUL in component parameter_values (dimensionless).
 * CONSTANTS[34] is AMM1LM in component parameter_values (dimensionless).
 * CONSTANTS[35] is AMM4 in component parameter_values (dimensionless).
 * CONSTANTS[36] is AMNALL in component parameter_values (dimensionless).
 * CONSTANTS[37] is AMNAM in component parameter_values (dimensionless).
 * CONSTANTS[38] is AMNAUL in component parameter_values (dimensionless).
 * CONSTANTS[39] is AMT in component parameter_values (minute).
 * CONSTANTS[40] is ANCSNS in component parameter_values (dimensionless).
 * CONSTANTS[41] is ANGINF in component parameter_values (dimensionless).
 * CONSTANTS[42] is ANGKNS in component parameter_values (dimensionless).
 * CONSTANTS[43] is ANMALD in component parameter_values (dimensionless).
 * CONSTANTS[44] is ANMAM in component parameter_values (dimensionless).
 * CONSTANTS[45] is ANMARL in component parameter_values (dimensionless).
 * CONSTANTS[46] is ANMEM in component parameter_values (dimensionless).
 * CONSTANTS[47] is ANMKEL in component parameter_values (dimensionless).
 * CONSTANTS[48] is ANMKEM in component parameter_values (dimensionless).
 * CONSTANTS[49] is ANMLL in component parameter_values (dimensionless).
 * CONSTANTS[50] is ANMNAM in component parameter_values (dimensionless).
 * CONSTANTS[51] is ANMSLT in component parameter_values (dimensionless).
 * CONSTANTS[52] is ANMTM in component parameter_values (dimensionless).
 * CONSTANTS[53] is ANMUL in component parameter_values (dimensionless).
 * CONSTANTS[54] is ANPTC in component parameter_values (minute).
 * CONSTANTS[55] is ANPXAF in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[56] is ANPXUL in component parameter_values (dimensionless).
 * CONSTANTS[57] is ANT in component parameter_values (minute).
 * CONSTANTS[58] is ANULL in component parameter_values (dimensionless).
 * CONSTANTS[59] is ANUM in component parameter_values (dimensionless).
 * CONSTANTS[60] is ANUVM in component parameter_values (dimensionless).
 * CONSTANTS[61] is ANV in component parameter_values (minute).
 * CONSTANTS[62] is ANXM in component parameter_values (dimensionless).
 * CONSTANTS[63] is ANY in component parameter_values (litre).
 * CONSTANTS[64] is AR1LM in component parameter_values (dimensionless).
 * CONSTANTS[65] is AR2LM in component parameter_values (dimensionless).
 * CONSTANTS[66] is ARF in component parameter_values (dimensionless).
 * CONSTANTS[67] is AUC1 in component parameter_values (dimensionless).
 * CONSTANTS[68] is AUDMP in component parameter_values (minute).
 * CONSTANTS[69] is AUK in component parameter_values (per_minute).
 * CONSTANTS[70] is AUL in component parameter_values (litre).
 * CONSTANTS[71] is AULPM in component parameter_values (dimensionless).
 * CONSTANTS[72] is AUM1 in component parameter_values (dimensionless).
 * CONSTANTS[73] is AUM2 in component parameter_values (dimensionless).
 * CONSTANTS[74] is AUMAX in component parameter_values (dimensionless).
 * CONSTANTS[75] is AUMIN in component parameter_values (dimensionless).
 * CONSTANTS[76] is AUMK1 in component parameter_values (dimensionless).
 * CONSTANTS[77] is AUN1 in component parameter_values (dimensionless).
 * CONSTANTS[78] is AURG in component parameter_values (dimensionless).
 * CONSTANTS[79] is AUS in component parameter_values (dimensionless).
 * CONSTANTS[80] is AUSLP in component parameter_values (dimensionless).
 * CONSTANTS[81] is AUTO in component parameter_values (dimensionless).
 * CONSTANTS[82] is AUTOGN in component parameter_values (dimensionless).
 * CONSTANTS[83] is AUTOSN in component parameter_values (dimensionless).
 * CONSTANTS[84] is AUX in component parameter_values (dimensionless).
 * CONSTANTS[85] is BAROTC in component parameter_values (minute).
 * CONSTANTS[86] is CFC in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[87] is CKEEX in component parameter_values (dimensionless).
 * CONSTANTS[88] is CMPTSS in component parameter_values (dimensionless).
 * CONSTANTS[89] is CN2 in component parameter_values (per_mmHg).
 * CONSTANTS[90] is CN7 in component parameter_values (dimensionless).
 * CONSTANTS[91] is CNR in component parameter_values (monovalent_mEq_per_litre).
 * CONSTANTS[92] is CPF in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[93] is CPK in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[94] is CPR in component parameter_values (gram_per_L).
 * CONSTANTS[95] is CV in component parameter_values (L_per_mmHg).
 * CONSTANTS[96] is CRRFLX in component parameter_values (mmHg).
 * CONSTANTS[97] is DIURET in component parameter_values (dimensionless).
 * CONSTANTS[98] is DHDTR in component parameter_values (per_mmHg_per_minute).
 * CONSTANTS[99] is DTNAR in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[100] is DTNARL in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[101] is EARK in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[102] is EARLL in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[103] is EFAFR in component parameter_values (dimensionless).
 * CONSTANTS[104] is EXC in component parameter_values (dimensionless).
 * CONSTANTS[105] is EXCML in component parameter_values (dimensionless).
 * CONSTANTS[106] is EXCXP in component parameter_values (dimensionless).
 * CONSTANTS[107] is EXCXP2 in component parameter_values (dimensionless).
 * CONSTANTS[108] is EXE in component parameter_values (mmHg).
 * CONSTANTS[109] is GCOPF in component parameter_values (per_mmHg).
 * CONSTANTS[110] is GFLC in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[111] is GFNDMP in component parameter_values (dimensionless).
 * CONSTANTS[112] is GFNLL in component parameter_values (L_per_minute).
 * CONSTANTS[113] is GPPD in component parameter_values (dimensionless).
 * CONSTANTS[114] is HM6 in component parameter_values (mmHg).
 * CONSTANTS[115] is HM8 in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[116] is HTAUML in component parameter_values (dimensionless).
 * CONSTANTS[117] is KORGN in component parameter_values (dimensionless).
 * CONSTANTS[118] is KORNER in component parameter_values (dimensionless).
 * CONSTANTS[119] is KORREN in component parameter_values (dimensionless).
 * CONSTANTS[120] is KORTC in component parameter_values (minute).
 * CONSTANTS[121] is LPDE in component parameter_values (dimensionless).
 * CONSTANTS[122] is LPK in component parameter_values (L_per_minute).
 * CONSTANTS[123] is LPPR in component parameter_values (gram_per_minute).
 * CONSTANTS[124] is MDFL1 in component parameter_values (dimensionless).
 * CONSTANTS[125] is MDFLKM in component parameter_values (monovalent_mEq_per_litre).
 * CONSTANTS[126] is MDFLW2 in component parameter_values (dimensionless).
 * CONSTANTS[127] is MDFLWX in component parameter_values (dimensionless).
 * CONSTANTS[128] is MDMP in component parameter_values (dimensionless).
 * CONSTANTS[129] is O2A in component parameter_values (dimensionless).
 * CONSTANTS[130] is O2CHMO in component parameter_values (per_mmHg).
 * CONSTANTS[131] is OMM in component parameter_values (mL_per_minute).
 * CONSTANTS[132] is PA4 in component parameter_values (dimensionless).
 * CONSTANTS[133] is PAEX in component parameter_values (dimensionless).
 * CONSTANTS[134] is PCE in component parameter_values (dimensionless).
 * CONSTANTS[135] is PCR in component parameter_values (mmHg).
 * CONSTANTS[136] is PR1LL in component parameter_values (mmHg).
 * CONSTANTS[137] is PGHF in component parameter_values (L_mmHg_per_gram).
 * CONSTANTS[138] is PK2 in component parameter_values (mmHg_per_mL).
 * CONSTANTS[139] is PL2 in component parameter_values (L_mL_per_minute_per_mmHg).
 * CONSTANTS[140] is PLDF in component parameter_values (mmHg).
 * CONSTANTS[141] is PM5 in component parameter_values (per_mmHg).
 * CONSTANTS[142] is PO2ADV in component parameter_values (dimensionless).
 * CONSTANTS[143] is POK in component parameter_values (dimensionless).
 * CONSTANTS[144] is POM in component parameter_values (dimensionless).
 * CONSTANTS[145] is POM2 in component parameter_values (dimensionless).
 * CONSTANTS[146] is PON in component parameter_values (dimensionless).
 * CONSTANTS[147] is POR in component parameter_values (mmHg).
 * CONSTANTS[148] is POZ in component parameter_values (dimensionless).
 * CONSTANTS[149] is PXTP in component parameter_values (mmHg).
 * CONSTANTS[150] is QAOLM in component parameter_values (dimensionless).
 * CONSTANTS[151] is QRF in component parameter_values (L_per_minute).
 * CONSTANTS[152] is RABSC in component parameter_values (per_mmHg).
 * CONSTANTS[153] is RAM in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[154] is RAPRSP in component parameter_values (mmHg).
 * CONSTANTS[155] is RAR in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[156] is RCDFDP in component parameter_values (minute).
 * CONSTANTS[157] is RCDFPC in component parameter_values (dimensionless).
 * CONSTANTS[158] is REK in component parameter_values (dimensionless).
 * CONSTANTS[159] is RFABKM in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[160] is RFABDM in component parameter_values (dimensionless).
 * CONSTANTS[161] is RFABDP in component parameter_values (dimensionless).
 * CONSTANTS[162] is RFCDFT in component parameter_values (dimensionless).
 * CONSTANTS[163] is RKC in component parameter_values (per_minute).
 * CONSTANTS[164] is RNAGTC in component parameter_values (minute).
 * CONSTANTS[165] is RNAUAD in component parameter_values (per_minute).
 * CONSTANTS[166] is RPS in component parameter_values (dimensionless).
 * CONSTANTS[167] is RTPPR in component parameter_values (dimensionless).
 * CONSTANTS[168] is RTPPRS in component parameter_values (mmHg).
 * CONSTANTS[169] is RTSPRS in component parameter_values (mmHg).
 * CONSTANTS[170] is RVRS in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[171] is RVSM in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[172] is SR in component parameter_values (dimensionless).
 * CONSTANTS[173] is SR2 in component parameter_values (dimensionless).
 * CONSTANTS[174] is SRK in component parameter_values (minute).
 * CONSTANTS[175] is SRK2 in component parameter_values (minute).
 * CONSTANTS[176] is STA in component parameter_values (dimensionless).
 * CONSTANTS[177] is TENSGN in component parameter_values (dimensionless).
 * CONSTANTS[178] is TENSTC in component parameter_values (minute).
 * CONSTANTS[179] is TIMETR in component parameter_values (minute).
 * CONSTANTS[180] is TRNSFS in component parameter_values (dimensionless).
 * CONSTANTS[181] is TRPL in component parameter_values (L_per_minute).
 * CONSTANTS[182] is TSSLML in component parameter_values (dimensionless).
 * CONSTANTS[183] is TSSLTC in component parameter_values (per_minute).
 * CONSTANTS[184] is TVDDL in component parameter_values (minute).
 * CONSTANTS[185] is U in component parameter_values (dimensionless).
 * CONSTANTS[186] is VID1 in component parameter_values (L_per_minute).
 * CONSTANTS[187] is VIDML in component parameter_values (litre2_per_monovalent_mEq_per_minute).
 * CONSTANTS[188] is VNTSTM in component parameter_values (dimensionless).
 * CONSTANTS[189] is VP1 in component parameter_values (dimensionless).
 * CONSTANTS[190] is VPTISS in component parameter_values (litre).
 * CONSTANTS[191] is VTSF in component parameter_values (litre).
 * CONSTANTS[192] is VV9 in component parameter_values (litre).
 * CONSTANTS[193] is X in component parameter_values (dimensionless).
 * CONSTANTS[194] is Z in component parameter_values (dimensionless).
 * CONSTANTS[195] is Z4 in component parameter_values (dimensionless).
 * CONSTANTS[196] is Z5 in component parameter_values (dimensionless).
 * CONSTANTS[197] is Z6 in component parameter_values (dimensionless).
 * CONSTANTS[198] is Z7 in component parameter_values (dimensionless).
 * CONSTANTS[199] is Z10 in component parameter_values (mmHg).
 * CONSTANTS[200] is Z11 in component parameter_values (per_mmHg2).
 * CONSTANTS[201] is Z12 in component parameter_values (dimensionless).
 * CONSTANTS[202] is Z13 in component parameter_values (dimensionless).
 * CONSTANTS[203] is Z14 in component parameter_values (dimensionless).
 * CONSTANTS[204] is Z16 in component parameter_values (dimensionless).
 * CONSTANTS[205] is Z18 in component parameter_values (dimensionless).
 * CONSTANTS[206] is Z19 in component parameter_values (dimensionless).
 * CONSTANTS[207] is KID in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[208] is URFORM in component parameter_values (mOsm_per_minute).
 * CONSTANTS[209] is AUV in component parameter_values (dimensionless).
 * CONSTANTS[210] is AUY in component parameter_values (dimensionless).
 * CONSTANTS[211] is O2M in component parameter_values (mL_per_minute).
 * CONSTANTS[212] is NID in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[213] is ATRFBM in component parameter_values (dimensionless).
 * CONSTANTS[214] is GBL in component parameter_values (mmHg).
 * CONSTANTS[215] is RNAUGN in component parameter_values (minute_per_L).
 * CONSTANTS[216] is RNAULL in component parameter_values (dimensionless).
 * CONSTANTS[217] is RNAUUL in component parameter_values (dimensionless).
 * CONSTANTS[218] is HSR in component parameter_values (dimensionless).
 * CONSTANTS[219] is HSL in component parameter_values (dimensionless).
 * CONSTANTS[220] is HMK in component parameter_values (dimensionless).
 * CONSTANTS[221] is PO2AMB in component parameter_values (mmHg).
 * CONSTANTS[222] is HKM in component parameter_values (dimensionless).
 * CONSTANTS[223] is DR in component parameter_values (L_per_minute).
 * CONSTANTS[224] is ANPKNS in component parameter_values (dimensionless).
 * CONSTANTS[225] is RMULT1 in component parameter_values (dimensionless).
 * CONSTANTS[226] is GLPCA in component parameter_values (mmHg).
 * CONSTANTS[227] is RFN in component parameter_values (L_per_minute).
 * CONSTANTS[228] is RFABX in component parameter_values (dimensionless).
 * CONSTANTS[229] is ANPINF in component parameter_values (dimensionless).
 * CONSTANTS[230] is FIS in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[231] is CPPD in component parameter_values (gram_per_L).
 * CONSTANTS[232] is TRRBC in component parameter_values (L_per_minute).
 * CONSTANTS[233] is HYL in component parameter_values (gram).
 * CONSTANTS[234] is ATRVM in component parameter_values (litre).
 * CONSTANTS[235] is ADHC_init in component state_variables (dimensionless).
 * CONSTANTS[236] is AHY_init in component state_variables (dimensionless).
 * CONSTANTS[237] is AMC_init in component state_variables (dimensionless).
 * CONSTANTS[238] is AMM1T_init in component state_variables (dimensionless).
 * CONSTANTS[239] is AMM2_init in component state_variables (dimensionless).
 * CONSTANTS[240] is ANC_init in component state_variables (dimensionless).
 * CONSTANTS[241] is ANPC_init in component state_variables (dimensionless).
 * CONSTANTS[242] is ANX1_init in component state_variables (dimensionless).
 * CONSTANTS[243] is AR1T_init in component state_variables (dimensionless).
 * CONSTANTS[244] is AR2T_init in component state_variables (dimensionless).
 * CONSTANTS[245] is AR3T_init in component state_variables (dimensionless).
 * CONSTANTS[246] is AU1_init in component state_variables (dimensionless).
 * CONSTANTS[247] is AU4_init in component state_variables (dimensionless).
 * CONSTANTS[248] is AU6_init in component state_variables (dimensionless).
 * CONSTANTS[249] is DTKA_init in component state_variables (monovalent_mEq_per_minute).
 * CONSTANTS[250] is HMD1_init in component state_variables (dimensionless).
 * CONSTANTS[251] is HPL_init in component state_variables (dimensionless).
 * CONSTANTS[252] is HPR_init in component state_variables (dimensionless).
 * CONSTANTS[253] is KTOT_init in component state_variables (monovalent_mEq).
 * CONSTANTS[254] is NAE_init in component state_variables (monovalent_mEq).
 * CONSTANTS[255] is O2VAD1_init in component state_variables (dimensionless).
 * CONSTANTS[256] is OSV_init in component state_variables (dimensionless).
 * CONSTANTS[257] is OVA_init in component state_variables (mL_per_L).
 * CONSTANTS[258] is OVS_init in component state_variables (dimensionless).
 * CONSTANTS[259] is PAR1_init in component state_variables (mmHg).
 * CONSTANTS[260] is PC_init in component state_variables (mmHg).
 * CONSTANTS[261] is PLUR_init in component state_variables (mOsm).
 * CONSTANTS[262] is PPR1_init in component state_variables (gram).
 * CONSTANTS[263] is PRP_init in component state_variables (gram).
 * CONSTANTS[264] is QO2T_init in component state_variables (mL).
 * CONSTANTS[265] is QOM1_init in component state_variables (mL).
 * CONSTANTS[266] is RNAUG3_init in component state_variables (dimensionless).
 * CONSTANTS[267] is TSP_init in component state_variables (gram).
 * CONSTANTS[268] is TVD_init in component state_variables (L_per_minute).
 * CONSTANTS[269] is VAS1_init in component state_variables (litre).
 * CONSTANTS[270] is VIC_init in component state_variables (litre).
 * CONSTANTS[271] is VLA1_init in component state_variables (litre).
 * CONSTANTS[272] is VPA1_init in component state_variables (litre).
 * CONSTANTS[273] is VPF1_init in component state_variables (litre).
 * CONSTANTS[274] is VP_init in component state_variables (litre).
 * CONSTANTS[275] is VRA1_init in component state_variables (litre).
 * CONSTANTS[276] is VRC_init in component state_variables (litre).
 * CONSTANTS[277] is VTS2_init in component state_variables (litre).
 * CONSTANTS[278] is VTW_init in component state_variables (litre).
 * CONSTANTS[279] is VV6_init in component state_variables (litre).
 * CONSTANTS[280] is VV7_init in component state_variables (litre).
 * CONSTANTS[281] is VVS1_init in component state_variables (litre).
 * VOI is time in component environment (minute).
 * STATES[0] is OVA in component O2_volume_of_arterial_blood (mL_per_L).
 * ALGEBRAIC[1] is PO2ART in component arterial_PO2 (mmHg).
 * ALGEBRAIC[0] is OSA in component arterial_PO2 (dimensionless).
 * CONSTANTS[282] is A1K in component parameter_values (minute).
 * CONSTANTS[283] is A2K in component parameter_values (minute).
 * CONSTANTS[284] is A3K in component parameter_values (minute).
 * CONSTANTS[285] is A4K in component parameter_values (minute).
 * CONSTANTS[286] is A4K2 in component parameter_values (minute).
 * CONSTANTS[287] is AARK in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[288] is AARLL in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[289] is ADHINF in component parameter_values (dimensionless).
 * CONSTANTS[290] is ADHKLL in component parameter_values (dimensionless).
 * CONSTANTS[291] is ADHKUL in component parameter_values (dimensionless).
 * CONSTANTS[292] is ADHPAM in component parameter_values (per_mmHg2).
 * CONSTANTS[293] is ADHPUL in component parameter_values (mmHg).
 * CONSTANTS[294] is ADHTC in component parameter_values (minute).
 * CONSTANTS[295] is ADHVLL in component parameter_values (dimensionless).
 * CONSTANTS[296] is ADHVUL in component parameter_values (dimensionless).
 * CONSTANTS[297] is AH10 in component parameter_values (dimensionless).
 * CONSTANTS[298] is AH11 in component parameter_values (minute).
 * CONSTANTS[299] is AH9 in component parameter_values (per_mmHg).
 * CONSTANTS[300] is AHMNAR in component parameter_values (dimensionless).
 * CONSTANTS[301] is AHTHM in component parameter_values (dimensionless).
 * CONSTANTS[302] is ALCLK in component parameter_values (dimensionless).
 * CONSTANTS[303] is ALDINF in component parameter_values (dimensionless).
 * CONSTANTS[304] is ALDKNS in component parameter_values (dimensionless).
 * CONSTANTS[305] is ALDMM in component parameter_values (dimensionless).
 * CONSTANTS[306] is AM1LL in component parameter_values (dimensionless).
 * CONSTANTS[307] is AM1UL in component parameter_values (dimensionless).
 * CONSTANTS[308] is AMCSNS in component parameter_values (dimensionless).
 * CONSTANTS[309] is AMKM in component parameter_values (dimensionless).
 * CONSTANTS[310] is AMKMUL in component parameter_values (dimensionless).
 * CONSTANTS[311] is AMM1LM in component parameter_values (dimensionless).
 * CONSTANTS[312] is AMM4 in component parameter_values (dimensionless).
 * CONSTANTS[313] is AMNALL in component parameter_values (dimensionless).
 * CONSTANTS[314] is AMNAM in component parameter_values (dimensionless).
 * CONSTANTS[315] is AMNAUL in component parameter_values (dimensionless).
 * CONSTANTS[316] is AMT in component parameter_values (minute).
 * CONSTANTS[317] is ANCSNS in component parameter_values (dimensionless).
 * CONSTANTS[318] is ANGINF in component parameter_values (dimensionless).
 * CONSTANTS[319] is ANGKNS in component parameter_values (dimensionless).
 * CONSTANTS[320] is ANMALD in component parameter_values (dimensionless).
 * CONSTANTS[321] is ANMAM in component parameter_values (dimensionless).
 * CONSTANTS[322] is ANMARL in component parameter_values (dimensionless).
 * CONSTANTS[323] is ANMEM in component parameter_values (dimensionless).
 * CONSTANTS[324] is ANMKEL in component parameter_values (dimensionless).
 * CONSTANTS[325] is ANMKEM in component parameter_values (dimensionless).
 * CONSTANTS[326] is ANMLL in component parameter_values (dimensionless).
 * CONSTANTS[327] is ANMNAM in component parameter_values (dimensionless).
 * CONSTANTS[328] is ANMSLT in component parameter_values (dimensionless).
 * CONSTANTS[329] is ANMTM in component parameter_values (dimensionless).
 * CONSTANTS[330] is ANMUL in component parameter_values (dimensionless).
 * CONSTANTS[331] is ANPTC in component parameter_values (minute).
 * CONSTANTS[332] is ANPXAF in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[333] is ANPXUL in component parameter_values (dimensionless).
 * CONSTANTS[334] is ANT in component parameter_values (minute).
 * CONSTANTS[335] is ANULL in component parameter_values (dimensionless).
 * CONSTANTS[336] is ANUM in component parameter_values (dimensionless).
 * CONSTANTS[337] is ANUVM in component parameter_values (dimensionless).
 * CONSTANTS[338] is ANV in component parameter_values (minute).
 * CONSTANTS[339] is ANXM in component parameter_values (dimensionless).
 * CONSTANTS[340] is ANY in component parameter_values (litre).
 * CONSTANTS[341] is AR1LM in component parameter_values (dimensionless).
 * CONSTANTS[342] is AR2LM in component parameter_values (dimensionless).
 * CONSTANTS[343] is ARF in component parameter_values (dimensionless).
 * CONSTANTS[344] is AUC1 in component parameter_values (dimensionless).
 * CONSTANTS[345] is AUDMP in component parameter_values (minute).
 * CONSTANTS[346] is AUK in component parameter_values (per_minute).
 * CONSTANTS[347] is AUL in component parameter_values (litre).
 * CONSTANTS[348] is AULPM in component parameter_values (dimensionless).
 * CONSTANTS[349] is AUM1 in component parameter_values (dimensionless).
 * CONSTANTS[350] is AUM2 in component parameter_values (dimensionless).
 * CONSTANTS[351] is AUMAX in component parameter_values (dimensionless).
 * CONSTANTS[352] is AUMIN in component parameter_values (dimensionless).
 * CONSTANTS[353] is AUMK1 in component parameter_values (dimensionless).
 * CONSTANTS[354] is AUN1 in component parameter_values (dimensionless).
 * CONSTANTS[355] is AURG in component parameter_values (dimensionless).
 * CONSTANTS[356] is AUS in component parameter_values (dimensionless).
 * CONSTANTS[357] is AUSLP in component parameter_values (dimensionless).
 * CONSTANTS[358] is AUTO in component parameter_values (dimensionless).
 * CONSTANTS[359] is AUTOGN in component parameter_values (dimensionless).
 * CONSTANTS[360] is AUTOSN in component parameter_values (dimensionless).
 * CONSTANTS[361] is AUX in component parameter_values (dimensionless).
 * CONSTANTS[362] is BAROTC in component parameter_values (minute).
 * CONSTANTS[363] is CFC in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[364] is CKEEX in component parameter_values (dimensionless).
 * CONSTANTS[365] is CMPTSS in component parameter_values (dimensionless).
 * CONSTANTS[366] is CN2 in component parameter_values (per_mmHg).
 * CONSTANTS[367] is CN7 in component parameter_values (dimensionless).
 * CONSTANTS[368] is CNR in component parameter_values (monovalent_mEq_per_litre).
 * CONSTANTS[369] is CPF in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[370] is CPK in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[371] is CPR in component parameter_values (gram_per_L).
 * CONSTANTS[372] is CV in component parameter_values (L_per_mmHg).
 * CONSTANTS[373] is CRRFLX in component parameter_values (mmHg).
 * CONSTANTS[374] is DIURET in component parameter_values (dimensionless).
 * CONSTANTS[375] is DHDTR in component parameter_values (per_mmHg_per_minute).
 * CONSTANTS[376] is DTNAR in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[377] is DTNARL in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[378] is EARK in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[379] is EARLL in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[380] is EFAFR in component parameter_values (dimensionless).
 * CONSTANTS[381] is EXC in component parameter_values (dimensionless).
 * CONSTANTS[382] is EXCML in component parameter_values (dimensionless).
 * CONSTANTS[383] is EXCXP in component parameter_values (dimensionless).
 * CONSTANTS[384] is EXCXP2 in component parameter_values (dimensionless).
 * CONSTANTS[385] is EXE in component parameter_values (mmHg).
 * CONSTANTS[386] is GCOPF in component parameter_values (per_mmHg).
 * CONSTANTS[387] is GFLC in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[388] is GFNDMP in component parameter_values (dimensionless).
 * CONSTANTS[389] is GFNLL in component parameter_values (L_per_minute).
 * CONSTANTS[390] is GPPD in component parameter_values (dimensionless).
 * CONSTANTS[391] is HM6 in component parameter_values (mmHg).
 * CONSTANTS[392] is HM8 in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[393] is HTAUML in component parameter_values (dimensionless).
 * CONSTANTS[394] is KORGN in component parameter_values (dimensionless).
 * CONSTANTS[395] is KORNER in component parameter_values (dimensionless).
 * CONSTANTS[396] is KORREN in component parameter_values (dimensionless).
 * CONSTANTS[397] is KORTC in component parameter_values (minute).
 * CONSTANTS[398] is LPDE in component parameter_values (dimensionless).
 * CONSTANTS[399] is LPK in component parameter_values (L_per_minute).
 * CONSTANTS[400] is LPPR in component parameter_values (gram_per_minute).
 * CONSTANTS[401] is MDFL1 in component parameter_values (dimensionless).
 * CONSTANTS[402] is MDFLKM in component parameter_values (monovalent_mEq_per_litre).
 * CONSTANTS[403] is MDFLW2 in component parameter_values (dimensionless).
 * CONSTANTS[404] is MDFLWX in component parameter_values (dimensionless).
 * CONSTANTS[405] is MDMP in component parameter_values (dimensionless).
 * CONSTANTS[406] is O2A in component parameter_values (dimensionless).
 * CONSTANTS[407] is O2CHMO in component parameter_values (per_mmHg).
 * CONSTANTS[408] is OMM in component parameter_values (mL_per_minute).
 * CONSTANTS[409] is PA4 in component parameter_values (dimensionless).
 * CONSTANTS[410] is PAEX in component parameter_values (dimensionless).
 * CONSTANTS[411] is PCE in component parameter_values (dimensionless).
 * CONSTANTS[412] is PCR in component parameter_values (mmHg).
 * CONSTANTS[413] is PR1LL in component parameter_values (mmHg).
 * CONSTANTS[414] is PGHF in component parameter_values (L_mmHg_per_gram).
 * CONSTANTS[415] is PK2 in component parameter_values (mmHg_per_mL).
 * CONSTANTS[416] is PL2 in component parameter_values (L_mL_per_minute_per_mmHg).
 * CONSTANTS[417] is PLDF in component parameter_values (mmHg).
 * CONSTANTS[418] is PM5 in component parameter_values (per_mmHg).
 * CONSTANTS[419] is PO2ADV in component parameter_values (dimensionless).
 * CONSTANTS[420] is POK in component parameter_values (dimensionless).
 * CONSTANTS[421] is POM in component parameter_values (dimensionless).
 * CONSTANTS[422] is POM2 in component parameter_values (dimensionless).
 * CONSTANTS[423] is PON in component parameter_values (dimensionless).
 * CONSTANTS[424] is POR in component parameter_values (mmHg).
 * CONSTANTS[425] is POZ in component parameter_values (dimensionless).
 * CONSTANTS[426] is PXTP in component parameter_values (mmHg).
 * CONSTANTS[427] is QAOLM in component parameter_values (dimensionless).
 * CONSTANTS[428] is QRF in component parameter_values (L_per_minute).
 * CONSTANTS[429] is RABSC in component parameter_values (per_mmHg).
 * CONSTANTS[430] is RAM in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[431] is RAPRSP in component parameter_values (mmHg).
 * CONSTANTS[432] is RAR in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[433] is RCDFDP in component parameter_values (minute).
 * CONSTANTS[434] is RCDFPC in component parameter_values (dimensionless).
 * CONSTANTS[435] is REK in component parameter_values (dimensionless).
 * CONSTANTS[436] is RFABKM in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[437] is RFABDM in component parameter_values (dimensionless).
 * CONSTANTS[438] is RFABDP in component parameter_values (dimensionless).
 * CONSTANTS[439] is RFCDFT in component parameter_values (dimensionless).
 * CONSTANTS[440] is RKC in component parameter_values (per_minute).
 * CONSTANTS[441] is RNAGTC in component parameter_values (minute).
 * CONSTANTS[442] is RNAUAD in component parameter_values (per_minute).
 * CONSTANTS[443] is RPS in component parameter_values (dimensionless).
 * CONSTANTS[444] is RTPPR in component parameter_values (dimensionless).
 * CONSTANTS[445] is RTPPRS in component parameter_values (mmHg).
 * CONSTANTS[446] is RTSPRS in component parameter_values (mmHg).
 * CONSTANTS[447] is RVRS in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[448] is RVSM in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[449] is SR in component parameter_values (dimensionless).
 * CONSTANTS[450] is SR2 in component parameter_values (dimensionless).
 * CONSTANTS[451] is SRK in component parameter_values (minute).
 * CONSTANTS[452] is SRK2 in component parameter_values (minute).
 * CONSTANTS[453] is STA in component parameter_values (dimensionless).
 * CONSTANTS[454] is TENSGN in component parameter_values (dimensionless).
 * CONSTANTS[455] is TENSTC in component parameter_values (minute).
 * CONSTANTS[456] is TIMETR in component parameter_values (minute).
 * CONSTANTS[457] is TRNSFS in component parameter_values (dimensionless).
 * CONSTANTS[458] is TRPL in component parameter_values (L_per_minute).
 * CONSTANTS[459] is TSSLML in component parameter_values (dimensionless).
 * CONSTANTS[460] is TSSLTC in component parameter_values (per_minute).
 * CONSTANTS[461] is TVDDL in component parameter_values (minute).
 * CONSTANTS[462] is U in component parameter_values (dimensionless).
 * CONSTANTS[463] is VID1 in component parameter_values (L_per_minute).
 * CONSTANTS[464] is VIDML in component parameter_values (litre2_per_monovalent_mEq_per_minute).
 * CONSTANTS[465] is VNTSTM in component parameter_values (dimensionless).
 * CONSTANTS[466] is VP1 in component parameter_values (dimensionless).
 * CONSTANTS[467] is VPTISS in component parameter_values (litre).
 * CONSTANTS[468] is VTSF in component parameter_values (litre).
 * CONSTANTS[469] is VV9 in component parameter_values (litre).
 * CONSTANTS[470] is X in component parameter_values (dimensionless).
 * CONSTANTS[471] is Z in component parameter_values (dimensionless).
 * CONSTANTS[472] is Z4 in component parameter_values (dimensionless).
 * CONSTANTS[473] is Z5 in component parameter_values (dimensionless).
 * CONSTANTS[474] is Z6 in component parameter_values (dimensionless).
 * CONSTANTS[475] is Z7 in component parameter_values (dimensionless).
 * CONSTANTS[476] is Z10 in component parameter_values (mmHg).
 * CONSTANTS[477] is Z11 in component parameter_values (per_mmHg2).
 * CONSTANTS[478] is Z12 in component parameter_values (dimensionless).
 * CONSTANTS[479] is Z13 in component parameter_values (dimensionless).
 * CONSTANTS[480] is Z14 in component parameter_values (dimensionless).
 * CONSTANTS[481] is Z16 in component parameter_values (dimensionless).
 * CONSTANTS[482] is Z18 in component parameter_values (dimensionless).
 * CONSTANTS[483] is Z19 in component parameter_values (dimensionless).
 * CONSTANTS[484] is KID in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[485] is URFORM in component parameter_values (mOsm_per_minute).
 * CONSTANTS[486] is AUV in component parameter_values (dimensionless).
 * CONSTANTS[487] is AUY in component parameter_values (dimensionless).
 * CONSTANTS[488] is O2M in component parameter_values (mL_per_minute).
 * CONSTANTS[489] is NID in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[490] is ATRFBM in component parameter_values (dimensionless).
 * CONSTANTS[491] is GBL in component parameter_values (mmHg).
 * CONSTANTS[492] is RNAUGN in component parameter_values (minute_per_L).
 * CONSTANTS[493] is RNAULL in component parameter_values (dimensionless).
 * CONSTANTS[494] is RNAUUL in component parameter_values (dimensionless).
 * CONSTANTS[495] is HSR in component parameter_values (dimensionless).
 * CONSTANTS[496] is HSL in component parameter_values (dimensionless).
 * CONSTANTS[497] is HMK in component parameter_values (dimensionless).
 * CONSTANTS[498] is PO2AMB in component parameter_values (mmHg).
 * CONSTANTS[499] is HKM in component parameter_values (dimensionless).
 * CONSTANTS[500] is DR in component parameter_values (L_per_minute).
 * CONSTANTS[501] is ANPKNS in component parameter_values (dimensionless).
 * CONSTANTS[502] is RMULT1 in component parameter_values (dimensionless).
 * CONSTANTS[503] is GLPCA in component parameter_values (mmHg).
 * CONSTANTS[504] is RFN in component parameter_values (L_per_minute).
 * CONSTANTS[505] is RFABX in component parameter_values (dimensionless).
 * CONSTANTS[506] is ANPINF in component parameter_values (dimensionless).
 * CONSTANTS[507] is FIS in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[508] is CPPD in component parameter_values (gram_per_L).
 * CONSTANTS[509] is TRRBC in component parameter_values (L_per_minute).
 * CONSTANTS[510] is HYL in component parameter_values (gram).
 * CONSTANTS[511] is ATRVM in component parameter_values (litre).
 * CONSTANTS[512] is ADHC_init in component state_variables (dimensionless).
 * CONSTANTS[513] is AHY_init in component state_variables (dimensionless).
 * CONSTANTS[514] is AMC_init in component state_variables (dimensionless).
 * CONSTANTS[515] is AMM1T_init in component state_variables (dimensionless).
 * CONSTANTS[516] is AMM2_init in component state_variables (dimensionless).
 * CONSTANTS[517] is ANC_init in component state_variables (dimensionless).
 * CONSTANTS[518] is ANPC_init in component state_variables (dimensionless).
 * CONSTANTS[519] is ANX1_init in component state_variables (dimensionless).
 * CONSTANTS[520] is AR1T_init in component state_variables (dimensionless).
 * CONSTANTS[521] is AR2T_init in component state_variables (dimensionless).
 * CONSTANTS[522] is AR3T_init in component state_variables (dimensionless).
 * CONSTANTS[523] is AU1_init in component state_variables (dimensionless).
 * CONSTANTS[524] is AU4_init in component state_variables (dimensionless).
 * CONSTANTS[525] is AU6_init in component state_variables (dimensionless).
 * CONSTANTS[526] is DTKA_init in component state_variables (monovalent_mEq_per_minute).
 * CONSTANTS[527] is HMD1_init in component state_variables (dimensionless).
 * CONSTANTS[528] is HPL_init in component state_variables (dimensionless).
 * CONSTANTS[529] is HPR_init in component state_variables (dimensionless).
 * CONSTANTS[530] is KTOT_init in component state_variables (monovalent_mEq).
 * CONSTANTS[531] is NAE_init in component state_variables (monovalent_mEq).
 * CONSTANTS[532] is O2VAD1_init in component state_variables (dimensionless).
 * CONSTANTS[533] is OSV_init in component state_variables (dimensionless).
 * CONSTANTS[534] is OVA_init in component state_variables (mL_per_L).
 * CONSTANTS[535] is OVS_init in component state_variables (dimensionless).
 * CONSTANTS[536] is PAR1_init in component state_variables (mmHg).
 * CONSTANTS[537] is PC_init in component state_variables (mmHg).
 * CONSTANTS[538] is PLUR_init in component state_variables (mOsm).
 * CONSTANTS[539] is PPR1_init in component state_variables (gram).
 * CONSTANTS[540] is PRP_init in component state_variables (gram).
 * CONSTANTS[541] is QO2T_init in component state_variables (mL).
 * CONSTANTS[542] is QOM1_init in component state_variables (mL).
 * CONSTANTS[543] is RNAUG3_init in component state_variables (dimensionless).
 * CONSTANTS[544] is TSP_init in component state_variables (gram).
 * CONSTANTS[545] is TVD_init in component state_variables (L_per_minute).
 * CONSTANTS[546] is VAS1_init in component state_variables (litre).
 * CONSTANTS[547] is VIC_init in component state_variables (litre).
 * CONSTANTS[548] is VLA1_init in component state_variables (litre).
 * CONSTANTS[549] is VPA1_init in component state_variables (litre).
 * CONSTANTS[550] is VPF1_init in component state_variables (litre).
 * CONSTANTS[551] is VP_init in component state_variables (litre).
 * CONSTANTS[552] is VRA1_init in component state_variables (litre).
 * CONSTANTS[553] is VRC_init in component state_variables (litre).
 * CONSTANTS[554] is VTS2_init in component state_variables (litre).
 * CONSTANTS[555] is VTW_init in component state_variables (litre).
 * CONSTANTS[556] is VV6_init in component state_variables (litre).
 * CONSTANTS[557] is VV7_init in component state_variables (litre).
 * CONSTANTS[558] is VVS1_init in component state_variables (litre).
 * CONSTANTS[559] is O2UTIL in component total_O2_utilization (mL_per_minute).
 * ALGEBRAIC[6] is O2VAD2 in component progressive_chemoreceptor_adaptation_of_alveolar_ventilation (dimensionless).
 * ALGEBRAIC[4] is O2VTS2 in component acute_chemoreceptor_adaptation_of_alveolar_ventilation (dimensionless).
 * ALGEBRAIC[7] is ALVENT in component alveolar_ventilation (L_per_minute).
 * ALGEBRAIC[8] is PO2ALV in component alveolar_PO2 (mmHg).
 * ALGEBRAIC[9] is O2DFS in component respiratory_O2_diffusion_into_capillaries (mL_per_minute).
 * CONSTANTS[560] is RSPDFC in component respiratory_O2_diffusion_into_capillaries (mL_per_minute_per_mmHg).
 * ALGEBRAIC[10] is DOVA in component O2_volume_of_arterial_blood (mL_per_L_per_minute).
 * ALGEBRAIC[3] is O2VTST in component acute_chemoreceptor_adaptation_of_alveolar_ventilation (dimensionless).
 * ALGEBRAIC[2] is O2VTST1 in component acute_chemoreceptor_adaptation_of_alveolar_ventilation (dimensionless).
 * ALGEBRAIC[5] is DO2VAD in component progressive_chemoreceptor_adaptation_of_alveolar_ventilation (per_minute).
 * STATES[1] is O2VAD1 in component progressive_chemoreceptor_adaptation_of_alveolar_ventilation (dimensionless).
 * RATES[0] is d/dt OVA in component O2_volume_of_arterial_blood (mL_per_L).
 * RATES[1] is d/dt O2VAD1 in component progressive_chemoreceptor_adaptation_of_alveolar_ventilation (dimensionless).
 * There are a total of 7 condition variables.
 */
void
initConsts(double* CONSTANTS, double* RATES, double *STATES)
{
CONSTANTS[0] = 0.0123238;
CONSTANTS[1] = 163.508;
CONSTANTS[2] = 56.8057;
CONSTANTS[3] = 4.97838;
CONSTANTS[4] = 40.0381;
CONSTANTS[5] = 0.5;
CONSTANTS[6] = 60;
CONSTANTS[7] = 40000;
CONSTANTS[8] = 0.1;
CONSTANTS[9] = 40000;
CONSTANTS[10] = 1;
CONSTANTS[11] = 4;
CONSTANTS[12] = 0;
CONSTANTS[13] = 0.2;
CONSTANTS[14] = 5;
CONSTANTS[15] = 0.3;
CONSTANTS[16] = 85;
CONSTANTS[17] = 15;
CONSTANTS[18] = 0.93617;
CONSTANTS[19] = 2.5;
CONSTANTS[20] = 0.333;
CONSTANTS[21] = 1000;
CONSTANTS[22] = 1;
CONSTANTS[23] = 0.3;
CONSTANTS[24] = 2;
CONSTANTS[25] = 0.3;
CONSTANTS[26] = 0;
CONSTANTS[27] = 0;
CONSTANTS[28] = 2.5;
CONSTANTS[29] = 0;
CONSTANTS[30] = 5;
CONSTANTS[31] = 0.65;
CONSTANTS[32] = 0.5;
CONSTANTS[33] = 12;
CONSTANTS[34] = 0.005;
CONSTANTS[35] = 0.005;
CONSTANTS[36] = 0.04;
CONSTANTS[37] = 0.8;
CONSTANTS[38] = 15;
CONSTANTS[39] = 60;
CONSTANTS[40] = 0.4;
CONSTANTS[41] = 0;
CONSTANTS[42] = 0;
CONSTANTS[43] = 2.5;
CONSTANTS[44] = 1.4;
CONSTANTS[45] = 0.86;
CONSTANTS[46] = 1.6;
CONSTANTS[47] = 0.3;
CONSTANTS[48] = 2;
CONSTANTS[49] = 0.7;
CONSTANTS[50] = 1;
CONSTANTS[51] = 2;
CONSTANTS[52] = 1.5;
CONSTANTS[53] = 1.8;
CONSTANTS[54] = 4;
CONSTANTS[55] = 1.5;
CONSTANTS[56] = 10;
CONSTANTS[57] = 12;
CONSTANTS[58] = 0.8;
CONSTANTS[59] = 6;
CONSTANTS[60] = 0;
CONSTANTS[61] = 5000;
CONSTANTS[62] = 0;
CONSTANTS[63] = -0.2;
CONSTANTS[64] = 0.005;
CONSTANTS[65] = 0.005;
CONSTANTS[66] = 0.5;
CONSTANTS[67] = 0.3;
CONSTANTS[68] = 0.3;
CONSTANTS[69] = 0.004;
CONSTANTS[70] = 1.5;
CONSTANTS[71] = 0;
CONSTANTS[72] = 3;
CONSTANTS[73] = 1;
CONSTANTS[74] = 5.0;
CONSTANTS[75] = 0.4;
CONSTANTS[76] = 0.3;
CONSTANTS[77] = 0.5;
CONSTANTS[78] = 1.0;
CONSTANTS[79] = 1;
CONSTANTS[80] = 1.5;
CONSTANTS[81] = 0;
CONSTANTS[82] = 7;
CONSTANTS[83] = 0.9;
CONSTANTS[84] = 1;
CONSTANTS[85] = 0.16;
CONSTANTS[86] = 0.01167;
CONSTANTS[87] = 4;
CONSTANTS[88] = 2;
CONSTANTS[89] = 0.0212;
CONSTANTS[90] = 0.2;
CONSTANTS[91] = 139;
CONSTANTS[92] = 0.0003;
CONSTANTS[93] = 0.000253;
CONSTANTS[94] = 40;
CONSTANTS[95] = 0.1;
CONSTANTS[96] = 0;
CONSTANTS[97] = 1;
CONSTANTS[98] = 0.05;
CONSTANTS[99] = 0.675;
CONSTANTS[100] = 1e-06;
CONSTANTS[101] = 1;
CONSTANTS[102] = 24;
CONSTANTS[103] = 0;
CONSTANTS[104] = 1;
CONSTANTS[105] = 0.01;
CONSTANTS[106] = 1.0;
CONSTANTS[107] = 0.17;
CONSTANTS[108] = 0;
CONSTANTS[109] = 0.8092;
CONSTANTS[110] = 0.0208333;
CONSTANTS[111] = 3;
CONSTANTS[112] = 0.001;
CONSTANTS[113] = 1.0;
CONSTANTS[114] = 1850;
CONSTANTS[115] = 4.714e-08;
CONSTANTS[116] = 0.4;
CONSTANTS[117] = 1;
CONSTANTS[118] = 0;
CONSTANTS[119] = 0;
CONSTANTS[120] = 10000;
CONSTANTS[121] = 8;
CONSTANTS[122] = 2.728e-14;
CONSTANTS[123] = 0.03;
CONSTANTS[124] = 10;
CONSTANTS[125] = 0.667;
CONSTANTS[126] = 0.005;
CONSTANTS[127] = 0.01;
CONSTANTS[128] = 0;
CONSTANTS[129] = 0.1;
CONSTANTS[130] = 0.01;
CONSTANTS[131] = 57.1;
CONSTANTS[132] = 1;
CONSTANTS[133] = 2;
CONSTANTS[134] = 1;
CONSTANTS[135] = 15;
CONSTANTS[136] = 0;
CONSTANTS[137] = -2;
CONSTANTS[138] = 0.79167;
CONSTANTS[139] = 1.8;
CONSTANTS[140] = 4.2;
CONSTANTS[141] = 30;
CONSTANTS[142] = 0.001;
CONSTANTS[143] = 0.1;
CONSTANTS[144] = 0.04;
CONSTANTS[145] = 2;
CONSTANTS[146] = 0.1;
CONSTANTS[147] = 35;
CONSTANTS[148] = 2;
CONSTANTS[149] = 8;
CONSTANTS[150] = 0.2;
CONSTANTS[151] = 0.15;
CONSTANTS[152] = 0.5;
CONSTANTS[153] = 96.3;
CONSTANTS[154] = 0;
CONSTANTS[155] = 30.52;
CONSTANTS[156] = 2000;
CONSTANTS[157] = 0;
CONSTANTS[158] = 1;
CONSTANTS[159] = 0.03;
CONSTANTS[160] = 0.3;
CONSTANTS[161] = 1;
CONSTANTS[162] = 0;
CONSTANTS[163] = 5.8e-06;
CONSTANTS[164] = 15;
CONSTANTS[165] = 0;
CONSTANTS[166] = 0;
CONSTANTS[167] = 0.9;
CONSTANTS[168] = 15.2;
CONSTANTS[169] = 6;
CONSTANTS[170] = 19.167;
CONSTANTS[171] = 1;
CONSTANTS[172] = 1;
CONSTANTS[173] = 1;
CONSTANTS[174] = 5;
CONSTANTS[175] = 10000;
CONSTANTS[176] = 0;
CONSTANTS[177] = 0;
CONSTANTS[178] = 0.05;
CONSTANTS[179] = 0;
CONSTANTS[180] = 0;
CONSTANTS[181] = 0;
CONSTANTS[182] = 0.15;
CONSTANTS[183] = 0.005;
CONSTANTS[184] = 30;
CONSTANTS[185] = 4;
CONSTANTS[186] = 0.01;
CONSTANTS[187] = 0.01;
CONSTANTS[188] = 1;
CONSTANTS[189] = 0.01;
CONSTANTS[190] = 0.0175;
CONSTANTS[191] = 6;
CONSTANTS[192] = 2.51;
CONSTANTS[193] = 4;
CONSTANTS[194] = 1;
CONSTANTS[195] = 0.5;
CONSTANTS[196] = 0.3;
CONSTANTS[197] = 20;
CONSTANTS[198] = 5;
CONSTANTS[199] = 45;
CONSTANTS[200] = 0.01;
CONSTANTS[201] = 5;
CONSTANTS[202] = 0.625;
CONSTANTS[203] = 5;
CONSTANTS[204] = 5;
CONSTANTS[205] = 5;
CONSTANTS[206] = 5;
CONSTANTS[207] = 0.08;
CONSTANTS[208] = 0.24;
CONSTANTS[209] = 0.55;
CONSTANTS[210] = 0;
CONSTANTS[211] = 164;
CONSTANTS[212] = 0.1;
CONSTANTS[213] = 0;
CONSTANTS[214] = 0;
CONSTANTS[215] = 0.6;
CONSTANTS[216] = 0.3;
CONSTANTS[217] = 10;
CONSTANTS[218] = 1;
CONSTANTS[219] = 1;
CONSTANTS[220] = 90;
CONSTANTS[221] = 150;
CONSTANTS[222] = 0.53333;
CONSTANTS[223] = 0;
CONSTANTS[224] = 0;
CONSTANTS[225] = 1;
CONSTANTS[226] = 1.0;
CONSTANTS[227] = 1.22057;
CONSTANTS[228] = 0.8;
CONSTANTS[229] = 0;
CONSTANTS[230] = 0;
CONSTANTS[231] = 31.9719;
CONSTANTS[232] = 0;
CONSTANTS[233] = 60;
CONSTANTS[234] = 0;
CONSTANTS[235] = 1.0;
CONSTANTS[236] = 0.301963;
CONSTANTS[237] = 1.0;
CONSTANTS[238] = 1.00269;
CONSTANTS[239] = 1.09071;
CONSTANTS[240] = 0.859476;
CONSTANTS[241] = 1.0;
CONSTANTS[242] = 0;
CONSTANTS[243] = 1.02127;
CONSTANTS[244] = 1.01179;
CONSTANTS[245] = 1.1448;
CONSTANTS[246] = 1.00007;
CONSTANTS[247] = -0.060024;
CONSTANTS[248] = 1.00132;
CONSTANTS[249] = 0.0367573;
CONSTANTS[250] = 1;
CONSTANTS[251] = 1.00163;
CONSTANTS[252] = 1.00237;
CONSTANTS[253] = 3622.54;
CONSTANTS[254] = 2109.91;
CONSTANTS[255] = 2.368e-07;
CONSTANTS[256] = 0.694163;
CONSTANTS[257] = 204.497;
CONSTANTS[258] = 0.699673;
CONSTANTS[259] = 103.525;
CONSTANTS[260] = 16.9144;
CONSTANTS[261] = 159.549;
CONSTANTS[262] = 0.419998;
CONSTANTS[263] = 216.243;
CONSTANTS[264] = 72.2362;
CONSTANTS[265] = 48.0839;
CONSTANTS[266] = 0;
CONSTANTS[267] = 279.945;
CONSTANTS[268] = 0.000980838;
CONSTANTS[269] = 0.862514;
CONSTANTS[270] = 25.0404;
CONSTANTS[271] = 0.379883;
CONSTANTS[272] = 0.38131;
CONSTANTS[273] = 0.0123238;
CONSTANTS[274] = 3.00449;
CONSTANTS[275] = 0.100043;
CONSTANTS[276] = 2.00439;
CONSTANTS[277] = 0;
CONSTANTS[278] = 39.8952;
CONSTANTS[279] = 0.0101913;
CONSTANTS[280] = 0.00366525;
CONSTANTS[281] = 3.28246;
CONSTANTS[282] = 0.5;
CONSTANTS[283] = 60;
CONSTANTS[284] = 40000;
CONSTANTS[285] = 0.1;
CONSTANTS[286] = 40000;
CONSTANTS[287] = 1;
CONSTANTS[288] = 4;
CONSTANTS[289] = 0;
CONSTANTS[290] = 0.2;
CONSTANTS[291] = 5;
CONSTANTS[292] = 0.3;
CONSTANTS[293] = 85;
CONSTANTS[294] = 15;
CONSTANTS[295] = 0.93617;
CONSTANTS[296] = 2.5;
CONSTANTS[297] = 0.333;
CONSTANTS[298] = 1000;
CONSTANTS[299] = 1;
CONSTANTS[300] = 0.3;
CONSTANTS[301] = 2;
CONSTANTS[302] = 0.3;
CONSTANTS[303] = 0;
CONSTANTS[304] = 0;
CONSTANTS[305] = 2.5;
CONSTANTS[306] = 0;
CONSTANTS[307] = 5;
CONSTANTS[308] = 0.65;
CONSTANTS[309] = 0.5;
CONSTANTS[310] = 12;
CONSTANTS[311] = 0.005;
CONSTANTS[312] = 0.005;
CONSTANTS[313] = 0.04;
CONSTANTS[314] = 0.8;
CONSTANTS[315] = 15;
CONSTANTS[316] = 60;
CONSTANTS[317] = 0.4;
CONSTANTS[318] = 0;
CONSTANTS[319] = 0;
CONSTANTS[320] = 2.5;
CONSTANTS[321] = 1.4;
CONSTANTS[322] = 0.86;
CONSTANTS[323] = 1.6;
CONSTANTS[324] = 0.3;
CONSTANTS[325] = 2;
CONSTANTS[326] = 0.7;
CONSTANTS[327] = 1;
CONSTANTS[328] = 2;
CONSTANTS[329] = 1.5;
CONSTANTS[330] = 1.8;
CONSTANTS[331] = 4;
CONSTANTS[332] = 1.5;
CONSTANTS[333] = 10;
CONSTANTS[334] = 12;
CONSTANTS[335] = 0.8;
CONSTANTS[336] = 6;
CONSTANTS[337] = 0;
CONSTANTS[338] = 5000;
CONSTANTS[339] = 0;
CONSTANTS[340] = -0.2;
CONSTANTS[341] = 0.005;
CONSTANTS[342] = 0.005;
CONSTANTS[343] = 0.5;
CONSTANTS[344] = 0.3;
CONSTANTS[345] = 0.3;
CONSTANTS[346] = 0.004;
CONSTANTS[347] = 1.5;
CONSTANTS[348] = 0;
CONSTANTS[349] = 3;
CONSTANTS[350] = 1;
CONSTANTS[351] = 5.0;
CONSTANTS[352] = 0.4;
CONSTANTS[353] = 0.3;
CONSTANTS[354] = 0.5;
CONSTANTS[355] = 1.0;
CONSTANTS[356] = 1;
CONSTANTS[357] = 1.5;
CONSTANTS[358] = 0;
CONSTANTS[359] = 7;
CONSTANTS[360] = 0.9;
CONSTANTS[361] = 1;
CONSTANTS[362] = 0.16;
CONSTANTS[363] = 0.01167;
CONSTANTS[364] = 4;
CONSTANTS[365] = 2;
CONSTANTS[366] = 0.0212;
CONSTANTS[367] = 0.2;
CONSTANTS[368] = 139;
CONSTANTS[369] = 0.0003;
CONSTANTS[370] = 0.000253;
CONSTANTS[371] = 40;
CONSTANTS[372] = 0.1;
CONSTANTS[373] = 0;
CONSTANTS[374] = 1;
CONSTANTS[375] = 0.05;
CONSTANTS[376] = 0.675;
CONSTANTS[377] = 1e-06;
CONSTANTS[378] = 1;
CONSTANTS[379] = 24;
CONSTANTS[380] = 0;
CONSTANTS[381] = 1;
CONSTANTS[382] = 0.01;
CONSTANTS[383] = 1.0;
CONSTANTS[384] = 0.17;
CONSTANTS[385] = 0;
CONSTANTS[386] = 0.8092;
CONSTANTS[387] = 0.0208333;
CONSTANTS[388] = 3;
CONSTANTS[389] = 0.001;
CONSTANTS[390] = 1.0;
CONSTANTS[391] = 1850;
CONSTANTS[392] = 4.714e-08;
CONSTANTS[393] = 0.4;
CONSTANTS[394] = 1;
CONSTANTS[395] = 0;
CONSTANTS[396] = 0;
CONSTANTS[397] = 10000;
CONSTANTS[398] = 8;
CONSTANTS[399] = 2.728e-14;
CONSTANTS[400] = 0.03;
CONSTANTS[401] = 10;
CONSTANTS[402] = 0.667;
CONSTANTS[403] = 0.005;
CONSTANTS[404] = 0.01;
CONSTANTS[405] = 0;
CONSTANTS[406] = 0.1;
CONSTANTS[407] = 0.01;
CONSTANTS[408] = 57.1;
CONSTANTS[409] = 1;
CONSTANTS[410] = 2;
CONSTANTS[411] = 1;
CONSTANTS[412] = 15;
CONSTANTS[413] = 0;
CONSTANTS[414] = -2;
CONSTANTS[415] = 0.79167;
CONSTANTS[416] = 1.8;
CONSTANTS[417] = 4.2;
CONSTANTS[418] = 30;
CONSTANTS[419] = 0.001;
CONSTANTS[420] = 0.1;
CONSTANTS[421] = 0.04;
CONSTANTS[422] = 2;
CONSTANTS[423] = 0.1;
CONSTANTS[424] = 35;
CONSTANTS[425] = 2;
CONSTANTS[426] = 8;
CONSTANTS[427] = 0.2;
CONSTANTS[428] = 0.15;
CONSTANTS[429] = 0.5;
CONSTANTS[430] = 96.3;
CONSTANTS[431] = 0;
CONSTANTS[432] = 30.52;
CONSTANTS[433] = 2000;
CONSTANTS[434] = 0;
CONSTANTS[435] = 1;
CONSTANTS[436] = 0.03;
CONSTANTS[437] = 0.3;
CONSTANTS[438] = 1;
CONSTANTS[439] = 0;
CONSTANTS[440] = 5.8e-06;
CONSTANTS[441] = 15;
CONSTANTS[442] = 0;
CONSTANTS[443] = 0;
CONSTANTS[444] = 0.9;
CONSTANTS[445] = 15.2;
CONSTANTS[446] = 6;
CONSTANTS[447] = 19.167;
CONSTANTS[448] = 1;
CONSTANTS[449] = 1;
CONSTANTS[450] = 1;
CONSTANTS[451] = 5;
CONSTANTS[452] = 10000;
CONSTANTS[453] = 0;
CONSTANTS[454] = 0;
CONSTANTS[455] = 0.05;
CONSTANTS[456] = 0;
CONSTANTS[457] = 0;
CONSTANTS[458] = 0;
CONSTANTS[459] = 0.15;
CONSTANTS[460] = 0.005;
CONSTANTS[461] = 30;
CONSTANTS[462] = 4;
CONSTANTS[463] = 0.01;
CONSTANTS[464] = 0.01;
CONSTANTS[465] = 1;
CONSTANTS[466] = 0.01;
CONSTANTS[467] = 0.0175;
CONSTANTS[468] = 6;
CONSTANTS[469] = 2.51;
CONSTANTS[470] = 4;
CONSTANTS[471] = 1;
CONSTANTS[472] = 0.5;
CONSTANTS[473] = 0.3;
CONSTANTS[474] = 20;
CONSTANTS[475] = 5;
CONSTANTS[476] = 45;
CONSTANTS[477] = 0.01;
CONSTANTS[478] = 5;
CONSTANTS[479] = 0.625;
CONSTANTS[480] = 5;
CONSTANTS[481] = 5;
CONSTANTS[482] = 5;
CONSTANTS[483] = 5;
CONSTANTS[484] = 0.08;
CONSTANTS[485] = 0.24;
CONSTANTS[486] = 0.55;
CONSTANTS[487] = 0;
CONSTANTS[488] = 164;
CONSTANTS[489] = 0.1;
CONSTANTS[490] = 0;
CONSTANTS[491] = 0;
CONSTANTS[492] = 0.6;
CONSTANTS[493] = 0.3;
CONSTANTS[494] = 10;
CONSTANTS[495] = 1;
CONSTANTS[496] = 1;
CONSTANTS[497] = 90;
CONSTANTS[498] = 150;
CONSTANTS[499] = 0.53333;
CONSTANTS[500] = 0;
CONSTANTS[501] = 0;
CONSTANTS[502] = 1;
CONSTANTS[503] = 1.0;
CONSTANTS[504] = 1.22057;
CONSTANTS[505] = 0.8;
CONSTANTS[506] = 0;
CONSTANTS[507] = 0;
CONSTANTS[508] = 31.9719;
CONSTANTS[509] = 0;
CONSTANTS[510] = 60;
CONSTANTS[511] = 0;
CONSTANTS[512] = 1.0;
CONSTANTS[513] = 0.301963;
CONSTANTS[514] = 1.0;
CONSTANTS[515] = 1.00269;
CONSTANTS[516] = 1.09071;
CONSTANTS[517] = 0.859476;
CONSTANTS[518] = 1.0;
CONSTANTS[519] = 0;
CONSTANTS[520] = 1.02127;
CONSTANTS[521] = 1.01179;
CONSTANTS[522] = 1.1448;
CONSTANTS[523] = 1.00007;
CONSTANTS[524] = -0.060024;
CONSTANTS[525] = 1.00132;
CONSTANTS[526] = 0.0367573;
CONSTANTS[527] = 1;
CONSTANTS[528] = 1.00163;
CONSTANTS[529] = 1.00237;
CONSTANTS[530] = 3622.54;
CONSTANTS[531] = 2109.91;
CONSTANTS[532] = 2.368e-07;
CONSTANTS[533] = 0.694163;
CONSTANTS[534] = 204.497;
CONSTANTS[535] = 0.699673;
CONSTANTS[536] = 103.525;
CONSTANTS[537] = 16.9144;
CONSTANTS[538] = 159.549;
CONSTANTS[539] = 0.419998;
CONSTANTS[540] = 216.243;
CONSTANTS[541] = 72.2362;
CONSTANTS[542] = 48.0839;
CONSTANTS[543] = 0;
CONSTANTS[544] = 279.945;
CONSTANTS[545] = 0.000980838;
CONSTANTS[546] = 0.862514;
CONSTANTS[547] = 25.0404;
CONSTANTS[548] = 0.379883;
CONSTANTS[549] = 0.38131;
CONSTANTS[550] = 0.0123238;
CONSTANTS[551] = 3.00449;
CONSTANTS[552] = 0.100043;
CONSTANTS[553] = 2.00439;
CONSTANTS[554] = 0;
CONSTANTS[555] = 39.8952;
CONSTANTS[556] = 0.0101913;
CONSTANTS[557] = 0.00366525;
CONSTANTS[558] = 3.28246;
CONSTANTS[559] = CONSTANTS[1]+CONSTANTS[2];
CONSTANTS[560] = CONSTANTS[416]/(CONSTANTS[467]+CONSTANTS[0]);
STATES[0] = CONSTANTS[534];
STATES[1] = CONSTANTS[532];
RATES[0] = 0.1001;
RATES[1] = 0.1001;
}
void
computeResiduals(double VOI, double* CONSTANTS, double* RATES, double* OLDRATES, double* STATES,
                 double* OLDSTATES, double* ALGEBRAIC, double* CONDVARS)
{
resid[0] = RATES[0] - ALGEBRAIC[10];
resid[1] = RATES[1] - ALGEBRAIC[5];
}
void
computeVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
}
void
computeEssentialVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
ALGEBRAIC[0] = (STATES[0]/CONSTANTS[4])/5.25000;
ALGEBRAIC[1] = (CONDVAR[0]>0.00000 ? 114.000+ (ALGEBRAIC[0] - 1.00000)*6667.00 : CONDVAR[1]>0.00000&&CONDVAR[2]<=0.00000 ? 74.0000+ (ALGEBRAIC[0] - 0.936000)*625.000 : CONDVAR[3]>0.00000&&CONDVAR[4]<=0.00000 ? 46.0000+ (ALGEBRAIC[0] - 0.800000)*205.882 :  ALGEBRAIC[0]*57.5000);
ALGEBRAIC[2] = (ALGEBRAIC[1] - 67.0000)/30.0000;
ALGEBRAIC[3] = (CONDVAR[5]>0.00000 ? 1.00000 : CONDVAR[6]<0.00000 ? 0.600000 : ALGEBRAIC[2]);
ALGEBRAIC[4] = 1.00000/ALGEBRAIC[3];
ALGEBRAIC[5] =  ( (ALGEBRAIC[4] - 1.00000)*3.00000 - STATES[1])*0.000500000;
ALGEBRAIC[6] = STATES[1]+1.00000;
ALGEBRAIC[7] =  CONSTANTS[559]*CONSTANTS[465]*0.0266670*ALGEBRAIC[4]*ALGEBRAIC[6];
ALGEBRAIC[8] = CONSTANTS[498] - (CONSTANTS[559]/ALGEBRAIC[7])/0.761000;
ALGEBRAIC[9] =  (ALGEBRAIC[8] - ALGEBRAIC[1])*CONSTANTS[560];
ALGEBRAIC[10] = (ALGEBRAIC[9] - CONSTANTS[559])/( CONSTANTS[3]*1.00000);
}
void
getStateInformation(double* SI)
{
SI[0] = 1.0;
SI[1] = 1.0;
}
void
computeRoots(double VOI, double* CONSTANTS, double* RATES, double* OLDRATES, double* STATES,
             double* OLDSTATES, double* ALGEBRAIC, double* CONDVARS)
{
CONDVAR[0] = ALGEBRAIC[0] - 1.00000;
CONDVAR[1] = ALGEBRAIC[0] - 0.936000;
CONDVAR[2] = ALGEBRAIC[0] - 1.00000;
CONDVAR[3] = ALGEBRAIC[0] - 0.800000;
CONDVAR[4] = ALGEBRAIC[0] - 0.936000;
CONDVAR[5] = ALGEBRAIC[2] - 1.00000;
CONDVAR[6] = ALGEBRAIC[2] - 0.600000;
}