/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 8 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 = 7398
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1253.2+5301_daily_bin373
RA = 193.307, Dec = 53.0173
tmin = 336009601, tmax = 336268801
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='955330', job_status='RUN', time_executed='2021-09-06 07:26:04.869688', time_epoch_executed='1630938364.87' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/955330

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/955330/ft1_4FGL_J1253.2+5301_daily_bin373.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/955330/ft2_4FGL_J1253.2+5301_daily_bin373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/955330/ft1_4FGL_J1253.2+5301_daily_bin373.fits outfile=/scratch/kocevski/955330/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin373.fits ra=193.307 dec=53.0173 rad=12.0 tmin=336009601.0 tmax=336268801.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 3.60
user 3.08
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/955330/ft1_filtered_4FGL_J1253.2+5301_daily_bin373.fits" evtable="EVENTS" scfile=/scratch/kocevski/955330/ft2_4FGL_J1253.2+5301_daily_bin373.fits sctable="SC_DATA" outfile=/scratch/kocevski/955330/ltcube_336009601_336268801_4FGL_J1253.2+5301_daily_bin373.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/955330/ft2_4FGL_J1253.2+5301_daily_bin373.fits
.....................!
real 11.72
user 11.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/955330/ft1_filtered_4FGL_J1253.2+5301_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/955330/ft2_4FGL_J1253.2+5301_daily_bin373.fits sctable="SC_DATA" expcube=/scratch/kocevski/955330/ltcube_336009601_336268801_4FGL_J1253.2+5301_daily_bin373.fits outfile=/scratch/kocevski/955330/expmap_336009601_336268801_4FGL_J1253.2+5301_daily_bin373.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/955330/ltcube_336009601_336268801_4FGL_J1253.2+5301_daily_bin373.fits
.....................!
real 190.88
user 185.14
sys 3.91

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/955330/ft1_filtered_4FGL_J1253.2+5301_daily_bin373.fits scfile=/scratch/kocevski/955330/ft2_4FGL_J1253.2+5301_daily_bin373.fits outfile=/scratch/kocevski/955330/cmap_336009601_336268801_4FGL_J1253.2+5301_daily_bin373.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=193.307 yref=53.0173 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.50
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/955330/ft1_filtered_4FGL_J1253.2+5301_daily_bin373.fits scfile=/scratch/kocevski/955330/ft2_4FGL_J1253.2+5301_daily_bin373.fits outfile=/scratch/kocevski/955330/cmap_HighResolution_336009601_336268801_4FGL_J1253.2+5301_daily_bin373.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 1.10
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.081       1.0000         .10000E-03   10000.    
     2 'norm      '    6.1833       1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.531       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.8973       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.032       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9326       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.5650       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.1875       1.0000         .10000E-03   10000.    
    17 'norm      '    22.609       1.0000         .10000E-03   10000.    
    18 'norm      '    2.3810       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.104       1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.194       1.0000         .10000E-03   10000.    
    22 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    54.238       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    10.512       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.5205       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0283       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .68719       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=   6223.755     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     3891 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.081        6.4237       -.46122E-06   -.40964E-04
   2  norm          6.1854        4.3284        .23003E-05   -.12929E-04
   3  Prefactor     34.533        32.122        .28678E-05   -.10723E-04
   4  Prefactor     .10000E-03    6.0574       -.19334E-05** at limit **
   5  Prefactor     .10000E-03    5.3613        .84493E-06** at limit **
   6  norm          .10000E-03    .62844        .17416E-07** at limit **
   7  Prefactor     .10000E-03    14.737       -.39384E-05** at limit **
   8  norm          4.8977        5.3430       -.49823E-06   -.11982E-03
   9  Prefactor     22.035        21.168        .20328E-05    .15112E-05
  10  Prefactor     .10000E-03    2.3656        .21844E-07** at limit **
  11  norm          1.9326        1.5708        .53568E-07   -.61412E-04
  12  Prefactor     .10000E-03    14.618       -.39092E-05** at limit **
  13  norm          8.5652        2.8443       -.29639E-06   -.20435E-05
  14  Prefactor     .10000E-03    20.049        .10079E-04** at limit **
  15  Prefactor     .10000E-03    12.781       -.23108E-05** at limit **
  16  Prefactor     9.1880        7.5315        .33168E-08   -.34188E-04
  17  norm          22.610        12.806        .20610E-06    .22716E-03
  18  norm          2.3812        2.3059        .37874E-07    .12978E-03
  19  Prefactor     .10000E-03    9.4881        .34441E-05** at limit **
  20  Prefactor     11.103        15.325       -.86950E-06   -.58214E-04
  21  Prefactor     25.198        27.164        .42464E-05   -.25279E-04
  22  norm          .10000E-03    1.1594        .24622E-07** at limit **
  23  Prefactor     54.243        49.569        .55014E-05   -.68488E-05
  24  Prefactor     .10000E-03    17.149        .84474E-06** at limit **
  25  norm          10.513        2.8643        .89433E-06   -.74508E-04
  26  norm          .10000E-03    30.771       -.63722E-05** at limit **
  27  norm          4.5207        3.4431       -.16530E-06   -.15774E-03
  28  Prefactor     .10000E-03    17.492        .18603E-05** at limit **
  29  Normalizat    1.0281        .16159       -.16047E-05    .58568E-04
  30  Prefactor     .68749        .18958       -.50697E-06   -.74837E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.0813
  norm       = 6.1854
  Prefactor  = 34.5334
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.89774
  Prefactor  = 22.0353
  Prefactor  = 0.0001
  norm       = 1.93255
  Prefactor  = 0.0001
  norm       = 8.56518
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.18797
  norm       = 22.6097
  norm       = 2.38117
  Prefactor  = 0.0001
  Prefactor  = 11.1029
  Prefactor  = 25.1982
  norm       = 0.0001
  Prefactor  = 54.2426
  Prefactor  = 0.0001
  norm       = 10.5128
  norm       = 0.0001
  norm       = 4.52071
  Prefactor  = 0.0001
  Normalizat = 1.02807
  Prefactor  = 0.687489
 **********
 **   18 **HESSE 
 **********

 FCN=   6223.755     FROM HESSE     STATUS=OK           590 CALLS     4481 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.081        6.4473        .87236E-04   -1.4789    
   2  norm          6.1854        4.3175        .13217E-03   -1.5211    
   3  Prefactor     34.533        32.219        .68195E-04   -1.4532    
   4  Prefactor     .10000E-03    6.2078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.3618        .17838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .64731        .12208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.8977        5.3353        .17716E-03   -1.5265    
   9  Prefactor     22.035        21.181        .85334E-04   -1.4769    
  10  Prefactor     .10000E-03    2.4118        .11842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9326        1.5657        .86186E-04   -1.5430    
  12  Prefactor     .10000E-03    14.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.5652        2.8447        .74106E-04   -1.5123    
  14  Prefactor     .10000E-03    20.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.1880        7.5333        .13222E-03   -1.5102    
  17  norm          22.610        12.818        .42120E-03   -1.4757    
  18  norm          2.3812        2.3137        .11460E-03   -1.5399    
  19  Prefactor     .10000E-03    9.4709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.103        15.336        .12023E-03   -1.5041    
  21  Prefactor     25.198        27.128        .79807E-04   -1.4704    
  22  norm          .10000E-03    1.1620        .82839E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     54.243        49.565        .54464E-04   -1.4234    
  24  Prefactor     .10000E-03    17.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10.513        2.8632        .66311E-04   -1.5059    
  26  norm          .10000E-03    30.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.5207        3.4419        .12325E-03   -1.5283    
  28  Prefactor     .10000E-03    17.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0281        .18953        .21766E-03   -.92096    
  30  Prefactor     .68749        .22086        .31892E-03   -1.0402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26738e-10
Minuit parameter uncertainties:
  1  6.4475
  2  4.31771
  3  32.2356
  4  8.83158e-05
  5  6.27651e-06
  6  1.71487e-06
  7  4.50195e-06
  8  5.33579
  9  21.1887
  10  4.43946e-06
  11  1.56571
  12  2.23301e-05
  13  2.84475
  14  1.00132e-05
  15  2.61622e-06
  16  7.5341
  17  12.8199
  18  2.31381
  19  2.81151e-05
  20  15.3415
  21  27.1417
  22  1.29772e-07
  23  49.6029
  24  7.13791e-07
  25  2.86324
  26  5.68657e-06
  27  3.44207
  28  1.15768e-06
  29  0.189659
  30  0.221139
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  8.565e+00  2.845e+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.875e-01  2.211e-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.028e+00  1.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 31.36
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 8.32e-08 +/- 2.76e-08
Energy Flux (Fixed Index): 6.01e-05 +/- 2.00e-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) = 6223.75385121
delta logL = 0.000692471910952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6223.75366383
delta logL = 0.00087984588481

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5085       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9437       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0271       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68818       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=   6223.754     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      230 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5086        3.1728        .73740E-04   -.10246E-03
   2  alpha         1.9436        .29733        .76749E-02   -.37719E-04
   3  Normalizat    1.0271        .18151        .21774E-03    .38376E-04
   4  Prefactor     .68817        .22075        .31877E-03   -.57063E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.50855
  alpha      = 1.94364
  Normalizat = 1.02713
  Prefactor  = 0.688166
 **********
 **   18 **HESSE 
 **********

 FCN=   6223.754     FROM HESSE     STATUS=OK            25 CALLS      255 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5086        3.1377        .14748E-04   -1.5124    
   2  alpha         1.9436        .29397        .30700E-03   -.22442    
   3  Normalizat    1.0271        .18163        .87097E-05   -.92127    
   4  Prefactor     .68817        .22092        .12751E-04   -1.0399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61844e-11
Minuit parameter uncertainties:
  1  3.1378
  2  0.294686
  3  0.181739
  4  0.2212
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/955330': 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) = 6223.75366383
delta logL = 0.00087985243772

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  8.509e+00  3.138e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.944e+00  2.947e-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:  6.882e-01  2.212e-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.027e+00  1.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 31.17
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.94 +/- 0.29
Photon Flux (Free Index): 8.40e-08 +/- 3.36e-08
Energy Flux (Free Index): 5.92e-05 +/- 2.86e-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/955330/cmap_HighResolution_336009601_336268801_4FGL_J1253.2+5301_daily_bin373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.32e-08', energy_flux2='5.92e-05', photon_flux_error='2.76e-08', dlogl='8.80e-04', energy_flux='6.01e-05', photon_flux2='8.40e-08', job_status='DONE', time_completed='2021-09-06 07:40:06.377850', photon_index_error2='0.29', photon_index2='1.94', ts='31.36', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='2.86e-05', EG='1.03', time_epoch_completed='1630939206.38', return_code='0', job_id='955330', GAL2='0.69', EG2='1.03', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='3.36e-08', ts2='31.17', photon_index='1.93' WHERE bin_id='373' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:40:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 955330: <4FGL_J1253.2+5301_daily_bin373> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin373> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 07:25:46 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:25:48 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:25:48 2021
Terminated at Mon Sep  6 07:40:07 2021
Results reported at Mon Sep  6 07:40:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin373 193.307 53.0173 336009601 336268801 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 :                                   825.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             329.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            861 sec.

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

