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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin56
RA = 193.307, Dec = 53.0173
tmin = 253843201, tmax = 254102401
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='953527', job_status='RUN', time_executed='2021-09-06 07:23:39.186442', time_epoch_executed='1630938219.19' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953527

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953527/ft1_4FGL_J1253.2+5301_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953527/ft2_4FGL_J1253.2+5301_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953527/ft1_4FGL_J1253.2+5301_daily_bin56.fits outfile=/scratch/kocevski/953527/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin56.fits ra=193.307 dec=53.0173 rad=12.0 tmin=253843201.0 tmax=254102401.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.47
user 1.31
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/953527/ft2_4FGL_J1253.2+5301_daily_bin56.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/953527/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin56.fits evtable="EVENTS" outfile="/scratch/kocevski/953527/ft1_filtered_4FGL_J1253.2+5301_daily_bin56.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.50
user 0.35
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953527/ft1_filtered_4FGL_J1253.2+5301_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/953527/ft2_4FGL_J1253.2+5301_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/953527/ltcube_253843201_254102401_4FGL_J1253.2+5301_daily_bin56.fits outfile=/scratch/kocevski/953527/expmap_253843201_254102401_4FGL_J1253.2+5301_daily_bin56.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/953527/ltcube_253843201_254102401_4FGL_J1253.2+5301_daily_bin56.fits
.....................!
real 190.18
user 184.87
sys 4.86

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/953527/ft1_filtered_4FGL_J1253.2+5301_daily_bin56.fits scfile=/scratch/kocevski/953527/ft2_4FGL_J1253.2+5301_daily_bin56.fits outfile=/scratch/kocevski/953527/cmap_253843201_254102401_4FGL_J1253.2+5301_daily_bin56.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.80
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953527/ft1_filtered_4FGL_J1253.2+5301_daily_bin56.fits scfile=/scratch/kocevski/953527/ft2_4FGL_J1253.2+5301_daily_bin56.fits outfile=/scratch/kocevski/953527/cmap_HighResolution_253843201_254102401_4FGL_J1253.2+5301_daily_bin56.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=193.307 yref=53.0173 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10489E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7280       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.7522       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14652E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .10525E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    91.939       1.0000         .10000E-03   10000.    
     8 'norm      '    .10506E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    56.951       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.8953       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.020       1.0000         .10000E-03   10000.    
    13 'norm      '    2.4162       1.0000         .10000E-03   10000.    
    14 'Prefactor '    48.673       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    19.178       1.0000         .10000E-03   10000.    
    18 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    12.546       1.0000         .10000E-03   10000.    
    23 'Prefactor '    83.487       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10464E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.6531       1.0000         .10000E-03   10000.    
    26 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    9.8841       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0184       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .82387       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=   4412.537     FROM MIGRAD    STATUS=CONVERGED    809 CALLS     3966 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9134       -.45928E-06** at limit **
   2  norm          .10000E-03    5.7391        .50817E-06** at limit **
   3  Prefactor     2.7317        26.532        .16504E-04   -.27165E-03
   4  Prefactor     8.7121        10.842       -.41271E-05   -.79474E-03
   5  Prefactor     .13908E-03    52.921        .99206E-05** at limit **
   6  norm          .10000E-03    1.4101        .11372E-06** at limit **
   7  Prefactor     92.209        98.493        .47705E-05    .68856E-04
   8  norm          .10000E-03    5.0204       -.10623E-06** at limit **
   9  Prefactor     56.956        31.109        .76297E-07   -.68173E-04
  10  Prefactor     .10000E-03    5.0307        .88812E-07** at limit **
  11  norm          5.8937        3.5573        .69860E-07   -.19046E-03
  12  Prefactor     24.019        28.291        .12614E-05   -.65773E-05
  13  norm          2.4167        2.4674        .15922E-06   -.29824E-04
  14  Prefactor     48.630        47.519        .58053E-05    .27842E-03
  15  Prefactor     .10000E-03    34.332       -.14893E-06** at limit **
  16  Prefactor     .10000E-03    4.7271        .45219E-07** at limit **
  17  norm          19.183        21.764        .16817E-05    .85635E-04
  18  norm          .10000E-03    1.6913       -.17986E-07** at limit **
  19  Prefactor     .10000E-03    44.647       -.41082E-06** at limit **
  20  Prefactor     .10000E-03    10.216        .77823E-09** at limit **
  21  Prefactor     .10000E-03    173.60       -.15532E-05** at limit **
  22  norm          12.551        6.1814        .51342E-06   -.22453E-03
  23  Prefactor     83.441        63.564        .40682E-05    .15517E-03
  24  Prefactor     .10000E-03    22.385        .73933E-07** at limit **
  25  norm          1.6535        1.4495        .84118E-07    .34697E-05
  26  norm          .10000E-03    34.278        .23252E-06** at limit **
  27  norm          9.8850        5.5176        .11570E-06   -.47931E-04
  28  Prefactor     .10000E-03    52.929        .27373E-06** at limit **
  29  Normalizat    1.0184        .19727       -.31943E-05   -.24482E-03
  30  Prefactor     .82383        .22921       -.75639E-06   -.31376E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.73168
  Prefactor  = 8.71215
  Prefactor  = 0.000139079
  norm       = 0.0001
  Prefactor  = 92.2085
  norm       = 0.0001
  Prefactor  = 56.9559
  Prefactor  = 0.0001
  norm       = 5.89374
  Prefactor  = 24.0186
  norm       = 2.41675
  Prefactor  = 48.6297
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.1835
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 12.5511
  Prefactor  = 83.4413
  Prefactor  = 0.0001
  norm       = 1.65354
  norm       = 0.0001
  norm       = 9.88499
  Prefactor  = 0.0001
  Normalizat = 1.01839
  Prefactor  = 0.823827
 **********
 **   18 **HESSE 
 **********

 FCN=   4412.537     FROM HESSE     STATUS=OK           586 CALLS     4552 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9403        .89735E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.8122        .15538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7317        26.685        .12327E-02   -1.5377    
   4  Prefactor     8.7121        11.396        .13549E-03   -1.5118    
   5  Prefactor     .13908E-03    58.157        .11606       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.1617        .15255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     92.209        102.28        .20955E-03   -1.3784    
   8  norm          .10000E-03    5.0519        .14514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     56.956        31.123        .53158E-04   -1.4197    
  10  Prefactor     .10000E-03    5.0651        .14534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.8937        3.5541        .93547E-04   -1.5222    
  12  Prefactor     24.019        28.346        .81732E-04   -1.4727    
  13  norm          2.4167        2.4665        .10183E-03   -1.5397    
  14  Prefactor     48.630        48.225        .28739E-03   -1.4312    
  15  Prefactor     .10000E-03    34.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.7385        .14103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          19.183        21.831        .91458E-04   -1.4832    
  18  norm          .10000E-03    1.6997        .84350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    44.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    177.65        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          12.551        6.1825        .55193E-03   -1.4999    
  23  Prefactor     83.441        63.961        .21981E-03   -1.3878    
  24  Prefactor     .10000E-03    22.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.6535        1.4446        .72762E-04   -1.5451    
  26  norm          .10000E-03    34.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          9.8850        5.5176        .11156E-03   -1.5079    
  28  Prefactor     .10000E-03    53.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0184        .23128        .22545E-03   -.92417    
  30  Prefactor     .82383        .27021        .29895E-03   -.98856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31151e-09
Minuit parameter uncertainties:
  1  1.77045e-05
  2  5.17489e-05
  3  17.0855
  4  11.3993
  5  0.0954382
  6  4.83084e-05
  7  102.475
  8  3.63678e-06
  9  31.1316
  10  8.8012e-06
  11  3.5542
  12  28.362
  13  2.46661
  14  48.2639
  15  3.77977e-06
  16  3.71508e-06
  17  21.8401
  18  4.60318e-06
  19  8.62526e-05
  20  8.63709e-06
  21  0.000945633
  22  6.18281
  23  64.0139
  24  4.3562e-06
  25  1.44465
  26  3.62276e-05
  27  5.51784
  28  0.000101492
  29  0.231503
  30  0.270645
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.417e+00  2.467e+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:  8.238e-01  2.706e-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.018e+00  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.56
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 2.35e-08 +/- 2.39e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.73e-05

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

Saving results to:
/scratch/kocevski/953527/likelihoodResults_253843201_254102401_4FGL_J1253.2+5301_daily_bin56.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) = 4411.50077481
delta logL = 1.03669326896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4411.33804423
delta logL = 1.19942384957

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .35535E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .86221       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96772       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=   4411.338     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      367 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35536E-01    .20128E-01    .65996E-05    .22911E-03
   2  alpha         5.0000        3.2980        .31260E-01** at limit **
   3  Normalizat    .86215        .22969        .24179E-03    .85575E-04
   4  Prefactor     .96781        .27424        .27857E-03    .45667E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0355362
  alpha      = 5
  Normalizat = 0.862151
  Prefactor  = 0.967814
 **********
 **   18 **HESSE 
 **********

 FCN=   4411.338     FROM HESSE     STATUS=OK            23 CALLS      390 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .35536E-01    .19802E-01    .26399E-06   -1.5670    
   2  alpha         5.0000        3.2982        .12504E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .86215        .22994        .96716E-05   -.97803    
   4  Prefactor     .96781        .27453        .11143E-04   -.93810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66815e-11
Minuit parameter uncertainties:
  1  0.0198016
  2  5.54199e-06
  3  0.230196
  4  0.274928
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953527': 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) = 4411.33804417
delta logL = 1.19942391454

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  3.554e-02  1.980e-02  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  5.000e+00  5.542e-06  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:  9.678e-01  2.749e-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.622e-01  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.29
Ra Dec: 193.307 53.017
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.30e-07 +/- 7.18e-08
Energy Flux (Free Index): 1.78e-05 +/- 9.87e-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/953527/cmap_HighResolution_253843201_254102401_4FGL_J1253.2+5301_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-05', comment='SUCCESS', photon_flux='2.35e-08', energy_flux2='1.78e-05', photon_flux_error='2.39e-08', dlogl='1.20e+00', energy_flux='1.70e-05', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-06 07:36:07.002407', photon_index_error2='0.00', photon_index2='5.00', ts='2.56', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='8.88e-08', energy_flux_error2='9.87e-06', EG='1.02', time_epoch_completed='1630938967.0', return_code='0', job_id='953527', GAL2='0.97', EG2='0.86', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='7.18e-08', ts2='5.29', photon_index='1.93' WHERE bin_id='56' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:36:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 953527: <4FGL_J1253.2+5301_daily_bin56> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin56 193.307 53.0173 253843201 254102401 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 :                                   742.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            948 sec.

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

