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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin498
RA = 192.084, Dec = 58.3432
tmin = 368409601, tmax = 368668801
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='910151', job_status='RUN', time_executed='2021-09-06 05:11:01.773677', time_epoch_executed='1630930261.77' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/910151

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/910151/ft1_4FGL_J1248.3+5820_daily_bin498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/910151/ft2_4FGL_J1248.3+5820_daily_bin498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/910151/ft1_4FGL_J1248.3+5820_daily_bin498.fits outfile=/scratch/kocevski/910151/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin498.fits ra=192.084 dec=58.3432 rad=12.0 tmin=368409601.0 tmax=368668801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.29
user 3.08
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/910151/ft1_filtered_4FGL_J1248.3+5820_daily_bin498.fits evtable="EVENTS" scfile=/scratch/kocevski/910151/ft2_4FGL_J1248.3+5820_daily_bin498.fits sctable="SC_DATA" expcube=/scratch/kocevski/910151/ltcube_368409601_368668801_4FGL_J1248.3+5820_daily_bin498.fits outfile=/scratch/kocevski/910151/expmap_368409601_368668801_4FGL_J1248.3+5820_daily_bin498.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/910151/ltcube_368409601_368668801_4FGL_J1248.3+5820_daily_bin498.fits
.....................!
real 189.42
user 185.02
sys 4.04

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/910151/ft1_filtered_4FGL_J1248.3+5820_daily_bin498.fits scfile=/scratch/kocevski/910151/ft2_4FGL_J1248.3+5820_daily_bin498.fits outfile=/scratch/kocevski/910151/cmap_368409601_368668801_4FGL_J1248.3+5820_daily_bin498.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/910151/ft1_filtered_4FGL_J1248.3+5820_daily_bin498.fits scfile=/scratch/kocevski/910151/ft2_4FGL_J1248.3+5820_daily_bin498.fits outfile=/scratch/kocevski/910151/cmap_HighResolution_368409601_368668801_4FGL_J1248.3+5820_daily_bin498.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31871       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    14.776       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1290       1.0000         .10000E-03   10000.    
     5 'norm      '    .10879E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.323       1.0000         .10000E-03   10000.    
     8 'norm      '    1.9915       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.897       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .94689E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.8942       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.725       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.8471       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.6067       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.6188       1.0000         .10000E-03   10000.    
    19 'norm      '    .10197E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17618E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.547       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    28.596       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .57205       1.0000         .10000E-03   10000.    
    26 'Prefactor '    34.365       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .11568E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .11821E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1271       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .78464       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=   5989.933     FROM MIGRAD    STATUS=CONVERGED    932 CALLS     4634 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32005        11.711       -.11123E-05    .40486E-04
   2  Prefactor     .10000E-03    4.9912        .27734E-07** at limit **
   3  norm          14.779        12.423       -.37849E-06    .98285E-04
   4  Prefactor     6.1298        5.0103        .64616E-07    .39986E-04
   5  norm          .10000E-03    3.7003       -.59468E-06** at limit **
   6  Prefactor     .10000E-03    3.1910       -.26146E-06** at limit **
   7  Prefactor     24.320        21.215       -.10024E-05   -.99451E-05
   8  norm          1.9915        1.9519       -.40984E-07    .23991E-04
   9  Prefactor     18.894        18.094       -.12388E-06    .34907E-05
  10  Prefactor     .10000E-03    724.01       -.45917E-05** at limit **
  11  norm          3.8944        3.8749        .52229E-07    .19334E-04
  12  Prefactor     11.727        13.565       -.15223E-07   -.16431E-05
  13  Prefactor     .10000E-03    1.9551        .84632E-08** at limit **
  14  norm          4.8452        2.6759       -.25137E-07   -.24717E-04
  15  Prefactor     .10000E-03    38.368        .33913E-06** at limit **
  16  norm          4.6071        2.4220       -.51798E-08   -.12596E-04
  17  Prefactor     .10000E-03    19.319        .13902E-06** at limit **
  18  Prefactor     6.6200        8.0944        .11500E-07    .38897E-05
  19  norm          .10000E-03    1.8994        .26222E-07** at limit **
  20  Prefactor     .10000E-03    13.432        .11091E-06** at limit **
  21  Prefactor     .10001E-03    1696.9        .58525E-05** at limit **
  22  Prefactor     10.558        14.143       -.18377E-06   -.19370E-04
  23  norm          .10000E-03    2.4966        .20954E-06** at limit **
  24  Prefactor     28.614        45.501       -.22190E-06   -.71488E-05
  25  Prefactor     .57347        2.3997       -.69377E-06   -.73747E-04
  26  Prefactor     34.342        34.215        .23306E-06    .65428E-05
  27  Prefactor     .10000E-03    3.3781        .86509E-06** at limit **
  28  norm          .10001E-03    227.73       -.86076E-05** at limit **
  29  norm          .10000E-03    2.7352        .15999E-06** at limit **
  30  Prefactor     .10000E-03    77.548        .21934E-05** at limit **
  31  Prefactor     .10000E-03    328.45        .49768E-05** at limit **
  32  Normalizat    1.1270        .16383       -.23654E-06    .59827E-04
  33  Prefactor     .78469        .19706       -.15128E-06    .38886E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.320048
  Prefactor  = 0.0001
  norm       = 14.7788
  Prefactor  = 6.12984
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 24.3205
  norm       = 1.99148
  Prefactor  = 18.8941
  Prefactor  = 0.0001
  norm       = 3.89439
  Prefactor  = 11.7273
  Prefactor  = 0.0001
  norm       = 4.84525
  Prefactor  = 0.0001
  norm       = 4.6071
  Prefactor  = 0.0001
  Prefactor  = 6.62003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 10.5576
  norm       = 0.0001
  Prefactor  = 28.6141
  Prefactor  = 0.573468
  Prefactor  = 34.3418
  Prefactor  = 0.0001
  norm       = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.12697
  Prefactor  = 0.784692
 **********
 **   18 **HESSE 
 **********

 FCN=   5989.933     FROM HESSE     STATUS=OK           707 CALLS     5341 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32005        11.787        .24161E-02   -1.5595    
   2  Prefactor     .10000E-03    4.9935        .16888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          14.779        12.324        .10420E-03   -1.4939    
   4  Prefactor     6.1298        5.0122        .15089E-03   -1.5213    
   5  norm          .10000E-03    6.7171        .26113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.1901        .13477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.320        20.938        .81222E-04   -1.4721    
   8  norm          1.9915        1.9421        .10199E-03   -1.5426    
   9  Prefactor     18.894        18.097        .92137E-04   -1.4838    
  10  Prefactor     .10000E-03    730.66        .41596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.8944        3.8734        .14693E-03   -1.5313    
  12  Prefactor     11.727        13.562        .11699E-03   -1.5023    
  13  Prefactor     .10000E-03    1.9602        .10566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.8452        2.6729        .89654E-04   -1.5268    
  15  Prefactor     .10000E-03    39.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.6071        2.4218        .84482E-04   -1.5279    
  17  Prefactor     .10000E-03    19.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.6200        8.0916        .15598E-03   -1.5193    
  19  norm          .10000E-03    1.9165        .10403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    47.704        .14861       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.558        14.125        .12337E-03   -1.5058    
  23  norm          .10000E-03    2.5296        .11938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     28.614        45.516        .74919E-04   -1.4638    
  25  Prefactor     .57347        2.4545        .23605E-03   -1.5557    
  26  Prefactor     34.342        34.256        .68359E-04   -1.4535    
  27  Prefactor     .10000E-03    3.4544        .14012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10001E-03    232.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.8118        .25007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    78.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    330.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1270        .19212        .20875E-03   -.88890    
  33  Prefactor     .78469        .22932        .30408E-03   -1.0030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.1599e-10
Minuit parameter uncertainties:
  1  3.88468
  2  1.64067e-06
  3  12.326
  4  5.01255
  5  0.000325387
  6  7.1566e-07
  7  20.9441
  8  1.94219
  9  18.1026
  10  0.000838597
  11  3.87368
  12  13.5655
  13  4.55938e-07
  14  2.67296
  15  1.71797e-05
  16  2.42189
  17  9.26221e-06
  18  8.09293
  19  1.36298e-07
  20  6.84852e-06
  21  0.0010454
  22  14.1291
  23  5.67936e-06
  24  45.571
  25  2.3728
  26  34.276
  27  2.92364e-05
  28  0.0021941
  29  5.86931e-06
  30  0.00026561
  31  0.00163676
  32  0.19224
  33  0.2296
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  4.845e+00  2.673e+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.847e-01  2.296e-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.127e+00  1.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.24
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 4.28e-08 +/- 2.36e-08
Energy Flux (Fixed Index): 4.28e-05 +/- 2.36e-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) = 5989.9124147
delta logL = 0.0210802536158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5989.91156762
delta logL = 0.0219273332996

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7588       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9105       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1215       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78843       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=   5989.912     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      206 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7576        55.672        .46110E-02    .10462E-03
   2  alpha         1.9108        3.2708        .31950        .17485E-04
   3  Normalizat    1.1209        .10619        .37186E-01   -.17997E-05
   4  Prefactor     .78906        .91510E-01    .68554E-01    .26387E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.75765
  alpha      = 1.91079
  Normalizat = 1.1209
  Prefactor  = 0.789061
 **********
 **   18 **HESSE 
 **********

 FCN=   5989.912     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7576        2.6719        .87328E-04   -1.5272    
   2  alpha         1.9108        .48601        .10930E-01   -.23792    
   3  Normalizat    1.1209        .18592        .20922E-03   -.89084    
   4  Prefactor     .78906        .22857        .30332E-03   -1.0013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10209e-10
Minuit parameter uncertainties:
  1  2.67201
  2  0.489308
  3  0.186029
  4  0.22885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/910151': 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) = 5989.9115625
delta logL = 0.0219324548971

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  4.758e+00  2.672e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.911e+00  4.893e-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.891e-01  2.288e-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.121e+00  1.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.26
Ra Dec: 192.084 58.343
Photon Index (Free Index): 1.91 +/- 0.49
Photon Flux (Free Index): 4.75e-08 +/- 3.38e-08
Energy Flux (Free Index): 3.73e-05 +/- 3.17e-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/910151/cmap_HighResolution_368409601_368668801_4FGL_J1248.3+5820_daily_bin498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.28e-08', energy_flux2='3.73e-05', photon_flux_error='2.36e-08', dlogl='2.19e-02', energy_flux='4.28e-05', photon_flux2='4.75e-08', job_status='DONE', time_completed='2021-09-06 05:26:22.298034', photon_index_error2='0.49', photon_index2='1.91', ts='9.24', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='3.17e-05', EG='1.13', time_epoch_completed='1630931182.3', return_code='0', job_id='910151', GAL2='0.79', EG2='1.12', return_code2='0', energy_flux_error='2.36e-05', photon_flux_error2='3.38e-08', ts2='9.26', photon_index='1.81' WHERE bin_id='498' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:26:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 910151: <4FGL_J1248.3+5820_daily_bin498> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin498> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 05:10:45 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:10:47 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:10:47 2021
Terminated at Mon Sep  6 05:26:23 2021
Results reported at Mon Sep  6 05:26:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin498 192.084 58.3432 368409601 368668801 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 :                                   914.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            938 sec.

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

