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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin73
RA = 192.084, Dec = 58.3432
tmin = 258249601, tmax = 258508801
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='907063', job_status='RUN', time_executed='2021-09-06 05:03:19.700615', time_epoch_executed='1630929799.7' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907063

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907063/ft1_4FGL_J1248.3+5820_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907063/ft2_4FGL_J1248.3+5820_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907063/ft1_4FGL_J1248.3+5820_daily_bin73.fits outfile=/scratch/kocevski/907063/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin73.fits ra=192.084 dec=58.3432 rad=12.0 tmin=258249601.0 tmax=258508801.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.17
user 0.99
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/907063/ft2_4FGL_J1248.3+5820_daily_bin73.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/907063/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin73.fits evtable="EVENTS" outfile="/scratch/kocevski/907063/ft1_filtered_4FGL_J1248.3+5820_daily_bin73.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.48
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907063/ft1_filtered_4FGL_J1248.3+5820_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/907063/ft2_4FGL_J1248.3+5820_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/907063/ltcube_258249601_258508801_4FGL_J1248.3+5820_daily_bin73.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/907063/ft2_4FGL_J1248.3+5820_daily_bin73.fits
.....................!
real 9.30
user 8.96
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907063/ft1_filtered_4FGL_J1248.3+5820_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/907063/ft2_4FGL_J1248.3+5820_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/907063/ltcube_258249601_258508801_4FGL_J1248.3+5820_daily_bin73.fits outfile=/scratch/kocevski/907063/expmap_258249601_258508801_4FGL_J1248.3+5820_daily_bin73.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/907063/ltcube_258249601_258508801_4FGL_J1248.3+5820_daily_bin73.fits
.....................!
real 190.61
user 185.04
sys 5.11

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/907063/ft1_filtered_4FGL_J1248.3+5820_daily_bin73.fits scfile=/scratch/kocevski/907063/ft2_4FGL_J1248.3+5820_daily_bin73.fits outfile=/scratch/kocevski/907063/cmap_258249601_258508801_4FGL_J1248.3+5820_daily_bin73.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907063/ft1_filtered_4FGL_J1248.3+5820_daily_bin73.fits scfile=/scratch/kocevski/907063/ft2_4FGL_J1248.3+5820_daily_bin73.fits outfile=/scratch/kocevski/907063/cmap_HighResolution_258249601_258508801_4FGL_J1248.3+5820_daily_bin73.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.53
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/907063/ft1_filtered_4FGL_J1248.3+5820_daily_bin73.fits', '/scratch/kocevski/907063/ft2_4FGL_J1248.3+5820_daily_bin73.fits', expMap='/scratch/kocevski/907063/expmap_258249601_258508801_4FGL_J1248.3+5820_daily_bin73.fits', expCube='/scratch/kocevski/907063/ltcube_258249601_258508801_4FGL_J1248.3+5820_daily_bin73.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/907063/Model_4FGL_J1248.3+5820_daily_bin73.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/907063/ft1_filtered_4FGL_J1248.3+5820_daily_bin73.fits
Spacecraft file(s): /scratch/kocevski/907063/ft2_4FGL_J1248.3+5820_daily_bin73.fits
Exposure map: /scratch/kocevski/907063/expmap_258249601_258508801_4FGL_J1248.3+5820_daily_bin73.fits
Exposure cube: /scratch/kocevski/907063/ltcube_258249601_258508801_4FGL_J1248.3+5820_daily_bin73.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/907063/Model_4FGL_J1248.3+5820_daily_bin73.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) = 2918.00913702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    25.455       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24898E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .83677E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.571       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10545E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.426       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    36.811       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.4372       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.172       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.718       1.0000         .10000E-03   10000.    
    23 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.1063       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10605E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    8.1020       1.0000         .10000E-03   10000.    
    30 'Prefactor '    59.997       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1632       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .56043       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=   2917.860     FROM MIGRAD    STATUS=CONVERGED    888 CALLS     4657 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.555        .12752E-04** at limit **
   2  Prefactor     .10000E-03    11.275        .16573E-05** at limit **
   3  norm          25.457        21.813        .80318E-08   -.93987E-04
   4  Prefactor     .10002E-03    5.2989        .31042E-05** at limit **
   5  norm          .10001E-03    7.2333        .57616E-06** at limit **
   6  Prefactor     18.577        16.259       -.78572E-06   -.40596E-03
   7  Prefactor     .10000E-03    131.20        .17963E-04** at limit **
   8  norm          .10000E-03    .76900       -.89238E-08** at limit **
   9  Prefactor     49.435        46.031        .24591E-05   -.60481E-04
  10  Prefactor     .10000E-03    119.50       -.18328E-04** at limit **
  11  norm          36.810        13.852        .15935E-06    .18957E-03
  12  Prefactor     .10000E-03    58.942       -.24588E-04** at limit **
  13  Prefactor     .10000E-03    10.393       -.75623E-05** at limit **
  14  norm          6.4374        4.1204        .55438E-07    .23761E-03
  15  Prefactor     27.186        29.915       -.78971E-06    .27922E-04
  16  norm          .10000E-03    1.7051        .55957E-07** at limit **
  17  Prefactor     .10000E-03    123.87       -.49167E-05** at limit **
  18  Prefactor     .10000E-03    13.798        .24840E-06** at limit **
  19  norm          .10000E-03    2.7189       -.23566E-07** at limit **
  20  Prefactor     .10000E-03    54.040        .16096E-04** at limit **
  21  Prefactor     .10000E-03    31.819        .11868E-04** at limit **
  22  Prefactor     14.723        24.989       -.10044E-05   -.27333E-03
  23  norm          .10000E-03    8.2330        .15990E-06** at limit **
  24  Prefactor     .10000E-03    26.141       -.18336E-04** at limit **
  25  Prefactor     6.1098        8.3137        .10731E-05   -.15914E-03
  26  Prefactor     .10000E-03    18.592       -.58021E-05** at limit **
  27  Prefactor     .10000E-03    9.2067       -.26171E-06** at limit **
  28  norm          .10000E-03    141.52        .38571E-04** at limit **
  29  norm          8.1020        7.3366       -.94122E-07   -.12390E-03
  30  Prefactor     59.958        59.066       -.20474E-04   -.67126E-06
  31  Prefactor     .10000E-03    280.85       -.46153E-04** at limit **
  32  Normalizat    1.1631        .23916        .28213E-07   -.30483E-03
  33  Prefactor     .56047        .26359       -.79311E-07   -.16033E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 25.4573
  Prefactor  = 0.000100025
  norm       = 0.000100013
  Prefactor  = 18.5771
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 49.4355
  Prefactor  = 0.0001
  norm       = 36.8099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.43742
  Prefactor  = 27.1857
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.7233
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.10984
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.10204
  Prefactor  = 59.9578
  Prefactor  = 0.0001
  Normalizat = 1.1631
  Prefactor  = 0.560472
 **********
 **   18 **HESSE 
 **********

 FCN=   2917.860     FROM HESSE     STATUS=OK           677 CALLS     5334 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.283        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.278        .17717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          25.457        21.523        .79399E-04   -1.4698    
   4  Prefactor     .10002E-03    10.259        .23890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    28.993        .24088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.577        14.448        .92940E-04   -1.4846    
   7  Prefactor     .10000E-03    132.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .77098        .46253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     49.435        46.256        .57040E-04   -1.4301    
  10  Prefactor     .10000E-03    119.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          36.810        13.843        .66056E-04   -1.4494    
  12  Prefactor     .10000E-03    59.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.460        .16988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.4374        4.1182        .84554E-04   -1.5200    
  15  Prefactor     27.186        29.928        .76853E-04   -1.4665    
  16  norm          .10000E-03    1.7211        .68863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    124.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.7366        .86974E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    54.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    31.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.723        24.765        .52201E-03   -1.4940    
  23  norm          .10000E-03    8.3649        .29915E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    26.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.1098        8.3314        .16247E-03   -1.5214    
  26  Prefactor     .10000E-03    18.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.2105        .15991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    141.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          8.1020        7.3332        .13335E-03   -1.5139    
  30  Prefactor     59.958        59.048        .51798E-04   -1.4158    
  31  Prefactor     .10000E-03    280.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1631        .26933        .20796E-03   -.87751    
  33  Prefactor     .56047        .29328        .33769E-03   -1.0928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4409e-09
Minuit parameter uncertainties:
  1  0.000292264
  2  8.00897e-06
  3  21.53
  4  0.00101158
  5  0.00120481
  6  14.4508
  7  0.000235836
  8  7.84126e-07
  9  46.2895
  10  0.000109011
  11  13.8438
  12  0.000113421
  13  1.56397e-05
  14  4.11842
  15  29.9443
  16  1.46482e-06
  17  5.98271e-05
  18  1.15404e-05
  19  1.41919e-06
  20  4.25133e-06
  21  6.85668e-06
  22  24.7824
  23  4.16821e-05
  24  7.33549e-06
  25  8.33301
  26  4.08865e-06
  27  2.70657e-05
  28  1.93381e-05
  29  7.33401
  30  59.106
  31  1.67737e-05
  32  0.269651
  33  0.294076
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  6.437e+00  4.118e+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:  5.605e-01  2.941e-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.163e+00  2.697e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.08
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 5.68e-08 +/- 3.63e-08
Energy Flux (Fixed Index): 5.68e-05 +/- 3.64e-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) = 2917.85721736
delta logL = 0.00246041208129

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2917.8570719
delta logL = 0.00260586927197

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4516       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8519       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1600       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56217       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=   2917.857     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      224 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4625        121.84        .39503E-02   -.10205E-03
   2  alpha         1.8536        2.9046        .28428        .52352E-05
   3  Normalizat    1.1597        .56607        .35957E-01   -.30748E-03
   4  Prefactor     .56224        .43254        .76140E-01   -.16362E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.46246
  alpha      = 1.85361
  Normalizat = 1.15974
  Prefactor  = 0.562242
 **********
 **   18 **HESSE 
 **********

 FCN=   2917.857     FROM HESSE     STATUS=OK            31 CALLS      255 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4625        4.0777        .83641E-04   -1.5199    
   2  alpha         1.8536        .58815        .10725E-01   -.26153    
   3  Normalizat    1.1597        .25466        .20821E-03   -.87856    
   4  Prefactor     .56224        .29193        .33716E-03   -1.0920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6783e-10
Minuit parameter uncertainties:
  1  4.07792
  2  0.594124
  3  0.254936
  4  0.29272
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907063': 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) = 2917.85706451
delta logL = 0.0026132648627

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  6.462e+00  4.078e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.854e+00  5.941e-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:  5.622e-01  2.927e-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.160e+00  2.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.05
Ra Dec: 192.084 58.343
Photon Index (Free Index): 1.85 +/- 0.59
Photon Flux (Free Index): 6.01e-08 +/- 5.86e-08
Energy Flux (Free Index): 5.40e-05 +/- 5.10e-05

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/907063/cmap_HighResolution_258249601_258508801_4FGL_J1248.3+5820_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.68e-08', energy_flux2='5.40e-05', photon_flux_error='3.63e-08', dlogl='2.61e-03', energy_flux='5.68e-05', photon_flux2='6.01e-08', job_status='DONE', time_completed='2021-09-06 05:13:17.528694', photon_index_error2='0.59', photon_index2='1.85', ts='9.08', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', energy_flux_error2='5.10e-05', EG='1.16', time_epoch_completed='1630930397.53', return_code='0', job_id='907063', GAL2='0.56', EG2='1.16', return_code2='0', energy_flux_error='3.64e-05', photon_flux_error2='5.86e-08', ts2='9.05', photon_index='1.81' WHERE bin_id='73' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:13:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 907063: <4FGL_J1248.3+5820_daily_bin73> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin73> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 05:00:59 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:01: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 05:01:00 2021
Terminated at Mon Sep  6 05:13:18 2021
Results reported at Mon Sep  6 05:13:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin73 192.084 58.3432 258249601 258508801 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 :                                   593.56 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             288.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            739 sec.

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

