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


Performing analysis on: 4FGL_J1656.0+2047_daily_bin13
RA = 254.005, Dec = 20.7841
tmin = 242697601, tmax = 242956801
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='141087', job_status='RUN', time_executed='2021-09-16 00:44:19.601359', time_epoch_executed='1631778259.6' WHERE source_name='4FGL J1656.0+2047' and cadence='daily' and bin_id='13'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/141087

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/141087/ft1_4FGL_J1656.0+2047_daily_bin13.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/141087/ft2_4FGL_J1656.0+2047_daily_bin13.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/141087/ft1_4FGL_J1656.0+2047_daily_bin13.fits outfile=/scratch/kocevski/141087/ft1_filteredMKT_4FGL_J1656.0+2047_daily_bin13.fits ra=254.005 dec=20.7841 rad=12.0 tmin=242697601.0 tmax=242956801.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.27
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/141087/ft1_filtered_4FGL_J1656.0+2047_daily_bin13.fits" evtable="EVENTS" scfile=/scratch/kocevski/141087/ft2_4FGL_J1656.0+2047_daily_bin13.fits sctable="SC_DATA" outfile=/scratch/kocevski/141087/ltcube_242697601_242956801_4FGL_J1656.0+2047_daily_bin13.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/141087/ft2_4FGL_J1656.0+2047_daily_bin13.fits
.....................!
real 16.53
user 16.10
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/141087/ft1_filtered_4FGL_J1656.0+2047_daily_bin13.fits evtable="EVENTS" scfile=/scratch/kocevski/141087/ft2_4FGL_J1656.0+2047_daily_bin13.fits sctable="SC_DATA" expcube=/scratch/kocevski/141087/ltcube_242697601_242956801_4FGL_J1656.0+2047_daily_bin13.fits outfile=/scratch/kocevski/141087/expmap_242697601_242956801_4FGL_J1656.0+2047_daily_bin13.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/141087/ltcube_242697601_242956801_4FGL_J1656.0+2047_daily_bin13.fits
.....................!
real 192.44
user 186.72
sys 4.31

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/141087/ft1_filtered_4FGL_J1656.0+2047_daily_bin13.fits scfile=/scratch/kocevski/141087/ft2_4FGL_J1656.0+2047_daily_bin13.fits outfile=/scratch/kocevski/141087/cmap_242697601_242956801_4FGL_J1656.0+2047_daily_bin13.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/141087/ft1_filtered_4FGL_J1656.0+2047_daily_bin13.fits scfile=/scratch/kocevski/141087/ft2_4FGL_J1656.0+2047_daily_bin13.fits outfile=/scratch/kocevski/141087/cmap_HighResolution_242697601_242956801_4FGL_J1656.0+2047_daily_bin13.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.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11169E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.664       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23112E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.4985       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.601       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.876       1.0000         .10000E-03   10000.    
    10 'norm      '    8.5580       1.0000         .10000E-03   10000.    
    11 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8592       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.1798       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .89255       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=   10448.41     FROM MIGRAD    STATUS=CONVERGED    288 CALLS     1341 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.599        .20947E-05** at limit **
   2  Prefactor     29.660        31.034       -.29412E-06    .49150E-04
   3  Prefactor     .10000E-03    93.496       -.15184E-04** at limit **
   4  Prefactor     .10000E-03    3.9531       -.11387E-05** at limit **
   5  Prefactor     .10000E-03    57.274       -.67374E-05** at limit **
   6  Prefactor     .10000E-03    14.429       -.73269E-06** at limit **
   7  Prefactor     6.4954        108.58       -.28265E-05    .18734E-04
   8  Prefactor     11.600        7.4980       -.24440E-06    .80375E-04
   9  Prefactor     13.870        13.782       -.10759E-05    .54963E-04
  10  norm          8.5580        3.5015       -.25165E-06    .19199E-03
  11  norm          .10000E-03    11.871        .18946E-05** at limit **
  12  Prefactor     1.8581        2.2655       -.20900E-05   -.11044E-04
  13  norm          .10000E-03    21.372       -.14893E-06** at limit **
  14  Normalizat    1.1798        .19076       -.63359E-06    .31147E-03
  15  Prefactor     .89256        .86068E-01    .13807E-05   -.52328E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 29.6605
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 6.4954
  Prefactor  = 11.6003
  Prefactor  = 13.8701
  norm       = 8.55799
  norm       = 0.000100001
  Prefactor  = 1.85808
  norm       = 0.0001
  Normalizat = 1.17983
  Prefactor  = 0.892556
 **********
 **   18 **HESSE 
 **********

 FCN=   10448.41     FROM HESSE     STATUS=OK           186 CALLS     1527 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.006        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.660        31.036        .73562E-04   -1.4618    
   3  Prefactor     .10000E-03    89.328        .51005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.0395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    58.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.4954        108.27        .15743E-03   -1.5198    
   8  Prefactor     11.600        7.4782        .11762E-03   -1.5027    
   9  Prefactor     13.870        13.752        .10753E-03   -1.4963    
  10  norm          8.5580        3.4978        .11692E-03   -1.5123    
  11  norm          .10000E-03    12.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8581        2.2707        .16475E-03   -1.5435    
  13  norm          .10000E-03    21.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.1798        .22229        .33718E-03   -.87228    
  15  Prefactor     .89256        .10071        .16863E-03   -.96402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.97971e-10
Minuit parameter uncertainties:
  1  2.64505e-05
  2  31.053
  3  0.000242366
  4  3.74694e-06
  5  0.00061954
  6  0.000165148
  7  53.1506
  8  7.4788
  9  13.7549
  10  3.49784
  11  0.00020023
  12  2.27084
  13  5.23578e-05
  14  0.222468
  15  0.100733
Done.

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

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  6.195e-04  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.926e-01  1.007e-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.180e+00  2.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 254.005 20.784
Photon Flux Upper Limit: 9.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/141087/likelihoodResults_242697601_242956801_4FGL_J1656.0+2047_daily_bin13.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): 102
logL (Free Index) = 10448.4077632
delta logL = -8.1835738456e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10448.4076817
delta logL = -3.27027009916e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4214       1.0000          .0000       10.000    
     3 'Normalizat'    1.1798       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89256       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=   10448.41     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      288 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03   10000.0        .36285E-03** at limit **
   2  Index         2.5391        7.1830        .50000       -.28569E-04
   3  Normalizat    1.1798        .18338        .33718E-03    .44642E-04
   4  Prefactor     .89256        .81557E-01    .16863E-03    .12227E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100079
  Index      = 2.53907
  Normalizat = 1.17982
  Prefactor  = 0.892558
 **********
 **   18 **HESSE 
 **********

 FCN=   10448.41     FROM HESSE     STATUS=OK            29 CALLS      317 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    107.43        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5391        6.2686        .50000       -.51460    
   3  Normalizat    1.1798        .22069        .13487E-04   -.87229    
   4  Prefactor     .89256        .98192E-01    .33727E-04   -.96402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23966e-09
Minuit parameter uncertainties:
  1  0.00582276
  2  4.48086
  3  0.22086
  4  0.0982119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/141087': 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) = 10448.407681
delta logL = 3.85938619729e-07

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  1.001e-04  5.823e-03  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.539e+00  4.481e+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:  8.926e-01  9.821e-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:  1.180e+00  2.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 254.005 20.784

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/141087/cmap_HighResolution_242697601_242956801_4FGL_J1656.0+2047_daily_bin13.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.08e-03', job_status='DONE', photon_flux_upper_limit='9.12e-08', time_completed='2021-09-16 00:55:58.499167', job_id='141087', GAL2='0.89', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1631778958.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='13' AND source_name='4FGL J1656.0+2047' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:55:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 141087: <4FGL_J1656.0+2047_daily_bin13> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1656.0+2047_daily_bin13 254.005 20.7841 242697601 242956801 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 :                                   696.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             305.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            931 sec.

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

