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


Performing analysis on: 4FGL_J1616.6+4630_monthly_bin169
RA = 244.16, Dec = 46.5099
tmin = 675043201, tmax = 677635201
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='177652', job_status='RUN', time_executed='2022-06-23 02:33:41.622049', time_epoch_executed='1655976821.62' WHERE source_name='4FGL J1616.6+4630' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/177652

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/177652/ft1_4FGL_J1616.6+4630_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/177652/ft2_4FGL_J1616.6+4630_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/177652/ft1_4FGL_J1616.6+4630_monthly_bin169.fits outfile=/scratch/kocevski/177652/ft1_filteredMKT_4FGL_J1616.6+4630_monthly_bin169.fits ra=244.16 dec=46.5099 rad=12.0 tmin=675043201.0 tmax=677635201.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 28.03
user 27.30
sys 0.65

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

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

Number of photons that the gtmktime cut: 8968

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/177652/ft1_filtered_4FGL_J1616.6+4630_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/177652/ft2_4FGL_J1616.6+4630_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/177652/ltcube_675043201_677635201_4FGL_J1616.6+4630_monthly_bin169.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/177652/ft2_4FGL_J1616.6+4630_monthly_bin169.fits
.....................!
real 133.43
user 132.75
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/177652/ft1_filtered_4FGL_J1616.6+4630_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/177652/ft2_4FGL_J1616.6+4630_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/177652/ltcube_675043201_677635201_4FGL_J1616.6+4630_monthly_bin169.fits outfile=/scratch/kocevski/177652/expmap_675043201_677635201_4FGL_J1616.6+4630_monthly_bin169.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/177652/ltcube_675043201_677635201_4FGL_J1616.6+4630_monthly_bin169.fits
.....................!
real 194.01
user 188.48
sys 5.09

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/177652/ft1_filtered_4FGL_J1616.6+4630_monthly_bin169.fits scfile=/scratch/kocevski/177652/ft2_4FGL_J1616.6+4630_monthly_bin169.fits outfile=/scratch/kocevski/177652/cmap_675043201_677635201_4FGL_J1616.6+4630_monthly_bin169.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.81
user 0.62
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/177652/ft1_filtered_4FGL_J1616.6+4630_monthly_bin169.fits scfile=/scratch/kocevski/177652/ft2_4FGL_J1616.6+4630_monthly_bin169.fits outfile=/scratch/kocevski/177652/cmap_HighResolution_675043201_677635201_4FGL_J1616.6+4630_monthly_bin169.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.65
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/177652/ft1_filtered_4FGL_J1616.6+4630_monthly_bin169.fits', '/scratch/kocevski/177652/ft2_4FGL_J1616.6+4630_monthly_bin169.fits', expMap='/scratch/kocevski/177652/expmap_675043201_677635201_4FGL_J1616.6+4630_monthly_bin169.fits', expCube='/scratch/kocevski/177652/ltcube_675043201_677635201_4FGL_J1616.6+4630_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/177652/Model_4FGL_J1616.6+4630_monthly_bin169.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/177652/ft1_filtered_4FGL_J1616.6+4630_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/177652/ft2_4FGL_J1616.6+4630_monthly_bin169.fits
Exposure map: /scratch/kocevski/177652/expmap_675043201_677635201_4FGL_J1616.6+4630_monthly_bin169.fits
Exposure cube: /scratch/kocevski/177652/ltcube_675043201_677635201_4FGL_J1616.6+4630_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/177652/Model_4FGL_J1616.6+4630_monthly_bin169.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) = 96871.0682076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77153E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4284       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11393E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10732E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10549E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8072       1.0000         .10000E-03   10000.    
     8 'norm      '    .35914       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0947       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12352E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0677       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .74250E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .21445E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .92543E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .73857       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .23031       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .82383       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12516E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .12491E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.2190       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.5496       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.3979       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.2944       1.0000         .10000E-03   10000.    
    26 'norm      '    3.6610       1.0000         .10000E-03   10000.    
    27 'norm      '    .67330E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.3459       1.0000         .10000E-03   10000.    
    29 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .96117       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0671       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=   96870.97     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     3060 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77225E-01    .55391        .11230E-05   -.45790E-05
   2  Prefactor     .10000E-03    .43062       -.33787E-07** at limit **
   3  Prefactor     1.4276        1.1968        .10372E-05   -.17642E-02
   4  Prefactor     .10000E-03    1.2554        .57719E-06** at limit **
   5  norm          .10000E-03    1.1094       -.26764E-06** at limit **
   6  Prefactor     .10000E-03    1.3882       -.11704E-06** at limit **
   7  Prefactor     2.8099        1.5118       -.96514E-06    .68760E-05
   8  norm          .35785        1.3177        .37385E-05    .33529E-03
   9  Prefactor     7.9943        13.673        .23027E-05   -.17291E-04
  10  Prefactor     .10000E-03    .49810       -.75024E-07** at limit **
  11  Prefactor     .10000E-03    13.784       -.78362E-06** at limit **
  12  Prefactor     7.0717        1.5951        .75821E-06    .57146E-03
  13  Prefactor     .75078E-01    .88963        .33625E-06   -.42865E-05
  14  norm          .10000E-03    63.710       -.10695E-04** at limit **
  15  norm          .92538E-01    .28271E-01    .15129E-08    .30034E-02
  16  norm          .73793        1.1497       -.75508E-08   -.36281E-04
  17  Prefactor     .24573        10.368        .20371E-05    .16946E-03
  18  Prefactor     .82367        .65136        .72302E-07    .24334E-03
  19  Prefactor     .10000E-03    1.8436        .17909E-07** at limit **
  20  norm          .10000E-03    2.1368        .11445E-06** at limit **
  21  Prefactor     3.2186        .56203        .11600E-07    .59550E-03
  22  Prefactor     2.5503        .54493        .13830E-07    .24267E-03
  23  Prefactor     1.3987        .60946        .14362E-07    .12012E-02
  24  Prefactor     .10000E-03    .37482       -.54883E-07** at limit **
  25  Prefactor     1.2942        1.2846       -.11014E-06    .26527E-03
  26  norm          3.6607        .47675       -.39840E-08   -.71625E-03
  27  norm          .67268E-01    .90848E-01    .64239E-07    .21182E-02
  28  Prefactor     3.3459        1.6301       -.13285E-05    .13668E-03
  29  norm          .10000E-03    .56872E-01   -.28920E-08** at limit **
  30  Normalizat    .96114        .55839E-01   -.37757E-06    .85636E-03
  31  Prefactor     1.0672        .54112E-01    .10223E-06    .14871E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0772252
  Prefactor  = 0.0001
  Prefactor  = 1.42755
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.80995
  norm       = 0.357853
  Prefactor  = 7.99434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.07169
  Prefactor  = 0.0750779
  norm       = 0.0001
  norm       = 0.0925383
  norm       = 0.737927
  Prefactor  = 0.245734
  Prefactor  = 0.823673
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.21856
  Prefactor  = 2.55032
  Prefactor  = 1.3987
  Prefactor  = 0.0001
  Prefactor  = 1.29418
  norm       = 3.66073
  norm       = 0.0672675
  Prefactor  = 3.34589
  norm       = 0.0001
  Normalizat = 0.961139
  Prefactor  = 1.06717
 **********
 **   18 **HESSE 
 **********

 FCN=   96870.97     FROM HESSE     STATUS=OK           754 CALLS     3814 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77225E-01    .21003        .36498E-01   -1.5652    
   2  Prefactor     .10000E-03    .42338        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.4276        2.9521        .90391E-02   -1.5469    
   4  Prefactor     .10000E-03    .35994        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0867        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.3772        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.8099        1.5569        .60698E-02   -1.5373    
   8  norm          .35785        .73953        .56086E-01   -1.5588    
   9  Prefactor     7.9943        13.754        .35230E-02   -1.5142    
  10  Prefactor     .10000E-03    .26500        .52868E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.2379        .11017       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.0717        1.6205        .37723E-02   -1.5176    
  13  Prefactor     .75078E-01    .17507        .56349E-01   -1.5653    
  14  norm          .10000E-03    .66675        .13685       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .92538E-01    .31691E-01    .60149E-02   -1.5647    
  16  norm          .73793        1.1576        .97343E-01   -1.5536    
  17  Prefactor     .24573        .89057        .10115       -1.5609    
  18  Prefactor     .82367        .66872        .12528E-01   -1.5526    
  19  Prefactor     .10000E-03    .32452        .61211E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.1344        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.2186        .54413        .56449E-02   -1.5349    
  22  Prefactor     2.5503        .52591        .63930E-02   -1.5389    
  23  Prefactor     1.3987        .62652        .91783E-02   -1.5471    
  24  Prefactor     .10000E-03    .10033        .51722E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.2942        1.3074        .97223E-02   -1.5480    
  26  norm          3.6607        .47742        .52778E-02   -1.5325    
  27  norm          .67268E-01    .86493E-01    .19489E-01   -1.5656    
  28  Prefactor     3.3459        1.6834        .55315E-02   -1.5342    
  29  norm          .10000E-03    .26744E-01    .19292E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .96114        .48941E-01    .45678E-01   -.94344    
  31  Prefactor     1.0672        .45817E-01    .38996E-01   -.90523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13086e-06
Minuit parameter uncertainties:
  1  0.210035
  2  1.87603e-06
  3  2.95239
  4  4.98116e-06
  5  1.68302e-06
  6  5.70211e-06
  7  1.5569
  8  0.739545
  9  13.7594
  10  4.77345e-07
  11  1.93066e-05
  12  1.62055
  13  0.175069
  14  1.15441e-05
  15  0.0316913
  16  1.15763
  17  0.890613
  18  0.668729
  19  5.34613e-06
  20  4.39314e-06
  21  0.544134
  22  0.52591
  23  0.626522
  24  5.62407e-07
  25  1.30744
  26  0.477416
  27  0.0864932
  28  1.68338
  29  2.71947e-07
  30  0.0489436
  31  0.0458191
Done.

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

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.931e-05  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:  1.067e+00  4.582e-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:  9.611e-01  4.894e-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.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/177652/likelihoodResults_675043201_677635201_4FGL_J1616.6+4630_monthly_bin169.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) = 96870.9686065
delta logL = -0.000347650828189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 96870.9681668
delta logL = 9.20324237086e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24870E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7500       1.0000          .0000       10.000    
     3 'Normalizat'    .96115       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0672       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.

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

 FCN=   96870.36     FROM MIGRAD    STATUS=FAILED       117 CALLS      310 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64399        25.367        .21336E-03    .33078E-03
   2  Index         4.0529        7.0243        .14002E-01    .18400E-03
   3  Normalizat    .94339        .36712E-01    .25444E-03    .11439E-04
   4  Prefactor     1.0777        .36295E-01    .23747E-03    .36001E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   96870.36     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      395 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64399        25.367        .88774E-04    .33078E-03
   2  Index         4.0529        7.0243        .11563E-02    .18400E-03
   3  Normalizat    .94339        .36712E-01    .32927E-04    .11439E-04
   4  Prefactor     1.0777        .36295E-01    .54338E-04    .36001E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   96870.36     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      431 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64399        1.6990        .85346E-05    .36232E-03
   2  Index         4.0529        1.3630        .56008E-03    .32152E-04
   3  Normalizat    .94339        .56335E-01    .10177E-04    .21447E-04
   4  Prefactor     1.0777        .54660E-01    .94990E-05    .36767E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.643992
  Index      = 4.05287
  Normalizat = 0.943388
  Prefactor  = 1.07772
 **********
 **   18 **HESSE 
 **********

 FCN=   96870.36     FROM HESSE     STATUS=OK            23 CALLS      454 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64399        1.5972        .17069E-05   -1.5547    
   2  Index         4.0529        1.2832        .22403E-04   -.19058    
   3  Normalizat    .94339        .56282E-01    .20355E-05   -.94952    
   4  Prefactor     1.0777        .54599E-01    .18998E-05   -.90182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33091e-11
Minuit parameter uncertainties:
  1  1.59728
  2  1.29824
  3  0.0562851
  4  0.0546018
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/177652': 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) = 96870.3630686
delta logL = 0.605190227696

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  6.440e-01  1.597e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  4.053e+00  1.298e+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.078e+00  5.460e-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:  9.434e-01  5.629e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 244.160 46.510
Photon Index (Free Index): 4.05 +/- 1.30
Photon Flux (Free Index): 1.23e-08 +/- 1.15e-08
Energy Flux (Free Index): 1.82e-06 +/- 1.73e-06

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/177652/cmap_HighResolution_675043201_677635201_4FGL_J1616.6+4630_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-03', comment='SUCCESS', energy_flux2='1.82e-06', dlogl='6.05e-01', photon_flux2='1.23e-08', job_status='DONE', time_completed='2022-06-23 05:23:53.977141', photon_index_error2='1.30', photon_index2='4.05', ts='-0.00', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.57e-08', energy_flux_error2='1.73e-06', EG='0.96', time_epoch_completed='1655987033.98', return_code='0', job_id='177652', GAL2='1.08', EG2='0.94', return_code2='0', photon_flux_error2='1.15e-08', ts2='1.29', photon_index='2.60' WHERE bin_id='169' AND source_name='4FGL J1616.6+4630' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 05:23:54 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 177652: <4FGL_J1616.6+4630_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1616.6+4630_monthly_bin169> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jun 23 02:20:27 2022
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:32:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:32:31 2022
Terminated at Thu Jun 23 05:23:54 2022
Results reported at Thu Jun 23 05:23:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1616.6+4630_monthly_bin169 244.16 46.5099 675043201 677635201 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 :                                   10174.00 sec.
    Max Memory :                                 633 MB
    Average Memory :                             448.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10283 sec.
    Turnaround time :                            11007 sec.

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

