/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 4 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 = 7422
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1248.3+5820_daily_bin249
RA = 192.084, Dec = 58.3432
tmin = 303868801, tmax = 304128001
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='908300', job_status='RUN', time_executed='2021-09-06 05:05:42.286597', time_epoch_executed='1630929942.29' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/908300

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/908300/ft1_4FGL_J1248.3+5820_daily_bin249.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/908300/ft2_4FGL_J1248.3+5820_daily_bin249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/908300/ft1_4FGL_J1248.3+5820_daily_bin249.fits outfile=/scratch/kocevski/908300/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin249.fits ra=192.084 dec=58.3432 rad=12.0 tmin=303868801.0 tmax=304128001.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.41
user 3.19
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/908300/ft2_4FGL_J1248.3+5820_daily_bin249.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/908300/ft2_4FGL_J1248.3+5820_daily_bin249.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/908300/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin249.fits evtable="EVENTS" outfile="/scratch/kocevski/908300/ft1_filtered_4FGL_J1248.3+5820_daily_bin249.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/908300/ft1_filtered_4FGL_J1248.3+5820_daily_bin249.fits" evtable="EVENTS" scfile=/scratch/kocevski/908300/ft2_4FGL_J1248.3+5820_daily_bin249.fits sctable="SC_DATA" outfile=/scratch/kocevski/908300/ltcube_303868801_304128001_4FGL_J1248.3+5820_daily_bin249.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/908300/ft2_4FGL_J1248.3+5820_daily_bin249.fits
.....................!
real 11.94
user 11.62
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/908300/ft1_filtered_4FGL_J1248.3+5820_daily_bin249.fits evtable="EVENTS" scfile=/scratch/kocevski/908300/ft2_4FGL_J1248.3+5820_daily_bin249.fits sctable="SC_DATA" expcube=/scratch/kocevski/908300/ltcube_303868801_304128001_4FGL_J1248.3+5820_daily_bin249.fits outfile=/scratch/kocevski/908300/expmap_303868801_304128001_4FGL_J1248.3+5820_daily_bin249.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/908300/ltcube_303868801_304128001_4FGL_J1248.3+5820_daily_bin249.fits
.....................!
real 191.04
user 185.56
sys 4.87

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

Setting source of interest to:
4FGL J1248.3+5820 @ 192.084 58.3432

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/908300/ft1_filtered_4FGL_J1248.3+5820_daily_bin249.fits scfile=/scratch/kocevski/908300/ft2_4FGL_J1248.3+5820_daily_bin249.fits outfile=/scratch/kocevski/908300/cmap_303868801_304128001_4FGL_J1248.3+5820_daily_bin249.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=192.084 yref=58.3432 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/908300/ft1_filtered_4FGL_J1248.3+5820_daily_bin249.fits scfile=/scratch/kocevski/908300/ft2_4FGL_J1248.3+5820_daily_bin249.fits outfile=/scratch/kocevski/908300/cmap_HighResolution_303868801_304128001_4FGL_J1248.3+5820_daily_bin249.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=192.084 yref=58.3432 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/908300/ft1_filtered_4FGL_J1248.3+5820_daily_bin249.fits evtable="EVENTS" scfile=/scratch/kocevski/908300/ft2_4FGL_J1248.3+5820_daily_bin249.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/908300/Model_4FGL_J1248.3+5820_daily_bin249.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/908300/ft1_filtered_4FGL_J1248.3+5820_daily_bin249.fits.....................!
real 58.86
user 57.55
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/908300/ft1_filtered_4FGL_J1248.3+5820_daily_bin249.fits', '/scratch/kocevski/908300/ft2_4FGL_J1248.3+5820_daily_bin249.fits', expMap='/scratch/kocevski/908300/expmap_303868801_304128001_4FGL_J1248.3+5820_daily_bin249.fits', expCube='/scratch/kocevski/908300/ltcube_303868801_304128001_4FGL_J1248.3+5820_daily_bin249.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/908300/Model_4FGL_J1248.3+5820_daily_bin249.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1248.3+5820'

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  3.611e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
366         beta:  4.589e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/908300/ft1_filtered_4FGL_J1248.3+5820_daily_bin249.fits
Spacecraft file(s): /scratch/kocevski/908300/ft2_4FGL_J1248.3+5820_daily_bin249.fits
Exposure map: /scratch/kocevski/908300/expmap_303868801_304128001_4FGL_J1248.3+5820_daily_bin249.fits
Exposure cube: /scratch/kocevski/908300/ltcube_303868801_304128001_4FGL_J1248.3+5820_daily_bin249.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/908300/Model_4FGL_J1248.3+5820_daily_bin249.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) = 6651.00143815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15537E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10585E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.087       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.893       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5227       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .29639       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.9265       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.8298       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    15.785       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.030       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.417       1.0000         .10000E-03   10000.    
    23 'norm      '    .78602       1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.207       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .78808       1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.941       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .21760E-02   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2142       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .64754       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6650.996     FROM MIGRAD    STATUS=CONVERGED    892 CALLS     4591 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7701        .43801E-08** at limit **
   2  Prefactor     .10000E-03    35.337       -.87703E-07** at limit **
   3  norm          .10000E-03    3.8076        .69049E-08** at limit **
   4  Prefactor     .10000E-03    3.6393        .95395E-07** at limit **
   5  norm          .10032E-03    5.7651        .27286E-05** at limit **
   6  Prefactor     11.086        7.5197        .13889E-06   -.69619E-03
   7  Prefactor     .10000E-03    9.7109        .19190E-07** at limit **
   8  norm          16.892        3.2903        .63249E-07   -.62090E-03
   9  Prefactor     3.5260        20.177        .22654E-05    .42167E-04
  10  Prefactor     .10000E-03    94.062       -.70022E-08** at limit **
  11  norm          .30510        3.2501        .94138E-06   -.24457E-03
  12  Prefactor     .10000E-03    13.455       -.24937E-06** at limit **
  13  Prefactor     .10000E-03    1.1702        .84680E-08** at limit **
  14  norm          5.9268        2.3608        .64605E-07   -.21724E-04
  15  Prefactor     .10000E-03    33.525       -.81202E-06** at limit **
  16  norm          3.8301        2.0531        .14541E-07   -.25627E-03
  17  Prefactor     .10000E-03    46.029        .88245E-06** at limit **
  18  Prefactor     .10000E-03    5.0425        .84763E-07** at limit **
  19  norm          15.786        5.4429       -.28478E-07   -.35312E-03
  20  Prefactor     14.026        46.812       -.33874E-06   -.41957E-04
  21  Prefactor     .10000E-03    15.015        .34093E-07** at limit **
  22  Prefactor     20.419        15.732       -.61299E-06   -.12619E-03
  23  norm          .78786        2.5006        .19818E-05    .10058E-02
  24  Prefactor     23.219        39.150        .11868E-06   -.56613E-04
  25  Prefactor     .78481        3.0666        .13378E-05    .29661E-04
  26  Prefactor     21.943        36.830        .54656E-06   -.34631E-04
  27  Prefactor     .10000E-03    3.8207       -.24030E-06** at limit **
  28  norm          .10000E-03    23.671       -.22910E-07** at limit **
  29  norm          .10000E-03    2.0443        .13154E-06** at limit **
  30  Prefactor     .10000E-03    30.950       -.34783E-06** at limit **
  31  Prefactor     .10003E-03    492.07       -.40707E-05** at limit **
  32  Normalizat    1.2143        .16486       -.15054E-05   -.11397E-02
  33  Prefactor     .64722        .19020        .12356E-06   -.63643E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100315
  Prefactor  = 11.0857
  Prefactor  = 0.0001
  norm       = 16.8923
  Prefactor  = 3.52595
  Prefactor  = 0.0001
  norm       = 0.305097
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.92682
  Prefactor  = 0.0001
  norm       = 3.83009
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 15.7864
  Prefactor  = 14.0261
  Prefactor  = 0.0001
  Prefactor  = 20.4188
  norm       = 0.78786
  Prefactor  = 23.219
  Prefactor  = 0.784806
  Prefactor  = 21.943
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100027
  Normalizat = 1.21431
  Prefactor  = 0.64722
 **********
 **   18 **HESSE 
 **********

 FCN=   6650.996     FROM HESSE     STATUS=OK           689 CALLS     5280 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    35.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.8104        .15541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.7976        .30384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10032E-03    20.701        .22206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.086        7.1975        .12032E-03   -1.5042    
   7  Prefactor     .10000E-03    9.7279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.892        3.3004        .61963E-04   -1.4886    
   9  Prefactor     3.5260        20.377        .21539E-03   -1.5332    
  10  Prefactor     .10000E-03    94.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .30510        16.308        .26887E-02   -1.5598    
  12  Prefactor     .10000E-03    13.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1715        .86147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.9268        2.3612        .76660E-04   -1.5221    
  15  Prefactor     .10000E-03    34.474        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.8301        2.0539        .82946E-04   -1.5317    
  17  Prefactor     .10000E-03    46.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.0821        .17884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          15.786        5.4421        .10081E-03   -1.4913    
  20  Prefactor     14.026        46.642        .10693E-03   -1.4959    
  21  Prefactor     .10000E-03    15.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     20.419        15.747        .88642E-04   -1.4804    
  23  norm          .78786        2.6308        .21279E-02   -1.5530    
  24  Prefactor     23.219        39.135        .83149E-04   -1.4744    
  25  Prefactor     .78481        4.6866        .24811E-02   -1.5531    
  26  Prefactor     21.943        36.867        .85512E-04   -1.4771    
  27  Prefactor     .10000E-03    3.8298        .15553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    23.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.1013        .22779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    31.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10003E-03    495.07        .20152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.2143        .18915        .20741E-03   -.86162    
  33  Prefactor     .64722        .21666        .33273E-03   -1.0563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74971e-08
Minuit parameter uncertainties:
  1  1.24659e-06
  2  4.6719e-05
  3  2.79996e-06
  4  1.36698e-05
  5  0.00511011
  6  7.19805
  7  3.77597e-06
  8  3.30044
  9  16.9614
  10  8.48093e-05
  11  4.46175
  12  6.05893e-05
  13  6.19083e-07
  14  2.36125
  15  0.000221706
  16  2.0539
  17  0.000406746
  18  1.29641e-05
  19  5.44226
  20  46.7632
  21  1.58031e-05
  22  15.7504
  23  2.63117
  24  39.1778
  25  3.83588
  26  36.905
  27  3.0388e-05
  28  1.23303e-05
  29  1.11243e-05
  30  0.000134142
  31  0.00738024
  32  0.189259
  33  0.216938
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  5.927e+00  2.361e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
366         beta:  4.589e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
695    Prefactor:  6.472e-01  2.169e-01  0.000e+00  1.000e+01 ( 1.000e+00)
696        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
697        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
694   Normalization:  1.214e+00  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.48
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 5.23e-08 +/- 2.08e-08
Energy Flux (Fixed Index): 5.23e-05 +/- 2.08e-05

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) = 6650.99568898
delta logL = 1.54097406266e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6650.99568897
delta logL = 1.5423408513e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9268       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8092       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2144       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64723       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6650.996     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      187 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9299        5.0841        .41237E-02   -.83957E-05
   2  alpha         1.8091        .57615        .21318        .22165E-04
   3  Normalizat    1.2144        .15820        .34548E-01   -.11971E-05
   4  Prefactor     .64717        .19053        .75160E-01    .27795E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.92987
  alpha      = 1.80914
  Normalizat = 1.21439
  Prefactor  = 0.647171
 **********
 **   18 **HESSE 
 **********

 FCN=   6650.996     FROM HESSE     STATUS=OK            33 CALLS      220 TOTAL
                     EDM=   .40E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9299        2.4324        .76696E-04   -1.5221    
   2  alpha         1.8091        .29510        .88416E-02   -.27999    
   3  Normalizat    1.2144        .17779        .20740E-03   -.86159    
   4  Prefactor     .64717        .21456        .33274E-03   -1.0564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02213e-13
Minuit parameter uncertainties:
  1  2.4324
  2  0.29585
  3  0.17788
  4  0.214828
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/908300': 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) = 6650.99568814
delta logL = 1.62511396411e-05

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  5.930e+00  2.432e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.809e+00  2.959e-01  0.000e+00  5.000e+00 ( 1.000e+00)
366         beta:  4.589e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
695    Prefactor:  6.472e-01  2.148e-01  0.000e+00  1.000e+01 ( 1.000e+00)
696        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
697        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
694   Normalization:  1.214e+00  1.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.43
Ra Dec: 192.084 58.343
Photon Index (Free Index): 1.81 +/- 0.30
Photon Flux (Free Index): 5.22e-08 +/- 2.45e-08
Energy Flux (Free Index): 5.25e-05 +/- 3.35e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/908300/cmap_HighResolution_303868801_304128001_4FGL_J1248.3+5820_daily_bin249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.23e-08', energy_flux2='5.25e-05', photon_flux_error='2.08e-08', dlogl='1.63e-05', energy_flux='5.23e-05', photon_flux2='5.22e-08', job_status='DONE', time_completed='2021-09-06 05:22:07.682466', photon_index_error2='0.30', photon_index2='1.81', ts='20.48', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='3.35e-05', EG='1.21', time_epoch_completed='1630930927.68', return_code='0', job_id='908300', GAL2='0.65', EG2='1.21', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='2.45e-08', ts2='20.43', photon_index='1.81' WHERE bin_id='249' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:22:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 908300: <4FGL_J1248.3+5820_daily_bin249> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin249> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 05:05:29 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:05:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 05:05:30 2021
Terminated at Mon Sep  6 05:22:08 2021
Results reported at Mon Sep  6 05:22:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin249 192.084 58.3432 303868801 304128001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1248.3+5820 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   981.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            999 sec.

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

