Sender: LSF System <lsf@bullet0280>
Subject: Job 782295: <4FGL_J1637.7+4717_weekly_bin519> in cluster <slac> Done

Job <4FGL_J1637.7+4717_weekly_bin519> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Jul 25 06:50:48 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 25 06:50:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 25 06:50:59 2021
Terminated at Sun Jul 25 08:41:05 2021
Results reported at Sun Jul 25 08:41:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1637.7+4717_weekly_bin519 249.434 47.2913 552873601 553478401 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 :                                   6241.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             352.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   6605 sec.
    Turnaround time :                            6617 sec.

The output (if any) follows:

aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 205 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 = 17267
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1637.7+4717_weekly_bin519
RA = 249.434, Dec = 47.2913
tmin = 552873601, tmax = 553478401
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='782295', job_status='RUN', time_executed='2021-07-25 06:54:36.084003', time_epoch_executed='1627221276.08' WHERE source_name='4FGL J1637.7+4717' and cadence='weekly' and bin_id='519'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782295

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782295/ft1_4FGL_J1637.7+4717_weekly_bin519.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782295/ft2_4FGL_J1637.7+4717_weekly_bin519.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782295/ft1_4FGL_J1637.7+4717_weekly_bin519.fits outfile=/scratch/kocevski/782295/ft1_filteredMKT_4FGL_J1637.7+4717_weekly_bin519.fits ra=249.434 dec=47.2913 rad=12.0 tmin=552873601.0 tmax=553478401.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.88
user 5.59
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/782295/ft1_filtered_4FGL_J1637.7+4717_weekly_bin519.fits" evtable="EVENTS" scfile=/scratch/kocevski/782295/ft2_4FGL_J1637.7+4717_weekly_bin519.fits sctable="SC_DATA" outfile=/scratch/kocevski/782295/ltcube_552873601_553478401_4FGL_J1637.7+4717_weekly_bin519.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/782295/ft2_4FGL_J1637.7+4717_weekly_bin519.fits
.....................!
real 35.78
user 35.24
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782295/ft1_filtered_4FGL_J1637.7+4717_weekly_bin519.fits evtable="EVENTS" scfile=/scratch/kocevski/782295/ft2_4FGL_J1637.7+4717_weekly_bin519.fits sctable="SC_DATA" expcube=/scratch/kocevski/782295/ltcube_552873601_553478401_4FGL_J1637.7+4717_weekly_bin519.fits outfile=/scratch/kocevski/782295/expmap_552873601_553478401_4FGL_J1637.7+4717_weekly_bin519.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/782295/ltcube_552873601_553478401_4FGL_J1637.7+4717_weekly_bin519.fits
.....................!
real 191.84
user 186.87
sys 4.36

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/782295/ft1_filtered_4FGL_J1637.7+4717_weekly_bin519.fits scfile=/scratch/kocevski/782295/ft2_4FGL_J1637.7+4717_weekly_bin519.fits outfile=/scratch/kocevski/782295/cmap_552873601_553478401_4FGL_J1637.7+4717_weekly_bin519.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.60
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/782295/ft1_filtered_4FGL_J1637.7+4717_weekly_bin519.fits scfile=/scratch/kocevski/782295/ft2_4FGL_J1637.7+4717_weekly_bin519.fits outfile=/scratch/kocevski/782295/cmap_HighResolution_552873601_553478401_4FGL_J1637.7+4717_weekly_bin519.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.61
user 0.45
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/782295/ft1_filtered_4FGL_J1637.7+4717_weekly_bin519.fits evtable="EVENTS" scfile=/scratch/kocevski/782295/ft2_4FGL_J1637.7+4717_weekly_bin519.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/782295/Model_4FGL_J1637.7+4717_weekly_bin519.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/782295/ft1_filtered_4FGL_J1637.7+4717_weekly_bin519.fits.....................!
real 227.17
user 225.07
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1675       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9942       1.0000         .10000E-03   10000.    
     3 'norm      '    12.545       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .57195E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11242E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.9029       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .54278E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .87026       1.0000         .10000E-03   10000.    
     9 'norm      '    16.430       1.0000         .10000E-03   10000.    
    10 'norm      '    1.9925       1.0000         .10000E-03   10000.    
    11 'norm      '    .12460E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    62.331       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.3822       1.0000         .10000E-03   10000.    
    15 'norm      '    21.827       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .96402       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19495       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4607       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .53156       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1756       1.0000         .10000E-03   10000.    
    21 'norm      '    1.4506       1.0000         .10000E-03   10000.    
    22 'norm      '    .67074       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13792E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    .24536       1.0000         .10000E-03   10000.    
    25 'norm      '    .61939E-01   1.0000         .10000E-03   10000.    
    26 'norm      '    .92680       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.1933       1.0000         .10000E-03   10000.    
    28 'norm      '    1.8947       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.5297       1.0000         .10000E-03   10000.    
    31 'Prefactor '    9.2860       1.0000         .10000E-03   10000.    
    32 'Prefactor '    8.4636       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.1865       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .90616       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   35452.19     FROM MIGRAD    STATUS=CONVERGED   1789 CALLS     6625 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1685        5.7721        .22772E-03    .63503E-04
   2  Prefactor     5.9945        3.6251        .16400E-03    .85402E-04
   3  norm          12.545        4.0174        .11310E-03    .57097E-04
   4  Prefactor     .10008E-03    7.6250        .17833    ** at limit **
   5  Prefactor     .10000E-03    1.4701        .27950E-02** at limit **
   6  Prefactor     6.8853        7.3576        .15270E-03    .18583E-03
   7  Prefactor     .53767E-01    .68816        .52440E-01    .27243E-02
   8  Prefactor     .87088        1.3026        .25159E-03    .19510E-02
   9  norm          16.428        7.7265        .98810E-04    .16568E-04
  10  norm          1.9926        .14021        .16172E-04    .25960E-02
  11  norm          .10000E-03    4.1176        .44940E-02** at limit **
  12  Prefactor     62.334        14.542        .50825E-04    .44736E-04
  13  Prefactor     .10000E-03    2.2778        .23910E-02** at limit **
  14  Prefactor     9.3828        3.0111        .13084E-03    .22939E-04
  15  norm          21.822        15.283        .85734E-04    .14852E-04
  16  Prefactor     .96346        .69950        .96760E-03    .85545E-03
  17  Prefactor     .19522        .58776        .16772E-03    .38334E-02
  18  Prefactor     2.4604        1.3051        .14757E-03    .49735E-03
  19  Prefactor     .53147        .70246        .20218E-02    .14958E-02
  20  Prefactor     2.1762        2.9862        .27914E-03    .45093E-03
  21  norm          1.4508        .62224        .93865E-04    .12112E-03
  22  norm          .67109        .37836        .87485E-03    .24139E-02
  23  Prefactor     .10083E-03    1.0906        .54331E-01** at limit **
  24  norm          .24500        .23314        .10046E-02    .17062E-01
  25  norm          .95707E-01    1.6448        .65541E-01    .11563E-02
  26  norm          .92710        .70866        .13369E-03    .13817E-02
  27  Prefactor     2.1934        1.3021        .15902E-03    .20018E-03
  28  norm          1.8950        2.3255        .29853E-03    .11269E-02
  29  Prefactor     .10000E-03    8.1874        .18142E-02** at limit **
  30  Prefactor     5.5302        2.3275        .17086E-03    .28798E-03
  31  Prefactor     9.2860        10.931        .13152E-03    .48408E-05
  32  Prefactor     8.4543        14.287        .13779E-03   -.66004E-05
  33  Normalizat    1.1865        .10866        .26798E-03   -.16970E-03
  34  Prefactor     .90603        .95508E-01    .27563E-03   -.19468E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.16855
  Prefactor  = 5.9945
  norm       = 12.5451
  Prefactor  = 0.000100076
  Prefactor  = 0.0001
  Prefactor  = 6.88526
  Prefactor  = 0.053767
  Prefactor  = 0.870879
  norm       = 16.4275
  norm       = 1.99256
  norm       = 0.0001
  Prefactor  = 62.3339
  Prefactor  = 0.0001
  Prefactor  = 9.38278
  norm       = 21.8219
  Prefactor  = 0.963465
  Prefactor  = 0.195222
  Prefactor  = 2.46037
  Prefactor  = 0.531468
  Prefactor  = 2.17619
  norm       = 1.4508
  norm       = 0.671091
  Prefactor  = 0.000100826
  norm       = 0.245004
  norm       = 0.0957074
  norm       = 0.927098
  Prefactor  = 2.19342
  norm       = 1.89504
  Prefactor  = 0.0001
  Prefactor  = 5.53018
  Prefactor  = 9.28596
  Prefactor  = 8.45427
  Normalizat = 1.18654
  Prefactor  = 0.906033
 **********
 **   18 **HESSE 
 **********

 FCN=   35452.19     FROM HESSE     STATUS=OK           746 CALLS     7371 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1685        5.7722        .91089E-05   -1.5352    
   2  Prefactor     5.9945        3.6248        .65602E-05   -1.5218    
   3  norm          12.545        4.0173        .45238E-05   -1.4999    
   4  Prefactor     .10008E-03    7.6141        .17859       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.4822        .55900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.8853        7.3474        .61081E-05   -1.5183    
   7  Prefactor     .53767E-01    .68927        .52350E-01   -1.5662    
   8  Prefactor     .87088        1.3022        .10064E-04   -1.5521    
   9  norm          16.428        7.7263        .39524E-05   -1.4897    
  10  norm          1.9926        .14010        .32344E-05   -1.5426    
  11  norm          .10000E-03    4.1827        .89881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     62.334        14.538        .20330E-05   -1.4127    
  13  Prefactor     .10000E-03    2.2949        .47820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.3828        3.0109        .52335E-05   -1.5095    
  15  norm          21.822        15.276        .34294E-05   -1.4773    
  16  Prefactor     .96346        .70275        .38704E-04   -1.5512    
  17  Prefactor     .19522        .59118        .67087E-05   -1.5620    
  18  Prefactor     2.4604        1.3043        .59030E-05   -1.5394    
  19  Prefactor     .53147        .70078        .80872E-04   -1.5562    
  20  Prefactor     2.1762        2.9859        .11166E-04   -1.5413    
  21  norm          1.4508        .62217        .37546E-05   -1.5467    
  22  norm          .67109        .37782        .34994E-04   -1.5544    
  23  Prefactor     .10083E-03    1.0700        .55053E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .24500        .23289        .20092E-03   -1.5609    
  25  norm          .95707E-01    1.4986        .70286E-01   -1.5646    
  26  norm          .92710        .70854        .53474E-05   -1.5515    
  27  Prefactor     2.1934        1.3019        .63609E-05   -1.5412    
  28  norm          1.8950        2.3246        .11941E-04   -1.5433    
  29  Prefactor     .10000E-03    8.1884        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     5.5302        2.3271        .68342E-05   -1.5238    
  31  Prefactor     9.2860        10.931        .52607E-05   -1.5098    
  32  Prefactor     8.4543        14.287        .55118E-05   -1.5126    
  33  Normalizat    1.1865        .10873        .10719E-04   -.87020    
  34  Prefactor     .90603        .95595E-01    .11025E-04   -.95931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.45914e-09
Minuit parameter uncertainties:
  1  5.77323
  2  3.62494
  3  4.01734
  4  0.001519
  5  1.18581e-05
  6  7.34836
  7  0.384667
  8  1.30224
  9  7.72672
  10  0.140105
  11  7.04923e-06
  12  14.5383
  13  1.43392e-05
  14  3.01094
  15  15.2785
  16  0.70276
  17  0.591198
  18  1.30428
  19  0.700791
  20  2.98609
  21  0.622177
  22  0.37782
  23  0.00188079
  24  0.232895
  25  0.757053
  26  0.708549
  27  1.30194
  28  2.32471
  29  8.6264e-06
  30  2.3271
  31  10.9329
  32  14.2925
  33  0.10875
  34  0.095613
Done.

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

Extracting fit parameters...

4FGL J1637.7+4717
   Spectrum: PowerLaw
335    Prefactor:  1.000e-04  1.434e-05  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:  9.060e-01  9.561e-02  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.187e+00  1.087e-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: 3.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/782295/likelihoodResults_552873601_553478401_4FGL_J1637.7+4717_weekly_bin519.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) = 35452.1882652
delta logL = -0.00208817054954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 35452.186169
delta logL = 8.01833084552e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13888E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5389       1.0000          .0000       10.000    
     3 'Normalizat'    1.1864       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90612       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=   35451.46     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      274 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16000        .79881        .90712E-02    .13885E-01
   2  Index         4.3906        1.3939        .23401        .44488E-03
   3  Normalizat    1.1495        .11678E-01    .61417E-01    .55494E-03
   4  Prefactor     .92648        .10711E-01    .45083E-01    .53502E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.160004
  Index      = 4.39063
  Normalizat = 1.14952
  Prefactor  = 0.926477
 **********
 **   18 **HESSE 
 **********

 FCN=   35451.46     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      307 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16000        5.6934        .60971E-04   -1.5628    
   2  Index         4.3906        7.1892        .97110E-02   -.12218    
   3  Normalizat    1.1495        .79961E-01    .27165E-03   -.88177    
   4  Prefactor     .92648        .72417E-01    .27291E-03   -.95222    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.55647e-08
Minuit parameter uncertainties:
  1  1.90848
  2  6.8428
  3  0.0799694
  4  0.0724247
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782295': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 35451.4554482
delta logL = 0.730728849077

Extracting fit parameters...

4FGL J1637.7+4717
   Spectrum: PowerLaw
335    Prefactor:  1.600e-01  1.908e+00  1.000e-04  1.000e+04 ( 1.000e-12)
336        Index:  4.391e+00  6.843e+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.265e-01  7.242e-02  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.150e+00  7.997e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.55
Ra Dec: 249.434 47.291
Photon Index (Free Index): 4.39 +/- 6.84
Photon Flux (Free Index): 2.70e-08 +/- 2.53e-08
Energy Flux (Free Index): 3.82e-06 +/- 5.83e-06

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/782295/cmap_HighResolution_552873601_553478401_4FGL_J1637.7+4717_weekly_bin519.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-03', comment='SUCCESS', energy_flux2='3.82e-06', dlogl='7.31e-01', photon_flux2='2.70e-08', job_status='DONE', time_completed='2021-07-25 08:41:03.972008', photon_index_error2='6.84', photon_index2='4.39', ts='-0.00', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='3.06e-08', energy_flux_error2='5.83e-06', EG='1.19', time_epoch_completed='1627227663.97', return_code='0', job_id='782295', GAL2='0.93', EG2='1.15', return_code2='102', photon_flux_error2='2.53e-08', ts2='1.55', photon_index='2.43' WHERE bin_id='519' AND source_name='4FGL J1637.7+4717' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul 25 08:41:04 PDT 2021

