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


Performing analysis on: 4FGL_J1656.0+2047_daily_bin642
RA = 254.005, Dec = 20.7841
tmin = 405734401, tmax = 405993601
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='145388', job_status='RUN', time_executed='2021-09-16 00:58:42.302156', time_epoch_executed='1631779122.3' WHERE source_name='4FGL J1656.0+2047' and cadence='daily' and bin_id='642'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/145388

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/145388/ft1_4FGL_J1656.0+2047_daily_bin642.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/145388/ft2_4FGL_J1656.0+2047_daily_bin642.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/145388/ft1_4FGL_J1656.0+2047_daily_bin642.fits outfile=/scratch/kocevski/145388/ft1_filteredMKT_4FGL_J1656.0+2047_daily_bin642.fits ra=254.005 dec=20.7841 rad=12.0 tmin=405734401.0 tmax=405993601.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.57
user 3.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/145388/ft2_4FGL_J1656.0+2047_daily_bin642.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/145388/ft1_filteredMKT_4FGL_J1656.0+2047_daily_bin642.fits evtable="EVENTS" outfile="/scratch/kocevski/145388/ft1_filtered_4FGL_J1656.0+2047_daily_bin642.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/145388/ft1_filtered_4FGL_J1656.0+2047_daily_bin642.fits" evtable="EVENTS" scfile=/scratch/kocevski/145388/ft2_4FGL_J1656.0+2047_daily_bin642.fits sctable="SC_DATA" outfile=/scratch/kocevski/145388/ltcube_405734401_405993601_4FGL_J1656.0+2047_daily_bin642.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/145388/ft2_4FGL_J1656.0+2047_daily_bin642.fits
.....................!
real 13.70
user 13.29
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/145388/ft1_filtered_4FGL_J1656.0+2047_daily_bin642.fits evtable="EVENTS" scfile=/scratch/kocevski/145388/ft2_4FGL_J1656.0+2047_daily_bin642.fits sctable="SC_DATA" expcube=/scratch/kocevski/145388/ltcube_405734401_405993601_4FGL_J1656.0+2047_daily_bin642.fits outfile=/scratch/kocevski/145388/expmap_405734401_405993601_4FGL_J1656.0+2047_daily_bin642.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/145388/ltcube_405734401_405993601_4FGL_J1656.0+2047_daily_bin642.fits
.....................!
real 190.56
user 185.42
sys 4.45

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/145388/ft1_filtered_4FGL_J1656.0+2047_daily_bin642.fits scfile=/scratch/kocevski/145388/ft2_4FGL_J1656.0+2047_daily_bin642.fits outfile=/scratch/kocevski/145388/cmap_405734401_405993601_4FGL_J1656.0+2047_daily_bin642.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/145388/ft1_filtered_4FGL_J1656.0+2047_daily_bin642.fits scfile=/scratch/kocevski/145388/ft2_4FGL_J1656.0+2047_daily_bin642.fits outfile=/scratch/kocevski/145388/cmap_HighResolution_405734401_405993601_4FGL_J1656.0+2047_daily_bin642.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6203       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.175       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3277       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    15.764       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .74389       1.0000         .10000E-03   10000.    
    13 'norm      '    67.498       1.0000         .10000E-03   10000.    
    14 'Normalizat'    .72969       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.0729       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=   8166.862     FROM MIGRAD    STATUS=CONVERGED    278 CALLS     1318 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6202        10.087        .71556E-06   -.34107E-04
   2  Prefactor     .10000E-03    21.752       -.57123E-07** at limit **
   3  Prefactor     .10000E-03    12.017       -.70833E-06** at limit **
   4  Prefactor     .10002E-03    3.6790        .12114E-05** at limit **
   5  Prefactor     21.159        25.382       -.34216E-06   -.26414E-03
   6  Prefactor     .10000E-03    27.938        .10684E-06** at limit **
   7  Prefactor     .10000E-03    67.354       -.37408E-07** at limit **
   8  Prefactor     7.3288        8.5358        .27687E-05   -.22728E-03
   9  Prefactor     .10000E-03    4.7814       -.13987E-07** at limit **
  10  norm          .10000E-03    1.8740        .30846E-07** at limit **
  11  norm          15.769        13.509       -.11526E-05   -.21649E-03
  12  Prefactor     .74412        4.0172        .26548E-05   -.13338E-03
  13  norm          67.540        54.675        .48135E-05    .33796E-03
  14  Normalizat    .72978        .20830        .22060E-06   -.27463E-03
  15  Prefactor     1.0728        .96633E-01   -.63131E-06   -.39616E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.62022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 21.1586
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.32883
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.769
  Prefactor  = 0.744115
  norm       = 67.5398
  Normalizat = 0.729775
  Prefactor  = 1.07282
 **********
 **   18 **HESSE 
 **********

 FCN=   8166.862     FROM HESSE     STATUS=OK           176 CALLS     1494 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6202        10.090        .21234E-03   -1.5327    
   2  Prefactor     .10000E-03    21.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    12.120        .31740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.159        25.199        .87043E-04   -1.4788    
   6  Prefactor     .10000E-03    27.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    67.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.3288        8.6210        .74084E-03   -1.5166    
   9  Prefactor     .10000E-03    4.7995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.9184        .12075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          15.769        13.290        .10088E-03   -1.4914    
  12  Prefactor     .74412        4.0158        .31881E-03   -1.5535    
  13  norm          67.540        57.754        .24427E-03   -1.4062    
  14  Normalizat    .72978        .23665        .38818E-03   -1.0273    
  15  Prefactor     1.0728        .11122        .15236E-03   -.90340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23473e-09
Minuit parameter uncertainties:
  1  10.0949
  2  7.39484e-06
  3  8.87493e-05
  4  0.000875597
  5  25.2119
  6  2.11717e-05
  7  4.40045e-05
  8  8.62241
  9  9.35704e-08
  10  1.0558e-06
  11  13.2926
  12  3.45744
  13  57.8021
  14  0.23698
  15  0.111241
Done.

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

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  2.116e+01  2.521e+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.073e+00  1.112e-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.298e-01  2.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/145388/likelihoodResults_405734401_405993601_4FGL_J1656.0+2047_daily_bin642.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) = 8166.73124324
delta logL = 0.131219884322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8166.72592613
delta logL = 0.136536991206

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.601       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0163       1.0000          .0000       10.000    
     3 'Normalizat'    .71174       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0779       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=   8166.726     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      277 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.559        351.17        .28211E-02    .10806E-03
   2  Index         3.0185        6.4931        .16333        .15847E-03
   3  Normalizat    .71143        .71304E-01    .88673E-01    .11096E-03
   4  Prefactor     1.0779        .29952E-01    .38496E-01   -.33017E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5592
  Index      = 3.01852
  Normalizat = 0.711432
  Prefactor  = 1.07795
 **********
 **   18 **HESSE 
 **********

 FCN=   8166.726     FROM HESSE     STATUS=OK            31 CALLS      308 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.559        34.090        .11284E-03   -1.4999    
   2  Index         3.0185        1.6116        .87805E-02   -.40748    
   3  Normalizat    .71143        .23804        .39278E-03   -1.0344    
   4  Prefactor     1.0779        .11054        .15203E-03   -.90175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56212e-10
Minuit parameter uncertainties:
  1  34.1424
  2  1.64666
  3  0.238388
  4  0.11056
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/145388': 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) = 8166.72592347
delta logL = 0.136539658718

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  1.256e+01  3.414e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  3.019e+00  1.647e+00  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.078e+00  1.106e-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.114e-01  2.384e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 254.005 20.784
Photon Index (Free Index): 3.02 +/- 1.65
Photon Flux (Free Index): 4.62e-08 +/- 5.01e-08
Energy Flux (Free Index): 9.15e-06 +/- 1.06e-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/145388/cmap_HighResolution_405734401_405993601_4FGL_J1656.0+2047_daily_bin642.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.19e-03', comment='SUCCESS', energy_flux2='9.15e-06', dlogl='1.37e-01', photon_flux2='4.62e-08', job_status='DONE', time_completed='2021-09-16 01:08:54.832970', photon_index_error2='1.65', photon_index2='3.02', ts='0.90', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.06e-05', EG='0.73', time_epoch_completed='1631779734.83', return_code='0', job_id='145388', GAL2='1.08', EG2='0.71', return_code2='0', photon_flux_error2='5.01e-08', ts2='1.19', photon_index='2.48' WHERE bin_id='642' AND source_name='4FGL J1656.0+2047' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 01:08:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 145388: <4FGL_J1656.0+2047_daily_bin642> in cluster <slac> Done

Job <4FGL_J1656.0+2047_daily_bin642> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep 16 00:55:39 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 00:58:28 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:58:28 2021
Terminated at Thu Sep 16 01:08:55 2021
Results reported at Thu Sep 16 01:08:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1656.0+2047_daily_bin642 254.005 20.7841 405734401 405993601 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 :                                   610.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             345.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            796 sec.

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

