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 64 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_J1637.7+7326_monthly_bin167
RA = 249.448, Dec = 73.4413
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='899418', job_status='RUN', time_executed='2022-04-24 02:31:45.044166', time_epoch_executed='1650792705.04' WHERE source_name='4FGL J1637.7+7326' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899418

Creating custom pfile directory:
/scratch/kocevski/899418/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/899418/ft1_4FGL_J1637.7+7326_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/899418/ft2_4FGL_J1637.7+7326_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899418/ft1_4FGL_J1637.7+7326_monthly_bin167.fits outfile=/scratch/kocevski/899418/ft1_filteredMKT_4FGL_J1637.7+7326_monthly_bin167.fits ra=249.448 dec=73.4413 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 38.28
user 37.21
sys 0.80

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/899418/ft2_4FGL_J1637.7+7326_monthly_bin167.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/899418/ft2_4FGL_J1637.7+7326_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/899418/ft1_filteredMKT_4FGL_J1637.7+7326_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/899418/ft1_filtered_4FGL_J1637.7+7326_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.84
user 0.64
sys 0.18

Number of photons that the gtmktime cut: 8929

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899418/ft1_filtered_4FGL_J1637.7+7326_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/899418/ft2_4FGL_J1637.7+7326_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/899418/ltcube_669859201_672451201_4FGL_J1637.7+7326_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/899418/ft2_4FGL_J1637.7+7326_monthly_bin167.fits
.....................!
real 112.99
user 111.87
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899418/ft1_filtered_4FGL_J1637.7+7326_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/899418/ft2_4FGL_J1637.7+7326_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/899418/ltcube_669859201_672451201_4FGL_J1637.7+7326_monthly_bin167.fits outfile=/scratch/kocevski/899418/expmap_669859201_672451201_4FGL_J1637.7+7326_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/899418/ltcube_669859201_672451201_4FGL_J1637.7+7326_monthly_bin167.fits
.....................!
real 192.12
user 185.98
sys 4.90

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

Setting source of interest to:
4FGL J1637.7+7326 @ 249.448 73.4413

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/899418/ft1_filtered_4FGL_J1637.7+7326_monthly_bin167.fits scfile=/scratch/kocevski/899418/ft2_4FGL_J1637.7+7326_monthly_bin167.fits outfile=/scratch/kocevski/899418/cmap_669859201_672451201_4FGL_J1637.7+7326_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=249.448 yref=73.4413 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.78
user 0.61
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899418/ft1_filtered_4FGL_J1637.7+7326_monthly_bin167.fits scfile=/scratch/kocevski/899418/ft2_4FGL_J1637.7+7326_monthly_bin167.fits outfile=/scratch/kocevski/899418/cmap_HighResolution_669859201_672451201_4FGL_J1637.7+7326_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=249.448 yref=73.4413 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.79
user 0.62
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/899418/ft1_filtered_4FGL_J1637.7+7326_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/899418/ft2_4FGL_J1637.7+7326_monthly_bin167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/899418/Model_4FGL_J1637.7+7326_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/899418/ft1_filtered_4FGL_J1637.7+7326_monthly_bin167.fits.....................!
real 833.70
user 826.60
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/899418/ft1_filtered_4FGL_J1637.7+7326_monthly_bin167.fits', '/scratch/kocevski/899418/ft2_4FGL_J1637.7+7326_monthly_bin167.fits', expMap='/scratch/kocevski/899418/expmap_669859201_672451201_4FGL_J1637.7+7326_monthly_bin167.fits', expCube='/scratch/kocevski/899418/ltcube_669859201_672451201_4FGL_J1637.7+7326_monthly_bin167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/899418/Model_4FGL_J1637.7+7326_monthly_bin167.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1637.7+7326'

4FGL J1637.7+7326
   Spectrum: PowerLaw
346    Prefactor:  4.118e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-15)
347        Index:  1.877e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
348        Scale:  4.483e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/899418/ft1_filtered_4FGL_J1637.7+7326_monthly_bin167.fits
Spacecraft file(s): /scratch/kocevski/899418/ft2_4FGL_J1637.7+7326_monthly_bin167.fits
Exposure map: /scratch/kocevski/899418/expmap_669859201_672451201_4FGL_J1637.7+7326_monthly_bin167.fits
Exposure cube: /scratch/kocevski/899418/ltcube_669859201_672451201_4FGL_J1637.7+7326_monthly_bin167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/899418/Model_4FGL_J1637.7+7326_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) = 93882.2559453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5377       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6395       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.988       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1854       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.622       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18009E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.293       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5654       1.0000         .10000E-03   10000.    
    10 'norm      '    16.353       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.8696       1.0000         .10000E-03   10000.    
    14 'norm      '    .49179E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9891       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6589       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.5748       1.0000         .10000E-03   10000.    
    20 'norm      '    7.0664       1.0000         .10000E-03   10000.    
    21 'norm      '    3.9826       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .42801       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.1157       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.5361       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.6015       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.303       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .98385       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .99425       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   93882.19     FROM MIGRAD    STATUS=CONVERGED    734 CALLS     3123 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5379        2.4039         .0000        .46246E-02
   2  Prefactor     2.6397        2.6882         .0000        .16517E-02
   3  Prefactor     12.987        9.6824         .0000       -.21910E-03
   4  Prefactor     1.1854        6.9893         .0000        .15444E-02
   5  Prefactor     21.622        9.4301         .0000        .33870E-02
   6  Prefactor     .10020E-03    4.1020         .0000    ** at limit **
   7  Prefactor     .10000E-03    2.2735         .0000    ** at limit **
   8  Prefactor     10.293        6.0776         .0000       -.31555E-02
   9  Prefactor     1.5382        62.929         .0000       -.12301E-03
  10  norm          16.353        4.6515         .0000       -.15177E-01
  11  Prefactor     .10000E-03    5.6147         .0000    ** at limit **
  12  Prefactor     .10000E-03    3.4046         .0000    ** at limit **
  13  norm          3.8697        1.8980         .0000        .56857E-01
  14  norm          .49252E-01    .11857         .0000        .62272E-01
  15  Prefactor     1.9881        2.3971         .0000        .58775E-02
  16  Prefactor     .10000E-03    .12036         .0000    ** at limit **
  17  Prefactor     5.6573        3.8512         .0000        .95978E-03
  18  Prefactor     .10000E-03    5.9335         .0000    ** at limit **
  19  norm          3.5748        .72148         .0000        .16853E-02
  20  norm          7.0664        .34147         .0000        .14951E-02
  21  norm          3.9827        1.2469         .0000        .45379E-02
  22  Prefactor     .42579        1.4690         .0000        .11729E-02
  23  Prefactor     9.1156        17.329         .0000       -.11373E-03
  24  Prefactor     9.5362        2.2319         .0000        .27885E-02
  25  Prefactor     1.6016        4.8047         .0000        .39663E-01
  26  Prefactor     15.302        13.384         .0000       -.34499E-02
  27  Normalizat    .98386        .52187E-01     .0000        .10135E-02
  28  Prefactor     .99423        .37087E-01     .0000        .84086E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.53789
  Prefactor  = 2.63968
  Prefactor  = 12.9875
  Prefactor  = 1.18537
  Prefactor  = 21.622
  Prefactor  = 0.000100201
  Prefactor  = 0.0001
  Prefactor  = 10.2932
  Prefactor  = 1.53819
  norm       = 16.3527
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.86971
  norm       = 0.0492518
  Prefactor  = 1.98809
  Prefactor  = 0.0001
  Prefactor  = 5.65733
  Prefactor  = 0.0001
  norm       = 3.57479
  norm       = 7.0664
  norm       = 3.98268
  Prefactor  = 0.425788
  Prefactor  = 9.11565
  Prefactor  = 9.53624
  Prefactor  = 1.60157
  Prefactor  = 15.3024
  Normalizat = 0.98386
  Prefactor  = 0.994234
 **********
 **   18 **HESSE 
 **********

 FCN=   93882.19     FROM HESSE     STATUS=OK           541 CALLS     3664 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5379        2.3915        .34393E-03   -1.5460    
   2  Prefactor     2.6397        2.6779        .25097E-03   -1.5383    
   3  Prefactor     12.987        9.6800        .11115E-03   -1.4987    
   4  Prefactor     1.1854        7.1291        .41916E-03   -1.5490    
   5  Prefactor     21.622        9.4327        .86138E-04   -1.4778    
   6  Prefactor     .10020E-03    3.7062        .18416       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3496        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.293        6.0693        .12489E-03   -1.5066    
   9  Prefactor     1.5382        64.125        .33994E-03   -1.5460    
  10  norm          16.353        4.6358        .99041E-04   -1.4899    
  11  Prefactor     .10000E-03    5.6185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.4466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.8697        1.8921        .10257E-02   -1.5315    
  14  norm          .49252E-01    .10957        .14031E-03   -1.5664    
  15  Prefactor     1.9881        2.3052        .29379E-03   -1.5426    
  16  Prefactor     .10000E-03    .26990        .20384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6573        3.6863        .16886E-03   -1.5232    
  18  Prefactor     .10000E-03    6.1291        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.5748        .71959        .11032E-03   -1.5330    
  20  norm          7.0664        .34039        .37395E-04   -1.5176    
  21  norm          3.9827        1.2390        .17417E-03   -1.5309    
  22  Prefactor     .42579        12.436        .66849E-02   -1.5577    
  23  Prefactor     9.1156        17.321        .13275E-03   -1.5104    
  24  Prefactor     9.5362        2.1912        .12977E-03   -1.5090    
  25  Prefactor     1.6016        4.7588        .16749E-02   -1.5455    
  26  Prefactor     15.302        13.392        .10238E-03   -1.4925    
  27  Normalizat    .98386        .59048E-01    .28474E-03   -.93573    
  28  Prefactor     .99423        .42614E-01    .21329E-03   -.92922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71822e-08
Minuit parameter uncertainties:
  1  2.39165
  2  2.67807
  3  9.68114
  4  5.81478
  5  9.43331
  6  0.0017264
  7  3.41675e-06
  8  6.0697
  9  19.8853
  10  4.63592
  11  5.56708e-05
  12  7.95821e-07
  13  1.89209
  14  0.109567
  15  2.30535
  16  1.19694e-07
  17  3.6864
  18  5.60688e-05
  19  0.719589
  20  0.340388
  21  1.23905
  22  4.60281
  23  17.3306
  24  2.19125
  25  4.75996
  26  13.3951
  27  0.0590524
  28  0.0426154
Done.

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

Extracting fit parameters...

4FGL J1637.7+7326
   Spectrum: PowerLaw
346    Prefactor:  1.000e-04  5.567e-05  1.000e-04  1.000e+04 ( 1.000e-15)
347        Index:  1.877e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
348        Scale:  4.483e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  9.942e-01  4.262e-02  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  9.839e-01  5.905e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 249.448 73.441
Photon Flux Upper Limit: 4.23e-09 ph cm-2 s-1
Energy Flux Upper Limit: 3.14e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/899418/likelihoodResults_669859201_672451201_4FGL_J1637.7+7326_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) = 93882.1938789
delta logL = -0.000848489376949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 93882.193031
delta logL = -5.6107819546e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10543E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8485       1.0000          .0000       10.000    
     3 'Normalizat'    .98381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99427       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+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.

 FCN=   93882.19     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      241 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10067E-03    29.983        .18142E-02** at limit **
   2  Index         1.8079        5.8993        .50000        .30477E-04
   3  Normalizat    .98386        .28235E-02    .28474E-03    .33219E-04
   4  Prefactor     .99423        .21360E-02    .21329E-03   -.11343E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100673
  Index      = 1.8079
  Normalizat = 0.98386
  Prefactor  = 0.994234
 **********
 **   18 **HESSE 
 **********

 FCN=   93882.19     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10067E-03    138.74        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8079        6.4296        .50000       -.69244    
   3  Normalizat    .98386        .62045E-02    .11390E-04   -.93573    
   4  Prefactor     .99423        .46937E-02    .85315E-05   -.92922    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.54173e-08
Minuit parameter uncertainties:
  1  0.0193642
  2  215.216
  3  0.00620451
  4  0.00469373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899418': 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): 102
logL (Free Index) = 93882.1930299
delta logL = 5.48214302398e-07

Extracting fit parameters...

4FGL J1637.7+7326
   Spectrum: PowerLaw
346    Prefactor:  1.007e-04  1.936e-02  1.000e-04  1.000e+04 ( 1.000e-15)
347        Index:  1.808e+00  2.152e+02  0.000e+00  1.000e+01 (-1.000e+00)
348        Scale:  4.483e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  9.942e-01  4.694e-03  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  9.839e-01  6.205e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 249.448 73.441

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/899418/cmap_HighResolution_669859201_672451201_4FGL_J1637.7+7326_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-04', job_status='DONE', photon_flux_upper_limit='4.23e-09', time_completed='2022-04-24 05:00:39.746557', job_id='899418', GAL2='0.99', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1650801639.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='5.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='167' AND source_name='4FGL J1637.7+7326' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 05:00:39 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 899418: <4FGL_J1637.7+7326_monthly_bin167> in cluster <slac> Done

Job <4FGL_J1637.7+7326_monthly_bin167> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Apr 24 02:00:52 2022
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 02:30:32 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:32 2022
Terminated at Sun Apr 24 05:00:41 2022
Results reported at Sun Apr 24 05:00:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1637.7+7326_monthly_bin167 249.448 73.4413 669859201 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1637.7+7326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   8855.00 sec.
    Max Memory :                                 1263 MB
    Average Memory :                             449.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   9008 sec.
    Turnaround time :                            10789 sec.

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

