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


Performing analysis on: 4FGL_J1656.0+2047_daily_bin38
RA = 254.005, Dec = 20.7841
tmin = 249177601, tmax = 249436801
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='141121', job_status='RUN', time_executed='2021-09-16 00:46:18.899174', time_epoch_executed='1631778378.9' WHERE source_name='4FGL J1656.0+2047' and cadence='daily' and bin_id='38'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/141121

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/141121/ft1_4FGL_J1656.0+2047_daily_bin38.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/141121/ft2_4FGL_J1656.0+2047_daily_bin38.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/141121/ft1_4FGL_J1656.0+2047_daily_bin38.fits outfile=/scratch/kocevski/141121/ft1_filteredMKT_4FGL_J1656.0+2047_daily_bin38.fits ra=254.005 dec=20.7841 rad=12.0 tmin=249177601.0 tmax=249436801.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 1.45
user 1.26
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/141121/ft2_4FGL_J1656.0+2047_daily_bin38.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/141121/ft1_filteredMKT_4FGL_J1656.0+2047_daily_bin38.fits evtable="EVENTS" outfile="/scratch/kocevski/141121/ft1_filtered_4FGL_J1656.0+2047_daily_bin38.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/141121/ft1_filtered_4FGL_J1656.0+2047_daily_bin38.fits" evtable="EVENTS" scfile=/scratch/kocevski/141121/ft2_4FGL_J1656.0+2047_daily_bin38.fits sctable="SC_DATA" outfile=/scratch/kocevski/141121/ltcube_249177601_249436801_4FGL_J1656.0+2047_daily_bin38.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/141121/ft2_4FGL_J1656.0+2047_daily_bin38.fits
.....................!
real 16.38
user 15.99
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/141121/ft1_filtered_4FGL_J1656.0+2047_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/141121/ft2_4FGL_J1656.0+2047_daily_bin38.fits sctable="SC_DATA" expcube=/scratch/kocevski/141121/ltcube_249177601_249436801_4FGL_J1656.0+2047_daily_bin38.fits outfile=/scratch/kocevski/141121/expmap_249177601_249436801_4FGL_J1656.0+2047_daily_bin38.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/141121/ltcube_249177601_249436801_4FGL_J1656.0+2047_daily_bin38.fits
.....................!
real 192.52
user 186.80
sys 5.21

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/141121/ft1_filtered_4FGL_J1656.0+2047_daily_bin38.fits scfile=/scratch/kocevski/141121/ft2_4FGL_J1656.0+2047_daily_bin38.fits outfile=/scratch/kocevski/141121/cmap_249177601_249436801_4FGL_J1656.0+2047_daily_bin38.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/141121/ft1_filtered_4FGL_J1656.0+2047_daily_bin38.fits scfile=/scratch/kocevski/141121/ft2_4FGL_J1656.0+2047_daily_bin38.fits outfile=/scratch/kocevski/141121/cmap_HighResolution_249177601_249436801_4FGL_J1656.0+2047_daily_bin38.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/141121/ft1_filtered_4FGL_J1656.0+2047_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/141121/ft2_4FGL_J1656.0+2047_daily_bin38.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/141121/Model_4FGL_J1656.0+2047_daily_bin38.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/141121/ft1_filtered_4FGL_J1656.0+2047_daily_bin38.fits.....................!
real 69.87
user 68.45
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4033       1.0000         .10000E-03   10000.    
     2 'Prefactor '    56.322       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15047E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.302       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.768       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5517       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.9962       1.0000         .10000E-03   10000.    
    10 'norm      '    1.3029       1.0000         .10000E-03   10000.    
    11 'norm      '    7.7489       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Normalizat'    .81671       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .94286       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=   8769.207     FROM MIGRAD    STATUS=CONVERGED    270 CALLS     1312 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4050        12.612        .67377E-05   -.78354E-04
   2  Prefactor     56.357        35.430        .39139E-05    .47979E-03
   3  Prefactor     .10000E-03    4.6773        .58392E-08** at limit **
   4  Prefactor     .10006E-03    4.0522       -.10184E-05** at limit **
   5  Prefactor     28.289        28.834        .67841E-06   -.22080E-05
   6  Prefactor     13.767        17.014        .53525E-07   -.58572E-05
   7  Prefactor     .10000E-03    23.829        .39316E-06** at limit **
   8  Prefactor     1.5510        3.8789        .96050E-06   -.35397E-04
   9  Prefactor     8.9980        10.247        .14451E-05   -.40762E-04
  10  norm          1.3031        1.8585        .16477E-06   -.38474E-04
  11  norm          7.7503        6.6543        .36505E-06    .16957E-03
  12  Prefactor     .10000E-03    1.1306        .80159E-07** at limit **
  13  norm          .10000E-03    17.998       -.41440E-08** at limit **
  14  Normalizat    .81638        .20608       -.12230E-06    .10056E-03
  15  Prefactor     .94294        .89332E-01   -.56878E-06    .30988E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.40498
  Prefactor  = 56.3574
  Prefactor  = 0.0001
  Prefactor  = 0.000100055
  Prefactor  = 28.2885
  Prefactor  = 13.7673
  Prefactor  = 0.0001
  Prefactor  = 1.55098
  Prefactor  = 8.99798
  norm       = 1.30309
  norm       = 7.7503
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.816381
  Prefactor  = 0.942943
 **********
 **   18 **HESSE 
 **********

 FCN=   8769.207     FROM HESSE     STATUS=OK           182 CALLS     1494 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4050        12.845        .86438E-03   -1.5243    
   2  Prefactor     56.357        36.985        .26726E-03   -1.4205    
   3  Prefactor     .10000E-03    4.6895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10006E-03    23.984        .33932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.289        27.868        .75307E-04   -1.4644    
   6  Prefactor     13.767        17.014        .10795E-03   -1.4966    
   7  Prefactor     .10000E-03    23.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.5510        3.8455        .28282E-03   -1.5459    
   9  Prefactor     8.9980        10.236        .66815E-03   -1.5108    
  10  norm          1.3031        1.8256        .14735E-03   -1.5480    
  11  norm          7.7503        6.6621        .14405E-03   -1.5151    
  12  Prefactor     .10000E-03    1.1622        .19425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    17.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    .81638        .23937        .36470E-03   -.99464    
  15  Prefactor     .94294        .10472        .15198E-03   -.94656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79503e-09
Minuit parameter uncertainties:
  1  12.8519
  2  36.9998
  3  2.87817e-06
  4  0.00229923
  5  27.8805
  6  17.02
  7  5.37599e-05
  8  3.8461
  9  10.2382
  10  1.82565
  11  6.66278
  12  8.54424e-07
  13  1.19952e-06
  14  0.239677
  15  0.104746
Done.

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

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  2.829e+01  2.788e+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:  9.429e-01  1.047e-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:  8.164e-01  2.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.33
Ra Dec: 254.005 20.784
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 4.35e-08 +/- 4.28e-08
Energy Flux (Fixed Index): 1.30e-05 +/- 1.28e-05

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

Saving results to:
/scratch/kocevski/141121/likelihoodResults_249177601_249436801_4FGL_J1656.0+2047_daily_bin38.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) = 8768.24456798
delta logL = 0.962340864287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8768.14883826
delta logL = 1.05807058355

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60962       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9782       1.0000          .0000       10.000    
     3 'Normalizat'    .74313       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96876       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=   8768.149     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      288 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60793        5.1841        .10163E-01    .19675E-02
   2  Index         4.9798        2.2697        .13125        .25967E-03
   3  Normalizat    .74293        .48011E-01    .85931E-01    .50288E-04
   4  Prefactor     .96884        .21451E-01    .33968E-01    .25218E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.607933
  Index      = 4.97984
  Normalizat = 0.742935
  Prefactor  = 0.968835
 **********
 **   18 **HESSE 
 **********

 FCN=   8768.149     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      321 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60793        12.586        .46741E-03   -1.5552    
   2  Index         4.9798        3.9785        .48351E-02   -.40313E-02
   3  Normalizat    .74293        .17912        .38056E-03   -1.0222    
   4  Prefactor     .96884        .79448E-01    .15009E-03   -.93776    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.1508e-10
Minuit parameter uncertainties:
  1  5.53323
  2  4.60076
  3  0.17926
  4  0.0794571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/141121': 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): 102
logL (Free Index) = 8768.14883757
delta logL = 1.05807127586

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  6.079e-01  5.533e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  4.980e+00  4.601e+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:  9.688e-01  7.946e-02  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.429e-01  1.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.63
Ra Dec: 254.005 20.784
Photon Index (Free Index): 4.98 +/- 4.60
Photon Flux (Free Index): 8.36e-08 +/- 5.33e-08
Energy Flux (Free Index): 1.11e-05 +/- 9.20e-06

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/141121/cmap_HighResolution_249177601_249436801_4FGL_J1656.0+2047_daily_bin38.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', photon_flux='4.35e-08', energy_flux2='1.11e-05', photon_flux_error='4.28e-08', dlogl='1.06e+00', energy_flux='1.30e-05', photon_flux2='8.36e-08', job_status='DONE', time_completed='2021-09-16 00:56:50.991026', photon_index_error2='4.60', photon_index2='4.98', ts='1.33', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='9.20e-06', EG='0.82', time_epoch_completed='1631779010.99', return_code='0', job_id='141121', GAL2='0.97', EG2='0.74', return_code2='102', energy_flux_error='1.28e-05', photon_flux_error2='5.33e-08', ts2='3.63', photon_index='2.48' WHERE bin_id='38' AND source_name='4FGL J1656.0+2047' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:56:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 141121: <4FGL_J1656.0+2047_daily_bin38> in cluster <slac> Done

Job <4FGL_J1656.0+2047_daily_bin38> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 16 00:40:30 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 00:42:39 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:42:39 2021
Terminated at Thu Sep 16 00:56:51 2021
Results reported at Thu Sep 16 00:56:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1656.0+2047_daily_bin38 254.005 20.7841 249177601 249436801 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 :                                   633.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            981 sec.

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

