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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin1748
RA = 253.474, Dec = 39.7595
tmin = 692409601, tmax = 692668801
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='891342', job_status='RUN', time_executed='2022-12-14 00:55:55.655917', time_epoch_executed='1671008155.66' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891342

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891342/ft1_4FGL_J1653.8+3945_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891342/ft2_4FGL_J1653.8+3945_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891342/ft1_4FGL_J1653.8+3945_daily_bin1748.fits outfile=/scratch/kocevski/891342/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1748.fits ra=253.474 dec=39.7595 rad=12.0 tmin=692409601.0 tmax=692668801.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.55
user 3.32
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/891342/ft2_4FGL_J1653.8+3945_daily_bin1748.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/891342/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/891342/ft1_filtered_4FGL_J1653.8+3945_daily_bin1748.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 717

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891342/ft1_filtered_4FGL_J1653.8+3945_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/891342/ft2_4FGL_J1653.8+3945_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/891342/ltcube_692409601_692668801_4FGL_J1653.8+3945_daily_bin1748.fits outfile=/scratch/kocevski/891342/expmap_692409601_692668801_4FGL_J1653.8+3945_daily_bin1748.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/891342/ltcube_692409601_692668801_4FGL_J1653.8+3945_daily_bin1748.fits
.....................!
real 191.92
user 186.58
sys 5.03

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/891342/ft1_filtered_4FGL_J1653.8+3945_daily_bin1748.fits scfile=/scratch/kocevski/891342/ft2_4FGL_J1653.8+3945_daily_bin1748.fits outfile=/scratch/kocevski/891342/cmap_692409601_692668801_4FGL_J1653.8+3945_daily_bin1748.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=253.474 yref=39.7595 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891342/ft1_filtered_4FGL_J1653.8+3945_daily_bin1748.fits scfile=/scratch/kocevski/891342/ft2_4FGL_J1653.8+3945_daily_bin1748.fits outfile=/scratch/kocevski/891342/cmap_HighResolution_692409601_692668801_4FGL_J1653.8+3945_daily_bin1748.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.61
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10600E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .56050E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .19803E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.9864       1.0000          .0000       .10000E+07
     5 'norm      '    .66815       1.0000          .0000       .10000E+07
     6 'norm      '    .39207E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    1.6808       1.0000          .0000       .10000E+07
     8 'Prefactor '    10.101       1.0000          .0000       .10000E+07
     9 'norm      '    29.202       1.0000          .0000       .10000E+07
    10 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    11 'Prefactor '    .36148E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .41178E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .13987E-04   1.0000          .0000       .10000E+07
    14 'norm      '    5.1684       1.0000          .0000       .10000E+07
    15 'norm      '    .14058E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .75555E-02   1.0000          .0000       .10000E+07
    17 'norm      '    .46573       1.0000          .0000       .10000E+07
    18 'norm      '    6.5441       1.0000          .0000       .10000E+07
    19 'norm      '    8.1897       1.0000          .0000       .10000E+07
    20 'norm      '    3.8298       1.0000          .0000       .10000E+07
    21 'Prefactor '    40.509       1.0000          .0000       .10000E+07
    22 'Prefactor '    25.522       1.0000          .0000       .10000E+07
    23 'Prefactor '    44.537       1.0000          .0000       .10000E+07
    24 'Prefactor '    11.221       1.0000          .0000       .10000E+07
    25 'Normalizat'    .81263       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99764       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=   7615.088     FROM MIGRAD    STATUS=CONVERGED    192 CALLS     2296 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .84090       -.29085E-08** at limit **
   2  Prefactor      .0000        1.8658        .14211E-06** at limit **
   3  Prefactor      .0000        5.6686       -.17414E-06** at limit **
   4  Prefactor     2.9835        2.7050        .24417E-06   -.33240E-03
   5  norm          .66935        .17080       -.14221E-07    .90674E-02
   6  norm          .53768E-06    61.968       -.18306E-05** at limit **
   7  Prefactor     1.3425        63.463        .10235E-05    .56222E-03
   8  Prefactor     10.012        4.6241       -.60032E-07    .62438E-04
   9  norm          28.777        28.876       -.36819E-06   -.40740E-01
  10  Prefactor      .0000        .48987        .83868E-08** at limit **
  11  Prefactor      .0000        .65297        .34485E-07** at limit **
  12  Prefactor      .0000        2.8915        .12942E-06** at limit **
  13  Prefactor      .0000        2.0267        .64313E-07** at limit **
  14  norm          5.1675        1.7565       -.18736E-07    .10121E-02
  15  norm          .16653E-09    7.1406        .89716E-06** at limit **
  16  Prefactor      .0000        10.858       -.49561E-06** at limit **
  17  norm          .46454        .77875        .15114E-07   -.47088E-03
  18  norm          6.5588        8.9119        .15400E-06   -.51972E-03
  19  norm          8.1936        2.3238       -.68229E-07    .13537E-02
  20  norm          3.8370        3.8443       -.22306E-08   -.52161E-03
  21  Prefactor     39.750        50.382       -.47980E-07    .59858E-01
  22  Prefactor     25.572        1.1506        .30605E-08    .17209E-02
  23  Prefactor     43.762        24.515        .20015E-07   -.13536    
  24  Prefactor     11.196        11.284       -.18952E-06   -.19747E-02
  25  Normalizat    .81468        .21993       -.42892E-05   -.10560E-04
  26  Prefactor     .99706        .16710        .51249E-05   -.27668E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.98354
  norm       = 0.669349
  norm       = 5.37681e-07
  Prefactor  = 1.34246
  Prefactor  = 10.0117
  norm       = 28.7767
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 5.16749
  norm       = 1.66533e-10
  Prefactor  = 0
  norm       = 0.464536
  norm       = 6.55876
  norm       = 8.19356
  norm       = 3.83703
  Prefactor  = 39.7505
  Prefactor  = 25.5715
  Prefactor  = 43.7624
  Prefactor  = 11.1962
  Normalizat = 0.814681
  Prefactor  = 0.99706
 **********
 **   18 **HESSE 
 **********

 FCN=   7615.088     FROM HESSE     STATUS=OK           520 CALLS     2816 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .84029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.8693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        5.6902        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9835        2.7111        .58720E-03   -1.5673    
   5  norm          .66935        .17375        .34741E-03   -1.5692    
   6  norm          .53768E-06    61.906        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3425        65.830        .81220E-03   -1.5685    
   8  Prefactor     10.012        4.6464        .31504E-03   -1.5645    
   9  norm          28.777        29.555        .18508E-03   -1.5601    
  10  Prefactor      .0000        .48549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        .63515        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.8748        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        2.0208        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.1675        1.7616        .44196E-03   -1.5662    
  15  norm          .16653E-09    .37781        .31246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        10.730        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .46454        .79229        .82235E-03   -1.5694    
  18  norm          6.5588        8.9589        .39206E-03   -1.5657    
  19  norm          8.1936        2.3376        .35009E-03   -1.5651    
  20  norm          3.8370        3.8915        .51548E-03   -1.5669    
  21  Prefactor     39.750        58.919        .15713E-03   -1.5582    
  22  Prefactor     25.572        84.930        .19799E-03   -1.5607    
  23  Prefactor     43.762        43.269        .14986E-03   -1.5576    
  24  Prefactor     11.196        11.305        .29883E-03   -1.5641    
  25  Normalizat    .81468        .18576        .66505E-01   -.99526    
  26  Prefactor     .99706        .13894        .46238E-01   -.92828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14512e-06
Minuit parameter uncertainties:
  1  7.23252e-07
  2  1.64341e-06
  3  1.72317e-05
  4  2.71107
  5  0.17375
  6  0.0115387
  7  18.8018
  8  4.64643
  9  29.555
  10  9.46282e-07
  11  4.74018e-07
  12  3.38935e-07
  13  5.64482e-08
  14  1.76162
  15  1.60754e-05
  16  2.57785e-05
  17  0.792287
  18  8.95889
  19  2.33756
  20  3.89146
  21  58.9202
  22  84.934
  23  43.2693
  24  11.305
  25  0.185904
  26  0.138994
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  5.167e+00  1.762e+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:  9.971e-01  1.390e-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.147e-01  1.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 37.22
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 6.93e-08 +/- 2.36e-08
Energy Flux (Fixed Index): 9.98e-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) = 7615.07869852
delta logL = 0.00947267887841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7615.07799995
delta logL = 0.0101712468831

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1213       1.0000          .0000       .10000E+07
     2 'alpha     '    1.7566       1.0000          .0000       5.0000    
     3 'Normalizat'    .81211       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99790       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=   7615.078     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      196 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1213        3.8840        .44403E-03    .21454E-02
   2  alpha         1.7566        .50988        .19422        .19858E-04
   3  Normalizat    .81211        .17330        .66594E-01   -.10004E-03
   4  Prefactor     .99790        .13734        .46241E-01   -.16022E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.12134
  alpha      = 1.7566
  Normalizat = 0.812108
  Prefactor  = 0.997898
 **********
 **   18 **HESSE 
 **********

 FCN=   7615.078     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1213        1.7809        .64843E-05   -1.5663    
   2  alpha         1.7566        .25036        .80099E-02   -.30193    
   3  Normalizat    .81211        .20139        .29462E-03   -.99621    
   4  Prefactor     .99790        .16237        .21573E-03   -.92800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4064e-10
Minuit parameter uncertainties:
  1  1.78086
  2  0.250822
  3  0.20158
  4  0.162452
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891342': 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) = 7615.07799995
delta logL = 0.0101712472497

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  5.121e+00  1.781e+00  0.000e+00  1.000e+06 ( 1.000e-12)
323        alpha:  1.757e+00  2.508e-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:  9.979e-01  1.625e-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.121e-01  2.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 37.18
Ra Dec: 253.474 39.760
Photon Index (Free Index): 1.76 +/- 0.25
Photon Flux (Free Index): 7.20e-08 +/- 3.11e-08
Energy Flux (Free Index): 9.35e-05 +/- 5.36e-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/891342/cmap_HighResolution_692409601_692668801_4FGL_J1653.8+3945_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.93e-08', energy_flux2='9.35e-05', photon_flux_error='2.36e-08', dlogl='1.02e-02', energy_flux='9.98e-05', photon_flux2='7.20e-08', job_status='DONE', time_completed='2022-12-14 01:07:37.787240', photon_index_error2='0.25', photon_index2='1.76', ts='37.22', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='5.36e-05', EG='0.81', time_epoch_completed='1671008857.79', return_code='0', job_id='891342', GAL2='1.00', EG2='0.81', return_code2='0', energy_flux_error='3.40e-05', photon_flux_error2='3.11e-08', ts2='37.18', photon_index='1.72' WHERE bin_id='1748' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 01:07:37 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 891342: <4FGL_J1653.8+3945_daily_bin1748> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin1748> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec 14 00:55:27 2022
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:55:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:55:28 2022
Terminated at Wed Dec 14 01:07:38 2022
Results reported at Wed Dec 14 01:07:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin1748 253.474 39.7595 692409601 692668801 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 :                                   704.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            731 sec.

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

