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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin1151
RA = 193.307, Dec = 53.0173
tmin = 537667201, tmax = 537926401
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='958943', job_status='RUN', time_executed='2021-09-06 07:38:21.002609', time_epoch_executed='1630939101.0' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='1151'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958943

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958943/ft1_4FGL_J1253.2+5301_daily_bin1151.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958943/ft2_4FGL_J1253.2+5301_daily_bin1151.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958943/ft1_4FGL_J1253.2+5301_daily_bin1151.fits outfile=/scratch/kocevski/958943/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1151.fits ra=193.307 dec=53.0173 rad=12.0 tmin=537667201.0 tmax=537926401.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 6.61
user 4.73
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958943/ft1_filtered_4FGL_J1253.2+5301_daily_bin1151.fits evtable="EVENTS" scfile=/scratch/kocevski/958943/ft2_4FGL_J1253.2+5301_daily_bin1151.fits sctable="SC_DATA" expcube=/scratch/kocevski/958943/ltcube_537667201_537926401_4FGL_J1253.2+5301_daily_bin1151.fits outfile=/scratch/kocevski/958943/expmap_537667201_537926401_4FGL_J1253.2+5301_daily_bin1151.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/958943/ltcube_537667201_537926401_4FGL_J1253.2+5301_daily_bin1151.fits
.....................!
real 195.75
user 186.00
sys 5.30

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/958943/ft1_filtered_4FGL_J1253.2+5301_daily_bin1151.fits scfile=/scratch/kocevski/958943/ft2_4FGL_J1253.2+5301_daily_bin1151.fits outfile=/scratch/kocevski/958943/cmap_537667201_537926401_4FGL_J1253.2+5301_daily_bin1151.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.77
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/958943/ft1_filtered_4FGL_J1253.2+5301_daily_bin1151.fits scfile=/scratch/kocevski/958943/ft2_4FGL_J1253.2+5301_daily_bin1151.fits outfile=/scratch/kocevski/958943/cmap_HighResolution_537667201_537926401_4FGL_J1253.2+5301_daily_bin1151.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.86
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78379E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5683       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.0537       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.3481       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.615       1.0000         .10000E-03   10000.    
    13 'norm      '    1.0867       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4575       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    48.957       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .87845       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10517E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.7422       1.0000         .10000E-03   10000.    
    23 'Prefactor '    116.50       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.0377       1.0000         .10000E-03   10000.    
    26 'norm      '    13.484       1.0000         .10000E-03   10000.    
    27 'norm      '    .16330E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    39.099       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .68218       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0747       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=   4530.757     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     4615 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15148E-03    16.231        .40329E-05** at limit **
   2  norm          .10000E-03    1.5230        .93353E-07** at limit **
   3  Prefactor     6.5815        12.603        .27627E-06   -.12775E-03
   4  Prefactor     .10000E-03    3.3679        .14462E-06** at limit **
   5  Prefactor     .10000E-03    9.8783        .15937E-06** at limit **
   6  norm          9.0547        3.2171       -.20294E-07   -.26295E-03
   7  Prefactor     .10000E-03    27.067        .11572E-06** at limit **
   8  norm          .10000E-03    4.0910        .18413E-06** at limit **
   9  Prefactor     .10000E-03    12.224        .26271E-06** at limit **
  10  Prefactor     .10000E-03    2.1238        .72918E-07** at limit **
  11  norm          1.3480        1.7479        .18494E-06    .24836E-04
  12  Prefactor     15.616        17.476       -.13810E-06   -.47193E-04
  13  norm          1.0869        1.6408        .55448E-06    .11433E-02
  14  Prefactor     .10000E-03    22.206        .38600E-06** at limit **
  15  Prefactor     6.5449        185.73       -.89627E-06    .30934E-05
  16  Prefactor     .10000E-03    18.578        .79306E-06** at limit **
  17  norm          .10000E-03    13.518        .10981E-05** at limit **
  18  norm          .10000E-03    2.6662        .37208E-06** at limit **
  19  Prefactor     48.956        43.494       -.15452E-05   -.13382E-03
  20  Prefactor     .85762        109.22       -.62816E-05   -.35596E-03
  21  Prefactor     .10001E-03    170.37        .25998E-05** at limit **
  22  norm          8.7420        5.3642       -.23485E-07   -.45260E-03
  23  Prefactor     116.41        68.747        .11690E-05   -.34071E-04
  24  Prefactor     .10000E-03    16.812        .67442E-07** at limit **
  25  norm          3.0380        1.9560       -.39007E-07   -.93236E-04
  26  norm          13.334        62.442        .50500E-05    .74330E-04
  27  norm          .10000E-03    5.1663        .20397E-05** at limit **
  28  Prefactor     39.082        45.769        .24505E-06    .35419E-04
  29  Normalizat    .68232        .17476       -.24691E-06   -.24000E-03
  30  Prefactor     1.0745        .20698        .17888E-06   -.53859E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000151478
  norm       = 0.0001
  Prefactor  = 6.58154
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.05469
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.34798
  Prefactor  = 15.6157
  norm       = 1.0869
  Prefactor  = 0.0001
  Prefactor  = 6.54489
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 48.9561
  Prefactor  = 0.857616
  Prefactor  = 0.000100007
  norm       = 8.74205
  Prefactor  = 116.408
  Prefactor  = 0.0001
  norm       = 3.03799
  norm       = 13.3341
  norm       = 0.000100002
  Prefactor  = 39.0819
  Normalizat = 0.682319
  Prefactor  = 1.07449
 **********
 **   18 **HESSE 
 **********

 FCN=   4530.757     FROM HESSE     STATUS=OK           594 CALLS     5209 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15148E-03    3.5890        .29897E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.5292        .81115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5815        12.612        .15658E-03   -1.5195    
   4  Prefactor     .10000E-03    3.3856        .12062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.8987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.0547        3.2284        .67140E-04   -1.5106    
   7  Prefactor     .10000E-03    27.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.1168        .13292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.1269        .95710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3480        1.7098        .97592E-04   -1.5476    
  12  Prefactor     15.616        17.478        .10136E-03   -1.4917    
  13  norm          1.0869        1.5153        .10897E-02   -1.5499    
  14  Prefactor     .10000E-03    22.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.5449        185.33        .15794E-03   -1.5196    
  16  Prefactor     .10000E-03    18.872        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    13.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.6979        .10748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     48.956        43.054        .57311E-04   -1.4307    
  20  Prefactor     .85762        118.64        .44438E-02   -1.5523    
  21  Prefactor     .10001E-03    175.73        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.7420        5.3761        .10705E-03   -1.5117    
  23  Prefactor     116.41        68.815        .18638E-03   -1.3546    
  24  Prefactor     .10000E-03    16.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.0380        1.9561        .73133E-04   -1.5359    
  26  norm          13.334        60.916        .10908E-03   -1.4977    
  27  norm          .10000E-03    5.2039        .21882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     39.082        45.746        .64100E-04   -1.4457    
  29  Normalizat    .68232        .20686        .23732E-03   -1.0460    
  30  Prefactor     1.0745        .24405        .24463E-03   -.90286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.29072e-09
Minuit parameter uncertainties:
  1  0.0271864
  2  1.74041e-07
  3  12.617
  4  4.87231e-07
  5  2.17976e-07
  6  3.22848
  7  2.20449e-05
  8  4.26565e-06
  9  1.18557e-05
  10  7.55378e-06
  11  1.7099
  12  17.4836
  13  1.51538
  14  8.7841e-05
  15  69.8941
  16  1.49384e-05
  17  6.10455e-05
  18  1.77224e-05
  19  43.0809
  20  20.2134
  21  0.00229604
  22  5.37638
  23  68.8622
  24  7.70229e-05
  25  1.95615
  26  57.0965
  27  0.000188722
  28  45.7866
  29  0.207091
  30  0.244305
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.087e+00  1.515e+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.074e+00  2.443e-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:  6.823e-01  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/958943/likelihoodResults_537667201_537926401_4FGL_J1253.2+5301_daily_bin1151.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) = 4530.60958099
delta logL = 0.147246910256

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4530.59552561
delta logL = 0.161302291477

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85199       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6436       1.0000          .0000       5.0000    
     3 'Normalizat'    .66656       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0836       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=   4530.596     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      212 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85231        22.310        .12632E-01    .99913E-03
   2  alpha         2.6438        3.6499        .31173        .21236E-04
   3  Normalizat    .66656        .41793E-01    .41842E-01    .19289E-04
   4  Prefactor     1.0836        .50073E-01    .55106E-01    .69431E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.852311
  alpha      = 2.64385
  Normalizat = 0.666561
  Prefactor  = 1.08355
 **********
 **   18 **HESSE 
 **********

 FCN=   4530.596     FROM HESSE     STATUS=OK            35 CALLS      247 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85231        1.7313        .71064E-03   -1.5523    
   2  alpha         2.6438        1.4258        .16217E-01    .57571E-01
   3  Normalizat    .66656        .19315        .23979E-03   -1.0523    
   4  Prefactor     1.0836        .24224        .24365E-03   -.89994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36878e-10
Minuit parameter uncertainties:
  1  1.73143
  2  1.51765
  3  0.193346
  4  0.242483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958943': 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) = 4530.59552541
delta logL = 0.161302490684

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  8.523e-01  1.731e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.644e+00  1.518e+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:  1.084e+00  2.425e-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:  6.666e-01  1.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 193.307 53.017
Photon Index (Free Index): 2.64 +/- 1.52
Photon Flux (Free Index): 2.53e-08 +/- 3.87e-08
Energy Flux (Free Index): 7.02e-06 +/- 8.26e-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/958943/cmap_HighResolution_537667201_537926401_4FGL_J1253.2+5301_daily_bin1151.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-05', comment='SUCCESS', energy_flux2='7.02e-06', dlogl='1.61e-01', photon_flux2='2.53e-08', job_status='DONE', time_completed='2021-09-06 07:53:09.284435', photon_index_error2='1.52', photon_index2='2.64', ts='0.98', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='5.73e-08', energy_flux_error2='8.26e-06', EG='0.68', time_epoch_completed='1630939989.28', return_code='0', job_id='958943', GAL2='1.08', EG2='0.67', return_code2='0', photon_flux_error2='3.87e-08', ts2='1.30', photon_index='1.93' WHERE bin_id='1151' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:53:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 958943: <4FGL_J1253.2+5301_daily_bin1151> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin1151 193.307 53.0173 537667201 537926401 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 :                                   828.13 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             256.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            997 sec.

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

