/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 113 seconds before starting...
Proceeding.

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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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).

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


Performing analysis on: 4FGL_J1208.4+6121_daily_bin1401
RA = 182.114, Dec = 61.3559
tmin = 602467201, tmax = 602726401
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='350830', job_status='RUN', time_executed='2021-09-05 01:07:26.573771', time_epoch_executed='1630829246.57' WHERE source_name='4FGL J1208.4+6121' and cadence='daily' and bin_id='1401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/350830

Creating custom pfile directory:
/scratch/kocevski/350830/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=602467201.0 && nMetStart<602726401.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=602467201.0 && nMetStart<602726401.0' /Data/Flight/Level1/LPA

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/350830/ft1_4FGL_J1208.4+6121_daily_bin1401.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=602467201.0 && nMetStart<602726401.0' /Data/Flight/Level1/LPA

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/350830/ft2_4FGL_J1208.4+6121_daily_bin1401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/350830/ft1_4FGL_J1208.4+6121_daily_bin1401.fits outfile=/scratch/kocevski/350830/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin1401.fits ra=182.114 dec=61.3559 rad=12.0 tmin=602467201.0 tmax=602726401.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.17
user 2.95
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/350830/ft2_4FGL_J1208.4+6121_daily_bin1401.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/350830/ft2_4FGL_J1208.4+6121_daily_bin1401.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/350830/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin1401.fits evtable="EVENTS" outfile="/scratch/kocevski/350830/ft1_filtered_4FGL_J1208.4+6121_daily_bin1401.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/350830/ft1_filtered_4FGL_J1208.4+6121_daily_bin1401.fits" evtable="EVENTS" scfile=/scratch/kocevski/350830/ft2_4FGL_J1208.4+6121_daily_bin1401.fits sctable="SC_DATA" outfile=/scratch/kocevski/350830/ltcube_602467201_602726401_4FGL_J1208.4+6121_daily_bin1401.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 /scratch/kocevski/350830/ft2_4FGL_J1208.4+6121_daily_bin1401.fits
.....................!
real 12.41
user 12.03
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/350830/ft1_filtered_4FGL_J1208.4+6121_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/350830/ft2_4FGL_J1208.4+6121_daily_bin1401.fits sctable="SC_DATA" expcube=/scratch/kocevski/350830/ltcube_602467201_602726401_4FGL_J1208.4+6121_daily_bin1401.fits outfile=/scratch/kocevski/350830/expmap_602467201_602726401_4FGL_J1208.4+6121_daily_bin1401.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 /scratch/kocevski/350830/ltcube_602467201_602726401_4FGL_J1208.4+6121_daily_bin1401.fits
.....................!
real 189.67
user 184.90
sys 4.45

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=/scratch/kocevski/350830/ft1_filtered_4FGL_J1208.4+6121_daily_bin1401.fits scfile=/scratch/kocevski/350830/ft2_4FGL_J1208.4+6121_daily_bin1401.fits outfile=/scratch/kocevski/350830/cmap_602467201_602726401_4FGL_J1208.4+6121_daily_bin1401.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/350830/ft1_filtered_4FGL_J1208.4+6121_daily_bin1401.fits scfile=/scratch/kocevski/350830/ft2_4FGL_J1208.4+6121_daily_bin1401.fits outfile=/scratch/kocevski/350830/cmap_HighResolution_602467201_602726401_4FGL_J1208.4+6121_daily_bin1401.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.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/350830/ft1_filtered_4FGL_J1208.4+6121_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/350830/ft2_4FGL_J1208.4+6121_daily_bin1401.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/350830/Model_4FGL_J1208.4+6121_daily_bin1401.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...
/scratch/kocevski/350830/ft1_filtered_4FGL_J1208.4+6121_daily_bin1401.fits.....................!
real 29.00
user 27.66
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/350830/ft1_filtered_4FGL_J1208.4+6121_daily_bin1401.fits', '/scratch/kocevski/350830/ft2_4FGL_J1208.4+6121_daily_bin1401.fits', expMap='/scratch/kocevski/350830/expmap_602467201_602726401_4FGL_J1208.4+6121_daily_bin1401.fits', expCube='/scratch/kocevski/350830/ltcube_602467201_602726401_4FGL_J1208.4+6121_daily_bin1401.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/350830/Model_4FGL_J1208.4+6121_daily_bin1401.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  1.000e-04  1.000e+04 ( 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): /scratch/kocevski/350830/ft1_filtered_4FGL_J1208.4+6121_daily_bin1401.fits
Spacecraft file(s): /scratch/kocevski/350830/ft2_4FGL_J1208.4+6121_daily_bin1401.fits
Exposure map: /scratch/kocevski/350830/expmap_602467201_602726401_4FGL_J1208.4+6121_daily_bin1401.fits
Exposure cube: /scratch/kocevski/350830/ltcube_602467201_602726401_4FGL_J1208.4+6121_daily_bin1401.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/350830/Model_4FGL_J1208.4+6121_daily_bin1401.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) = 1679.8048364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11819E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    10.020       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0969       1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'norm      '    10000.       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .77827E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .29323E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10000.       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.2276       1.0000         .10000E-03   10000.    
    21 'norm      '    12.119       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .36339E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .59631       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1679.774     FROM MIGRAD    STATUS=CONVERGED    893 CALLS     5984 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    381.93       -.17644E-05** at limit **
   2  norm          10.021        23.932        .81530E-05    .72370E-04
   3  Prefactor     .10000E-03    121.71       -.12624E-05** at limit **
   4  norm          1.0968        1.9677       -.67993E-06   -.10584E-03
   5  Prefactor    10000.0        5229.4        .45976E-04** at limit **
   6  norm         10000.0        1076.5        .18292E-04** at limit **
   7  Prefactor     .10000E-03    51.567        .72621E-05** at limit **
   8  Prefactor    10000.0        8423.9        .66717E-05** at limit **
   9  Prefactor    10000.0        864.22        .13700E-04** at limit **
  10  Prefactor    10000.0        1876.0        .40792E-05** at limit **
  11  Prefactor     .10000E-03    11.663       -.32376E-07** at limit **
  12  Prefactor     .86867E-01    4.6133        .51727E-06   -.13359E-03
  13  norm          .10001E-03    1367.0       -.22496E-04** at limit **
  14  norm         10000.0        155.65       -.38039E-05** at limit **
  15  Prefactor    10000.0        539.58        .33926E-05** at limit **
  16  Prefactor    10000.0        517.32        .23615E-05** at limit **
  17  norm          .10000E-03    7.0777       -.38812E-07** at limit **
  18  Prefactor    10000.0        6414.8        .32567E-04** at limit **
  19  Prefactor     .10000E-03    286.58        .73125E-05** at limit **
  20  norm          4.2280        3.9435       -.92450E-07   -.41744E-04
  21  norm          12.127        34.105        .28279E-06   -.38158E-05
  22  Prefactor     .10000E-03    4.6436       -.41544E-08** at limit **
  23  norm          .10000E-03    1.9781        .50122E-07** at limit **
  24  norm          .10000E-03    1.6185       -.96196E-07** at limit **
  25  Prefactor     .10000E-03    18.433        .59245E-07** at limit **
  26  Prefactor     .10000E-03    41.000        .10665E-04** at limit **
  27  Prefactor     .10000E-03    23.754        .14381E-06** at limit **
  28  Prefactor     .10000E-03    33.425        .32280E-07** at limit **
  29  Prefactor     .10000E-03    1.1617        .49957E-06** at limit **
  30  Prefactor     .10000E-03    1.8459        .50633E-07** at limit **
  31  Normalizat    .10000E-01    .29486E-01    .21183E-05** at limit **
  32  Prefactor     .59603        .13363        .44411E-06   -.14473E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  norm       = 10.0209
  Prefactor  = 0.0001
  norm       = 1.09676
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.000100001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0868666
  norm       = 0.000100006
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.000100001
  norm       = 4.22802
  norm       = 12.1268
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.596031
 **********
 **   18 **HESSE 
 **********

 FCN=   1679.774     FROM HESSE     STATUS=OK           645 CALLS     6629 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    382.45        .20649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.021        24.092        .63295E-03   -1.5075    
   3  Prefactor     .10000E-03    121.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0968        1.9818        .81845E-03   -1.5499    
   5  Prefactor    10000.0        5229.7        .18163E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm         10000.0        1078.5        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    51.687        .17952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        8424.0        .21294E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        865.28        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        1876.6        .21295E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.663        .13673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .86867E-01    57.468        .16928E-02   -1.5649    
  13  norm          .10001E-03    1369.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm         10000.0        155.78        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        539.78        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        517.42        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.0782        .10651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        6417.5        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    286.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.2280        3.9454        .76016E-04   -1.5297    
  21  norm          12.127        34.118        .11507E-03   -1.5011    
  22  Prefactor     .10000E-03    4.6442        .86268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.9793        .56298E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.6223        .50922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    18.433        .17192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    40.680        .30868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    23.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    33.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.4836        .84748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.8491        .54374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10000E-01    .29674E-01    .42959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .59603        .13346        .21642E-03   -1.0775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.17212e-10
Minuit parameter uncertainties:
  1  0.00360689
  2  24.1152
  3  9.7486e-05
  4  1.9819
  5  0.106883
  6  0.00440877
  7  0.000356357
  8  0.00586073
  9  0.00282768
  10  0.00129174
  11  1.38392e-06
  12  4.47031
  13  0.00589182
  14  0.00031352
  15  0.000557135
  16  0.000378085
  17  8.48393e-07
  18  0.0128088
  19  0.000852036
  20  3.94567
  21  34.1731
  22  4.4205e-07
  23  4.81788e-09
  24  1.27017e-06
  25  1.14062e-06
  26  0.000175185
  27  8.18137e-06
  28  1.64388e-05
  29  4.24558e-05
  30  3.54916e-06
  31  1.77876e-07
  32  0.133527
Done.

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

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.000e+04  3.781e-04  1.000e-04  1.000e+04 ( 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:  5.960e-01  1.335e-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.000e-02  1.779e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.77
Ra Dec: 182.114 61.356
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 1.06e-05 +/- 4.00e-13
Energy Flux (Fixed Index): 6.16e-03 +/- 2.33e-10

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) = 1151.05641219
delta logL = 528.717213225

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1150.99018554
delta logL = 528.783439873

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     2 'Index     '    4.8362       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .16477       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.

 FCN=   1150.990     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      260 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        319.63        .90712E-02** at limit **
   2  Index         4.8363        .30206E-01    .45131E-02   -.35131E-02
   3  Normalizat    .10000E-01    .17353E-01    .62710E-01** at limit **
   4  Prefactor     .16477        .67290E-01    .34731E-01   -.18284E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Index      = 4.83631
  Normalizat = 0.01
  Prefactor  = 0.164768
 **********
 **   18 **HESSE 
 **********

 FCN=   1150.990     FROM HESSE     STATUS=OK            23 CALLS      283 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        319.63        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.8363        .30211E-01    .20020E-04   -.32743E-01
   3  Normalizat    .10000E-01    .17614E-01    .27390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .16477        .66658E-01    .17364E-03   -1.3134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4283e-10
Minuit parameter uncertainties:
  1  0.000119269
  2  0.0302111
  3  8.10646e-08
  4  0.0666885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/350830': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1150.99017516
delta logL = 528.783450252

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.000e+04  1.193e-04  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  4.836e+00  3.021e-02  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.648e-01  6.669e-02  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.000e-02  8.106e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1099.13
Ra Dec: 182.114 61.356
Photon Index (Free Index): 4.84 +/- 0.03
Photon Flux (Free Index): 3.52e-02 +/- 3.31e-03
Energy Flux (Free Index): 4.75e+00 +/- 4.35e-01

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/350830/cmap_HighResolution_602467201_602726401_4FGL_J1208.4+6121_daily_bin1401.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/350830

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.06e-05', energy_flux2='4.75e+00', photon_flux_error='4.00e-13', dlogl='5.29e+02', energy_flux='6.16e-03', photon_flux2='3.52e-02', job_status='DONE', time_completed='2021-09-05 01:17:40.881462', photon_index_error2='0.03', photon_index2='4.84', ts='19.77', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', energy_flux_error2='4.35e-01', EG='0.01', time_epoch_completed='1630829860.88', return_code='0', job_id='350830', GAL2='0.16', EG2='0.01', return_code2='0', energy_flux_error='2.33e-10', photon_flux_error2='3.31e-03', ts2='1099.13', photon_index='2.07' WHERE bin_id='1401' AND source_name='4FGL J1208.4+6121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:17:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 350830: <4FGL_J1208.4+6121_daily_bin1401> in cluster <slac> Done

Job <4FGL_J1208.4+6121_daily_bin1401> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 01:05:25 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 01:05:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 01:05:27 2021
Terminated at Sun Sep  5 01:17:41 2021
Results reported at Sun Sep  5 01:17:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.4+6121_daily_bin1401 182.114 61.3559 602467201 602726401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1208.4+6121 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   551.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            736 sec.

The output (if any) is above this job summary.

