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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin1709
RA = 253.474, Dec = 39.7595
tmin = 682300801, tmax = 682560001
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='175489', job_status='RUN', time_executed='2022-09-16 19:58:19.476839', time_epoch_executed='1663383499.48' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/175489

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/175489/ft1_4FGL_J1653.8+3945_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/175489/ft2_4FGL_J1653.8+3945_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/175489/ft1_4FGL_J1653.8+3945_daily_bin1709.fits outfile=/scratch/kocevski/175489/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1709.fits ra=253.474 dec=39.7595 rad=12.0 tmin=682300801.0 tmax=682560001.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.74
user 3.50
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/175489/ft2_4FGL_J1653.8+3945_daily_bin1709.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/175489/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1709.fits evtable="EVENTS" outfile="/scratch/kocevski/175489/ft1_filtered_4FGL_J1653.8+3945_daily_bin1709.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.54
user 0.35
sys 0.18

Number of photons that the gtmktime cut: 686

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/175489/ft1_filtered_4FGL_J1653.8+3945_daily_bin1709.fits" evtable="EVENTS" scfile=/scratch/kocevski/175489/ft2_4FGL_J1653.8+3945_daily_bin1709.fits sctable="SC_DATA" outfile=/scratch/kocevski/175489/ltcube_682300801_682560001_4FGL_J1653.8+3945_daily_bin1709.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/175489/ft2_4FGL_J1653.8+3945_daily_bin1709.fits
.....................!
real 14.62
user 14.21
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/175489/ft1_filtered_4FGL_J1653.8+3945_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/175489/ft2_4FGL_J1653.8+3945_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/175489/ltcube_682300801_682560001_4FGL_J1653.8+3945_daily_bin1709.fits outfile=/scratch/kocevski/175489/expmap_682300801_682560001_4FGL_J1653.8+3945_daily_bin1709.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/175489/ltcube_682300801_682560001_4FGL_J1653.8+3945_daily_bin1709.fits
.....................!
real 191.25
user 185.46
sys 5.40

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/175489/ft1_filtered_4FGL_J1653.8+3945_daily_bin1709.fits scfile=/scratch/kocevski/175489/ft2_4FGL_J1653.8+3945_daily_bin1709.fits outfile=/scratch/kocevski/175489/cmap_682300801_682560001_4FGL_J1653.8+3945_daily_bin1709.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/175489/ft1_filtered_4FGL_J1653.8+3945_daily_bin1709.fits scfile=/scratch/kocevski/175489/ft2_4FGL_J1653.8+3945_daily_bin1709.fits outfile=/scratch/kocevski/175489/cmap_HighResolution_682300801_682560001_4FGL_J1653.8+3945_daily_bin1709.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.62
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60749       1.0000          .0000       .10000E+07
     2 'Prefactor '    .20219E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .13713E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .18277E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .13711E-07   1.0000          .0000       .10000E+07
     6 'norm      '    .19084E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    7.8092       1.0000          .0000       .10000E+07
     8 'Prefactor '    .49760E-04   1.0000          .0000       .10000E+07
     9 'norm      '    36.838       1.0000          .0000       .10000E+07
    10 'Prefactor '    .71109E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    8.3154       1.0000          .0000       .10000E+07
    12 'Prefactor '    19.574       1.0000          .0000       .10000E+07
    13 'Prefactor '    .12353E-02   1.0000          .0000       .10000E+07
    14 'norm      '    5.8496       1.0000          .0000       .10000E+07
    15 'norm      '    .63378       1.0000          .0000       .10000E+07
    16 'Prefactor '    .24071E-02   1.0000          .0000       .10000E+07
    17 'norm      '    .40965       1.0000          .0000       .10000E+07
    18 'norm      '    .15902E-03   1.0000          .0000       .10000E+07
    19 'norm      '    4.1016       1.0000          .0000       .10000E+07
    20 'norm      '    2.3079       1.0000          .0000       .10000E+07
    21 'Prefactor '    63.586       1.0000          .0000       .10000E+07
    22 'Prefactor '    .80104       1.0000          .0000       .10000E+07
    23 'Prefactor '    .37509E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    9.8939       1.0000          .0000       .10000E+07
    25 'Normalizat'    .83955       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0765       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=   7400.408     FROM MIGRAD    STATUS=CONVERGED    195 CALLS     2420 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .59176        5.8958       -.15520E-06    .16744E-03
   2  Prefactor      .0000        1.9495       -.66752E-07** at limit **
   3  Prefactor      .0000        6.0366        .87190E-07** at limit **
   4  Prefactor      .0000        4.2367       -.60593E-07** at limit **
   5  norm           .0000        .39243        .24190E-08** at limit **
   6  norm          .55511E-10    6.4382        .49636E-07** at limit **
   7  Prefactor     7.8040        4.2193       -.90588E-07   -.18219E-01
   8  Prefactor      .0000        1.5447       -.24260E-07** at limit **
   9  norm          36.514        3.3099        .52187E-08   -.35810E-01
  10  Prefactor      .0000        1.6458       -.93378E-07** at limit **
  11  Prefactor     8.3198        1.7180       -.52961E-08    .66729E-03
  12  Prefactor     19.608        4.6882        .17489E-08   -.40877E-03
  13  Prefactor     .16376E-07    27.399        .53597E-06** at limit **
  14  norm          5.8491        2.1016       -.10339E-07    .11185E-03
  15  norm          .63342        .70049        .40566E-09   -.18111E-03
  16  Prefactor     .16653E-09    13.859       -.28956E-06** at limit **
  17  norm          .40978        .46066        .47520E-08    .23518E-03
  18  norm           .0000        1.7891        .34007E-07** at limit **
  19  norm          4.1016        2.0084        .80177E-08   -.20747E-03
  20  norm          2.3002        5.1812       -.16795E-07    .46100E-03
  21  Prefactor     63.761        3.8822        .34207E-07   -.97398E-01
  22  Prefactor     .55178E-07    245.63       -.85888E-06** at limit **
  23  Prefactor     .44409E-09    12.049        .24528E-06** at limit **
  24  Prefactor     9.8921        9.1679       -.72152E-07   -.99900E-03
  25  Normalizat    .83957        .23535        .11904E-05    .40284E-05
  26  Prefactor     1.0766        .17861       -.75284E-06    .52751E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.591763
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  norm       = 5.55112e-11
  Prefactor  = 7.80403
  Prefactor  = 0
  norm       = 36.5137
  Prefactor  = 0
  Prefactor  = 8.31979
  Prefactor  = 19.6081
  Prefactor  = 1.63758e-08
  norm       = 5.84907
  norm       = 0.633416
  Prefactor  = 1.66533e-10
  norm       = 0.409783
  norm       = 0
  norm       = 4.10162
  norm       = 2.30024
  Prefactor  = 63.7611
  Prefactor  = 5.51781e-08
  Prefactor  = 4.44089e-10
  Prefactor  = 9.89208
  Normalizat = 0.839567
  Prefactor  = 1.0766
 **********
 **   18 **HESSE 
 **********

 FCN=   7400.408     FROM HESSE     STATUS=OK           520 CALLS     2940 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .59176        5.8914        .68560E-03   -1.5693    
   2  Prefactor      .0000        1.9562        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        6.0482        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        4.1502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .64971E-01    .11098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .55511E-10    6.4432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.8040        16.575        .35859E-03   -1.5652    
   8  Prefactor      .0000        1.5437        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          36.514        54.089        .16478E-03   -1.5587    
  10  Prefactor      .0000        1.6355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.3198        1.8665        .34742E-03   -1.5650    
  12  Prefactor     19.608        4.6966        .22610E-03   -1.5619    
  13  Prefactor     .16376E-07    1.9479        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.8491        2.1053        .41499E-03   -1.5660    
  15  norm          .63342        .71130        .66255E-03   -1.5692    
  16  Prefactor     .16653E-09    14.154        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .40978        .53057        .13954E-02   -1.5695    
  18  norm           .0000        1.7938        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.1016        2.0215        .49754E-03   -1.5667    
  20  norm          2.3002        6.0230        .67514E-03   -1.5678    
  21  Prefactor     63.761        88.911        .12541E-03   -1.5548    
  22  Prefactor     .55178E-07    246.67        .52858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .44409E-09    12.455        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.8921        9.2035        .31833E-03   -1.5645    
  25  Normalizat    .83957        .20502        .71876E-01   -.98617    
  26  Prefactor     1.0766        .15144        .38558E-01   -.90218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33976e-06
Minuit parameter uncertainties:
  1  3.73434
  2  4.99386e-09
  3  1.27947e-05
  4  3.71128e-06
  5  8.84728e-08
  6  3.11878e-05
  7  16.5753
  8  5.65309e-07
  9  54.0898
  10  3.02106e-08
  11  1.86654
  12  4.69658
  13  0.000356908
  14  2.1053
  15  0.711304
  16  0.000102383
  17  0.530571
  18  1.51155e-06
  19  2.02151
  20  6.02301
  21  88.9131
  22  0.00737723
  23  0.000145191
  24  9.20354
  25  0.205208
  26  0.1515
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  5.849e+00  2.105e+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.077e+00  1.515e-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:  8.396e-01  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 50.12
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 7.84e-08 +/- 2.82e-08
Energy Flux (Fixed Index): 1.13e-04 +/- 4.07e-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) = 7400.27369535
delta logL = 0.133861233113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7400.25349342
delta logL = 0.154063157949

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7460       1.0000          .0000       .10000E+07
     2 'alpha     '    1.5725       1.0000          .0000       5.0000    
     3 'Normalizat'    .84905       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0744       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=   7400.253     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7461        2.2546        .41878E-03   -.47978E-03
   2  alpha         1.5725        .26037        .21197       -.14054E-04
   3  Normalizat    .84906        .19195        .71562E-01    .25270E-04
   4  Prefactor     1.0744        .15003        .38651E-01    .41691E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.74614
  alpha      = 1.57253
  Normalizat = 0.849056
  Prefactor  = 1.07441
 **********
 **   18 **HESSE 
 **********

 FCN=   7400.253     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .11E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7461        2.1559        .73647E-05   -1.5660    
   2  alpha         1.5725        .26617        .87372E-02   -.38007    
   3  Normalizat    .84906        .22444        .31666E-03   -.98274    
   4  Prefactor     1.0744        .17607        .22230E-03   -.90289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1265e-13
Minuit parameter uncertainties:
  1  2.15585
  2  0.266754
  3  0.224685
  4  0.17616
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/175489': 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) = 7400.25349341
delta logL = 0.154063173877

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  5.746e+00  2.156e+00  0.000e+00  1.000e+06 ( 1.000e-12)
323        alpha:  1.573e+00  2.668e-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.074e+00  1.762e-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:  8.491e-01  2.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 50.50
Ra Dec: 253.474 39.760
Photon Index (Free Index): 1.57 +/- 0.27
Photon Flux (Free Index): 6.44e-08 +/- 3.32e-08
Energy Flux (Free Index): 1.47e-04 +/- 8.88e-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/175489/cmap_HighResolution_682300801_682560001_4FGL_J1653.8+3945_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.84e-08', energy_flux2='1.47e-04', photon_flux_error='2.82e-08', dlogl='1.54e-01', energy_flux='1.13e-04', photon_flux2='6.44e-08', job_status='DONE', time_completed='2022-09-16 20:10:26.915089', photon_index_error2='0.27', photon_index2='1.57', ts='50.12', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='8.88e-05', EG='0.84', time_epoch_completed='1663384226.92', return_code='0', job_id='175489', GAL2='1.07', EG2='0.85', return_code2='0', energy_flux_error='4.07e-05', photon_flux_error2='3.32e-08', ts2='50.50', photon_index='1.72' WHERE bin_id='1709' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 20:10:26 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 175489: <4FGL_J1653.8+3945_daily_bin1709> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin1709> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 19:55:14 2022
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 19:55:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 19:55:40 2022
Terminated at Fri Sep 16 20:10:27 2022
Results reported at Fri Sep 16 20:10:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin1709 253.474 39.7595 682300801 682560001 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 :                                   728.48 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            913 sec.

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

