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


Performing analysis on: 4FGL_J1637.7+7326_weekly_bin724
RA = 249.448, Dec = 73.4413
tmin = 676857601, tmax = 677462401
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='362976', job_status='RUN', time_executed='2022-06-21 01:02:36.618785', time_epoch_executed='1655798556.62' WHERE source_name='4FGL J1637.7+7326' and cadence='weekly' and bin_id='724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362976

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362976/ft1_4FGL_J1637.7+7326_weekly_bin724.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362976/ft2_4FGL_J1637.7+7326_weekly_bin724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362976/ft1_4FGL_J1637.7+7326_weekly_bin724.fits outfile=/scratch/kocevski/362976/ft1_filteredMKT_4FGL_J1637.7+7326_weekly_bin724.fits ra=249.448 dec=73.4413 rad=12.0 tmin=676857601.0 tmax=677462401.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 10.62
user 10.24
sys 0.34

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/362976/ft2_4FGL_J1637.7+7326_weekly_bin724.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/362976/ft2_4FGL_J1637.7+7326_weekly_bin724.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/362976/ft1_filteredMKT_4FGL_J1637.7+7326_weekly_bin724.fits evtable="EVENTS" outfile="/scratch/kocevski/362976/ft1_filtered_4FGL_J1637.7+7326_weekly_bin724.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.88
user 0.68
sys 0.19

Number of photons that the gtmktime cut: 3870

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/362976/ft1_filtered_4FGL_J1637.7+7326_weekly_bin724.fits" evtable="EVENTS" scfile=/scratch/kocevski/362976/ft2_4FGL_J1637.7+7326_weekly_bin724.fits sctable="SC_DATA" outfile=/scratch/kocevski/362976/ltcube_676857601_677462401_4FGL_J1637.7+7326_weekly_bin724.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/362976/ft2_4FGL_J1637.7+7326_weekly_bin724.fits
.....................!
real 59.35
user 58.22
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362976/ft1_filtered_4FGL_J1637.7+7326_weekly_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/362976/ft2_4FGL_J1637.7+7326_weekly_bin724.fits sctable="SC_DATA" expcube=/scratch/kocevski/362976/ltcube_676857601_677462401_4FGL_J1637.7+7326_weekly_bin724.fits outfile=/scratch/kocevski/362976/expmap_676857601_677462401_4FGL_J1637.7+7326_weekly_bin724.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/362976/ltcube_676857601_677462401_4FGL_J1637.7+7326_weekly_bin724.fits
.....................!
real 353.39
user 342.55
sys 9.14

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

Setting source of interest to:
4FGL J1637.7+7326 @ 249.448 73.4413

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/362976/ft1_filtered_4FGL_J1637.7+7326_weekly_bin724.fits scfile=/scratch/kocevski/362976/ft2_4FGL_J1637.7+7326_weekly_bin724.fits outfile=/scratch/kocevski/362976/cmap_676857601_677462401_4FGL_J1637.7+7326_weekly_bin724.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.448 yref=73.4413 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.92
user 0.69
sys 0.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/362976/ft1_filtered_4FGL_J1637.7+7326_weekly_bin724.fits scfile=/scratch/kocevski/362976/ft2_4FGL_J1637.7+7326_weekly_bin724.fits outfile=/scratch/kocevski/362976/cmap_HighResolution_676857601_677462401_4FGL_J1637.7+7326_weekly_bin724.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.448 yref=73.4413 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.94
user 0.71
sys 0.23

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/362976/ft1_filtered_4FGL_J1637.7+7326_weekly_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/362976/ft2_4FGL_J1637.7+7326_weekly_bin724.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/362976/Model_4FGL_J1637.7+7326_weekly_bin724.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/362976/ft1_filtered_4FGL_J1637.7+7326_weekly_bin724.fits.....................!
real 692.95
user 688.74
sys 2.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/362976/ft1_filtered_4FGL_J1637.7+7326_weekly_bin724.fits', '/scratch/kocevski/362976/ft2_4FGL_J1637.7+7326_weekly_bin724.fits', expMap='/scratch/kocevski/362976/expmap_676857601_677462401_4FGL_J1637.7+7326_weekly_bin724.fits', expCube='/scratch/kocevski/362976/ltcube_676857601_677462401_4FGL_J1637.7+7326_weekly_bin724.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/362976/Model_4FGL_J1637.7+7326_weekly_bin724.xml', optimizer='MINUIT')

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

4FGL J1637.7+7326
   Spectrum: PowerLaw
346    Prefactor:  4.118e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-15)
347        Index:  1.877e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
348        Scale:  4.483e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/362976/ft1_filtered_4FGL_J1637.7+7326_weekly_bin724.fits
Spacecraft file(s): /scratch/kocevski/362976/ft2_4FGL_J1637.7+7326_weekly_bin724.fits
Exposure map: /scratch/kocevski/362976/expmap_676857601_677462401_4FGL_J1637.7+7326_weekly_bin724.fits
Exposure cube: /scratch/kocevski/362976/ltcube_676857601_677462401_4FGL_J1637.7+7326_weekly_bin724.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/362976/Model_4FGL_J1637.7+7326_weekly_bin724.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 40566.6429276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3938       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.903       1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.902       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0067       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1995       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.1605       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .40961E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    4.7673       1.0000         .10000E-03   10000.    
    14 'norm      '    .55235E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22662       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.7308       1.0000         .10000E-03   10000.    
    19 'norm      '    2.9532       1.0000         .10000E-03   10000.    
    20 'norm      '    7.7516       1.0000         .10000E-03   10000.    
    21 'norm      '    4.0808       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.3267       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.4468       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.5420       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .90766       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0527       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+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=   40566.48     FROM MIGRAD    STATUS=CONVERGED   1230 CALLS     3616 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0977        .18142E-02** at limit **
   2  Prefactor     .10000E-03    4.3145        .18142E-02** at limit **
   3  Prefactor     .10000E-03    13.350        .18142E-02** at limit **
   4  Prefactor     1.3848        12.416        .36790E-03    .15822E-04
   5  Prefactor     15.903        20.487        .10044E-03    .24450E-04
   6  Prefactor     25.900        22.526        .78711E-04   -.16177E-04
   7  Prefactor     2.0063        5.3826        .14615E-02   -.89863E-04
   8  Prefactor     6.1984        6.2345        .16123E-03   -.95897E-05
   9  Prefactor     .10000E-03    11.014        .18142E-02** at limit **
  10  norm          3.1600        4.2994        .22799E-03   -.27925E-04
  11  Prefactor     .10000E-03    11.582        .18142E-02** at limit **
  12  Prefactor     .28612E-01    4.8599        .13521        .28626E-03
  13  norm          4.7673        3.3924        .18427E-03    .18509E-03
  14  norm          .55250E-01    .14474        .11741E-03    .93035E-03
  15  Prefactor     .10000E-03    .68538        .16208E-02** at limit **
  16  Prefactor     .22730        .69687        .27955E-03    .60514E-04
  17  Prefactor     .10000E-03    2.3848        .36285E-03** at limit **
  18  Prefactor     9.7268        9.5490        .12846E-03   -.25488E-04
  19  norm          2.9531        .98694        .11024E-03    .26731E-03
  20  norm          7.7516        .54537        .36991E-04   -.29996E-03
  21  norm          4.0807        1.7725        .16391E-03    .17035E-03
  22  Prefactor     7.3265        8.2156        .14818E-03   -.18414E-04
  23  Prefactor     .10000E-03    14.957        .18142E-02** at limit **
  24  Prefactor     3.4465        2.3790        .21785E-03   -.10562E-03
  25  Prefactor     3.5420        6.1154        .21477E-03    .18209E-04
  26  Prefactor     .10000E-03    38.270        .18142E-02** at limit **
  27  Normalizat    .90763        .87775E-01    .29176E-03    .11503E-03
  28  Prefactor     1.0528        .64370E-01    .20715E-03    .12118E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.38476
  Prefactor  = 15.9032
  Prefactor  = 25.8999
  Prefactor  = 2.00628
  Prefactor  = 6.19838
  Prefactor  = 0.0001
  norm       = 3.15997
  Prefactor  = 0.0001
  Prefactor  = 0.0286118
  norm       = 4.76735
  norm       = 0.0552503
  Prefactor  = 0.0001
  Prefactor  = 0.227299
  Prefactor  = 0.0001
  Prefactor  = 9.72684
  norm       = 2.95314
  norm       = 7.75157
  norm       = 4.08073
  Prefactor  = 7.32648
  Prefactor  = 0.0001
  Prefactor  = 3.44652
  Prefactor  = 3.54199
  Prefactor  = 0.0001
  Normalizat = 0.90763
  Prefactor  = 1.05277
 **********
 **   18 **HESSE 
 **********

 FCN=   40566.48     FROM HESSE     STATUS=OK           503 CALLS     4119 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0979        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.3175        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.352        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3848        12.412        .14716E-04   -1.5473    
   5  Prefactor     15.903        20.482        .40174E-05   -1.4910    
   6  Prefactor     25.900        22.543        .31485E-05   -1.4690    
   7  Prefactor     2.0063        5.3756        .58458E-04   -1.5425    
   8  Prefactor     6.1984        6.2318        .64492E-05   -1.5210    
   9  Prefactor     .10000E-03    11.015        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.1600        4.2993        .91194E-05   -1.5352    
  11  Prefactor     .10000E-03    11.583        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .28612E-01    4.8201        .13609       -1.5674    
  13  norm          4.7673        3.3922        .73709E-05   -1.5271    
  14  norm          .55250E-01    .14470        .46963E-05   -1.5661    
  15  Prefactor     .10000E-03    .68556        .32417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .22730        .69634        .11182E-04   -1.5613    
  17  Prefactor     .10000E-03    2.3849        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.7268        9.5457        .51385E-05   -1.5084    
  19  norm          2.9531        .98688        .44096E-05   -1.5364    
  20  norm          7.7516        .54536        .14796E-05   -1.5151    
  21  norm          4.0807        1.7721        .65564E-05   -1.5304    
  22  Prefactor     7.3265        8.2167        .59271E-05   -1.5167    
  23  Prefactor     .10000E-03    14.957        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.4465        2.3781        .87140E-05   -1.5337    
  25  Prefactor     3.5420        6.1137        .85909E-05   -1.5332    
  26  Prefactor     .10000E-03    38.287        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .90763        .87785E-01    .11671E-04   -.96193    
  28  Prefactor     1.0528        .64424E-01    .82859E-05   -.90991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26121e-10
Minuit parameter uncertainties:
  1  6.9825e-07
  2  6.21165e-07
  3  5.22269e-05
  4  8.29362
  5  20.491
  6  22.5508
  7  5.37686
  8  6.23243
  9  1.0472e-05
  10  4.29971
  11  2.53332e-06
  12  0.74149
  13  3.39234
  14  0.144698
  15  3.43364e-06
  16  0.696363
  17  1.35381e-05
  18  9.54717
  19  0.986881
  20  0.545359
  21  1.77216
  22  8.21799
  23  1.26248e-05
  24  2.37812
  25  6.11479
  26  6.50327e-05
  27  0.0877992
  28  0.0644283
Done.

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

Extracting fit parameters...

4FGL J1637.7+7326
   Spectrum: PowerLaw
346    Prefactor:  1.000e-04  2.533e-06  1.000e-04  1.000e+04 ( 1.000e-15)
347        Index:  1.877e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
348        Scale:  4.483e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  1.053e+00  6.443e-02  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  9.076e-01  8.780e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 249.448 73.441
Photon Flux Upper Limit: 8.79e-09 ph cm-2 s-1
Energy Flux Upper Limit: 6.52e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/362976/likelihoodResults_676857601_677462401_4FGL_J1637.7+7326_weekly_bin724.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) = 40566.4828417
delta logL = -0.000411474495195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 40566.4824301
delta logL = 9.05929482542e-08

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 'Index     '    1.8534       1.0000          .0000       10.000    
     3 'Normalizat'    .90763       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0528       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+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=   40566.48     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      246 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10081E-03    74.220        .18142E-02** at limit **
   2  Index         1.8127        5.9006        .50000        .13117E-04
   3  Normalizat    .90763        .46866E-02    .29176E-03    .50499E-04
   4  Prefactor     1.0528        .35791E-02    .20715E-03    .94397E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100806
  Index      = 1.81267
  Normalizat = 0.90763
  Prefactor  = 1.05277
 **********
 **   18 **HESSE 
 **********

 FCN=   40566.48     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10081E-03    344.21        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8127        8.9549        .50000       -.69120    
   3  Normalizat    .90763        .10390E-01    .11671E-04   -.96193    
   4  Prefactor     1.0528        .79344E-02    .82859E-05   -.90991    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1039e-08
Minuit parameter uncertainties:
  1  0.0335051
  2  425.692
  3  0.0103901
  4  0.00793444
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362976': 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) = 40566.48243
delta logL = 2.03115632758e-07

Extracting fit parameters...

4FGL J1637.7+7326
   Spectrum: PowerLaw
346    Prefactor:  1.008e-04  3.351e-02  1.000e-04  1.000e+04 ( 1.000e-15)
347        Index:  1.813e+00  4.257e+02  0.000e+00  1.000e+01 (-1.000e+00)
348        Scale:  4.483e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  1.053e+00  7.934e-03  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  9.076e-01  1.039e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 249.448 73.441

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/362976/cmap_HighResolution_676857601_677462401_4FGL_J1637.7+7326_weekly_bin724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.52e-04', job_status='DONE', photon_flux_upper_limit='8.79e-09', time_completed='2022-06-21 03:09:48.299060', job_id='362976', GAL2='1.05', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1655806188.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='724' AND source_name='4FGL J1637.7+7326' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 21 03:09:48 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 362975: <4FGL_J1637.7+7326_weekly_bin724> in cluster <slac> Done

Job <4FGL_J1637.7+7326_weekly_bin724> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Jun 21 00:06:44 2022
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jun 21 01:00:58 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jun 21 01:00:58 2022
Terminated at Tue Jun 21 02:11:51 2022
Results reported at Tue Jun 21 02:11:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1637.7+7326_weekly_bin724 249.448 73.4413 676857601 677462401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1637.7+7326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   4158.00 sec.
    Max Memory :                                 622 MB
    Average Memory :                             370.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   4253 sec.
    Turnaround time :                            7507 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 362976: <4FGL_J1637.7+7326_weekly_bin724> in cluster <slac> Done

Job <4FGL_J1637.7+7326_weekly_bin724> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Jun 21 00:06:44 2022
Job was executed on host(s) <bullet0164>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jun 21 01:00:58 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jun 21 01:00:58 2022
Terminated at Tue Jun 21 03:09:49 2022
Results reported at Tue Jun 21 03:09:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1637.7+7326_weekly_bin724 249.448 73.4413 676857601 677462401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1637.7+7326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   7626.00 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             379.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   7731 sec.
    Turnaround time :                            10985 sec.

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

