/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 50 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 = 5933
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1253.2+5301_daily_bin1081
RA = 193.307, Dec = 53.0173
tmin = 519523201, tmax = 519782401
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='958845', job_status='RUN', time_executed='2021-09-06 07:38:15.413276', time_epoch_executed='1630939095.41' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958845

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958845/ft1_4FGL_J1253.2+5301_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958845/ft2_4FGL_J1253.2+5301_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958845/ft1_4FGL_J1253.2+5301_daily_bin1081.fits outfile=/scratch/kocevski/958845/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1081.fits ra=193.307 dec=53.0173 rad=12.0 tmin=519523201.0 tmax=519782401.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.42
user 2.73
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/958845/ft1_filtered_4FGL_J1253.2+5301_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/958845/ft2_4FGL_J1253.2+5301_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/958845/ltcube_519523201_519782401_4FGL_J1253.2+5301_daily_bin1081.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/958845/ft2_4FGL_J1253.2+5301_daily_bin1081.fits
.....................!
real 10.29
user 9.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958845/ft1_filtered_4FGL_J1253.2+5301_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/958845/ft2_4FGL_J1253.2+5301_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/958845/ltcube_519523201_519782401_4FGL_J1253.2+5301_daily_bin1081.fits outfile=/scratch/kocevski/958845/expmap_519523201_519782401_4FGL_J1253.2+5301_daily_bin1081.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/958845/ltcube_519523201_519782401_4FGL_J1253.2+5301_daily_bin1081.fits
.....................!
real 197.86
user 185.66
sys 4.87

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/958845/ft1_filtered_4FGL_J1253.2+5301_daily_bin1081.fits scfile=/scratch/kocevski/958845/ft2_4FGL_J1253.2+5301_daily_bin1081.fits outfile=/scratch/kocevski/958845/cmap_519523201_519782401_4FGL_J1253.2+5301_daily_bin1081.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.85
user 0.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8256       1.0000         .10000E-03   10000.    
     2 'norm      '    3.2101       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3540       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11138E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20944E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.172       1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.075       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.3662       1.0000         .10000E-03   10000.    
    11 'norm      '    .10721E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .43271E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    3.5204       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.607       1.0000         .10000E-03   10000.    
    15 'Prefactor '    75.114       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10355E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.478       1.0000         .10000E-03   10000.    
    22 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    66.976       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.6279       1.0000         .10000E-03   10000.    
    25 'norm      '    8.5323       1.0000         .10000E-03   10000.    
    26 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.8437       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4125       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .35113       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=   5469.606     FROM MIGRAD    STATUS=CONVERGED    803 CALLS     3942 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8247        3.6825       -.22192E-06   -.24343E-04
   2  norm          3.2092        3.7930        .20593E-06   -.13844E-03
   3  Prefactor     3.3521        16.226       -.13443E-05   -.88974E-04
   4  Prefactor     .10000E-03    7.2582        .39023E-06** at limit **
   5  Prefactor     .10000E-03    39.990       -.42126E-07** at limit **
   6  norm          10.170        3.1657       -.31253E-06   -.16606E-02
   7  Prefactor     37.032        51.714       -.24837E-04    .27782E-05
   8  norm          .10000E-03    2.3472       -.30623E-07** at limit **
   9  Prefactor     .10000E-03    9.1232        .29762E-07** at limit **
  10  Prefactor     8.3698        7.3485       -.11184E-05   -.27276E-03
  11  norm          .10000E-03    1.6141        .36587E-06** at limit **
  12  Prefactor     .10618E-03    14.291        .15321E-05** at limit **
  13  norm          3.5200        2.0888       -.12422E-06   -.46930E-04
  14  Prefactor     18.600        33.998       -.17828E-05    .67525E-05
  15  Prefactor     75.117        72.504       -.34936E-05   -.18730E-04
  16  Prefactor     .10000E-03    4.7113        .32714E-07** at limit **
  17  norm          .10000E-03    54.554        .41336E-05** at limit **
  18  norm          .10000E-03    .79191       -.13325E-07** at limit **
  19  Prefactor     .10000E-03    8.1871       -.72411E-08** at limit **
  20  Prefactor     .10000E-03    9.8347       -.54382E-06** at limit **
  21  Prefactor     33.473        30.202       -.22531E-05    .10617E-04
  22  norm          .10000E-03    1.0388       -.57836E-07** at limit **
  23  Prefactor     66.984        62.305        .19540E-04    .10570E-03
  24  Prefactor     4.4606        95.180       -.89061E-04   -.19452E-04
  25  norm          8.5317        2.8223       -.91769E-07    .74831E-04
  26  norm          .10000E-03    96.317       -.13153E-04** at limit **
  27  norm          3.8438        4.2403        .46985E-06    .67213E-04
  28  Prefactor     .10000E-03    24.607        .87445E-08** at limit **
  29  Normalizat    1.4129        .19745        .40383E-05   -.17159E-03
  30  Prefactor     .35094        .22115       -.16833E-05    .16992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.8247
  norm       = 3.20916
  Prefactor  = 3.35212
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 10.1703
  Prefactor  = 37.0318
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.36982
  norm       = 0.0001
  Prefactor  = 0.000106179
  norm       = 3.51997
  Prefactor  = 18.5995
  Prefactor  = 75.1165
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.4731
  norm       = 0.0001
  Prefactor  = 66.9845
  Prefactor  = 4.46063
  norm       = 8.53174
  norm       = 0.0001
  norm       = 3.84384
  Prefactor  = 0.0001
  Normalizat = 1.41285
  Prefactor  = 0.350943
 **********
 **   18 **HESSE 
 **********

 FCN=   5469.606     FROM HESSE     STATUS=OK           594 CALLS     4536 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8247        3.6663        .10365E-03   -1.5225    
   2  norm          3.2092        3.7767        .15078E-03   -1.5350    
   3  Prefactor     3.3521        16.038        .22098E-03   -1.5342    
   4  Prefactor     .10000E-03    7.3578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    40.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.170        3.1856        .34735E-03   -1.5070    
   7  Prefactor     37.032        51.596        .65822E-04   -1.4490    
   8  norm          .10000E-03    2.3581        .11064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.1540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.3698        6.9960        .13860E-03   -1.5129    
  11  norm          .10000E-03    2.7028        .17270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10618E-03    16.305        .83841E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.5200        2.0875        .79821E-04   -1.5333    
  14  Prefactor     18.600        33.995        .92850E-04   -1.4845    
  15  Prefactor     75.117        72.612        .46328E-04   -1.3972    
  16  Prefactor     .10000E-03    4.7288        .15673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    56.455        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .79273        .64272E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.1889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.8879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     33.473        30.187        .69256E-04   -1.4550    
  22  norm          .10000E-03    1.0412        .73608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     66.984        62.598        .49043E-04   -1.4069    
  24  Prefactor     4.4606        95.989        .18709E-03   -1.5286    
  25  norm          8.5317        2.8241        .68495E-04   -1.5124    
  26  norm          .10000E-03    96.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.8438        4.2224        .15126E-03   -1.5316    
  28  Prefactor     .10000E-03    24.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.4129        .20529        .19456E-03   -.80258    
  30  Prefactor     .35094        .22157        .43097E-03   -1.1939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2259e-09
Minuit parameter uncertainties:
  1  3.66643
  2  3.77699
  3  14.6705
  4  0.000102835
  5  0.000862185
  6  3.1857
  7  51.6581
  8  6.80437e-06
  9  2.67029e-05
  10  6.99669
  11  5.95719e-05
  12  0.0200797
  13  2.08752
  14  34.0304
  15  72.6978
  16  6.96258e-06
  17  0.000128768
  18  1.28248e-06
  19  4.39856e-06
  20  9.33311e-05
  21  30.2011
  22  5.8245e-06
  23  62.6594
  24  41.46
  25  2.82419
  26  0.000128512
  27  4.22277
  28  2.03802e-05
  29  0.205414
  30  0.222107
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  3.520e+00  2.088e+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:  3.509e-01  2.221e-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.413e+00  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.52
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 3.42e-08 +/- 2.03e-08
Energy Flux (Fixed Index): 2.47e-05 +/- 1.46e-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) = 5469.29721412
delta logL = 0.309145873711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5469.29427825
delta logL = 0.312081741337

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7505       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4230       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3859       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .36922       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=   5469.294     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      296 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7504        2.2035        .63258E-04    .17073E-04
   2  alpha         2.4225        .66568        .10149E-01   -.11282E-04
   3  Normalizat    1.3863        .19340        .19598E-03    .82479E-04
   4  Prefactor     .36878        .22211        .42083E-03    .11157E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.75042
  alpha      = 2.42246
  Normalizat = 1.38634
  Prefactor  = 0.368776
 **********
 **   18 **HESSE 
 **********

 FCN=   5469.294     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7504        2.0844        .25303E-05   -1.5376    
   2  alpha         2.4225        .62988        .40595E-03   -.31020E-01
   3  Normalizat    1.3863        .19293        .39195E-04   -.81025    
   4  Prefactor     .36878        .22184        .16833E-04   -1.1843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47314e-11
Minuit parameter uncertainties:
  1  2.08447
  2  0.636746
  3  0.193028
  4  0.222357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958845': 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) = 5469.29427475
delta logL = 0.312085242226

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.750e+00  2.084e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.422e+00  6.367e-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:  3.688e-01  2.224e-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.386e+00  1.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.10
Ra Dec: 193.307 53.017
Photon Index (Free Index): 2.42 +/- 0.64
Photon Flux (Free Index): 5.58e-08 +/- 4.16e-08
Energy Flux (Free Index): 1.91e-05 +/- 1.08e-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/958845/cmap_HighResolution_519523201_519782401_4FGL_J1253.2+5301_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.42e-08', energy_flux2='1.91e-05', photon_flux_error='2.03e-08', dlogl='3.12e-01', energy_flux='2.47e-05', photon_flux2='5.58e-08', job_status='DONE', time_completed='2021-09-06 07:52:14.556265', photon_index_error2='0.64', photon_index2='2.42', ts='7.52', fit_tolerance='1e-08', GAL='0.35', photon_index_error='0.00', energy_flux_error2='1.08e-05', EG='1.41', time_epoch_completed='1630939934.56', return_code='0', job_id='958845', GAL2='0.37', EG2='1.39', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='4.16e-08', ts2='8.10', photon_index='1.93' WHERE bin_id='1081' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:52:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 958845: <4FGL_J1253.2+5301_daily_bin1081> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin1081> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 07:36:27 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:36:29 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:36:29 2021
Terminated at Mon Sep  6 07:52:15 2021
Results reported at Mon Sep  6 07:52:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin1081 193.307 53.0173 519523201 519782401 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 :                                   796.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             294.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            948 sec.

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

