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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin1762
RA = 253.474, Dec = 39.7595
tmin = 696038401, tmax = 696297601
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='114839', job_status='RUN', time_executed='2023-01-25 01:16:45.623494', time_epoch_executed='1674638205.62' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/114839

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/114839/ft1_4FGL_J1653.8+3945_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/114839/ft2_4FGL_J1653.8+3945_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/114839/ft1_4FGL_J1653.8+3945_daily_bin1762.fits outfile=/scratch/kocevski/114839/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1762.fits ra=253.474 dec=39.7595 rad=12.0 tmin=696038401.0 tmax=696297601.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.65
user 3.45
sys 0.18

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

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

Number of photons that the gtmktime cut: 632

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/114839/ft1_filtered_4FGL_J1653.8+3945_daily_bin1762.fits" evtable="EVENTS" scfile=/scratch/kocevski/114839/ft2_4FGL_J1653.8+3945_daily_bin1762.fits sctable="SC_DATA" outfile=/scratch/kocevski/114839/ltcube_696038401_696297601_4FGL_J1653.8+3945_daily_bin1762.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/114839/ft2_4FGL_J1653.8+3945_daily_bin1762.fits
.....................!
real 13.40
user 13.00
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/114839/ft1_filtered_4FGL_J1653.8+3945_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/114839/ft2_4FGL_J1653.8+3945_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/114839/ltcube_696038401_696297601_4FGL_J1653.8+3945_daily_bin1762.fits outfile=/scratch/kocevski/114839/expmap_696038401_696297601_4FGL_J1653.8+3945_daily_bin1762.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/114839/ltcube_696038401_696297601_4FGL_J1653.8+3945_daily_bin1762.fits
.....................!
real 190.61
user 185.34
sys 4.89

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/114839/ft1_filtered_4FGL_J1653.8+3945_daily_bin1762.fits scfile=/scratch/kocevski/114839/ft2_4FGL_J1653.8+3945_daily_bin1762.fits outfile=/scratch/kocevski/114839/cmap_696038401_696297601_4FGL_J1653.8+3945_daily_bin1762.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/114839/ft1_filtered_4FGL_J1653.8+3945_daily_bin1762.fits scfile=/scratch/kocevski/114839/ft2_4FGL_J1653.8+3945_daily_bin1762.fits outfile=/scratch/kocevski/114839/cmap_HighResolution_696038401_696297601_4FGL_J1653.8+3945_daily_bin1762.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3953       1.0000          .0000       .10000E+07
     2 'Prefactor '    9.1780       1.0000          .0000       .10000E+07
     3 'Prefactor '    23.413       1.0000          .0000       .10000E+07
     4 'Prefactor '    .32819E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .18872       1.0000          .0000       .10000E+07
     6 'norm      '    24.841       1.0000          .0000       .10000E+07
     7 'Prefactor '    8.4540       1.0000          .0000       .10000E+07
     8 'Prefactor '    .16664E-06   1.0000          .0000       .10000E+07
     9 'norm      '    .45236       1.0000          .0000       .10000E+07
    10 'Prefactor '    .58799       1.0000          .0000       .10000E+07
    11 'Prefactor '    .29976E-08   1.0000          .0000       .10000E+07
    12 'Prefactor '    .17827E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    2.3789       1.0000          .0000       .10000E+07
    14 'norm      '    5.4753       1.0000          .0000       .10000E+07
    15 'norm      '    .95724       1.0000          .0000       .10000E+07
    16 'Prefactor '    .12262E-05   1.0000          .0000       .10000E+07
    17 'norm      '    .39968E-08   1.0000          .0000       .10000E+07
    18 'norm      '    .16005E-03   1.0000          .0000       .10000E+07
    19 'norm      '    8.7633       1.0000          .0000       .10000E+07
    20 'norm      '    15.326       1.0000          .0000       .10000E+07
    21 'Prefactor '    .43822       1.0000          .0000       .10000E+07
    22 'Prefactor '    88.592       1.0000          .0000       .10000E+07
    23 'Prefactor '    .22261E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    11.453       1.0000          .0000       .10000E+07
    25 'Normalizat'    .87779       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .88315       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=   6913.332     FROM MIGRAD    STATUS=CONVERGED    200 CALLS     2330 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3933        3.0619       -.63606E-06   -.53423E-02
   2  Prefactor     9.2041        6.3152       -.74471E-06   -.59655E-02
   3  Prefactor     23.402        1.4512       -.24846E-06   -.26596E-02
   4  Prefactor      .0000        2.0335       -.61619E-06** at limit **
   5  norm          .18862        .11793        .27851E-07** at limit **
   6  norm          24.838        17.457        .91559E-05   -.26598E-03
   7  Prefactor     8.4871        1.3199       -.59327E-06   -.67374E-02
   8  Prefactor     .55511E-10    3.3986       -.14156E-05** at limit **
   9  norm          .13267E-06    334.56       -.50491E-04** at limit **
  10  Prefactor     .58962        .72383        .11476E-05    .68924E-02
  11  Prefactor      .0000        .76408        .18475E-05** at limit **
  12  Prefactor     .13323E-08    22.966       -.43930E-05** at limit **
  13  Prefactor     2.3839        2.5081        .10220E-05    .80682E-02
  14  norm          5.4756        1.9049        .10925E-06   -.27076E-02
  15  norm          .95678        .80026       -.55876E-07    .23131E-01
  16  Prefactor     .55511E-10    1.9815       -.68186E-07** at limit **
  17  norm           .0000        .22229       -.43655E-06** at limit **
  18  norm          .55511E-10    8.0867       -.17564E-05** at limit **
  19  norm          8.7629        2.1130       -.48018E-06    .21033E-02
  20  norm          15.327        6.4175       -.38078E-06   -.14084E-01
  21  Prefactor     .18874E-08    120.70       -.95013E-05** at limit **
  22  Prefactor     86.930        118.53       -.27014E-04   -.56044E-03
  23  Prefactor     .61617E-08    20.619        .38772E-05** at limit **
  24  Prefactor     11.426        9.4120        .24810E-06    .30093E-02
  25  Normalizat    .87773        .22141        .33011E-04    .28847E-03
  26  Prefactor     .88361        .16923       -.30157E-05    .21195E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.39334
  Prefactor  = 9.20413
  Prefactor  = 23.4016
  Prefactor  = 0
  norm       = 0.188625
  norm       = 24.8384
  Prefactor  = 8.48714
  Prefactor  = 5.55112e-11
  norm       = 1.32672e-07
  Prefactor  = 0.589616
  Prefactor  = 0
  Prefactor  = 1.33227e-09
  Prefactor  = 2.38387
  norm       = 5.47556
  norm       = 0.956777
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 5.55112e-11
  norm       = 8.76286
  norm       = 15.3267
  Prefactor  = 1.88738e-09
  Prefactor  = 86.9297
  Prefactor  = 6.16174e-09
  Prefactor  = 11.4261
  Normalizat = 0.87773
  Prefactor  = 0.883605
 **********
 **   18 **HESSE 
 **********

 FCN=   6913.332     FROM HESSE     STATUS=OK           520 CALLS     2850 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3933        3.0671        .54882E-03   -1.5671    
   2  Prefactor     9.2041        7.2127        .33058E-03   -1.5647    
   3  Prefactor     23.402        24.378        .20672E-03   -1.5611    
   4  Prefactor      .0000        2.0188        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .18862        .13125        .47925E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          24.838        17.477        .20068E-03   -1.5608    
   7  Prefactor     8.4871        18.741        .34453E-03   -1.5650    
   8  Prefactor     .55511E-10    3.3935        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .13267E-06    317.28        .83655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .58962        .74821        .70311E-03   -1.5693    
  11  Prefactor      .0000        .75875        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .13323E-08    1.8914        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3839        2.5258        .66391E-03   -1.5677    
  14  norm          5.4756        1.9082        .42917E-03   -1.5661    
  15  norm          .95678        .82041        .42245E-03   -1.5688    
  16  Prefactor     .55511E-10    1.9821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        .22025        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .55511E-10    8.0722        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.7629        2.1216        .33836E-03   -1.5649    
  20  norm          15.327        6.4267        .25558E-03   -1.5630    
  21  Prefactor     .18874E-08    119.79        .85186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     86.930        118.66        .10625E-03   -1.5521    
  23  Prefactor     .61617E-08    20.704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.426        9.4167        .29578E-03   -1.5640    
  25  Normalizat    .87773        .19006        .64187E-01   -.97247    
  26  Prefactor     .88361        .14153        .44790E-01   -.96716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.73215e-09
Minuit parameter uncertainties:
  1  3.06708
  2  7.21274
  3  24.3781
  4  1.12736e-06
  5  0.131254
  6  17.477
  7  18.7409
  8  2.38523e-05
  9  0.0129765
  10  0.748212
  11  5.09998e-07
  12  9.9616e-05
  13  2.52579
  14  1.9082
  15  0.820407
  16  1.55875e-05
  17  8.74486e-07
  18  3.94835e-05
  19  2.12158
  20  6.42673
  21  0.000950677
  22  118.658
  23  0.000714959
  24  9.41672
  25  0.190202
  26  0.141591
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  5.476e+00  1.908e+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.836e-01  1.416e-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.777e-01  1.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 53.22
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 7.34e-08 +/- 2.56e-08
Energy Flux (Fixed Index): 1.06e-04 +/- 3.69e-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) = 6912.30853431
delta logL = 1.02330764634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6912.27089209
delta logL = 1.06094986332

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8612       1.0000          .0000       .10000E+07
     2 'alpha     '    1.3461       1.0000          .0000       5.0000    
     3 'Normalizat'    .90089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87906       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=   6912.271     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      203 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8612        1.8553        .45600E-03    .10523E-01
   2  alpha         1.3461        .21944        .18556       -.35217E-04
   3  Normalizat    .90093        .18024        .44913E-01    .81362E-05
   4  Prefactor     .87902        .14186        .44738E-01    .11032E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.86121
  alpha      = 1.34607
  Normalizat = 0.900932
  Prefactor  = 0.879024
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8612        2.1257        .67427E-05   -1.5664    
   2  alpha         1.3461        .25988        .79293E-02   -.47976    
   3  Normalizat    .90093        .21058        .28063E-03   -.96427    
   4  Prefactor     .87902        .16590        .22239E-03   -.96878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1411e-10
Minuit parameter uncertainties:
  1  2.12569
  2  0.260477
  3  0.210772
  4  0.165999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/114839': 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) = 6912.27089207
delta logL = 1.06094988844

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  4.861e+00  2.126e+00  0.000e+00  1.000e+06 ( 1.000e-12)
323        alpha:  1.346e+00  2.605e-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.790e-01  1.660e-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:  9.009e-01  2.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 55.24
Ra Dec: 253.474 39.760
Photon Index (Free Index): 1.35 +/- 0.26
Photon Flux (Free Index): 4.53e-08 +/- 2.35e-08
Energy Flux (Free Index): 2.12e-04 +/- 1.27e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/114839/cmap_HighResolution_696038401_696297601_4FGL_J1653.8+3945_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.34e-08', energy_flux2='2.12e-04', photon_flux_error='2.56e-08', dlogl='1.06e+00', energy_flux='1.06e-04', photon_flux2='4.53e-08', job_status='DONE', time_completed='2023-01-25 01:28:09.032070', photon_index_error2='0.26', photon_index2='1.35', ts='53.22', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.27e-04', EG='0.88', time_epoch_completed='1674638889.03', return_code='0', job_id='114839', GAL2='0.88', EG2='0.90', return_code2='0', energy_flux_error='3.69e-05', photon_flux_error2='2.35e-08', ts2='55.24', photon_index='1.72' WHERE bin_id='1762' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 01:28:09 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 114839: <4FGL_J1653.8+3945_daily_bin1762> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin1762> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Jan 25 01:15:21 2023
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 01:15:58 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 01:15:58 2023
Terminated at Wed Jan 25 01:28:09 2023
Results reported at Wed Jan 25 01:28:09 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin1762 253.474 39.7595 696038401 696297601 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 :                                   685.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            768 sec.

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

