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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin780
RA = 193.307, Dec = 53.0173
tmin = 441504001, tmax = 441763201
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='958416', job_status='RUN', time_executed='2021-09-06 07:37:29.505995', time_epoch_executed='1630939049.51' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958416

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958416/ft1_4FGL_J1253.2+5301_daily_bin780.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958416/ft2_4FGL_J1253.2+5301_daily_bin780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958416/ft1_4FGL_J1253.2+5301_daily_bin780.fits outfile=/scratch/kocevski/958416/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin780.fits ra=193.307 dec=53.0173 rad=12.0 tmin=441504001.0 tmax=441763201.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 2.97
user 2.39
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/958416/ft2_4FGL_J1253.2+5301_daily_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/958416/ft2_4FGL_J1253.2+5301_daily_bin780.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/958416/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin780.fits evtable="EVENTS" outfile="/scratch/kocevski/958416/ft1_filtered_4FGL_J1253.2+5301_daily_bin780.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.25
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/958416/ft1_filtered_4FGL_J1253.2+5301_daily_bin780.fits" evtable="EVENTS" scfile=/scratch/kocevski/958416/ft2_4FGL_J1253.2+5301_daily_bin780.fits sctable="SC_DATA" outfile=/scratch/kocevski/958416/ltcube_441504001_441763201_4FGL_J1253.2+5301_daily_bin780.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/958416/ft2_4FGL_J1253.2+5301_daily_bin780.fits
.....................!
real 9.17
user 8.50
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958416/ft1_filtered_4FGL_J1253.2+5301_daily_bin780.fits evtable="EVENTS" scfile=/scratch/kocevski/958416/ft2_4FGL_J1253.2+5301_daily_bin780.fits sctable="SC_DATA" expcube=/scratch/kocevski/958416/ltcube_441504001_441763201_4FGL_J1253.2+5301_daily_bin780.fits outfile=/scratch/kocevski/958416/expmap_441504001_441763201_4FGL_J1253.2+5301_daily_bin780.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/958416/ltcube_441504001_441763201_4FGL_J1253.2+5301_daily_bin780.fits
.....................!
real 142.82
user 138.15
sys 3.73

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

Setting source of interest to:
4FGL J1253.2+5301 @ 193.307 53.0173

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/958416/ft1_filtered_4FGL_J1253.2+5301_daily_bin780.fits scfile=/scratch/kocevski/958416/ft2_4FGL_J1253.2+5301_daily_bin780.fits outfile=/scratch/kocevski/958416/cmap_441504001_441763201_4FGL_J1253.2+5301_daily_bin780.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.307 yref=53.0173 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 1.25
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/958416/ft1_filtered_4FGL_J1253.2+5301_daily_bin780.fits scfile=/scratch/kocevski/958416/ft2_4FGL_J1253.2+5301_daily_bin780.fits outfile=/scratch/kocevski/958416/cmap_HighResolution_441504001_441763201_4FGL_J1253.2+5301_daily_bin780.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.307 yref=53.0173 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.74
user 0.31
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/958416/ft1_filtered_4FGL_J1253.2+5301_daily_bin780.fits evtable="EVENTS" scfile=/scratch/kocevski/958416/ft2_4FGL_J1253.2+5301_daily_bin780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/958416/Model_4FGL_J1253.2+5301_daily_bin780.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/958416/ft1_filtered_4FGL_J1253.2+5301_daily_bin780.fits.....................!
real 45.90
user 41.27
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/958416/ft1_filtered_4FGL_J1253.2+5301_daily_bin780.fits', '/scratch/kocevski/958416/ft2_4FGL_J1253.2+5301_daily_bin780.fits', expMap='/scratch/kocevski/958416/expmap_441504001_441763201_4FGL_J1253.2+5301_daily_bin780.fits', expCube='/scratch/kocevski/958416/ltcube_441504001_441763201_4FGL_J1253.2+5301_daily_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/958416/Model_4FGL_J1253.2+5301_daily_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1253.2+5301'

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  3.003e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.931e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  8.810e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/958416/ft1_filtered_4FGL_J1253.2+5301_daily_bin780.fits
Spacecraft file(s): /scratch/kocevski/958416/ft2_4FGL_J1253.2+5301_daily_bin780.fits
Exposure map: /scratch/kocevski/958416/expmap_441504001_441763201_4FGL_J1253.2+5301_daily_bin780.fits
Exposure cube: /scratch/kocevski/958416/ltcube_441504001_441763201_4FGL_J1253.2+5301_daily_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/958416/Model_4FGL_J1253.2+5301_daily_bin780.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) = 6471.21630932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .95486       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .67645E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4063       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.5798       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9459       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.2766       1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.779       1.0000         .10000E-03   10000.    
    13 'norm      '    3.7562       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.728       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    20.880       1.0000         .10000E-03   10000.    
    23 'Prefactor '    41.580       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.323       1.0000         .10000E-03   10000.    
    25 'norm      '    4.0284       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.6106       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .95135       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .88886       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6471.203     FROM MIGRAD    STATUS=CONVERGED    792 CALLS     3932 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4066        .21987E-08** at limit **
   2  norm          .95415        5.9124        .28785E-05   -.16234E-03
   3  Prefactor     .10004E-03    15.398        .74128E-06** at limit **
   4  Prefactor     8.4072        6.9689       -.72209E-06   -.23365E-03
   5  Prefactor     .10000E-03    9.2070       -.52696E-07** at limit **
   6  norm          1.5795        2.0306        .13392E-06   -.17384E-03
   7  Prefactor     .10000E-03    24.786        .24281E-05** at limit **
   8  norm          2.9448        5.7539       -.19151E-06   -.19728E-03
   9  Prefactor     .10000E-03    13.741       -.29854E-06** at limit **
  10  Prefactor     .10000E-03    3.5262        .33263E-07** at limit **
  11  norm          5.2759        2.3271        .15421E-07   -.80785E-04
  12  Prefactor     32.774        20.499        .11298E-06   -.87196E-06
  13  norm          3.7556        2.4012        .29499E-07   -.33408E-04
  14  Prefactor     .10000E-03    12.725       -.36039E-06** at limit **
  15  Prefactor     .10000E-03    28.502       -.14194E-05** at limit **
  16  Prefactor     .10000E-03    14.658        .62140E-06** at limit **
  17  norm          .10000E-03    5.2840        .16753E-07** at limit **
  18  norm          .10000E-03    1.9178       -.15960E-08** at limit **
  19  Prefactor     16.730        27.929       -.45503E-06    .17363E-05
  20  Prefactor     .10000E-03    12.107        .27122E-06** at limit **
  21  Prefactor     .10000E-03    20.392       -.12183E-05** at limit **
  22  norm          20.878        5.4430        .65521E-07    .58590E-04
  23  Prefactor     41.555        45.544        .19350E-05    .49143E-04
  24  Prefactor     16.169        40.179       -.14457E-05   -.23761E-04
  25  norm          4.0283        1.6488        .36898E-08    .19459E-04
  26  norm          .10000E-03    28.083       -.21074E-06** at limit **
  27  norm          5.6122        3.8530        .47522E-07   -.26282E-04
  28  Prefactor     .10000E-03    16.030       -.16158E-06** at limit **
  29  Normalizat    .95138        .15922       -.16598E-06   -.19399E-03
  30  Prefactor     .88900        .18493       -.45722E-06   -.12113E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.954151
  Prefactor  = 0.00010004
  Prefactor  = 8.40717
  Prefactor  = 0.0001
  norm       = 1.57951
  Prefactor  = 0.0001
  norm       = 2.94481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.27594
  Prefactor  = 32.7741
  norm       = 3.75556
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 16.7301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.8784
  Prefactor  = 41.5547
  Prefactor  = 16.169
  norm       = 4.02828
  norm       = 0.0001
  norm       = 5.61216
  Prefactor  = 0.0001
  Normalizat = 0.951382
  Prefactor  = 0.889003
 **********
 **   18 **HESSE 
 **********

 FCN=   6471.203     FROM HESSE     STATUS=OK           586 CALLS     4518 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4162        .92942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .95415        6.2888        .35140E-03   -1.5513    
   3  Prefactor     .10004E-03    120.37        .59199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.4072        6.9687        .13827E-03   -1.5128    
   5  Prefactor     .10000E-03    9.2174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.5795        2.0145        .12191E-03   -1.5457    
   7  Prefactor     .10000E-03    25.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9448        5.8752        .23663E-03   -1.5365    
   9  Prefactor     .10000E-03    13.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.5645        .14739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.2759        2.3247        .78716E-04   -1.5249    
  12  Prefactor     32.774        20.521        .69989E-04   -1.4562    
  13  norm          3.7556        2.4003        .95648E-04   -1.5320    
  14  Prefactor     .10000E-03    12.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.178        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.2939        .18060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.9641        .21732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.730        27.858        .97926E-04   -1.4890    
  20  Prefactor     .10000E-03    12.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          20.878        5.4412        .87654E-04   -1.4794    
  23  Prefactor     41.555        46.159        .62166E-04   -1.4418    
  24  Prefactor     16.169        40.529        .99134E-04   -1.4904    
  25  norm          4.0283        1.6491        .64217E-04   -1.5307    
  26  norm          .10000E-03    28.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.6122        3.8478        .12464E-03   -1.5234    
  28  Prefactor     .10000E-03    16.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .95138        .18458        .22015E-03   -.94677    
  30  Prefactor     .88900        .21558        .28199E-03   -.96526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64332e-10
Minuit parameter uncertainties:
  1  7.46904e-07
  2  4.89968
  3  0.0043901
  4  6.96935
  5  7.36566e-06
  6  2.01454
  7  0.00017989
  8  5.87639
  9  4.31215e-05
  10  4.11045e-08
  11  2.32475
  12  20.5251
  13  2.40035
  14  1.94029e-05
  15  0.000108063
  16  1.91016e-05
  17  1.31177e-06
  18  2.70895e-06
  19  27.8793
  20  9.98326e-06
  21  4.11853e-05
  22  5.44133
  23  46.1989
  24  40.5979
  25  1.6491
  26  1.69875e-05
  27  3.84798
  28  1.07576e-05
  29  0.1847
  30  0.215787
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  3.756e+00  2.400e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.931e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  8.810e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  8.890e-01  2.158e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  9.514e-01  1.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.03
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 3.65e-08 +/- 2.33e-08
Energy Flux (Fixed Index): 2.64e-05 +/- 1.68e-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) = 6469.88692359
delta logL = 1.31593952386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6469.88092681
delta logL = 1.32193630437

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5311       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8280       1.0000          .0000       5.0000    
     3 'Normalizat'    .86894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94352       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6469.881     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      231 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5311        15.874        .64184E-03    .14953E-02
   2  alpha         2.8280        3.7503        .18633        .87057E-04
   3  Normalizat    .86888        .84488E-01    .44503E-01    .14534E-04
   4  Prefactor     .94355        .79368E-01    .45557E-01    .12999E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.53112
  alpha      = 2.82802
  Normalizat = 0.868882
  Prefactor  = 0.943553
 **********
 **   18 **HESSE 
 **********

 FCN=   6469.881     FROM HESSE     STATUS=OK            31 CALLS      262 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5311        2.1099        .25674E-04   -1.5390    
   2  alpha         2.8280        .55158        .74332E-02    .13159    
   3  Normalizat    .86888        .18005        .22847E-03   -.97562    
   4  Prefactor     .94355        .21774        .27403E-03   -.94635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30024e-09
Minuit parameter uncertainties:
  1  2.10991
  2  0.55624
  3  0.180175
  4  0.217946
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958416': 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) = 6469.88092673
delta logL = 1.32193638445

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.531e+00  2.110e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.828e+00  5.562e-01  0.000e+00  5.000e+00 ( 1.000e+00)
335         beta:  8.810e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  9.436e-01  2.179e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  8.689e-01  1.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.78
Ra Dec: 193.307 53.017
Photon Index (Free Index): 2.83 +/- 0.56
Photon Flux (Free Index): 1.05e-07 +/- 5.43e-08
Energy Flux (Free Index): 2.54e-05 +/- 1.08e-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/958416/cmap_HighResolution_441504001_441763201_4FGL_J1253.2+5301_daily_bin780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.65e-08', energy_flux2='2.54e-05', photon_flux_error='2.33e-08', dlogl='1.32e+00', energy_flux='2.64e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-06 07:48:12.532270', photon_index_error2='0.56', photon_index2='2.83', ts='12.03', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.08e-05', EG='0.95', time_epoch_completed='1630939692.53', return_code='0', job_id='958416', GAL2='0.94', EG2='0.87', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='5.43e-08', ts2='14.78', photon_index='1.93' WHERE bin_id='780' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:48:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 958416: <4FGL_J1253.2+5301_daily_bin780> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin780> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 07:35:55 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:35:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 07:35:56 2021
Terminated at Mon Sep  6 07:48:13 2021
Results reported at Mon Sep  6 07:48:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin780 193.307 53.0173 441504001 441763201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1253.2+5301 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   627.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             293.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            738 sec.

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

