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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin1779
RA = 253.474, Dec = 39.7595
tmin = 700444801, tmax = 700704001
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='31875', job_status='RUN', time_executed='2023-03-17 02:00:40.803154', time_epoch_executed='1679043640.8' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='1779'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31875

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31875/ft1_4FGL_J1653.8+3945_daily_bin1779.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31875/ft2_4FGL_J1653.8+3945_daily_bin1779.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31875/ft1_4FGL_J1653.8+3945_daily_bin1779.fits outfile=/scratch/kocevski/31875/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1779.fits ra=253.474 dec=39.7595 rad=12.0 tmin=700444801.0 tmax=700704001.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 5.26
user 5.06
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31875/ft1_filtered_4FGL_J1653.8+3945_daily_bin1779.fits evtable="EVENTS" scfile=/scratch/kocevski/31875/ft2_4FGL_J1653.8+3945_daily_bin1779.fits sctable="SC_DATA" expcube=/scratch/kocevski/31875/ltcube_700444801_700704001_4FGL_J1653.8+3945_daily_bin1779.fits outfile=/scratch/kocevski/31875/expmap_700444801_700704001_4FGL_J1653.8+3945_daily_bin1779.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/31875/ltcube_700444801_700704001_4FGL_J1653.8+3945_daily_bin1779.fits
.....................!
real 190.37
user 185.44
sys 4.50

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/31875/ft1_filtered_4FGL_J1653.8+3945_daily_bin1779.fits scfile=/scratch/kocevski/31875/ft2_4FGL_J1653.8+3945_daily_bin1779.fits outfile=/scratch/kocevski/31875/cmap_700444801_700704001_4FGL_J1653.8+3945_daily_bin1779.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31875/ft1_filtered_4FGL_J1653.8+3945_daily_bin1779.fits scfile=/scratch/kocevski/31875/ft2_4FGL_J1653.8+3945_daily_bin1779.fits outfile=/scratch/kocevski/31875/cmap_HighResolution_700444801_700704001_4FGL_J1653.8+3945_daily_bin1779.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6096       1.0000          .0000       .10000E+07
     2 'Prefactor '    4.0612       1.0000          .0000       .10000E+07
     3 'Prefactor '    .22255E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.7970       1.0000          .0000       .10000E+07
     5 'norm      '    .55281E-01   1.0000          .0000       .10000E+07
     6 'norm      '    .19131E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    39.684       1.0000          .0000       .10000E+07
     8 'Prefactor '    .11140       1.0000          .0000       .10000E+07
     9 'norm      '    .52349       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.6365       1.0000          .0000       .10000E+07
    11 'Prefactor '    .70235E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.9057       1.0000          .0000       .10000E+07
    13 'Prefactor '    .21889E-05   1.0000          .0000       .10000E+07
    14 'norm      '    3.1115       1.0000          .0000       .10000E+07
    15 'norm      '    .27730E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .51719E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .10986E-06   1.0000          .0000       .10000E+07
    18 'norm      '    .34332E-02   1.0000          .0000       .10000E+07
    19 'norm      '    4.5165       1.0000          .0000       .10000E+07
    20 'norm      '    9.8104       1.0000          .0000       .10000E+07
    21 'Prefactor '    .19002E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    131.74       1.0000          .0000       .10000E+07
    23 'Prefactor '    .45691E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    .27042E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.0630       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87941       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=   7527.066     FROM MIGRAD    STATUS=CONVERGED    238 CALLS     2409 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6086        2.3156       -.19306E-07   -.69845E-04
   2  Prefactor     4.0674        4.6189       -.65932E-07    .15736E-03
   3  Prefactor     .83822E-08    13.962        .53201E-06** at limit **
   4  Prefactor     1.7813        3.2528        .17582E-06   -.11436E-02
   5  norm          .51909E-01    .17099       -.71355E-07** at limit **
   6  norm          .16986E-06    9.7646        .27673E-06** at limit **
   7  Prefactor     40.840        27.756        .97436E-07    .39169E-01
   8  Prefactor     .13009        30.596        .37007E-06** at limit **
   9  norm          .11634E-03    30.407       -.30810E-07** at limit **
  10  Prefactor     1.6462        1.2210        .89785E-08   -.28904E-02
  11  Prefactor     .22204E-09    2.3496       -.12675E-06** at limit **
  12  Prefactor     6.9000        3.2727        .60423E-08    .78506E-03
  13  Prefactor     .11102E-09    1.3624       -.18316E-06** at limit **
  14  norm          3.1122        1.5979        .24010E-07   -.13091E-02
  15  norm          .66881E-02    7.1495       -.16017E-07** at limit **
  16  Prefactor     .94369E-09    5.2412       -.56879E-06** at limit **
  17  norm           .0000        .27547       -.46506E-07** at limit **
  18  norm          .15715E-06    8.6439       -.27643E-06** at limit **
  19  norm          4.5223        1.9308       -.70848E-08    .10981E-03
  20  norm          9.8226        5.9818        .10918E-06   -.12192E-02
  21  Prefactor     .44825E-05    43.867        .53215E-06** at limit **
  22  Prefactor     135.58        104.33        .96887E-07   -.49629E-02
  23  Prefactor     .15749E-06    11.411        .20742E-06** at limit **
  24  Prefactor     .40912E-07    8.0636        .12968E-06** at limit **
  25  Normalizat    1.0612        .23431        .68171E-06    .49246E-04
  26  Prefactor     .87949        .16713       -.41205E-05    .11511E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.60856
  Prefactor  = 4.06737
  Prefactor  = 8.38218e-09
  Prefactor  = 1.78133
  norm       = 0.0519087
  norm       = 1.69864e-07
  Prefactor  = 40.8398
  Prefactor  = 0.130094
  norm       = 0.000116344
  Prefactor  = 1.64617
  Prefactor  = 2.22045e-10
  Prefactor  = 6.90005
  Prefactor  = 1.11022e-10
  norm       = 3.1122
  norm       = 0.00668813
  Prefactor  = 9.4369e-10
  norm       = 0
  norm       = 1.57152e-07
  norm       = 4.52229
  norm       = 9.82263
  Prefactor  = 4.48253e-06
  Prefactor  = 135.584
  Prefactor  = 1.57485e-07
  Prefactor  = 4.09117e-08
  Normalizat = 1.06122
  Prefactor  = 0.879494
 **********
 **   18 **HESSE 
 **********

 FCN=   7527.066     FROM HESSE     STATUS=OK           526 CALLS     2935 TOTAL
                     EDM=   .90E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6086        2.3102        .63120E-03   -1.5676    
   2  Prefactor     4.0674        4.6208        .50009E-03   -1.5668    
   3  Prefactor     .83822E-08    13.975        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7813        3.2658        .77967E-03   -1.5681    
   5  norm          .51909E-01    .11013        .11464E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .16986E-06    11.443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     40.840        24.696        .15876E-03   -1.5580    
   8  Prefactor     .13009        1.6507        .80878E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .11634E-03    154.73        .76381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6462        1.4949        .82593E-04   -1.5682    
  11  Prefactor     .22204E-09    1.3405        .23845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.9000        3.2725        .38155E-03   -1.5655    
  13  Prefactor     .11102E-09    1.3649        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.1122        1.6063        .57458E-03   -1.5673    
  15  norm          .66881E-02    .32459        .29066E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .94369E-09    5.2521        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        .27112        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .15715E-06    10.739        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.5223        1.9305        .47349E-03   -1.5665    
  20  norm          9.8226        5.9478        .31969E-03   -1.5645    
  21  Prefactor     .44825E-05    48.635        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     135.58        104.40        .87131E-04   -1.5475    
  23  Prefactor     .15749E-06    12.147        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .40912E-07    9.8474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0612        .19233        .61789E-01   -.91007    
  26  Prefactor     .87949        .13821        .44742E-01   -.96861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.01104e-07
Minuit parameter uncertainties:
  1  2.31018
  2  4.62083
  3  0.000683463
  4  3.26584
  5  0.11013
  6  0.00278851
  7  24.6964
  8  0.926815
  9  0.268345
  10  1.49489
  11  3.23861e-05
  12  3.27249
  13  2.1327e-05
  14  1.60628
  15  0.0931863
  16  0.000141097
  17  3.18808e-06
  18  0.00259821
  19  1.93053
  20  5.94777
  21  0.0295302
  22  104.401
  23  0.00276628
  24  0.00126905
  25  0.192458
  26  0.138268
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  3.112e+00  1.606e+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.795e-01  1.383e-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.061e+00  1.925e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.38
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 4.17e-08 +/- 2.15e-08
Energy Flux (Fixed Index): 6.01e-05 +/- 3.10e-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) = 7527.04845035
delta logL = 0.0175361231641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7527.04531221
delta logL = 0.0206742637911

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2342       1.0000          .0000       .10000E+07
     2 'alpha     '    1.8284       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0527       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88165       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7527.045     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      241 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2343        1.6029        .73538E-05   -.18706E-03
   2  alpha         1.8284        .50527        .13768E-01   -.28472E-05
   3  Normalizat    1.0527        .21377        .27417E-03    .93962E-04
   4  Prefactor     .88165        .16190        .22831E-03    .20764E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.23426
  alpha      = 1.82838
  Normalizat = 1.05275
  Prefactor  = 0.881645
 **********
 **   18 **HESSE 
 **********

 FCN=   7527.045     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2343        1.6167        .29415E-06   -1.5672    
   2  alpha         1.8284        .50881        .55071E-03   -.27199    
   3  Normalizat    1.0527        .21390        .10967E-04   -.91284    
   4  Prefactor     .88165        .16204        .91324E-05   -.96785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46173e-11
Minuit parameter uncertainties:
  1  1.61669
  2  0.512672
  3  0.21408
  4  0.162128
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31875': 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) = 7527.04531221
delta logL = 0.0206742644705

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  3.234e+00  1.617e+00  0.000e+00  1.000e+06 ( 1.000e-12)
323        alpha:  1.828e+00  5.127e-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.816e-01  1.621e-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.053e+00  2.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.42
Ra Dec: 253.474 39.760
Photon Index (Free Index): 1.83 +/- 0.51
Photon Flux (Free Index): 5.04e-08 +/- 5.04e-08
Energy Flux (Free Index): 5.34e-05 +/- 3.89e-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/31875/cmap_HighResolution_700444801_700704001_4FGL_J1653.8+3945_daily_bin1779.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.17e-08', energy_flux2='5.34e-05', photon_flux_error='2.15e-08', dlogl='2.07e-02', energy_flux='6.01e-05', photon_flux2='5.04e-08', job_status='DONE', time_completed='2023-03-17 02:12:37.752257', photon_index_error2='0.51', photon_index2='1.83', ts='22.38', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='3.89e-05', EG='1.06', time_epoch_completed='1679044357.75', return_code='0', job_id='31875', GAL2='0.88', EG2='1.05', return_code2='0', energy_flux_error='3.10e-05', photon_flux_error2='5.04e-08', ts2='22.42', photon_index='1.72' WHERE bin_id='1779' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar 17 02:12:37 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0053>
Subject: Job 31875: <4FGL_J1653.8+3945_daily_bin1779> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin1779> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Mar 17 02:00:25 2023
Job was executed on host(s) <bullet0053>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 17 02:00:26 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 17 02:00:26 2023
Terminated at Fri Mar 17 02:12:38 2023
Results reported at Fri Mar 17 02:12:38 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin1779 253.474 39.7595 700444801 700704001 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 :                                   718.30 sec.
    Max Memory :                                 1098 MB
    Average Memory :                             327.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            733 sec.

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

