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 51 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1616.6+4630_monthly_bin167
RA = 244.16, Dec = 46.5099
tmin = 669859201, tmax = 672451201
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='899369', job_status='RUN', time_executed='2022-04-24 02:31:08.514075', time_epoch_executed='1650792668.51' WHERE source_name='4FGL J1616.6+4630' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899369

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899369/ft1_4FGL_J1616.6+4630_monthly_bin167.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899369/ft2_4FGL_J1616.6+4630_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899369/ft1_4FGL_J1616.6+4630_monthly_bin167.fits outfile=/scratch/kocevski/899369/ft1_filteredMKT_4FGL_J1616.6+4630_monthly_bin167.fits ra=244.16 dec=46.5099 rad=12.0 tmin=669859201.0 tmax=672451201.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 43.44
user 36.83
sys 0.98

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/899369/ft2_4FGL_J1616.6+4630_monthly_bin167.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/899369/ft1_filteredMKT_4FGL_J1616.6+4630_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/899369/ft1_filtered_4FGL_J1616.6+4630_monthly_bin167.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.85
user 0.66
sys 0.18

Number of photons that the gtmktime cut: 7154

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899369/ft1_filtered_4FGL_J1616.6+4630_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/899369/ft2_4FGL_J1616.6+4630_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/899369/ltcube_669859201_672451201_4FGL_J1616.6+4630_monthly_bin167.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/899369/ft2_4FGL_J1616.6+4630_monthly_bin167.fits
.....................!
real 131.17
user 130.55
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899369/ft1_filtered_4FGL_J1616.6+4630_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/899369/ft2_4FGL_J1616.6+4630_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/899369/ltcube_669859201_672451201_4FGL_J1616.6+4630_monthly_bin167.fits outfile=/scratch/kocevski/899369/expmap_669859201_672451201_4FGL_J1616.6+4630_monthly_bin167.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/899369/ltcube_669859201_672451201_4FGL_J1616.6+4630_monthly_bin167.fits
.....................!
real 191.38
user 186.42
sys 4.61

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/899369/ft1_filtered_4FGL_J1616.6+4630_monthly_bin167.fits scfile=/scratch/kocevski/899369/ft2_4FGL_J1616.6+4630_monthly_bin167.fits outfile=/scratch/kocevski/899369/cmap_669859201_672451201_4FGL_J1616.6+4630_monthly_bin167.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.80
user 0.60
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899369/ft1_filtered_4FGL_J1616.6+4630_monthly_bin167.fits scfile=/scratch/kocevski/899369/ft2_4FGL_J1616.6+4630_monthly_bin167.fits outfile=/scratch/kocevski/899369/cmap_HighResolution_669859201_672451201_4FGL_J1616.6+4630_monthly_bin167.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.80
user 0.61
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/899369/ft1_filtered_4FGL_J1616.6+4630_monthly_bin167.fits', '/scratch/kocevski/899369/ft2_4FGL_J1616.6+4630_monthly_bin167.fits', expMap='/scratch/kocevski/899369/expmap_669859201_672451201_4FGL_J1616.6+4630_monthly_bin167.fits', expCube='/scratch/kocevski/899369/ltcube_669859201_672451201_4FGL_J1616.6+4630_monthly_bin167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/899369/Model_4FGL_J1616.6+4630_monthly_bin167.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  1.000e-04  1.000e+04 ( 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/899369/ft1_filtered_4FGL_J1616.6+4630_monthly_bin167.fits
Spacecraft file(s): /scratch/kocevski/899369/ft2_4FGL_J1616.6+4630_monthly_bin167.fits
Exposure map: /scratch/kocevski/899369/expmap_669859201_672451201_4FGL_J1616.6+4630_monthly_bin167.fits
Exposure cube: /scratch/kocevski/899369/ltcube_669859201_672451201_4FGL_J1616.6+4630_monthly_bin167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/899369/Model_4FGL_J1616.6+4630_monthly_bin167.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) = 75583.1674758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51330       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11561E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .72075E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8982       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .32682E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7745       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7127       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9853       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24018       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11825E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    20.955       1.0000         .10000E-03   10000.    
    15 'norm      '    .27950       1.0000         .10000E-03   10000.    
    16 'norm      '    2.9309       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0700       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5950       1.0000         .10000E-03   10000.    
    20 'norm      '    6.2451       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1919       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.075       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0871       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .24460E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.7392       1.0000         .10000E-03   10000.    
    26 'norm      '    3.6334       1.0000         .10000E-03   10000.    
    27 'norm      '    .26234       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.0219       1.0000         .10000E-03   10000.    
    29 'norm      '    .10164       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .99990       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .99642       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   75582.13     FROM MIGRAD    STATUS=CONVERGED    839 CALLS     3723 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51338        .58226       -.86336E-07   -.15527E-02
   2  Prefactor     .10000E-03    .90827        .35575E-07** at limit **
   3  Prefactor     .10000E-03    1.5186        .45688E-06** at limit **
   4  Prefactor     .10077E-03    .61425        .39552E-06** at limit **
   5  norm          1.8985        2.0695       -.33841E-06   -.88212E-04
   6  Prefactor     .10000E-03    .99006        .78375E-08** at limit **
   7  Prefactor     1.7745        1.2141        .24179E-07    .92367E-04
   8  norm          .10000E-03    .31658       -.59869E-07** at limit **
   9  Prefactor     7.6685        9.2788       -.16279E-05    .25979E-04
  10  Prefactor     1.9925        1.3879        .54072E-07    .26674E-03
  11  Prefactor     .19181        1.1724       -.24379E-06    .67069E-03
  12  Prefactor     .10000E-03    .34714       -.74388E-07** at limit **
  13  Prefactor     .10000E-03    .15990        .12173E-08** at limit **
  14  norm          20.955        5.6818        .14134E-05    .11761E-03
  15  norm          .27945        .45220E-01    .26636E-08    .86484E-03
  16  norm          2.9299        2.0938       -.89860E-07    .57211E-03
  17  Prefactor     .10000E-03    1.7066       -.23360E-06** at limit **
  18  Prefactor     1.0696        .97500       -.56738E-08   -.36961E-03
  19  Prefactor     6.5908        2.0021       -.13281E-06   -.41913E-04
  20  norm          6.2477        8.1353        .15626E-05    .35812E-04
  21  Prefactor     1.1925        .73360       -.24502E-07   -.46916E-03
  22  Prefactor     15.075        .96850        .23568E-08    .16308E-02
  23  Prefactor     3.0874        .94861       -.27427E-07   -.86537E-04
  24  Prefactor     .26043E-01    .11644       -.95851E-07    .15695E-02
  25  Prefactor     3.7380        1.3474        .50158E-07   -.23832E-02
  26  norm          3.6332        .52799        .84039E-08    .28953E-03
  27  norm          .26218        .21502        .33766E-08   -.38165E-03
  28  Prefactor     1.0247        1.8209       -.30249E-07   -.82387E-03
  29  norm          .10146        .13674        .17500E-07   -.12552E-02
  30  Normalizat    1.0001        .57559E-01   -.59413E-07    .20698E-04
  31  Prefactor     .99630        .54322E-01   -.11968E-06    .80648E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.513383
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100772
  norm       = 1.89848
  Prefactor  = 0.0001
  Prefactor  = 1.77452
  norm       = 0.0001
  Prefactor  = 7.66845
  Prefactor  = 1.99248
  Prefactor  = 0.191806
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.9551
  norm       = 0.279454
  norm       = 2.92993
  Prefactor  = 0.0001
  Prefactor  = 1.06959
  Prefactor  = 6.59081
  norm       = 6.24773
  Prefactor  = 1.19246
  Prefactor  = 15.0749
  Prefactor  = 3.08739
  Prefactor  = 0.0260432
  Prefactor  = 3.738
  norm       = 3.63324
  norm       = 0.262178
  Prefactor  = 1.02468
  norm       = 0.101465
  Normalizat = 1.00011
  Prefactor  = 0.996301
 **********
 **   18 **HESSE 
 **********

 FCN=   75582.13     FROM HESSE     STATUS=OK           680 CALLS     4403 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51338        .52598        .21272E-02   -1.5565    
   2  Prefactor     .10000E-03    .92956        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.5296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10077E-03    1.0739        .66239E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8985        2.0658        .30191E-03   -1.5432    
   6  Prefactor     .10000E-03    4.3920        .53091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7745        1.2039        .24063E-03   -1.5442    
   8  norm          .10000E-03    1.3823        .29651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.6685        9.2364        .14439E-03   -1.5154    
  10  Prefactor     1.9925        1.4326        .24278E-03   -1.5426    
  11  Prefactor     .19181        2.3557        .92199E-01   -1.5620    
  12  Prefactor     .10000E-03    1.2581        .30805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .30951        .21140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          20.955        5.6733        .87498E-04   -1.4792    
  15  norm          .27945        .44271E-01    .21755E-04   -1.5602    
  16  norm          2.9299        2.1368        .11863E-02   -1.5366    
  17  Prefactor     .10000E-03    1.7281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.0696        .96102        .24598E-03   -1.5501    
  19  Prefactor     6.5908        2.0024        .15626E-03   -1.5194    
  20  norm          6.2477        8.1174        .16063E-03   -1.5208    
  21  Prefactor     1.1925        .65421        .11556E-03   -1.5490    
  22  Prefactor     15.075        .88208        .42978E-04   -1.4931    
  23  Prefactor     3.0874        .92619        .13641E-03   -1.5357    
  24  Prefactor     .26043E-01    .16233        .34890E-01   -1.5676    
  25  Prefactor     3.7380        2.1860        .10440E-02   -1.5321    
  26  norm          3.6332        .52830        .73558E-04   -1.5327    
  27  norm          .26218        .18290        .10175E-02   -1.5606    
  28  Prefactor     1.0247        1.9178        .47385E-03   -1.5506    
  29  norm          .10146        .16740        .10717E-02   -1.5644    
  30  Normalizat    1.0001        .67922E-01    .26571E-03   -.93027    
  31  Prefactor     .99630        .64759E-01    .26115E-03   -.92853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40492e-07
Minuit parameter uncertainties:
  1  0.525989
  2  2.05327e-06
  3  1.98496e-06
  4  0.0018209
  5  2.06583
  6  1.27982e-05
  7  1.20395
  8  3.22449e-05
  9  9.23813
  10  1.43259
  11  1.3441
  12  1.31767e-05
  13  1.04304e-06
  14  5.6734
  15  0.0442714
  16  2.13685
  17  1.01469e-06
  18  0.961037
  19  2.00243
  20  8.11882
  21  0.654213
  22  0.882076
  23  0.92619
  24  0.129789
  25  2.18609
  26  0.528299
  27  0.182896
  28  1.91792
  29  0.167406
  30  0.0679275
  31  0.0647642
Done.

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

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  1.918e-01  1.344e+00  1.000e-04  1.000e+04 ( 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:  9.963e-01  6.476e-02  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:  1.000e+00  6.793e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/899369/likelihoodResults_669859201_672451201_4FGL_J1616.6+4630_monthly_bin167.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) = 75582.130432
delta logL = 1.74589513335e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 75582.1304302
delta logL = 3.5338307498e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19180       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5982       1.0000          .0000       10.000    
     3 'Normalizat'    1.0001       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99630       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   75582.13     FROM MIGRAD    STATUS=FAILED       135 CALLS      320 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34378        3.0833        .12199        .25763E-02
   2  Index         2.1988        2.0795        .50000       -.27629E-03
   3  Normalizat    1.0002        .17197E-02    .26569E-03   -.16999E-02
   4  Prefactor     .99616        .16959E-02    .26117E-03   -.97926E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   75582.13     FROM SIMPLEX   STATUS=UNCHANGED     49 CALLS      369 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34378        3.0833        .55464E-03    .25763E-02
   2  Index         2.1988        2.0795        .52732E-02   -.27629E-03
   3  Normalizat    1.0002        .17197E-02    .12651E-04   -.16999E-02
   4  Prefactor     .99616        .16959E-02    .30967E-04   -.97926E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   75582.13     FROM MIGRAD    STATUS=FAILED        94 CALLS      463 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34383        3.0221        .12335        .26640E-02
   2  Index         2.1987        2.0713        .50000       -.28832E-03
   3  Normalizat    1.0002        .17122E-02    .21255E-05   -.16089E-02
   4  Prefactor     .99616        .16884E-02    .20893E-05   -.87061E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.343829
  Index      = 2.19873
  Normalizat = 1.00023
  Prefactor  = 0.996158
 **********
 **   18 **HESSE 
 **********

 FCN=   75582.13     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      502 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34383        3.0208        .12338       -1.5591    
   2  Index         2.1987        2.0711        .50000       -.59469    
   3  Normalizat    1.0002        .17056E-02    .42511E-06   -.93023    
   4  Prefactor     .99616        .16819E-02    .41786E-06   -.92858    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.93023e-08
Minuit parameter uncertainties:
  1  2.03811
  2  2.16894
  3  0.00170563
  4  0.00168193
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899369': 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): 1
logL (Free Index) = 75582.1290461
delta logL = 0.00138762037386

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  3.438e-01  2.038e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.199e+00  2.169e+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:  9.962e-01  1.682e-03  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:  1.000e+00  1.706e-03  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 -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/899369/cmap_HighResolution_669859201_672451201_4FGL_J1616.6+4630_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-03', job_status='DONE', photon_flux_upper_limit='1.92e-08', time_completed='2022-04-24 05:02:24.958236', job_id='899369', GAL2='1.00', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1650801744.96', return_code2='1', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.39e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='167' AND source_name='4FGL J1616.6+4630' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 05:02:24 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 899369: <4FGL_J1616.6+4630_monthly_bin167> in cluster <slac> Done

Job <4FGL_J1616.6+4630_monthly_bin167> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Apr 24 02:00:49 2022
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 02:30:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 02:30:09 2022
Terminated at Sun Apr 24 05:02:26 2022
Results reported at Sun Apr 24 05:02:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1616.6+4630_monthly_bin167 244.16 46.5099 669859201 672451201 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 :                                   9041.00 sec.
    Max Memory :                                 1101 MB
    Average Memory :                             417.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   9137 sec.
    Turnaround time :                            10897 sec.

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

