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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin9
RA = 192.084, Dec = 58.3432
tmin = 241660801, tmax = 241920001
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='905763', job_status='RUN', time_executed='2021-09-06 04:56:43.470967', time_epoch_executed='1630929403.47' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='9'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905763

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905763/ft1_4FGL_J1248.3+5820_daily_bin9.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905763/ft2_4FGL_J1248.3+5820_daily_bin9.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905763/ft1_4FGL_J1248.3+5820_daily_bin9.fits outfile=/scratch/kocevski/905763/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin9.fits ra=192.084 dec=58.3432 rad=12.0 tmin=241660801.0 tmax=241920001.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.45
user 1.28
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905763/ft1_filtered_4FGL_J1248.3+5820_daily_bin9.fits evtable="EVENTS" scfile=/scratch/kocevski/905763/ft2_4FGL_J1248.3+5820_daily_bin9.fits sctable="SC_DATA" expcube=/scratch/kocevski/905763/ltcube_241660801_241920001_4FGL_J1248.3+5820_daily_bin9.fits outfile=/scratch/kocevski/905763/expmap_241660801_241920001_4FGL_J1248.3+5820_daily_bin9.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/905763/ltcube_241660801_241920001_4FGL_J1248.3+5820_daily_bin9.fits
.....................!
real 190.15
user 184.97
sys 4.87

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 219 point sources and 0 extended sources

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

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/905763/ft1_filtered_4FGL_J1248.3+5820_daily_bin9.fits scfile=/scratch/kocevski/905763/ft2_4FGL_J1248.3+5820_daily_bin9.fits outfile=/scratch/kocevski/905763/cmap_241660801_241920001_4FGL_J1248.3+5820_daily_bin9.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=192.084 yref=58.3432 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905763/ft1_filtered_4FGL_J1248.3+5820_daily_bin9.fits scfile=/scratch/kocevski/905763/ft2_4FGL_J1248.3+5820_daily_bin9.fits outfile=/scratch/kocevski/905763/cmap_HighResolution_241660801_241920001_4FGL_J1248.3+5820_daily_bin9.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35041E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0620       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.803       1.0000         .10000E-03   10000.    
     8 'norm      '    5.0238       1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.543       1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.666       1.0000         .10000E-03   10000.    
    11 'norm      '    10.539       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.3557       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.764       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7623       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.4237       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.363       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.312       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .85079       1.0000         .10000E-03   10000.    
    23 'norm      '    11.072       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    4.5717       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .11296E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .70008       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2488       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=   6900.150     FROM MIGRAD    STATUS=CONVERGED    915 CALLS     4614 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10018E-03    2.8373        .15715E-05** at limit **
   2  Prefactor     .10000E-03    14.939       -.52795E-05** at limit **
   3  norm          .10000E-03    4.3199        .21930E-06** at limit **
   4  Prefactor     7.0625        5.0155       -.31300E-06   -.20652E-03
   5  norm          .10000E-03    5.4256       -.15704E-06** at limit **
   6  Prefactor     .10000E-03    6.7316        .30728E-06** at limit **
   7  Prefactor     19.800        21.782       -.12450E-07   -.23988E-04
   8  norm          5.0241        2.1886        .55330E-07   -.20640E-03
   9  Prefactor     40.548        23.444        .13213E-06   -.14395E-04
  10  Prefactor     41.666        54.373        .13543E-06   -.65902E-05
  11  norm          10.540        7.1065       -.57235E-06    .10827E-03
  12  Prefactor     .10000E-03    21.005       -.88769E-05** at limit **
  13  Prefactor     .10000E-03    2.4093       -.36137E-06** at limit **
  14  norm          6.3564        2.3162        .77855E-07    .13557E-03
  15  Prefactor     17.767        17.105        .44639E-06    .40642E-04
  16  norm          2.7626        2.1917       -.87981E-07   -.34298E-03
  17  Prefactor     .10000E-03    47.872       -.25649E-05** at limit **
  18  Prefactor     .10000E-03    2.3684       -.22070E-06** at limit **
  19  norm          3.4240        3.4026       -.27308E-06   -.52719E-04
  20  Prefactor     26.365        26.879       -.13351E-06    .18176E-05
  21  Prefactor     16.318        42.980        .18732E-05    .13134E-04
  22  Prefactor     .84982        12.761       -.83501E-06    .12913E-04
  23  norm          11.074        5.5302       -.25108E-07    .25126E-03
  24  Prefactor     .10000E-03    27.277        .58568E-05** at limit **
  25  Prefactor     .10000E-03    .91054       -.17034E-06** at limit **
  26  Prefactor     .10000E-03    10.176        .37498E-06** at limit **
  27  Prefactor     .10000E-03    2.5577        .74849E-07** at limit **
  28  norm          .10000E-03    124.98        .81661E-05** at limit **
  29  norm          4.5728        5.0517       -.96066E-06   -.57513E-03
  30  Prefactor     .10000E-03    17.649        .10250E-04** at limit **
  31  Prefactor     .10000E-03    268.56       -.17763E-04** at limit **
  32  Normalizat    .69987        .16190        .48453E-06   -.82240E-04
  33  Prefactor     1.2489        .19452       -.41726E-06   -.18088E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100184
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.06254
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8004
  norm       = 5.02407
  Prefactor  = 40.5484
  Prefactor  = 41.6662
  norm       = 10.5399
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.3564
  Prefactor  = 17.7671
  norm       = 2.76256
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.42403
  Prefactor  = 26.3652
  Prefactor  = 16.3179
  Prefactor  = 0.849822
  norm       = 11.0738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.57282
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.69987
  Prefactor  = 1.2489
 **********
 **   18 **HESSE 
 **********

 FCN=   6900.150     FROM HESSE     STATUS=OK           697 CALLS     5311 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10018E-03    16.941        .26359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.3225        .16862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.0625        5.0214        .15095E-03   -1.5176    
   5  norm          .10000E-03    5.6297        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.7890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.800        21.725        .90004E-04   -1.4818    
   8  norm          5.0241        2.1895        .77370E-04   -1.5260    
   9  Prefactor     40.548        23.469        .62953E-04   -1.4434    
  10  Prefactor     41.666        54.363        .62102E-04   -1.4416    
  11  norm          10.540        7.0917        .12342E-03   -1.5059    
  12  Prefactor     .10000E-03    20.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.4306        .12579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.3564        2.3150        .73957E-04   -1.5204    
  15  Prefactor     17.767        17.115        .95028E-04   -1.4865    
  16  norm          2.7626        2.1861        .10538E-03   -1.5376    
  17  Prefactor     .10000E-03    48.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.3728        .12484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.4240        3.3940        .14342E-03   -1.5338    
  20  Prefactor     26.365        26.881        .78022E-04   -1.4681    
  21  Prefactor     16.318        42.827        .99166E-04   -1.4900    
  22  Prefactor     .84982        118.35        .48029E-02   -1.5524    
  23  norm          11.074        5.8844        .11315E-03   -1.5042    
  24  Prefactor     .10000E-03    27.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .91363        .77395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    10.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.5642        .12973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    125.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          4.5728        5.1259        .18699E-03   -1.5280    
  30  Prefactor     .10000E-03    17.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    268.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .69987        .19136        .26332E-03   -1.0390    
  33  Prefactor     1.2489        .23200        .25668E-03   -.84839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0982e-08
Minuit parameter uncertainties:
  1  0.00353479
  2  2.01832e-05
  3  2.04221e-07
  4  5.0217
  5  1.20055e-05
  6  6.9159e-06
  7  21.7336
  8  2.18949
  9  23.4744
  10  54.4279
  11  7.09226
  12  6.58881e-05
  13  1.23619e-06
  14  2.31505
  15  17.1198
  16  2.18619
  17  2.87416e-07
  18  1.1451e-07
  19  3.39421
  20  26.8929
  21  42.9083
  22  20.097
  23  5.88474
  24  2.35913e-05
  25  1.45524e-07
  26  6.50816e-06
  27  3.87437e-07
  28  0.000115413
  29  5.12635
  30  4.53175e-06
  31  1.12968e-05
  32  0.191542
  33  0.23219
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  6.356e+00  2.315e+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.249e+00  2.322e-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:  6.999e-01  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 35.24
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 5.61e-08 +/- 2.04e-08
Energy Flux (Fixed Index): 5.61e-05 +/- 2.04e-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) = 6899.91767805
delta logL = 0.232121777558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6899.87285984
delta logL = 0.276939990093

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2875       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5906       1.0000          .0000       5.0000    
     3 'Normalizat'    .71384       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2403       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=   6899.873     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .61E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2872        2.4760        .40021E-02   -.56983E-04
   2  alpha         1.5902        .28024        .22365       -.16273E-04
   3  Normalizat    .71399        .15284        .42475E-01    .32603E-04
   4  Prefactor     1.2402        .19343        .58234E-01    .13119E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.28715
  alpha      = 1.59024
  Normalizat = 0.71399
  Prefactor  = 1.24017
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.873     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2872        2.4166        .76293E-04   -1.5206    
   2  alpha         1.5902        .29153        .92487E-02   -.37245    
   3  Normalizat    .71399        .18207        .26095E-03   -1.0334    
   4  Prefactor     1.2402        .23070        .25752E-03   -.85104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.68819e-11
Minuit parameter uncertainties:
  1  2.4166
  2  0.292302
  3  0.182227
  4  0.230892
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905763': 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) = 6899.87285901
delta logL = 0.276940823769

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  6.287e+00  2.417e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.590e+00  2.923e-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.240e+00  2.309e-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:  7.140e-01  1.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 35.74
Ra Dec: 192.084 58.343
Photon Index (Free Index): 1.59 +/- 0.29
Photon Flux (Free Index): 4.42e-08 +/- 2.20e-08
Energy Flux (Free Index): 8.09e-05 +/- 5.20e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.61e-08', energy_flux2='8.09e-05', photon_flux_error='2.04e-08', dlogl='2.77e-01', energy_flux='5.61e-05', photon_flux2='4.42e-08', job_status='DONE', time_completed='2021-09-06 05:12:50.083284', photon_index_error2='0.29', photon_index2='1.59', ts='35.24', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='5.20e-05', EG='0.70', time_epoch_completed='1630930370.08', return_code='0', job_id='905763', GAL2='1.24', EG2='0.71', return_code2='0', energy_flux_error='2.04e-05', photon_flux_error2='2.20e-08', ts2='35.74', photon_index='1.81' WHERE bin_id='9' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:12:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 905763: <4FGL_J1248.3+5820_daily_bin9> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin9> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 04:56:25 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:56:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 04:56:27 2021
Terminated at Mon Sep  6 05:12:50 2021
Results reported at Mon Sep  6 05:12:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin9 192.084 58.3432 241660801 241920001 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 :                                   964.26 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             335.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

