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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin1003
RA = 192.084, Dec = 58.3432
tmin = 499305601, tmax = 499564801
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='913029', job_status='RUN', time_executed='2021-09-06 05:23:38.187744', time_epoch_executed='1630931018.19' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913029

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913029/ft1_4FGL_J1248.3+5820_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913029/ft2_4FGL_J1248.3+5820_daily_bin1003.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913029/ft1_4FGL_J1248.3+5820_daily_bin1003.fits outfile=/scratch/kocevski/913029/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin1003.fits ra=192.084 dec=58.3432 rad=12.0 tmin=499305601.0 tmax=499564801.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 5.51
user 5.19
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/913029/ft1_filtered_4FGL_J1248.3+5820_daily_bin1003.fits" evtable="EVENTS" scfile=/scratch/kocevski/913029/ft2_4FGL_J1248.3+5820_daily_bin1003.fits sctable="SC_DATA" outfile=/scratch/kocevski/913029/ltcube_499305601_499564801_4FGL_J1248.3+5820_daily_bin1003.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/913029/ft2_4FGL_J1248.3+5820_daily_bin1003.fits
.....................!
real 13.09
user 12.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913029/ft1_filtered_4FGL_J1248.3+5820_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/913029/ft2_4FGL_J1248.3+5820_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/913029/ltcube_499305601_499564801_4FGL_J1248.3+5820_daily_bin1003.fits outfile=/scratch/kocevski/913029/expmap_499305601_499564801_4FGL_J1248.3+5820_daily_bin1003.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/913029/ltcube_499305601_499564801_4FGL_J1248.3+5820_daily_bin1003.fits
.....................!
real 190.62
user 185.28
sys 4.90

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/913029/ft1_filtered_4FGL_J1248.3+5820_daily_bin1003.fits scfile=/scratch/kocevski/913029/ft2_4FGL_J1248.3+5820_daily_bin1003.fits outfile=/scratch/kocevski/913029/cmap_499305601_499564801_4FGL_J1248.3+5820_daily_bin1003.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913029/ft1_filtered_4FGL_J1248.3+5820_daily_bin1003.fits scfile=/scratch/kocevski/913029/ft2_4FGL_J1248.3+5820_daily_bin1003.fits outfile=/scratch/kocevski/913029/cmap_HighResolution_499305601_499564801_4FGL_J1248.3+5820_daily_bin1003.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .54791E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0018       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2802       1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.842       1.0000         .10000E-03   10000.    
     8 'norm      '    .14767       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.156       1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.602       1.0000         .10000E-03   10000.    
    11 'norm      '    10.384       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.767       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.7915       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.8151       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2171       1.0000         .10000E-03   10000.    
    19 'norm      '    .67345E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.523       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    33.602       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.8026       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    3.3109       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .98077       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .79521       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=   3791.511     FROM MIGRAD    STATUS=CONVERGED    903 CALLS     4695 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7559       -.40839E-07** at limit **
   2  Prefactor     .10000E-03    116.18       -.76582E-06** at limit **
   3  norm          .10000E-03    4.9307       -.28229E-07** at limit **
   4  Prefactor     3.0025        6.2597       -.16910E-06   -.18435E-04
   5  norm          .10000E-03    1.8415        .12990E-06** at limit **
   6  Prefactor     2.2798        6.6533        .47059E-05    .52729E-04
   7  Prefactor     40.840        36.916       -.37924E-06   -.91731E-07
   8  norm          .15842        1.7241        .40393E-06   -.32332E-03
   9  Prefactor     21.161        24.298        .46361E-06    .47520E-05
  10  Prefactor     42.673        98.620       -.10616E-04    .77043E-06
  11  norm          10.384        9.7501        .11455E-06   -.58872E-05
  12  Prefactor     23.769        23.519        .35967E-07   -.28115E-06
  13  Prefactor     .10000E-03    3.6615        .22936E-07** at limit **
  14  norm          3.7917        2.6533        .56178E-07    .26718E-04
  15  Prefactor     .10000E-03    13.454       -.80840E-07** at limit **
  16  norm          4.8153        2.7596        .18625E-08    .17613E-04
  17  Prefactor     .10000E-03    36.748       -.59000E-06** at limit **
  18  Prefactor     6.2183        10.710       -.26653E-07    .11196E-04
  19  norm          .10030E-03    3.0779       -.61784E-06** at limit **
  20  Prefactor     .10000E-03    38.169       -.46077E-06** at limit **
  21  Prefactor     .10000E-03    77.210        .32264E-05** at limit **
  22  Prefactor     24.532        24.778        .34991E-06    .26623E-04
  23  norm          .10000E-03    5.0445       -.95195E-07** at limit **
  24  Prefactor     33.621        63.179       -.19258E-05    .16356E-04
  25  Prefactor     3.8040        4.9665        .20877E-06    .16925E-04
  26  Prefactor     .10000E-03    117.72       -.41195E-05** at limit **
  27  Prefactor     .10000E-03    6.6318       -.14426E-06** at limit **
  28  norm          .10000E-03    110.94       -.44270E-05** at limit **
  29  norm          3.3111        3.6168        .38564E-06    .12051E-03
  30  Prefactor     .10000E-03    33.723        .51057E-06** at limit **
  31  Prefactor     .10000E-03    174.59        .72281E-05** at limit **
  32  Normalizat    .98038        .20682       -.13336E-05    .43619E-04
  33  Prefactor     .79552        .23389        .21750E-05    .60127E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.00254
  norm       = 0.0001
  Prefactor  = 2.27976
  Prefactor  = 40.8398
  norm       = 0.158422
  Prefactor  = 21.1609
  Prefactor  = 42.6725
  norm       = 10.3838
  Prefactor  = 23.7686
  Prefactor  = 0.0001
  norm       = 3.79166
  Prefactor  = 0.0001
  norm       = 4.81527
  Prefactor  = 0.0001
  Prefactor  = 6.21834
  norm       = 0.000100302
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.5325
  norm       = 0.0001
  Prefactor  = 33.6211
  Prefactor  = 3.80403
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.31109
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.980385
  Prefactor  = 0.795521
 **********
 **   18 **HESSE 
 **********

 FCN=   3791.511     FROM HESSE     STATUS=OK           705 CALLS     5400 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7614        .99828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    120.23        .42223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.9315        .13354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.0025        6.2540        .21273E-03   -1.5361    
   5  norm          .10000E-03    1.8461        .81599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2798        6.6883        .12750E-02   -1.5406    
   7  Prefactor     40.840        36.924        .62723E-04   -1.4429    
   8  norm          .15842        10.533        .15042E-02   -1.5628    
   9  Prefactor     21.161        24.333        .87082E-04   -1.4788    
  10  Prefactor     42.673        99.032        .61419E-04   -1.4401    
  11  norm          10.384        9.7414        .12434E-03   -1.5063    
  12  Prefactor     23.769        23.518        .82165E-04   -1.4733    
  13  Prefactor     .10000E-03    3.6809        .11504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.7917        2.6538        .80946E-04   -1.5319    
  15  Prefactor     .10000E-03    13.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.8153        2.7599        .75191E-04   -1.5269    
  17  Prefactor     .10000E-03    36.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.2183        10.707        .16100E-03   -1.5209    
  19  norm          .10030E-03    6.2074        .37766E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    38.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    77.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     24.532        24.803        .80890E-04   -1.4717    
  23  norm          .10000E-03    5.0953        .13459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     33.621        63.247        .69128E-04   -1.4548    
  25  Prefactor     3.8040        4.9645        .14831E-03   -1.5318    
  26  Prefactor     .10000E-03    119.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.6447        .15471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    111.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          3.3111        3.6128        .58807E-03   -1.5344    
  30  Prefactor     .10000E-03    33.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    174.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .98038        .25064        .21465E-03   -.93690    
  33  Prefactor     .79552        .28062        .28484E-03   -.99894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12447e-10
Minuit parameter uncertainties:
  1  1.35542e-06
  2  0.000251656
  3  3.77586e-07
  4  6.25534
  5  2.32877e-06
  6  6.69045
  7  36.9447
  8  2.58325
  9  24.3443
  10  99.4172
  11  9.74286
  12  23.5272
  13  3.16308e-06
  14  2.65385
  15  8.07634e-06
  16  2.75998
  17  1.39385e-05
  18  10.7107
  19  0.00274067
  20  1.5632e-05
  21  9.76793e-05
  22  24.8136
  23  1.10197e-05
  24  63.3739
  25  4.96502
  26  0.000301333
  27  1.37454e-05
  28  5.0693e-05
  29  3.61303
  30  2.88532e-05
  31  0.000109688
  32  0.250936
  33  0.281122
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  3.792e+00  2.654e+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:  7.955e-01  2.811e-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.804e-01  2.509e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.22
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 3.35e-08 +/- 2.34e-08
Energy Flux (Fixed Index): 3.35e-05 +/- 2.34e-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) = 3791.43732737
delta logL = 0.0734828404907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3791.4352779
delta logL = 0.0755323168364

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6426       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5548       1.0000          .0000       5.0000    
     3 'Normalizat'    .99142       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78759       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=   3791.435     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      203 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6426        2.8741        .52916E-02    .88194E-03
   2  alpha         1.5548        .55245        .34587       -.63700E-04
   3  Normalizat    .99144        .19182        .46059E-01   -.12622E-03
   4  Prefactor     .78757        .23115        .64682E-01   -.11995E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.64263
  alpha      = 1.55483
  Normalizat = 0.991437
  Prefactor  = 0.787565
 **********
 **   18 **HESSE 
 **********

 FCN=   3791.435     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6426        2.7206        .81519E-04   -1.5326    
   2  alpha         1.5548        .61364        .12918E-01   -.38771    
   3  Normalizat    .99144        .22910        .21362E-03   -.93318    
   4  Prefactor     .78757        .27641        .28613E-03   -1.0019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87391e-10
Minuit parameter uncertainties:
  1  2.72067
  2  0.621067
  3  0.229328
  4  0.276899
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913029': 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) = 3791.43527789
delta logL = 0.0755323199774

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  3.643e+00  2.721e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.555e+00  6.211e-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:  7.876e-01  2.769e-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.914e-01  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.38
Ra Dec: 192.084 58.343
Photon Index (Free Index): 1.55 +/- 0.62
Photon Flux (Free Index): 2.49e-08 +/- 2.51e-08
Energy Flux (Free Index): 5.05e-05 +/- 6.67e-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/913029/cmap_HighResolution_499305601_499564801_4FGL_J1248.3+5820_daily_bin1003.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.35e-08', energy_flux2='5.05e-05', photon_flux_error='2.34e-08', dlogl='7.55e-02', energy_flux='3.35e-05', photon_flux2='2.49e-08', job_status='DONE', time_completed='2021-09-06 05:35:24.432195', photon_index_error2='0.62', photon_index2='1.55', ts='7.22', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='6.67e-05', EG='0.98', time_epoch_completed='1630931724.43', return_code='0', job_id='913029', GAL2='0.79', EG2='0.99', return_code2='0', energy_flux_error='2.34e-05', photon_flux_error2='2.51e-08', ts2='7.38', photon_index='1.81' WHERE bin_id='1003' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:35:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 913029: <4FGL_J1248.3+5820_daily_bin1003> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin1003> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 05:20:21 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:20:23 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:20:23 2021
Terminated at Mon Sep  6 05:35:25 2021
Results reported at Mon Sep  6 05:35:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin1003 192.084 58.3432 499305601 499564801 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 :                                   699.43 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             263.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            904 sec.

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

