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


Performing analysis on: 4FGL_J1656.0+2047_daily_bin788
RA = 254.005, Dec = 20.7841
tmin = 443577601, tmax = 443836801
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='146694', job_status='RUN', time_executed='2021-09-16 01:03:16.230719', time_epoch_executed='1631779396.23' WHERE source_name='4FGL J1656.0+2047' and cadence='daily' and bin_id='788'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/146694

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/146694/ft1_4FGL_J1656.0+2047_daily_bin788.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/146694/ft2_4FGL_J1656.0+2047_daily_bin788.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/146694/ft1_4FGL_J1656.0+2047_daily_bin788.fits outfile=/scratch/kocevski/146694/ft1_filteredMKT_4FGL_J1656.0+2047_daily_bin788.fits ra=254.005 dec=20.7841 rad=12.0 tmin=443577601.0 tmax=443836801.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.66
user 3.43
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/146694/ft2_4FGL_J1656.0+2047_daily_bin788.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/146694/ft1_filteredMKT_4FGL_J1656.0+2047_daily_bin788.fits evtable="EVENTS" outfile="/scratch/kocevski/146694/ft1_filtered_4FGL_J1656.0+2047_daily_bin788.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.53
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/146694/ft1_filtered_4FGL_J1656.0+2047_daily_bin788.fits" evtable="EVENTS" scfile=/scratch/kocevski/146694/ft2_4FGL_J1656.0+2047_daily_bin788.fits sctable="SC_DATA" outfile=/scratch/kocevski/146694/ltcube_443577601_443836801_4FGL_J1656.0+2047_daily_bin788.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/146694/ft2_4FGL_J1656.0+2047_daily_bin788.fits
.....................!
real 14.74
user 14.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/146694/ft1_filtered_4FGL_J1656.0+2047_daily_bin788.fits evtable="EVENTS" scfile=/scratch/kocevski/146694/ft2_4FGL_J1656.0+2047_daily_bin788.fits sctable="SC_DATA" expcube=/scratch/kocevski/146694/ltcube_443577601_443836801_4FGL_J1656.0+2047_daily_bin788.fits outfile=/scratch/kocevski/146694/expmap_443577601_443836801_4FGL_J1656.0+2047_daily_bin788.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/146694/ltcube_443577601_443836801_4FGL_J1656.0+2047_daily_bin788.fits
.....................!
real 192.99
user 186.99
sys 5.33

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/146694/ft1_filtered_4FGL_J1656.0+2047_daily_bin788.fits scfile=/scratch/kocevski/146694/ft2_4FGL_J1656.0+2047_daily_bin788.fits outfile=/scratch/kocevski/146694/cmap_443577601_443836801_4FGL_J1656.0+2047_daily_bin788.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=254.005 yref=20.7841 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/146694/ft1_filtered_4FGL_J1656.0+2047_daily_bin788.fits scfile=/scratch/kocevski/146694/ft2_4FGL_J1656.0+2047_daily_bin788.fits outfile=/scratch/kocevski/146694/cmap_HighResolution_443577601_443836801_4FGL_J1656.0+2047_daily_bin788.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.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1154       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.216       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.819       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .29845       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.556       1.0000         .10000E-03   10000.    
    10 'norm      '    4.1553       1.0000         .10000E-03   10000.    
    11 'norm      '    12.122       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5096       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.0390       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .98397       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=   9969.417     FROM MIGRAD    STATUS=CONVERGED    273 CALLS     1310 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1151        5.6751        .14163E-05   -.11644E-02
   2  Prefactor     32.213        30.913       -.22562E-05   -.21815E-03
   3  Prefactor     16.819        15.909       -.12953E-05   -.25606E-03
   4  Prefactor     .10000E-03    3.2877       -.90706E-08** at limit **
   5  Prefactor     .10000E-03    10.729        .12933E-06** at limit **
   6  Prefactor     .10000E-03    19.525       -.80565E-06** at limit **
   7  Prefactor     .10003E-03    30.057        .93805E-05** at limit **
   8  Prefactor     .27620        4.5284       -.22531E-05    .11462E-02
   9  Prefactor     11.553        13.216       -.29712E-06   -.30559E-06
  10  norm          4.1553        3.0429       -.19432E-08   -.41065E-04
  11  norm          12.120        12.616       -.30130E-06   -.16612E-04
  12  Prefactor     5.5097        4.1949        .89730E-07    .17300E-03
  13  norm          .10001E-03    32.602       -.56973E-05** at limit **
  14  Normalizat    1.0388        .20857        .64709E-06    .25810E-03
  15  Prefactor     .98411        .90260E-01    .21991E-07    .64299E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.1151
  Prefactor  = 32.2133
  Prefactor  = 16.8189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 0.276204
  Prefactor  = 11.5532
  norm       = 4.15529
  norm       = 12.1204
  Prefactor  = 5.50973
  norm       = 0.000100009
  Normalizat = 1.03878
  Prefactor  = 0.984113
 **********
 **   18 **HESSE 
 **********

 FCN=   9969.417     FROM HESSE     STATUS=OK           184 CALLS     1494 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1151        8.7156        .88881E-03   -1.5256    
   2  Prefactor     32.213        31.123        .70596E-04   -1.4572    
   3  Prefactor     16.819        16.074        .97660E-04   -1.4888    
   4  Prefactor     .10000E-03    3.3713        .35340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    31.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .27620        55.304        .35526E-02   -1.5603    
   9  Prefactor     11.553        13.228        .11785E-03   -1.5028    
  10  norm          4.1553        3.0424        .14272E-03   -1.5300    
  11  norm          12.120        12.604        .11506E-03   -1.5012    
  12  Prefactor     5.5097        4.1909        .15310E-03   -1.5238    
  13  norm          .10001E-03    33.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.0388        .25382        .37064E-03   -.91742    
  15  Prefactor     .98411        .11061        .16572E-03   -.93261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31418e-08
Minuit parameter uncertainties:
  1  8.71776
  2  31.1385
  3  16.0781
  4  8.19704e-07
  5  1.19362e-05
  6  0.000118283
  7  0.00177884
  8  7.82259
  9  13.2318
  10  3.04255
  11  12.6067
  12  4.1911
  13  0.00109068
  14  0.254119
  15  0.110637
Done.

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

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  1.194e-05  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.841e-01  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:  1.039e+00  2.541e-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: 6.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/146694/likelihoodResults_443577601_443836801_4FGL_J1656.0+2047_daily_bin788.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) = 9969.41723922
delta logL = -0.000443060076577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9969.41679623
delta logL = -6.22130755801e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4497       1.0000          .0000       10.000    
     3 'Normalizat'    1.0387       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98416       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=   9969.417     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      247 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10361E-03    12.728        .18142E-01** at limit **
   2  Index         2.3497        5.0704        .50000        .15984E-04
   3  Normalizat    1.0388        .52821E-02    .37064E-03    .20183E-04
   4  Prefactor     .98411        .23212E-02    .16572E-03    .42534E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103607
  Index      = 2.34975
  Normalizat = 1.03878
  Prefactor  = 0.984113
 **********
 **   18 **HESSE 
 **********

 FCN=   9969.417     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10361E-03    79.024        .33930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3497        6.1259        .50000       -.55866    
   3  Normalizat    1.0388        .13179E-01    .14826E-04   -.91742    
   4  Prefactor     .98411        .57915E-02    .33143E-04   -.93261    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.85391e-09
Minuit parameter uncertainties:
  1  0.0338108
  2  351.447
  3  0.0131791
  4  0.00579147
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/146694': 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) = 9969.41679575
delta logL = 4.13983798353e-07

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  1.036e-04  3.381e-02  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.350e+00  3.514e+02  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.841e-01  5.791e-03  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.039e+00  1.318e-02  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/146694/cmap_HighResolution_443577601_443836801_4FGL_J1656.0+2047_daily_bin788.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.85e-03', job_status='DONE', photon_flux_upper_limit='6.24e-08', time_completed='2021-09-16 01:14:30.560672', job_id='146694', GAL2='0.98', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1631780070.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='4.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='788' AND source_name='4FGL J1656.0+2047' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 01:14:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 146694: <4FGL_J1656.0+2047_daily_bin788> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1656.0+2047_daily_bin788 254.005 20.7841 443577601 443836801 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 :                                   672.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             366.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            840 sec.

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

