 **********
 **   18 **HESSE 
 **********

 FCN=   25449.67     FROM HESSE     STATUS=OK           633 CALLS     2773 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.668        20.890        .21462E-03   -1.5615    
   2  norm          11.330        2.5762        .29744E-03   -1.5641    
   3  Prefactor     .77716E-09    50.634        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .60016        1.0317        .69155E-03   -1.5692    
   5  Prefactor     .30476E-07    19.797        .27464E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .83897E-01    .35304        .32345E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.610        9.6144        .27133E-03   -1.5634    
   8  Prefactor     .16653E-09    2.0228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.9811        9.1238        .37939E-03   -1.5655    
  10  Prefactor     2.6859        6.6853        .62174E-03   -1.5675    
  11  Prefactor     .55511E-10    .63213        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        2.1168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .27756E-09    1.7849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.5523        3.2013        .42615E-03   -1.5661    
  15  Prefactor     .37748E-08    2.6907        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        .68742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.9013        8.8556        .38198E-03   -1.5655    
  18  norm          2.2212        1.7603        .68996E-03   -1.5678    
  19  norm          .34972E-08    1.3857        .65507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .67724E-08    2.8247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1304        .70397        .10985E-02   -1.5687    
  22  norm          4.6972        1.3374        .46407E-03   -1.5665    
  23  Prefactor     .30531E-08    3.5770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.1934        4.1120        .44126E-03   -1.5662    
  25  Prefactor     .11102E-09    4.0513        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .81601E-08    3.4424        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor      .0000        .48990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0582        .84008E-01    .40036E-01   -.91106    
  29  Prefactor     1.1529        .10345        .63293E-01   -.87792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16447e-07
Minuit parameter uncertainties:
  1  20.8896
  2  2.57623
  3  0.000401731
  4  1.0317
  5  0.00155282
  6  0.344201
  7  9.61437
  8  3.83965e-05
  9  9.12382
  10  6.68532
  11  9.19286e-06
  12  4.38049e-06
  13  4.255e-05
  14  3.20129
  15  0.000201072
  16  9.16463e-07
  17  8.85566
  18  1.76033
  19  0.000138917
  20  0.000276286
  21  0.703971
  22  1.33741
  23  0.000209584
  24  4.11202
  25  4.20396e-05
  26  0.000335408
  27  9.72432e-07
  28  0.084019
  29  0.103468
 **********
 **   18 **HESSE 
 **********

 FCN=   25449.67     FROM HESSE     STATUS=OK           633 CALLS     2773 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.668        20.890        .21462E-03   -1.5615    
   2  norm          11.330        2.5762        .29744E-03   -1.5641    
   3  Prefactor     .77716E-09    50.634        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .60016        1.0317        .69155E-03   -1.5692    
   5  Prefactor     .30476E-07    19.797        .27464E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .83897E-01    .35304        .32345E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.610        9.6144        .27133E-03   -1.5634    
   8  Prefactor     .16653E-09    2.0228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.9811        9.1238        .37939E-03   -1.5655    
  10  Prefactor     2.6859        6.6853        .62174E-03   -1.5675    
  11  Prefactor     .55511E-10    .63213        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        2.1168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .27756E-09    1.7849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.5523        3.2013        .42615E-03   -1.5661    
  15  Prefactor     .37748E-08    2.6907        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        .68742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.9013        8.8556        .38198E-03   -1.5655    
  18  norm          2.2212        1.7603        .68996E-03   -1.5678    
  19  norm          .34972E-08    1.3857        .65507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .67724E-08    2.8247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1304        .70397        .10985E-02   -1.5687    
  22  norm          4.6972        1.3374        .46407E-03   -1.5665    
  23  Prefactor     .30531E-08    3.5770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.1934        4.1120        .44126E-03   -1.5662    
  25  Prefactor     .11102E-09    4.0513        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .81601E-08    3.4424        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor      .0000        .48990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0582        .84008E-01    .40036E-01   -.91106    
  29  Prefactor     1.1529        .10345        .63293E-01   -.87792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16447e-07
Minuit parameter uncertainties:
  1  20.8896
  2  2.57623
  3  0.000401731
  4  1.0317
  5  0.00155282
  6  0.344201
  7  9.61437
  8  3.83965e-05
  9  9.12382
  10  6.68532
  11  9.19286e-06
  12  4.38049e-06
  13  4.255e-05
  14  3.20129
  15  0.000201072
  16  9.16463e-07
  17  8.85566
  18  1.76033
  19  0.000138917
  20  0.000276286
  21  0.703971
  22  1.33741
  23  0.000209584
  24  4.11202
  25  4.20396e-05
  26  0.000335408
  27  9.72432e-07
  28  0.084019
  29  0.103468
/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

 outfile=/lscratch/kocevski/18871371/ltcube_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/18871371/ft2_4FGL_J1208.4+6121_weekly_bin777.fits
.....................!
real 18.89
user 18.23
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18871371/ft1_filtered_4FGL_J1208.4+6121_weekly_bin777.fits evtable="EVENTS" scfile=/lscratch/kocevski/18871371/ft2_4FGL_J1208.4+6121_weekly_bin777.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18871371/ltcube_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.fits outfile=/lscratch/kocevski/18871371/expmap_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/18871371/ltcube_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.fits
.....................!
real 67.94
user 63.29
sys 3.95

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 222 point sources and 0 extended sources

Setting source of interest to:
4FGL J1208.4+6121 @ 182.114 61.3559

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18871371/ft1_filtered_4FGL_J1208.4+6121_weekly_bin777.fits scfile=/lscratch/kocevski/18871371/ft2_4FGL_J1208.4+6121_weekly_bin777.fits outfile=/lscratch/kocevski/18871371/cmap_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=182.114 yref=61.3559 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.60
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18871371/ft1_filtered_4FGL_J1208.4+6121_weekly_bin777.fits scfile=/lscratch/kocevski/18871371/ft2_4FGL_J1208.4+6121_weekly_bin777.fits outfile=/lscratch/kocevski/18871371/cmap_HighResolution_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=182.114 yref=61.3559 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.61
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18871371/ft1_filtered_4FGL_J1208.4+6121_weekly_bin777.fits evtable="EVENTS" scfile=/lscratch/kocevski/18871371/ft2_4FGL_J1208.4+6121_weekly_bin777.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18871371/Model_4FGL_J1208.4+6121_weekly_bin777.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding sourcDone.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 25449.6749852

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  3.775e-09  2.011e-04  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.073e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  2.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.153e+00  1.035e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.058e+00  8.402e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 182.114 61.356
Photon Flux Upper Limit: 1.41091123578e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00106449938162 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18869648/likelihoodResults_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 25449.6752261
delta logL = -0.000240852667048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 25449.6749853
delta logL = -1.27849489218e-07

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12734E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .36756       1.0000          .0000       10.000    
     3 'Normalizat'    1.0581       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1530       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   25449.67     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      242 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.9306        .42118E-03** at limit **
   2  Index         1.9693        1.4670       -.32703E-06     .0000    
   3  Normalizat    1.0582        1.1934        .16941E-04    .42275E-03
   4  Prefactor     1.1529        1.1206       -.18915E-04    .30290E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.96932
  Normalizat = 1.05817
  Prefactor  = 1.15294
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   25449.67     FROM HESSE     STATUS=FAILED         9 CALLS      251 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.9306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .41360        1.7695       -.32703E-06   -.65119    
   3  Normalizat    1.0582        1.1934        .16941E-04   -.91106    
   4  Prefactor     1.1529        1.1206       -.18915E-04   -.87792    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.53762e-11
Minuit parameter uncertainties:
  1  9.07261e-06
  2  1.50253
  3  1.22586
  4  1.145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 25449.6749852
delta logL = 6.80302036926e-10

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  0.000e+00  9.073e-06  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  1.969e+00  1.503e+00  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  2.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.153e+00  1.145e+00  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.058e+00  1.226e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 182.114 61.356

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/18869648/cmap_HighResolution_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-03', job_status='DONE', photon_flux_upper_limit='1.41e-08', time_completed='2023-07-10 09:21:50.179919', job_id='18869648', GAL2='1.15', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1689006110.18', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='6.80e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='777' AND source_name='4FGL J1208.4+6121' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 10 09:21:50 PDT 2023

Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 25449.6749852

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  3.775e-09  2.011e-04  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.073e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  2.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.153e+00  1.035e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.058e+00  8.402e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 182.114 61.356
Photon Flux Upper Limit: 1.41091123578e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00106449938162 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18868906/likelihoodResults_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 25449.6752261
delta logL = -0.000240852667048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 25449.6749853
delta logL = -1.27849489218e-07

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12734E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .36756       1.0000          .0000       10.000    
     3 'Normalizat'    1.0581       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1530       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   25449.67     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      242 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.9306        .42118E-03** at limit **
   2  Index         1.9693        1.4670       -.32703E-06     .0000    
   3  Normalizat    1.0582        1.1934        .16941E-04    .42275E-03
   4  Prefactor     1.1529        1.1206       -.18915E-04    .30290E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.96932
  Normalizat = 1.05817
  Prefactor  = 1.15294
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   25449.67     FROM HESSE     STATUS=FAILED         9 CALLS      251 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.9306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .41360        1.7695       -.32703E-06   -.65119    
   3  Normalizat    1.0582        1.1934        .16941E-04   -.91106    
   4  Prefactor     1.1529        1.1206       -.18915E-04   -.87792    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.53762e-11
Minuit parameter uncertainties:
  1  9.07261e-06
  2  1.50253
  3  1.22586
  4  1.145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 25449.6749852
delta logL = 6.80302036926e-10

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  0.000e+00  9.073e-06  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  1.969e+00  1.503e+00  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  2.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.153e+00  1.145e+00  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.058e+00  1.226e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 182.114 61.356

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/18868906/cmap_HighResolution_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-03', job_status='DONE', photon_flux_upper_limit='1.41e-08', time_completed='2023-07-10 09:22:16.998731', job_id='18868906', GAL2='1.15', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1689006137.0', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='6.80e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='777' AND source_name='4FGL J1208.4+6121' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 10 09:22:17 PDT 2023

number of points = 17691
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1208.4+6121_weekly_bin777
RA = 182.114, Dec = 61.3559
tmin = 708912001, tmax = 709516801
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='18873691', job_status='RUN', time_executed='2023-07-10 09:19:20.142229', time_epoch_executed='1689005960.14' WHERE source_name='4FGL J1208.4+6121' and cadence='weekly' and bin_id='777'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18873691

Creating custom pfile directory:
/lscratch/kocevski/18873691/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=708912001.0 && nMetStart<709516801.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=708912001.0 && nMetStart<709516801.0' /Data/Flight/Level1/LPA

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18873691/ft1_4FGL_J1208.4+6121_weekly_bin777.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=708912001.0 && nMetStart<709516801.0' /Data/Flight/Level1/LPA

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18873691/ft2_4FGL_J1208.4+6121_weekly_bin777.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18873691/ft1_4FGL_J1208.4+6121_weekly_bin777.fits outfile=/lscratch/kocevski/18873691/ft1_filteredMKT_4FGL_J1208.4+6121_weekly_bin777.fits ra=182.114 dec=61.3559 rad=12.0 tmin=708912001.0 tmax=709516801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.39
user 2.92
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18873691/ft2_4FGL_J1208.4+6121_weekly_bin777.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18873691/ft2_4FGL_J1208.4+6121_weekly_bin777.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/18873691/ft1_filteredMKT_4FGL_J1208.4+6121_weekly_bin777.fits evtable="EVENTS" outfile="/lscratch/kocevski/18873691/ft1_filtered_4FGL_J1208.4+6121_weekly_bin777.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.57
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 2362

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18873691/ft1_filtered_4FGL_J1208.4+6121_weekly_bin777.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18873691/ft2_4FGL_J1208.4+6121_weekly_bin777.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18873691/ltcube_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/18873691/ft2_4FGL_J1208.4+6121_weekly_bin777.fits
.....................!
real 18.31
user 17.75
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18873691/ft1_filtered_4FGL_J1208.4+6121_weekly_bin777.fits evtable="EVENTS" scfile=/lscratch/kocevski/18873691/ft2_4FGL_J1208.4+6121_weekly_bin777.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18873691/ltcube_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.fits outfile=/lscratch/kocevski/18873691/expmap_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/18873691/ltcube_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.fits
.....................!
real 67.80
user 63.32
sys 3.89

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 222 point sources and 0 extended sources

Setting source of interest to:
4FGL J1208.4+6121 @ 182.114 61.3559

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18873691/ft1_filtered_4FGL_J1208.4+6121_weekly_bin777.fits scfile=/lscratch/kocevski/18873691/ft2_4FGL_J1208.4+6121_weekly_bin777.fits outfile=/lscratch/kocevski/18873691/cmap_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=182.114 yref=61.3559 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.62
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18873691/ft1_filtered_4FGL_J1208.4+6121_weekly_bin777.fits scfile=/lscratch/kocevski/18873691/ft2_4FGL_J1208.4+6121_weekly_bin777.fits outfile=/lscratch/kocevski/18873691/cmap_HighResolution_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=182.114 yref=61.3559 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.67
user 0.25
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18873691/ft1_filtered_4FGL_J1208.4+6121_weekly_bin777.fits evtable="EVENTS" scfile=/lscratch/kocevski/18873691/ft2_4FGL_J1208.4+6121_weekly_bin777.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18873691/Model_4FGL_J1208.4+6121_weekly_bin777.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/18871371/ft1_filtered_4FGL_J1208.4+6121_weekly_bin777.fits.....................!
real 77.89
user 76.34
sys 0.82

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18871371/ft1_filtered_4FGL_J1208.4+6121_weekly_bin777.fits', '/lscratch/kocevski/18871371/ft2_4FGL_J1208.4+6121_weekly_bin777.fits', expMap='/lscratch/kocevski/18871371/expmap_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.fits', expCube='/lscratch/kocevski/18871371/ltcube_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18871371/Model_4FGL_J1208.4+6121_weekly_bin777.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1208.4+6121'

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.772e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.073e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  2.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18871371/ft1_filtered_4FGL_J1208.4+6121_weekly_bin777.fits
Spacecraft file(s): /lscratch/kocevski/18871371/ft2_4FGL_J1208.4+6121_weekly_bin777.fits
Exposure map: /lscratch/kocevski/18871371/expmap_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.fits
Exposure cube: /lscratch/kocevski/18871371/ltcube_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18871371/Model_4FGL_J1208.4+6121_weekly_bin777.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 25449.7395333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 25449.67522

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.722       1.0000          .0000       .10000E+07
     2 'norm      '    11.325       1.0000          .0000       .10000E+07
     3 'Prefactor '    .83070E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .60082       1.0000          .0000       .10000E+07
     5 'Prefactor '    .29807E-01   1.0000          .0000       .10000E+07
     6 'norm      '    .82651E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    13.602       1.0000          .0000       .10000E+07
     8 'Prefactor '    .27921E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    6.9837       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.6836       1.0000          .0000       .10000E+07
    11 'Prefactor '    .40168E-05   1.0000          .0000       .10000E+07
    12 'norm      '    .31792E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .26750E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    5.5519       1.0000          .0000       .10000E+07
    15 'Prefactor '    .72910E-04   1.0000          .0000       .10000E+07
    16 'norm      '    .10092E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    6.8903       1.0000          .0000       .10000E+07
    18 'norm      '    2.2196       1.0000          .0000       .10000E+07
    19 'norm      '    .16074E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    .45183E-05   1.0000          .0000       .10000E+07
    21 'norm      '    1.1304       1.0000          .0000       .10000E+07
    22 'norm      '    4.6972       1.0000          .0000       .10000E+07
    23 'Prefactor '    .92171E-06   1.0000          .0000       .10000E+07
    24 'Prefactor '    5.1844       1.0000          .0000       .10000E+07
    25 'Prefactor '    .14932E-07   1.0000          .0000       .10000E+07
    26 'Prefactor '    .11661E-05   1.0000          .0000       .10000E+07
    27 'Prefactor '    .92187E-06   1.0000          .0000       .10000E+07
    28 'Normalizat'    1.0582       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1529       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   25449.67     FROM MIGRAD    STATUS=CONVERGED    168 CALLS     2140 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.668        3.0184        .20824E-06   -.60831E-01
   2  norm          11.330        1.9825       -.80405E-07   -.39794E-02
   3  Prefactor     .77716E-09    50.494       -.51764E-06** at limit **
   4  norm          .60016        1.0216        .68495E-07   -.41933E-02
   5  Prefactor     .30476E-07    141.83       -.45919E-05** at limit **
   6  norm          .83897E-01    1.0737        .59082E-06** at limit **
   7  Prefactor     13.610        2.6436        .25657E-06   -.15675E-01
   8  Prefactor     .16653E-09    2.0168        .15438E-06** at limit **
   9  Prefactor     6.9811        1.0896       -.49720E-07    .46847E-02
  10  Prefactor     2.6859        2.3663        .62407E-06    .33616E-01
  11  Prefactor     .55511E-10    .63515       -.19673E-06** at limit **
  12  norm           .0000        2.0753        .22935E-06** at limit **
  13  norm          .27756E-09    1.7892       -.87801E-08** at limit **
  14  Prefactor     5.5523        3.1871        .74415E-08    .17475E-04
  15  Prefactor     .37748E-08    2.0009        .22580E-06** at limit **
  16  norm           .0000        .71222       -.16628E-06** at limit **
  17  Prefactor     6.9013        1.9256       -.20507E-06    .40090E-03
  18  norm          2.2212        1.7496        .11900E-06    .22822E-03
  19  norm          .34972E-08    18.998        .30801E-06** at limit **
  20  Prefactor     .67724E-08    1.4549       -.66929E-06** at limit **
  21  norm          1.1304        .68503       -.69709E-07   -.48845E-02
  22  norm          4.6972        1.3311       -.51028E-07    .45448E-03
  23  Prefactor     .30531E-08    3.0112       -.74062E-06** at limit **
  24  Prefactor     5.1934        4.0846       -.43476E-07    .53711E-03
  25  Prefactor     .11102E-09    3.9352        .78439E-06** at limit **
  26  Prefactor     .81601E-08    2.7173        .96549E-06** at limit **
  27  Prefactor      .0000        .48882        .27176E-08** at limit **
  28  Normalizat    1.0582        .97079E-01    .40237E-05    .47358E-04
  29  Prefactor     1.1529        .12198       -.28859E-05    .55696E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.6682
  norm       = 11.3304
  Prefactor  = 7.77156e-10
  norm       = 0.600163
  Prefactor  = 3.04756e-08
  norm       = 0.0838968
  Prefactor  = 13.61
  Prefactor  = 1.66533e-10
  Prefactor  = 6.98106
  Prefactor  = 2.68595
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 2.77556e-10
  Prefactor  = 5.55229
  Prefactor  = 3.77476e-09
  norm       = 0
  Prefactor  = 6.9013
  norm       = 2.22124
  norm       = 3.4972e-09
  Prefactor  = 6.77236e-09
  norm       = 1.13038
  norm       = 4.69715
  Prefactor  = 3.05311e-09
  Prefactor  = 5.1934
  Prefactor  = 1.11022e-10
  Prefactor  = 8.16014e-09
  Prefactor  = 0
  Normalizat = 1.05817
  Prefactor  = 1.15294
 **********
 **   18 **HESSE 
 **********

 FCN=   25449.67     FROM HESSE     STATUS=OK           633 CALLS     2773 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.668        20.890        .21462E-03   -1.5615    
   2  norm          11.330        2.5762        .29744E-03   -1.5641    
   3  Prefactor     .77716E-09    50.634        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .60016        1.0317        .69155E-03   -1.5692    
   5  Prefactor     .30476E-07    19.797        .27464E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .83897E-01    .35304        .32345E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.610        9.6144        .27133E-03   -1.5634    
   8  Prefactor     .16653E-09    2.0228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.9811        9.1238        .37939E-03   -1.5655    
  10  Prefactor     2.6859        6.6853        .62174E-03   -1.5675    
  11  Prefactor     .55511E-10    .63213        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        2.1168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .27756E-09    1.7849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.5523        3.2013        .42615E-03   -1.5661    
  15  Prefactor     .37748E-08    2.6907        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        .68742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.9013        8.8556        .38198E-03   -1.5655    
  18  norm          2.2212        1.7603        .68996E-03   -1.5678    
  19  norm          .34972E-08    1.3857        .65507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .67724E-08    2.8247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1304        .70397        .10985E-02   -1.5687    
  22  norm          4.6972        1.3374        .46407E-03   -1.5665    
  23  Prefactor     .30531E-08    3.5770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.1934        4.1120        .44126E-03   -1.5662    
  25  Prefactor     .11102E-09    4.0513        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .81601E-08    3.4424        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor      .0000        .48990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0582        .84008E-01    .40036E-01   -.91106    
  29  Prefactor     1.1529        .10345        .63293E-01   -.87792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16447e-07
Minuit parameter uncertainties:
  1  20.8896
  2  2.57623
  3  0.000401731
  4  1.0317
  5  0.00155282
  6  0.344201
  7  9.61437
  8  3.83965e-05
  9  9.12382
  10  6.68532
  11  9.19286e-06
  12  4.38049e-06
  13  4.255e-05
  14  3.20129
  15  0.000201072
  16  9.16463e-07
  17  8.85566
  18  1.76033
  19  0.000138917
  20  0.000276286
  21  0.703971
  22  1.33741
  23  0.000209584
  24  4.11202
  25  4.20396e-05
  26  0.000335408
  27  9.72432e-07
  28  0.084019
  29  0.103468
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 25449.6749852

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  3.775e-09  2.011e-04  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.073e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  2.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.153e+00  1.035e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.058e+00  8.402e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 182.114 61.356
Photon Flux Upper Limit: 1.41091123578e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00106449938162 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18871371/likelihoodResults_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 25449.6752261
delta logL = -0.000240852667048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 25449.6749853
delta logL = -1.27849489218e-07

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12734E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .36756       1.0000          .0000       10.000    
     3 'Normalizat'    1.0581       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1530       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   25449.67     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      242 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.9306        .42118E-03** at limit **
   2  Index         1.9693        1.4670       -.32703E-06     .0000    
   3  Normalizat    1.0582        1.1934        .16941E-04    .42275E-03
   4  Prefactor     1.1529        1.1206       -.18915E-04    .30290E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.96932
  Normalizat = 1.05817
  Prefactor  = 1.15294
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   25449.67     FROM HESSE     STATUS=FAILED         9 CALLS      251 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.9306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .41360        1.7695       -.32703E-06   -.65119    
   3  Normalizat    1.0582        1.1934        .16941E-04   -.91106    
   4  Prefactor     1.1529        1.1206       -.18915E-04   -.87792    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.53762e-11
Minuit parameter uncertainties:
  1  9.07261e-06
  2  1.50253
  3  1.22586
  4  1.145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 25449.6749852
delta logL = 6.80302036926e-10

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  0.000e+00  9.073e-06  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  1.969e+00  1.503e+00  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  2.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.153e+00  1.145e+00  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.058e+00  1.226e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 182.114 61.356

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/18871371/cmap_HighResolution_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-03', job_status='DONE', photon_flux_upper_limit='1.41e-08', time_completed='2023-07-10 09:31:11.001041', job_id='18871371', GAL2='1.15', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1689006671.0', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='6.80e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='777' AND source_name='4FGL J1208.4+6121' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 10 09:31:11 PDT 2023

e GAL_V02
Working on...
/lscratch/kocevski/18873691/ft1_filtered_4FGL_J1208.4+6121_weekly_bin777.fits.....................!
real 77.56
user 76.12
sys 0.85

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18873691/ft1_filtered_4FGL_J1208.4+6121_weekly_bin777.fits', '/lscratch/kocevski/18873691/ft2_4FGL_J1208.4+6121_weekly_bin777.fits', expMap='/lscratch/kocevski/18873691/expmap_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.fits', expCube='/lscratch/kocevski/18873691/ltcube_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18873691/Model_4FGL_J1208.4+6121_weekly_bin777.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1208.4+6121'

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.772e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.073e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  2.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18873691/ft1_filtered_4FGL_J1208.4+6121_weekly_bin777.fits
Spacecraft file(s): /lscratch/kocevski/18873691/ft2_4FGL_J1208.4+6121_weekly_bin777.fits
Exposure map: /lscratch/kocevski/18873691/expmap_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.fits
Exposure cube: /lscratch/kocevski/18873691/ltcube_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18873691/Model_4FGL_J1208.4+6121_weekly_bin777.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 25449.7395333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 25449.67522

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.722       1.0000          .0000       .10000E+07
     2 'norm      '    11.325       1.0000          .0000       .10000E+07
     3 'Prefactor '    .83070E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .60082       1.0000          .0000       .10000E+07
     5 'Prefactor '    .29807E-01   1.0000          .0000       .10000E+07
     6 'norm      '    .82651E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    13.602       1.0000          .0000       .10000E+07
     8 'Prefactor '    .27921E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    6.9837       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.6836       1.0000          .0000       .10000E+07
    11 'Prefactor '    .40168E-05   1.0000          .0000       .10000E+07
    12 'norm      '    .31792E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .26750E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    5.5519       1.0000          .0000       .10000E+07
    15 'Prefactor '    .72910E-04   1.0000          .0000       .10000E+07
    16 'norm      '    .10092E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    6.8903       1.0000          .0000       .10000E+07
    18 'norm      '    2.2196       1.0000          .0000       .10000E+07
    19 'norm      '    .16074E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    .45183E-05   1.0000          .0000       .10000E+07
    21 'norm      '    1.1304       1.0000          .0000       .10000E+07
    22 'norm      '    4.6972       1.0000          .0000       .10000E+07
    23 'Prefactor '    .92171E-06   1.0000          .0000       .10000E+07
    24 'Prefactor '    5.1844       1.0000          .0000       .10000E+07
    25 'Prefactor '    .14932E-07   1.0000          .0000       .10000E+07
    26 'Prefactor '    .11661E-05   1.0000          .0000       .10000E+07
    27 'Prefactor '    .92187E-06   1.0000          .0000       .10000E+07
    28 'Normalizat'    1.0582       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1529       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   25449.67     FROM MIGRAD    STATUS=CONVERGED    168 CALLS     2140 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.668        3.0184        .20824E-06   -.60831E-01
   2  norm          11.330        1.9825       -.80405E-07   -.39794E-02
   3  Prefactor     .77716E-09    50.494       -.51764E-06** at limit **
   4  norm          .60016        1.0216        .68495E-07   -.41933E-02
   5  Prefactor     .30476E-07    141.83       -.45919E-05** at limit **
   6  norm          .83897E-01    1.0737        .59082E-06** at limit **
   7  Prefactor     13.610        2.6436        .25657E-06   -.15675E-01
   8  Prefactor     .16653E-09    2.0168        .15438E-06** at limit **
   9  Prefactor     6.9811        1.0896       -.49720E-07    .46847E-02
  10  Prefactor     2.6859        2.3663        .62407E-06    .33616E-01
  11  Prefactor     .55511E-10    .63515       -.19673E-06** at limit **
  12  norm           .0000        2.0753        .22935E-06** at limit **
  13  norm          .27756E-09    1.7892       -.87801E-08** at limit **
  14  Prefactor     5.5523        3.1871        .74415E-08    .17475E-04
  15  Prefactor     .37748E-08    2.0009        .22580E-06** at limit **
  16  norm           .0000        .71222       -.16628E-06** at limit **
  17  Prefactor     6.9013        1.9256       -.20507E-06    .40090E-03
  18  norm          2.2212        1.7496        .11900E-06    .22822E-03
  19  norm          .34972E-08    18.998        .30801E-06** at limit **
  20  Prefactor     .67724E-08    1.4549       -.66929E-06** at limit **
  21  norm          1.1304        .68503       -.69709E-07   -.48845E-02
  22  norm          4.6972        1.3311       -.51028E-07    .45448E-03
  23  Prefactor     .30531E-08    3.0112       -.74062E-06** at limit **
  24  Prefactor     5.1934        4.0846       -.43476E-07    .53711E-03
  25  Prefactor     .11102E-09    3.9352        .78439E-06** at limit **
  26  Prefactor     .81601E-08    2.7173        .96549E-06** at limit **
  27  Prefactor      .0000        .48882        .27176E-08** at limit **
  28  Normalizat    1.0582        .97079E-01    .40237E-05    .47358E-04
  29  Prefactor     1.1529        .12198       -.28859E-05    .55696E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.6682
  norm       = 11.3304
  Prefactor  = 7.77156e-10
  norm       = 0.600163
  Prefactor  = 3.04756e-08
  norm       = 0.0838968
  Prefactor  = 13.61
  Prefactor  = 1.66533e-10
  Prefactor  = 6.98106
  Prefactor  = 2.68595
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 2.77556e-10
  Prefactor  = 5.55229
  Prefactor  = 3.77476e-09
  norm       = 0
  Prefactor  = 6.9013
  norm       = 2.22124
  norm       = 3.4972e-09
  Prefactor  = 6.77236e-09
  norm       = 1.13038
  norm       = 4.69715
  Prefactor  = 3.05311e-09
  Prefactor  = 5.1934
  Prefactor  = 1.11022e-10
  Prefactor  = 8.16014e-09
  Prefactor  = 0
  Normalizat = 1.05817
  Prefactor  = 1.15294
 **********
 **   18 **HESSE 
 **********

 FCN=   25449.67     FROM HESSE     STATUS=OK           633 CALLS     2773 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.668        20.890        .21462E-03   -1.5615    
   2  norm          11.330        2.5762        .29744E-03   -1.5641    
   3  Prefactor     .77716E-09    50.634        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .60016        1.0317        .69155E-03   -1.5692    
   5  Prefactor     .30476E-07    19.797        .27464E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .83897E-01    .35304        .32345E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.610        9.6144        .27133E-03   -1.5634    
   8  Prefactor     .16653E-09    2.0228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.9811        9.1238        .37939E-03   -1.5655    
  10  Prefactor     2.6859        6.6853        .62174E-03   -1.5675    
  11  Prefactor     .55511E-10    .63213        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        2.1168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .27756E-09    1.7849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.5523        3.2013        .42615E-03   -1.5661    
  15  Prefactor     .37748E-08    2.6907        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        .68742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.9013        8.8556        .38198E-03   -1.5655    
  18  norm          2.2212        1.7603        .68996E-03   -1.5678    
  19  norm          .34972E-08    1.3857        .65507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .67724E-08    2.8247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1304        .70397        .10985E-02   -1.5687    
  22  norm          4.6972        1.3374        .46407E-03   -1.5665    
  23  Prefactor     .30531E-08    3.5770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.1934        4.1120        .44126E-03   -1.5662    
  25  Prefactor     .11102E-09    4.0513        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .81601E-08    3.4424        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor      .0000        .48990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0582        .84008E-01    .40036E-01   -.91106    
  29  Prefactor     1.1529        .10345        .63293E-01   -.87792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16447e-07
Minuit parameter uncertainties:
  1  20.8896
  2  2.57623
  3  0.000401731
  4  1.0317
  5  0.00155282
  6  0.344201
  7  9.61437
  8  3.83965e-05
  9  9.12382
  10  6.68532
  11  9.19286e-06
  12  4.38049e-06
  13  4.255e-05
  14  3.20129
  15  0.000201072
  16  9.16463e-07
  17  8.85566
  18  1.76033
  19  0.000138917
  20  0.000276286
  21  0.703971
  22  1.33741
  23  0.000209584
  24  4.11202
  25  4.20396e-05
  26  0.000335408
  27  9.72432e-07
  28  0.084019
  29  0.103468
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 25449.6749852

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  3.775e-09  2.011e-04  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.073e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  2.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.153e+00  1.035e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.058e+00  8.402e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 182.114 61.356
Photon Flux Upper Limit: 1.41091123578e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00106449938162 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18873691/likelihoodResults_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 25449.6752261
delta logL = -0.000240852667048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 25449.6749853
delta logL = -1.27849489218e-07

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12734E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .36756       1.0000          .0000       10.000    
     3 'Normalizat'    1.0581       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1530       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   25449.67     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      242 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.9306        .42118E-03** at limit **
   2  Index         1.9693        1.4670       -.32703E-06     .0000    
   3  Normalizat    1.0582        1.1934        .16941E-04    .42275E-03
   4  Prefactor     1.1529        1.1206       -.18915E-04    .30290E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.96932
  Normalizat = 1.05817
  Prefactor  = 1.15294
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   25449.67     FROM HESSE     STATUS=FAILED         9 CALLS      251 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.9306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .41360        1.7695       -.32703E-06   -.65119    
   3  Normalizat    1.0582        1.1934        .16941E-04   -.91106    
   4  Prefactor     1.1529        1.1206       -.18915E-04   -.87792    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.53762e-11
Minuit parameter uncertainties:
  1  9.07261e-06
  2  1.50253
  3  1.22586
  4  1.145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 25449.6749852
delta logL = 6.80302036926e-10

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  0.000e+00  9.073e-06  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  1.969e+00  1.503e+00  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  2.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.153e+00  1.145e+00  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.058e+00  1.226e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 182.114 61.356

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/18873691/cmap_HighResolution_708912001_709516801_4FGL_J1208.4+6121_weekly_bin777.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-03', job_status='DONE', photon_flux_upper_limit='1.41e-08', time_completed='2023-07-10 09:36:56.517776', job_id='18873691', GAL2='1.15', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1689007016.52', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='6.80e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='777' AND source_name='4FGL J1208.4+6121' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 10 09:36:56 PDT 2023

