/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 3 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 = 7486
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1637.7+7326_daily_bin70
RA = 249.448, Dec = 73.4413
tmin = 257472001, tmax = 257731201
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='728190', job_status='RUN', time_executed='2021-09-14 23:56:55.626098', time_epoch_executed='1631689015.63' WHERE source_name='4FGL J1637.7+7326' and cadence='daily' and bin_id='70'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/728190

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/728190/ft1_4FGL_J1637.7+7326_daily_bin70.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/728190/ft2_4FGL_J1637.7+7326_daily_bin70.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/728190/ft1_4FGL_J1637.7+7326_daily_bin70.fits outfile=/scratch/kocevski/728190/ft1_filteredMKT_4FGL_J1637.7+7326_daily_bin70.fits ra=249.448 dec=73.4413 rad=12.0 tmin=257472001.0 tmax=257731201.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.04
user 1.83
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/728190/ft1_filtered_4FGL_J1637.7+7326_daily_bin70.fits" evtable="EVENTS" scfile=/scratch/kocevski/728190/ft2_4FGL_J1637.7+7326_daily_bin70.fits sctable="SC_DATA" outfile=/scratch/kocevski/728190/ltcube_257472001_257731201_4FGL_J1637.7+7326_daily_bin70.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/728190/ft2_4FGL_J1637.7+7326_daily_bin70.fits
.....................!
real 16.37
user 15.96
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/728190/ft1_filtered_4FGL_J1637.7+7326_daily_bin70.fits evtable="EVENTS" scfile=/scratch/kocevski/728190/ft2_4FGL_J1637.7+7326_daily_bin70.fits sctable="SC_DATA" expcube=/scratch/kocevski/728190/ltcube_257472001_257731201_4FGL_J1637.7+7326_daily_bin70.fits outfile=/scratch/kocevski/728190/expmap_257472001_257731201_4FGL_J1637.7+7326_daily_bin70.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/728190/ltcube_257472001_257731201_4FGL_J1637.7+7326_daily_bin70.fits
.....................!
real 192.78
user 187.12
sys 5.18

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/728190/ft1_filtered_4FGL_J1637.7+7326_daily_bin70.fits scfile=/scratch/kocevski/728190/ft2_4FGL_J1637.7+7326_daily_bin70.fits outfile=/scratch/kocevski/728190/cmap_257472001_257731201_4FGL_J1637.7+7326_daily_bin70.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.63
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/728190/ft1_filtered_4FGL_J1637.7+7326_daily_bin70.fits scfile=/scratch/kocevski/728190/ft2_4FGL_J1637.7+7326_daily_bin70.fits outfile=/scratch/kocevski/728190/cmap_HighResolution_257472001_257731201_4FGL_J1637.7+7326_daily_bin70.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/728190/ft1_filtered_4FGL_J1637.7+7326_daily_bin70.fits evtable="EVENTS" scfile=/scratch/kocevski/728190/ft2_4FGL_J1637.7+7326_daily_bin70.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/728190/Model_4FGL_J1637.7+7326_daily_bin70.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/728190/ft1_filtered_4FGL_J1637.7+7326_daily_bin70.fits.....................!
real 68.87
user 66.81
sys 1.76

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.318       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    45.944       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.911       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    178.16       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.5746       1.0000         .10000E-03   10000.    
    14 'norm      '    .14846       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.190       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13527       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.070       1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.429       1.0000         .10000E-03   10000.    
    19 'norm      '    3.8080       1.0000         .10000E-03   10000.    
    20 'norm      '    .50616       1.0000         .10000E-03   10000.    
    21 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.5168       1.0000         .10000E-03   10000.    
    25 'Prefactor '    52.375       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2872       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .63640       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=   5917.768     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     3593 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9727        .37424E-07** at limit **
   2  Prefactor     23.312        19.041        .11769E-06   -.36039E-06
   3  Prefactor     .10000E-03    30.138       -.38562E-05** at limit **
   4  Prefactor     45.930        33.915        .52644E-06    .80916E-05
   5  Prefactor     .10000E-03    14.265       -.48895E-06** at limit **
   6  Prefactor     35.867        72.941        .88463E-05    .10029E-03
   7  Prefactor     .10000E-03    7.6638        .84236E-07** at limit **
   8  Prefactor     .10000E-03    13.116        .22854E-06** at limit **
   9  Prefactor     .10000E-03    183.57        .60486E-05** at limit **
  10  norm          .10000E-03    5.4038       -.12616E-07** at limit **
  11  Prefactor     178.16        146.53        .76901E-07   -.11585E-04
  12  Prefactor     .10000E-03    33.998        .33502E-05** at limit **
  13  norm          3.5622        22.023        .12357E-05   -.18790E-04
  14  norm          .14778        .60313        .19179E-06   -.32504E-03
  15  Prefactor     25.201        17.631       -.38891E-06   -.23248E-03
  16  Prefactor     .12917        1.6766       -.29954E-07   -.89976E-04
  17  Prefactor     21.075        15.471       -.38446E-06   -.12893E-03
  18  Prefactor     29.451        30.744       -.10726E-06   -.53047E-04
  19  norm          3.8080        2.5271       -.13971E-06   -.14093E-03
  20  norm          .50598        .59960        .72327E-07    .10732E-03
  21  norm          .10000E-03    4.3013        .26224E-06** at limit **
  22  Prefactor     .10000E-03    23.037        .10611E-05** at limit **
  23  Prefactor     .10001E-03    93.425       -.80884E-05** at limit **
  24  Prefactor     2.5176        10.424        .96292E-05   -.23098E-03
  25  Prefactor     52.365        38.956       -.33728E-05    .19933E-04
  26  Prefactor     .10000E-03    77.144        .42372E-05** at limit **
  27  Normalizat    1.2876        .19729       -.52433E-06   -.72795E-04
  28  Prefactor     .63621        .12652       -.11163E-05   -.23743E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 23.3123
  Prefactor  = 0.000100001
  Prefactor  = 45.9302
  Prefactor  = 0.0001
  Prefactor  = 35.8668
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 178.158
  Prefactor  = 0.000100001
  norm       = 3.56223
  norm       = 0.147778
  Prefactor  = 25.2013
  Prefactor  = 0.129169
  Prefactor  = 21.0753
  Prefactor  = 29.4509
  norm       = 3.80799
  norm       = 0.505985
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 2.51761
  Prefactor  = 52.3651
  Prefactor  = 0.000100002
  Normalizat = 1.28756
  Prefactor  = 0.636208
 **********
 **   18 **HESSE 
 **********

 FCN=   5917.768     FROM HESSE     STATUS=OK           519 CALLS     4112 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.312        19.080        .82951E-04   -1.4742    
   3  Prefactor     .10000E-03    30.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     45.930        34.125        .59152E-04   -1.4351    
   5  Prefactor     .10000E-03    14.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     35.867        73.369        .66876E-04   -1.4509    
   7  Prefactor     .10000E-03    7.6730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    184.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.4046        .17465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     178.16        146.51        .15119E-03   -1.3030    
  12  Prefactor     .10000E-03    34.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.5622        21.704        .21375E-03   -1.5330    
  14  norm          .14778        .83680        .10586E-02   -1.5631    
  15  Prefactor     25.201        17.098        .79814E-04   -1.4704    
  16  Prefactor     .12917        7.3659        .17652E-02   -1.5636    
  17  Prefactor     21.075        15.404        .87259E-04   -1.4789    
  18  Prefactor     29.451        30.576        .73854E-04   -1.4622    
  19  norm          3.8080        2.5255        .96307E-04   -1.5318    
  20  norm          .50598        .56378        .60762E-03   -1.5566    
  21  norm          .10000E-03    4.4328        .31139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    23.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    93.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.5176        10.722        .12876E-02   -1.5391    
  25  Prefactor     52.365        39.252        .55419E-04   -1.4259    
  26  Prefactor     .10000E-03    77.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2876        .22788        .24761E-03   -.83938    
  28  Prefactor     .63621        .14481        .23387E-03   -1.0608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97471e-08
Minuit parameter uncertainties:
  1  4.22117e-06
  2  19.085
  3  0.000408654
  4  34.1391
  5  6.19158e-05
  6  73.5546
  7  1.24426e-05
  8  2.13906e-05
  9  0.00174517
  10  1.75884e-06
  11  146.814
  12  0.000391229
  13  17.5949
  14  0.703087
  15  17.1011
  16  1.95034
  17  15.4067
  18  30.5924
  19  2.52553
  20  0.563783
  21  7.2488e-06
  22  0.000105458
  23  0.00154093
  24  10.3943
  25  39.2714
  26  0.000746672
  27  0.228061
  28  0.144891
Done.

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

Extracting fit parameters...

4FGL J1637.7+7326
   Spectrum: PowerLaw
346    Prefactor:  1.782e+02  1.468e+02  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:  6.362e-01  1.449e-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:  1.288e+00  2.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.69
Ra Dec: 249.448 73.441
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 2.55e-08 +/- 2.10e-08
Energy Flux (Fixed Index): 2.44e-05 +/- 2.01e-05

TS (Fixed Index): 3.69
Ra Dec: 249.448 73.441
Photon Flux Upper Limit: 8.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/728190/likelihoodResults_257472001_257731201_4FGL_J1637.7+7326_daily_bin70.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5917.76010568
delta logL = 0.00836810387682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5917.75098056
delta logL = 0.0174932253649

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    206.22       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7337       1.0000          .0000       10.000    
     3 'Normalizat'    1.2926       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63493       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=   5917.751     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      283 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     206.22        231.41        .14073E-03   -.83529E-04
   2  Index         1.7336        .78277        .93422E-02   -.63957E-04
   3  Normalizat    1.2927        .20726        .24719E-03    .52890E-05
   4  Prefactor     .63485        .14209        .23412E-03    .32049E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 206.218
  Index      = 1.73365
  Normalizat = 1.29272
  Prefactor  = 0.634847
 **********
 **   18 **HESSE 
 **********

 FCN=   5917.751     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     206.22        218.14        .28146E-04   -1.2826    
   2  Index         1.7336        .73770        .37369E-03   -.71190    
   3  Normalizat    1.2927        .20704        .98878E-05   -.83784    
   4  Prefactor     .63485        .14214        .93648E-05   -1.0614    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63891e-10
Minuit parameter uncertainties:
  1  219.009
  2  0.742451
  3  0.207171
  4  0.142224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/728190': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5917.7509804
delta logL = 0.0174933866647

Extracting fit parameters...

4FGL J1637.7+7326
   Spectrum: PowerLaw
346    Prefactor:  2.062e+02  2.190e+02  1.000e-04  1.000e+04 ( 1.000e-15)
347        Index:  1.734e+00  7.425e-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:  6.348e-01  1.422e-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:  1.293e+00  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.72
Ra Dec: 249.448 73.441
Photon Index (Free Index): 1.73 +/- 0.74
Photon Flux (Free Index): 2.04e-08 +/- 2.99e-08
Energy Flux (Free Index): 2.99e-05 +/- 4.22e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/728190/cmap_HighResolution_257472001_257731201_4FGL_J1637.7+7326_daily_bin70.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.00e-03', comment='SUCCESS', photon_flux='2.55e-08', energy_flux2='2.99e-05', photon_flux_error='2.10e-08', dlogl='1.75e-02', energy_flux='2.44e-05', photon_flux2='2.04e-08', job_status='DONE', time_completed='2021-09-15 00:11:25.647613', photon_index_error2='0.74', photon_index2='1.73', ts='3.69', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', photon_flux_upper_limit='8.09e-08', energy_flux_error2='4.22e-05', EG='1.29', time_epoch_completed='1631689885.65', return_code='0', job_id='728190', GAL2='0.63', EG2='1.29', return_code2='0', energy_flux_error='2.01e-05', photon_flux_error2='2.99e-08', ts2='3.72', photon_index='1.88' WHERE bin_id='70' AND source_name='4FGL J1637.7+7326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 00:11:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 728190: <4FGL_J1637.7+7326_daily_bin70> in cluster <slac> Done

Job <4FGL_J1637.7+7326_daily_bin70> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 14 23:55:31 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 23:56:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 23:56:44 2021
Terminated at Wed Sep 15 00:11:47 2021
Results reported at Wed Sep 15 00:11:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1637.7+7326_daily_bin70 249.448 73.4413 257472001 257731201 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 :                                   859.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             329.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            976 sec.

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

