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


Performing analysis on: 4FGL_J1637.7+4717_daily_bin1750
RA = 249.434, Dec = 47.2913
tmin = 692928001, tmax = 693187201
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='17589', job_status='RUN', time_executed='2022-12-20 01:12:50.518225', time_epoch_executed='1671527570.52' WHERE source_name='4FGL J1637.7+4717' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17589

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17589/ft1_4FGL_J1637.7+4717_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17589/ft2_4FGL_J1637.7+4717_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17589/ft1_4FGL_J1637.7+4717_daily_bin1750.fits outfile=/scratch/kocevski/17589/ft1_filteredMKT_4FGL_J1637.7+4717_daily_bin1750.fits ra=249.434 dec=47.2913 rad=12.0 tmin=692928001.0 tmax=693187201.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.46
user 3.24
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/17589/ft2_4FGL_J1637.7+4717_daily_bin1750.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/17589/ft2_4FGL_J1637.7+4717_daily_bin1750.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/17589/ft1_filteredMKT_4FGL_J1637.7+4717_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/17589/ft1_filtered_4FGL_J1637.7+4717_daily_bin1750.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.31
sys 0.17

Number of photons that the gtmktime cut: 538

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/17589/ft1_filtered_4FGL_J1637.7+4717_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/17589/ft2_4FGL_J1637.7+4717_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/17589/ltcube_692928001_693187201_4FGL_J1637.7+4717_daily_bin1750.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/17589/ft2_4FGL_J1637.7+4717_daily_bin1750.fits
.....................!
real 11.43
user 11.09
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17589/ft1_filtered_4FGL_J1637.7+4717_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/17589/ft2_4FGL_J1637.7+4717_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/17589/ltcube_692928001_693187201_4FGL_J1637.7+4717_daily_bin1750.fits outfile=/scratch/kocevski/17589/expmap_692928001_693187201_4FGL_J1637.7+4717_daily_bin1750.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/17589/ltcube_692928001_693187201_4FGL_J1637.7+4717_daily_bin1750.fits
.....................!
real 191.16
user 185.80
sys 5.05

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

Setting source of interest to:
4FGL J1637.7+4717 @ 249.434 47.2913

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/17589/ft1_filtered_4FGL_J1637.7+4717_daily_bin1750.fits scfile=/scratch/kocevski/17589/ft2_4FGL_J1637.7+4717_daily_bin1750.fits outfile=/scratch/kocevski/17589/cmap_692928001_693187201_4FGL_J1637.7+4717_daily_bin1750.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.434 yref=47.2913 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17589/ft1_filtered_4FGL_J1637.7+4717_daily_bin1750.fits scfile=/scratch/kocevski/17589/ft2_4FGL_J1637.7+4717_daily_bin1750.fits outfile=/scratch/kocevski/17589/cmap_HighResolution_692928001_693187201_4FGL_J1637.7+4717_daily_bin1750.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.434 yref=47.2913 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/17589/ft1_filtered_4FGL_J1637.7+4717_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/17589/ft2_4FGL_J1637.7+4717_daily_bin1750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/17589/Model_4FGL_J1637.7+4717_daily_bin1750.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/17589/ft1_filtered_4FGL_J1637.7+4717_daily_bin1750.fits.....................!
real 47.91
user 46.60
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/17589/ft1_filtered_4FGL_J1637.7+4717_daily_bin1750.fits', '/scratch/kocevski/17589/ft2_4FGL_J1637.7+4717_daily_bin1750.fits', expMap='/scratch/kocevski/17589/expmap_692928001_693187201_4FGL_J1637.7+4717_daily_bin1750.fits', expCube='/scratch/kocevski/17589/ltcube_692928001_693187201_4FGL_J1637.7+4717_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/17589/Model_4FGL_J1637.7+4717_daily_bin1750.xml', optimizer='MINUIT')

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

4FGL J1637.7+4717
   Spectrum: PowerLaw
335    Prefactor:  3.736e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
336        Index:  2.428e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
337        Scale:  7.167e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/17589/ft1_filtered_4FGL_J1637.7+4717_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/17589/ft2_4FGL_J1637.7+4717_daily_bin1750.fits
Exposure map: /scratch/kocevski/17589/expmap_692928001_693187201_4FGL_J1637.7+4717_daily_bin1750.fits
Exposure cube: /scratch/kocevski/17589/ltcube_692928001_693187201_4FGL_J1637.7+4717_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/17589/Model_4FGL_J1637.7+4717_daily_bin1750.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) = 5735.8719926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12418       1.0000          .0000       .10000E+07
     2 'Prefactor '    .47551E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .28403E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .17399E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .95017E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .15581E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    3.7870       1.0000          .0000       .10000E+07
     8 'Prefactor '    .11445E-04   1.0000          .0000       .10000E+07
     9 'norm      '    21.267       1.0000          .0000       .10000E+07
    10 'norm      '    .28241       1.0000          .0000       .10000E+07
    11 'norm      '    .33599E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .45738E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    2.0639       1.0000          .0000       .10000E+07
    14 'Prefactor '    7.4845       1.0000          .0000       .10000E+07
    15 'norm      '    3.7480       1.0000          .0000       .10000E+07
    16 'Prefactor '    .52308E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    2.9065       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.7052       1.0000          .0000       .10000E+07
    19 'Prefactor '    .29170E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    5.4147       1.0000          .0000       .10000E+07
    21 'norm      '    2.2244       1.0000          .0000       .10000E+07
    22 'norm      '    .27756E-09   1.0000          .0000       .10000E+07
    23 'Prefactor '    .19941E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .15543E-07   1.0000          .0000       .10000E+07
    25 'norm      '    .20895E-03   1.0000          .0000       .10000E+07
    26 'norm      '    13.691       1.0000          .0000       .10000E+07
    27 'Prefactor '    .64403       1.0000          .0000       .10000E+07
    28 'norm      '    1.7283       1.0000          .0000       .10000E+07
    29 'Prefactor '    .30209E-02   1.0000          .0000       .10000E+07
    30 'Prefactor '    11.824       1.0000          .0000       .10000E+07
    31 'Prefactor '    .84268E-04   1.0000          .0000       .10000E+07
    32 'Normalizat'    .93285       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .93438       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5735.783     FROM MIGRAD    STATUS=CONVERGED    249 CALLS     2686 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12129E-06    19.809       -.67742E-07** at limit **
   2  Prefactor     .26090E-08    12.265        .55458E-07** at limit **
   3  norm          .36540E-01    186.31        .25941E-05** at limit **
   4  Prefactor     .10146E-04    17.296       -.10250E-06** at limit **
   5  Prefactor      .0000        2.6056        .50897E-07** at limit **
   6  Prefactor     .10714E-07    6.9302       -.73875E-07** at limit **
   7  Prefactor     3.8108        4.3508        .52045E-07    .13472E-02
   8  Prefactor     .24425E-07    10.328        .35380E-06** at limit **
   9  norm          21.395        1.2562       -.83036E-08   -.21763E-02
  10  norm          .28226        .14268        .63482E-08    .97046E-02
  11  norm          .30587E-07    6.6000       -.24410E-06** at limit **
  12  Prefactor     .13569E-04    26.140       -.15853E-06** at limit **
  13  Prefactor     2.0553        3.8661       -.59840E-07   -.10905E-02
  14  Prefactor     7.4602        8.9934        .48157E-07    .62779E-02
  15  norm          2.6339        266.96        .14341E-05    .46210E-02
  16  Prefactor      .0000        2.0140        .54276E-07** at limit **
  17  Prefactor     2.9175        1.5526        .78371E-08    .40549E-02
  18  Prefactor     1.7040        3.4469       -.39213E-07    .11785E-02
  19  Prefactor     .33307E-09    6.0426        .10030E-06** at limit **
  20  Prefactor     5.3899        4.8493       -.65321E-07   -.56344E-01
  21  norm          2.2225        1.7230        .53516E-08    .71987E-03
  22  norm           .0000        .38523       -.20544E-07** at limit **
  23  Prefactor     .16653E-09    2.9109       -.11020E-06** at limit **
  24  norm           .0000        .35695        .69760E-08** at limit **
  25  norm          .11102E-09    3.7423        .21553E-07** at limit **
  26  norm          13.691        2.8482       -.14894E-07   -.41663E-02
  27  Prefactor     .63081        7.2623        .18008E-07   -.72113E-02
  28  norm          1.6907        10.028       -.19406E-06    .50017E-02
  29  Prefactor     .79381E-08    17.007        .37470E-06** at limit **
  30  Prefactor     11.782        6.9750        .57252E-07   -.67329E-02
  31  Prefactor     .72109E-07    21.791       -.52592E-06** at limit **
  32  Normalizat    .93288        .23256        .49844E-07    .28266E-04
  33  Prefactor     .93490        .20834       -.13914E-06    .13450E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.21292e-07
  Prefactor  = 2.60902e-09
  norm       = 0.0365405
  Prefactor  = 1.01461e-05
  Prefactor  = 0
  Prefactor  = 1.07137e-08
  Prefactor  = 3.8108
  Prefactor  = 2.44249e-08
  norm       = 21.3953
  norm       = 0.282263
  norm       = 3.05866e-08
  Prefactor  = 1.35688e-05
  Prefactor  = 2.05534
  Prefactor  = 7.46024
  norm       = 2.63395
  Prefactor  = 0
  Prefactor  = 2.91754
  Prefactor  = 1.70401
  Prefactor  = 3.33067e-10
  Prefactor  = 5.38992
  norm       = 2.22249
  norm       = 0
  Prefactor  = 1.66533e-10
  norm       = 0
  norm       = 1.11022e-10
  norm       = 13.6913
  Prefactor  = 0.630814
  norm       = 1.69071
  Prefactor  = 7.93809e-09
  Prefactor  = 11.7819
  Prefactor  = 7.2109e-08
  Normalizat = 0.932883
  Prefactor  = 0.934902
 **********
 **   18 **HESSE 
 **********

 FCN=   5735.783     FROM HESSE     STATUS=OK           771 CALLS     3457 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12129E-06    14.888        .13320E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .26090E-08    12.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .36540E-01    3.7314        .99616E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10146E-04    40.276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        2.6056        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10714E-07    8.0681        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.8108        4.3677        .51849E-03   -1.5669    
   8  Prefactor     .24425E-07    10.791        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          21.395        16.277        .21690E-03   -1.5615    
  10  norm          .28226        .14378        .43032E-03   -1.5697    
  11  norm          .30587E-07    8.2579        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .13569E-04    47.688        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0553        3.9196        .71895E-03   -1.5679    
  14  Prefactor     7.4602        9.0679        .36635E-03   -1.5653    
  15  norm          2.6339        294.38        .52128E-03   -1.5676    
  16  Prefactor      .0000        1.9976        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.9175        1.5907        .59573E-03   -1.5674    
  18  Prefactor     1.7040        3.5613        .80498E-03   -1.5682    
  19  Prefactor     .33307E-09    6.0188        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.3899        10.467        .43161E-03   -1.5662    
  21  norm          2.2225        1.7241        .68914E-03   -1.5678    
  22  norm           .0000        .38368        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .16653E-09    2.9138        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        .35362        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .11102E-09    3.7450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          13.691        2.8584        .27044E-03   -1.5634    
  27  Prefactor     .63081        8.2074        .65373E-03   -1.5692    
  28  norm          1.6907        11.784        .79836E-03   -1.5682    
  29  Prefactor     .79381E-08    33.401        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     11.782        7.1175        .29108E-03   -1.5639    
  31  Prefactor     .72109E-07    22.849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .93288        .19861        .45320E-01   -.95314    
  33  Prefactor     .93490        .17748        .45442E-01   -.94932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67086e-06
Minuit parameter uncertainties:
  1  0.00268788
  2  0.000354629
  3  0.7385
  4  0.0404303
  5  8.18905e-06
  6  0.000587556
  7  4.36766
  8  0.00102728
  9  16.2773
  10  0.14378
  11  0.00100493
  12  0.0508756
  13  3.91964
  14  9.06788
  15  55.6944
  16  2.81576e-06
  17  1.59066
  18  3.56126
  19  9.11759e-05
  20  10.4666
  21  1.72412
  22  1.47711e-06
  23  4.39821e-05
  24  1.04802e-07
  25  4.51452e-05
  26  2.85842
  27  4.55076
  28  8.92697
  29  0.00103076
  30  7.11748
  31  0.00256743
  32  0.198762
  33  0.177588
Done.

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

Extracting fit parameters...

4FGL J1637.7+4717
   Spectrum: PowerLaw
335    Prefactor:  2.055e+00  3.920e+00  0.000e+00  1.000e+06 ( 1.000e-12)
336        Index:  2.428e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
337        Scale:  7.167e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  9.349e-01  1.776e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  9.329e-01  1.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.37
Ra Dec: 249.434 47.291
Photon Flux Upper Limit: 9.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17589/likelihoodResults_692928001_693187201_4FGL_J1637.7+4717_daily_bin1750.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): 0
logL (Free Index) = 5735.75035795
delta logL = 0.0325772594115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5735.74811063
delta logL = 0.0348245762998

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2903       1.0000          .0000       .10000E+07
     2 'Index     '    2.0786       1.0000          .0000       10.000    
     3 'Normalizat'    .94087       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92943       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+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.

 FCN=   5735.748     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      257 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2916        4.0725        .98747E-04   -.44720E-02
   2  Index         2.0795        1.1644        .15594E-01    .75098E-05
   3  Normalizat    .94077        .21990        .25869E-03   -.31994E-04
   4  Prefactor     .92955        .20545        .12128E-02   -.93366E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.29164
  Index      = 2.07952
  Normalizat = 0.940767
  Prefactor  = 0.929551
 **********
 **   18 **HESSE 
 **********

 FCN=   5735.748     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2916        4.0849        .39499E-05   -1.5678    
   2  Index         2.0795        1.1684        .62377E-03   -.62377    
   3  Normalizat    .94077        .22057        .10347E-04   -.95042    
   4  Prefactor     .92955        .20610        .48511E-04   -.95116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63574e-10
Minuit parameter uncertainties:
  1  4.08487
  2  1.18517
  3  0.22078
  4  0.206271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17589': 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) = 5735.7481101
delta logL = 0.0348251060232

Extracting fit parameters...

4FGL J1637.7+4717
   Spectrum: PowerLaw
335    Prefactor:  2.292e+00  4.085e+00  0.000e+00  1.000e+06 ( 1.000e-12)
336        Index:  2.080e+00  1.185e+00  0.000e+00  1.000e+01 (-1.000e+00)
337        Scale:  7.167e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  9.296e-01  2.063e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  9.408e-01  2.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.37
Ra Dec: 249.434 47.291

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/17589/cmap_HighResolution_692928001_693187201_4FGL_J1637.7+4717_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.62e-03', job_status='DONE', photon_flux_upper_limit='9.85e-08', time_completed='2022-12-20 01:26:03.333550', job_id='17589', GAL2='0.93', fit_tolerance='1e-08', EG2='0.94', EG='0.93', time_epoch_completed='1671528363.33', return_code2='0', ts='0.37', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='3.48e-02', ts2='0.44', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1750' AND source_name='4FGL J1637.7+4717' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 01:26:03 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 17589: <4FGL_J1637.7+4717_daily_bin1750> in cluster <slac> Done

Job <4FGL_J1637.7+4717_daily_bin1750> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec 20 01:10:28 2022
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 01:10:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 01:10:29 2022
Terminated at Tue Dec 20 01:26:03 2022
Results reported at Tue Dec 20 01:26:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1637.7+4717_daily_bin1750 249.434 47.2913 692928001 693187201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1637.7+4717 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   795.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            935 sec.

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

