Sender: LSF System <lsf@bullet0200>
Subject: Job 779076: <4FGL_J1637.7+4717_weekly_bin4> in cluster <slac> Done

Job <4FGL_J1637.7+4717_weekly_bin4> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Jul 25 06:40:27 2021
Job was executed on host(s) <bullet0200>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 25 06:40:43 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:40:43 2021
Terminated at Sun Jul 25 07:39:00 2021
Results reported at Sun Jul 25 07:39:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1637.7+4717_weekly_bin4 249.434 47.2913 241401601 242006401 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 :                                   3286.30 sec.
    Max Memory :                                 1278 MB
    Average Memory :                             362.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3410 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   3496 sec.
    Turnaround time :                            3513 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 178 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 = 17168
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1637.7+4717_weekly_bin4
RA = 249.434, Dec = 47.2913
tmin = 241401601, tmax = 242006401
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='779076', job_status='RUN', time_executed='2021-07-25 06:43:54.053817', time_epoch_executed='1627220634.05' WHERE source_name='4FGL J1637.7+4717' and cadence='weekly' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779076

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779076/ft1_4FGL_J1637.7+4717_weekly_bin4.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779076/ft2_4FGL_J1637.7+4717_weekly_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779076/ft1_4FGL_J1637.7+4717_weekly_bin4.fits outfile=/scratch/kocevski/779076/ft1_filteredMKT_4FGL_J1637.7+4717_weekly_bin4.fits ra=249.434 dec=47.2913 rad=12.0 tmin=241401601.0 tmax=242006401.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 2.77
user 2.52
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/779076/ft1_filtered_4FGL_J1637.7+4717_weekly_bin4.fits" evtable="EVENTS" scfile=/scratch/kocevski/779076/ft2_4FGL_J1637.7+4717_weekly_bin4.fits sctable="SC_DATA" outfile=/scratch/kocevski/779076/ltcube_241401601_242006401_4FGL_J1637.7+4717_weekly_bin4.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/779076/ft2_4FGL_J1637.7+4717_weekly_bin4.fits
.....................!
real 37.26
user 36.27
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779076/ft1_filtered_4FGL_J1637.7+4717_weekly_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/779076/ft2_4FGL_J1637.7+4717_weekly_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/779076/ltcube_241401601_242006401_4FGL_J1637.7+4717_weekly_bin4.fits outfile=/scratch/kocevski/779076/expmap_241401601_242006401_4FGL_J1637.7+4717_weekly_bin4.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/779076/ltcube_241401601_242006401_4FGL_J1637.7+4717_weekly_bin4.fits
.....................!
real 193.13
user 187.11
sys 5.51

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/779076/ft1_filtered_4FGL_J1637.7+4717_weekly_bin4.fits scfile=/scratch/kocevski/779076/ft2_4FGL_J1637.7+4717_weekly_bin4.fits outfile=/scratch/kocevski/779076/cmap_241401601_242006401_4FGL_J1637.7+4717_weekly_bin4.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.61
user 0.42
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/779076/ft1_filtered_4FGL_J1637.7+4717_weekly_bin4.fits scfile=/scratch/kocevski/779076/ft2_4FGL_J1637.7+4717_weekly_bin4.fits outfile=/scratch/kocevski/779076/cmap_HighResolution_241401601_242006401_4FGL_J1637.7+4717_weekly_bin4.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.43
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/779076/ft1_filtered_4FGL_J1637.7+4717_weekly_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/779076/ft2_4FGL_J1637.7+4717_weekly_bin4.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/779076/Model_4FGL_J1637.7+4717_weekly_bin4.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/779076/ft1_filtered_4FGL_J1637.7+4717_weekly_bin4.fits.....................!
real 152.14
user 150.09
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6746       1.0000         .10000E-03   10000.    
     3 'norm      '    3.5547       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3981       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.604       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0582       1.0000         .10000E-03   10000.    
     9 'norm      '    19.017       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2046       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11905E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .53876       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .71407       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5636       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5413       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.8398       1.0000         .10000E-03   10000.    
    21 'norm      '    3.1365       1.0000         .10000E-03   10000.    
    22 'norm      '    .92935       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.5405       1.0000         .10000E-03   10000.    
    24 'norm      '    .40498E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    26.513       1.0000         .10000E-03   10000.    
    26 'norm      '    1.8654       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.0830       1.0000         .10000E-03   10000.    
    28 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.9125       1.0000         .10000E-03   10000.    
    30 'Prefactor '    14.916       1.0000         .10000E-03   10000.    
    31 'Prefactor '    23.793       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .11099E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .92032       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .99106       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=   22187.85     FROM MIGRAD    STATUS=CONVERGED    930 CALLS     4953 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9428        .53260E-07** at limit **
   2  Prefactor     4.6744        3.7130        .14310E-06   -.98741E-04
   3  norm          3.5549        3.0007        .18044E-06   -.65024E-04
   4  Prefactor     6.3869        24.927       -.17591E-05   -.44381E-04
   5  Prefactor     .10000E-03    .82355        .10900E-07** at limit **
   6  Prefactor     31.607        12.748        .92140E-07   -.47553E-04
   7  Prefactor     .10000E-03    .89808       -.33029E-07** at limit **
   8  Prefactor     1.0582        1.5450        .47374E-06   -.94950E-03
   9  norm          19.018        9.8793        .15563E-07   -.26039E-04
  10  norm          1.2047        .12931       -.20938E-07   -.57827E-02
  11  norm          .10000E-03    2.0413        .10953E-07** at limit **
  12  Prefactor     .10000E-03    23.580        .42990E-06** at limit **
  13  Prefactor     .10000E-03    .68363        .61159E-07** at limit **
  14  Prefactor     .54972        1.4959        .43480E-06   -.10142E-02
  15  norm          .10000E-03    10.131       -.34678E-06** at limit **
  16  Prefactor     .71400        1.1138        .78499E-06   -.18956E-03
  17  Prefactor     2.5636        1.2523       -.36409E-06   -.15339E-02
  18  Prefactor     3.5417        1.8866        .70631E-07   -.42727E-03
  19  Prefactor     .10000E-03    .56087       -.81025E-08** at limit **
  20  Prefactor     8.8399        4.9350        .57898E-08   -.59287E-04
  21  norm          3.1366        .95713       -.10828E-08   -.27818E-03
  22  norm          .92943        .48589       -.57447E-08   -.46112E-03
  23  Prefactor     3.5406        3.9970        .30624E-06   -.19513E-03
  24  norm          .40875E-01    .14130       -.59176E-07    .12865E-02
  25  norm          26.514        6.3851        .50302E-08    .53027E-04
  26  norm          1.8657        .82105        .12457E-07    .26586E-05
  27  Prefactor     1.0844        1.6635        .55071E-06    .32148E-03
  28  norm          .10000E-03    .91927       -.73784E-07** at limit **
  29  Prefactor     5.8899        17.883       -.26178E-05   -.98976E-04
  30  Prefactor     14.916        4.2736       -.14879E-07   -.21150E-03
  31  Prefactor     23.792        42.827       -.25027E-07   -.11404E-04
  32  Prefactor     .10000E-03    10.535       -.57573E-06** at limit **
  33  Normalizat    .92039        .11175       -.88680E-06   -.20086E-03
  34  Prefactor     .99099        .98283E-01    .23227E-06   -.38239E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.67439
  norm       = 3.55488
  Prefactor  = 6.38692
  Prefactor  = 0.0001
  Prefactor  = 31.607
  Prefactor  = 0.0001
  Prefactor  = 1.05817
  norm       = 19.0178
  norm       = 1.20466
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.549715
  norm       = 0.0001
  Prefactor  = 0.714001
  Prefactor  = 2.56357
  Prefactor  = 3.54168
  Prefactor  = 0.0001
  Prefactor  = 8.83985
  norm       = 3.13658
  norm       = 0.929429
  Prefactor  = 3.54062
  norm       = 0.0408749
  norm       = 26.5137
  norm       = 1.86567
  Prefactor  = 1.08444
  norm       = 0.0001
  Prefactor  = 5.88988
  Prefactor  = 14.9162
  Prefactor  = 23.7924
  Prefactor  = 0.0001
  Normalizat = 0.920392
  Prefactor  = 0.990991
 **********
 **   18 **HESSE 
 **********

 FCN=   22187.85     FROM HESSE     STATUS=OK           754 CALLS     5707 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.6744        3.7020        .18613E-03   -1.5276    
   3  norm          3.5549        2.9894        .21437E-03   -1.5331    
   4  Prefactor     6.3869        25.134        .15868E-03   -1.5202    
   5  Prefactor     .10000E-03    .82706        .13179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.607        12.726        .71274E-04   -1.4583    
   7  Prefactor     .10000E-03    .90374        .13774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0582        1.4825        .20824E-03   -1.5502    
   9  norm          19.018        9.8775        .91844E-04   -1.4836    
  10  norm          1.2047        .12872        .15719E-04   -1.5488    
  11  norm          .10000E-03    2.0461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.097        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.4093        .23142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .54972        3.6357        .28209E-02   -1.5560    
  15  norm          .10000E-03    10.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .71400        1.0270        .11584E-03   -1.5539    
  17  Prefactor     2.5636        1.1752        .69004E-04   -1.5388    
  18  Prefactor     3.5417        1.8587        .13756E-03   -1.5332    
  19  Prefactor     .10000E-03    .57695        .21748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.8399        4.9330        .13481E-03   -1.5113    
  21  norm          3.1366        .95734        .77132E-04   -1.5354    
  22  norm          .92943        .47023        .68594E-04   -1.5515    
  23  Prefactor     3.5406        3.9455        .21482E-03   -1.5332    
  24  norm          .40875E-01    .82601        .95452E-03   -1.5668    
  25  norm          26.514        6.3817        .77800E-04   -1.4678    
  26  norm          1.8657        .81403        .85422E-04   -1.5435    
  27  Prefactor     1.0844        1.4550        .23411E-02   -1.5500    
  28  norm          .10000E-03    .92793        .13933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     5.8899        18.233        .16515E-03   -1.5223    
  30  Prefactor     14.916        4.2330        .10370E-03   -1.4935    
  31  Prefactor     23.792        42.836        .82120E-04   -1.4732    
  32  Prefactor     .10000E-03    10.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .92039        .13203        .28953E-03   -.95747    
  34  Prefactor     .99099        .11759        .25512E-03   -.93030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62614e-09
Minuit parameter uncertainties:
  1  9.15303e-07
  2  3.70223
  3  2.98956
  4  25.176
  5  1.57055e-07
  6  12.7273
  7  2.73426e-06
  8  1.48253
  9  9.87835
  10  0.128721
  11  4.40278e-07
  12  3.61483e-05
  13  0.000111175
  14  2.82742
  15  2.26044e-05
  16  1.02702
  17  1.17517
  18  1.85876
  19  4.95852e-08
  20  4.93326
  21  0.957349
  22  0.47023
  23  3.94584
  24  0.36705
  25  6.38182
  26  0.814036
  27  1.455
  28  1.66387e-06
  29  18.2502
  30  4.23304
  31  42.8917
  32  0.000123936
  33  0.132081
  34  0.117622
Done.

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

Extracting fit parameters...

4FGL J1637.7+4717
   Spectrum: PowerLaw
335    Prefactor:  1.000e-04  1.112e-04  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.910e-01  1.176e-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.204e-01  1.321e-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.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/779076/likelihoodResults_241401601_242006401_4FGL_J1637.7+4717_weekly_bin4.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) = 22187.8470741
delta logL = -0.00063959416002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 22187.8463841
delta logL = 5.04467752762e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19437E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5633       1.0000          .0000       10.000    
     3 'Normalizat'    .92038       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99105       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=   22187.69     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      261 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27930        1.0865        .30298E-01    .54349E-02
   2  Index         3.6745        .70467        .43069        .67256E-04
   3  Normalizat    .90282        .73141E-02    .66013E-01    .10422E-03
   4  Prefactor     .99965        .66994E-02    .46155E-01    .11879E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.279296
  Index      = 3.67454
  Normalizat = 0.902821
  Prefactor  = 0.999654
 **********
 **   18 **HESSE 
 **********

 FCN=   22187.69     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      296 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27930        45.476        .10545E-02   -1.5602    
   2  Index         3.6745        6.0677        .75220E-02   -.26830    
   3  Normalizat    .90282        .85319E-01    .29201E-03   -.96361    
   4  Prefactor     .99965        .77316E-01    .25412E-03   -.92741    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.70824e-09
Minuit parameter uncertainties:
  1  7.13204
  2  14.637
  3  0.0853316
  4  0.0773249
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779076': 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) = 22187.6931567
delta logL = 0.153277814894

Extracting fit parameters...

4FGL J1637.7+4717
   Spectrum: PowerLaw
335    Prefactor:  2.793e-01  7.132e+00  1.000e-04  1.000e+04 ( 1.000e-12)
336        Index:  3.675e+00  1.464e+01  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.997e-01  7.732e-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:  9.028e-01  8.533e-02  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/779076/cmap_HighResolution_241401601_242006401_4FGL_J1637.7+4717_weekly_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.02e-03', job_status='DONE', photon_flux_upper_limit='3.90e-08', time_completed='2021-07-25 07:38:59.444367', job_id='779076', GAL2='1.00', fit_tolerance='1e-08', EG2='0.90', EG='0.92', time_epoch_completed='1627223939.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.53e-01', ts2='0.32', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='4' AND source_name='4FGL J1637.7+4717' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul 25 07:38:59 PDT 2021

