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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin785
RA = 193.307, Dec = 53.0173
tmin = 442800001, tmax = 443059201
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='958421', job_status='RUN', time_executed='2021-09-06 07:36:21.231501', time_epoch_executed='1630938981.23' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='785'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958421

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958421/ft1_4FGL_J1253.2+5301_daily_bin785.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958421/ft2_4FGL_J1253.2+5301_daily_bin785.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958421/ft1_4FGL_J1253.2+5301_daily_bin785.fits outfile=/scratch/kocevski/958421/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin785.fits ra=193.307 dec=53.0173 rad=12.0 tmin=442800001.0 tmax=443059201.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.71
user 3.25
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/958421/ft2_4FGL_J1253.2+5301_daily_bin785.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/958421/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin785.fits evtable="EVENTS" outfile="/scratch/kocevski/958421/ft1_filtered_4FGL_J1253.2+5301_daily_bin785.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/958421/ft1_filtered_4FGL_J1253.2+5301_daily_bin785.fits" evtable="EVENTS" scfile=/scratch/kocevski/958421/ft2_4FGL_J1253.2+5301_daily_bin785.fits sctable="SC_DATA" outfile=/scratch/kocevski/958421/ltcube_442800001_443059201_4FGL_J1253.2+5301_daily_bin785.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/958421/ft2_4FGL_J1253.2+5301_daily_bin785.fits
.....................!
real 11.67
user 11.24
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958421/ft1_filtered_4FGL_J1253.2+5301_daily_bin785.fits evtable="EVENTS" scfile=/scratch/kocevski/958421/ft2_4FGL_J1253.2+5301_daily_bin785.fits sctable="SC_DATA" expcube=/scratch/kocevski/958421/ltcube_442800001_443059201_4FGL_J1253.2+5301_daily_bin785.fits outfile=/scratch/kocevski/958421/expmap_442800001_443059201_4FGL_J1253.2+5301_daily_bin785.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/958421/ltcube_442800001_443059201_4FGL_J1253.2+5301_daily_bin785.fits
.....................!
real 191.42
user 187.28
sys 3.35

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

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

This is gtbin version HEAD
real 0.56
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/958421/ft1_filtered_4FGL_J1253.2+5301_daily_bin785.fits scfile=/scratch/kocevski/958421/ft2_4FGL_J1253.2+5301_daily_bin785.fits outfile=/scratch/kocevski/958421/cmap_HighResolution_442800001_443059201_4FGL_J1253.2+5301_daily_bin785.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.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.2241       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10557E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.9393       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4916       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5859       1.0000         .10000E-03   10000.    
    11 'norm      '    3.7006       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4951       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10600E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    17.549       1.0000         .10000E-03   10000.    
    18 'norm      '    1.9016       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .34823E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.4149       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.5481       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.5407       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    20.374       1.0000         .10000E-03   10000.    
    26 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.2094       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2337       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .69487       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=   5809.762     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     3382 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3431       -.13295E-08** at limit **
   2  norm          3.2193        5.0634        .17076E-06   -.73282E-04
   3  Prefactor     .10000E-03    10.216       -.43631E-05** at limit **
   4  Prefactor     .10000E-03    7.0150       -.45655E-07** at limit **
   5  Prefactor     .10000E-03    28.115       -.24950E-05** at limit **
   6  norm          .10000E-03    1.0552       -.31744E-07** at limit **
   7  Prefactor     .10000E-03    37.425        .60656E-05** at limit **
   8  norm          3.9409        6.2251        .23715E-05   -.15005E-02
   9  Prefactor     7.4797        21.122        .12340E-05    .79475E-04
  10  Prefactor     3.5871        5.5414       -.10174E-05   -.25819E-03
  11  norm          3.7007        2.0877        .91641E-07    .67982E-04
  12  Prefactor     .10000E-03    23.026        .39032E-06** at limit **
  13  norm          1.4949        1.7512        .11622E-07   -.29666E-04
  14  Prefactor     .10000E-03    45.040       -.96026E-05** at limit **
  15  Prefactor     .10000E-03    10.928        .96465E-06** at limit **
  16  Prefactor     .10000E-03    4.3763        .48487E-07** at limit **
  17  norm          17.547        11.137       -.67241E-07    .98948E-04
  18  norm          1.9016        2.5756        .75412E-07    .18763E-03
  19  Prefactor     .10262E-03    28.592       -.19612E-05** at limit **
  20  Prefactor     7.4644        17.021        .41788E-06    .37148E-04
  21  Prefactor     .10000E-03    43.255       -.63183E-05** at limit **
  22  norm          1.5412        2.9575        .93125E-07   -.96770E-05
  23  Prefactor     5.5109        72.432        .50767E-06   -.16257E-05
  24  Prefactor     .10000E-03    10.134        .34021E-05** at limit **
  25  norm          20.373        3.5950        .18918E-07    .41196E-03
  26  norm          .10000E-03    59.333        .64257E-05** at limit **
  27  norm          1.2086        3.2903        .27633E-06   -.24066E-03
  28  Prefactor     .10000E-03    37.259        .63429E-05** at limit **
  29  Normalizat    1.2338        .17249       -.48409E-06    .22428E-03
  30  Prefactor     .69472        .20206        .66911E-07    .10121E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.21935
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.94089
  Prefactor  = 7.47968
  Prefactor  = 3.58708
  norm       = 3.70073
  Prefactor  = 0.0001
  norm       = 1.49491
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.5475
  norm       = 1.9016
  Prefactor  = 0.000102621
  Prefactor  = 7.46441
  Prefactor  = 0.000100001
  norm       = 1.54116
  Prefactor  = 5.51088
  Prefactor  = 0.0001
  norm       = 20.3729
  norm       = 0.000100001
  norm       = 1.20856
  Prefactor  = 0.000100001
  Normalizat = 1.23382
  Prefactor  = 0.694722
 **********
 **   18 **HESSE 
 **********

 FCN=   5809.762     FROM HESSE     STATUS=OK           592 CALLS     3974 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3611        .86239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.2193        5.0422        .20649E-03   -1.5349    
   3  Prefactor     .10000E-03    10.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.0883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.0824        .15276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    37.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.9409        9.2222        .10162E-02   -1.5311    
   9  Prefactor     7.4797        23.573        .14653E-03   -1.5161    
  10  Prefactor     3.5871        5.5534        .21177E-03   -1.5329    
  11  norm          3.7007        2.0878        .79008E-04   -1.5323    
  12  Prefactor     .10000E-03    23.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4949        1.7360        .10567E-03   -1.5463    
  14  Prefactor     .10000E-03    45.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.3932        .15570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          17.547        11.140        .47804E-03   -1.4870    
  18  norm          1.9016        2.5550        .13629E-03   -1.5432    
  19  Prefactor     .10262E-03    32.825        .11172       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.4644        16.869        .14729E-03   -1.5161    
  21  Prefactor     .10000E-03    43.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.5412        2.8909        .16722E-03   -1.5460    
  23  Prefactor     5.5109        72.166        .17068E-03   -1.5238    
  24  Prefactor     .10000E-03    10.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          20.373        3.5963        .58540E-04   -1.4805    
  26  norm          .10000E-03    59.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.2086        3.2671        .21826E-03   -1.5488    
  28  Prefactor     .10000E-03    37.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2338        .19963        .20540E-03   -.85564    
  30  Prefactor     .69472        .23227        .32328E-03   -1.0373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30799e-09
Minuit parameter uncertainties:
  1  4.32569e-08
  2  5.04287
  3  0.000162396
  4  9.16197e-07
  5  0.000140514
  6  2.75577e-08
  7  0.000435812
  8  9.22556
  9  23.6023
  10  5.55419
  11  2.08785
  12  8.60399e-06
  13  1.73602
  14  0.000677374
  15  3.69877e-05
  16  5.7933e-06
  17  11.1409
  18  2.55517
  19  0.0185598
  20  16.8802
  21  0.000380052
  22  2.89116
  23  39.9436
  24  0.000125498
  25  3.59638
  26  0.00056385
  27  3.26756
  28  0.000445623
  29  0.199751
  30  0.232599
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.495e+00  1.736e+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.947e-01  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:  1.234e+00  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.49
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.45e-08 +/- 1.69e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 1.22e-05

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

Saving results to:
/scratch/kocevski/958421/likelihoodResults_442800001_443059201_4FGL_J1253.2+5301_daily_bin785.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) = 5809.76094243
delta logL = 0.000634929078842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5809.76088063
delta logL = 0.000696732397046

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5104       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8878       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2346       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69415       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=   5809.761     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      233 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5103        1.8116        .10636E-03   -.86258E-04
   2  alpha         1.8877        1.1224        .25072E-01    .65890E-05
   3  Normalizat    1.2346        .18996        .20534E-03   -.28811E-04
   4  Prefactor     .69414        .23047        .32341E-03   -.24888E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.5103
  alpha      = 1.88768
  Normalizat = 1.23465
  Prefactor  = 0.694141
 **********
 **   18 **HESSE 
 **********

 FCN=   5809.761     FROM HESSE     STATUS=OK            25 CALLS      258 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5103        1.7902        .42544E-05   -1.5462    
   2  alpha         1.8877        1.1098        .10029E-02   -.24745    
   3  Normalizat    1.2346        .18994        .41069E-04   -.85539    
   4  Prefactor     .69414        .23055        .12936E-04   -1.0376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76009e-11
Minuit parameter uncertainties:
  1  1.79023
  2  1.15273
  3  0.190044
  4  0.230871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958421': 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) = 5809.76088062
delta logL = 0.000696739761224

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.510e+00  1.790e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.888e+00  1.153e+00  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.941e-01  2.309e-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.235e+00  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.49
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.89 +/- 1.15
Photon Flux (Free Index): 1.39e-08 +/- 2.32e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.80e-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/958421/cmap_HighResolution_442800001_443059201_4FGL_J1253.2+5301_daily_bin785.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.49e-05', comment='SUCCESS', photon_flux='1.45e-08', energy_flux2='1.09e-05', photon_flux_error='1.69e-08', dlogl='6.97e-04', energy_flux='1.05e-05', photon_flux2='1.39e-08', job_status='DONE', time_completed='2021-09-06 07:51:06.393469', photon_index_error2='1.15', photon_index2='1.89', ts='1.49', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='6.21e-08', energy_flux_error2='1.80e-05', EG='1.23', time_epoch_completed='1630939866.39', return_code='0', job_id='958421', GAL2='0.69', EG2='1.23', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='2.32e-08', ts2='1.49', photon_index='1.93' WHERE bin_id='785' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:51:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 958421: <4FGL_J1253.2+5301_daily_bin785> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin785> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 07:35:56 2021
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:35:57 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:35:57 2021
Terminated at Mon Sep  6 07:51:07 2021
Results reported at Mon Sep  6 07:51:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin785 193.307 53.0173 442800001 443059201 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 :                                   857.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

