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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin1750
RA = 253.474, Dec = 39.7595
tmin = 692928001, tmax = 693187201
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='18786', job_status='RUN', time_executed='2022-12-20 01:17:09.597976', time_epoch_executed='1671527829.6' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/18786

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/18786/ft1_4FGL_J1653.8+3945_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/18786/ft2_4FGL_J1653.8+3945_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/18786/ft1_4FGL_J1653.8+3945_daily_bin1750.fits outfile=/scratch/kocevski/18786/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1750.fits ra=253.474 dec=39.7595 rad=12.0 tmin=692928001.0 tmax=693187201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.46
user 3.22
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/18786/ft2_4FGL_J1653.8+3945_daily_bin1750.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/18786/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/18786/ft1_filtered_4FGL_J1653.8+3945_daily_bin1750.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.33
sys 0.15

Number of photons that the gtmktime cut: 558

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/18786/ft1_filtered_4FGL_J1653.8+3945_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/18786/ft2_4FGL_J1653.8+3945_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/18786/ltcube_692928001_693187201_4FGL_J1653.8+3945_daily_bin1750.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/18786/ft2_4FGL_J1653.8+3945_daily_bin1750.fits
.....................!
real 11.67
user 11.33
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/18786/ft1_filtered_4FGL_J1653.8+3945_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/18786/ft2_4FGL_J1653.8+3945_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/18786/ltcube_692928001_693187201_4FGL_J1653.8+3945_daily_bin1750.fits outfile=/scratch/kocevski/18786/expmap_692928001_693187201_4FGL_J1653.8+3945_daily_bin1750.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/18786/ltcube_692928001_693187201_4FGL_J1653.8+3945_daily_bin1750.fits
.....................!
real 188.99
user 184.44
sys 4.25

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/18786/ft1_filtered_4FGL_J1653.8+3945_daily_bin1750.fits scfile=/scratch/kocevski/18786/ft2_4FGL_J1653.8+3945_daily_bin1750.fits outfile=/scratch/kocevski/18786/cmap_692928001_693187201_4FGL_J1653.8+3945_daily_bin1750.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.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/18786/ft1_filtered_4FGL_J1653.8+3945_daily_bin1750.fits scfile=/scratch/kocevski/18786/ft2_4FGL_J1653.8+3945_daily_bin1750.fits outfile=/scratch/kocevski/18786/cmap_HighResolution_692928001_693187201_4FGL_J1653.8+3945_daily_bin1750.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/18786/ft1_filtered_4FGL_J1653.8+3945_daily_bin1750.fits', '/scratch/kocevski/18786/ft2_4FGL_J1653.8+3945_daily_bin1750.fits', expMap='/scratch/kocevski/18786/expmap_692928001_693187201_4FGL_J1653.8+3945_daily_bin1750.fits', expCube='/scratch/kocevski/18786/ltcube_692928001_693187201_4FGL_J1653.8+3945_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/18786/Model_4FGL_J1653.8+3945_daily_bin1750.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/18786/ft1_filtered_4FGL_J1653.8+3945_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/18786/ft2_4FGL_J1653.8+3945_daily_bin1750.fits
Exposure map: /scratch/kocevski/18786/expmap_692928001_693187201_4FGL_J1653.8+3945_daily_bin1750.fits
Exposure cube: /scratch/kocevski/18786/ltcube_692928001_693187201_4FGL_J1653.8+3945_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/18786/Model_4FGL_J1653.8+3945_daily_bin1750.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) = 5953.48837252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3685       1.0000          .0000       .10000E+07
     2 'Prefactor '    .89451E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .92655E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .26733       1.0000          .0000       .10000E+07
     5 'norm      '    .31099       1.0000          .0000       .10000E+07
     6 'norm      '    .12173E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .60681E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.5482       1.0000          .0000       .10000E+07
     9 'norm      '    5.5312       1.0000          .0000       .10000E+07
    10 'Prefactor '    .75947E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    3.2786       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.6435       1.0000          .0000       .10000E+07
    13 'Prefactor '    .57563E-02   1.0000          .0000       .10000E+07
    14 'norm      '    2.2833       1.0000          .0000       .10000E+07
    15 'norm      '    .14215E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .35567E-05   1.0000          .0000       .10000E+07
    17 'norm      '    .14405E-06   1.0000          .0000       .10000E+07
    18 'norm      '    .75519E-04   1.0000          .0000       .10000E+07
    19 'norm      '    14.161       1.0000          .0000       .10000E+07
    20 'norm      '    21.709       1.0000          .0000       .10000E+07
    21 'Prefactor '    16.906       1.0000          .0000       .10000E+07
    22 'Prefactor '    .98267E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .11085E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    8.0458       1.0000          .0000       .10000E+07
    25 'Normalizat'    .73217       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0142       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=   5953.472     FROM MIGRAD    STATUS=CONVERGED    209 CALLS     2326 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3692        3.3950       -.81786E-07    .10743E-03
   2  Prefactor      .0000        2.5345        .87705E-08** at limit **
   3  Prefactor      .0000        7.8014       -.22408E-06** at limit **
   4  Prefactor     .30843        8.4870        .15213E-06   -.10821E-03
   5  norm          .31100        .15072        .10658E-08   -.66509E-03
   6  norm           .0000        8.4659        .19765E-06** at limit **
   7  Prefactor      .0000        75.251       -.12905E-05** at limit **
   8  Prefactor     2.5443        4.0884       -.16488E-06    .20349E-03
   9  norm          5.7676        35.417       -.22098E-06    .87784E-02
  10  Prefactor      .0000        2.1464       -.32682E-07** at limit **
  11  Prefactor     3.2737        1.5652       -.25466E-07   -.22244E-03
  12  Prefactor     2.6475        3.7425       -.53979E-07   -.47369E-04
  13  Prefactor      .0000        14.810        .19155E-06** at limit **
  14  norm          2.2832        1.7605       -.27724E-07   -.13444E-03
  15  norm           .0000        .42768        .25178E-07** at limit **
  16  Prefactor      .0000        3.5130        .74625E-07** at limit **
  17  norm           .0000        .41387       -.15836E-07** at limit **
  18  norm           .0000        3.5802        .54566E-07** at limit **
  19  norm          14.163        2.9044        .34412E-07   -.13509E-03
  20  norm          21.734        7.9464        .33939E-07   -.35538E-03
  21  Prefactor     16.106        50.106        .23116E-06    .83484E-02
  22  Prefactor      .0000        30.607        .47957E-06** at limit **
  23  Prefactor     .55511E-10    26.515        .62667E-07** at limit **
  24  Prefactor     8.0477        7.2291        .11107E-07   -.12210E-04
  25  Normalizat    .73146        .24206        .32422E-05   -.36595E-06
  26  Prefactor     1.0146        .18175       -.30697E-05   -.25939E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.36921
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0.308429
  norm       = 0.311001
  norm       = 0
  Prefactor  = 0
  Prefactor  = 2.54433
  norm       = 5.76763
  Prefactor  = 0
  Prefactor  = 3.27367
  Prefactor  = 2.64752
  Prefactor  = 0
  norm       = 2.28325
  norm       = 0
  Prefactor  = 0
  norm       = 0
  norm       = 0
  norm       = 14.163
  norm       = 21.7344
  Prefactor  = 16.1058
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 8.04769
  Normalizat = 0.731463
  Prefactor  = 1.01462
 **********
 **   18 **HESSE 
 **********

 FCN=   5953.472     FROM HESSE     STATUS=OK           524 CALLS     2850 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3692        3.4047        .55110E-03   -1.5671    
   2  Prefactor      .0000        2.5345        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        7.8016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .30843        2.0354        .58571E-02   -1.5697    
   5  norm          .31100        .16325        .43434E-03   -1.5697    
   6  norm           .0000        8.4617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        19.269        .10084E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.5443        4.1251        .63940E-03   -1.5676    
   9  norm          5.7676        145.56        .42696E-03   -1.5660    
  10  Prefactor      .0000        2.1130        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.2737        1.6710        .55897E-03   -1.5672    
  12  Prefactor     2.6475        3.7688        .62681E-03   -1.5675    
  13  Prefactor      .0000        14.186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.2832        1.7591        .67916E-03   -1.5678    
  15  norm           .0000        .42365        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        3.5099        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        .40745        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        3.5839        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.163        2.9055        .26590E-03   -1.5633    
  20  norm          21.734        8.0222        .21468E-03   -1.5615    
  21  Prefactor     16.106        58.149        .24332E-03   -1.5628    
  22  Prefactor      .0000        30.676        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .55511E-10    26.554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.0477        7.2297        .35323E-03   -1.5651    
  25  Normalizat    .73146        .20854        .68651E-01   -1.0266    
  26  Prefactor     1.0146        .15389        .42775E-01   -.92244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.01429e-08
Minuit parameter uncertainties:
  1  3.40475
  2  2.15399e-06
  3  2.99231e-06
  4  1.58466
  5  0.163246
  6  7.57246e-06
  7  5.35816e-06
  8  4.12511
  9  57.9512
  10  3.74205e-07
  11  1.67105
  12  3.76878
  13  5.23873e-06
  14  1.75914
  15  1.91638e-07
  16  6.74321e-07
  17  8.25507e-08
  18  2.04683e-06
  19  2.90548
  20  8.02223
  21  58.1511
  22  2.02625e-05
  23  7.081e-05
  24  7.22969
  25  0.208763
  26  0.153961
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  2.283e+00  1.759e+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:  1.015e+00  1.540e-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:  7.315e-01  2.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.65
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 3.06e-08 +/- 2.36e-08
Energy Flux (Fixed Index): 4.41e-05 +/- 3.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) = 5952.51261135
delta logL = 0.959617971432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5952.50850497
delta logL = 0.963724354217

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7400       1.0000          .0000       .10000E+07
     2 'alpha     '    2.5885       1.0000          .0000       5.0000    
     3 'Normalizat'    .64920       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0480       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=   5952.509     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      242 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7398        10.886        .79505E-03    .42388E-02
   2  alpha         2.5887        3.6270        .19803        .96090E-04
   3  Normalizat    .64914        .78488E-01    .72217E-01    .23120E-04
   4  Prefactor     1.0480        .51464E-01    .40031E-01   -.29432E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.73978
  alpha      = 2.58874
  Normalizat = 0.649135
  Prefactor  = 1.04803
 **********
 **   18 **HESSE 
 **********

 FCN=   5952.509     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7398        1.6588        .45490E-05   -1.5682    
   2  alpha         2.5887        .62724        .74276E-02    .35503E-01
   3  Normalizat    .64914        .22993        .31966E-03   -1.0594    
   4  Prefactor     1.0480        .18062        .20704E-03   -.91145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81165e-11
Minuit parameter uncertainties:
  1  1.65879
  2  0.634023
  3  0.230271
  4  0.180727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/18786': 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) = 5952.50850468
delta logL = 0.963724639869

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  1.740e+00  1.659e+00  0.000e+00  1.000e+06 ( 1.000e-12)
323        alpha:  2.589e+00  6.340e-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:  1.048e+00  1.807e-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:  6.491e-01  2.303e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.70
Ra Dec: 253.474 39.760
Photon Index (Free Index): 2.59 +/- 0.63
Photon Flux (Free Index): 1.08e-07 +/- 7.15e-08
Energy Flux (Free Index): 2.95e-05 +/- 1.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/18786/cmap_HighResolution_692928001_693187201_4FGL_J1653.8+3945_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.06e-08', energy_flux2='2.95e-05', photon_flux_error='2.36e-08', dlogl='9.64e-01', energy_flux='4.41e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2022-12-20 01:27:37.637810', photon_index_error2='0.63', photon_index2='2.59', ts='10.65', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.44e-05', EG='0.73', time_epoch_completed='1671528457.64', return_code='0', job_id='18786', GAL2='1.05', EG2='0.65', return_code2='0', energy_flux_error='3.40e-05', photon_flux_error2='7.15e-08', ts2='12.70', photon_index='1.72' WHERE bin_id='1750' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 01:27:37 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 18786: <4FGL_J1653.8+3945_daily_bin1750> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin1750> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec 20 01:15:19 2022
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 01:15:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 01:15:20 2022
Terminated at Tue Dec 20 01:27:38 2022
Results reported at Tue Dec 20 01:27:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin1750 253.474 39.7595 692928001 693187201 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 :                                   630.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            739 sec.

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

