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


Performing analysis on: 4FGL_J1656.0+2047_daily_bin1045
RA = 254.005, Dec = 20.7841
tmin = 510192001, tmax = 510451201
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='148103', job_status='RUN', time_executed='2021-09-16 01:12:07.954425', time_epoch_executed='1631779927.95' WHERE source_name='4FGL J1656.0+2047' and cadence='daily' and bin_id='1045'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/148103

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/148103/ft1_4FGL_J1656.0+2047_daily_bin1045.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/148103/ft2_4FGL_J1656.0+2047_daily_bin1045.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/148103/ft1_4FGL_J1656.0+2047_daily_bin1045.fits outfile=/scratch/kocevski/148103/ft1_filteredMKT_4FGL_J1656.0+2047_daily_bin1045.fits ra=254.005 dec=20.7841 rad=12.0 tmin=510192001.0 tmax=510451201.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.58
user 3.33
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/148103/ft1_filtered_4FGL_J1656.0+2047_daily_bin1045.fits" evtable="EVENTS" scfile=/scratch/kocevski/148103/ft2_4FGL_J1656.0+2047_daily_bin1045.fits sctable="SC_DATA" outfile=/scratch/kocevski/148103/ltcube_510192001_510451201_4FGL_J1656.0+2047_daily_bin1045.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/148103/ft2_4FGL_J1656.0+2047_daily_bin1045.fits
.....................!
real 11.70
user 11.38
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/148103/ft1_filtered_4FGL_J1656.0+2047_daily_bin1045.fits evtable="EVENTS" scfile=/scratch/kocevski/148103/ft2_4FGL_J1656.0+2047_daily_bin1045.fits sctable="SC_DATA" expcube=/scratch/kocevski/148103/ltcube_510192001_510451201_4FGL_J1656.0+2047_daily_bin1045.fits outfile=/scratch/kocevski/148103/expmap_510192001_510451201_4FGL_J1656.0+2047_daily_bin1045.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/148103/ltcube_510192001_510451201_4FGL_J1656.0+2047_daily_bin1045.fits
.....................!
real 153.18
user 148.88
sys 3.99

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/148103/ft1_filtered_4FGL_J1656.0+2047_daily_bin1045.fits scfile=/scratch/kocevski/148103/ft2_4FGL_J1656.0+2047_daily_bin1045.fits outfile=/scratch/kocevski/148103/cmap_510192001_510451201_4FGL_J1656.0+2047_daily_bin1045.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.51
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/148103/ft1_filtered_4FGL_J1656.0+2047_daily_bin1045.fits scfile=/scratch/kocevski/148103/ft2_4FGL_J1656.0+2047_daily_bin1045.fits outfile=/scratch/kocevski/148103/cmap_HighResolution_510192001_510451201_4FGL_J1656.0+2047_daily_bin1045.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.49
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9380       1.0000         .10000E-03   10000.    
     2 'Prefactor '    98.233       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.117       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24564       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.751       1.0000         .10000E-03   10000.    
    10 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.509       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4940       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.0015       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .89060       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=   7055.424     FROM MIGRAD    STATUS=CONVERGED    274 CALLS     1323 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9379        14.256       -.26399E-06   -.43950E-04
   2  Prefactor     98.233        52.029       -.45607E-06   -.62976E-05
   3  Prefactor     23.120        14.521        .67579E-07    .29614E-04
   4  Prefactor     .24848        2.4792       -.13119E-06   -.38476E-03
   5  Prefactor     .10000E-03    9.7825       -.26383E-05** at limit **
   6  Prefactor     .10000E-03    22.155       -.22943E-04** at limit **
   7  Prefactor     .10000E-03    26.735        .37009E-04** at limit **
   8  Prefactor     .10000E-03    10.016        .25820E-05** at limit **
   9  Prefactor     12.750        13.541       -.14876E-05   -.99933E-03
  10  norm          .10000E-03    1.5200        .10242E-06** at limit **
  11  norm          13.508        12.335        .77815E-07   -.20339E-04
  12  Prefactor     5.4939        3.6993       -.71107E-07   -.29252E-03
  13  norm          .10000E-03    42.544       -.20687E-04** at limit **
  14  Normalizat    1.0013        .22797        .28628E-07    .85656E-05
  15  Prefactor     .89073        .99820E-01    .30677E-06   -.43402E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.93785
  Prefactor  = 98.2329
  Prefactor  = 23.1199
  Prefactor  = 0.248484
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7503
  norm       = 0.0001
  norm       = 13.5083
  Prefactor  = 5.49386
  norm       = 0.0001
  Normalizat = 1.00125
  Prefactor  = 0.890729
 **********
 **   18 **HESSE 
 **********

 FCN=   7055.424     FROM HESSE     STATUS=OK           182 CALLS     1505 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9379        14.344        .12711E-03   -1.5077    
   2  Prefactor     98.233        52.047        .40558E-04   -1.3722    
   3  Prefactor     23.120        14.572        .83310E-04   -1.4746    
   4  Prefactor     .24848        15.367        .25091E-02   -1.5608    
   5  Prefactor     .10000E-03    9.7950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.305        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.750        13.685        .56088E-03   -1.4994    
  10  norm          .10000E-03    1.5391        .10108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.508        12.344        .10898E-03   -1.4973    
  12  Prefactor     5.4939        3.6993        .12241E-03   -1.5239    
  13  norm          .10000E-03    42.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.0013        .27833        .33739E-03   -.92988    
  15  Prefactor     .89073        .12279        .16104E-03   -.96466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12189e-09
Minuit parameter uncertainties:
  1  14.3487
  2  52.0714
  3  14.5738
  4  3.90841
  5  2.81137e-06
  6  2.74039e-05
  7  9.66607e-06
  8  3.98363e-05
  9  13.6886
  10  1.03558e-06
  11  12.3461
  12  3.69941
  13  5.92401e-08
  14  0.278737
  15  0.122832
Done.

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

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  2.811e-06  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.907e-01  1.228e-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.001e+00  2.787e-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.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/148103/likelihoodResults_510192001_510451201_4FGL_J1656.0+2047_daily_bin1045.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) = 7055.42488687
delta logL = -0.000486537661345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7055.42440049
delta logL = -1.57560862135e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4729       1.0000          .0000       10.000    
     3 'Normalizat'    1.0012       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89072       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7055.424     FROM MIGRAD    STATUS=FAILED        87 CALLS      244 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10058E-03    1107.5        .18142E-02** at limit **
   2  Index         2.3624        8.5593        .50000        .26263E-05
   3  Normalizat    1.0013        .69590E-01    .33739E-03   -.14671E-03
   4  Prefactor     .89073        .31716E-01    .16104E-03   -.20892E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7055.424     FROM SIMPLEX   STATUS=UNCHANGED    161 CALLS      405 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10058E-03    1107.5        .47059E-03** at limit **
   2  Index         2.3624        8.5593        .21501E-04    .26263E-05
   3  Normalizat    1.0013        .69590E-01    .61468E-06   -.14671E-03
   4  Prefactor     .89073        .31716E-01    .22303E-06   -.20892E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7055.424     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      448 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.839        .36285E-03** at limit **
   2  Index         2.1813        5.6524        .50000       -.40382E-07
   3  Normalizat    1.0013        .26321        .13495E-04    .10766E-03
   4  Prefactor     .89073        .12012        .32208E-04    .26961E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.18134
  Normalizat = 1.00125
  Prefactor  = 0.890729
 **********
 **   18 **HESSE 
 **********

 FCN=   7055.424     FROM HESSE     STATUS=OK            29 CALLS      477 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.147        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1813        5.4951        .50000       -.59890    
   3  Normalizat    1.0013        .26305        .26991E-05   -.92988    
   4  Prefactor     .89073        .12007        .64415E-05   -.96466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84138e-11
Minuit parameter uncertainties:
  1  1.75323e-05
  2  318.303
  3  0.263396
  4  0.120101
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/148103': 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) = 7055.42440018
delta logL = 1.48049366544e-07

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  1.753e-05  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.181e+00  3.183e+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:  8.907e-01  1.201e-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.001e+00  2.634e-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/148103/cmap_HighResolution_510192001_510451201_4FGL_J1656.0+2047_daily_bin1045.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.90e-03', job_status='DONE', photon_flux_upper_limit='6.31e-08', time_completed='2021-09-16 01:20:24.865955', job_id='148103', GAL2='0.89', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631780424.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1045' AND source_name='4FGL J1656.0+2047' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 01:20:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 148103: <4FGL_J1656.0+2047_daily_bin1045> in cluster <slac> Done

Job <4FGL_J1656.0+2047_daily_bin1045> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 16 01:05:24 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 01:09:29 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:09:29 2021
Terminated at Thu Sep 16 01:20:25 2021
Results reported at Thu Sep 16 01:20:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1656.0+2047_daily_bin1045 254.005 20.7841 510192001 510451201 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 :                                   487.49 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             260.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   656 sec.
    Turnaround time :                            901 sec.

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

