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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin59
RA = 192.084, Dec = 58.3432
tmin = 254620801, tmax = 254880001
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='907049', job_status='RUN', time_executed='2021-09-06 05:02:57.665610', time_epoch_executed='1630929777.67' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='59'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907049

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907049/ft1_4FGL_J1248.3+5820_daily_bin59.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907049/ft2_4FGL_J1248.3+5820_daily_bin59.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907049/ft1_4FGL_J1248.3+5820_daily_bin59.fits outfile=/scratch/kocevski/907049/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin59.fits ra=192.084 dec=58.3432 rad=12.0 tmin=254620801.0 tmax=254880001.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.34
user 1.16
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/907049/ft2_4FGL_J1248.3+5820_daily_bin59.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/907049/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin59.fits evtable="EVENTS" outfile="/scratch/kocevski/907049/ft1_filtered_4FGL_J1248.3+5820_daily_bin59.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907049/ft1_filtered_4FGL_J1248.3+5820_daily_bin59.fits" evtable="EVENTS" scfile=/scratch/kocevski/907049/ft2_4FGL_J1248.3+5820_daily_bin59.fits sctable="SC_DATA" outfile=/scratch/kocevski/907049/ltcube_254620801_254880001_4FGL_J1248.3+5820_daily_bin59.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/907049/ft2_4FGL_J1248.3+5820_daily_bin59.fits
.....................!
real 11.86
user 11.45
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907049/ft1_filtered_4FGL_J1248.3+5820_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/907049/ft2_4FGL_J1248.3+5820_daily_bin59.fits sctable="SC_DATA" expcube=/scratch/kocevski/907049/ltcube_254620801_254880001_4FGL_J1248.3+5820_daily_bin59.fits outfile=/scratch/kocevski/907049/expmap_254620801_254880001_4FGL_J1248.3+5820_daily_bin59.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/907049/ltcube_254620801_254880001_4FGL_J1248.3+5820_daily_bin59.fits
.....................!
real 190.55
user 185.43
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 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/907049/ft1_filtered_4FGL_J1248.3+5820_daily_bin59.fits scfile=/scratch/kocevski/907049/ft2_4FGL_J1248.3+5820_daily_bin59.fits outfile=/scratch/kocevski/907049/cmap_254620801_254880001_4FGL_J1248.3+5820_daily_bin59.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.54
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7513       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5539       1.0000         .10000E-03   10000.    
     3 'norm      '    7.2399       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.490       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.6100       1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.915       1.0000         .10000E-03   10000.    
    10 'Prefactor '    44.778       1.0000         .10000E-03   10000.    
    11 'norm      '    8.6793       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3834       1.0000         .10000E-03   10000.    
    14 'norm      '    6.1778       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12275       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7932       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17636E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12529       1.0000         .10000E-03   10000.    
    23 'norm      '    5.1676       1.0000         .10000E-03   10000.    
    24 'Prefactor '    79.276       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .28059       1.0000         .10000E-03   10000.    
    26 'Prefactor '    27.878       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.9507       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10202E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .91367       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0769       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5427.331     FROM MIGRAD    STATUS=CONVERGED    185 CALLS     4651 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7486        2.0411       -.26959E-06    .50062E-03
   2  Prefactor     2.5506        7.1738        .25182E-05   -.12661E-02
   3  norm          7.2405        1.2625       -.93889E-08   -.94920E-04
   4  Prefactor     .10000E-03    1.6861        .98581E-08** at limit **
   5  norm          .10000E-03    5.6672       -.35847E-06** at limit **
   6  Prefactor     20.492        2.9790        .10516E-06   -.11208E-02
   7  Prefactor     .10000E-03    15.167        .20743E-06** at limit **
   8  norm          2.6105        2.2508       -.20592E-07    .50945E-05
   9  Prefactor     44.921        5.1273       -.35167E-06    .44597E-02
  10  Prefactor     44.784        2.4988        .14319E-06    .21654E-03
  11  norm          8.6860        7.0804        .96566E-07    .17581E-03
  12  Prefactor     .10001E-03    38.392       -.61037E-06** at limit **
  13  Prefactor     3.3840        5.2770        .58237E-07   -.23020E-03
  14  norm          6.1780        2.9224       -.24744E-07    .72531E-04
  15  Prefactor     .70613E-01    383.58       -.15014E-04    .34058E-03
  16  norm          2.7939        2.6067        .42316E-08   -.80169E-05
  17  Prefactor     .10002E-03    33.653       -.22118E-06** at limit **
  18  Prefactor     .10000E-03    6.2467       -.54298E-07** at limit **
  19  norm          .10000E-03    2.1883        .25498E-09** at limit **
  20  Prefactor     .44573E-02    162.27        .13595E-04    .11818E-02
  21  Prefactor     .10000E-03    12.590        .85784E-07** at limit **
  22  Prefactor     .15105E-03    1159.1        .26836E-04** at limit **
  23  norm          5.1729        3.9243        .29227E-06    .30352E-04
  24  Prefactor     79.246        7.7234       -.31955E-06   -.17636E-02
  25  Prefactor     .27920        16.979        .19361E-05    .34798E-03
  26  Prefactor     27.833        7.8514       -.42209E-06    .59535E-03
  27  Prefactor     8.9441        8.9291       -.57245E-06   -.12803E-02
  28  norm          .10000E-03    30.671        .70075E-07** at limit **
  29  norm          .10000E-03    5.6851        .39172E-06** at limit **
  30  Prefactor     .10000E-03    13.904       -.24742E-06** at limit **
  31  Prefactor     .10000E-03    124.81        .12722E-05** at limit **
  32  Normalizat    .91357        .20793        .13285E-06   -.21603E-05
  33  Prefactor     1.0769        .25380        .19805E-06   -.28403E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.74857
  Prefactor  = 2.55056
  norm       = 7.2405
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.4917
  Prefactor  = 0.0001
  norm       = 2.6105
  Prefactor  = 44.9206
  Prefactor  = 44.7843
  norm       = 8.68603
  Prefactor  = 0.000100005
  Prefactor  = 3.38404
  norm       = 6.17802
  Prefactor  = 0.0706134
  norm       = 2.79393
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00445725
  Prefactor  = 0.0001
  Prefactor  = 0.000151045
  norm       = 5.17287
  Prefactor  = 79.2463
  Prefactor  = 0.279204
  Prefactor  = 27.8332
  Prefactor  = 8.9441
  norm       = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.913571
  Prefactor  = 1.07686
 **********
 **   18 **HESSE 
 **********

 FCN=   5427.331     FROM HESSE     STATUS=OK           791 CALLS     5442 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7486        8.7431        .61356E-02   -1.5376    
   2  Prefactor     2.5506        115.65        .63872E-02   -1.5389    
   3  norm          7.2405        13.434        .37268E-02   -1.5170    
   4  Prefactor     .10000E-03    1.6823        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.6113        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.492        12.155        .22121E-02   -1.4802    
   7  Prefactor     .10000E-03    15.186        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.6105        2.2647        .63124E-02   -1.5385    
   9  Prefactor     44.921        25.171        .14956E-02   -1.4367    
  10  Prefactor     44.784        69.840        .14979E-02   -1.4369    
  11  norm          8.6860        7.2276        .34015E-02   -1.5118    
  12  Prefactor     .10001E-03    37.959        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3840        5.2905        .54993E-02   -1.5340    
  14  norm          6.1780        2.9284        .40379E-02   -1.5211    
  15  Prefactor     .70613E-01    10.957        .96192E-01   -1.5655    
  16  norm          2.7939        2.6276        .60860E-02   -1.5374    
  17  Prefactor     .10002E-03    34.003        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.2114        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.0814        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .44573E-02    79.395        .15083       -1.5695    
  21  Prefactor     .10000E-03    12.602        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .15105E-03    19.216        .96311E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.1729        4.1225        .44211E-02   -1.5253    
  24  Prefactor     79.246        72.594        .11276E-02   -1.3925    
  25  Prefactor     .27920        2.7084        .67129E-01   -1.5602    
  26  Prefactor     27.833        45.305        .18969E-02   -1.4652    
  27  Prefactor     8.9441        8.9715        .33493E-02   -1.5110    
  28  norm          .10000E-03    31.157        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.8410        .41742E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    13.962        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    125.65        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .91357        .19041        .45076E-01   -.95985    
  33  Prefactor     1.0769        .21591        .62637E-01   -.90210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15295e-07
Minuit parameter uncertainties:
  1  8.7472
  2  34.4196
  3  13.4397
  4  2.04471e-07
  5  7.23824e-06
  6  12.1563
  7  3.50519e-05
  8  2.26482
  9  25.1771
  10  69.9678
  11  7.22836
  12  0.000895318
  13  5.29121
  14  2.92849
  15  1.75832
  16  2.62775
  17  0.00157574
  18  1.08292e-06
  19  5.09117e-07
  20  1.1779
  21  2.06476e-05
  22  0.0626581
  23  4.12275
  24  72.675
  25  1.73899
  26  45.361
  27  8.9728
  28  0.00071243
  29  4.98079e-06
  30  3.80186e-05
  31  0.000462493
  32  0.190552
  33  0.216088
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  6.178e+00  2.928e+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:  1.077e+00  2.161e-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:  9.136e-01  1.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.42
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 5.45e-08 +/- 2.58e-08
Energy Flux (Fixed Index): 5.45e-05 +/- 2.59e-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) = 5427.02559216
delta logL = 0.305016907868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5427.0229074
delta logL = 0.307701668677

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7244       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1315       1.0000          .0000       5.0000    
     3 'Normalizat'    .88519       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0954       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5427.023     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      269 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7243        2.8209        .73282E-04    .91698E-03
   2  alpha         2.1315        .42148        .90190E-02    .52443E-04
   3  Normalizat    .88519        .20797        .24341E-03   -.27603E-04
   4  Prefactor     1.0954        .25476        .27483E-03   -.35326E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.72435
  alpha      = 2.13149
  Normalizat = 0.885194
  Prefactor  = 1.09539
 **********
 **   18 **HESSE 
 **********

 FCN=   5427.023     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7243        2.7759        .14656E-04   -1.5229    
   2  alpha         2.1315        .41436        .36076E-03   -.14794    
   3  Normalizat    .88519        .20798        .97364E-05   -.96982    
   4  Prefactor     1.0954        .25490        .10993E-04   -.89614    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03923e-10
Minuit parameter uncertainties:
  1  2.77597
  2  0.416321
  3  0.208166
  4  0.25518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907049': 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) = 5427.02290739
delta logL = 0.307701678759

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  5.724e+00  2.776e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  2.131e+00  4.163e-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:  1.095e+00  2.552e-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:  8.852e-01  2.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.99
Ra Dec: 192.084 58.343
Photon Index (Free Index): 2.13 +/- 0.42
Photon Flux (Free Index): 7.79e-08 +/- 4.61e-08
Energy Flux (Free Index): 3.90e-05 +/- 2.13e-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/907049/cmap_HighResolution_254620801_254880001_4FGL_J1248.3+5820_daily_bin59.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.45e-08', energy_flux2='3.90e-05', photon_flux_error='2.58e-08', dlogl='3.08e-01', energy_flux='5.45e-05', photon_flux2='7.79e-08', job_status='DONE', time_completed='2021-09-06 05:17:20.033314', photon_index_error2='0.42', photon_index2='2.13', ts='14.42', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='2.13e-05', EG='0.91', time_epoch_completed='1630930640.03', return_code='0', job_id='907049', GAL2='1.10', EG2='0.89', return_code2='0', energy_flux_error='2.59e-05', photon_flux_error2='4.61e-08', ts2='14.99', photon_index='1.81' WHERE bin_id='59' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:17:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 907049: <4FGL_J1248.3+5820_daily_bin59> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin59 192.084 58.3432 254620801 254880001 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 :                                   859.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             298.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            982 sec.

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

