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


Performing analysis on: 4FGL_J1656.0+2047_daily_bin649
RA = 254.005, Dec = 20.7841
tmin = 407548801, tmax = 407808001
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='146499', job_status='RUN', time_executed='2021-09-16 01:00:33.159529', time_epoch_executed='1631779233.16' WHERE source_name='4FGL J1656.0+2047' and cadence='daily' and bin_id='649'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/146499

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/146499/ft1_4FGL_J1656.0+2047_daily_bin649.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/146499/ft2_4FGL_J1656.0+2047_daily_bin649.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/146499/ft1_4FGL_J1656.0+2047_daily_bin649.fits outfile=/scratch/kocevski/146499/ft1_filteredMKT_4FGL_J1656.0+2047_daily_bin649.fits ra=254.005 dec=20.7841 rad=12.0 tmin=407548801.0 tmax=407808001.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 3.52
user 3.29
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/146499/ft2_4FGL_J1656.0+2047_daily_bin649.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/146499/ft2_4FGL_J1656.0+2047_daily_bin649.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/146499/ft1_filteredMKT_4FGL_J1656.0+2047_daily_bin649.fits evtable="EVENTS" outfile="/scratch/kocevski/146499/ft1_filtered_4FGL_J1656.0+2047_daily_bin649.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.51
user 0.31
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/146499/ft1_filtered_4FGL_J1656.0+2047_daily_bin649.fits" evtable="EVENTS" scfile=/scratch/kocevski/146499/ft2_4FGL_J1656.0+2047_daily_bin649.fits sctable="SC_DATA" outfile=/scratch/kocevski/146499/ltcube_407548801_407808001_4FGL_J1656.0+2047_daily_bin649.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/146499/ft2_4FGL_J1656.0+2047_daily_bin649.fits
.....................!
real 12.43
user 12.10
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/146499/ft1_filtered_4FGL_J1656.0+2047_daily_bin649.fits evtable="EVENTS" scfile=/scratch/kocevski/146499/ft2_4FGL_J1656.0+2047_daily_bin649.fits sctable="SC_DATA" expcube=/scratch/kocevski/146499/ltcube_407548801_407808001_4FGL_J1656.0+2047_daily_bin649.fits outfile=/scratch/kocevski/146499/expmap_407548801_407808001_4FGL_J1656.0+2047_daily_bin649.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/146499/ltcube_407548801_407808001_4FGL_J1656.0+2047_daily_bin649.fits
.....................!
real 191.23
user 185.72
sys 5.16

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

Setting source of interest to:
4FGL J1656.0+2047 @ 254.005 20.7841

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/146499/ft1_filtered_4FGL_J1656.0+2047_daily_bin649.fits scfile=/scratch/kocevski/146499/ft2_4FGL_J1656.0+2047_daily_bin649.fits outfile=/scratch/kocevski/146499/cmap_407548801_407808001_4FGL_J1656.0+2047_daily_bin649.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=254.005 yref=20.7841 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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/146499/ft1_filtered_4FGL_J1656.0+2047_daily_bin649.fits scfile=/scratch/kocevski/146499/ft2_4FGL_J1656.0+2047_daily_bin649.fits outfile=/scratch/kocevski/146499/cmap_HighResolution_407548801_407808001_4FGL_J1656.0+2047_daily_bin649.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=254.005 yref=20.7841 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/146499/ft1_filtered_4FGL_J1656.0+2047_daily_bin649.fits evtable="EVENTS" scfile=/scratch/kocevski/146499/ft2_4FGL_J1656.0+2047_daily_bin649.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/146499/Model_4FGL_J1656.0+2047_daily_bin649.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/146499/ft1_filtered_4FGL_J1656.0+2047_daily_bin649.fits.....................!
real 68.84
user 67.42
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/146499/ft1_filtered_4FGL_J1656.0+2047_daily_bin649.fits', '/scratch/kocevski/146499/ft2_4FGL_J1656.0+2047_daily_bin649.fits', expMap='/scratch/kocevski/146499/expmap_407548801_407808001_4FGL_J1656.0+2047_daily_bin649.fits', expCube='/scratch/kocevski/146499/ltcube_407548801_407808001_4FGL_J1656.0+2047_daily_bin649.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/146499/Model_4FGL_J1656.0+2047_daily_bin649.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1656.0+2047'

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  6.103e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.477e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  8.932e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/146499/ft1_filtered_4FGL_J1656.0+2047_daily_bin649.fits
Spacecraft file(s): /scratch/kocevski/146499/ft2_4FGL_J1656.0+2047_daily_bin649.fits
Exposure map: /scratch/kocevski/146499/expmap_407548801_407808001_4FGL_J1656.0+2047_daily_bin649.fits
Exposure cube: /scratch/kocevski/146499/ltcube_407548801_407808001_4FGL_J1656.0+2047_daily_bin649.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/146499/Model_4FGL_J1656.0+2047_daily_bin649.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) = 8559.84292743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17580E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.250       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10675E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.027       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10511E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.519       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.895       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4503       1.0000         .10000E-03   10000.    
    10 'norm      '    6.0834       1.0000         .10000E-03   10000.    
    11 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8197       1.0000         .10000E-03   10000.    
    13 'norm      '    .10319E-03   1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.1002       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .88337       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8559.776     FROM MIGRAD    STATUS=CONVERGED    298 CALLS     1171 TOTAL
                     EDM=   .23E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.953        .39764E-07** at limit **
   2  Prefactor     19.116        36.362        .26738E-05   -.41347E-06
   3  Prefactor     .10000E-03    6.8815       -.44341E-07** at limit **
   4  Prefactor     .10000E-03    3.9207       -.22617E-06** at limit **
   5  Prefactor     15.062        17.787        .30837E-05    .44200E-05
   6  Prefactor     .10000E-03    26.204       -.32036E-06** at limit **
   7  Prefactor     16.539        53.187       -.22525E-05   -.13506E-05
   8  Prefactor     19.889        9.3641       -.10314E-06   -.34523E-05
   9  Prefactor     2.4453        14.119        .49564E-05   -.29280E-05
  10  norm          6.0825        3.2195       -.27801E-07   -.88719E-05
  11  norm          .10000E-03    6.1811        .43935E-09** at limit **
  12  Prefactor     3.8205        3.2525        .82317E-07   -.59323E-06
  13  norm          .10000E-03    37.793        .10515E-05** at limit **
  14  Normalizat    1.1002        .20958       -.89821E-07   -.35621E-05
  15  Prefactor     .88335        .92053E-01   -.36071E-06    .28730E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.1161
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0624
  Prefactor  = 0.0001
  Prefactor  = 16.5385
  Prefactor  = 19.8894
  Prefactor  = 2.44532
  norm       = 6.08248
  norm       = 0.0001
  Prefactor  = 3.8205
  norm       = 0.0001
  Normalizat = 1.10018
  Prefactor  = 0.883347
 **********
 **   18 **HESSE 
 **********

 FCN=   8559.776     FROM HESSE     STATUS=OK           184 CALLS     1355 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.576        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.116        36.365        .91288E-04   -1.4833    
   3  Prefactor     .10000E-03    6.9061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9874        .17888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.062        17.789        .10332E-03   -1.4932    
   6  Prefactor     .10000E-03    26.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.539        53.243        .98544E-04   -1.4894    
   8  Prefactor     19.889        9.3596        .89797E-04   -1.4816    
   9  Prefactor     2.4453        14.142        .13066E-02   -1.5395    
  10  norm          6.0825        3.2203        .11633E-03   -1.5215    
  11  norm          .10000E-03    6.1997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.8205        3.2541        .14743E-03   -1.5317    
  13  norm          .10000E-03    37.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.1002        .25317        .35091E-03   -.89746    
  15  Prefactor     .88335        .11169        .16623E-03   -.96725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74698e-10
Minuit parameter uncertainties:
  1  5.44573e-06
  2  36.4071
  3  9.90044e-07
  4  1.3632e-05
  5  17.7952
  6  6.52412e-07
  7  53.3967
  8  9.36032
  9  11.7652
  10  3.2204
  11  5.27262e-07
  12  3.2543
  13  3.48416e-06
  14  0.253446
  15  0.111714
Done.

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

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  1.506e+01  1.780e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.477e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  8.932e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  8.833e-01  1.117e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  1.100e+00  2.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.38
Ra Dec: 254.005 20.784
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 2.32e-08 +/- 2.73e-08
Energy Flux (Fixed Index): 6.90e-06 +/- 8.15e-06

TS (Fixed Index): 1.38
Ra Dec: 254.005 20.784
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/146499/likelihoodResults_407548801_407808001_4FGL_J1656.0+2047_daily_bin649.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) = 8559.61831969
delta logL = 0.158003265944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8559.60993585
delta logL = 0.166387102567

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.339       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0090       1.0000          .0000       10.000    
     3 'Normalizat'    1.1081       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88145       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8559.610     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      273 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.363        1243.4        .22769E-02    .17376E-05
   2  Index         2.0100        5.7348        .25737        .11159E-05
   3  Normalizat    1.1086        .19269        .79002E-01    .12015E-04
   4  Prefactor     .88115        .62933E-01    .44768E-01   -.19851E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.3634
  Index      = 2.00996
  Normalizat = 1.10862
  Prefactor  = 0.881147
 **********
 **   18 **HESSE 
 **********

 FCN=   8559.610     FROM HESSE     STATUS=OK            33 CALLS      306 TOTAL
                     EDM=   .19E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.363        22.003        .91078E-04   -1.4828    
   2  Index         2.0100        .75071        .13586E-01   -.64101    
   3  Normalizat    1.1086        .25195        .34971E-03   -.89475    
   4  Prefactor     .88115        .10891        .16640E-03   -.96803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88397e-13
Minuit parameter uncertainties:
  1  22.0123
  2  0.755173
  3  0.25222
  4  0.108937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/146499': 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) = 8559.60993059
delta logL = 0.166392364476

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  1.936e+01  2.201e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.010e+00  7.552e-01  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  8.932e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  8.811e-01  1.089e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  1.109e+00  2.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.71
Ra Dec: 254.005 20.784
Photon Index (Free Index): 2.01 +/- 0.76
Photon Flux (Free Index): 1.56e-08 +/- 2.21e-08
Energy Flux (Free Index): 1.05e-05 +/- 1.59e-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/146499/cmap_HighResolution_407548801_407808001_4FGL_J1656.0+2047_daily_bin649.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.84e-03', comment='SUCCESS', photon_flux='2.32e-08', energy_flux2='1.05e-05', photon_flux_error='2.73e-08', dlogl='1.66e-01', energy_flux='6.90e-06', photon_flux2='1.56e-08', job_status='DONE', time_completed='2021-09-16 01:10:39.693595', photon_index_error2='0.76', photon_index2='2.01', ts='1.38', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='1.59e-05', EG='1.10', time_epoch_completed='1631779839.69', return_code='0', job_id='146499', GAL2='0.88', EG2='1.11', return_code2='0', energy_flux_error='8.15e-06', photon_flux_error2='2.21e-08', ts2='1.71', photon_index='2.48' WHERE bin_id='649' AND source_name='4FGL J1656.0+2047' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 01:10:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 146499: <4FGL_J1656.0+2047_daily_bin649> in cluster <slac> Done

Job <4FGL_J1656.0+2047_daily_bin649> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 16 01:00:18 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 01:00: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 01:00:21 2021
Terminated at Thu Sep 16 01:10:40 2021
Results reported at Thu Sep 16 01:10:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1656.0+2047_daily_bin649 254.005 20.7841 407548801 407808001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1656.0+2047 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   605.57 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             361.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   618 sec.
    Turnaround time :                            622 sec.

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

