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


Performing analysis on: 4FGL_J1616.6+4630_daily_bin1777
RA = 244.16, Dec = 46.5099
tmin = 699926401, tmax = 700185601
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='918277', job_status='RUN', time_executed='2023-03-11 00:55:59.691595', time_epoch_executed='1678524959.69' WHERE source_name='4FGL J1616.6+4630' and cadence='daily' and bin_id='1777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918277

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918277/ft1_4FGL_J1616.6+4630_daily_bin1777.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918277/ft2_4FGL_J1616.6+4630_daily_bin1777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918277/ft1_4FGL_J1616.6+4630_daily_bin1777.fits outfile=/scratch/kocevski/918277/ft1_filteredMKT_4FGL_J1616.6+4630_daily_bin1777.fits ra=244.16 dec=46.5099 rad=12.0 tmin=699926401.0 tmax=700185601.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.61
user 3.42
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/918277/ft2_4FGL_J1616.6+4630_daily_bin1777.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/918277/ft2_4FGL_J1616.6+4630_daily_bin1777.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/918277/ft1_filteredMKT_4FGL_J1616.6+4630_daily_bin1777.fits evtable="EVENTS" outfile="/scratch/kocevski/918277/ft1_filtered_4FGL_J1616.6+4630_daily_bin1777.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.14

Number of photons that the gtmktime cut: 682

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918277/ft1_filtered_4FGL_J1616.6+4630_daily_bin1777.fits" evtable="EVENTS" scfile=/scratch/kocevski/918277/ft2_4FGL_J1616.6+4630_daily_bin1777.fits sctable="SC_DATA" outfile=/scratch/kocevski/918277/ltcube_699926401_700185601_4FGL_J1616.6+4630_daily_bin1777.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/918277/ft2_4FGL_J1616.6+4630_daily_bin1777.fits
.....................!
real 12.00
user 11.60
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918277/ft1_filtered_4FGL_J1616.6+4630_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/918277/ft2_4FGL_J1616.6+4630_daily_bin1777.fits sctable="SC_DATA" expcube=/scratch/kocevski/918277/ltcube_699926401_700185601_4FGL_J1616.6+4630_daily_bin1777.fits outfile=/scratch/kocevski/918277/expmap_699926401_700185601_4FGL_J1616.6+4630_daily_bin1777.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/918277/ltcube_699926401_700185601_4FGL_J1616.6+4630_daily_bin1777.fits
.....................!
real 190.86
user 185.40
sys 5.12

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 212 point sources and 0 extended sources

Setting source of interest to:
4FGL J1616.6+4630 @ 244.16 46.5099

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/918277/ft1_filtered_4FGL_J1616.6+4630_daily_bin1777.fits scfile=/scratch/kocevski/918277/ft2_4FGL_J1616.6+4630_daily_bin1777.fits outfile=/scratch/kocevski/918277/cmap_699926401_700185601_4FGL_J1616.6+4630_daily_bin1777.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=244.16 yref=46.5099 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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918277/ft1_filtered_4FGL_J1616.6+4630_daily_bin1777.fits scfile=/scratch/kocevski/918277/ft2_4FGL_J1616.6+4630_daily_bin1777.fits outfile=/scratch/kocevski/918277/cmap_HighResolution_699926401_700185601_4FGL_J1616.6+4630_daily_bin1777.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=244.16 yref=46.5099 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918277/ft1_filtered_4FGL_J1616.6+4630_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/918277/ft2_4FGL_J1616.6+4630_daily_bin1777.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918277/Model_4FGL_J1616.6+4630_daily_bin1777.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/918277/ft1_filtered_4FGL_J1616.6+4630_daily_bin1777.fits.....................!
real 57.23
user 55.83
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/918277/ft1_filtered_4FGL_J1616.6+4630_daily_bin1777.fits', '/scratch/kocevski/918277/ft2_4FGL_J1616.6+4630_daily_bin1777.fits', expMap='/scratch/kocevski/918277/expmap_699926401_700185601_4FGL_J1616.6+4630_daily_bin1777.fits', expCube='/scratch/kocevski/918277/ltcube_699926401_700185601_4FGL_J1616.6+4630_daily_bin1777.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/918277/Model_4FGL_J1616.6+4630_daily_bin1777.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1616.6+4630'

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  3.213e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  8.481e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/918277/ft1_filtered_4FGL_J1616.6+4630_daily_bin1777.fits
Spacecraft file(s): /scratch/kocevski/918277/ft2_4FGL_J1616.6+4630_daily_bin1777.fits
Exposure map: /scratch/kocevski/918277/expmap_699926401_700185601_4FGL_J1616.6+4630_daily_bin1777.fits
Exposure cube: /scratch/kocevski/918277/ltcube_699926401_700185601_4FGL_J1616.6+4630_daily_bin1777.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/918277/Model_4FGL_J1616.6+4630_daily_bin1777.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) = 7498.2374896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15386E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    3.4663       1.0000          .0000       .10000E+07
     3 'Prefactor '    .19109E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .61045E-03   1.0000          .0000       .10000E+07
     5 'norm      '    25.015       1.0000          .0000       .10000E+07
     6 'Prefactor '    31.969       1.0000          .0000       .10000E+07
     7 'Prefactor '    9.4219       1.0000          .0000       .10000E+07
     8 'norm      '    .10246E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    77.750       1.0000          .0000       .10000E+07
    10 'Prefactor '    .84356E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .22683E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.9590       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.9395       1.0000          .0000       .10000E+07
    14 'norm      '    .13250E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .15775       1.0000          .0000       .10000E+07
    16 'norm      '    .14125E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .14556E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    2.8059       1.0000          .0000       .10000E+07
    19 'Prefactor '    11.244       1.0000          .0000       .10000E+07
    20 'norm      '    .21013       1.0000          .0000       .10000E+07
    21 'Prefactor '    3.2613       1.0000          .0000       .10000E+07
    22 'Prefactor '    .15917E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .12323E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    .43877E-05   1.0000          .0000       .10000E+07
    25 'Prefactor '    .47471E-03   1.0000          .0000       .10000E+07
    26 'norm      '    1.0271       1.0000          .0000       .10000E+07
    27 'norm      '    .58287E-08   1.0000          .0000       .10000E+07
    28 'Prefactor '    .66694E-03   1.0000          .0000       .10000E+07
    29 'norm      '    .16653E-08   1.0000          .0000       .10000E+07
    30 'Normalizat'    .91465       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0440       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7498.227     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     2962 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83267E-09    2.1871       -.83966E-07** at limit **
   2  Prefactor     3.4384        6.2558       -.18699E-06   -.79421E-02
   3  Prefactor     .42188E-08    2.9131        .90060E-06** at limit **
   4  Prefactor     .49016E-07    7.0911       -.35099E-05** at limit **
   5  norm          24.971        5.5453        .28171E-06   -.41700E-01
   6  Prefactor     32.259        20.593        .21759E-05    .18441    
   7  Prefactor     9.4158        2.2232       -.56403E-06   -.95862E-01
   8  norm          .41633E-08    3.0439        .11074E-05** at limit **
   9  Prefactor     77.587        46.845       -.51021E-05    .13582    
  10  Prefactor     .10547E-08    1.9189       -.24427E-07** at limit **
  11  Prefactor     .16959E-06    3.2537       -.27005E-05** at limit **
  12  Prefactor     6.9043        5.8101        .31759E-06    .90854E-03
  13  Prefactor     3.9412        2.8119       -.14770E-07   -.15287E-02
  14  norm          .67168E-08    4.5384        .23829E-05** at limit **
  15  norm          .15766        .10420        .34584E-09** at limit **
  16  norm          .32752E-08    2.6461        .39359E-06** at limit **
  17  Prefactor     .42744E-08    4.7773       -.66217E-06** at limit **
  18  Prefactor     2.8028        3.8869       -.61338E-08   -.23071E-02
  19  Prefactor     11.253        8.1630        .22243E-06   -.13868E-02
  20  norm          .65481E-06    2.3696        .29689E-05** at limit **
  21  Prefactor     3.2638        1.2679       -.45271E-08   -.32313E-02
  22  Prefactor     .10708E-06    4.7113        .39496E-05** at limit **
  23  Prefactor     .11102E-09    1.9228       -.25480E-08** at limit **
  24  Prefactor      .0000        1.4381       -.17823E-07** at limit **
  25  Prefactor     .48350E-07    3.7250       -.10348E-05** at limit **
  26  norm          1.0270        .89215       -.21100E-08   -.44232E-03
  27  norm           .0000        .20538       -.58970E-08** at limit **
  28  Prefactor     .18291E-06    14.733        .24073E-05** at limit **
  29  norm           .0000        .55227       -.50185E-09** at limit **
  30  Normalizat    .91506        .20522        .98270E-07   -.10484E-03
  31  Prefactor     1.0438        .19340       -.30262E-06   -.95267E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.32667e-10
  Prefactor  = 3.43838
  Prefactor  = 4.21885e-09
  Prefactor  = 4.90163e-08
  norm       = 24.9707
  Prefactor  = 32.2594
  Prefactor  = 9.41585
  norm       = 4.16334e-09
  Prefactor  = 77.5873
  Prefactor  = 1.05471e-09
  Prefactor  = 1.69587e-07
  Prefactor  = 6.9043
  Prefactor  = 3.94116
  norm       = 6.71685e-09
  norm       = 0.157658
  norm       = 3.27516e-09
  Prefactor  = 4.27436e-09
  Prefactor  = 2.80279
  Prefactor  = 11.253
  norm       = 6.5481e-07
  Prefactor  = 3.26384
  Prefactor  = 1.07081e-07
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 4.83502e-08
  norm       = 1.02697
  norm       = 0
  Prefactor  = 1.82909e-07
  norm       = 0
  Normalizat = 0.915064
  Prefactor  = 1.04383
 **********
 **   18 **HESSE 
 **********

 FCN=   7498.227     FROM HESSE     STATUS=OK           684 CALLS     3646 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83267E-09    2.1981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.4384        6.3505        .54291E-03   -1.5671    
   3  Prefactor     .42188E-08    5.7491        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .49016E-07    10.465        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          24.971        19.416        .19998E-03   -1.5608    
   6  Prefactor     32.259        30.980        .17689E-03   -1.5594    
   7  Prefactor     9.4158        6.8569        .32625E-03   -1.5647    
   8  norm          .41633E-08    9.7290        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     77.587        64.516        .11342E-03   -1.5532    
  10  Prefactor     .10547E-08    1.9485        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .16959E-06    6.4272        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.9043        5.8258        .38006E-03   -1.5655    
  13  Prefactor     3.9412        2.8121        .50800E-03   -1.5668    
  14  norm          .67168E-08    9.3855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .15766        .10508        .47401E-03   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .32752E-08    5.8069        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .42744E-08    4.8019        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.8028        3.9084        .60703E-03   -1.5674    
  19  Prefactor     11.253        8.2323        .29851E-03   -1.5641    
  20  norm          .65481E-06    39.190        .11598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.2638        1.6238        .56053E-03   -1.5672    
  22  Prefactor     .10708E-06    .90097        .36488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .11102E-09    1.9229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor      .0000        1.4304        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .48350E-07    6.8919        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.0270        .90208        .12592E-02   -1.5688    
  27  norm           .0000        .20588        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .18291E-06    15.151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm           .0000        .53416        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .91506        .17819        .45089E-01   -.95933    
  31  Prefactor     1.0438        .16425        .40274E-01   -.91282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22081e-06
Minuit parameter uncertainties:
  1  8.53494e-05
  2  6.35055
  3  0.00031103
  4  0.0014324
  5  19.4158
  6  30.9799
  7  6.85692
  8  0.000403066
  9  64.5164
  10  9.07445e-05
  11  0.00208793
  12  5.82581
  13  2.81213
  14  0.000501471
  15  0.105077
  16  0.000274885
  17  0.000286584
  18  3.90838
  19  8.23234
  20  0.0101318
  21  1.62381
  22  0.000621284
  23  2.67714e-05
  24  7.34322e-06
  25  0.00115481
  26  0.902083
  27  5.01321e-07
  28  0.00332944
  29  2.1704e-07
  30  0.178308
  31  0.164326
Done.

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

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  1.696e-07  2.088e-03  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  8.481e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  1.044e+00  1.643e-01  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  9.151e-01  1.783e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 244.160 46.510
Photon Flux Upper Limit: 4.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/918277/likelihoodResults_699926401_700185601_4FGL_J1616.6+4630_daily_bin1777.txt

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): 102
logL (Free Index) = 7498.22722941
delta logL = -0.000127127813357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7498.22710454
delta logL = -2.2502763386e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10079E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.4186       1.0000          .0000       10.000    
     3 'Normalizat'    .91529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0435       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7498.227     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      240 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.9296        .42118E-03** at limit **
   2  Index         2.8976        1.3757        .19970E-04     .0000    
   3  Normalizat    .91506        1.2498       -.12024E-05    .36138E-04
   4  Prefactor     1.0438        1.1992       -.57922E-07    .41788E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.89764
  Normalizat = 0.915064
  Prefactor  = 1.04383
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7498.227     FROM HESSE     STATUS=FAILED         9 CALLS      249 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.9296        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .95055        2.0461        .19970E-04   -.43397    
   3  Normalizat    .91506        1.2498       -.12024E-05   -.95933    
   4  Prefactor     1.0438        1.1992       -.57922E-07   -.91282    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.14969e-12
Minuit parameter uncertainties:
  1  1.54578e-05
  2  1.3977
  3  1.29314
  4  1.23234
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918277': 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): 101
logL (Free Index) = 7498.22710227
delta logL = 1.31940396386e-08

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  0.000e+00  1.546e-05  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.898e+00  1.398e+00  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  8.481e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  1.044e+00  1.232e+00  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  9.151e-01  1.293e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 244.160 46.510

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/918277/cmap_HighResolution_699926401_700185601_4FGL_J1616.6+4630_daily_bin1777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.82e-03', job_status='DONE', photon_flux_upper_limit='4.88e-08', time_completed='2023-03-11 01:11:14.731294', job_id='918277', GAL2='1.04', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1678525874.73', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.32e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1777' AND source_name='4FGL J1616.6+4630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 01:11:14 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 918277: <4FGL_J1616.6+4630_daily_bin1777> in cluster <slac> Done

Job <4FGL_J1616.6+4630_daily_bin1777> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Mar 11 00:55:30 2023
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 00:55:31 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 00:55:31 2023
Terminated at Sat Mar 11 01:11:15 2023
Results reported at Sat Mar 11 01:11:15 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1616.6+4630_daily_bin1777 244.16 46.5099 699926401 700185601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1616.6+4630 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   917.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            945 sec.

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

