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


Performing analysis on: 4FGL_J1656.0+2047_daily_bin1090
RA = 254.005, Dec = 20.7841
tmin = 521856001, tmax = 522115201
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='148172', job_status='RUN', time_executed='2021-09-16 01:13:27.312697', time_epoch_executed='1631780007.31' WHERE source_name='4FGL J1656.0+2047' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/148172

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/148172/ft1_4FGL_J1656.0+2047_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/148172/ft2_4FGL_J1656.0+2047_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/148172/ft1_4FGL_J1656.0+2047_daily_bin1090.fits outfile=/scratch/kocevski/148172/ft1_filteredMKT_4FGL_J1656.0+2047_daily_bin1090.fits ra=254.005 dec=20.7841 rad=12.0 tmin=521856001.0 tmax=522115201.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.08
user 2.86
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/148172/ft1_filtered_4FGL_J1656.0+2047_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/148172/ft2_4FGL_J1656.0+2047_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/148172/ltcube_521856001_522115201_4FGL_J1656.0+2047_daily_bin1090.fits outfile=/scratch/kocevski/148172/expmap_521856001_522115201_4FGL_J1656.0+2047_daily_bin1090.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/148172/ltcube_521856001_522115201_4FGL_J1656.0+2047_daily_bin1090.fits
.....................!
real 156.37
user 152.05
sys 3.98

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/148172/ft1_filtered_4FGL_J1656.0+2047_daily_bin1090.fits scfile=/scratch/kocevski/148172/ft2_4FGL_J1656.0+2047_daily_bin1090.fits outfile=/scratch/kocevski/148172/cmap_521856001_522115201_4FGL_J1656.0+2047_daily_bin1090.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.47
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/148172/ft1_filtered_4FGL_J1656.0+2047_daily_bin1090.fits scfile=/scratch/kocevski/148172/ft2_4FGL_J1656.0+2047_daily_bin1090.fits outfile=/scratch/kocevski/148172/cmap_HighResolution_521856001_522115201_4FGL_J1656.0+2047_daily_bin1090.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.51
user 0.32
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.303       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.335       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.9220       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .63187E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6007       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10413E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .89196       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .95887       1.0000         .10000E-03   10000.    
    13 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.0151       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .88888       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=   8317.699     FROM MIGRAD    STATUS=CONVERGED    302 CALLS     1346 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.293        13.717        .12607E-06    .10212E-06
   2  Prefactor     .10000E-03    41.824       -.38089E-06** at limit **
   3  Prefactor     19.317        18.365        .69771E-06    .29042E-03
   4  Prefactor     9.9245        8.0570        .18896E-06    .62440E-04
   5  Prefactor     .10000E-03    26.547       -.87079E-07** at limit **
   6  Prefactor     .10000E-03    16.149        .10490E-06** at limit **
   7  Prefactor     .10000E-03    494.62       -.25061E-05** at limit **
   8  Prefactor     8.5908        8.2387        .22217E-07   -.10193E-04
   9  Prefactor     .10000E-03    7.3690       -.58854E-07** at limit **
  10  norm          .10000E-03    .91560       -.21556E-07** at limit **
  11  norm          .92015        20.194        .56130E-05   -.89874E-04
  12  Prefactor     .95007        3.5475       -.36245E-06   -.49190E-03
  13  norm          .10000E-03    31.077        .24783E-06** at limit **
  14  Normalizat    1.0151        .22589       -.15325E-05    .46302E-04
  15  Prefactor     .88890        .91874E-01    .40934E-06   -.15859E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.2929
  Prefactor  = 0.0001
  Prefactor  = 19.3168
  Prefactor  = 9.92447
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.59081
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.920154
  Prefactor  = 0.950072
  norm       = 0.0001
  Normalizat = 1.01512
  Prefactor  = 0.888895
 **********
 **   18 **HESSE 
 **********

 FCN=   8317.699     FROM HESSE     STATUS=OK           180 CALLS     1526 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.293        13.725        .86782E-04   -1.4785    
   2  Prefactor     .10000E-03    41.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.317        18.641        .91088E-04   -1.4829    
   4  Prefactor     9.9245        8.0498        .12721E-03   -1.5078    
   5  Prefactor     .10000E-03    26.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    505.84        .37722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.5908        8.2336        .13668E-03   -1.5122    
   9  Prefactor     .10000E-03    7.3909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .92378        .85199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .92015        20.204        .51113E-03   -1.5516    
  12  Prefactor     .95007        3.3266        .26696E-03   -1.5513    
  13  norm          .10000E-03    31.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.0151        .26669        .35728E-03   -.92526    
  15  Prefactor     .88890        .11058        .16097E-03   -.96530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05168e-10
Minuit parameter uncertainties:
  1  13.7274
  2  0.000129571
  3  18.6468
  4  8.05068
  5  6.09529e-05
  6  1.00916e-06
  7  0.00174294
  8  8.23466
  9  3.94001e-06
  10  6.22615e-07
  11  8.62632
  12  3.32724
  13  0.000144803
  14  0.267038
  15  0.110607
Done.

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

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  6.095e-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:  8.889e-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.015e+00  2.670e-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: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/148172/likelihoodResults_521856001_522115201_4FGL_J1656.0+2047_daily_bin1090.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) = 8317.69902886
delta logL = -0.000179044949618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8317.6988501
delta logL = -2.8932117857e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3955       1.0000          .0000       10.000    
     3 'Normalizat'    1.0151       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88890       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=   8317.699     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      275 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    7261.1        .18142E-02** at limit **
   2  Index         2.4333        5.7269        .50000       -.14863E-04
   3  Normalizat    1.0151        .15213        .35728E-03   -.57912E-05
   4  Prefactor     .88890        .65054E-01    .16097E-03    .28420E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.43326
  Normalizat = 1.01512
  Prefactor  = 0.888897
 **********
 **   18 **HESSE 
 **********

 FCN=   8317.699     FROM HESSE     STATUS=OK            29 CALLS      304 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    25.976        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4333        6.2166        .50000       -.53908    
   3  Normalizat    1.0151        .25011        .14291E-04   -.92526    
   4  Prefactor     .88890        .10707        .32194E-04   -.96530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55099e-10
Minuit parameter uncertainties:
  1  0.000754779
  2  4.43298
  3  0.250403
  4  0.107092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/148172': 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) = 8317.69884997
delta logL = -1.5544173948e-07

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  7.548e-04  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.433e+00  4.433e+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.889e-01  1.071e-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.015e+00  2.504e-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/148172/cmap_HighResolution_521856001_522115201_4FGL_J1656.0+2047_daily_bin1090.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.47e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-16 01:21:54.147247', job_id='148172', GAL2='0.89', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1631780514.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='-1.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1090' AND source_name='4FGL J1656.0+2047' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 01:21:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 148172: <4FGL_J1656.0+2047_daily_bin1090> in cluster <slac> Done

Job <4FGL_J1656.0+2047_daily_bin1090> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 16 01:05:30 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 01:10:06 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:10:06 2021
Terminated at Thu Sep 16 01:21:54 2021
Results reported at Thu Sep 16 01:21:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1656.0+2047_daily_bin1090 254.005 20.7841 521856001 522115201 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 :                                   503.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             234.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            984 sec.

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

