aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 224 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7460
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1253.2+5301_daily_bin1711
RA = 193.307, Dec = 53.0173
tmin = 682819201, tmax = 683078401
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='123333', job_status='RUN', time_executed='2022-09-16 17:05:24.722021', time_epoch_executed='1663373124.72' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='1711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/123333

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/123333/ft1_4FGL_J1253.2+5301_daily_bin1711.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/123333/ft2_4FGL_J1253.2+5301_daily_bin1711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/123333/ft1_4FGL_J1253.2+5301_daily_bin1711.fits outfile=/scratch/kocevski/123333/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1711.fits ra=193.307 dec=53.0173 rad=12.0 tmin=682819201.0 tmax=683078401.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 4.67
user 4.36
sys 0.26

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

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

Number of photons that the gtmktime cut: 561

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/123333/ft1_filtered_4FGL_J1253.2+5301_daily_bin1711.fits" evtable="EVENTS" scfile=/scratch/kocevski/123333/ft2_4FGL_J1253.2+5301_daily_bin1711.fits sctable="SC_DATA" outfile=/scratch/kocevski/123333/ltcube_682819201_683078401_4FGL_J1253.2+5301_daily_bin1711.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/123333/ft2_4FGL_J1253.2+5301_daily_bin1711.fits
.....................!
real 14.16
user 13.64
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/123333/ft1_filtered_4FGL_J1253.2+5301_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/123333/ft2_4FGL_J1253.2+5301_daily_bin1711.fits sctable="SC_DATA" expcube=/scratch/kocevski/123333/ltcube_682819201_683078401_4FGL_J1253.2+5301_daily_bin1711.fits outfile=/scratch/kocevski/123333/expmap_682819201_683078401_4FGL_J1253.2+5301_daily_bin1711.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/123333/ltcube_682819201_683078401_4FGL_J1253.2+5301_daily_bin1711.fits
.....................!
real 191.50
user 185.90
sys 5.02

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/123333/ft1_filtered_4FGL_J1253.2+5301_daily_bin1711.fits scfile=/scratch/kocevski/123333/ft2_4FGL_J1253.2+5301_daily_bin1711.fits outfile=/scratch/kocevski/123333/cmap_682819201_683078401_4FGL_J1253.2+5301_daily_bin1711.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/123333/ft1_filtered_4FGL_J1253.2+5301_daily_bin1711.fits scfile=/scratch/kocevski/123333/ft2_4FGL_J1253.2+5301_daily_bin1711.fits outfile=/scratch/kocevski/123333/cmap_HighResolution_682819201_683078401_4FGL_J1253.2+5301_daily_bin1711.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.58
user 0.39
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/123333/ft1_filtered_4FGL_J1253.2+5301_daily_bin1711.fits', '/scratch/kocevski/123333/ft2_4FGL_J1253.2+5301_daily_bin1711.fits', expMap='/scratch/kocevski/123333/expmap_682819201_683078401_4FGL_J1253.2+5301_daily_bin1711.fits', expCube='/scratch/kocevski/123333/ltcube_682819201_683078401_4FGL_J1253.2+5301_daily_bin1711.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/123333/Model_4FGL_J1253.2+5301_daily_bin1711.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  0.000e+00  1.000e+06 ( 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 -5.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/123333/ft1_filtered_4FGL_J1253.2+5301_daily_bin1711.fits
Spacecraft file(s): /scratch/kocevski/123333/ft2_4FGL_J1253.2+5301_daily_bin1711.fits
Exposure map: /scratch/kocevski/123333/expmap_682819201_683078401_4FGL_J1253.2+5301_daily_bin1711.fits
Exposure cube: /scratch/kocevski/123333/ltcube_682819201_683078401_4FGL_J1253.2+5301_daily_bin1711.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/123333/Model_4FGL_J1253.2+5301_daily_bin1711.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) = 6212.69406517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63540       1.0000          .0000       .10000E+07
     2 'norm      '    1.6010       1.0000          .0000       .10000E+07
     3 'Prefactor '    .17964E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .78233E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .42546E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .33140E-05   1.0000          .0000       .10000E+07
     7 'norm      '    .37170E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .23182E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.1422       1.0000          .0000       .10000E+07
    10 'norm      '    2.7011       1.0000          .0000       .10000E+07
    11 'Prefactor '    .49492E-02   1.0000          .0000       .10000E+07
    12 'norm      '    1.7944       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.9331       1.0000          .0000       .10000E+07
    14 'Prefactor '    .33418E-07   1.0000          .0000       .10000E+07
    15 'norm      '    .87348E-05   1.0000          .0000       .10000E+07
    16 'norm      '    .58563       1.0000          .0000       .10000E+07
    17 'Prefactor '    19.580       1.0000          .0000       .10000E+07
    18 'Prefactor '    .63056E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .13201E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .21033E-04   1.0000          .0000       .10000E+07
    21 'norm      '    1.6869       1.0000          .0000       .10000E+07
    22 'norm      '    4.6219       1.0000          .0000       .10000E+07
    23 'Prefactor '    .18382E-02   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.0763       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97263       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6212.616     FROM MIGRAD    STATUS=CONVERGED    191 CALLS     1723 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62602        1.9663       -.24901E-06   -.12331E-03
   2  norm          1.6381        4.3884       -.26963E-06   -.36939E-03
   3  Prefactor     .86875E-07    6.9986        .46996E-06** at limit **
   4  Prefactor     .38303E-08    6.7715       -.19392E-06** at limit **
   5  Prefactor     .17319E-07    88.931        .40634E-06** at limit **
   6  norm           .0000        2.7034        .60938E-07** at limit **
   7  norm          .41278E-06    3.5067       -.19771E-07** at limit **
   8  Prefactor     .16098E-08    5.8113       -.44581E-06** at limit **
   9  Prefactor     4.1572        3.6397        .73116E-07   -.19667E-03
  10  norm          2.7003        1.5521       -.96684E-08    .11842E-02
  11  Prefactor     .30032E-07    10.429        .14915E-06** at limit **
  12  norm          1.7968        1.4717        .15394E-07   -.12704E-02
  13  Prefactor     1.5942        13.704       -.58385E-06   -.20374E-03
  14  Prefactor      .0000        1.8093       -.17105E-06** at limit **
  15  norm          .60008E-07    8.1335        .32047E-06** at limit **
  16  norm          .56230        6.0380        .13287E-05    .60446E-03
  17  Prefactor     20.931        26.360        .35126E-06   -.81021E-02
  18  Prefactor     .35527E-07    56.984        .21326E-05** at limit **
  19  norm          .55511E-10    2.4317       -.21916E-06** at limit **
  20  Prefactor     .26423E-07    16.146       -.14228E-05** at limit **
  21  norm          1.6819        1.7281       -.10040E-06    .35667E-03
  22  norm          4.6515        3.6596        .41008E-07    .25671E-03
  23  Prefactor     .34472E-07    17.536       -.54472E-06** at limit **
  24  Normalizat    1.0751        .17967        .32897E-06   -.69354E-04
  25  Prefactor     .97323        .22157       -.10386E-06   -.56341E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.626022
  norm       = 1.63809
  Prefactor  = 8.6875e-08
  Prefactor  = 3.83027e-09
  Prefactor  = 1.73195e-08
  norm       = 0
  norm       = 4.12781e-07
  Prefactor  = 1.60982e-09
  Prefactor  = 4.15721
  norm       = 2.70033
  Prefactor  = 3.00315e-08
  norm       = 1.79676
  Prefactor  = 1.59417
  Prefactor  = 0
  norm       = 6.00076e-08
  norm       = 0.562303
  Prefactor  = 20.9313
  Prefactor  = 3.55271e-08
  norm       = 5.55112e-11
  Prefactor  = 2.64233e-08
  norm       = 1.68187
  norm       = 4.65155
  Prefactor  = 3.44724e-08
  Normalizat = 1.07512
  Prefactor  = 0.973225
 **********
 **   18 **HESSE 
 **********

 FCN=   6212.616     FROM HESSE     STATUS=OK           473 CALLS     2196 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62602        1.9875        .66115E-03   -1.5692    
   2  norm          1.6381        4.4167        .83751E-03   -1.5682    
   3  Prefactor     .86875E-07    8.1948        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .38303E-08    6.8150        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .17319E-07    88.583        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        2.6528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .41278E-06    9.0487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .16098E-08    5.8387        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1572        3.6428        .49502E-03   -1.5667    
  10  norm          2.7003        1.5496        .61956E-03   -1.5675    
  11  Prefactor     .30032E-07    10.837        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7968        1.4685        .78036E-03   -1.5681    
  13  Prefactor     1.5942        109.40        .74666E-03   -1.5683    
  14  Prefactor      .0000        1.8116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .60008E-07    8.9634        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .56230        6.0367        .70525E-03   -1.5693    
  17  Prefactor     20.931        29.043        .22607E-03   -1.5616    
  18  Prefactor     .35527E-07    57.405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .55511E-10    2.4185        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .26423E-07    16.480        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.6819        1.7444        .81038E-03   -1.5682    
  22  norm          4.6515        3.6608        .46793E-03   -1.5665    
  23  Prefactor     .34472E-07    18.046        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0751        .15506        .39057E-01   -.90555    
  25  Prefactor     .97323        .19139        .45924E-01   -.93627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17161e-07
Minuit parameter uncertainties:
  1  1.98753
  2  4.4167
  3  0.00168733
  4  0.000324199
  5  0.00247652
  6  7.35242e-06
  7  0.00386536
  8  0.000195362
  9  3.64276
  10  1.54958
  11  0.00114088
  12  1.46855
  13  26.4134
  14  1.11377e-05
  15  0.00146699
  16  3.68482
  17  29.0431
  18  0.00285692
  19  2.76841e-05
  20  0.00132027
  21  1.74435
  22  3.66079
  23  0.00157742
  24  0.155125
  25  0.191528
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.797e+00  1.469e+00  0.000e+00  1.000e+06 ( 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 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  9.732e-01  1.915e-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.075e+00  1.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.28
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.74e-08 +/- 1.43e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.03e-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) = 6212.57985506
delta logL = 0.036580529546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6212.57066686
delta logL = 0.0457687290091

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5436       1.0000          .0000       .10000E+07
     2 'alpha     '    1.5776       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0818       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97077       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=   6212.571     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      200 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5429        1.6917        .85756E-03   -.15887E-02
   2  alpha         1.5770        .83332        .45413       -.34440E-04
   3  Normalizat    1.0818        .15432        .38794E-01    .72374E-05
   4  Prefactor     .97077        .19002        .45901E-01    .12862E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.54288
  alpha      = 1.57698
  Normalizat = 1.08181
  Prefactor  = 0.970773
 **********
 **   18 **HESSE 
 **********

 FCN=   6212.571     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5429        1.8159        .85561E-05   -1.5683    
   2  alpha         1.5770        1.0766        .22684E-01   -.37815    
   3  Normalizat    1.0818        .17762        .21169E-03   -.90338    
   4  Prefactor     .97077        .22004        .27495E-03   -.93710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45055e-09
Minuit parameter uncertainties:
  1  1.81591
  2  1.11936
  3  0.177721
  4  0.220239
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/123333': 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) = 6212.57066671
delta logL = 0.0457688807774

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.543e+00  1.816e+00  0.000e+00  1.000e+06 ( 1.000e-12)
334        alpha:  1.577e+00  1.119e+00  0.000e+00  5.000e+00 ( 1.000e+00)
335         beta:  8.810e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  9.708e-01  2.202e-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.082e+00  1.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.37
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.58 +/- 1.12
Photon Flux (Free Index): 1.02e-08 +/- 1.96e-08
Energy Flux (Free Index): 1.66e-05 +/- 2.44e-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/123333/cmap_HighResolution_682819201_683078401_4FGL_J1253.2+5301_daily_bin1711.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.74e-08', energy_flux2='1.66e-05', photon_flux_error='1.43e-08', dlogl='4.58e-02', energy_flux='1.26e-05', photon_flux2='1.02e-08', job_status='DONE', time_completed='2022-09-16 17:15:22.694040', photon_index_error2='1.12', photon_index2='1.58', ts='7.28', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='2.44e-05', EG='1.08', time_epoch_completed='1663373722.69', return_code='0', job_id='123333', GAL2='0.97', EG2='1.08', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='1.96e-08', ts2='7.37', photon_index='1.93' WHERE bin_id='1711' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:15:22 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 123333: <4FGL_J1253.2+5301_daily_bin1711> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin1711> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 17:00:20 2022
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:01:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 17:01:31 2022
Terminated at Fri Sep 16 17:15:23 2022
Results reported at Fri Sep 16 17:15:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin1711 193.307 53.0173 682819201 683078401 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 :                                   599.55 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            903 sec.

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

