/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 50 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 = 7571
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1253.8+6242_daily_bin1348
RA = 193.467, Dec = 62.7052
tmin = 588729601, tmax = 588988801
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='974546', job_status='RUN', time_executed='2021-09-06 08:22:36.655214', time_epoch_executed='1630941756.66' WHERE source_name='4FGL J1253.8+6242' and cadence='daily' and bin_id='1348'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974546

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974546/ft1_4FGL_J1253.8+6242_daily_bin1348.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974546/ft2_4FGL_J1253.8+6242_daily_bin1348.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974546/ft1_4FGL_J1253.8+6242_daily_bin1348.fits outfile=/scratch/kocevski/974546/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin1348.fits ra=193.467 dec=62.7052 rad=12.0 tmin=588729601.0 tmax=588988801.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.17
user 2.95
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/974546/ft2_4FGL_J1253.8+6242_daily_bin1348.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/974546/ft2_4FGL_J1253.8+6242_daily_bin1348.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/974546/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin1348.fits evtable="EVENTS" outfile="/scratch/kocevski/974546/ft1_filtered_4FGL_J1253.8+6242_daily_bin1348.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.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/974546/ft1_filtered_4FGL_J1253.8+6242_daily_bin1348.fits" evtable="EVENTS" scfile=/scratch/kocevski/974546/ft2_4FGL_J1253.8+6242_daily_bin1348.fits sctable="SC_DATA" outfile=/scratch/kocevski/974546/ltcube_588729601_588988801_4FGL_J1253.8+6242_daily_bin1348.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/974546/ft2_4FGL_J1253.8+6242_daily_bin1348.fits
.....................!
real 13.40
user 12.98
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974546/ft1_filtered_4FGL_J1253.8+6242_daily_bin1348.fits evtable="EVENTS" scfile=/scratch/kocevski/974546/ft2_4FGL_J1253.8+6242_daily_bin1348.fits sctable="SC_DATA" expcube=/scratch/kocevski/974546/ltcube_588729601_588988801_4FGL_J1253.8+6242_daily_bin1348.fits outfile=/scratch/kocevski/974546/expmap_588729601_588988801_4FGL_J1253.8+6242_daily_bin1348.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/974546/ltcube_588729601_588988801_4FGL_J1253.8+6242_daily_bin1348.fits
.....................!
real 192.51
user 186.30
sys 4.62

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 223 point sources and 0 extended sources

Setting source of interest to:
4FGL J1253.8+6242 @ 193.467 62.7052

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/974546/ft1_filtered_4FGL_J1253.8+6242_daily_bin1348.fits scfile=/scratch/kocevski/974546/ft2_4FGL_J1253.8+6242_daily_bin1348.fits outfile=/scratch/kocevski/974546/cmap_588729601_588988801_4FGL_J1253.8+6242_daily_bin1348.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=193.467 yref=62.7052 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974546/ft1_filtered_4FGL_J1253.8+6242_daily_bin1348.fits scfile=/scratch/kocevski/974546/ft2_4FGL_J1253.8+6242_daily_bin1348.fits outfile=/scratch/kocevski/974546/cmap_HighResolution_588729601_588988801_4FGL_J1253.8+6242_daily_bin1348.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=193.467 yref=62.7052 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/974546/ft1_filtered_4FGL_J1253.8+6242_daily_bin1348.fits evtable="EVENTS" scfile=/scratch/kocevski/974546/ft2_4FGL_J1253.8+6242_daily_bin1348.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/974546/Model_4FGL_J1253.8+6242_daily_bin1348.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/974546/ft1_filtered_4FGL_J1253.8+6242_daily_bin1348.fits.....................!
real 51.77
user 50.47
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/974546/ft1_filtered_4FGL_J1253.8+6242_daily_bin1348.fits', '/scratch/kocevski/974546/ft2_4FGL_J1253.8+6242_daily_bin1348.fits', expMap='/scratch/kocevski/974546/expmap_588729601_588988801_4FGL_J1253.8+6242_daily_bin1348.fits', expCube='/scratch/kocevski/974546/ltcube_588729601_588988801_4FGL_J1253.8+6242_daily_bin1348.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/974546/Model_4FGL_J1253.8+6242_daily_bin1348.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1253.8+6242'

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  7.997e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  1.987e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/974546/ft1_filtered_4FGL_J1253.8+6242_daily_bin1348.fits
Spacecraft file(s): /scratch/kocevski/974546/ft2_4FGL_J1253.8+6242_daily_bin1348.fits
Exposure map: /scratch/kocevski/974546/expmap_588729601_588988801_4FGL_J1253.8+6242_daily_bin1348.fits
Exposure cube: /scratch/kocevski/974546/ltcube_588729601_588988801_4FGL_J1253.8+6242_daily_bin1348.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/974546/Model_4FGL_J1253.8+6242_daily_bin1348.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) = 4993.95114641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1740       1.0000         .10000E-03   10000.    
     4 'norm      '    15.176       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4510.2       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7360       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1710.4       1.0000         .10000E-03   10000.    
    11 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    223.50       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.048       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.861       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .23813       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10682E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .42200       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.4255       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4993.383     FROM MIGRAD    STATUS=CONVERGED    835 CALLS     4917 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.988       -.12557E-05** at limit **
   2  Prefactor     .10000E-03    6.0437        .18673E-07** at limit **
   3  Prefactor     5.1739        3.4959        .19672E-07   -.79354E-04
   4  norm          15.175        27.415        .11784E-05   -.26526E-04
   5  norm          .10000E-03    2.8737        .34290E-07** at limit **
   6  Prefactor     .10000E-03    7.4208       -.15890E-05** at limit **
   7  Prefactor     .10000E-03    11.518        .15317E-05** at limit **
   8  norm          4509.6        895.27       -.11112E-03   -.14370E-04
   9  Prefactor     3.7207        74.020       -.42210E-05   -.51542E-04
  10  Prefactor     1710.9        2000.8        .13599E-03   -.34999E-05
  11  norm          .10001E-03    2.1453        .76087E-06** at limit **
  12  Prefactor     .10000E-03    10.261        .20245E-06** at limit **
  13  norm          .10000E-03    3.4857        .83756E-07** at limit **
  14  norm          .10000E-03    4.6902        .56916E-06** at limit **
  15  Prefactor     223.57        182.23        .42894E-04   -.10003E-04
  16  Prefactor     .10000E-03    4.7258        .51444E-07** at limit **
  17  Prefactor     .10000E-03    44.474       -.85729E-06** at limit **
  18  Prefactor     27.046        25.022       -.39438E-06    .27915E-04
  19  Prefactor     .10000E-03    13.377       -.21950E-05** at limit **
  20  Prefactor     .10000E-03    14.362        .31189E-05** at limit **
  21  Prefactor     .10000E-03    1.0075        .28210E-07** at limit **
  22  Prefactor     .10000E-03    6.4644       -.59031E-06** at limit **
  23  Prefactor     16.857        35.465        .26448E-05   -.61863E-05
  24  Prefactor     .10000E-03    1.7108        .87200E-08** at limit **
  25  Prefactor     .10000E-03    7.5795       -.13430E-05** at limit **
  26  norm          .10000E-03    30.397        .61672E-06** at limit **
  27  norm          .23758        2.4146       -.14319E-06   -.20748E-04
  28  Prefactor     .10000E-03    85.278        .28610E-06** at limit **
  29  Prefactor     .10000E-03    248.12       -.12596E-05** at limit **
  30  Normalizat    .42216        .19761        .14298E-04   -.12899E-03
  31  Prefactor     1.4253        .22061       -.56459E-05    .32446E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.17387
  norm       = 15.1749
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4509.62
  Prefactor  = 3.72071
  Prefactor  = 1710.91
  norm       = 0.00010001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 223.569
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.0457
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.237581
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.422161
  Prefactor  = 1.42531
 **********
 **   18 **HESSE 
 **********

 FCN=   4993.383     FROM HESSE     STATUS=OK           610 CALLS     5527 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.0454        .16967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.1739        3.4957        .10563E-03   -1.5253    
   4  norm          15.175        27.476        .10281E-03   -1.4929    
   5  norm          .10000E-03    2.8742        .11699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.4206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4509.6        895.76        .40193E-04   -.98233E-01
   9  Prefactor     3.7207        71.674        .20890E-03   -1.5322    
  10  Prefactor     1710.9        1977.5        .53115E-04   -.71792    
  11  norm          .10001E-03    7.5317        .19903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.4896        .12885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.8312        .29895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     223.57        182.05        .13530E-03   -1.2706    
  16  Prefactor     .10000E-03    4.7262        .15003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    44.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.046        24.576        .77030E-04   -1.4667    
  19  Prefactor     .10000E-03    13.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.0253        .69208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.757        .33733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.857        35.452        .97539E-04   -1.4887    
  24  Prefactor     .10000E-03    1.7168        .90240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.8379        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    30.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .23758        17.827        .20672E-02   -1.5610    
  28  Prefactor     .10000E-03    87.719        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    248.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .42216        .22463        .32545E-03   -1.1617    
  31  Prefactor     1.4253        .25507        .22245E-03   -.79654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54216e-08
Minuit parameter uncertainties:
  1  1.07941e-05
  2  3.60363e-06
  3  3.49587
  4  27.4985
  5  5.90146e-06
  6  5.14033e-06
  7  2.4455e-07
  8  900.671
  9  32.7054
  10  2081.94
  11  0.00055492
  12  5.99013e-05
  13  1.57445e-05
  14  0.00012529
  15  182.518
  16  1.1194e-05
  17  9.64133e-05
  18  24.5855
  19  0.000108261
  20  2.86455e-05
  21  2.31862e-06
  22  0.000155332
  23  35.4962
  24  1.0552e-06
  25  2.79273e-05
  26  5.367e-07
  27  4.11643
  28  0.000250967
  29  2.01407e-05
  30  0.22511
  31  0.255292
Done.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  2.236e+02  1.825e+02  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  1.987e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.425e+00  2.553e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  4.222e-01  2.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.36
Ra Dec: 193.467 62.705
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 9.19e-08
Energy Flux (Fixed Index): 8.04e-05 +/- 6.57e-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) = 4991.87880524
delta logL = 1.50406614889

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4991.86124801
delta logL = 1.52162337627

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.913       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3207       1.0000          .0000       10.000    
     3 'Normalizat'    .29905       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5145       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4991.861     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      304 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.900        325.97        .66874E-04   -.10079E-02
   2  Index         3.3209        2.4545        .24249E-02   -.59168E-03
   3  Normalizat    .29906        .27052        .38190E-03   -.43403E-04
   4  Prefactor     1.5145        .29375        .21606E-03   -.40113E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.8996
  Index      = 3.32086
  Normalizat = 0.299063
  Prefactor  = 1.51453
 **********
 **   18 **HESSE 
 **********

 FCN=   4991.861     FROM HESSE     STATUS=OK            23 CALLS      327 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.900        66.218        .13375E-04   -1.4509    
   2  Index         3.3209        .78207        .96995E-04   -.34248    
   3  Normalizat    .29906        .21844        .15276E-04   -1.2289    
   4  Prefactor     1.5145        .25564        .43212E-04   -.77134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42877e-09
Minuit parameter uncertainties:
  1  66.3542
  2  0.785705
  3  0.219061
  4  0.255857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974546': 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) = 4991.86124794
delta logL = 1.52162344469

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  3.590e+01  6.635e+01  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  3.321e+00  7.857e-01  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.515e+00  2.559e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  2.991e-01  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.73
Ra Dec: 193.467 62.705
Photon Index (Free Index): 3.32 +/- 0.79
Photon Flux (Free Index): 4.99e-07 +/- 2.80e-07
Energy Flux (Free Index): 8.75e-05 +/- 4.06e-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/974546/cmap_HighResolution_588729601_588988801_4FGL_J1253.8+6242_daily_bin1348.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='8.75e-05', photon_flux_error='9.19e-08', dlogl='1.52e+00', energy_flux='8.04e-05', photon_flux2='4.99e-07', job_status='DONE', time_completed='2021-09-06 08:37:05.804489', photon_index_error2='0.79', photon_index2='3.32', ts='6.36', fit_tolerance='1e-08', GAL='1.43', photon_index_error='0.00', energy_flux_error2='4.06e-05', EG='0.42', time_epoch_completed='1630942625.8', return_code='0', job_id='974546', GAL2='1.51', EG2='0.30', return_code2='0', energy_flux_error='6.57e-05', photon_flux_error2='2.80e-07', ts2='9.73', photon_index='1.99' WHERE bin_id='1348' AND source_name='4FGL J1253.8+6242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:37:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 974546: <4FGL_J1253.8+6242_daily_bin1348> in cluster <slac> Done

Job <4FGL_J1253.8+6242_daily_bin1348> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 08:21:07 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:21:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 08:21:09 2021
Terminated at Mon Sep  6 08:37:06 2021
Results reported at Mon Sep  6 08:37:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.8+6242_daily_bin1348 193.467 62.7052 588729601 588988801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1253.8+6242 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   861.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            959 sec.

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

