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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin20
RA = 193.307, Dec = 53.0173
tmin = 244512001, tmax = 244771201
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='952282', job_status='RUN', time_executed='2021-09-06 07:20:12.792901', time_epoch_executed='1630938012.79' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='20'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952282

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952282/ft1_4FGL_J1253.2+5301_daily_bin20.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952282/ft2_4FGL_J1253.2+5301_daily_bin20.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952282/ft1_4FGL_J1253.2+5301_daily_bin20.fits outfile=/scratch/kocevski/952282/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin20.fits ra=193.307 dec=53.0173 rad=12.0 tmin=244512001.0 tmax=244771201.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.44
user 1.26
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/952282/ft2_4FGL_J1253.2+5301_daily_bin20.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/952282/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin20.fits evtable="EVENTS" outfile="/scratch/kocevski/952282/ft1_filtered_4FGL_J1253.2+5301_daily_bin20.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/952282/ft1_filtered_4FGL_J1253.2+5301_daily_bin20.fits" evtable="EVENTS" scfile=/scratch/kocevski/952282/ft2_4FGL_J1253.2+5301_daily_bin20.fits sctable="SC_DATA" outfile=/scratch/kocevski/952282/ltcube_244512001_244771201_4FGL_J1253.2+5301_daily_bin20.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/952282/ft2_4FGL_J1253.2+5301_daily_bin20.fits
.....................!
real 13.26
user 12.88
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952282/ft1_filtered_4FGL_J1253.2+5301_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/952282/ft2_4FGL_J1253.2+5301_daily_bin20.fits sctable="SC_DATA" expcube=/scratch/kocevski/952282/ltcube_244512001_244771201_4FGL_J1253.2+5301_daily_bin20.fits outfile=/scratch/kocevski/952282/expmap_244512001_244771201_4FGL_J1253.2+5301_daily_bin20.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/952282/ltcube_244512001_244771201_4FGL_J1253.2+5301_daily_bin20.fits
.....................!
real 189.86
user 185.18
sys 4.31

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/952282/ft1_filtered_4FGL_J1253.2+5301_daily_bin20.fits scfile=/scratch/kocevski/952282/ft2_4FGL_J1253.2+5301_daily_bin20.fits outfile=/scratch/kocevski/952282/cmap_244512001_244771201_4FGL_J1253.2+5301_daily_bin20.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/952282/ft1_filtered_4FGL_J1253.2+5301_daily_bin20.fits scfile=/scratch/kocevski/952282/ft2_4FGL_J1253.2+5301_daily_bin20.fits outfile=/scratch/kocevski/952282/cmap_HighResolution_244512001_244771201_4FGL_J1253.2+5301_daily_bin20.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1473       1.0000         .10000E-03   10000.    
     2 'norm      '    .10273E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.0037       1.0000         .10000E-03   10000.    
     7 'Prefactor '    122.52       1.0000         .10000E-03   10000.    
     8 'norm      '    18.711       1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.375       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8085       1.0000         .10000E-03   10000.    
    11 'norm      '    10.408       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11096E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.9292       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10398E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .41402E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    36.099       1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.108       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.4440       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    126.97       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.8934       1.0000         .10000E-03   10000.    
    28 'Prefactor '    37.824       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3983       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .53962       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=   4521.618     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     3968 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1490        4.8013       -.13753E-07    .47273E-06
   2  norm          .10000E-03    4.8837        .23054E-06** at limit **
   3  Prefactor     .10000E-03    9.3145       -.62838E-07** at limit **
   4  Prefactor     .10000E-03    4.5398        .16378E-06** at limit **
   5  Prefactor     .10000E-03    9.0278        .12289E-06** at limit **
   6  norm          5.0057        3.4185       -.52092E-08   -.12467E-04
   7  Prefactor     122.55        89.411        .11039E-06    .37494E-04
   8  norm          18.717        13.724        .35491E-07    .11383E-04
   9  Prefactor     38.346        47.161       -.25247E-06   -.44177E-04
  10  Prefactor     4.8100        9.4831        .26893E-06   -.12190E-04
  11  norm          10.408        4.5983       -.35831E-07   -.16531E-04
  12  Prefactor     .10000E-03    25.090       -.75737E-06** at limit **
  13  norm          5.9296        3.4189        .87237E-08    .94589E-05
  14  Prefactor     .10000E-03    52.946        .27212E-06** at limit **
  15  Prefactor     .10000E-03    51.475       -.14077E-06** at limit **
  16  Prefactor     .10000E-03    30.218        .57782E-06** at limit **
  17  norm          .10000E-03    5.6557       -.28499E-07** at limit **
  18  norm          .10009E-03    4.1143       -.45153E-06** at limit **
  19  Prefactor     36.071        45.595        .19299E-05   -.13875E-04
  20  Prefactor     39.114        27.742       -.11613E-05    .22675E-04
  21  Prefactor     .10000E-03    27.851       -.93561E-06** at limit **
  22  norm          8.4437        7.0552        .17055E-05   -.14141E-03
  23  Prefactor     .10000E-03    44.618        .50696E-06** at limit **
  24  Prefactor     127.02        80.048       -.10227E-06    .81600E-04
  25  norm          .10000E-03    1.2373       -.16965E-06** at limit **
  26  norm          .10000E-03    44.507       -.14583E-06** at limit **
  27  norm          1.8932        3.7305        .39364E-06   -.28097E-04
  28  Prefactor     37.826        38.366       -.65416E-07    .24115E-05
  29  Normalizat    1.3975        .23153        .22196E-06    .62469E-04
  30  Prefactor     .54031        .25302        .45479E-06    .15301E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.14902
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.00569
  Prefactor  = 122.547
  norm       = 18.7173
  Prefactor  = 38.3459
  Prefactor  = 4.80996
  norm       = 10.4081
  Prefactor  = 0.0001
  norm       = 5.92959
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100086
  Prefactor  = 36.0707
  Prefactor  = 39.1136
  Prefactor  = 0.0001
  norm       = 8.44371
  Prefactor  = 0.0001
  Prefactor  = 127.018
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.89316
  Prefactor  = 37.8255
  Normalizat = 1.39754
  Prefactor  = 0.540311
 **********
 **   18 **HESSE 
 **********

 FCN=   4521.618     FROM HESSE     STATUS=OK           594 CALLS     4562 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1490        4.8014        .10242E-03   -1.5103    
   2  norm          .10000E-03    4.9397        .14498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.3214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.5484        .13988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.0286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.0057        3.4322        .97150E-04   -1.5260    
   7  Prefactor     122.55        89.419        .18181E-03   -1.3489    
   8  norm          18.717        13.705        .92591E-04   -1.4842    
   9  Prefactor     38.346        47.499        .64700E-04   -1.4469    
  10  Prefactor     4.8100        9.4714        .18346E-03   -1.5269    
  11  norm          10.408        4.5977        .86725E-04   -1.5063    
  12  Prefactor     .10000E-03    25.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.9296        3.4190        .91182E-04   -1.5221    
  14  Prefactor     .10000E-03    53.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    51.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.6570        .15619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10009E-03    10.615        .42163E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     36.071        46.910        .66702E-04   -1.4506    
  20  Prefactor     39.114        27.726        .64094E-04   -1.4456    
  21  Prefactor     .10000E-03    27.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.4437        6.9649        .68978E-03   -1.5127    
  23  Prefactor     .10000E-03    44.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     127.02        80.098        .17863E-03   -1.3449    
  25  norm          .10000E-03    1.2887        .14614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    44.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.8932        3.6877        .17459E-03   -1.5433    
  28  Prefactor     37.826        38.366        .65169E-04   -1.4477    
  29  Normalizat    1.3975        .27079        .22474E-03   -.80700    
  30  Prefactor     .54031        .28606        .39942E-03   -1.1016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36456e-10
Minuit parameter uncertainties:
  1  4.80157
  2  7.08615e-06
  3  5.02075e-07
  4  3.56757e-06
  5  4.23959e-06
  6  3.43234
  7  89.5181
  8  13.7075
  9  47.5457
  10  9.47435
  11  4.59787
  12  2.73344e-05
  13  3.41911
  14  9.05422e-05
  15  5.12896e-05
  16  3.35881e-05
  17  5.89305e-07
  18  0.00191608
  19  46.9584
  20  27.7354
  21  4.32555e-06
  22  6.96552
  23  0.000140096
  24  80.1664
  25  1.9063e-06
  26  0.000102855
  27  3.68811
  28  38.3906
  29  0.271071
  30  0.286828
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  5.930e+00  3.419e+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:  5.403e-01  2.868e-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.398e+00  2.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.91
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 5.76e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 4.16e-05 +/- 2.40e-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) = 4521.48297445
delta logL = 0.135151433303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4521.47998538
delta logL = 0.138140497093

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7768       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6187       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4168       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52882       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=   4521.480     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7773        3.8677        .41776E-02    .83267E-04
   2  alpha         1.6188        .52872        .33887       -.21318E-04
   3  Normalizat    1.4168        .22036        .50564E-01   -.61638E-06
   4  Prefactor     .52883        .25340        .91062E-01    .27752E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.77729
  alpha      = 1.6188
  Normalizat = 1.41681
  Prefactor  = 0.528826
 **********
 **   18 **HESSE 
 **********

 FCN=   4521.480     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7773        3.5718        .93443E-04   -1.5227    
   2  alpha         1.6188        .55441        .13023E-01   -.36022    
   3  Normalizat    1.4168        .24505        .22354E-03   -.80144    
   4  Prefactor     .52883        .28233        .40357E-03   -1.1067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80471e-12
Minuit parameter uncertainties:
  1  3.57196
  2  0.559736
  3  0.245258
  4  0.283088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952282': 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) = 4521.47998537
delta logL = 0.138140511874

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  5.777e+00  3.572e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.619e+00  5.597e-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:  5.288e-01  2.831e-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.417e+00  2.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.18
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.62 +/- 0.56
Photon Flux (Free Index): 3.96e-08 +/- 3.56e-08
Energy Flux (Free Index): 5.79e-05 +/- 5.43e-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/952282/cmap_HighResolution_244512001_244771201_4FGL_J1253.2+5301_daily_bin20.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.76e-08', energy_flux2='5.79e-05', photon_flux_error='3.32e-08', dlogl='1.38e-01', energy_flux='4.16e-05', photon_flux2='3.96e-08', job_status='DONE', time_completed='2021-09-06 07:31:44.578833', photon_index_error2='0.56', photon_index2='1.62', ts='14.91', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', energy_flux_error2='5.43e-05', EG='1.40', time_epoch_completed='1630938704.58', return_code='0', job_id='952282', GAL2='0.53', EG2='1.42', return_code2='0', energy_flux_error='2.40e-05', photon_flux_error2='3.56e-08', ts2='15.18', photon_index='1.93' WHERE bin_id='20' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:31:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 952282: <4FGL_J1253.2+5301_daily_bin20> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin20 193.307 53.0173 244512001 244771201 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 :                                   691.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             265.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            938 sec.

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

