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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin970
RA = 193.307, Dec = 53.0173
tmin = 490752001, tmax = 491011201
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='958682', job_status='RUN', time_executed='2021-09-06 07:36:42.790653', time_epoch_executed='1630939002.79' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='970'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958682

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958682/ft1_4FGL_J1253.2+5301_daily_bin970.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958682/ft2_4FGL_J1253.2+5301_daily_bin970.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958682/ft1_4FGL_J1253.2+5301_daily_bin970.fits outfile=/scratch/kocevski/958682/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin970.fits ra=193.307 dec=53.0173 rad=12.0 tmin=490752001.0 tmax=491011201.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 6.56
user 5.54
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/958682/ft2_4FGL_J1253.2+5301_daily_bin970.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/958682/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin970.fits evtable="EVENTS" outfile="/scratch/kocevski/958682/ft1_filtered_4FGL_J1253.2+5301_daily_bin970.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.49
user 0.36
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958682/ft1_filtered_4FGL_J1253.2+5301_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/958682/ft2_4FGL_J1253.2+5301_daily_bin970.fits sctable="SC_DATA" expcube=/scratch/kocevski/958682/ltcube_490752001_491011201_4FGL_J1253.2+5301_daily_bin970.fits outfile=/scratch/kocevski/958682/expmap_490752001_491011201_4FGL_J1253.2+5301_daily_bin970.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/958682/ltcube_490752001_491011201_4FGL_J1253.2+5301_daily_bin970.fits
.....................!
real 191.99
user 185.27
sys 5.09

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/958682/ft1_filtered_4FGL_J1253.2+5301_daily_bin970.fits scfile=/scratch/kocevski/958682/ft2_4FGL_J1253.2+5301_daily_bin970.fits outfile=/scratch/kocevski/958682/cmap_490752001_491011201_4FGL_J1253.2+5301_daily_bin970.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/958682/ft1_filtered_4FGL_J1253.2+5301_daily_bin970.fits scfile=/scratch/kocevski/958682/ft2_4FGL_J1253.2+5301_daily_bin970.fits outfile=/scratch/kocevski/958682/cmap_HighResolution_490752001_491011201_4FGL_J1253.2+5301_daily_bin970.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4375       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.0944       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    61.539       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0657       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0342       1.0000         .10000E-03   10000.    
    11 'norm      '    3.1668       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1822       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .26668E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.5324       1.0000         .10000E-03   10000.    
    17 'norm      '    18.968       1.0000         .10000E-03   10000.    
    18 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    44.719       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .36323E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    16.052       1.0000         .10000E-03   10000.    
    27 'norm      '    7.1975       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2031       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .65360       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3633.351     FROM MIGRAD    STATUS=CONVERGED   1366 CALLS     4502 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4395        5.0157        .11560E-02   -.69589E-04
   2  norm          .10000E-03    3.0861        .10282E-02** at limit **
   3  Prefactor     .10000E-03    27.672        .18142E-02** at limit **
   4  Prefactor     8.0945        7.2311        .14092E-03    .66031E-04
   5  Prefactor     .10000E-03    22.015        .18142E-02** at limit **
   6  norm          .10000E-03    4.3138        .17182E-02** at limit **
   7  Prefactor     61.551        61.242        .51149E-04    .35029E-04
   8  norm          1.0659        3.8593        .22347E-03   -.43929E-04
   9  Prefactor     .10000E-03    13.565        .18142E-02** at limit **
  10  Prefactor     5.0347        6.7349        .17044E-03   -.98717E-05
  11  norm          3.1669        2.1995        .71025E-04   -.94439E-05
  12  Prefactor     .10000E-03    11.677        .18142E-02** at limit **
  13  norm          1.1827        2.9560        .15753E-03    .57376E-05
  14  Prefactor     .10000E-03    25.081        .18142E-02** at limit **
  15  Prefactor     .10002E-03    92.286        .15990    ** at limit **
  16  Prefactor     7.5337        9.7871        .14612E-03   -.19061E-05
  17  norm          18.963        18.986        .91962E-04   -.79539E-04
  18  norm          .10000E-03    10.874        .25176E-02** at limit **
  19  Prefactor     44.712        59.564        .59954E-04   -.12024E-03
  20  Prefactor     .10000E-03    28.811        .18142E-02** at limit **
  21  Prefactor     .10001E-03    164.25        .21307E-02** at limit **
  22  norm          .10000E-03    1.8765        .80538E-03** at limit **
  23  Prefactor     .10000E-03    47.284        .18142E-02** at limit **
  24  Prefactor     .10000E-03    54.475        .18142E-02** at limit **
  25  norm          .10000E-03    1.2149        .64571E-03** at limit **
  26  norm          16.073        84.987        .99966E-04    .51745E-05
  27  norm          7.1992        5.8588        .12616E-03    .43210E-04
  28  Prefactor     .10000E-03    79.142        .18142E-02** at limit **
  29  Normalizat    1.2028        .25273        .19717E-03   -.56499E-03
  30  Prefactor     .65376        .28809        .31369E-03   -.12485E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.43947
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.09448
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 61.5509
  norm       = 1.06588
  Prefactor  = 0.0001
  Prefactor  = 5.03468
  norm       = 3.16691
  Prefactor  = 0.0001
  norm       = 1.18266
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 7.53366
  norm       = 18.9631
  norm       = 0.0001
  Prefactor  = 44.7122
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.0727
  norm       = 7.19916
  Prefactor  = 0.0001
  Normalizat = 1.20282
  Prefactor  = 0.653762
 **********
 **   18 **HESSE 
 **********

 FCN=   3633.351     FROM HESSE     STATUS=OK           568 CALLS     5070 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4395        5.0062        .46240E-04   -1.5468    
   2  norm          .10000E-03    3.0865        .20565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.676        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.0945        7.2309        .56369E-05   -1.5139    
   5  Prefactor     .10000E-03    22.018        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.3291        .34364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     61.551        61.239        .10230E-04   -1.4137    
   8  norm          1.0659        3.8592        .89388E-05   -1.5501    
   9  Prefactor     .10000E-03    13.567        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0347        6.7345        .68178E-05   -1.5259    
  11  norm          3.1669        2.1995        .28410E-05   -1.5352    
  12  Prefactor     .10000E-03    11.678        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1827        2.9556        .63010E-05   -1.5490    
  14  Prefactor     .10000E-03    25.083        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    94.417        .15742       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.5337        9.7866        .58450E-05   -1.5159    
  17  norm          18.963        18.986        .18392E-04   -1.4837    
  18  norm          .10000E-03    10.937        .50352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     44.712        59.528        .11991E-04   -1.4370    
  20  Prefactor     .10000E-03    28.820        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    164.28        .42614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.8766        .16108E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    47.286        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    54.484        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.2150        .12914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          16.073        85.050        .39986E-05   -1.4906    
  27  norm          7.1992        5.8584        .50463E-05   -1.5171    
  28  Prefactor     .10000E-03    79.144        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2028        .25270        .39434E-04   -.86516    
  30  Prefactor     .65376        .28831        .12548E-04   -1.0537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09509e-09
Minuit parameter uncertainties:
  1  5.00761
  2  2.07907e-05
  3  1.7453e-05
  4  7.23166
  5  3.05028e-05
  6  2.35662e-05
  7  61.3016
  8  3.86011
  9  3.904e-06
  10  6.73555
  11  2.19958
  12  2.3189e-05
  13  2.95592
  14  2.34654e-05
  15  0.0024082
  16  9.7887
  17  18.9923
  18  7.62092e-05
  19  59.6076
  20  7.58901e-05
  21  0.00288388
  22  7.14933e-06
  23  0.000184879
  24  0.00031302
  25  1.0588e-05
  26  74.1105
  27  5.85885
  28  8.59027e-05
  29  0.252955
  30  0.288972
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.183e+00  2.956e+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:  6.538e-01  2.890e-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.203e+00  2.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 193.307 53.017
Photon Flux Upper Limit: 8.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/958682/likelihoodResults_490752001_491011201_4FGL_J1253.2+5301_daily_bin970.txt

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) = 3632.32921713
delta logL = 1.02188256528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3632.29525685
delta logL = 1.05584283827

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61378       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4022       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1274       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70400       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=   3632.295     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      217 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61261        8.9430        .78326E-02    .73849E-03
   2  alpha         3.4034        4.0913        .22206        .50699E-04
   3  Normalizat    1.1273        .56514E-01    .36982E-01   -.56303E-05
   4  Prefactor     .70402        .67746E-01    .68394E-01    .69344E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.612608
  alpha      = 3.40342
  Normalizat = 1.12728
  Prefactor  = 0.704018
 **********
 **   18 **HESSE 
 **********

 FCN=   3632.295     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .61261        2.8479        .35310E-04   -1.5551    
   2  alpha         3.4034        1.9200        .89493E-02    .36973    
   3  Normalizat    1.1273        .24457        .20224E-03   -.88881    
   4  Prefactor     .70402        .29130        .30265E-03   -1.0337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23779e-11
Minuit parameter uncertainties:
  1  2.64168
  2  2.2561
  3  0.244812
  4  0.291936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958682': 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) = 3632.29525611
delta logL = 1.05584357767

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  6.126e-01  2.642e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  3.403e+00  2.256e+00  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:  7.040e-01  2.919e-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.127e+00  2.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.36
Ra Dec: 193.307 53.017
Photon Index (Free Index): 3.40 +/- 2.26
Photon Flux (Free Index): 7.67e-08 +/- 6.32e-08
Energy Flux (Free Index): 1.41e-05 +/- 1.32e-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/958682/cmap_HighResolution_490752001_491011201_4FGL_J1253.2+5301_daily_bin970.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.14e-05', comment='SUCCESS', energy_flux2='1.41e-05', dlogl='1.06e+00', photon_flux2='7.67e-08', job_status='DONE', time_completed='2021-09-06 07:49:18.155496', photon_index_error2='2.26', photon_index2='3.40', ts='0.19', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='8.49e-08', energy_flux_error2='1.32e-05', EG='1.20', time_epoch_completed='1630939758.16', return_code='0', job_id='958682', GAL2='0.70', EG2='1.13', return_code2='0', photon_flux_error2='6.32e-08', ts2='2.36', photon_index='1.93' WHERE bin_id='970' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:49:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 958682: <4FGL_J1253.2+5301_daily_bin970> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin970 193.307 53.0173 490752001 491011201 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 :                                   726.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            782 sec.

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

