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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin1012
RA = 192.084, Dec = 58.3432
tmin = 501638401, tmax = 501897601
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='913043', job_status='RUN', time_executed='2021-09-06 05:20:32.559098', time_epoch_executed='1630930832.56' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='1012'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913043

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913043/ft1_4FGL_J1248.3+5820_daily_bin1012.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913043/ft2_4FGL_J1248.3+5820_daily_bin1012.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913043/ft1_4FGL_J1248.3+5820_daily_bin1012.fits outfile=/scratch/kocevski/913043/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin1012.fits ra=192.084 dec=58.3432 rad=12.0 tmin=501638401.0 tmax=501897601.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 4.51
user 3.28
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913043/ft1_filtered_4FGL_J1248.3+5820_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/913043/ft2_4FGL_J1248.3+5820_daily_bin1012.fits sctable="SC_DATA" expcube=/scratch/kocevski/913043/ltcube_501638401_501897601_4FGL_J1248.3+5820_daily_bin1012.fits outfile=/scratch/kocevski/913043/expmap_501638401_501897601_4FGL_J1248.3+5820_daily_bin1012.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/913043/ltcube_501638401_501897601_4FGL_J1248.3+5820_daily_bin1012.fits
.....................!
real 190.91
user 185.10
sys 4.51

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/913043/ft1_filtered_4FGL_J1248.3+5820_daily_bin1012.fits scfile=/scratch/kocevski/913043/ft2_4FGL_J1248.3+5820_daily_bin1012.fits outfile=/scratch/kocevski/913043/cmap_501638401_501897601_4FGL_J1248.3+5820_daily_bin1012.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913043/ft1_filtered_4FGL_J1248.3+5820_daily_bin1012.fits scfile=/scratch/kocevski/913043/ft2_4FGL_J1248.3+5820_daily_bin1012.fits outfile=/scratch/kocevski/913043/cmap_HighResolution_501638401_501897601_4FGL_J1248.3+5820_daily_bin1012.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9261       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3405       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6610       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.4086       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.0533       1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.505       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.4191       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4096       1.0000         .10000E-03   10000.    
    16 'norm      '    3.7597       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.812       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.0713       1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.772       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11384E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.7560       1.0000         .10000E-03   10000.    
    24 'Prefactor '    33.353       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.1772       1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.989       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    9.5867       1.0000         .10000E-03   10000.    
    30 'Prefactor '    33.665       1.0000         .10000E-03   10000.    
    31 'Prefactor '    106.84       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0547       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .51813       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=   5249.478     FROM MIGRAD    STATUS=CONVERGED    865 CALLS     5203 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9249        7.1286        .67413E-07   -.52425E-05
   2  Prefactor     .10000E-03    11.284        .98729E-07** at limit **
   3  norm          .10000E-03    2.9176        .58042E-09** at limit **
   4  Prefactor     1.3398        4.3050        .10403E-05   -.38131E-04
   5  norm          .10000E-03    2.3364        .43495E-07** at limit **
   6  Prefactor     .10000E-03    6.9162        .15633E-06** at limit **
   7  Prefactor     .10000E-03    8.1619       -.71367E-07** at limit **
   8  norm          1.6608        1.5570       -.12541E-07   -.34400E-04
   9  Prefactor     9.4068        16.335        .23586E-06    .17610E-05
  10  Prefactor     .10000E-03    18.457       -.61788E-07** at limit **
  11  norm          7.0537        7.4076        .73820E-07   -.18535E-04
  12  Prefactor     34.501        23.592       -.30239E-06   -.17553E-04
  13  Prefactor     .10000E-03    3.4811        .21108E-07** at limit **
  14  norm          2.4190        1.6093       -.37980E-08    .45540E-05
  15  Prefactor     7.4092        14.389        .26948E-05   -.13915E-04
  16  norm          3.7596        2.3936        .11284E-07   -.11872E-04
  17  Prefactor     21.812        21.961        .16134E-07    .84326E-07
  18  Prefactor     .10000E-03    3.7919        .31776E-07** at limit **
  19  norm          5.0704        4.4484        .46315E-07    .77210E-05
  20  Prefactor     40.758        81.657       -.97638E-06   -.22778E-04
  21  Prefactor     .10000E-03    86.502       -.41383E-06** at limit **
  22  Prefactor     .10000E-03    38.922       -.11820E-05** at limit **
  23  norm          4.7560        4.1641       -.13081E-06   -.13329E-03
  24  Prefactor     33.352        47.310        .15129E-07   -.41139E-05
  25  Prefactor     8.1767        5.5107        .17082E-06    .20671E-04
  26  Prefactor     18.988        29.213        .33751E-07   -.24283E-05
  27  Prefactor     .10000E-03    5.4827       -.54562E-07** at limit **
  28  norm          .10000E-03    86.820       -.94748E-07** at limit **
  29  norm          9.5863        5.1363        .16062E-07   -.11464E-04
  30  Prefactor     33.659        40.004       -.35657E-06   -.20991E-04
  31  Prefactor     107.03        580.44        .14474E-04    .14628E-04
  32  Normalizat    1.0547        .16260       -.25946E-07   -.31971E-04
  33  Prefactor     .51803        .18474       -.76627E-06   -.15254E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.9249
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.33985
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.66082
  Prefactor  = 9.40684
  Prefactor  = 0.0001
  norm       = 7.05372
  Prefactor  = 34.5012
  Prefactor  = 0.0001
  norm       = 2.41903
  Prefactor  = 7.40924
  norm       = 3.75965
  Prefactor  = 21.812
  Prefactor  = 0.0001
  norm       = 5.07035
  Prefactor  = 40.7584
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.75599
  Prefactor  = 33.3517
  Prefactor  = 8.1767
  Prefactor  = 18.9878
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.58635
  Prefactor  = 33.659
  Prefactor  = 107.033
  Normalizat = 1.05475
  Prefactor  = 0.518033
 **********
 **   18 **HESSE 
 **********

 FCN=   5249.478     FROM HESSE     STATUS=OK           699 CALLS     5902 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9249        7.1789        .12719E-03   -1.5078    
   2  Prefactor     .10000E-03    11.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.9180        .12087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3398        4.3459        .25716E-03   -1.5476    
   5  norm          .10000E-03    2.3686        .10807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.1159        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.1795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6608        1.5616        .83818E-04   -1.5450    
   9  Prefactor     9.4068        16.374        .13065E-03   -1.5094    
  10  Prefactor     .10000E-03    18.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.0537        7.3932        .15105E-03   -1.5177    
  12  Prefactor     34.501        23.606        .68221E-04   -1.4533    
  13  Prefactor     .10000E-03    3.5192        .13194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.4190        1.6151        .72839E-04   -1.5397    
  15  Prefactor     7.4092        14.499        .73670E-03   -1.5164    
  16  norm          3.7596        2.3933        .86019E-04   -1.5320    
  17  Prefactor     21.812        21.969        .85763E-04   -1.4774    
  18  Prefactor     .10000E-03    3.8119        .13777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.0704        4.4452        .13744E-03   -1.5258    
  20  Prefactor     40.758        82.002        .62777E-04   -1.4430    
  21  Prefactor     .10000E-03    86.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    39.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.7560        4.1780        .13318E-03   -1.5272    
  24  Prefactor     33.352        47.370        .69385E-04   -1.4552    
  25  Prefactor     8.1767        5.5165        .12771E-03   -1.5136    
  26  Prefactor     18.988        29.213        .91913E-04   -1.4836    
  27  Prefactor     .10000E-03    5.4944        .16546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    86.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          9.5863        5.1372        .11487E-03   -1.5089    
  30  Prefactor     33.659        40.041        .69064E-04   -1.4547    
  31  Prefactor     107.03        612.20        .19454E-03   -1.3635    
  32  Normalizat    1.0547        .18689        .19519E-03   -.91218    
  33  Prefactor     .51803        .20793        .32265E-03   -1.1116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.67095e-11
Minuit parameter uncertainties:
  1  7.17949
  2  7.91194e-06
  3  4.3519e-08
  4  4.3469
  5  1.15145e-06
  6  1.01228e-05
  7  5.92288e-06
  8  1.56166
  9  16.3818
  10  7.40265e-06
  11  7.39411
  12  23.6128
  13  2.23355e-06
  14  1.61514
  15  14.5058
  16  2.39332
  17  21.9767
  18  2.19212e-06
  19  4.44553
  20  82.23
  21  2.59722e-06
  22  0.000100746
  23  4.17825
  24  47.4237
  25  5.51686
  26  29.2352
  27  9.28375e-07
  28  1.15416e-05
  29  5.13748
  30  40.0726
  31  520.276
  32  0.187002
  33  0.208233
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  2.419e+00  1.615e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
366         beta:  4.589e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
695    Prefactor:  5.180e-01  2.082e-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.055e+00  1.870e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.47
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 2.13e-08 +/- 1.43e-08
Energy Flux (Fixed Index): 2.14e-05 +/- 1.43e-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) = 5249.21927129
delta logL = 0.258626170483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5249.19831007
delta logL = 0.279587394353

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0851       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4028       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0638       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51405       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=   5249.198     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0846        1.4462        .71486E-02   -.21951E-03
   2  alpha         1.4026        .41245        .32552       -.27837E-04
   3  Normalizat    1.0638        .15160        .39713E-01    .36650E-05
   4  Prefactor     .51406        .18130        .73142E-01    .29863E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.08464
  alpha      = 1.40256
  Normalizat = 1.06381
  Prefactor  = 0.514063
 **********
 **   18 **HESSE 
 **********

 FCN=   5249.198     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0846        1.6694        .70753E-04   -1.5419    
   2  alpha         1.4026        .52102        .13018E-01   -.45446    
   3  Normalizat    1.0638        .17024        .19443E-03   -.90922    
   4  Prefactor     .51406        .20316        .32385E-03   -1.1134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26116e-12
Minuit parameter uncertainties:
  1  1.66947
  2  0.525811
  3  0.170331
  4  0.203453
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913043': 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) = 5249.19830998
delta logL = 0.279587478632

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  2.085e+00  1.669e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.403e+00  5.258e-01  0.000e+00  5.000e+00 ( 1.000e+00)
366         beta:  4.589e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
695    Prefactor:  5.141e-01  2.035e-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.064e+00  1.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.02
Ra Dec: 192.084 58.343
Photon Index (Free Index): 1.40 +/- 0.53
Photon Flux (Free Index): 1.29e-08 +/- 1.22e-08
Energy Flux (Free Index): 4.13e-05 +/- 4.84e-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/913043/cmap_HighResolution_501638401_501897601_4FGL_J1248.3+5820_daily_bin1012.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.13e-08', energy_flux2='4.13e-05', photon_flux_error='1.43e-08', dlogl='2.80e-01', energy_flux='2.14e-05', photon_flux2='1.29e-08', job_status='DONE', time_completed='2021-09-06 05:35:23.995938', photon_index_error2='0.53', photon_index2='1.40', ts='13.47', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', energy_flux_error2='4.84e-05', EG='1.05', time_epoch_completed='1630931724.0', return_code='0', job_id='913043', GAL2='0.51', EG2='1.06', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='1.22e-08', ts2='14.02', photon_index='1.81' WHERE bin_id='1012' 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 <scs@bullet0139>
Subject: Job 913043: <4FGL_J1248.3+5820_daily_bin1012> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin1012> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 05:20:22 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:20:24 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:24 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_bin1012 192.084 58.3432 501638401 501897601 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 :                                   886.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            903 sec.

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

