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


Performing analysis on: 4FGL_J1656.0+2047_daily_bin1239
RA = 254.005, Dec = 20.7841
tmin = 560476801, tmax = 560736001
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='149433', job_status='RUN', time_executed='2021-09-16 01:16:31.930748', time_epoch_executed='1631780191.93' WHERE source_name='4FGL J1656.0+2047' and cadence='daily' and bin_id='1239'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149433

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149433/ft1_4FGL_J1656.0+2047_daily_bin1239.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149433/ft2_4FGL_J1656.0+2047_daily_bin1239.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149433/ft1_4FGL_J1656.0+2047_daily_bin1239.fits outfile=/scratch/kocevski/149433/ft1_filteredMKT_4FGL_J1656.0+2047_daily_bin1239.fits ra=254.005 dec=20.7841 rad=12.0 tmin=560476801.0 tmax=560736001.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.15
user 2.91
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/149433/ft2_4FGL_J1656.0+2047_daily_bin1239.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/149433/ft1_filteredMKT_4FGL_J1656.0+2047_daily_bin1239.fits evtable="EVENTS" outfile="/scratch/kocevski/149433/ft1_filtered_4FGL_J1656.0+2047_daily_bin1239.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.45
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149433/ft1_filtered_4FGL_J1656.0+2047_daily_bin1239.fits" evtable="EVENTS" scfile=/scratch/kocevski/149433/ft2_4FGL_J1656.0+2047_daily_bin1239.fits sctable="SC_DATA" outfile=/scratch/kocevski/149433/ltcube_560476801_560736001_4FGL_J1656.0+2047_daily_bin1239.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/149433/ft2_4FGL_J1656.0+2047_daily_bin1239.fits
.....................!
real 12.96
user 12.54
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149433/ft1_filtered_4FGL_J1656.0+2047_daily_bin1239.fits evtable="EVENTS" scfile=/scratch/kocevski/149433/ft2_4FGL_J1656.0+2047_daily_bin1239.fits sctable="SC_DATA" expcube=/scratch/kocevski/149433/ltcube_560476801_560736001_4FGL_J1656.0+2047_daily_bin1239.fits outfile=/scratch/kocevski/149433/expmap_560476801_560736001_4FGL_J1656.0+2047_daily_bin1239.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/149433/ltcube_560476801_560736001_4FGL_J1656.0+2047_daily_bin1239.fits
.....................!
real 157.85
user 152.10
sys 4.10

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/149433/ft1_filtered_4FGL_J1656.0+2047_daily_bin1239.fits scfile=/scratch/kocevski/149433/ft2_4FGL_J1656.0+2047_daily_bin1239.fits outfile=/scratch/kocevski/149433/cmap_560476801_560736001_4FGL_J1656.0+2047_daily_bin1239.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.48
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149433/ft1_filtered_4FGL_J1656.0+2047_daily_bin1239.fits scfile=/scratch/kocevski/149433/ft2_4FGL_J1656.0+2047_daily_bin1239.fits outfile=/scratch/kocevski/149433/cmap_HighResolution_560476801_560736001_4FGL_J1656.0+2047_daily_bin1239.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.50
user 0.35
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/149433/ft1_filtered_4FGL_J1656.0+2047_daily_bin1239.fits', '/scratch/kocevski/149433/ft2_4FGL_J1656.0+2047_daily_bin1239.fits', expMap='/scratch/kocevski/149433/expmap_560476801_560736001_4FGL_J1656.0+2047_daily_bin1239.fits', expCube='/scratch/kocevski/149433/ltcube_560476801_560736001_4FGL_J1656.0+2047_daily_bin1239.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/149433/Model_4FGL_J1656.0+2047_daily_bin1239.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/149433/ft1_filtered_4FGL_J1656.0+2047_daily_bin1239.fits
Spacecraft file(s): /scratch/kocevski/149433/ft2_4FGL_J1656.0+2047_daily_bin1239.fits
Exposure map: /scratch/kocevski/149433/expmap_560476801_560736001_4FGL_J1656.0+2047_daily_bin1239.fits
Exposure cube: /scratch/kocevski/149433/ltcube_560476801_560736001_4FGL_J1656.0+2047_daily_bin1239.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/149433/Model_4FGL_J1656.0+2047_daily_bin1239.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) = 4695.39871345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9993       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.268       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.299       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0221       1.0000         .10000E-03   10000.    
     5 'Prefactor '    45.013       1.0000         .10000E-03   10000.    
     6 'Prefactor '    116.21       1.0000         .10000E-03   10000.    
     7 'Prefactor '    46.126       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.367       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.735       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    23.787       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20723E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    103.80       1.0000         .10000E-03   10000.    
    14 'Normalizat'    .73419       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.1446       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=   4695.391     FROM MIGRAD    STATUS=CONVERGED    270 CALLS     1325 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9786        41.782        .44488E-05   -.17733E-05
   2  Prefactor     15.056        66.192       -.17760E-05   -.21837E-04
   3  Prefactor     20.280        24.182       -.35486E-06   -.70915E-04
   4  Prefactor     1.0138        10.076        .57389E-05    .11489E-04
   5  Prefactor     45.026        35.455       -.13997E-05   -.81723E-04
   6  Prefactor     116.19        71.967        .34563E-06   -.21065E-04
   7  Prefactor     46.103        76.073        .39321E-06   -.58715E-05
   8  Prefactor     12.370        14.335        .42992E-06   -.16525E-04
   9  Prefactor     14.737        19.367        .39366E-06   -.13518E-04
  10  norm          .10000E-03    1.9078        .39595E-06** at limit **
  11  norm          23.823        17.624        .25492E-06   -.90424E-04
  12  Prefactor     .10046E-03    2.4108        .36052E-06** at limit **
  13  norm          103.81        97.544        .14145E-06    .25334E-05
  14  Normalizat    .73508        .33208       -.58368E-05   -.10238E-03
  15  Prefactor     1.1443        .14530        .84241E-06   -.36198E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.97862
  Prefactor  = 15.0565
  Prefactor  = 20.2797
  Prefactor  = 1.01379
  Prefactor  = 45.0264
  Prefactor  = 116.186
  Prefactor  = 46.1033
  Prefactor  = 12.3697
  Prefactor  = 14.7369
  norm       = 0.0001
  norm       = 23.8228
  Prefactor  = 0.000100462
  norm       = 103.807
  Normalizat = 0.735081
  Prefactor  = 1.14432
 **********
 **   18 **HESSE 
 **********

 FCN=   4695.391     FROM HESSE     STATUS=OK           196 CALLS     1521 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9786        41.764        .29292E-03   -1.5427    
   2  Prefactor     15.056        66.847        .10250E-03   -1.4932    
   3  Prefactor     20.280        24.263        .88899E-04   -1.4807    
   4  Prefactor     1.0138        10.163        .40111E-03   -1.5507    
   5  Prefactor     45.026        35.453        .59758E-04   -1.4365    
   6  Prefactor     116.19        71.972        .18662E-03   -1.3548    
   7  Prefactor     46.103        76.082        .59036E-04   -1.4349    
   8  Prefactor     12.370        14.336        .11391E-03   -1.5004    
   9  Prefactor     14.737        19.409        .10434E-03   -1.4940    
  10  norm          .10000E-03    1.9252        .92451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          23.823        17.852        .41065E-03   -1.4731    
  12  Prefactor     .10046E-03    6.0476        .34658E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          103.81        97.643        .19733E-03   -1.3667    
  14  Normalizat    .73508        .36338        .42656E-03   -1.0252    
  15  Prefactor     1.1443        .16329        .16249E-03   -.88062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73211e-10
Minuit parameter uncertainties:
  1  18.1948
  2  63.5689
  3  24.2752
  4  6.4208
  5  35.4692
  6  72.026
  7  76.2429
  8  14.3398
  9  19.4177
  10  2.40208e-06
  11  17.8562
  12  0.00334338
  13  97.7951
  14  0.364586
  15  0.163358
Done.

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

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  4.503e+01  3.547e+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:  1.144e+00  1.634e-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:  7.351e-01  3.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.82
Ra Dec: 254.005 20.784
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 6.92e-08 +/- 5.45e-08
Energy Flux (Fixed Index): 2.06e-05 +/- 1.62e-05

TS (Fixed Index): 3.82
Ra Dec: 254.005 20.784
Photon Flux Upper Limit: 1.95e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.52e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149433/likelihoodResults_560476801_560736001_4FGL_J1656.0+2047_daily_bin1239.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) = 4694.65921363
delta logL = 0.731490526781

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4694.64047642
delta logL = 0.750227741672

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4694.640     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      281 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.564        52.404        .24060E-03    .12342E-03
   2  Index         1.8457        .46942        .71681E-02    .91171E-04
   3  Normalizat    .76128        .33428        .41967E-03    .60921E-03
   4  Prefactor     1.1369        .15712        .16291E-03    .13354E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.5642
  Index      = 1.84566
  Normalizat = 0.76128
  Prefactor  = 1.13687
 **********
 **   18 **HESSE 
 **********

 FCN=   4694.640     FROM HESSE     STATUS=OK            23 CALLS      304 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.564        52.445        .48120E-04   -1.4038    
   2  Index         1.8457        .46980        .28672E-03   -.68267    
   3  Normalizat    .76128        .33443        .83935E-04   -1.0152    
   4  Prefactor     1.1369        .15720        .32583E-04   -.88297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52919e-09
Minuit parameter uncertainties:
  1  52.48
  2  0.470958
  3  0.335332
  4  0.15726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149433': 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) = 4694.64047553
delta logL = 0.750228628656

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  6.956e+01  5.248e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  1.846e+00  4.710e-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:  1.137e+00  1.573e-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:  7.613e-01  3.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.33
Ra Dec: 254.005 20.784
Photon Index (Free Index): 1.85 +/- 0.47
Photon Flux (Free Index): 4.67e-08 +/- 4.27e-08
Energy Flux (Free Index): 4.88e-05 +/- 5.53e-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/149433/cmap_HighResolution_560476801_560736001_4FGL_J1656.0+2047_daily_bin1239.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-02', comment='SUCCESS', photon_flux='6.92e-08', energy_flux2='4.88e-05', photon_flux_error='5.45e-08', dlogl='7.50e-01', energy_flux='2.06e-05', photon_flux2='4.67e-08', job_status='DONE', time_completed='2021-09-16 01:23:30.201865', photon_index_error2='0.47', photon_index2='1.85', ts='3.82', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.95e-07', energy_flux_error2='5.53e-05', EG='0.74', time_epoch_completed='1631780610.2', return_code='0', job_id='149433', GAL2='1.14', EG2='0.76', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='4.27e-08', ts2='5.33', photon_index='2.48' WHERE bin_id='1239' AND source_name='4FGL J1656.0+2047' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 01:23:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 149433: <4FGL_J1656.0+2047_daily_bin1239> in cluster <slac> Done

Job <4FGL_J1656.0+2047_daily_bin1239> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 16 01:10:20 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 01:14:18 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:14:18 2021
Terminated at Thu Sep 16 01:23:30 2021
Results reported at Thu Sep 16 01:23:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1656.0+2047_daily_bin1239 254.005 20.7841 560476801 560736001 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 :                                   410.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             261.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   552 sec.
    Turnaround time :                            790 sec.

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

