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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin1769
RA = 253.474, Dec = 39.7595
tmin = 697852801, tmax = 698112001
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='439775', job_status='RUN', time_executed='2023-02-15 01:07:48.689948', time_epoch_executed='1676452068.69' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='1769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/439775

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/439775/ft1_4FGL_J1653.8+3945_daily_bin1769.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/439775/ft2_4FGL_J1653.8+3945_daily_bin1769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/439775/ft1_4FGL_J1653.8+3945_daily_bin1769.fits outfile=/scratch/kocevski/439775/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1769.fits ra=253.474 dec=39.7595 rad=12.0 tmin=697852801.0 tmax=698112001.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.38
user 4.14
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/439775/ft2_4FGL_J1653.8+3945_daily_bin1769.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/439775/ft2_4FGL_J1653.8+3945_daily_bin1769.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/439775/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1769.fits evtable="EVENTS" outfile="/scratch/kocevski/439775/ft1_filtered_4FGL_J1653.8+3945_daily_bin1769.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 688

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/439775/ft1_filtered_4FGL_J1653.8+3945_daily_bin1769.fits" evtable="EVENTS" scfile=/scratch/kocevski/439775/ft2_4FGL_J1653.8+3945_daily_bin1769.fits sctable="SC_DATA" outfile=/scratch/kocevski/439775/ltcube_697852801_698112001_4FGL_J1653.8+3945_daily_bin1769.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/439775/ft2_4FGL_J1653.8+3945_daily_bin1769.fits
.....................!
real 12.13
user 11.77
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/439775/ft1_filtered_4FGL_J1653.8+3945_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/439775/ft2_4FGL_J1653.8+3945_daily_bin1769.fits sctable="SC_DATA" expcube=/scratch/kocevski/439775/ltcube_697852801_698112001_4FGL_J1653.8+3945_daily_bin1769.fits outfile=/scratch/kocevski/439775/expmap_697852801_698112001_4FGL_J1653.8+3945_daily_bin1769.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/439775/ltcube_697852801_698112001_4FGL_J1653.8+3945_daily_bin1769.fits
.....................!
real 192.16
user 187.12
sys 4.68

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 204 point sources and 0 extended sources

Setting source of interest to:
4FGL J1653.8+3945 @ 253.474 39.7595

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/439775/ft1_filtered_4FGL_J1653.8+3945_daily_bin1769.fits scfile=/scratch/kocevski/439775/ft2_4FGL_J1653.8+3945_daily_bin1769.fits outfile=/scratch/kocevski/439775/cmap_697852801_698112001_4FGL_J1653.8+3945_daily_bin1769.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=253.474 yref=39.7595 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/439775/ft1_filtered_4FGL_J1653.8+3945_daily_bin1769.fits scfile=/scratch/kocevski/439775/ft2_4FGL_J1653.8+3945_daily_bin1769.fits outfile=/scratch/kocevski/439775/cmap_HighResolution_697852801_698112001_4FGL_J1653.8+3945_daily_bin1769.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=253.474 yref=39.7595 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.54
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/439775/ft1_filtered_4FGL_J1653.8+3945_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/439775/ft2_4FGL_J1653.8+3945_daily_bin1769.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/439775/Model_4FGL_J1653.8+3945_daily_bin1769.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/439775/ft1_filtered_4FGL_J1653.8+3945_daily_bin1769.fits.....................!
real 58.02
user 56.66
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/439775/ft1_filtered_4FGL_J1653.8+3945_daily_bin1769.fits', '/scratch/kocevski/439775/ft2_4FGL_J1653.8+3945_daily_bin1769.fits', expMap='/scratch/kocevski/439775/expmap_697852801_698112001_4FGL_J1653.8+3945_daily_bin1769.fits', expCube='/scratch/kocevski/439775/ltcube_697852801_698112001_4FGL_J1653.8+3945_daily_bin1769.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/439775/Model_4FGL_J1653.8+3945_daily_bin1769.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1653.8+3945'

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  4.183e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
323        alpha:  1.721e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
324         beta:  1.993e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/439775/ft1_filtered_4FGL_J1653.8+3945_daily_bin1769.fits
Spacecraft file(s): /scratch/kocevski/439775/ft2_4FGL_J1653.8+3945_daily_bin1769.fits
Exposure map: /scratch/kocevski/439775/expmap_697852801_698112001_4FGL_J1653.8+3945_daily_bin1769.fits
Exposure cube: /scratch/kocevski/439775/ltcube_697852801_698112001_4FGL_J1653.8+3945_daily_bin1769.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/439775/Model_4FGL_J1653.8+3945_daily_bin1769.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) = 7254.4062989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8085       1.0000          .0000       .10000E+07
     2 'Prefactor '    .18662E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    34.890       1.0000          .0000       .10000E+07
     4 'Prefactor '    .29365E-07   1.0000          .0000       .10000E+07
     5 'norm      '    .35601       1.0000          .0000       .10000E+07
     6 'norm      '    .19051       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.0864       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.6570       1.0000          .0000       .10000E+07
     9 'norm      '    .11194E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .29031E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.1381       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.6992       1.0000          .0000       .10000E+07
    13 'Prefactor '    .19297E-05   1.0000          .0000       .10000E+07
    14 'norm      '    7.0761       1.0000          .0000       .10000E+07
    15 'norm      '    .10667E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .19151E-01   1.0000          .0000       .10000E+07
    17 'norm      '    .16448E-06   1.0000          .0000       .10000E+07
    18 'norm      '    12.998       1.0000          .0000       .10000E+07
    19 'norm      '    7.0596       1.0000          .0000       .10000E+07
    20 'norm      '    9.3122       1.0000          .0000       .10000E+07
    21 'Prefactor '    11.404       1.0000          .0000       .10000E+07
    22 'Prefactor '    .17781       1.0000          .0000       .10000E+07
    23 'Prefactor '    .23776E-01   1.0000          .0000       .10000E+07
    24 'Prefactor '    14.063       1.0000          .0000       .10000E+07
    25 'Normalizat'    1.0845       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87091       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7254.404     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     2393 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8076        2.0129       -.22770E-07   -.20491E-03
   2  Prefactor     .22204E-09    4.6864       -.24441E-07** at limit **
   3  Prefactor     35.067        26.566       -.32484E-07    .44231E-01
   4  Prefactor      .0000        .68282       -.27224E-07** at limit **
   5  norm          .35633        .13630        .53342E-08    .19385E-01
   6  norm          .82767E-07    55.542        .12724E-06** at limit **
   7  Prefactor     1.0296        1.9674        .52130E-07   -.65643E-02
   8  Prefactor     3.6350        4.1420       -.30523E-07   -.18165E-03
   9  norm          .48295E-08    12.650        .57960E-06** at limit **
  10  Prefactor     .22204E-09    1.7188       -.11541E-06** at limit **
  11  Prefactor     1.1390        .82537        .49959E-08   -.14612E-02
  12  Prefactor     1.7067        3.6677       -.13774E-06   -.10020E-02
  13  Prefactor      .0000        1.1673       -.14010E-07** at limit **
  14  norm          7.0763        2.2045        .15478E-07    .33793E-02
  15  norm           .0000        .70128        .37595E-09** at limit **
  16  Prefactor      .0000        10.540        .24094E-07** at limit **
  17  norm           .0000        .19919       -.29414E-07** at limit **
  18  norm          13.035        8.2080       -.18144E-07    .43004E-01
  19  norm          7.0596        2.0422        .40190E-08    .22283E-02
  20  norm          9.2876        6.4914       -.27867E-07    .29036E-01
  21  Prefactor     11.474        6.1583       -.57922E-08   -.12128    
  22  Prefactor     .14100E-06    1.6633       -.50521E-08** at limit **
  23  Prefactor     .94369E-09    22.535       -.38055E-07** at limit **
  24  Prefactor     14.078        1.8796        .40277E-08   -.23153E-01
  25  Normalizat    1.0845        .24195        .46542E-05    .17959E-03
  26  Prefactor     .87094        .17991       -.21674E-05    .13844E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.80762
  Prefactor  = 2.22045e-10
  Prefactor  = 35.0671
  Prefactor  = 0
  norm       = 0.356329
  norm       = 8.27671e-08
  Prefactor  = 1.02958
  Prefactor  = 3.63504
  norm       = 4.82947e-09
  Prefactor  = 2.22045e-10
  Prefactor  = 1.13901
  Prefactor  = 1.70669
  Prefactor  = 0
  norm       = 7.07627
  norm       = 0
  Prefactor  = 0
  norm       = 0
  norm       = 13.0353
  norm       = 7.05961
  norm       = 9.28759
  Prefactor  = 11.4736
  Prefactor  = 1.40998e-07
  Prefactor  = 9.4369e-10
  Prefactor  = 14.0779
  Normalizat = 1.08451
  Prefactor  = 0.870941
 **********
 **   18 **HESSE 
 **********

 FCN=   7254.404     FROM HESSE     STATUS=OK           534 CALLS     2927 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8076        2.0214        .77669E-03   -1.5681    
   2  Prefactor     .22204E-09    4.7526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     35.067        26.412        .16932E-03   -1.5590    
   4  Prefactor      .0000        .68241        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .35633        .15489        .41278E-03   -1.5696    
   6  norm          .82767E-07    9.0769        .11947E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.0296        14.955        .11505E-01   -1.5688    
   8  Prefactor     3.6350        4.1776        .52798E-03   -1.5670    
   9  norm          .48295E-08    12.662        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .22204E-09    .61044        .28762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1390        1.0003        .10906E-02   -1.5729    
  12  Prefactor     1.7067        3.7086        .80673E-03   -1.5682    
  13  Prefactor      .0000        1.1609        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.0763        2.2019        .37687E-03   -1.5655    
  15  norm           .0000        .68264        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        2.5782        .71983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        .19757        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.035        8.2871        .27758E-03   -1.5636    
  19  norm          7.0596        2.0550        .37732E-03   -1.5655    
  20  norm          9.2876        8.4592        .32818E-03   -1.5647    
  21  Prefactor     11.474        208.07        .29641E-03   -1.5640    
  22  Prefactor     .14100E-06    39.209        .12185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .94369E-09    22.482        .16800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.078        11.785        .26684E-03   -1.5633    
  25  Normalizat    1.0845        .20152        .60912E-01   -.90251    
  26  Prefactor     .87094        .14693        .44633E-01   -.97164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26166e-05
Minuit parameter uncertainties:
  1  2.02141
  2  6.81917e-05
  3  26.4125
  4  1.1358e-06
  5  0.154895
  6  0.00173333
  7  7.84786
  8  4.17756
  9  0.000493716
  10  2.40738e-05
  11  1.00028
  12  3.70863
  13  1.64388e-06
  14  2.20191
  15  1.05885e-06
  16  3.65212e-06
  17  1.20049e-06
  18  8.28713
  19  2.05499
  20  8.45926
  21  97.7233
  22  0.00470213
  23  0.000293938
  24  11.7846
  25  0.201659
  26  0.147
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  7.076e+00  2.202e+00  0.000e+00  1.000e+06 ( 1.000e-12)
323        alpha:  1.721e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
324         beta:  1.993e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  8.709e-01  1.470e-01  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  1.085e+00  2.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 40.34
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 9.48e-08 +/- 2.95e-08
Energy Flux (Fixed Index): 1.37e-04 +/- 4.25e-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) = 7254.2779464
delta logL = 0.125829794583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7254.2605234
delta logL = 0.143252794695

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1369       1.0000          .0000       .10000E+07
     2 'alpha     '    1.6051       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0948       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86819       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7254.261     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1369        2.5647        .37525E-03   -.30585E-01
   2  alpha         1.6051        .23339        .17234       -.16101E-03
   3  Normalizat    1.0949        .18495        .60687E-01   -.44135E-05
   4  Prefactor     .86818        .14509        .44598E-01   -.11180E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.1369
  alpha      = 1.60506
  Normalizat = 1.09486
  Prefactor  = 0.868179
 **********
 **   18 **HESSE 
 **********

 FCN=   7254.261     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1369        2.2654        .69992E-05   -1.5655    
   2  alpha         1.6051        .21634        .72469E-02   -.36610    
   3  Normalizat    1.0949        .22335        .26841E-03   -.89917    
   4  Prefactor     .86818        .17556        .23343E-03   -.97262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.7571e-10
Minuit parameter uncertainties:
  1  2.26544
  2  0.216652
  3  0.223547
  4  0.175671
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/439775': 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) = 7254.26052339
delta logL = 0.143252805898

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  7.137e+00  2.265e+00  0.000e+00  1.000e+06 ( 1.000e-12)
323        alpha:  1.605e+00  2.167e-01  0.000e+00  5.000e+00 ( 1.000e+00)
324         beta:  1.993e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  8.682e-01  1.757e-01  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  1.095e+00  2.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 40.59
Ra Dec: 253.474 39.760
Photon Index (Free Index): 1.61 +/- 0.22
Photon Flux (Free Index): 8.29e-08 +/- 3.40e-08
Energy Flux (Free Index): 1.70e-04 +/- 8.95e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/439775/cmap_HighResolution_697852801_698112001_4FGL_J1653.8+3945_daily_bin1769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.48e-08', energy_flux2='1.70e-04', photon_flux_error='2.95e-08', dlogl='1.43e-01', energy_flux='1.37e-04', photon_flux2='8.29e-08', job_status='DONE', time_completed='2023-02-15 01:19:36.473728', photon_index_error2='0.22', photon_index2='1.61', ts='40.34', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='8.95e-05', EG='1.08', time_epoch_completed='1676452776.47', return_code='0', job_id='439775', GAL2='0.87', EG2='1.09', return_code2='0', energy_flux_error='4.25e-05', photon_flux_error2='3.40e-08', ts2='40.59', photon_index='1.72' WHERE bin_id='1769' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 15 01:19:36 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 439775: <4FGL_J1653.8+3945_daily_bin1769> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin1769> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Feb 15 01:05:40 2023
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 15 01:05:41 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb 15 01:05:41 2023
Terminated at Wed Feb 15 01:19:37 2023
Results reported at Wed Feb 15 01:19:37 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin1769 253.474 39.7595 697852801 698112001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1653.8+3945 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   710.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             322.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            837 sec.

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

