/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 144 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 = 7474
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1253.2+5301_daily_bin54
RA = 193.307, Dec = 53.0173
tmin = 253324801, tmax = 253584001
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='953523', job_status='RUN', time_executed='2021-09-06 07:22:59.921520', time_epoch_executed='1630938179.92' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953523

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953523/ft1_4FGL_J1253.2+5301_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953523/ft2_4FGL_J1253.2+5301_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953523/ft1_4FGL_J1253.2+5301_daily_bin54.fits outfile=/scratch/kocevski/953523/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin54.fits ra=193.307 dec=53.0173 rad=12.0 tmin=253324801.0 tmax=253584001.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 1.46
user 1.23
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953523/ft1_filtered_4FGL_J1253.2+5301_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/953523/ft2_4FGL_J1253.2+5301_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/953523/ltcube_253324801_253584001_4FGL_J1253.2+5301_daily_bin54.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/953523/ft2_4FGL_J1253.2+5301_daily_bin54.fits
.....................!
real 14.84
user 12.75
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953523/ft1_filtered_4FGL_J1253.2+5301_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/953523/ft2_4FGL_J1253.2+5301_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/953523/ltcube_253324801_253584001_4FGL_J1253.2+5301_daily_bin54.fits outfile=/scratch/kocevski/953523/expmap_253324801_253584001_4FGL_J1253.2+5301_daily_bin54.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/953523/ltcube_253324801_253584001_4FGL_J1253.2+5301_daily_bin54.fits
.....................!
real 192.51
user 185.69
sys 5.57

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/953523/ft1_filtered_4FGL_J1253.2+5301_daily_bin54.fits scfile=/scratch/kocevski/953523/ft2_4FGL_J1253.2+5301_daily_bin54.fits outfile=/scratch/kocevski/953523/cmap_253324801_253584001_4FGL_J1253.2+5301_daily_bin54.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.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7412       1.0000         .10000E-03   10000.    
     2 'norm      '    8.1487       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.5768       1.0000         .10000E-03   10000.    
     7 'Prefactor '    99.702       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.0754       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.2544       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10393E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.514       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.676       1.0000         .10000E-03   10000.    
    17 'norm      '    10.682       1.0000         .10000E-03   10000.    
    18 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13070E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    62.994       1.0000         .10000E-03   10000.    
    22 'norm      '    .54542       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    27.768       1.0000         .10000E-03   10000.    
    25 'norm      '    .16142       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.6715       1.0000         .10000E-03   10000.    
    28 'Prefactor '    36.430       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .98903       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .77243       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=   4506.707     FROM MIGRAD    STATUS=CONVERGED    780 CALLS     3901 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7384        3.9196        .10490E-06   -.20103E-03
   2  norm          8.1453        5.5874       -.76765E-06   -.10810E-03
   3  Prefactor     .10000E-03    12.079       -.26873E-05** at limit **
   4  Prefactor     .10000E-03    7.0167       -.82489E-07** at limit **
   5  Prefactor     .10000E-03    15.479       -.44008E-06** at limit **
   6  norm          1.5763        1.7645       -.65774E-08   -.39257E-03
   7  Prefactor     99.717        77.577        .11050E-04    .94992E-06
   8  norm          .10000E-03    5.7308       -.65567E-07** at limit **
   9  Prefactor     .10000E-03    12.323        .30850E-05** at limit **
  10  Prefactor     .10000E-03    2.0697        .65874E-10** at limit **
  11  norm          2.0752        1.7114        .41218E-08    .66404E-04
  12  Prefactor     .10000E-03    20.018        .18953E-05** at limit **
  13  norm          2.2540        1.7438        .50197E-07    .49421E-04
  14  Prefactor     .10000E-03    44.385        .19258E-06** at limit **
  15  Prefactor     15.509        35.641        .51162E-05   -.66538E-05
  16  Prefactor     13.670        12.775       -.37343E-06   -.32584E-04
  17  norm          10.681        12.741       -.26282E-06   -.14457E-04
  18  norm          .10000E-03    1.1609        .10653E-07** at limit **
  19  Prefactor     .10000E-03    20.138        .21321E-05** at limit **
  20  Prefactor     .10000E-03    8.1488        .10265E-06** at limit **
  21  Prefactor     63.127        47.160       -.43677E-06    .79399E-05
  22  norm          .53865        3.6143       -.82518E-06   -.41317E-03
  23  Prefactor     .10000E-03    19.335       -.35571E-05** at limit **
  24  Prefactor     27.752        53.512        .31242E-05    .17318E-04
  25  norm          .14640        1.4306        .11274E-06   -.48140E-03
  26  norm          .10000E-03    29.267       -.56895E-06** at limit **
  27  norm          1.6711        5.0838       -.21382E-05   -.74233E-03
  28  Prefactor     36.469        67.917        .29135E-04    .82419E-05
  29  Normalizat    .98913        .17810       -.38680E-06    .40060E-04
  30  Prefactor     .77259        .20732       -.15382E-05    .25419E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.73843
  norm       = 8.14532
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.57626
  Prefactor  = 99.7175
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.07519
  Prefactor  = 0.0001
  norm       = 2.254
  Prefactor  = 0.0001
  Prefactor  = 15.5094
  Prefactor  = 13.6702
  norm       = 10.6813
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.127
  norm       = 0.538651
  Prefactor  = 0.0001
  Prefactor  = 27.7521
  norm       = 0.146402
  norm       = 0.0001
  norm       = 1.6711
  Prefactor  = 36.4686
  Normalizat = 0.989128
  Prefactor  = 0.772594
 **********
 **   18 **HESSE 
 **********

 FCN=   4506.707     FROM HESSE     STATUS=OK           590 CALLS     4491 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7384        3.9193        .11412E-03   -1.5273    
   2  norm          8.1453        5.5844        .12562E-03   -1.5137    
   3  Prefactor     .10000E-03    12.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.0805        .17332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.5763        1.7465        .90357E-04   -1.5457    
   7  Prefactor     99.717        77.133        .40261E-04   -1.3707    
   8  norm          .10000E-03    5.8297        .15686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0735        .94299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.0752        1.7150        .77082E-04   -1.5420    
  12  Prefactor     .10000E-03    20.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.2540        1.7446        .75764E-04   -1.5408    
  14  Prefactor     .10000E-03    44.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.509        35.578        .10169E-03   -1.4920    
  16  Prefactor     13.670        12.797        .10831E-03   -1.4968    
  17  norm          10.681        12.739        .12259E-03   -1.5054    
  18  norm          .10000E-03    1.1631        .70629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.1568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     63.127        46.622        .50559E-04   -1.4117    
  22  norm          .53865        6.4221        .23918E-02   -1.5561    
  23  Prefactor     .10000E-03    19.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     27.752        53.549        .76027E-04   -1.4654    
  25  norm          .14640        7.5233        .14792E-02   -1.5631    
  26  norm          .10000E-03    29.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.6711        5.1532        .24886E-03   -1.5449    
  28  Prefactor     36.469        67.661        .66399E-04   -1.4499    
  29  Normalizat    .98913        .21354        .20765E-03   -.93396    
  30  Prefactor     .77259        .24745        .28252E-03   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82179e-09
Minuit parameter uncertainties:
  1  3.91951
  2  5.58478
  3  1.21299e-05
  4  1.58434e-05
  5  5.02886e-05
  6  1.74656
  7  77.2107
  8  1.16047e-05
  9  1.00328e-05
  10  5.90027e-09
  11  1.71499
  12  2.16413e-05
  13  1.74459
  14  1.39252e-05
  15  35.6262
  16  12.7998
  17  12.7424
  18  1.19964e-06
  19  2.28745e-05
  20  1.7719e-05
  21  46.6492
  22  3.71998
  23  3.11132e-06
  24  53.6422
  25  2.09854
  26  4.22586e-07
  27  5.15457
  28  67.8035
  29  0.213723
  30  0.247803
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.254e+00  1.745e+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:  7.726e-01  2.478e-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.891e-01  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.01
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 2.19e-08 +/- 1.69e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.22e-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) = 4506.70580559
delta logL = 0.00168271787243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4506.70559943
delta logL = 0.00188887573313

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2188       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9714       1.0000          .0000       5.0000    
     3 'Normalizat'    .98821       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77319       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=   4506.706     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      230 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2188        1.8403        .74946E-04    .15527E-02
   2  alpha         1.9721        .66518        .13622E-01    .74218E-04
   3  Normalizat    .98819        .20052        .20774E-03   -.77600E-04
   4  Prefactor     .77320        .24427        .28242E-03   -.67870E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.21882
  alpha      = 1.97208
  Normalizat = 0.98819
  Prefactor  = 0.773197
 **********
 **   18 **HESSE 
 **********

 FCN=   4506.706     FROM HESSE     STATUS=OK            23 CALLS      253 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2188        1.8201        .14989E-04   -1.5410    
   2  alpha         1.9721        .65797        .54489E-03   -.21277    
   3  Normalizat    .98819        .20068        .83096E-05   -.93427    
   4  Prefactor     .77320        .24450        .11297E-04   -1.0072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14055e-10
Minuit parameter uncertainties:
  1  1.82013
  2  0.666187
  3  0.200837
  4  0.244844
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953523': 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) = 4506.7055988
delta logL = 0.00188951194104

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.219e+00  1.820e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.972e+00  6.662e-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:  7.732e-01  2.448e-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.882e-01  2.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.01
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.97 +/- 0.67
Photon Flux (Free Index): 2.27e-08 +/- 2.24e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.53e-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/953523/cmap_HighResolution_253324801_253584001_4FGL_J1253.2+5301_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.19e-08', energy_flux2='1.52e-05', photon_flux_error='1.69e-08', dlogl='1.89e-03', energy_flux='1.58e-05', photon_flux2='2.27e-08', job_status='DONE', time_completed='2021-09-06 07:34:29.570509', photon_index_error2='0.67', photon_index2='1.97', ts='5.01', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='1.53e-05', EG='0.99', time_epoch_completed='1630938869.57', return_code='0', job_id='953523', GAL2='0.77', EG2='0.99', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='2.24e-08', ts2='5.01', photon_index='1.93' WHERE bin_id='54' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:34:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 953523: <4FGL_J1253.2+5301_daily_bin54> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin54 193.307 53.0173 253324801 253584001 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 :                                   679.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            852 sec.

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

