/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 2 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 = 7473
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1653.8+3945_daily_bin269
RA = 253.474, Dec = 39.7595
tmin = 309052801, tmax = 309312001
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='131255', job_status='RUN', time_executed='2021-09-16 00:06:30.654416', time_epoch_executed='1631775990.65' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='269'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/131255

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/131255/ft1_4FGL_J1653.8+3945_daily_bin269.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/131255/ft2_4FGL_J1653.8+3945_daily_bin269.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/131255/ft1_4FGL_J1653.8+3945_daily_bin269.fits outfile=/scratch/kocevski/131255/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin269.fits ra=253.474 dec=39.7595 rad=12.0 tmin=309052801.0 tmax=309312001.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.73
user 2.50
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/131255/ft2_4FGL_J1653.8+3945_daily_bin269.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/131255/ft2_4FGL_J1653.8+3945_daily_bin269.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/131255/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin269.fits evtable="EVENTS" outfile="/scratch/kocevski/131255/ft1_filtered_4FGL_J1653.8+3945_daily_bin269.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.44
user 0.28
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/131255/ft1_filtered_4FGL_J1653.8+3945_daily_bin269.fits" evtable="EVENTS" scfile=/scratch/kocevski/131255/ft2_4FGL_J1653.8+3945_daily_bin269.fits sctable="SC_DATA" outfile=/scratch/kocevski/131255/ltcube_309052801_309312001_4FGL_J1653.8+3945_daily_bin269.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/131255/ft2_4FGL_J1653.8+3945_daily_bin269.fits
.....................!
real 12.04
user 11.68
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/131255/ft1_filtered_4FGL_J1653.8+3945_daily_bin269.fits evtable="EVENTS" scfile=/scratch/kocevski/131255/ft2_4FGL_J1653.8+3945_daily_bin269.fits sctable="SC_DATA" expcube=/scratch/kocevski/131255/ltcube_309052801_309312001_4FGL_J1653.8+3945_daily_bin269.fits outfile=/scratch/kocevski/131255/expmap_309052801_309312001_4FGL_J1653.8+3945_daily_bin269.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/131255/ltcube_309052801_309312001_4FGL_J1653.8+3945_daily_bin269.fits
.....................!
real 161.86
user 156.67
sys 4.75

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

Setting source of interest to:
4FGL J1653.8+3945 @ 253.474 39.7595

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/131255/ft1_filtered_4FGL_J1653.8+3945_daily_bin269.fits scfile=/scratch/kocevski/131255/ft2_4FGL_J1653.8+3945_daily_bin269.fits outfile=/scratch/kocevski/131255/cmap_309052801_309312001_4FGL_J1653.8+3945_daily_bin269.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=253.474 yref=39.7595 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.48
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/131255/ft1_filtered_4FGL_J1653.8+3945_daily_bin269.fits scfile=/scratch/kocevski/131255/ft2_4FGL_J1653.8+3945_daily_bin269.fits outfile=/scratch/kocevski/131255/cmap_HighResolution_309052801_309312001_4FGL_J1653.8+3945_daily_bin269.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=253.474 yref=39.7595 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.48
user 0.34
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/131255/ft1_filtered_4FGL_J1653.8+3945_daily_bin269.fits evtable="EVENTS" scfile=/scratch/kocevski/131255/ft2_4FGL_J1653.8+3945_daily_bin269.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/131255/Model_4FGL_J1653.8+3945_daily_bin269.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/131255/ft1_filtered_4FGL_J1653.8+3945_daily_bin269.fits.....................!
real 53.12
user 51.79
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/131255/ft1_filtered_4FGL_J1653.8+3945_daily_bin269.fits', '/scratch/kocevski/131255/ft2_4FGL_J1653.8+3945_daily_bin269.fits', expMap='/scratch/kocevski/131255/expmap_309052801_309312001_4FGL_J1653.8+3945_daily_bin269.fits', expCube='/scratch/kocevski/131255/ltcube_309052801_309312001_4FGL_J1653.8+3945_daily_bin269.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/131255/Model_4FGL_J1653.8+3945_daily_bin269.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1653.8+3945'

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  4.183e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.721e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
324         beta:  1.993e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/131255/ft1_filtered_4FGL_J1653.8+3945_daily_bin269.fits
Spacecraft file(s): /scratch/kocevski/131255/ft2_4FGL_J1653.8+3945_daily_bin269.fits
Exposure map: /scratch/kocevski/131255/expmap_309052801_309312001_4FGL_J1653.8+3945_daily_bin269.fits
Exposure cube: /scratch/kocevski/131255/ltcube_309052801_309312001_4FGL_J1653.8+3945_daily_bin269.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/131255/Model_4FGL_J1653.8+3945_daily_bin269.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) = 8071.68578119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3537       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.156       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8389       1.0000         .10000E-03   10000.    
     5 'norm      '    .72943       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2954       1.0000         .10000E-03   10000.    
     9 'norm      '    50.277       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1242       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .30175E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11210E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.0212       1.0000         .10000E-03   10000.    
    15 'norm      '    .55675       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.1182       1.0000         .10000E-03   10000.    
    18 'norm      '    .66615       1.0000         .10000E-03   10000.    
    19 'norm      '    3.9435       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .74379       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    50.973       1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.156       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11016E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1058       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .84355       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8071.627     FROM MIGRAD    STATUS=CONVERGED    671 CALLS     3369 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3540        3.0403        .95879E-07    .61220E-04
   2  Prefactor     .10000E-03    4.3851        .24460E-05** at limit **
   3  Prefactor     22.152        20.209       -.11957E-05   -.17295E-03
   4  Prefactor     2.8389        2.4859        .10329E-06   -.25704E-05
   5  norm          .72940        .18002        .18965E-07    .24961E-02
   6  norm          .10000E-03    3.7766       -.50038E-06** at limit **
   7  Prefactor     .10000E-03    19.210       -.13697E-04** at limit **
   8  Prefactor     7.2939        4.1835        .10976E-06   -.22464E-03
   9  norm          50.266        43.711       -.11023E-04   -.44015E-04
  10  Prefactor     3.1229        1.3218        .28015E-06   -.51281E-03
  11  Prefactor     .10000E-03    .44574        .19103E-06** at limit **
  12  Prefactor     .10000E-03    1.4603        .11860E-06** at limit **
  13  Prefactor     .10001E-03    1.1664        .35363E-07** at limit **
  14  norm          3.0209        1.7158        .53761E-07   -.10527E-03
  15  norm          .55652        .88964        .34202E-07   -.12490E-03
  16  Prefactor     .10000E-03    3.3184        .97372E-07** at limit **
  17  norm          5.1181        1.1152        .13440E-07   -.24603E-03
  18  norm          .66793        .74445        .61986E-07   -.83070E-03
  19  norm          3.9435        1.7784       -.10271E-06   -.15256E-03
  20  Prefactor     .10000E-03    38.494       -.69719E-05** at limit **
  21  norm          .74399        2.6454       -.25237E-06   -.12262E-03
  22  Prefactor     .10000E-03    22.768        .18372E-04** at limit **
  23  Prefactor     50.985        117.22        .15936E-04   -.55499E-06
  24  Prefactor     20.163        38.178        .10713E-04   -.19360E-05
  25  Prefactor     .10000E-03    10.092        .90478E-06** at limit **
  26  Normalizat    1.1058        .19396       -.19266E-06   -.73922E-04
  27  Prefactor     .84349        .14112       -.54453E-06   -.36691E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.35403
  Prefactor  = 0.0001
  Prefactor  = 22.1525
  Prefactor  = 2.8389
  norm       = 0.729402
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.29394
  norm       = 50.2659
  Prefactor  = 3.12293
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 3.02088
  norm       = 0.556524
  Prefactor  = 0.0001
  norm       = 5.11806
  norm       = 0.667931
  norm       = 3.94353
  Prefactor  = 0.0001
  norm       = 0.743993
  Prefactor  = 0.0001
  Prefactor  = 50.985
  Prefactor  = 20.163
  Prefactor  = 0.0001
  Normalizat = 1.10584
  Prefactor  = 0.843488
 **********
 **   18 **HESSE 
 **********

 FCN=   8071.627     FROM HESSE     STATUS=OK           496 CALLS     3865 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3540        3.0384        .14337E-03   -1.5342    
   2  Prefactor     .10000E-03    4.4082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.152        20.186        .85096E-04   -1.4766    
   4  Prefactor     2.8389        2.4869        .12713E-03   -1.5371    
   5  norm          .72940        .18035        .17351E-04   -1.5537    
   6  norm          .10000E-03    3.7763        .17051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.2939        4.1646        .65509E-03   -1.5168    
   9  norm          50.266        43.516        .56558E-04   -1.4289    
  10  Prefactor     3.1229        1.2580        .57053E-04   -1.5355    
  11  Prefactor     .10000E-03    .63494        .10769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.0124        .19770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    4.6204        .18457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.0209        1.7082        .85260E-04   -1.5360    
  15  norm          .55652        .75708        .95234E-03   -1.5559    
  16  Prefactor     .10000E-03    3.3402        .15965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.1181        1.1139        .42233E-04   -1.5255    
  18  norm          .66793        9.9000        .23863E-02   -1.5545    
  19  norm          3.9435        1.7761        .76331E-04   -1.5311    
  20  Prefactor     .10000E-03    38.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .74399        2.5878        .26551E-03   -1.5535    
  22  Prefactor     .10000E-03    22.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     50.985        117.27        .56172E-04   -1.4279    
  24  Prefactor     20.163        38.138        .89213E-04   -1.4810    
  25  Prefactor     .10000E-03    10.514        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1058        .23190        .28073E-03   -.89565    
  27  Prefactor     .84349        .16967        .24382E-03   -.98145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.49827e-09
Minuit parameter uncertainties:
  1  3.03858
  2  2.47148e-05
  3  20.1924
  4  2.48695
  5  0.180352
  6  3.81904e-06
  7  2.43576e-05
  8  4.16475
  9  43.5438
  10  1.25805
  11  1.74244e-05
  12  0.00011119
  13  0.000464037
  14  1.70821
  15  0.75709
  16  4.26965e-07
  17  1.1139
  18  5.1436
  19  1.77611
  20  2.96029e-05
  21  2.58817
  22  1.16067e-06
  23  117.809
  24  38.1841
  25  1.47797e-05
  26  0.232118
  27  0.169779
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  3.021e+00  1.708e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.721e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
324         beta:  1.993e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  8.435e-01  1.698e-01  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  1.106e+00  2.321e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.64
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 4.05e-08 +/- 2.29e-08
Energy Flux (Fixed Index): 5.83e-05 +/- 3.30e-05

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) = 8071.31484312
delta logL = 0.312139178134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8071.31337114
delta logL = 0.313611162454

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7899       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0493       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0849       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85097       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8071.313     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      259 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7905        23.780        .60899E-02    .31652E-03
   2  alpha         2.0498        3.5209        .29127        .65665E-04
   3  Normalizat    1.0846        .85102E-01    .63941E-01    .87095E-04
   4  Prefactor     .85122        .50362E-01    .44377E-01   -.85570E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.79054
  alpha      = 2.04978
  Normalizat = 1.0846
  Prefactor  = 0.851215
 **********
 **   18 **HESSE 
 **********

 FCN=   8071.313     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7905        1.6730        .74123E-04   -1.5374    
   2  alpha         2.0498        .43382        .99030E-02   -.18107    
   3  Normalizat    1.0846        .21679        .28284E-03   -.90248    
   4  Prefactor     .85122        .16631        .24265E-03   -.97867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46708e-11
Minuit parameter uncertainties:
  1  1.673
  2  0.436106
  3  0.216964
  4  0.166404
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/131255': 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) = 8071.3133688
delta logL = 0.313613495578

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  2.791e+00  1.673e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.050e+00  4.361e-01  0.000e+00  5.000e+00 ( 1.000e+00)
324         beta:  1.993e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  8.512e-01  1.664e-01  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  1.085e+00  2.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.24
Ra Dec: 253.474 39.760
Photon Index (Free Index): 2.05 +/- 0.44
Photon Flux (Free Index): 6.21e-08 +/- 4.18e-08
Energy Flux (Free Index): 3.80e-05 +/- 2.75e-05

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/131255/cmap_HighResolution_309052801_309312001_4FGL_J1653.8+3945_daily_bin269.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.05e-08', energy_flux2='3.80e-05', photon_flux_error='2.29e-08', dlogl='3.14e-01', energy_flux='5.83e-05', photon_flux2='6.21e-08', job_status='DONE', time_completed='2021-09-16 00:19:09.952202', photon_index_error2='0.44', photon_index2='2.05', ts='10.64', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='2.75e-05', EG='1.11', time_epoch_completed='1631776749.95', return_code='0', job_id='131255', GAL2='0.85', EG2='1.08', return_code2='0', energy_flux_error='3.30e-05', photon_flux_error2='4.18e-08', ts2='11.24', photon_index='1.72' WHERE bin_id='269' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:19:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 131255: <4FGL_J1653.8+3945_daily_bin269> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin269> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Sep 16 00:05:22 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 00:06:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 16 00:06:21 2021
Terminated at Thu Sep 16 00:19:10 2021
Results reported at Thu Sep 16 00:19:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin269 253.474 39.7595 309052801 309312001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1653.8+3945 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   753.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            828 sec.

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

