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


Performing analysis on: 4FGL_J1637.7+7326_daily_bin768
RA = 249.448, Dec = 73.4413
tmin = 438393601, tmax = 438652801
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='875387', job_status='RUN', time_executed='2021-09-15 08:45:33.377187', time_epoch_executed='1631720733.38' WHERE source_name='4FGL J1637.7+7326' and cadence='daily' and bin_id='768'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875387

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875387/ft1_4FGL_J1637.7+7326_daily_bin768.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875387/ft2_4FGL_J1637.7+7326_daily_bin768.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875387/ft1_4FGL_J1637.7+7326_daily_bin768.fits outfile=/scratch/kocevski/875387/ft1_filteredMKT_4FGL_J1637.7+7326_daily_bin768.fits ra=249.448 dec=73.4413 rad=12.0 tmin=438393601.0 tmax=438652801.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 6.35
user 6.09
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/875387/ft2_4FGL_J1637.7+7326_daily_bin768.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/875387/ft1_filteredMKT_4FGL_J1637.7+7326_daily_bin768.fits evtable="EVENTS" outfile="/scratch/kocevski/875387/ft1_filtered_4FGL_J1637.7+7326_daily_bin768.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/875387/ft1_filtered_4FGL_J1637.7+7326_daily_bin768.fits" evtable="EVENTS" scfile=/scratch/kocevski/875387/ft2_4FGL_J1637.7+7326_daily_bin768.fits sctable="SC_DATA" outfile=/scratch/kocevski/875387/ltcube_438393601_438652801_4FGL_J1637.7+7326_daily_bin768.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/875387/ft2_4FGL_J1637.7+7326_daily_bin768.fits
.....................!
real 14.19
user 13.76
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875387/ft1_filtered_4FGL_J1637.7+7326_daily_bin768.fits evtable="EVENTS" scfile=/scratch/kocevski/875387/ft2_4FGL_J1637.7+7326_daily_bin768.fits sctable="SC_DATA" expcube=/scratch/kocevski/875387/ltcube_438393601_438652801_4FGL_J1637.7+7326_daily_bin768.fits outfile=/scratch/kocevski/875387/expmap_438393601_438652801_4FGL_J1637.7+7326_daily_bin768.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/875387/ltcube_438393601_438652801_4FGL_J1637.7+7326_daily_bin768.fits
.....................!
real 191.54
user 186.14
sys 4.92

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/875387/ft1_filtered_4FGL_J1637.7+7326_daily_bin768.fits scfile=/scratch/kocevski/875387/ft2_4FGL_J1637.7+7326_daily_bin768.fits outfile=/scratch/kocevski/875387/cmap_438393601_438652801_4FGL_J1637.7+7326_daily_bin768.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875387/ft1_filtered_4FGL_J1637.7+7326_daily_bin768.fits scfile=/scratch/kocevski/875387/ft2_4FGL_J1637.7+7326_daily_bin768.fits outfile=/scratch/kocevski/875387/cmap_HighResolution_438393601_438652801_4FGL_J1637.7+7326_daily_bin768.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/875387/ft1_filtered_4FGL_J1637.7+7326_daily_bin768.fits evtable="EVENTS" scfile=/scratch/kocevski/875387/ft2_4FGL_J1637.7+7326_daily_bin768.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/875387/Model_4FGL_J1637.7+7326_daily_bin768.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/875387/ft1_filtered_4FGL_J1637.7+7326_daily_bin768.fits.....................!
real 48.98
user 47.63
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/875387/ft1_filtered_4FGL_J1637.7+7326_daily_bin768.fits', '/scratch/kocevski/875387/ft2_4FGL_J1637.7+7326_daily_bin768.fits', expMap='/scratch/kocevski/875387/expmap_438393601_438652801_4FGL_J1637.7+7326_daily_bin768.fits', expCube='/scratch/kocevski/875387/ltcube_438393601_438652801_4FGL_J1637.7+7326_daily_bin768.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/875387/Model_4FGL_J1637.7+7326_daily_bin768.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/875387/ft1_filtered_4FGL_J1637.7+7326_daily_bin768.fits
Spacecraft file(s): /scratch/kocevski/875387/ft2_4FGL_J1637.7+7326_daily_bin768.fits
Exposure map: /scratch/kocevski/875387/expmap_438393601_438652801_4FGL_J1637.7+7326_daily_bin768.fits
Exposure cube: /scratch/kocevski/875387/ltcube_438393601_438652801_4FGL_J1637.7+7326_daily_bin768.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/875387/Model_4FGL_J1637.7+7326_daily_bin768.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) = 3954.55265729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1677       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.095       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.831       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .26965E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    48.781       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10599E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    17.860       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1334       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.7126       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5642       1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.608       1.0000         .10000E-03   10000.    
    19 'norm      '    3.9990       1.0000         .10000E-03   10000.    
    20 'norm      '    4.4801       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10978E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.1915       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    184.27       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .95473       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .75543       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.

 FCN=   3954.542     FROM MIGRAD    STATUS=CONVERGED    666 CALLS     3476 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.500       -.23187E-07** at limit **
   2  Prefactor     2.1722        66.534        .75434E-06    .47818E-06
   3  Prefactor     .10000E-03    47.212       -.66739E-06** at limit **
   4  Prefactor     27.088        65.462        .70007E-07   -.85041E-05
   5  Prefactor     11.778        119.46       -.13989E-05   -.36754E-04
   6  Prefactor     .10000E-03    23.367       -.30032E-06** at limit **
   7  Prefactor     .10000E-03    9.5985        .13740E-06** at limit **
   8  Prefactor     .10000E-03    118.92        .20311E-05** at limit **
   9  Prefactor     .10001E-03    890.03       -.18419E-05** at limit **
  10  norm          48.772        36.902        .48536E-07   -.19597E-04
  11  Prefactor     .10000E-03    141.77       -.52310E-06** at limit **
  12  Prefactor     .10000E-03    74.809        .11450E-05** at limit **
  13  norm          17.861        12.411       -.57162E-06   -.18468E-04
  14  norm          1.1331        1.3718       -.25331E-06   -.51847E-03
  15  Prefactor     6.7144        13.614        .51763E-05   -.61972E-04
  16  Prefactor     .10000E-03    1.6694       -.38257E-07** at limit **
  17  Prefactor     2.5673        51.981       -.63759E-06   -.22515E-04
  18  Prefactor     35.602        34.827        .76935E-07   -.87134E-05
  19  norm          3.9988        3.5878        .54676E-07   -.16631E-04
  20  norm          4.4803        1.4839        .19935E-07   -.12209E-04
  21  norm          .10000E-03    3.2691        .71840E-07** at limit **
  22  Prefactor     .10000E-03    29.273        .39690E-06** at limit **
  23  Prefactor     .10000E-03    140.17       -.40176E-06** at limit **
  24  Prefactor     9.1908        8.1608        .15012E-07   -.19495E-04
  25  Prefactor     .10000E-03    16.543        .12408E-06** at limit **
  26  Prefactor     184.28        147.14        .44916E-06    .11540E-04
  27  Normalizat    .95447        .24477       -.68659E-07   -.24581E-04
  28  Prefactor     .75560        .16516       -.93704E-06   -.13238E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.17221
  Prefactor  = 0.000100001
  Prefactor  = 27.0882
  Prefactor  = 11.7776
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 48.7717
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 17.8609
  norm       = 1.13313
  Prefactor  = 6.71443
  Prefactor  = 0.0001
  Prefactor  = 2.56726
  Prefactor  = 35.6017
  norm       = 3.99885
  norm       = 4.48029
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.19081
  Prefactor  = 0.0001
  Prefactor  = 184.283
  Normalizat = 0.954475
  Prefactor  = 0.7556
 **********
 **   18 **HESSE 
 **********

 FCN=   3954.542     FROM HESSE     STATUS=OK           515 CALLS     3991 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.1722        66.814        .27972E-03   -1.5413    
   3  Prefactor     .10000E-03    47.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.088        65.848        .76963E-04   -1.4667    
   5  Prefactor     11.778        121.02        .11646E-03   -1.5021    
   6  Prefactor     .10000E-03    23.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.6178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    123.37        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    907.63        .21434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          48.772        36.901        .57414E-04   -1.4310    
  11  Prefactor     .10000E-03    141.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    75.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          17.861        12.422        .94770E-04   -1.4862    
  14  norm          1.1331        1.3037        .64271E-04   -1.5495    
  15  Prefactor     6.7144        13.731        .77437E-03   -1.5190    
  16  Prefactor     .10000E-03    1.6733        .79290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.5673        49.155        .25493E-03   -1.5388    
  18  Prefactor     35.602        34.833        .67159E-04   -1.4514    
  19  norm          3.9988        3.5790        .10797E-03   -1.5308    
  20  norm          4.4803        1.4849        .41734E-04   -1.5285    
  21  norm          .10000E-03    3.2845        .11094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    29.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    140.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.1908        8.1581        .13220E-03   -1.5102    
  25  Prefactor     .10000E-03    16.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     184.28        147.20        .14871E-03   -1.2985    
  27  Normalizat    .95447        .27998        .27412E-03   -.94572    
  28  Prefactor     .75560        .18832        .21809E-03   -1.0139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73957e-10
Minuit parameter uncertainties:
  1  1.06753e-06
  2  24.1233
  3  0.000394167
  4  66.0252
  5  75.7064
  6  6.6948e-05
  7  8.6033e-07
  8  0.000385172
  9  0.00676058
  10  36.9188
  11  0.000673236
  12  0.000652967
  13  12.4233
  14  1.30374
  15  13.7371
  16  1.06165e-06
  17  22.4882
  18  34.8531
  19  3.57922
  20  1.4849
  21  1.66426e-07
  22  0.000161107
  23  0.000564033
  24  8.15904
  25  1.10119e-05
  26  147.5
  27  0.280407
  28  0.18848
Done.

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

Extracting fit parameters...

4FGL J1637.7+7326
   Spectrum: PowerLaw
346    Prefactor:  1.000e-04  6.732e-04  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:  7.556e-01  1.885e-01  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.545e-01  2.804e-01  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.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/875387/likelihoodResults_438393601_438652801_4FGL_J1637.7+7326_daily_bin768.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) = 3954.54218451
delta logL = -3.34504698003e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3954.54215148
delta logL = -4.16612238041e-07

Fit tolerance = 1e-08

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

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

 FCN=   3954.542     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      229 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6269.7        .90712E-02** at limit **
   2  Index         1.8337        8.7784        .50000        .34617E-06
   3  Normalizat    .95447        .26929E-01    .45594E-01   -.14148E-04
   4  Prefactor     .75560        .19380E-01    .43137E-01    .28733E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.83369
  Normalizat = 0.954474
  Prefactor  = 0.7556
 **********
 **   18 **HESSE 
 **********

 FCN=   3954.542     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      262 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8254.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8337        5.0204        .50000       -.68576    
   3  Normalizat    .95447        .50565E-01    .27412E-03   -.94572    
   4  Prefactor     .75560        .36391E-01    .21809E-03   -1.0139    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.03986e-10
Minuit parameter uncertainties:
  1  0.00582218
  2  31.1227
  3  0.0505677
  4  0.036392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875387': 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) = 3954.54215106
delta logL = 3.69482222595e-09

Extracting fit parameters...

4FGL J1637.7+7326
   Spectrum: PowerLaw
346    Prefactor:  1.000e-04  5.822e-03  1.000e-04  1.000e+04 ( 1.000e-15)
347        Index:  1.834e+00  3.112e+01  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:  7.556e-01  3.639e-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.545e-01  5.057e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/875387/cmap_HighResolution_438393601_438652801_4FGL_J1637.7+7326_daily_bin768.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.32e-03', job_status='DONE', photon_flux_upper_limit='8.52e-08', time_completed='2021-09-15 08:56:53.972709', job_id='875387', GAL2='0.76', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1631721413.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='3.69e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='768' AND source_name='4FGL J1637.7+7326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 08:56:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 875387: <4FGL_J1637.7+7326_daily_bin768> in cluster <slac> Done

Job <4FGL_J1637.7+7326_daily_bin768> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 15 08:45:13 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 08:45:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 15 08:45:16 2021
Terminated at Wed Sep 15 08:56:54 2021
Results reported at Wed Sep 15 08:56:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1637.7+7326_daily_bin768 249.448 73.4413 438393601 438652801 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 :                                   679.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            701 sec.

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

