Generated Code

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

The raw code is available.

C
C There are a total of 65 entries in the algebraic variable array.
C There are a total of 15 entries in each of the rate and state variable arrays.
C There are a total of 39 entries in the constant variable array.
C
C
C VOI is t in component environment (second).
C STATES(1) is q_Ca_i in component environment (fmol).
C STATES(2) is q_Ca_SR in component environment (fmol).
C STATES(3) is q_H_i in component environment (fmol).
C STATES(4) is q_Pi in component environment (fmol).
C STATES(5) is q_MgADP in component environment (fmol).
C STATES(6) is q_MgATP in component environment (fmol).
C STATES(7) is q_P1_SERCA in component environment (fmol).
C STATES(8) is q_P2_SERCA in component environment (fmol).
C STATES(9) is q_P2a_SERCA in component environment (fmol).
C STATES(10) is q_P4_SERCA in component environment (fmol).
C STATES(11) is q_P5_SERCA in component environment (fmol).
C STATES(12) is q_P10_SERCA in component environment (fmol).
C STATES(13) is q_P6_SERCA in component environment (fmol).
C STATES(14) is q_P8_SERCA in component environment (fmol).
C STATES(15) is q_P9_SERCA in component environment (fmol).
C CONSTS(1) is q_PLBp in component environment (fmol).
C CONSTS(2) is q_PLBp_baseline in component environment (fmol).
C ALGBRC(52) is v_Ca_i_SERCA in component SERCA (fmol_per_sec).
C ALGBRC(58) is v_Ca_SR_SERCA in component SERCA (fmol_per_sec).
C ALGBRC(63) is v_H_SERCA in component SERCA (fmol_per_sec).
C ALGBRC(49) is v_MgADP_SERCA in component SERCA (fmol_per_sec).
C ALGBRC(46) is v_MgATP_SERCA in component SERCA (fmol_per_sec).
C ALGBRC(44) is v_Pi_SERCA in component SERCA (fmol_per_sec).
C CONSTS(3) is kappa_SERCA_R1_2 in component SERCA_parameters (fmol_per_sec).
C CONSTS(4) is kappa_SERCA_R2_4 in component SERCA_parameters (fmol_per_sec).
C CONSTS(5) is kappa_SERCA_R2_2a in component SERCA_parameters (fmol_per_sec).
C CONSTS(6) is kappa_SERCA_R4_5 in component SERCA_parameters (fmol_per_sec).
C CONSTS(7) is kappa_SERCA_R5_6 in component SERCA_parameters (fmol_per_sec).
C CONSTS(8) is kappa_SERCA_R6_8 in component SERCA_parameters (fmol_per_sec).
C CONSTS(9) is kappa_SERCA_R8_9 in component SERCA_parameters (fmol_per_sec).
C CONSTS(10) is kappa_SERCA_R9_10 in component SERCA_parameters (fmol_per_sec).
C CONSTS(11) is kappa_SERCA_R10_1 in component SERCA_parameters (fmol_per_sec).
C CONSTS(12) is K_P1_SERCA in component SERCA_parameters (per_fmol).
C CONSTS(13) is K_P2_SERCA in component SERCA_parameters (per_fmol).
C CONSTS(14) is K_P2a_SERCA in component SERCA_parameters (per_fmol).
C CONSTS(15) is K_P4_SERCA in component SERCA_parameters (per_fmol).
C CONSTS(16) is K_P5_SERCA in component SERCA_parameters (per_fmol).
C CONSTS(17) is K_P6_SERCA in component SERCA_parameters (per_fmol).
C CONSTS(18) is K_P8_SERCA in component SERCA_parameters (per_fmol).
C CONSTS(19) is K_P9_SERCA in component SERCA_parameters (per_fmol).
C CONSTS(20) is K_P10_SERCA in component SERCA_parameters (per_fmol).
C CONSTS(21) is K_H in component SERCA_parameters (per_fmol).
C CONSTS(22) is K_Ca_i in component SERCA_parameters (per_fmol).
C CONSTS(23) is K_Ca_SR in component SERCA_parameters (per_fmol).
C CONSTS(24) is K_MgATP in component SERCA_parameters (per_fmol).
C CONSTS(25) is K_MgADP in component SERCA_parameters (per_fmol).
C CONSTS(26) is K_Pi in component SERCA_parameters (per_fmol).
C CONSTS(27) is K_PLBp in component SERCA_parameters (per_fmol).
C CONSTS(28) is R in component constants (J_per_K_per_mol).
C CONSTS(29) is T in component constants (kelvin).
C CONSTS(30) is F in component constants (C_per_mol).
C CONSTS(31) is n_Ca_i in component SERCA (dimensionless).
C CONSTS(32) is n_Ca_SR in component SERCA (dimensionless).
C CONSTS(33) is n_H in component SERCA (dimensionless).
C ALGBRC(1) is q_SERCA_Ca_complexes in component SERCA (fmol).
C ALGBRC(2) is c_Ca_i in component SERCA (mM).
C ALGBRC(3) is c_Ca_SR in component SERCA (mM).
C ALGBRC(4) is c_H in component SERCA (mM).
C ALGBRC(5) is c_MgADP in component SERCA (mM).
C ALGBRC(6) is c_MgATP in component SERCA (mM).
C ALGBRC(7) is c_Pi in component SERCA (mM).
C CONSTS(34) is vol_i in component SERCA (pL).
C CONSTS(35) is vol_sr in component SERCA (pL).
C CONSTS(37) is vol_isr in component SERCA (pL).
C ALGBRC(8) is mu_Ca_i in component SERCA (J_per_mol).
C ALGBRC(9) is mu_Ca_SR in component SERCA (J_per_mol).
C ALGBRC(10) is mu_H in component SERCA (J_per_mol).
C ALGBRC(11) is mu_MgADP in component SERCA (J_per_mol).
C ALGBRC(12) is mu_MgATP in component SERCA (J_per_mol).
C ALGBRC(14) is mu_P1 in component SERCA (J_per_mol).
C ALGBRC(47) is v_P1 in component SERCA (fmol_per_sec).
C ALGBRC(13) is mu_Pi in component SERCA (J_per_mol).
C ALGBRC(15) is mu_P2 in component SERCA (J_per_mol).
C ALGBRC(54) is v_P2 in component SERCA (fmol_per_sec).
C ALGBRC(16) is mu_P2a in component SERCA (J_per_mol).
C ALGBRC(51) is v_P2a in component SERCA (fmol_per_sec).
C ALGBRC(17) is mu_P4 in component SERCA (J_per_mol).
C ALGBRC(56) is v_P4 in component SERCA (fmol_per_sec).
C ALGBRC(18) is mu_P5 in component SERCA (J_per_mol).
C ALGBRC(57) is v_P5 in component SERCA (fmol_per_sec).
C ALGBRC(20) is mu_P6 in component SERCA (J_per_mol).
C ALGBRC(60) is v_P6 in component SERCA (fmol_per_sec).
C ALGBRC(22) is mu_P8 in component SERCA (J_per_mol).
C ALGBRC(62) is v_P8 in component SERCA (fmol_per_sec).
C ALGBRC(23) is mu_P9 in component SERCA (J_per_mol).
C ALGBRC(64) is v_P9 in component SERCA (fmol_per_sec).
C ALGBRC(19) is mu_P10 in component SERCA (J_per_mol).
C ALGBRC(65) is v_P10 in component SERCA (fmol_per_sec).
C CONSTS(36) is mu_PLBp_baseline in component SERCA (J_per_mol).
C CONSTS(38) is mu_PLBp in component SERCA (J_per_mol).
C CONSTS(39) is mu_PLBp_eff in component SERCA (J_per_mol).
C ALGBRC(26) is Af_R1_2 in component SERCA (J_per_mol).
C ALGBRC(27) is Ar_R1_2 in component SERCA (J_per_mol).
C ALGBRC(43) is v_SERCA_R1_2 in component SERCA (fmol_per_sec).
C ALGBRC(28) is Af_R5_6 in component SERCA (J_per_mol).
C ALGBRC(29) is Ar_R5_6 in component SERCA (J_per_mol).
C ALGBRC(45) is v_SERCA_R5_6 in component SERCA (fmol_per_sec).
C ALGBRC(30) is Af_R2_2a in component SERCA (J_per_mol).
C ALGBRC(31) is Ar_R2_2a in component SERCA (J_per_mol).
C ALGBRC(48) is v_SERCA_R2_2a in component SERCA (fmol_per_sec).
C ALGBRC(32) is Af_R2_4 in component SERCA (J_per_mol).
C ALGBRC(33) is Ar_R2_4 in component SERCA (J_per_mol).
C ALGBRC(50) is v_SERCA_R2_4 in component SERCA (fmol_per_sec).
C ALGBRC(34) is Af_R4_5 in component SERCA (J_per_mol).
C ALGBRC(35) is Ar_R4_5 in component SERCA (J_per_mol).
C ALGBRC(53) is v_SERCA_R4_5 in component SERCA (fmol_per_sec).
C ALGBRC(36) is Af_R6_8 in component SERCA (J_per_mol).
C ALGBRC(37) is Ar_R6_8 in component SERCA (J_per_mol).
C ALGBRC(55) is v_SERCA_R6_8 in component SERCA (fmol_per_sec).
C ALGBRC(38) is Af_R8_9 in component SERCA (J_per_mol).
C ALGBRC(39) is Ar_R8_9 in component SERCA (J_per_mol).
C ALGBRC(59) is v_SERCA_R8_9 in component SERCA (fmol_per_sec).
C ALGBRC(40) is Af_R9_10 in component SERCA (J_per_mol).
C ALGBRC(41) is Ar_R9_10 in component SERCA (J_per_mol).
C ALGBRC(61) is v_SERCA_R9_10 in component SERCA (fmol_per_sec).
C ALGBRC(24) is Af_R10_1 in component SERCA (J_per_mol).
C ALGBRC(25) is Ar_R10_1 in component SERCA (J_per_mol).
C ALGBRC(42) is v_SERCA_R10_1 in component SERCA (fmol_per_sec).
C ALGBRC(21) is v_SERCA_R10_1_noPLBp in component SERCA (fmol_per_sec).
C RATES(1) is d/dt q_Ca_i in component environment (fmol).
C RATES(2) is d/dt q_Ca_SR in component environment (fmol).
C RATES(3) is d/dt q_H_i in component environment (fmol).
C RATES(5) is d/dt q_MgADP in component environment (fmol).
C RATES(6) is d/dt q_MgATP in component environment (fmol).
C RATES(4) is d/dt q_Pi in component environment (fmol).
C RATES(7) is d/dt q_P1_SERCA in component environment (fmol).
C RATES(8) is d/dt q_P2_SERCA in component environment (fmol).
C RATES(9) is d/dt q_P2a_SERCA in component environment (fmol).
C RATES(10) is d/dt q_P4_SERCA in component environment (fmol).
C RATES(11) is d/dt q_P5_SERCA in component environment (fmol).
C RATES(12) is d/dt q_P10_SERCA in component environment (fmol).
C RATES(13) is d/dt q_P6_SERCA in component environment (fmol).
C RATES(14) is d/dt q_P8_SERCA in component environment (fmol).
C RATES(15) is d/dt q_P9_SERCA in component environment (fmol).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      STATES(1) = 0.0057
      STATES(2) = 2.28
      STATES(3) = 0.004028
      STATES(4) = 570
      STATES(5) = 1.3794
      STATES(6) = 3.8
      STATES(7) = 0.11111
      STATES(8) = 0.11111
      STATES(9) = 0.11111
      STATES(10) = 0.11111
      STATES(11) = 0.11111
      STATES(12) = 0.11111
      STATES(13) = 0.11111
      STATES(14) = 0.11111
      STATES(15) = 0.11111
      CONSTS(1) = 4.028E+00
      CONSTS(2) = 4.028E+00
      CONSTS(3) = 6.91835e-08
      CONSTS(4) = 7.55655
      CONSTS(5) = 8506.72
      CONSTS(6) = 7.55655
      CONSTS(7) = 0.241033
      CONSTS(8) = 45.2524
      CONSTS(9) = 6662.34
      CONSTS(10) = 6662.34
      CONSTS(11) = 3.65954e-06
      CONSTS(12) = 45.8697
      CONSTS(13) = 2.31881
      CONSTS(14) = 0.242269
      CONSTS(15) = 272.733
      CONSTS(16) = 0.000838529
      CONSTS(17) = 228.515
      CONSTS(18) = 0.320649
      CONSTS(19) = 0.309339
      CONSTS(20) = 0.445746
      CONSTS(21) = 237.968
      CONSTS(22) = 0.313625
      CONSTS(23) = 5.22709
      CONSTS(24) = 17.0902
      CONSTS(25) = 2.55479e-06
      CONSTS(26) = 0.00185871
      CONSTS(27) = 93.2902
      CONSTS(28) = 8.31
      CONSTS(29) = 310
      CONSTS(30) = 96485
      CONSTS(31) = 2
      CONSTS(32) = 2
      CONSTS(33) = 2
      CONSTS(34) = 34.0
      CONSTS(35) =  CONSTS(34)*0.0350000
      CONSTS(36) =  CONSTS(28)*CONSTS(29)*log( CONSTS(27)*CONSTS(1))
      CONSTS(37) = CONSTS(34)+CONSTS(35)
      CONSTS(38) =  CONSTS(28)*CONSTS(29)*log( CONSTS(27)*CONSTS(2))
      CONSTS(39) = CONSTS(36) - CONSTS(38)
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(19) =  CONSTS(28)*CONSTS(29)*log( CONSTS(20)*STATES(12))
      ALGBRC(24) = ALGBRC(19)+CONSTS(39)
      ALGBRC(14) =  CONSTS(28)*CONSTS(29)*log( CONSTS(12)*STATES(7))
      ALGBRC(13) =  CONSTS(28)*CONSTS(29)*log( CONSTS(26)*STATES(4))
      ALGBRC(25) = ALGBRC(14)+ALGBRC(13)+CONSTS(39)
      ALGBRC(42) =  CONSTS(11)*(EXP(ALGBRC(24)/( CONSTS(28)*CONSTS(29))) - EXP(ALGBRC(25)/( CONSTS(28)*CONSTS(29))))
      ALGBRC(44) = ALGBRC(42)
      RATES(4) = ALGBRC(44)
      ALGBRC(12) =  CONSTS(28)*CONSTS(29)*log( CONSTS(24)*STATES(6))
      ALGBRC(26) = ALGBRC(14)+ALGBRC(12)+CONSTS(39)
      ALGBRC(15) =  CONSTS(28)*CONSTS(29)*log( CONSTS(13)*STATES(8))
      ALGBRC(27) = ALGBRC(15)+CONSTS(39)
      ALGBRC(43) =  CONSTS(3)*(EXP(ALGBRC(26)/( CONSTS(28)*CONSTS(29))) - EXP(ALGBRC(27)/( CONSTS(28)*CONSTS(29))))
      ALGBRC(46) = - ALGBRC(43)
      RATES(6) = ALGBRC(46)
      ALGBRC(47) = ALGBRC(42) - ALGBRC(43)
      RATES(7) = ALGBRC(47)
      ALGBRC(18) =  CONSTS(28)*CONSTS(29)*log( CONSTS(16)*STATES(11))
      ALGBRC(28) = ALGBRC(18)+CONSTS(39)
      ALGBRC(11) =  CONSTS(28)*CONSTS(29)*log( CONSTS(25)*STATES(5))
      ALGBRC(20) =  CONSTS(28)*CONSTS(29)*log( CONSTS(17)*STATES(13))
      ALGBRC(29) = ALGBRC(11)+ALGBRC(20)+CONSTS(39)
      ALGBRC(45) =  CONSTS(7)*(EXP(ALGBRC(28)/( CONSTS(28)*CONSTS(29))) - EXP(ALGBRC(29)/( CONSTS(28)*CONSTS(29))))
      ALGBRC(49) = ALGBRC(45)
      RATES(5) = ALGBRC(49)
      ALGBRC(10) =  CONSTS(28)*CONSTS(29)*log( CONSTS(21)*STATES(3))
      ALGBRC(30) = ALGBRC(15)+ALGBRC(10)+CONSTS(39)
      ALGBRC(16) =  CONSTS(28)*CONSTS(29)*log( CONSTS(14)*STATES(9))
      ALGBRC(31) = ALGBRC(16)+CONSTS(39)
      ALGBRC(48) =  CONSTS(5)*(EXP(ALGBRC(30)/( CONSTS(28)*CONSTS(29))) - EXP(ALGBRC(31)/( CONSTS(28)*CONSTS(29))))
      ALGBRC(51) = ALGBRC(48)
      RATES(9) = ALGBRC(51)
      ALGBRC(8) =  CONSTS(28)*CONSTS(29)*log( CONSTS(22)*STATES(1))
      ALGBRC(32) = ALGBRC(15)+ CONSTS(31)*ALGBRC(8)+CONSTS(39)
      ALGBRC(17) =  CONSTS(28)*CONSTS(29)*log( CONSTS(15)*STATES(10))
      ALGBRC(33) = ALGBRC(17)+CONSTS(39)
      ALGBRC(50) =  CONSTS(4)*(EXP(ALGBRC(32)/( CONSTS(28)*CONSTS(29))) - EXP(ALGBRC(33)/( CONSTS(28)*CONSTS(29))))
      ALGBRC(52) =  - CONSTS(31)*ALGBRC(50)
      RATES(1) = ALGBRC(52)
      ALGBRC(54) = ALGBRC(43) - ALGBRC(50)
      RATES(8) = ALGBRC(54)
      ALGBRC(34) = ALGBRC(17)+CONSTS(39)
      ALGBRC(35) = ALGBRC(18)+ CONSTS(33)*ALGBRC(10)+CONSTS(39)
      ALGBRC(53) =  CONSTS(6)*(EXP(ALGBRC(34)/( CONSTS(28)*CONSTS(29))) - EXP(ALGBRC(35)/( CONSTS(28)*CONSTS(29))))
      ALGBRC(56) = ALGBRC(50) - ALGBRC(53)
      RATES(10) = ALGBRC(56)
      ALGBRC(57) = ALGBRC(53) - ALGBRC(45)
      RATES(11) = ALGBRC(57)
      ALGBRC(36) = ALGBRC(20)+CONSTS(39)
      ALGBRC(9) =  CONSTS(28)*CONSTS(29)*log( CONSTS(23)*STATES(2))
      ALGBRC(22) =  CONSTS(28)*CONSTS(29)*log( CONSTS(18)*STATES(14))
      ALGBRC(37) = ALGBRC(22)+ CONSTS(32)*ALGBRC(9)+CONSTS(39)
      ALGBRC(55) =  CONSTS(8)*(EXP(ALGBRC(36)/( CONSTS(28)*CONSTS(29))) - EXP(ALGBRC(37)/( CONSTS(28)*CONSTS(29))))
      ALGBRC(58) =  CONSTS(32)*ALGBRC(55)
      RATES(2) = ALGBRC(58)
      ALGBRC(60) = ALGBRC(45) - ALGBRC(55)
      RATES(13) = ALGBRC(60)
      ALGBRC(38) = ALGBRC(22)+ CONSTS(33)*ALGBRC(10)+CONSTS(39)
      ALGBRC(23) =  CONSTS(28)*CONSTS(29)*log( CONSTS(19)*STATES(15))
      ALGBRC(39) = ALGBRC(23)+CONSTS(39)
      ALGBRC(59) =  CONSTS(9)*(EXP(ALGBRC(38)/( CONSTS(28)*CONSTS(29))) - EXP(ALGBRC(39)/( CONSTS(28)*CONSTS(29))))
      ALGBRC(62) = ALGBRC(55) - ALGBRC(59)
      RATES(14) = ALGBRC(62)
      ALGBRC(40) = ALGBRC(23)+CONSTS(39)
      ALGBRC(41) = ALGBRC(10)+ALGBRC(19)+CONSTS(39)
      ALGBRC(61) =  CONSTS(10)*(EXP(ALGBRC(40)/( CONSTS(28)*CONSTS(29))) - EXP(ALGBRC(41)/( CONSTS(28)*CONSTS(29))))
      ALGBRC(63) = (( CONSTS(33)*ALGBRC(53) - ALGBRC(48)) -  CONSTS(33)*ALGBRC(59))+ALGBRC(61)
      RATES(3) = ALGBRC(63)
      ALGBRC(65) = ALGBRC(61) - ALGBRC(42)
      RATES(12) = ALGBRC(65)
      ALGBRC(64) = ALGBRC(59) - ALGBRC(61)
      RATES(15) = ALGBRC(64)
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(19) =  CONSTS(28)*CONSTS(29)*log( CONSTS(20)*STATES(12))
      ALGBRC(24) = ALGBRC(19)+CONSTS(39)
      ALGBRC(14) =  CONSTS(28)*CONSTS(29)*log( CONSTS(12)*STATES(7))
      ALGBRC(13) =  CONSTS(28)*CONSTS(29)*log( CONSTS(26)*STATES(4))
      ALGBRC(25) = ALGBRC(14)+ALGBRC(13)+CONSTS(39)
      ALGBRC(42) =  CONSTS(11)*(EXP(ALGBRC(24)/( CONSTS(28)*CONSTS(29))) - EXP(ALGBRC(25)/( CONSTS(28)*CONSTS(29))))
      ALGBRC(44) = ALGBRC(42)
      ALGBRC(12) =  CONSTS(28)*CONSTS(29)*log( CONSTS(24)*STATES(6))
      ALGBRC(26) = ALGBRC(14)+ALGBRC(12)+CONSTS(39)
      ALGBRC(15) =  CONSTS(28)*CONSTS(29)*log( CONSTS(13)*STATES(8))
      ALGBRC(27) = ALGBRC(15)+CONSTS(39)
      ALGBRC(43) =  CONSTS(3)*(EXP(ALGBRC(26)/( CONSTS(28)*CONSTS(29))) - EXP(ALGBRC(27)/( CONSTS(28)*CONSTS(29))))
      ALGBRC(46) = - ALGBRC(43)
      ALGBRC(47) = ALGBRC(42) - ALGBRC(43)
      ALGBRC(18) =  CONSTS(28)*CONSTS(29)*log( CONSTS(16)*STATES(11))
      ALGBRC(28) = ALGBRC(18)+CONSTS(39)
      ALGBRC(11) =  CONSTS(28)*CONSTS(29)*log( CONSTS(25)*STATES(5))
      ALGBRC(20) =  CONSTS(28)*CONSTS(29)*log( CONSTS(17)*STATES(13))
      ALGBRC(29) = ALGBRC(11)+ALGBRC(20)+CONSTS(39)
      ALGBRC(45) =  CONSTS(7)*(EXP(ALGBRC(28)/( CONSTS(28)*CONSTS(29))) - EXP(ALGBRC(29)/( CONSTS(28)*CONSTS(29))))
      ALGBRC(49) = ALGBRC(45)
      ALGBRC(10) =  CONSTS(28)*CONSTS(29)*log( CONSTS(21)*STATES(3))
      ALGBRC(30) = ALGBRC(15)+ALGBRC(10)+CONSTS(39)
      ALGBRC(16) =  CONSTS(28)*CONSTS(29)*log( CONSTS(14)*STATES(9))
      ALGBRC(31) = ALGBRC(16)+CONSTS(39)
      ALGBRC(48) =  CONSTS(5)*(EXP(ALGBRC(30)/( CONSTS(28)*CONSTS(29))) - EXP(ALGBRC(31)/( CONSTS(28)*CONSTS(29))))
      ALGBRC(51) = ALGBRC(48)
      ALGBRC(8) =  CONSTS(28)*CONSTS(29)*log( CONSTS(22)*STATES(1))
      ALGBRC(32) = ALGBRC(15)+ CONSTS(31)*ALGBRC(8)+CONSTS(39)
      ALGBRC(17) =  CONSTS(28)*CONSTS(29)*log( CONSTS(15)*STATES(10))
      ALGBRC(33) = ALGBRC(17)+CONSTS(39)
      ALGBRC(50) =  CONSTS(4)*(EXP(ALGBRC(32)/( CONSTS(28)*CONSTS(29))) - EXP(ALGBRC(33)/( CONSTS(28)*CONSTS(29))))
      ALGBRC(52) =  - CONSTS(31)*ALGBRC(50)
      ALGBRC(54) = ALGBRC(43) - ALGBRC(50)
      ALGBRC(34) = ALGBRC(17)+CONSTS(39)
      ALGBRC(35) = ALGBRC(18)+ CONSTS(33)*ALGBRC(10)+CONSTS(39)
      ALGBRC(53) =  CONSTS(6)*(EXP(ALGBRC(34)/( CONSTS(28)*CONSTS(29))) - EXP(ALGBRC(35)/( CONSTS(28)*CONSTS(29))))
      ALGBRC(56) = ALGBRC(50) - ALGBRC(53)
      ALGBRC(57) = ALGBRC(53) - ALGBRC(45)
      ALGBRC(36) = ALGBRC(20)+CONSTS(39)
      ALGBRC(9) =  CONSTS(28)*CONSTS(29)*log( CONSTS(23)*STATES(2))
      ALGBRC(22) =  CONSTS(28)*CONSTS(29)*log( CONSTS(18)*STATES(14))
      ALGBRC(37) = ALGBRC(22)+ CONSTS(32)*ALGBRC(9)+CONSTS(39)
      ALGBRC(55) =  CONSTS(8)*(EXP(ALGBRC(36)/( CONSTS(28)*CONSTS(29))) - EXP(ALGBRC(37)/( CONSTS(28)*CONSTS(29))))
      ALGBRC(58) =  CONSTS(32)*ALGBRC(55)
      ALGBRC(60) = ALGBRC(45) - ALGBRC(55)
      ALGBRC(38) = ALGBRC(22)+ CONSTS(33)*ALGBRC(10)+CONSTS(39)
      ALGBRC(23) =  CONSTS(28)*CONSTS(29)*log( CONSTS(19)*STATES(15))
      ALGBRC(39) = ALGBRC(23)+CONSTS(39)
      ALGBRC(59) =  CONSTS(9)*(EXP(ALGBRC(38)/( CONSTS(28)*CONSTS(29))) - EXP(ALGBRC(39)/( CONSTS(28)*CONSTS(29))))
      ALGBRC(62) = ALGBRC(55) - ALGBRC(59)
      ALGBRC(40) = ALGBRC(23)+CONSTS(39)
      ALGBRC(41) = ALGBRC(10)+ALGBRC(19)+CONSTS(39)
      ALGBRC(61) =  CONSTS(10)*(EXP(ALGBRC(40)/( CONSTS(28)*CONSTS(29))) - EXP(ALGBRC(41)/( CONSTS(28)*CONSTS(29))))
      ALGBRC(63) = (( CONSTS(33)*ALGBRC(53) - ALGBRC(48)) -  CONSTS(33)*ALGBRC(59))+ALGBRC(61)
      ALGBRC(65) = ALGBRC(61) - ALGBRC(42)
      ALGBRC(64) = ALGBRC(59) - ALGBRC(61)
      ALGBRC(1) =  CONSTS(31)*STATES(10)+ CONSTS(31)*STATES(11)+ CONSTS(32)*STATES(13)
      ALGBRC(2) = STATES(1)/CONSTS(34)
      ALGBRC(3) = STATES(2)/CONSTS(35)
      ALGBRC(4) = STATES(3)/CONSTS(37)
      ALGBRC(5) = STATES(5)/CONSTS(34)
      ALGBRC(6) = STATES(6)/CONSTS(34)
      ALGBRC(7) = STATES(4)/CONSTS(34)
      ALGBRC(21) =  CONSTS(11)*(EXP(ALGBRC(19)/( CONSTS(28)*CONSTS(29))) - EXP((ALGBRC(14)+ALGBRC(13))/( CONSTS(28)*CONSTS(29))))
      RETURN
      END