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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin42
RA = 193.307, Dec = 53.0173
tmin = 250214401, tmax = 250473601
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='952318', job_status='RUN', time_executed='2021-09-06 07:18:55.491861', time_epoch_executed='1630937935.49' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='42'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952318

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952318/ft1_4FGL_J1253.2+5301_daily_bin42.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952318/ft2_4FGL_J1253.2+5301_daily_bin42.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952318/ft1_4FGL_J1253.2+5301_daily_bin42.fits outfile=/scratch/kocevski/952318/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin42.fits ra=193.307 dec=53.0173 rad=12.0 tmin=250214401.0 tmax=250473601.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.61
user 1.24
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/952318/ft1_filtered_4FGL_J1253.2+5301_daily_bin42.fits" evtable="EVENTS" scfile=/scratch/kocevski/952318/ft2_4FGL_J1253.2+5301_daily_bin42.fits sctable="SC_DATA" outfile=/scratch/kocevski/952318/ltcube_250214401_250473601_4FGL_J1253.2+5301_daily_bin42.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/952318/ft2_4FGL_J1253.2+5301_daily_bin42.fits
.....................!
real 13.04
user 12.71
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952318/ft1_filtered_4FGL_J1253.2+5301_daily_bin42.fits evtable="EVENTS" scfile=/scratch/kocevski/952318/ft2_4FGL_J1253.2+5301_daily_bin42.fits sctable="SC_DATA" expcube=/scratch/kocevski/952318/ltcube_250214401_250473601_4FGL_J1253.2+5301_daily_bin42.fits outfile=/scratch/kocevski/952318/expmap_250214401_250473601_4FGL_J1253.2+5301_daily_bin42.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/952318/ltcube_250214401_250473601_4FGL_J1253.2+5301_daily_bin42.fits
.....................!
real 189.84
user 185.42
sys 4.10

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/952318/ft1_filtered_4FGL_J1253.2+5301_daily_bin42.fits scfile=/scratch/kocevski/952318/ft2_4FGL_J1253.2+5301_daily_bin42.fits outfile=/scratch/kocevski/952318/cmap_250214401_250473601_4FGL_J1253.2+5301_daily_bin42.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/952318/ft1_filtered_4FGL_J1253.2+5301_daily_bin42.fits scfile=/scratch/kocevski/952318/ft2_4FGL_J1253.2+5301_daily_bin42.fits outfile=/scratch/kocevski/952318/cmap_HighResolution_250214401_250473601_4FGL_J1253.2+5301_daily_bin42.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33114       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .31158E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8208       1.0000         .10000E-03   10000.    
     6 'norm      '    .87702       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.4360       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.8784       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.371       1.0000         .10000E-03   10000.    
    13 'norm      '    3.3974       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11301       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.1413       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.456       1.0000         .10000E-03   10000.    
    21 'Prefactor '    48.362       1.0000         .10000E-03   10000.    
    22 'norm      '    1.7374       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.0093       1.0000         .10000E-03   10000.    
    24 'Prefactor '    43.965       1.0000         .10000E-03   10000.    
    25 'norm      '    1.8774       1.0000         .10000E-03   10000.    
    26 'norm      '    .10148E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    7.1972       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .88966       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1996       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=   6306.142     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     3968 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32982        2.0872       -.17165E-06   -.48305E-04
   2  norm          .10000E-03    2.6335       -.20778E-06** at limit **
   3  Prefactor     .10000E-03    16.125       -.17899E-05** at limit **
   4  Prefactor     .10001E-03    6.5372       -.33774E-05** at limit **
   5  Prefactor     1.9141        49.919        .13013E-04    .44793E-04
   6  norm          .87624        1.6168        .31143E-06   -.87525E-04
   7  Prefactor     .10000E-03    38.172        .25794E-06** at limit **
   8  norm          7.4361        5.9994       -.60277E-06   -.29945E-04
   9  Prefactor     .10000E-03    15.108        .10676E-05** at limit **
  10  Prefactor     .10000E-03    2.6393        .76234E-07** at limit **
  11  norm          4.8792        2.3724       -.39839E-07    .37197E-04
  12  Prefactor     14.375        24.314       -.64068E-06    .62721E-05
  13  norm          3.3974        2.2164       -.68845E-07   -.12601E-04
  14  Prefactor     .10000E-03    32.507       -.39838E-05** at limit **
  15  Prefactor     .10000E-03    26.058       -.10368E-05** at limit **
  16  Prefactor     .89789E-01    5.0209        .14582E-06   -.12849E-03
  17  norm          .10000E-03    4.8977        .11055E-07** at limit **
  18  norm          2.1416        2.2235       -.70317E-08    .53054E-04
  19  Prefactor     .10000E-03    17.628       -.56261E-06** at limit **
  20  Prefactor     20.460        20.662       -.35016E-07    .10567E-04
  21  Prefactor     48.336        40.223       -.36961E-05   -.10202E-04
  22  norm          1.7371        3.1692        .15978E-06   -.34253E-04
  23  Prefactor     7.0043        79.524        .89558E-07    .50276E-05
  24  Prefactor     43.927        48.043       -.66162E-05   -.18338E-04
  25  norm          1.8781        1.7888        .10510E-06    .51482E-04
  26  norm          .10000E-03    123.88       -.83632E-05** at limit **
  27  norm          7.1969        4.1621        .14548E-06    .85228E-04
  28  Prefactor     .10000E-03    23.215        .23138E-05** at limit **
  29  Normalizat    .88930        .17111        .23011E-05    .22928E-04
  30  Prefactor     1.2002        .19779       -.83856E-06    .25981E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.329822
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 1.91412
  norm       = 0.876236
  Prefactor  = 0.0001
  norm       = 7.43614
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.8792
  Prefactor  = 14.3752
  norm       = 3.39738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0897889
  norm       = 0.0001
  norm       = 2.14164
  Prefactor  = 0.0001
  Prefactor  = 20.46
  Prefactor  = 48.336
  norm       = 1.73706
  Prefactor  = 7.00433
  Prefactor  = 43.9274
  norm       = 1.87812
  norm       = 0.0001
  norm       = 7.19686
  Prefactor  = 0.0001
  Normalizat = 0.889298
  Prefactor  = 1.2002
 **********
 **   18 **HESSE 
 **********

 FCN=   6306.142     FROM HESSE     STATUS=OK           604 CALLS     4572 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32982        4.5128        .21865E-02   -1.5593    
   2  norm          .10000E-03    2.6635        .12575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    25.490        .35064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.9141        54.330        .30945E-03   -1.5431    
   6  norm          .87624        1.4452        .13035E-02   -1.5521    
   7  Prefactor     .10000E-03    38.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.4361        6.0006        .14708E-03   -1.5163    
   9  Prefactor     .10000E-03    15.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.6500        .12590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.8792        2.3734        .81970E-04   -1.5266    
  12  Prefactor     14.375        24.361        .10566E-03   -1.4949    
  13  norm          3.3974        2.2155        .92222E-04   -1.5339    
  14  Prefactor     .10000E-03    32.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    26.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .89789E-01    8.4211        .61642E-01   -1.5648    
  17  norm          .10000E-03    4.9096        .17164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.1416        2.2237        .11708E-03   -1.5415    
  19  Prefactor     .10000E-03    17.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.460        20.451        .88558E-04   -1.4803    
  21  Prefactor     48.336        40.130        .57662E-04   -1.4316    
  22  norm          1.7371        3.1055        .17139E-03   -1.5444    
  23  Prefactor     7.0043        79.038        .15153E-03   -1.5179    
  24  Prefactor     43.927        48.063        .60463E-04   -1.4381    
  25  norm          1.8781        1.7689        .97684E-04   -1.5434    
  26  norm          .10000E-03    124.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.1969        4.1586        .11794E-03   -1.5171    
  28  Prefactor     .10000E-03    23.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .88930        .19747        .24173E-03   -.96837    
  30  Prefactor     1.2002        .23272        .26664E-03   -.86325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83834e-08
Minuit parameter uncertainties:
  1  2.43988
  2  5.1895e-06
  3  2.42871e-05
  4  0.00100383
  5  20.4154
  6  1.44524
  7  2.57809e-05
  8  6.00111
  9  6.09239e-06
  10  7.02137e-06
  11  2.37342
  12  24.3778
  13  2.21551
  14  6.50337e-05
  15  3.3172e-05
  16  1.73838
  17  2.71604e-06
  18  2.22382
  19  7.91417e-05
  20  20.458
  21  40.1524
  22  3.1058
  23  47.1363
  24  48.1058
  25  1.76893
  26  0.000234758
  27  4.15875
  28  1.61809e-05
  29  0.197633
  30  0.232919
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  3.397e+00  2.216e+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.200e+00  2.329e-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:  8.893e-01  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.47
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 3.30e-08 +/- 2.15e-08
Energy Flux (Fixed Index): 2.38e-05 +/- 1.55e-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) = 6305.93393224
delta logL = 0.208508795964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6305.9269152
delta logL = 0.215525831632

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8731       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4074       1.0000          .0000       5.0000    
     3 'Normalizat'    .86036       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2193       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=   6305.927     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      274 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8737        2.4597        .72768E-04    .24528E-04
   2  alpha         2.4074        .76972        .12305E-01    .28848E-03
   3  Normalizat    .86030        .19062        .24513E-03    .19479E-05
   4  Prefactor     1.2195        .23423        .26470E-03    .12112E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.87369
  alpha      = 2.40738
  Normalizat = 0.860302
  Prefactor  = 1.21946
 **********
 **   18 **HESSE 
 **********

 FCN=   6305.927     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8737        2.2885        .29107E-05   -1.5369    
   2  alpha         2.4074        .71662        .24610E-02   -.37058E-01
   3  Normalizat    .86030        .18978        .98053E-05   -.97869    
   4  Prefactor     1.2195        .23388        .10588E-04   -.85735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05146e-11
Minuit parameter uncertainties:
  1  2.28856
  2  0.726834
  3  0.189931
  4  0.234076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952318': 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) = 6305.92691492
delta logL = 0.215526117334

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.874e+00  2.289e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.407e+00  7.268e-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.219e+00  2.341e-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:  8.603e-01  1.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.90
Ra Dec: 193.307 53.017
Photon Index (Free Index): 2.41 +/- 0.73
Photon Flux (Free Index): 5.68e-08 +/- 4.84e-08
Energy Flux (Free Index): 1.98e-05 +/- 1.17e-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/952318/cmap_HighResolution_250214401_250473601_4FGL_J1253.2+5301_daily_bin42.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.30e-08', energy_flux2='1.98e-05', photon_flux_error='2.15e-08', dlogl='2.16e-01', energy_flux='2.38e-05', photon_flux2='5.68e-08', job_status='DONE', time_completed='2021-09-06 07:32:43.624482', photon_index_error2='0.73', photon_index2='2.41', ts='8.47', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='1.17e-05', EG='0.89', time_epoch_completed='1630938763.62', return_code='0', job_id='952318', GAL2='1.22', EG2='0.86', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='4.84e-08', ts2='8.90', photon_index='1.93' WHERE bin_id='42' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:32:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 952318: <4FGL_J1253.2+5301_daily_bin42> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin42> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 07:16:10 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:16:12 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:16:12 2021
Terminated at Mon Sep  6 07:32:44 2021
Results reported at Mon Sep  6 07:32:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin42 193.307 53.0173 250214401 250473601 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 :                                   826.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            994 sec.

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

