/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 215 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 = 7368
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1208.4+6121_daily_bin1202
RA = 182.114, Dec = 61.3559
tmin = 550886401, tmax = 551145601
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='347967', job_status='RUN', time_executed='2021-09-05 01:04:12.950488', time_epoch_executed='1630829052.95' WHERE source_name='4FGL J1208.4+6121' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/347967

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/347967/ft1_4FGL_J1208.4+6121_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/347967/ft2_4FGL_J1208.4+6121_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/347967/ft1_4FGL_J1208.4+6121_daily_bin1202.fits outfile=/scratch/kocevski/347967/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin1202.fits ra=182.114 dec=61.3559 rad=12.0 tmin=550886401.0 tmax=551145601.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.82
user 3.51
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/347967/ft2_4FGL_J1208.4+6121_daily_bin1202.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/347967/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/347967/ft1_filtered_4FGL_J1208.4+6121_daily_bin1202.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.79
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/347967/ft1_filtered_4FGL_J1208.4+6121_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/347967/ft2_4FGL_J1208.4+6121_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/347967/ltcube_550886401_551145601_4FGL_J1208.4+6121_daily_bin1202.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/347967/ft2_4FGL_J1208.4+6121_daily_bin1202.fits
.....................!
real 11.96
user 11.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/347967/ft1_filtered_4FGL_J1208.4+6121_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/347967/ft2_4FGL_J1208.4+6121_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/347967/ltcube_550886401_551145601_4FGL_J1208.4+6121_daily_bin1202.fits outfile=/scratch/kocevski/347967/expmap_550886401_551145601_4FGL_J1208.4+6121_daily_bin1202.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/347967/ltcube_550886401_551145601_4FGL_J1208.4+6121_daily_bin1202.fits
.....................!
real 193.21
user 187.21
sys 5.29

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/347967/ft1_filtered_4FGL_J1208.4+6121_daily_bin1202.fits scfile=/scratch/kocevski/347967/ft2_4FGL_J1208.4+6121_daily_bin1202.fits outfile=/scratch/kocevski/347967/cmap_550886401_551145601_4FGL_J1208.4+6121_daily_bin1202.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.73
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/347967/ft1_filtered_4FGL_J1208.4+6121_daily_bin1202.fits scfile=/scratch/kocevski/347967/ft2_4FGL_J1208.4+6121_daily_bin1202.fits outfile=/scratch/kocevski/347967/cmap_HighResolution_550886401_551145601_4FGL_J1208.4+6121_daily_bin1202.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.55
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/347967/ft1_filtered_4FGL_J1208.4+6121_daily_bin1202.fits', '/scratch/kocevski/347967/ft2_4FGL_J1208.4+6121_daily_bin1202.fits', expMap='/scratch/kocevski/347967/expmap_550886401_551145601_4FGL_J1208.4+6121_daily_bin1202.fits', expCube='/scratch/kocevski/347967/ltcube_550886401_551145601_4FGL_J1208.4+6121_daily_bin1202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/347967/Model_4FGL_J1208.4+6121_daily_bin1202.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/347967/ft1_filtered_4FGL_J1208.4+6121_daily_bin1202.fits
Spacecraft file(s): /scratch/kocevski/347967/ft2_4FGL_J1208.4+6121_daily_bin1202.fits
Exposure map: /scratch/kocevski/347967/expmap_550886401_551145601_4FGL_J1208.4+6121_daily_bin1202.fits
Exposure cube: /scratch/kocevski/347967/ltcube_550886401_551145601_4FGL_J1208.4+6121_daily_bin1202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/347967/Model_4FGL_J1208.4+6121_daily_bin1202.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) = 1690.33654119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24452E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.1676       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.0999       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    59.647       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11045E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    75.154       1.0000         .10000E-03   10000.    
    14 'norm      '    .10312E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .62060E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    16.867       1.0000         .10000E-03   10000.    
    21 'norm      '    2.4680       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.6227       1.0000         .10000E-03   10000.    
    23 'norm      '    5.3788       1.0000         .10000E-03   10000.    
    24 'norm      '    5.5369       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    15.542       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .91627       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .80072       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1690.287     FROM MIGRAD    STATUS=CONVERGED    864 CALLS     3721 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    180.18        .51866E-04** at limit **
   2  norm          4.1637        3.9796       -.25017E-06   -.43682E-03
   3  Prefactor     .10000E-03    306.79       -.12176E-03** at limit **
   4  norm          .10000E-03    2.5698        .31097E-07** at limit **
   5  Prefactor     .10000E-03    286.56       -.81335E-04** at limit **
   6  norm          1.1021        4.3278       -.81928E-06   -.28289E-03
   7  Prefactor     .10000E-03    6.1902        .17670E-07** at limit **
   8  Prefactor     59.642        45.961        .96699E-06   -.61776E-04
   9  Prefactor     .10000E-03    5.5614       -.17129E-06** at limit **
  10  Prefactor     .10000E-03    141.03        .28275E-04** at limit **
  11  Prefactor     .10000E-03    20.041       -.48051E-05** at limit **
  12  Prefactor     .10000E-03    4.5752       -.58647E-07** at limit **
  13  norm          75.160        44.166        .24695E-05   -.48770E-05
  14  norm          .10000E-03    9.0574       -.23066E-06** at limit **
  15  Prefactor     .10000E-03    5.0772        .11451E-06** at limit **
  16  Prefactor     .10000E-03    14.959        .32061E-06** at limit **
  17  norm          .27167E-01    2.5570       -.75508E-06    .71358E-03
  18  Prefactor     .10000E-03    28.248       -.26543E-04** at limit **
  19  Prefactor     .10000E-03    73.348       -.42276E-04** at limit **
  20  norm          16.870        11.170        .89896E-07    .11057E-04
  21  norm          2.4663        15.331       -.88916E-06   -.12701E-03
  22  Prefactor     7.6247        13.173       -.12488E-06   -.12932E-03
  23  norm          5.3803        4.9652       -.10001E-05   -.25903E-03
  24  norm          5.5372        4.9396       -.28381E-06   -.50616E-05
  25  Prefactor     .10000E-03    135.11        .16514E-04** at limit **
  26  Prefactor     .10000E-03    24.674        .23034E-04** at limit **
  27  Prefactor     .10000E-03    51.703        .46768E-04** at limit **
  28  Prefactor     .10000E-03    69.122       -.28138E-04** at limit **
  29  Prefactor     .10000E-03    3.7005       -.20022E-07** at limit **
  30  Prefactor     15.544        15.565       -.36449E-06   -.71874E-05
  31  Normalizat    .91585        .28876        .88041E-07   -.93151E-04
  32  Prefactor     .80090        .36170        .13153E-06   -.27346E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  norm       = 4.16365
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.10211
  Prefactor  = 0.0001
  Prefactor  = 59.6416
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 75.1596
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0271666
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.87
  norm       = 2.46631
  Prefactor  = 7.62471
  norm       = 5.38029
  norm       = 5.53717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5441
  Normalizat = 0.915852
  Prefactor  = 0.8009
 **********
 **   18 **HESSE 
 **********

 FCN=   1690.287     FROM HESSE     STATUS=OK           649 CALLS     4370 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    184.11        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1637        3.9833        .77933E-04   -1.5300    
   3  Prefactor     .10000E-03    306.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.5930        .64347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    286.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.1021        4.2651        .15905E-03   -1.5498    
   7  Prefactor     .10000E-03    6.2178        .99892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     59.642        45.774        .51949E-04   -1.4162    
   9  Prefactor     .10000E-03    5.5844        .94679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    143.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.051        .17982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.5878        .85885E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          75.160        44.153        .46316E-04   -1.3972    
  14  norm          .10000E-03    9.4469        .24119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.0799        .90483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.961        .15534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .27167E-01    105.32        .12569E-02   -1.5675    
  18  Prefactor     .10000E-03    28.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    73.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          16.870        11.178        .97522E-04   -1.4886    
  21  norm          2.4663        15.428        .26029E-03   -1.5394    
  22  Prefactor     7.6247        13.160        .14525E-03   -1.5156    
  23  norm          5.3803        4.9688        .82682E-04   -1.5244    
  24  norm          5.5372        4.9434        .83432E-04   -1.5237    
  25  Prefactor     .10000E-03    135.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    24.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    51.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    69.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.7142        .77223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     15.544        15.567        .10160E-03   -1.4919    
  31  Normalizat    .91585        .35313        .21485E-03   -.95905    
  32  Prefactor     .80090        .43982        .28531E-03   -.99695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28199e-08
Minuit parameter uncertainties:
  1  0.00184216
  2  3.98352
  3  7.82225e-06
  4  5.09623e-07
  5  0.000120452
  6  4.26626
  7  3.79643e-07
  8  45.8007
  9  7.90076e-06
  10  0.000817891
  11  8.82886e-07
  12  1.08114e-07
  13  44.1724
  14  5.52808e-05
  15  1.58546e-06
  16  6.97146e-07
  17  3.38267
  18  2.57704e-05
  19  2.70893e-05
  20  11.1793
  21  12.3416
  22  13.1653
  23  4.96917
  24  4.94378
  25  2.41118e-05
  26  1.78042e-05
  27  1.40247e-07
  28  3.54781e-06
  29  8.00599e-07
  30  15.5708
  31  0.354032
  32  0.441768
Done.

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

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  6.971e-07  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:  8.009e-01  4.418e-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:  9.159e-01  3.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/347967/likelihoodResults_550886401_551145601_4FGL_J1208.4+6121_daily_bin1202.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): 102
logL (Free Index) = 1690.28715596
delta logL = -0.000309923302666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1690.28684698
delta logL = -9.40523023019e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1690.287     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      263 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10128E-03    53.600        .14399E-02** at limit **
   2  Index         2.1396        8.1312        .50000        .30195E-04
   3  Normalizat    .91585        .13866E-01    .21485E-03    .20372E-04
   4  Prefactor     .80090        .17407E-01    .28531E-03    .14444E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101276
  Index      = 2.13958
  Normalizat = 0.915855
  Prefactor  = 0.800897
 **********
 **   18 **HESSE 
 **********

 FCN=   1690.287     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      292 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10128E-03    232.36        .28799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1396        5.6949        .50000       -.60904    
   3  Normalizat    .91585        .29379E-01    .85940E-05   -.95905    
   4  Prefactor     .80090        .36881E-01    .11413E-04   -.99695    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15466e-08
Minuit parameter uncertainties:
  1  0.0345793
  2  189.532
  3  0.0293795
  4  0.036882
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/347967': 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): 102
logL (Free Index) = 1690.28684653
delta logL = -4.88613977723e-07

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.013e-04  3.458e-02  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  2.140e+00  1.895e+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:  8.009e-01  3.688e-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:  9.159e-01  2.938e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/347967/cmap_HighResolution_550886401_551145601_4FGL_J1208.4+6121_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.55e-03', job_status='DONE', photon_flux_upper_limit='8.69e-08', time_completed='2021-09-05 01:12:58.980561', job_id='347967', GAL2='0.80', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630829578.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='-4.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1202' AND source_name='4FGL J1208.4+6121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:12:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 347967: <4FGL_J1208.4+6121_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1208.4+6121_daily_bin1202> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep  5 01:00:23 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 01:00:25 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:00:25 2021
Terminated at Sun Sep  5 01:12:59 2021
Results reported at Sun Sep  5 01:12:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.4+6121_daily_bin1202 182.114 61.3559 550886401 551145601 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 :                                   517.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             279.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            756 sec.

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

