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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin466
RA = 193.307, Dec = 53.0173
tmin = 360115201, tmax = 360374401
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='955449', job_status='RUN', time_executed='2021-09-06 07:26:18.837433', time_epoch_executed='1630938378.84' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='466'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/955449

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/955449/ft1_4FGL_J1253.2+5301_daily_bin466.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/955449/ft2_4FGL_J1253.2+5301_daily_bin466.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/955449/ft1_4FGL_J1253.2+5301_daily_bin466.fits outfile=/scratch/kocevski/955449/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin466.fits ra=193.307 dec=53.0173 rad=12.0 tmin=360115201.0 tmax=360374401.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.48
user 3.27
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/955449/ft1_filtered_4FGL_J1253.2+5301_daily_bin466.fits evtable="EVENTS" scfile=/scratch/kocevski/955449/ft2_4FGL_J1253.2+5301_daily_bin466.fits sctable="SC_DATA" expcube=/scratch/kocevski/955449/ltcube_360115201_360374401_4FGL_J1253.2+5301_daily_bin466.fits outfile=/scratch/kocevski/955449/expmap_360115201_360374401_4FGL_J1253.2+5301_daily_bin466.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/955449/ltcube_360115201_360374401_4FGL_J1253.2+5301_daily_bin466.fits
.....................!
real 190.87
user 185.20
sys 4.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/955449/ft1_filtered_4FGL_J1253.2+5301_daily_bin466.fits scfile=/scratch/kocevski/955449/ft2_4FGL_J1253.2+5301_daily_bin466.fits outfile=/scratch/kocevski/955449/cmap_360115201_360374401_4FGL_J1253.2+5301_daily_bin466.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.63
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/955449/ft1_filtered_4FGL_J1253.2+5301_daily_bin466.fits scfile=/scratch/kocevski/955449/ft2_4FGL_J1253.2+5301_daily_bin466.fits outfile=/scratch/kocevski/955449/cmap_HighResolution_360115201_360374401_4FGL_J1253.2+5301_daily_bin466.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.59
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12516E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.3637       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3975       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.3853       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3158       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.9943       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .40250E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4120       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.2856       1.0000         .10000E-03   10000.    
    18 'norm      '    .15939E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    71.319       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.366       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    86.868       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    27.715       1.0000         .10000E-03   10000.    
    26 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.8329       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .77493       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0752       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=   6020.136     FROM MIGRAD    STATUS=CONVERGED    764 CALLS     3914 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7398        .37532E-06** at limit **
   2  norm          4.3639        5.9708        .60867E-06    .17639E-03
   3  Prefactor     .10000E-03    14.148        .22467E-06** at limit **
   4  Prefactor     1.3980        10.275       -.13164E-05    .57206E-04
   5  Prefactor     .10000E-03    7.9759        .26229E-06** at limit **
   6  norm          .10000E-03    1.0685        .47339E-07** at limit **
   7  Prefactor     .10000E-03    33.855        .15387E-06** at limit **
   8  norm          3.3857        4.6400        .37658E-07   -.81236E-05
   9  Prefactor     2.3160        17.936       -.13258E-06    .12830E-04
  10  Prefactor     .10000E-03    4.6604        .11923E-06** at limit **
  11  norm          3.9948        2.4400        .55831E-07    .66622E-04
  12  Prefactor     .10000E-03    8.8582        .32003E-06** at limit **
  13  norm          1.4120        1.5701       -.55438E-08    .81038E-04
  14  Prefactor     .10000E-03    18.554       -.55742E-07** at limit **
  15  Prefactor     .10000E-03    17.852       -.16119E-06** at limit **
  16  Prefactor     .10000E-03    6.9778       -.21254E-06** at limit **
  17  norm          7.2857        7.2459        .79769E-08   -.78352E-05
  18  norm          .10000E-03    6.6674       -.30680E-05** at limit **
  19  Prefactor     71.268        39.110       -.87827E-06    .69512E-04
  20  Prefactor     16.365        13.774       -.24481E-07   -.10192E-04
  21  Prefactor     .10000E-03    35.103        .99270E-06** at limit **
  22  norm          .10000E-03    3.0437        .29223E-06** at limit **
  23  Prefactor     86.913        61.025       -.17505E-05    .41462E-05
  24  Prefactor     .10000E-03    14.720       -.30441E-07** at limit **
  25  norm          27.715        4.0477       -.44533E-07   -.18716E-05
  26  norm          .10000E-03    25.772        .78436E-06** at limit **
  27  norm          2.8323        3.1756        .99424E-07    .87118E-04
  28  Prefactor     .10000E-03    45.525       -.54629E-06** at limit **
  29  Normalizat    .77495        .15873       -.56570E-06   -.81370E-04
  30  Prefactor     1.0750        .19480       -.52896E-06   -.10103E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 4.36389
  Prefactor  = 0.0001
  Prefactor  = 1.39796
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.38569
  Prefactor  = 2.31597
  Prefactor  = 0.0001
  norm       = 3.99482
  Prefactor  = 0.000100002
  norm       = 1.41203
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.28571
  norm       = 0.0001
  Prefactor  = 71.2677
  Prefactor  = 16.365
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 86.9129
  Prefactor  = 0.0001
  norm       = 27.7155
  norm       = 0.0001
  norm       = 2.83231
  Prefactor  = 0.0001
  Normalizat = 0.774948
  Prefactor  = 1.07503
 **********
 **   18 **HESSE 
 **********

 FCN=   6020.136     FROM HESSE     STATUS=OK           592 CALLS     4506 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.448        .19295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.3639        5.7884        .17746E-03   -1.5290    
   3  Prefactor     .10000E-03    14.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3980        9.5578        .36720E-03   -1.5471    
   5  Prefactor     .10000E-03    7.9884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.6961        .15520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    33.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.3857        4.5980        .18260E-03   -1.5340    
   9  Prefactor     2.3160        17.615        .26958E-03   -1.5404    
  10  Prefactor     .10000E-03    4.7312        .16336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.9948        2.4363        .90995E-04   -1.5308    
  12  Prefactor     .10000E-03    46.351        .44596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4120        1.5446        .99392E-04   -1.5470    
  14  Prefactor     .10000E-03    18.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.9937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.2857        7.2500        .14860E-03   -1.5168    
  18  norm          .10000E-03    6.6240        .25599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     71.268        38.787        .23768E-03   -1.4018    
  20  Prefactor     16.365        13.748        .99003E-04   -1.4899    
  21  Prefactor     .10000E-03    35.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.1292        .26465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     86.913        60.730        .21553E-03   -1.3841    
  24  Prefactor     .10000E-03    14.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          27.715        4.0447        .57327E-04   -1.4655    
  26  norm          .10000E-03    25.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.8323        3.1678        .14115E-03   -1.5371    
  28  Prefactor     .10000E-03    45.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .77495        .18627        .24221E-03   -1.0100    
  30  Prefactor     1.0750        .23238        .26527E-03   -.90268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73079e-10
Minuit parameter uncertainties:
  1  0.000442337
  2  5.78914
  3  1.06574e-05
  4  7.31205
  5  1.2758e-05
  6  9.20217e-06
  7  3.84081e-05
  8  4.59849
  9  12.7792
  10  1.94554e-05
  11  2.43638
  12  0.000654175
  13  1.54464
  14  1.39783e-05
  15  9.51634e-06
  16  3.42823e-05
  17  7.25083
  18  9.59038e-06
  19  38.8003
  20  13.7504
  21  7.72955e-05
  22  1.1915e-05
  23  60.7735
  24  4.86032e-05
  25  4.04474
  26  9.96726e-07
  27  3.16796
  28  6.20171e-05
  29  0.186419
  30  0.232598
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.412e+00  1.545e+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.075e+00  2.326e-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:  7.749e-01  1.864e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.33
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.37e-08 +/- 1.50e-08
Energy Flux (Fixed Index): 9.91e-06 +/- 1.08e-05

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

Saving results to:
/scratch/kocevski/955449/likelihoodResults_360115201_360374401_4FGL_J1253.2+5301_daily_bin466.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6020.03464774
delta logL = 0.101266949269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6020.02375329
delta logL = 0.112161400961

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2011       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3317       1.0000          .0000       5.0000    
     3 'Normalizat'    .76648       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0802       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6020.024     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2006        26.060        .10353E-01    .51349E-03
   2  alpha         2.3318        3.6035        .41270        .33452E-04
   3  Normalizat    .76665        .43315E-01    .43171E-01    .14025E-04
   4  Prefactor     1.0801        .50395E-01    .59849E-01    .58366E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.20056
  alpha      = 2.33182
  Normalizat = 0.766645
  Prefactor  = 1.08014
 **********
 **   18 **HESSE 
 **********

 FCN=   6020.024     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2006        1.5419        .84046E-04   -1.5489    
   2  alpha         2.3318        .88151        .14961E-01   -.67322E-01
   3  Normalizat    .76665        .18265        .24335E-03   -1.0132    
   4  Prefactor     1.0801        .23194        .26467E-03   -.90104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34859e-09
Minuit parameter uncertainties:
  1  1.54199
  2  0.900974
  3  0.182799
  4  0.232158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/955449': 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) = 6020.02375246
delta logL = 0.112162233891

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.201e+00  1.542e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.332e+00  9.010e-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.080e+00  2.322e-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:  7.666e-01  1.828e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 193.307 53.017
Photon Index (Free Index): 2.33 +/- 0.90
Photon Flux (Free Index): 2.10e-08 +/- 2.50e-08
Energy Flux (Free Index): 8.01e-06 +/- 8.85e-06

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/955449/cmap_HighResolution_360115201_360374401_4FGL_J1253.2+5301_daily_bin466.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.81e-05', comment='SUCCESS', photon_flux='1.37e-08', energy_flux2='8.01e-06', photon_flux_error='1.50e-08', dlogl='1.12e-01', energy_flux='9.91e-06', photon_flux2='2.10e-08', job_status='DONE', time_completed='2021-09-06 07:41:58.472861', photon_index_error2='0.90', photon_index2='2.33', ts='1.33', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='5.27e-08', energy_flux_error2='8.85e-06', EG='0.77', time_epoch_completed='1630939318.47', return_code='0', job_id='955449', GAL2='1.08', EG2='0.77', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='2.50e-08', ts2='1.54', photon_index='1.93' WHERE bin_id='466' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:41:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 955449: <4FGL_J1253.2+5301_daily_bin466> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin466 193.307 53.0173 360115201 360374401 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 :                                   927.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            962 sec.

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

