/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 102 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 = 7484
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1253.8+6242_daily_bin55
RA = 193.467, Dec = 62.7052
tmin = 253584001, tmax = 253843201
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='961988', job_status='RUN', time_executed='2021-09-06 07:47:54.085453', time_epoch_executed='1630939674.09' WHERE source_name='4FGL J1253.8+6242' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/961988

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/961988/ft1_4FGL_J1253.8+6242_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/961988/ft2_4FGL_J1253.8+6242_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/961988/ft1_4FGL_J1253.8+6242_daily_bin55.fits outfile=/scratch/kocevski/961988/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin55.fits ra=193.467 dec=62.7052 rad=12.0 tmin=253584001.0 tmax=253843201.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 1.49
user 1.24
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/961988/ft2_4FGL_J1253.8+6242_daily_bin55.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/961988/ft2_4FGL_J1253.8+6242_daily_bin55.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/961988/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin55.fits evtable="EVENTS" outfile="/scratch/kocevski/961988/ft1_filtered_4FGL_J1253.8+6242_daily_bin55.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/961988/ft1_filtered_4FGL_J1253.8+6242_daily_bin55.fits" evtable="EVENTS" scfile=/scratch/kocevski/961988/ft2_4FGL_J1253.8+6242_daily_bin55.fits sctable="SC_DATA" outfile=/scratch/kocevski/961988/ltcube_253584001_253843201_4FGL_J1253.8+6242_daily_bin55.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/961988/ft2_4FGL_J1253.8+6242_daily_bin55.fits
.....................!
real 12.46
user 12.09
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/961988/ft1_filtered_4FGL_J1253.8+6242_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/961988/ft2_4FGL_J1253.8+6242_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/961988/ltcube_253584001_253843201_4FGL_J1253.8+6242_daily_bin55.fits outfile=/scratch/kocevski/961988/expmap_253584001_253843201_4FGL_J1253.8+6242_daily_bin55.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/961988/ltcube_253584001_253843201_4FGL_J1253.8+6242_daily_bin55.fits
.....................!
real 190.20
user 185.14
sys 4.73

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 223 point sources and 0 extended sources

Setting source of interest to:
4FGL J1253.8+6242 @ 193.467 62.7052

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/961988/ft1_filtered_4FGL_J1253.8+6242_daily_bin55.fits scfile=/scratch/kocevski/961988/ft2_4FGL_J1253.8+6242_daily_bin55.fits outfile=/scratch/kocevski/961988/cmap_253584001_253843201_4FGL_J1253.8+6242_daily_bin55.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=193.467 yref=62.7052 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/961988/ft1_filtered_4FGL_J1253.8+6242_daily_bin55.fits scfile=/scratch/kocevski/961988/ft2_4FGL_J1253.8+6242_daily_bin55.fits outfile=/scratch/kocevski/961988/cmap_HighResolution_253584001_253843201_4FGL_J1253.8+6242_daily_bin55.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=193.467 yref=62.7052 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/961988/ft1_filtered_4FGL_J1253.8+6242_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/961988/ft2_4FGL_J1253.8+6242_daily_bin55.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/961988/Model_4FGL_J1253.8+6242_daily_bin55.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/961988/ft1_filtered_4FGL_J1253.8+6242_daily_bin55.fits.....................!
real 49.34
user 48.09
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/961988/ft1_filtered_4FGL_J1253.8+6242_daily_bin55.fits', '/scratch/kocevski/961988/ft2_4FGL_J1253.8+6242_daily_bin55.fits', expMap='/scratch/kocevski/961988/expmap_253584001_253843201_4FGL_J1253.8+6242_daily_bin55.fits', expCube='/scratch/kocevski/961988/ltcube_253584001_253843201_4FGL_J1253.8+6242_daily_bin55.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/961988/Model_4FGL_J1253.8+6242_daily_bin55.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1253.8+6242'

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  7.997e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  1.987e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/961988/ft1_filtered_4FGL_J1253.8+6242_daily_bin55.fits
Spacecraft file(s): /scratch/kocevski/961988/ft2_4FGL_J1253.8+6242_daily_bin55.fits
Exposure map: /scratch/kocevski/961988/expmap_253584001_253843201_4FGL_J1253.8+6242_daily_bin55.fits
Exposure cube: /scratch/kocevski/961988/ltcube_253584001_253843201_4FGL_J1253.8+6242_daily_bin55.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/961988/Model_4FGL_J1253.8+6242_daily_bin55.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) = 4617.48625672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.078       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.938       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4992       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.590       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10466E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8259       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.1656       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.098       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.3094       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3606       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .75253       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=   4617.430     FROM MIGRAD    STATUS=CONVERGED    834 CALLS     3532 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.082        26.152        .19459E-06    .24129E-04
   2  Prefactor     14.938        22.341       -.91049E-07   -.19836E-05
   3  Prefactor     .10000E-03    1.4179        .13314E-06** at limit **
   4  norm          .10000E-03    18.828       -.41696E-06** at limit **
   5  norm          1.4914        7.6094       -.33248E-05   -.78236E-03
   6  Prefactor     10.602        13.811        .16450E-05    .43883E-04
   7  Prefactor     .10000E-03    17.655        .32782E-05** at limit **
   8  norm          1.8261        2.2676        .41727E-06   -.34355E-03
   9  Prefactor     .10000E-03    22.728       -.10134E-04** at limit **
  10  Prefactor     .10000E-03    26.057        .49991E-05** at limit **
  11  norm          .10000E-03    4.1339       -.44597E-06** at limit **
  12  Prefactor     .10000E-03    9.9699       -.38451E-06** at limit **
  13  norm          4.1670        2.7496       -.19888E-06    .22093E-04
  14  norm          .10000E-03    .81324        .30353E-07** at limit **
  15  Prefactor     .10000E-03    149.38        .21654E-04** at limit **
  16  Prefactor     .10000E-03    9.8382       -.26106E-06** at limit **
  17  Prefactor     .10000E-03    27.779        .72447E-05** at limit **
  18  Prefactor     .10000E-03    14.665        .47927E-05** at limit **
  19  Prefactor     10.098        23.471       -.18196E-06    .10851E-04
  20  Prefactor     .10000E-03    42.152       -.24559E-04** at limit **
  21  Prefactor     5.3071        5.3210       -.87481E-06   -.15779E-02
  22  Prefactor     .10000E-03    11.541       -.95749E-06** at limit **
  23  Prefactor     .10000E-03    86.386       -.20300E-04** at limit **
  24  Prefactor     .10000E-03    5.8202       -.71223E-07** at limit **
  25  Prefactor     .10000E-03    17.773        .36579E-05** at limit **
  26  norm          .10000E-03    49.776        .29800E-04** at limit **
  27  norm          .10000E-03    2.1610       -.14977E-07** at limit **
  28  Prefactor     .10000E-03    15.619       -.90108E-05** at limit **
  29  Prefactor     .10000E-03    610.35       -.41181E-04** at limit **
  30  Normalizat    1.3605        .19602        .63365E-06    .10878E-03
  31  Prefactor     .75258        .22346       -.23660E-06    .70328E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.0816
  Prefactor  = 14.9383
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.49138
  Prefactor  = 10.6018
  Prefactor  = 0.0001
  norm       = 1.82612
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.16695
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.098
  Prefactor  = 0.0001
  Prefactor  = 5.30705
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.36054
  Prefactor  = 0.75258
 **********
 **   18 **HESSE 
 **********

 FCN=   4617.430     FROM HESSE     STATUS=OK           608 CALLS     4140 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.082        26.140        .74298E-04   -1.4629    
   2  Prefactor     14.938        22.341        .10363E-03   -1.4935    
   3  Prefactor     .10000E-03    1.4210        .79016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    19.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4914        7.2252        .28564E-03   -1.5464    
   6  Prefactor     10.602        13.327        .12312E-03   -1.5057    
   7  Prefactor     .10000E-03    17.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8261        2.2499        .10960E-03   -1.5438    
   9  Prefactor     .10000E-03    22.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.1992        .13487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.237        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.1670        2.7369        .88429E-04   -1.5300    
  14  norm          .10000E-03    .81639        .59839E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    150.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.9072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    27.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.098        23.493        .12609E-03   -1.5072    
  20  Prefactor     .10000E-03    41.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.3071        5.4067        .76068E-03   -1.5247    
  22  Prefactor     .10000E-03    11.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    86.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.8294        .16004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    18.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    49.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.1703        .97549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    15.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    609.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3605        .23524        .20881E-03   -.81777    
  31  Prefactor     .75258        .26625        .31422E-03   -1.0150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43635e-09
Minuit parameter uncertainties:
  1  26.1501
  2  22.3538
  3  2.27111e-07
  4  1.49253e-05
  5  6.56629
  6  13.3309
  7  2.01001e-05
  8  2.24997
  9  1.03437e-05
  10  3.27028e-06
  11  1.05194e-06
  12  2.34691e-05
  13  2.73701
  14  2.80254e-07
  15  0.000268446
  16  3.1716e-06
  17  3.5556e-06
  18  7.39875e-07
  19  23.5141
  20  1.52247e-05
  21  5.40718
  22  1.03156e-06
  23  6.36524e-05
  24  1.02056e-05
  25  3.46337e-05
  26  1.51966e-06
  27  6.10869e-07
  28  3.22882e-06
  29  1.72794e-05
  30  0.235428
  31  0.2667
Done.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  2.684e-04  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  1.987e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  7.526e-01  2.667e-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.361e+00  2.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.467 62.705
Photon Flux Upper Limit: 7.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/961988/likelihoodResults_253584001_253843201_4FGL_J1253.8+6242_daily_bin55.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) = 4617.42991454
delta logL = -3.15457255056e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4617.4190037
delta logL = 0.0108792911469

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4785       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6687       1.0000          .0000       10.000    
     3 'Normalizat'    1.3560       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75321       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=   4617.419     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      312 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4767        74.315        .25969E-03   -.11478E-03
   2  Index         2.6673        3.0156        .13156E-01   -.27261E-04
   3  Normalizat    1.3562        .23056        .20910E-03   -.54844E-03
   4  Prefactor     .75311        .26511        .31410E-03   -.32202E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.47666
  Index      = 2.66728
  Normalizat = 1.3562
  Prefactor  = 0.753113
 **********
 **   18 **HESSE 
 **********

 FCN=   4617.419     FROM HESSE     STATUS=OK            25 CALLS      337 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4767        45.442        .10388E-04   -1.5393    
   2  Index         2.6673        2.4500        .52625E-03   -.48538    
   3  Normalizat    1.3562        .23085        .41819E-04   -.81904    
   4  Prefactor     .75311        .26517        .12564E-04   -1.0148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.52187e-10
Minuit parameter uncertainties:
  1  21.2356
  2  2.59665
  3  0.231028
  4  0.265613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/961988': 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) = 4617.41900312
delta logL = 0.0108798651818

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  2.477e+00  2.124e+01  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  2.667e+00  2.597e+00  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  7.531e-01  2.656e-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.356e+00  2.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.467 62.705

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/961988/cmap_HighResolution_253584001_253843201_4FGL_J1253.8+6242_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.48e-03', job_status='DONE', photon_flux_upper_limit='7.31e-08', time_completed='2021-09-06 08:01:00.244707', job_id='961988', GAL2='0.75', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1630940460.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.09e-02', ts2='0.02', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='55' AND source_name='4FGL J1253.8+6242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:01:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 961988: <4FGL_J1253.8+6242_daily_bin55> in cluster <slac> Done

Job <4FGL_J1253.8+6242_daily_bin55> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 07:45:58 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:46:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 07:46:00 2021
Terminated at Mon Sep  6 08:01:00 2021
Results reported at Mon Sep  6 08:01:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.8+6242_daily_bin55 193.467 62.7052 253584001 253843201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1253.8+6242 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   784.16 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             304.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            902 sec.

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

