/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 1 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 = 7445
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1637.7+4717_daily_bin711
RA = 249.434, Dec = 47.2913
tmin = 423619201, tmax = 423878401
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='721299', job_status='RUN', time_executed='2021-09-14 23:32:16.207516', time_epoch_executed='1631687536.21' WHERE source_name='4FGL J1637.7+4717' and cadence='daily' and bin_id='711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/721299

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/721299/ft1_4FGL_J1637.7+4717_daily_bin711.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/721299/ft2_4FGL_J1637.7+4717_daily_bin711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/721299/ft1_4FGL_J1637.7+4717_daily_bin711.fits outfile=/scratch/kocevski/721299/ft1_filteredMKT_4FGL_J1637.7+4717_daily_bin711.fits ra=249.434 dec=47.2913 rad=12.0 tmin=423619201.0 tmax=423878401.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 5.79
user 5.47
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/721299/ft1_filtered_4FGL_J1637.7+4717_daily_bin711.fits" evtable="EVENTS" scfile=/scratch/kocevski/721299/ft2_4FGL_J1637.7+4717_daily_bin711.fits sctable="SC_DATA" outfile=/scratch/kocevski/721299/ltcube_423619201_423878401_4FGL_J1637.7+4717_daily_bin711.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/721299/ft2_4FGL_J1637.7+4717_daily_bin711.fits
.....................!
real 14.10
user 13.72
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/721299/ft1_filtered_4FGL_J1637.7+4717_daily_bin711.fits evtable="EVENTS" scfile=/scratch/kocevski/721299/ft2_4FGL_J1637.7+4717_daily_bin711.fits sctable="SC_DATA" expcube=/scratch/kocevski/721299/ltcube_423619201_423878401_4FGL_J1637.7+4717_daily_bin711.fits outfile=/scratch/kocevski/721299/expmap_423619201_423878401_4FGL_J1637.7+4717_daily_bin711.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/721299/ltcube_423619201_423878401_4FGL_J1637.7+4717_daily_bin711.fits
.....................!
real 193.44
user 187.41
sys 5.60

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/721299/ft1_filtered_4FGL_J1637.7+4717_daily_bin711.fits scfile=/scratch/kocevski/721299/ft2_4FGL_J1637.7+4717_daily_bin711.fits outfile=/scratch/kocevski/721299/cmap_423619201_423878401_4FGL_J1637.7+4717_daily_bin711.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/721299/ft1_filtered_4FGL_J1637.7+4717_daily_bin711.fits scfile=/scratch/kocevski/721299/ft2_4FGL_J1637.7+4717_daily_bin711.fits outfile=/scratch/kocevski/721299/cmap_HighResolution_423619201_423878401_4FGL_J1637.7+4717_daily_bin711.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/721299/ft1_filtered_4FGL_J1637.7+4717_daily_bin711.fits evtable="EVENTS" scfile=/scratch/kocevski/721299/ft2_4FGL_J1637.7+4717_daily_bin711.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/721299/Model_4FGL_J1637.7+4717_daily_bin711.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/721299/ft1_filtered_4FGL_J1637.7+4717_daily_bin711.fits......................!
real 28.19
user 26.87
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/721299/ft1_filtered_4FGL_J1637.7+4717_daily_bin711.fits', '/scratch/kocevski/721299/ft2_4FGL_J1637.7+4717_daily_bin711.fits', expMap='/scratch/kocevski/721299/expmap_423619201_423878401_4FGL_J1637.7+4717_daily_bin711.fits', expCube='/scratch/kocevski/721299/ltcube_423619201_423878401_4FGL_J1637.7+4717_daily_bin711.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/721299/Model_4FGL_J1637.7+4717_daily_bin711.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/721299/ft1_filtered_4FGL_J1637.7+4717_daily_bin711.fits
Spacecraft file(s): /scratch/kocevski/721299/ft2_4FGL_J1637.7+4717_daily_bin711.fits
Exposure map: /scratch/kocevski/721299/expmap_423619201_423878401_4FGL_J1637.7+4717_daily_bin711.fits
Exposure cube: /scratch/kocevski/721299/ltcube_423619201_423878401_4FGL_J1637.7+4717_daily_bin711.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/721299/Model_4FGL_J1637.7+4717_daily_bin711.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) = 2312.57550461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44105E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13427E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.691       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11104E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .39109       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    56.878       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10371E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7710       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.4881       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.850       1.0000         .10000E-03   10000.    
    15 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.6184       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3002       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13261E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.5810       1.0000         .10000E-03   10000.    
    22 'norm      '    1.7896       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .87163E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .59964       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.9024       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    50.938       1.0000         .10000E-03   10000.    
    32 'Prefactor '    21.860       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0220       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .73455       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=   2312.565     FROM MIGRAD    STATUS=CONVERGED    944 CALLS     4862 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    489.31        .20867E-05** at limit **
   2  Prefactor     .10000E-03    8.7377        .10837E-06** at limit **
   3  norm          .10000E-03    5.9813        .61840E-07** at limit **
   4  Prefactor     .10000E-03    109.05       -.51708E-06** at limit **
   5  Prefactor     18.695        14.189       -.27525E-07    .47643E-04
   6  Prefactor     .10000E-03    95.069        .23018E-05** at limit **
   7  Prefactor     .36111        202.92       -.10589E-04    .10423E-04
   8  Prefactor     .10000E-03    4.1156        .27453E-06** at limit **
   9  norm          56.923        50.080        .25792E-05    .23153E-04
  10  norm          .10000E-03    .86150E-01    .11965E-06** at limit **
  11  norm          .10000E-03    73.018        .11205E-05** at limit **
  12  Prefactor     3.7540        54.698       -.11021E-05   -.31275E-04
  13  Prefactor     7.4927        9.0148       -.42487E-06    .59959E-04
  14  Prefactor     10.852        10.569       -.52995E-07    .59218E-04
  15  norm          .10000E-03    36.210        .50531E-06** at limit **
  16  Prefactor     .10000E-03    1.3177        .19663E-06** at limit **
  17  Prefactor     4.6179        2.2874       -.19834E-06   -.56970E-03
  18  Prefactor     4.3032        5.1029       -.12120E-06    .12175E-03
  19  Prefactor     .10000E-03    5.7127        .81882E-06** at limit **
  20  Prefactor     .10000E-03    8.7703        .19675E-06** at limit **
  21  norm          3.5809        2.8161       -.18284E-07   -.11574E-03
  22  norm          1.7894        1.4754       -.11064E-06   -.27114E-04
  23  Prefactor     .10001E-03    9.7368        .16293E-05** at limit **
  24  norm          .60026        1.1360       -.52124E-06   -.46660E-03
  25  norm          .10000E-03    3.9479        .80829E-07** at limit **
  26  norm          2.9023        2.2040       -.90493E-07    .23714E-05
  27  Prefactor     .10000E-03    1.5346        .57983E-07** at limit **
  28  norm          .10000E-03    2.4681        .77108E-07** at limit **
  29  Prefactor     .10000E-03    43.684       -.51880E-06** at limit **
  30  Prefactor     .10000E-03    1.9188       -.29986E-06** at limit **
  31  Prefactor     50.976        71.747        .13391E-05   -.23231E-04
  32  Prefactor     21.848        31.487        .31427E-07    .61111E-05
  33  Normalizat    1.0233        .35506        .20711E-05   -.77198E-04
  34  Prefactor     .73386        .28232       -.24540E-05    .21284E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6952
  Prefactor  = 0.0001
  Prefactor  = 0.361109
  Prefactor  = 0.0001
  norm       = 56.9233
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.75403
  Prefactor  = 7.49266
  Prefactor  = 10.8523
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.61789
  Prefactor  = 4.30318
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.58094
  norm       = 1.78944
  Prefactor  = 0.000100007
  norm       = 0.600255
  norm       = 0.0001
  norm       = 2.90225
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.9755
  Prefactor  = 21.8481
  Normalizat = 1.02326
  Prefactor  = 0.733864
 **********
 **   18 **HESSE 
 **********

 FCN=   2312.565     FROM HESSE     STATUS=OK           736 CALLS     5598 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    493.94        .21218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.7443        .13884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.9846        .11487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    108.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.695        14.201        .92642E-04   -1.4843    
   6  Prefactor     .10000E-03    95.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .36111        231.59        .42303E-02   -1.5588    
   8  Prefactor     .10000E-03    4.1586        .95256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          56.923        51.311        .26596E-03   -1.4198    
  10  norm          .10000E-03    .88995E-01    .27182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    74.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.7540        54.115        .20789E-03   -1.5320    
  13  Prefactor     7.4927        8.9979        .14656E-03   -1.5160    
  14  Prefactor     10.852        10.572        .12163E-03   -1.5049    
  15  norm          .10000E-03    36.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3457        .10694E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.6179        2.2695        .47275E-04   -1.5278    
  18  Prefactor     4.3032        5.0750        .10966E-03   -1.5293    
  19  Prefactor     .10000E-03    11.196        .21509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.7833        .13911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.5809        2.8187        .68290E-04   -1.5329    
  22  norm          1.7894        1.4582        .49461E-04   -1.5440    
  23  Prefactor     .10001E-03    46.693        .25860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .60026        1.0887        .66213E-03   -1.5553    
  25  norm          .10000E-03    3.9512        .93330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.9023        2.1928        .59127E-04   -1.5367    
  27  Prefactor     .10000E-03    1.5368        .58184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    2.4743        .73788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    43.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.9161        .64952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     50.976        71.342        .56192E-04   -1.4279    
  32  Prefactor     21.848        31.486        .85668E-04   -1.4773    
  33  Normalizat    1.0233        .41344        .24964E-03   -.92255    
  34  Prefactor     .73386        .32789        .25135E-03   -1.0221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71388e-10
Minuit parameter uncertainties:
  1  0.000434087
  2  4.68786e-06
  3  2.52181e-06
  4  0.000179973
  5  14.2032
  6  0.000289736
  7  18.3589
  8  7.11277e-06
  9  51.3506
  10  1.65225e-07
  11  0.00018518
  12  28.5368
  13  8.99948
  14  10.574
  15  5.76394e-05
  16  4.39596e-06
  17  2.26956
  18  5.07547
  19  0.000253936
  20  9.86742e-06
  21  2.81882
  22  1.45819
  23  0.00115137
  24  1.08873
  25  1.01604e-07
  26  2.19291
  27  4.69413e-07
  28  7.38555e-07
  29  0.000130267
  30  2.93233e-06
  31  71.4621
  32  31.5096
  33  0.414747
  34  0.328764
Done.

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

Extracting fit parameters...

4FGL J1637.7+4717
   Spectrum: PowerLaw
335    Prefactor:  7.493e+00  8.999e+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:  7.339e-01  3.288e-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.023e+00  4.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.01
Ra Dec: 249.434 47.291
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 6.27e-08 +/- 7.52e-08
Energy Flux (Fixed Index): 1.98e-05 +/- 2.38e-05

TS (Fixed Index): 1.01
Ra Dec: 249.434 47.291
Photon Flux Upper Limit: 2.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.83e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/721299/likelihoodResults_423619201_423878401_4FGL_J1637.7+4717_daily_bin711.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) = 2312.02525123
delta logL = 0.539657975843

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2311.99864292
delta logL = 0.566266279167

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4678       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6704       1.0000          .0000       10.000    
     3 'Normalizat'    .93630       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78814       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.

 FCN=   2311.999     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      238 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4618        51.759        .65076E-02    .35321E-03
   2  Index         3.6714        6.7722        .11026        .81411E-04
   3  Normalizat    .93664        .10684        .45364E-01   -.16355E-03
   4  Prefactor     .78774        .90278E-01    .43563E-01   -.27658E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.46176
  Index      = 3.67142
  Normalizat = 0.936644
  Prefactor  = 0.787745
 **********
 **   18 **HESSE 
 **********

 FCN=   2311.999     FROM HESSE     STATUS=OK            29 CALLS      267 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4618        8.0550        .58919E-04   -1.5394    
   2  Index         3.6714        2.0057        .43946E-02   -.26895    
   3  Normalizat    .93664        .37566        .25893E-03   -.95184    
   4  Prefactor     .78774        .32057        .24329E-03   -1.0018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14693e-10
Minuit parameter uncertainties:
  1  8.05855
  2  2.06865
  3  0.376725
  4  0.321328
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/721299': 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) = 2311.99864109
delta logL = 0.566268109044

Extracting fit parameters...

4FGL J1637.7+4717
   Spectrum: PowerLaw
335    Prefactor:  2.462e+00  8.059e+00  1.000e-04  1.000e+04 ( 1.000e-12)
336        Index:  3.671e+00  2.069e+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:  7.877e-01  3.213e-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.366e-01  3.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.25
Ra Dec: 249.434 47.291
Photon Index (Free Index): 3.67 +/- 2.07
Photon Flux (Free Index): 1.28e-07 +/- 1.09e-07
Energy Flux (Free Index): 2.04e-05 +/- 1.84e-05

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/721299/cmap_HighResolution_423619201_423878401_4FGL_J1637.7+4717_daily_bin711.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.83e-02', comment='SUCCESS', photon_flux='6.27e-08', energy_flux2='2.04e-05', photon_flux_error='7.52e-08', dlogl='5.66e-01', energy_flux='1.98e-05', photon_flux2='1.28e-07', job_status='DONE', time_completed='2021-09-14 23:43:12.344265', photon_index_error2='2.07', photon_index2='3.67', ts='1.01', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='2.36e-07', energy_flux_error2='1.84e-05', EG='1.02', time_epoch_completed='1631688192.34', return_code='0', job_id='721299', GAL2='0.79', EG2='0.94', return_code2='0', energy_flux_error='2.38e-05', photon_flux_error2='1.09e-07', ts2='2.25', photon_index='2.43' WHERE bin_id='711' AND source_name='4FGL J1637.7+4717' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 23:43:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 721299: <4FGL_J1637.7+4717_daily_bin711> in cluster <slac> Done

Job <4FGL_J1637.7+4717_daily_bin711> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 14 23:30:36 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 23:32:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 23:32:07 2021
Terminated at Tue Sep 14 23:43:13 2021
Results reported at Tue Sep 14 23:43:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1637.7+4717_daily_bin711 249.434 47.2913 423619201 423878401 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 :                                   647.12 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             278.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   665 sec.
    Turnaround time :                            757 sec.

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

