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


Performing analysis on: 4FGL_J1637.7+4717_weekly_bin715
RA = 249.434, Dec = 47.2913
tmin = 671414401, tmax = 672019201
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='935176', job_status='RUN', time_executed='2022-04-19 02:33:36.770761', time_epoch_executed='1650360816.77' WHERE source_name='4FGL J1637.7+4717' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935176

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935176/ft1_4FGL_J1637.7+4717_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935176/ft2_4FGL_J1637.7+4717_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935176/ft1_4FGL_J1637.7+4717_weekly_bin715.fits outfile=/scratch/kocevski/935176/ft1_filteredMKT_4FGL_J1637.7+4717_weekly_bin715.fits ra=249.434 dec=47.2913 rad=12.0 tmin=671414401.0 tmax=672019201.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 7.65
user 7.26
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/935176/ft2_4FGL_J1637.7+4717_weekly_bin715.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/935176/ft1_filteredMKT_4FGL_J1637.7+4717_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/935176/ft1_filtered_4FGL_J1637.7+4717_weekly_bin715.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.56
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 1826

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935176/ft1_filtered_4FGL_J1637.7+4717_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/935176/ft2_4FGL_J1637.7+4717_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/935176/ltcube_671414401_672019201_4FGL_J1637.7+4717_weekly_bin715.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/935176/ft2_4FGL_J1637.7+4717_weekly_bin715.fits
.....................!
real 27.99
user 27.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935176/ft1_filtered_4FGL_J1637.7+4717_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/935176/ft2_4FGL_J1637.7+4717_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/935176/ltcube_671414401_672019201_4FGL_J1637.7+4717_weekly_bin715.fits outfile=/scratch/kocevski/935176/expmap_671414401_672019201_4FGL_J1637.7+4717_weekly_bin715.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/935176/ltcube_671414401_672019201_4FGL_J1637.7+4717_weekly_bin715.fits
.....................!
real 193.83
user 186.36
sys 4.91

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/935176/ft1_filtered_4FGL_J1637.7+4717_weekly_bin715.fits scfile=/scratch/kocevski/935176/ft2_4FGL_J1637.7+4717_weekly_bin715.fits outfile=/scratch/kocevski/935176/cmap_671414401_672019201_4FGL_J1637.7+4717_weekly_bin715.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.59
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935176/ft1_filtered_4FGL_J1637.7+4717_weekly_bin715.fits scfile=/scratch/kocevski/935176/ft2_4FGL_J1637.7+4717_weekly_bin715.fits outfile=/scratch/kocevski/935176/cmap_HighResolution_671414401_672019201_4FGL_J1637.7+4717_weekly_bin715.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/935176/ft1_filtered_4FGL_J1637.7+4717_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/935176/ft2_4FGL_J1637.7+4717_weekly_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/935176/Model_4FGL_J1637.7+4717_weekly_bin715.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/935176/ft1_filtered_4FGL_J1637.7+4717_weekly_bin715.fits.....................!
real 134.24
user 131.34
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/935176/ft1_filtered_4FGL_J1637.7+4717_weekly_bin715.fits', '/scratch/kocevski/935176/ft2_4FGL_J1637.7+4717_weekly_bin715.fits', expMap='/scratch/kocevski/935176/expmap_671414401_672019201_4FGL_J1637.7+4717_weekly_bin715.fits', expCube='/scratch/kocevski/935176/ltcube_671414401_672019201_4FGL_J1637.7+4717_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/935176/Model_4FGL_J1637.7+4717_weekly_bin715.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  1.000e-04  1.000e+04 ( 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/935176/ft1_filtered_4FGL_J1637.7+4717_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/935176/ft2_4FGL_J1637.7+4717_weekly_bin715.fits
Exposure map: /scratch/kocevski/935176/expmap_671414401_672019201_4FGL_J1637.7+4717_weekly_bin715.fits
Exposure cube: /scratch/kocevski/935176/ltcube_671414401_672019201_4FGL_J1637.7+4717_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/935176/Model_4FGL_J1637.7+4717_weekly_bin715.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) = 19346.0747489

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .21981E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6934       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11533E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11370E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    35.500       1.0000         .10000E-03   10000.    
    10 'norm      '    .21622       1.0000         .10000E-03   10000.    
    11 'norm      '    .83036       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10637       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.696       1.0000         .10000E-03   10000.    
    15 'norm      '    24.795       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .91305E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.348       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5862       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.6223       1.0000         .10000E-03   10000.    
    21 'norm      '    4.4099       1.0000         .10000E-03   10000.    
    22 'norm      '    .50011       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.6815       1.0000         .10000E-03   10000.    
    24 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    12.233       1.0000         .10000E-03   10000.    
    26 'norm      '    4.8027       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    2.8516       1.0000         .10000E-03   10000.    
    29 'Prefactor '    18.456       1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.3689       1.0000         .10000E-03   10000.    
    31 'Prefactor '    31.165       1.0000         .10000E-03   10000.    
    32 'Prefactor '    12.983       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0632       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .89062       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   19345.99     FROM MIGRAD    STATUS=CONVERGED    954 CALLS     4274 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0431       -.73601E-06** at limit **
   2  Prefactor     .10001E-03    1.3890        .51004E-06** at limit **
   3  norm          .10000E-03    2.0700       -.14663E-07** at limit **
   4  Prefactor     .10000E-03    17.058       -.19068E-05** at limit **
   5  Prefactor     4.6935        3.0378        .42365E-06    .40998E-03
   6  Prefactor     .10000E-03    9.3644       -.45776E-05** at limit **
   7  Prefactor     .10000E-03    1.3293       -.27271E-06** at limit **
   8  Prefactor     .10000E-03    .66762       -.94703E-07** at limit **
   9  norm          35.502        12.735        .58388E-06    .79555E-04
  10  norm          .21620        .77317E-01   -.77950E-09    .82208E-04
  11  norm          .82871        .79096        .25249E-07   -.21779E-03
  12  Prefactor     .10000E-03    11.750        .52395E-05** at limit **
  13  Prefactor     .10302        .80140       -.22707E-07   -.11594E-04
  14  Prefactor     11.696        4.3959       -.26753E-07   -.19129E-04
  15  norm          24.799        21.595        .43317E-05    .65650E-04
  16  Prefactor     .93454E-01    .39927       -.17280E-06    .53176E-03
  17  Prefactor     10.347        1.4639       -.74996E-08    .23841E-02
  18  Prefactor     3.5859        2.0998        .27288E-08    .11641E-03
  19  Prefactor     .10000E-03    .46164       -.24960E-07** at limit **
  20  Prefactor     5.6220        4.9042        .41864E-08   -.17145E-04
  21  norm          4.4099        1.1381       -.39075E-08    .21152E-03
  22  norm          .50054        .47578        .15138E-07    .30783E-03
  23  Prefactor     2.6804        3.6055       -.20789E-06    .12513E-04
  24  norm          .10000E-03    .14035        .12495E-07** at limit **
  25  norm          12.233        5.3374        .10557E-09    .11740E-04
  26  norm          4.8026        1.2456        .24587E-07    .53711E-04
  27  Prefactor     .10000E-03    .46210       -.67738E-08** at limit **
  28  norm          2.8516        2.2256        .10353E-06    .22003E-04
  29  Prefactor     18.456        17.841       -.56910E-06    .15214E-05
  30  Prefactor     2.3689        1.9260        .68102E-07    .33668E-04
  31  Prefactor     31.163        27.476       -.28499E-05   -.37415E-06
  32  Prefactor     12.982        17.929       -.11770E-05    .39767E-06
  33  Normalizat    1.0634        .11564        .48664E-07    .22538E-03
  34  Prefactor     .89058        .10107       -.90452E-07    .18220E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.69348
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 35.5022
  norm       = 0.216203
  norm       = 0.828713
  Prefactor  = 0.0001
  Prefactor  = 0.103021
  Prefactor  = 11.6959
  norm       = 24.799
  Prefactor  = 0.0934542
  Prefactor  = 10.3469
  Prefactor  = 3.58586
  Prefactor  = 0.0001
  Prefactor  = 5.62204
  norm       = 4.40995
  norm       = 0.500538
  Prefactor  = 2.68042
  norm       = 0.0001
  norm       = 12.233
  norm       = 4.80256
  Prefactor  = 0.0001
  norm       = 2.8516
  Prefactor  = 18.4557
  Prefactor  = 2.36889
  Prefactor  = 31.1627
  Prefactor  = 12.9819
  Normalizat = 1.06336
  Prefactor  = 0.890578
 **********
 **   18 **HESSE 
 **********

 FCN=   19345.99     FROM HESSE     STATUS=OK           754 CALLS     5028 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    6.3333        .31540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.1319        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6935        3.0469        .18575E-03   -1.5275    
   6  Prefactor     .10000E-03    9.4746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.8792        .30564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.5118        .21306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          35.502        12.661        .67261E-04   -1.4516    
  10  norm          .21620        .76152E-01    .21588E-04   -1.5615    
  11  norm          .82871        11.893        .25105E-02   -1.5526    
  12  Prefactor     .10000E-03    11.898        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10302        12.677        .22978E-02   -1.5644    
  14  Prefactor     11.696        4.4111        .11714E-03   -1.5024    
  15  norm          24.799        21.758        .80446E-04   -1.4712    
  16  Prefactor     .93454E-01    2.5467        .12384E-02   -1.5647    
  17  Prefactor     10.347        1.5053        .45086E-04   -1.5065    
  18  Prefactor     3.5859        2.0654        .14033E-03   -1.5329    
  19  Prefactor     .10000E-03    .46871        .92212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.6220        4.9082        .84711E-03   -1.5234    
  21  norm          4.4099        1.1388        .72766E-04   -1.5288    
  22  norm          .50054        .39640        .84968E-03   -1.5566    
  23  Prefactor     2.6804        3.5339        .24884E-03   -1.5381    
  24  norm          .10000E-03    .71526        .10025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          12.233        5.3342        .11453E-03   -1.5008    
  26  norm          4.8026        1.2418        .74410E-04   -1.5270    
  27  Prefactor     .10000E-03    .46581        .92309E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          2.8516        2.2225        .17683E-03   -1.5370    
  29  Prefactor     18.456        17.831        .93229E-04   -1.4848    
  30  Prefactor     2.3689        1.9188        .16747E-03   -1.5400    
  31  Prefactor     31.163        27.455        .71773E-04   -1.4591    
  32  Prefactor     12.982        17.914        .11117E-03   -1.4987    
  33  Normalizat    1.0634        .13567        .26706E-03   -.90937    
  34  Prefactor     .89058        .12019        .26367E-03   -.96471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.17982e-08
Minuit parameter uncertainties:
  1  1.25722e-06
  2  0.000484235
  3  4.94731e-06
  4  1.30904e-06
  5  3.04699
  6  1.86193e-05
  7  8.79447e-05
  8  3.64515e-05
  9  12.6617
  10  0.0761519
  11  6.27991
  12  4.27479e-05
  13  2.28503
  14  4.4112
  15  21.7654
  16  0.97522
  17  1.5053
  18  2.06545
  19  1.05554e-06
  20  4.90857
  21  1.13885
  22  0.396403
  23  3.53421
  24  7.63092e-07
  25  5.33439
  26  1.24184
  27  2.4783e-07
  28  2.22253
  29  17.8356
  30  1.9189
  31  27.4665
  32  17.9212
  33  0.135719
  34  0.120223
Done.

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

Extracting fit parameters...

4FGL J1637.7+4717
   Spectrum: PowerLaw
335    Prefactor:  1.030e-01  2.285e+00  1.000e-04  1.000e+04 ( 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:  8.906e-01  1.202e-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:  1.063e+00  1.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/935176/likelihoodResults_671414401_672019201_4FGL_J1637.7+4717_weekly_bin715.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) = 19345.8777201
delta logL = 0.11609588912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19345.8238661
delta logL = 0.169949879681

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40658       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4978       1.0000          .0000       10.000    
     3 'Normalizat'    1.0453       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89911       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=   19345.82     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      280 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40680        2.2248        .21766E-03    .53530E-03
   2  Index         3.4973        2.5289        .74674E-02    .71798E-05
   3  Normalizat    1.0453        .13283        .26904E-03    .27044E-05
   4  Prefactor     .89912        .11935        .26253E-03    .29447E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.406802
  Index      = 3.49727
  Normalizat = 1.04531
  Prefactor  = 0.899118
 **********
 **   18 **HESSE 
 **********

 FCN=   19345.82     FROM HESSE     STATUS=OK            27 CALLS      307 TOTAL
                     EDM=   .29E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .40680        1.2537        .43533E-04   -1.5580    
   2  Index         3.4973        1.7158        .29870E-03   -.30527    
   3  Normalizat    1.0453        .13307        .10762E-04   -.91528    
   4  Prefactor     .89912        .11941        .10501E-04   -.96172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86108e-14
Minuit parameter uncertainties:
  1  1.25375
  2  1.75513
  3  0.13311
  4  0.119449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935176': 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) = 19345.8238661
delta logL = 0.169949933483

Extracting fit parameters...

4FGL J1637.7+4717
   Spectrum: PowerLaw
335    Prefactor:  4.068e-01  1.254e+00  1.000e-04  1.000e+04 ( 1.000e-12)
336        Index:  3.497e+00  1.755e+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:  8.991e-01  1.194e-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:  1.045e+00  1.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/935176/cmap_HighResolution_671414401_672019201_4FGL_J1637.7+4717_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.54e-03', job_status='DONE', photon_flux_upper_limit='4.57e-08', time_completed='2022-04-19 03:19:51.616266', job_id='935176', GAL2='0.90', fit_tolerance='1e-08', EG2='1.05', EG='1.06', time_epoch_completed='1650363591.62', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.70e-01', ts2='0.35', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='715' AND source_name='4FGL J1637.7+4717' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:19:51 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 931388: <4FGL_J1637.7+4717_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1637.7+4717_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:07:21 2022
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:18:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:18:10 2022
Terminated at Tue Apr 19 03:03:44 2022
Results reported at Tue Apr 19 03:03:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1637.7+4717_weekly_bin715 249.434 47.2913 671414401 672019201 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 :                                   2717.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             345.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2733 sec.
    Turnaround time :                            10583 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 935176: <4FGL_J1637.7+4717_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1637.7+4717_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:18:42 2022
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:32:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:32:30 2022
Terminated at Tue Apr 19 03:19:52 2022
Results reported at Tue Apr 19 03:19:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1637.7+4717_weekly_bin715 249.434 47.2913 671414401 672019201 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 :                                   2746.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             329.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2842 sec.
    Turnaround time :                            10870 sec.

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

