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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin893
RA = 193.307, Dec = 53.0173
tmin = 470793601, tmax = 471052801
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='958543', job_status='RUN', time_executed='2021-09-06 07:37:54.257837', time_epoch_executed='1630939074.26' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='893'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958543

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958543/ft1_4FGL_J1253.2+5301_daily_bin893.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958543/ft2_4FGL_J1253.2+5301_daily_bin893.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958543/ft1_4FGL_J1253.2+5301_daily_bin893.fits outfile=/scratch/kocevski/958543/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin893.fits ra=193.307 dec=53.0173 rad=12.0 tmin=470793601.0 tmax=471052801.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.45
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/958543/ft2_4FGL_J1253.2+5301_daily_bin893.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/958543/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin893.fits evtable="EVENTS" outfile="/scratch/kocevski/958543/ft1_filtered_4FGL_J1253.2+5301_daily_bin893.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 1.31
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/958543/ft1_filtered_4FGL_J1253.2+5301_daily_bin893.fits" evtable="EVENTS" scfile=/scratch/kocevski/958543/ft2_4FGL_J1253.2+5301_daily_bin893.fits sctable="SC_DATA" outfile=/scratch/kocevski/958543/ltcube_470793601_471052801_4FGL_J1253.2+5301_daily_bin893.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/958543/ft2_4FGL_J1253.2+5301_daily_bin893.fits
.....................!
real 12.87
user 11.42
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958543/ft1_filtered_4FGL_J1253.2+5301_daily_bin893.fits evtable="EVENTS" scfile=/scratch/kocevski/958543/ft2_4FGL_J1253.2+5301_daily_bin893.fits sctable="SC_DATA" expcube=/scratch/kocevski/958543/ltcube_470793601_471052801_4FGL_J1253.2+5301_daily_bin893.fits outfile=/scratch/kocevski/958543/expmap_470793601_471052801_4FGL_J1253.2+5301_daily_bin893.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/958543/ltcube_470793601_471052801_4FGL_J1253.2+5301_daily_bin893.fits
.....................!
real 194.34
user 185.81
sys 5.79

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/958543/ft1_filtered_4FGL_J1253.2+5301_daily_bin893.fits scfile=/scratch/kocevski/958543/ft2_4FGL_J1253.2+5301_daily_bin893.fits outfile=/scratch/kocevski/958543/cmap_470793601_471052801_4FGL_J1253.2+5301_daily_bin893.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 0.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/958543/ft1_filtered_4FGL_J1253.2+5301_daily_bin893.fits scfile=/scratch/kocevski/958543/ft2_4FGL_J1253.2+5301_daily_bin893.fits outfile=/scratch/kocevski/958543/cmap_HighResolution_470793601_471052801_4FGL_J1253.2+5301_daily_bin893.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.55
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/958543/ft1_filtered_4FGL_J1253.2+5301_daily_bin893.fits', '/scratch/kocevski/958543/ft2_4FGL_J1253.2+5301_daily_bin893.fits', expMap='/scratch/kocevski/958543/expmap_470793601_471052801_4FGL_J1253.2+5301_daily_bin893.fits', expCube='/scratch/kocevski/958543/ltcube_470793601_471052801_4FGL_J1253.2+5301_daily_bin893.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/958543/Model_4FGL_J1253.2+5301_daily_bin893.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/958543/ft1_filtered_4FGL_J1253.2+5301_daily_bin893.fits
Spacecraft file(s): /scratch/kocevski/958543/ft2_4FGL_J1253.2+5301_daily_bin893.fits
Exposure map: /scratch/kocevski/958543/expmap_470793601_471052801_4FGL_J1253.2+5301_daily_bin893.fits
Exposure cube: /scratch/kocevski/958543/ltcube_470793601_471052801_4FGL_J1253.2+5301_daily_bin893.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/958543/Model_4FGL_J1253.2+5301_daily_bin893.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) = 6654.5542318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.8512       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.367       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9111       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.512       1.0000         .10000E-03   10000.    
     6 'norm      '    .10575E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8213       1.0000         .10000E-03   10000.    
     8 'norm      '    4.5244       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.5162       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.6105       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    46.839       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    34.418       1.0000         .10000E-03   10000.    
    18 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.552       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10810E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.2080       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0015       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0685       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=   6654.459     FROM MIGRAD    STATUS=CONVERGED    788 CALLS     3376 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4877       -.24769E-06** at limit **
   2  norm          1.8532        6.1124       -.15439E-05   -.90662E-03
   3  Prefactor     18.364        14.944        .66747E-07   -.17969E-04
   4  Prefactor     5.9127        11.578       -.54782E-06   -.67396E-04
   5  Prefactor     14.522        16.852        .30319E-05   -.89029E-04
   6  norm          .10000E-03    1.4273       -.43422E-07** at limit **
   7  Prefactor     1.4526        562.50       -.15752E-05   -.16647E-04
   8  norm          4.5270        6.2705       -.23058E-05   -.50741E-03
   9  Prefactor     .10000E-03    27.393        .11129E-04** at limit **
  10  Prefactor     .10000E-03    5.6433       -.32307E-06** at limit **
  11  norm          4.5155        2.3341       -.28663E-07   -.23740E-03
  12  Prefactor     .10000E-03    41.435        .10752E-04** at limit **
  13  norm          2.6105        1.7485       -.57412E-07    .27059E-05
  14  Prefactor     .10000E-03    10.017       -.72553E-07** at limit **
  15  Prefactor     46.841        42.456       -.80225E-05    .13349E-03
  16  Prefactor     .10000E-03    17.472        .55845E-05** at limit **
  17  norm          34.418        17.385        .27018E-06    .11565E-04
  18  norm          .10000E-03    1.6923        .54306E-08** at limit **
  19  Prefactor     23.546        27.640       -.22363E-05    .43466E-04
  20  Prefactor     .10000E-03    3.3937        .84516E-07** at limit **
  21  Prefactor     .10000E-03    16.252       -.17148E-05** at limit **
  22  norm          .10000E-03    2.0457        .13766E-06** at limit **
  23  Prefactor     .10000E-03    31.038       -.30554E-08** at limit **
  24  Prefactor     .10000E-03    39.077       -.10278E-04** at limit **
  25  norm          2.2081        1.3376        .13604E-07    .88878E-04
  26  norm          .10000E-03    33.044       -.80856E-05** at limit **
  27  norm          .10000E-03    2.0952       -.27831E-06** at limit **
  28  Prefactor     .10000E-03    20.984       -.67227E-05** at limit **
  29  Normalizat    1.0014        .15426        .11538E-05   -.19539E-03
  30  Prefactor     1.0686        .18961        .54198E-06   -.78764E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.85316
  Prefactor  = 18.3642
  Prefactor  = 5.91271
  Prefactor  = 14.5216
  norm       = 0.0001
  Prefactor  = 1.4526
  norm       = 4.52703
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.5155
  Prefactor  = 0.000100003
  norm       = 2.61045
  Prefactor  = 0.0001
  Prefactor  = 46.8406
  Prefactor  = 0.000100001
  norm       = 34.4181
  norm       = 0.0001
  Prefactor  = 23.5464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.20812
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.00137
  Prefactor  = 1.06862
 **********
 **   18 **HESSE 
 **********

 FCN=   6654.459     FROM HESSE     STATUS=OK           580 CALLS     3956 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5414        .19403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8532        5.9869        .28364E-03   -1.5436    
   3  Prefactor     18.364        14.925        .93456E-04   -1.4851    
   4  Prefactor     5.9127        10.987        .16517E-03   -1.5222    
   5  Prefactor     14.522        16.741        .10514E-03   -1.4946    
   6  norm          .10000E-03    2.9379        .18649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.4526        552.35        .30941E-03   -1.5467    
   8  norm          4.5270        6.3697        .18927E-03   -1.5282    
   9  Prefactor     .10000E-03    27.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.7264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.5155        2.3294        .86318E-04   -1.5283    
  12  Prefactor     .10000E-03    42.086        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.6105        1.7526        .85617E-04   -1.5385    
  14  Prefactor     .10000E-03    10.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     46.841        42.234        .29293E-03   -1.4338    
  16  Prefactor     .10000E-03    17.681        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          34.418        17.381        .68307E-04   -1.4534    
  18  norm          .10000E-03    1.7076        .10357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.546        27.622        .82538E-04   -1.4737    
  20  Prefactor     .10000E-03    3.3957        .14676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.1325        .22773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    31.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    39.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.2081        1.3384        .71425E-04   -1.5411    
  26  norm          .10000E-03    32.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    4.2775        .22841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    20.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0014        .18390        .22199E-03   -.92984    
  30  Prefactor     1.0686        .22827        .27371E-03   -.90476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1242e-09
Minuit parameter uncertainties:
  1  1.98487e-07
  2  5.98886
  3  14.9284
  4  10.9905
  5  16.7469
  6  4.21009e-05
  7  57.1887
  8  6.3707
  9  0.000229158
  10  1.76379e-05
  11  2.32941
  12  0.00071762
  13  1.7526
  14  3.01887e-06
  15  42.261
  16  0.000306806
  17  17.3831
  18  2.829e-06
  19  27.6373
  20  2.91014e-06
  21  7.9867e-05
  22  5.78569e-06
  23  3.40589e-05
  24  0.000471072
  25  1.33838
  26  0.00032545
  27  3.92357e-07
  28  0.000210953
  29  0.184019
  30  0.228483
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.610e+00  1.753e+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:  1.069e+00  2.285e-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:  1.001e+00  1.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.01
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 2.53e-08 +/- 1.70e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.23e-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) = 6654.40312055
delta logL = 0.0563402428643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6654.39378534
delta logL = 0.0656754495158

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3436       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6229       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0110       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0644       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=   6654.394     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3423        2.5503        .66950E-02   -.20640E-03
   2  alpha         1.6225        .83296        .44926       -.32668E-04
   3  Normalizat    1.0108        .15283        .45379E-01   -.11949E-04
   4  Prefactor     1.0646        .19031        .62004E-01    .12915E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.34229
  alpha      = 1.62251
  Normalizat = 1.0108
  Prefactor  = 1.0646
 **********
 **   18 **HESSE 
 **********

 FCN=   6654.394     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3423        1.9300        .85703E-04   -1.5402    
   2  alpha         1.6225        .78751        .18213E-01   -.35863    
   3  Normalizat    1.0108        .17996        .22111E-03   -.92670    
   4  Prefactor     1.0646        .22818        .27423E-03   -.90606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90555e-12
Minuit parameter uncertainties:
  1  1.93
  2  0.803181
  3  0.180064
  4  0.22839
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958543': 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) = 6654.39378372
delta logL = 0.0656770740106

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.342e+00  1.930e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.623e+00  8.032e-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:  1.065e+00  2.284e-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:  1.011e+00  1.801e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.14
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.62 +/- 0.80
Photon Flux (Free Index): 1.61e-08 +/- 2.18e-08
Energy Flux (Free Index): 2.33e-05 +/- 2.58e-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/958543/cmap_HighResolution_470793601_471052801_4FGL_J1253.2+5301_daily_bin893.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.53e-08', energy_flux2='2.33e-05', photon_flux_error='1.70e-08', dlogl='6.57e-02', energy_flux='1.83e-05', photon_flux2='1.61e-08', job_status='DONE', time_completed='2021-09-06 07:51:37.065475', photon_index_error2='0.80', photon_index2='1.62', ts='11.01', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='2.58e-05', EG='1.00', time_epoch_completed='1630939897.07', return_code='0', job_id='958543', GAL2='1.06', EG2='1.01', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='2.18e-08', ts2='11.14', photon_index='1.93' WHERE bin_id='893' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:51:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 958543: <4FGL_J1253.2+5301_daily_bin893> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin893> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 07:36:05 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:36:05 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:36:05 2021
Terminated at Mon Sep  6 07:51:37 2021
Results reported at Mon Sep  6 07:51:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin893 193.307 53.0173 470793601 471052801 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 :                                   796.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            932 sec.

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

