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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin1585
RA = 193.307, Dec = 53.0173
tmin = 650160001, tmax = 650419201
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='961923', job_status='RUN', time_executed='2021-09-06 07:46:06.447626', time_epoch_executed='1630939566.45' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='1585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/961923

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/961923/ft1_4FGL_J1253.2+5301_daily_bin1585.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/961923/ft2_4FGL_J1253.2+5301_daily_bin1585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/961923/ft1_4FGL_J1253.2+5301_daily_bin1585.fits outfile=/scratch/kocevski/961923/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1585.fits ra=193.307 dec=53.0173 rad=12.0 tmin=650160001.0 tmax=650419201.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.49
user 4.17
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/961923/ft1_filtered_4FGL_J1253.2+5301_daily_bin1585.fits" evtable="EVENTS" scfile=/scratch/kocevski/961923/ft2_4FGL_J1253.2+5301_daily_bin1585.fits sctable="SC_DATA" outfile=/scratch/kocevski/961923/ltcube_650160001_650419201_4FGL_J1253.2+5301_daily_bin1585.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/961923/ft2_4FGL_J1253.2+5301_daily_bin1585.fits
.....................!
real 11.82
user 11.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/961923/ft1_filtered_4FGL_J1253.2+5301_daily_bin1585.fits evtable="EVENTS" scfile=/scratch/kocevski/961923/ft2_4FGL_J1253.2+5301_daily_bin1585.fits sctable="SC_DATA" expcube=/scratch/kocevski/961923/ltcube_650160001_650419201_4FGL_J1253.2+5301_daily_bin1585.fits outfile=/scratch/kocevski/961923/expmap_650160001_650419201_4FGL_J1253.2+5301_daily_bin1585.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/961923/ltcube_650160001_650419201_4FGL_J1253.2+5301_daily_bin1585.fits
.....................!
real 190.50
user 185.12
sys 4.85

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/961923/ft1_filtered_4FGL_J1253.2+5301_daily_bin1585.fits scfile=/scratch/kocevski/961923/ft2_4FGL_J1253.2+5301_daily_bin1585.fits outfile=/scratch/kocevski/961923/cmap_650160001_650419201_4FGL_J1253.2+5301_daily_bin1585.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/961923/ft1_filtered_4FGL_J1253.2+5301_daily_bin1585.fits scfile=/scratch/kocevski/961923/ft2_4FGL_J1253.2+5301_daily_bin1585.fits outfile=/scratch/kocevski/961923/cmap_HighResolution_650160001_650419201_4FGL_J1253.2+5301_daily_bin1585.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5868       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1916       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.1603       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9014       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0423       1.0000         .10000E-03   10000.    
    11 'norm      '    3.2073       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.1088       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1884       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.141       1.0000         .10000E-03   10000.    
    21 'Prefactor '    53.249       1.0000         .10000E-03   10000.    
    22 'norm      '    11.404       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.513       1.0000         .10000E-03   10000.    
    25 'norm      '    1.2376       1.0000         .10000E-03   10000.    
    26 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.3652       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .91421       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0195       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5963.595     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     3869 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5883        8.0729         .0000        .22859E-01
   2  norm          .10000E-03    2.3660         .0000    ** at limit **
   3  Prefactor     1.1595        317.96         .0000        .16033E-02
   4  Prefactor     .10000E-03    5.6643         .0000    ** at limit **
   5  Prefactor     .10000E-03    6.3774         .0000    ** at limit **
   6  norm          4.1604        2.5516         .0000        .29324E-03
   7  Prefactor     .10010E-03    52.500         .0000    ** at limit **
   8  norm          2.9013        4.8146         .0000        .35634E-03
   9  Prefactor     .10017E-03    16.289         .0000    ** at limit **
  10  Prefactor     4.0424        5.6672         .0000        .54262E-03
  11  norm          3.2073        2.2212         .0000        .62159E-04
  12  Prefactor     .10000E-03    4.8009         .0000    ** at limit **
  13  norm          5.1088        2.2942         .0000       -.33679E-04
  14  Prefactor     .10006E-03    13.645         .0000    ** at limit **
  15  Prefactor     .10064E-03    27.300         .0000    ** at limit **
  16  Prefactor     3.1887        6.7532         .0000        .36670E-03
  17  norm          .10000E-03    4.0434         .0000    ** at limit **
  18  norm          .10000E-03    1.6259         .0000    ** at limit **
  19  Prefactor     .10000E-03    14.122         .0000    ** at limit **
  20  Prefactor     16.146        19.859         .0000       -.41906E-03
  21  Prefactor     53.248        34.518         .0000        .92296E-03
  22  norm          11.404        6.2464         .0000        .37538E-03
  23  Prefactor     .10000E-03    33.244         .0000    ** at limit **
  24  Prefactor     20.507        44.947         .0000        .30206E-02
  25  norm          1.2376        1.3165         .0000        .11646E-03
  26  norm          .10041E-03    42.573         .0000    ** at limit **
  27  norm          3.3651        4.2824         .0000       -.16918E-02
  28  Prefactor     .10035E-03    39.912         .0000    ** at limit **
  29  Normalizat    .91413        .16714         .0000        .90395E-04
  30  Prefactor     1.0196        .19552         .0000        .77909E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.58828
  norm       = 0.0001
  Prefactor  = 1.1595
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 4.1604
  Prefactor  = 0.000100099
  norm       = 2.90133
  Prefactor  = 0.000100172
  Prefactor  = 4.04238
  norm       = 3.20732
  Prefactor  = 0.0001
  norm       = 5.10875
  Prefactor  = 0.000100055
  Prefactor  = 0.000100642
  Prefactor  = 3.18871
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 16.1456
  Prefactor  = 53.2483
  norm       = 11.4037
  Prefactor  = 0.000100003
  Prefactor  = 20.5073
  norm       = 1.23759
  norm       = 0.000100413
  norm       = 3.36509
  Prefactor  = 0.000100346
  Normalizat = 0.914126
  Prefactor  = 1.01963
 **********
 **   18 **HESSE 
 **********

 FCN=   5963.595     FROM HESSE     STATUS=OK           584 CALLS     4453 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5883        5.5334        .11530E-02   -1.5456    
   2  norm          .10000E-03    2.4139        .11593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1595        197.09        .41712E-02   -1.5493    
   4  Prefactor     .10000E-03    5.8405        .35878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.3819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.1604        2.5581        .90179E-04   -1.5300    
   7  Prefactor     .10010E-03    52.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9013        4.7960        .21069E-03   -1.5367    
   9  Prefactor     .10017E-03    16.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.0424        5.6476        .20056E-03   -1.5306    
  11  norm          3.2073        2.2138        .89451E-04   -1.5350    
  12  Prefactor     .10000E-03    4.8041        .16525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.1088        2.2941        .75951E-04   -1.5256    
  14  Prefactor     .10006E-03    13.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10064E-03    27.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.1887        6.7265        .22693E-03   -1.5351    
  17  norm          .10000E-03    4.0444        .15166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.6490        .96140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.146        19.871        .99692E-04   -1.4904    
  21  Prefactor     53.248        34.514        .54964E-04   -1.4247    
  22  norm          11.404        6.2442        .11863E-03   -1.5032    
  23  Prefactor     .10000E-03    33.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.507        45.169        .88434E-04   -1.4802    
  25  norm          1.2376        1.3104        .88569E-04   -1.5485    
  26  norm          .10041E-03    42.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.3651        4.2659        .17006E-03   -1.5341    
  28  Prefactor     .10035E-03    39.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .91413        .20106        .22973E-03   -.95966    
  30  Prefactor     1.0196        .23400        .27121E-03   -.92078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62734e-07
Minuit parameter uncertainties:
  1  5.53513
  2  1.10765e-07
  3  30.335
  4  0.000113536
  5  0.000147236
  6  2.55813
  7  0.00455903
  8  4.79663
  9  0.00336455
  10  5.64836
  11  2.21387
  12  1.37671e-05
  13  2.29411
  14  0.00173796
  15  0.00838112
  16  6.72812
  17  2.03781e-06
  18  5.78034e-06
  19  0.000238615
  20  19.8791
  21  34.5266
  22  6.24452
  23  0.000645344
  24  45.2446
  25  1.31043
  26  0.0083916
  27  4.26628
  28  0.00743776
  29  0.201222
  30  0.234233
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  5.109e+00  2.294e+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.020e+00  2.342e-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.141e-01  2.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.93
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 4.96e-08 +/- 2.23e-08
Energy Flux (Fixed Index): 3.59e-05 +/- 1.61e-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) = 5963.52673
delta logL = 0.0680950229826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5963.52141349
delta logL = 0.0734115325131

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4326       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7919       1.0000          .0000       5.0000    
     3 'Normalizat'    .92003       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0152       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=   5963.521     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      231 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4326        2.3919       -.19610E-06    .12651E-02
   2  alpha         1.7919        .34472        .24828E-05    .86723E-04
   3  Normalizat    .92003        .15624       -.92277E-07   -.29639E-04
   4  Prefactor     1.0152        .19445        .86227E-07   -.30179E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.43259
  alpha      = 1.79195
  Normalizat = 0.920028
  Prefactor  = 1.01521
 **********
 **   18 **HESSE 
 **********

 FCN=   5963.521     FROM HESSE     STATUS=OK            31 CALLS      262 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4326        2.5482        .79173E-04   -1.5242    
   2  alpha         1.7919        .35924        .99798E-02   -.28715    
   3  Normalizat    .92003        .18597        .22909E-03   -.95760    
   4  Prefactor     1.0152        .23135        .27174E-03   -.92224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82368e-10
Minuit parameter uncertainties:
  1  2.54822
  2  0.360599
  3  0.186105
  4  0.231579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/961923': 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) = 5963.52141347
delta logL = 0.0734115597379

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  5.433e+00  2.548e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.792e+00  3.606e-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.015e+00  2.316e-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.200e-01  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.07
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.79 +/- 0.36
Photon Flux (Free Index): 4.45e-08 +/- 2.39e-08
Energy Flux (Free Index): 4.31e-05 +/- 2.96e-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/961923/cmap_HighResolution_650160001_650419201_4FGL_J1253.2+5301_daily_bin1585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.96e-08', energy_flux2='4.31e-05', photon_flux_error='2.23e-08', dlogl='7.34e-02', energy_flux='3.59e-05', photon_flux2='4.45e-08', job_status='DONE', time_completed='2021-09-06 07:59:34.816353', photon_index_error2='0.36', photon_index2='1.79', ts='16.93', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.96e-05', EG='0.91', time_epoch_completed='1630940374.82', return_code='0', job_id='961923', GAL2='1.02', EG2='0.92', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='2.39e-08', ts2='17.07', photon_index='1.93' WHERE bin_id='1585' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:59:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 961923: <4FGL_J1253.2+5301_daily_bin1585> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin1585> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 07:45:53 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:45:55 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:45:55 2021
Terminated at Mon Sep  6 07:59:35 2021
Results reported at Mon Sep  6 07:59:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin1585 193.307 53.0173 650160001 650419201 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.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            822 sec.

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

