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


Performing analysis on: 4FGL_J1656.0+2047_daily_bin1011
RA = 254.005, Dec = 20.7841
tmin = 501379201, tmax = 501638401
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='148049', job_status='RUN', time_executed='2021-09-16 01:10:59.108376', time_epoch_executed='1631779859.11' WHERE source_name='4FGL J1656.0+2047' and cadence='daily' and bin_id='1011'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/148049

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/148049/ft1_4FGL_J1656.0+2047_daily_bin1011.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/148049/ft2_4FGL_J1656.0+2047_daily_bin1011.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/148049/ft1_4FGL_J1656.0+2047_daily_bin1011.fits outfile=/scratch/kocevski/148049/ft1_filteredMKT_4FGL_J1656.0+2047_daily_bin1011.fits ra=254.005 dec=20.7841 rad=12.0 tmin=501379201.0 tmax=501638401.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.62
user 3.37
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/148049/ft1_filtered_4FGL_J1656.0+2047_daily_bin1011.fits" evtable="EVENTS" scfile=/scratch/kocevski/148049/ft2_4FGL_J1656.0+2047_daily_bin1011.fits sctable="SC_DATA" outfile=/scratch/kocevski/148049/ltcube_501379201_501638401_4FGL_J1656.0+2047_daily_bin1011.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/148049/ft2_4FGL_J1656.0+2047_daily_bin1011.fits
.....................!
real 14.44
user 14.05
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/148049/ft1_filtered_4FGL_J1656.0+2047_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/148049/ft2_4FGL_J1656.0+2047_daily_bin1011.fits sctable="SC_DATA" expcube=/scratch/kocevski/148049/ltcube_501379201_501638401_4FGL_J1656.0+2047_daily_bin1011.fits outfile=/scratch/kocevski/148049/expmap_501379201_501638401_4FGL_J1656.0+2047_daily_bin1011.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/148049/ltcube_501379201_501638401_4FGL_J1656.0+2047_daily_bin1011.fits
.....................!
real 192.08
user 186.84
sys 4.45

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1817       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4766       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.254       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.3813       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4160       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .22918E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    3.3760       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7431       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Normalizat'    .78946       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.1100       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=   8261.791     FROM MIGRAD    STATUS=CONVERGED    285 CALLS     1342 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1841        14.382       -.14615E-07    .51040E-05
   2  Prefactor     .10000E-03    17.071       -.45835E-06** at limit **
   3  Prefactor     .10000E-03    5.7847        .39601E-07** at limit **
   4  Prefactor     3.4801        5.8922       -.68350E-06   -.41095E-04
   5  Prefactor     22.236        26.375        .19986E-05    .24626E-04
   6  Prefactor     .10000E-03    27.892       -.26546E-05** at limit **
   7  Prefactor     9.3832        87.826       -.88636E-06   -.29326E-05
   8  Prefactor     6.4160        6.6855        .10583E-06    .11484E-05
   9  Prefactor     .10000E-03    4.7635       -.27048E-07** at limit **
  10  norm          .35347E-01    1.5672        .55727E-06   -.67814E-03
  11  norm          3.3750        8.3617        .28343E-05    .92040E-04
  12  Prefactor     2.7434        3.0658       -.27259E-06   -.16485E-04
  13  norm          .10000E-03    22.606        .24307E-05** at limit **
  14  Normalizat    .78932        .22726        .33327E-06   -.22240E-04
  15  Prefactor     1.1100        .10114       -.13489E-06   -.17238E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.18405
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.48009
  Prefactor  = 22.2363
  Prefactor  = 0.0001
  Prefactor  = 9.38321
  Prefactor  = 6.41604
  Prefactor  = 0.0001
  norm       = 0.0353471
  norm       = 3.37505
  Prefactor  = 2.74337
  norm       = 0.0001
  Normalizat = 0.789316
  Prefactor  = 1.11001
 **********
 **   18 **HESSE 
 **********

 FCN=   8261.791     FROM HESSE     STATUS=OK           194 CALLS     1536 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1841        14.423        .19708E-03   -1.5299    
   2  Prefactor     .10000E-03    17.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.8165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.4801        5.8985        .21687E-03   -1.5335    
   5  Prefactor     22.236        26.402        .84908E-04   -1.4765    
   6  Prefactor     .10000E-03    27.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.3832        87.673        .13084E-03   -1.5095    
   8  Prefactor     6.4160        6.6710        .15845E-03   -1.5201    
   9  Prefactor     .10000E-03    4.7754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .35347E-01    2.8320        .36202E-01   -1.5670    
  11  norm          3.3750        8.3760        .11011E-02   -1.5341    
  12  Prefactor     2.7434        3.0588        .15418E-03   -1.5377    
  13  norm          .10000E-03    22.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    .78932        .26265        .38996E-03   -1.0047    
  15  Prefactor     1.1100        .11857        .15482E-03   -.89147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57448e-11
Minuit parameter uncertainties:
  1  14.4347
  2  5.20331e-06
  3  4.95498e-06
  4  5.89949
  5  26.4157
  6  2.07868e-05
  7  57.4748
  8  6.67182
  9  4.6088e-06
  10  0.631915
  11  8.37886
  12  3.05901
  13  3.07414e-05
  14  0.263073
  15  0.118593
Done.

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

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  2.224e+01  2.642e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.477e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  8.932e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  1.110e+00  1.186e-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:  7.893e-01  2.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.99
Ra Dec: 254.005 20.784
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/148049/likelihoodResults_501379201_501638401_4FGL_J1656.0+2047_daily_bin1011.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8261.54513606
delta logL = 0.245679671341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8261.52290008
delta logL = 0.267915647124

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7044       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4518       1.0000          .0000       10.000    
     3 'Normalizat'    .74949       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1220       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8261.523     FROM MIGRAD    STATUS=FAILED       104 CALLS      302 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7167        295.45        .72235E-03   -.16415E-03
   2  Index         3.4519        6.5891        .77720E-02    .67437E-03
   3  Normalizat    .74940        .25442        .39934E-03    .37522E-04
   4  Prefactor     1.1220        .11038        .15406E-03    .94162E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8261.523     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      388 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7167        295.45        .30029E-03   -.16415E-03
   2  Index         3.4519        6.5891        .13084E-02    .67437E-03
   3  Normalizat    .74940        .25442        .29900E-03    .37522E-04
   4  Prefactor     1.1220        .11038        .13209E-03    .94162E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8261.523     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      424 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7167        23.998        .28894E-04   -.17202E-03
   2  Index         3.4519        1.8446        .15544E-02   -.33000E-04
   3  Normalizat    .74940        .25728        .15974E-04    .34163E-04
   4  Prefactor     1.1220        .11720        .61624E-05    .83388E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.71665
  Index      = 3.45187
  Normalizat = 0.749403
  Prefactor  = 1.12201
 **********
 **   18 **HESSE 
 **********

 FCN=   8261.523     FROM HESSE     STATUS=OK            23 CALLS      447 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7167        20.483        .57788E-05   -1.5152    
   2  Index         3.4519        1.5846        .62176E-04   -.31480    
   3  Normalizat    .74940        .25685        .31947E-05   -1.0197    
   4  Prefactor     1.1220        .11713        .12325E-05   -.88766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54205e-11
Minuit parameter uncertainties:
  1  20.502
  2  1.61552
  3  0.257265
  4  0.117161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/148049': 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) = 8261.52289824
delta logL = 0.267917484356

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  7.717e+00  2.050e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  3.452e+00  1.616e+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:  1.122e+00  1.172e-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:  7.494e-01  2.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.57
Ra Dec: 254.005 20.784
Photon Index (Free Index): 3.45 +/- 1.62
Photon Flux (Free Index): 6.05e-08 +/- 6.01e-08
Energy Flux (Free Index): 1.02e-05 +/- 9.38e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/148049/cmap_HighResolution_501379201_501638401_4FGL_J1656.0+2047_daily_bin1011.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.55e-03', comment='SUCCESS', energy_flux2='1.02e-05', dlogl='2.68e-01', photon_flux2='6.05e-08', job_status='DONE', time_completed='2021-09-16 01:21:47.555930', photon_index_error2='1.62', photon_index2='3.45', ts='0.99', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='9.38e-06', EG='0.79', time_epoch_completed='1631780507.56', return_code='0', job_id='148049', GAL2='1.12', EG2='0.75', return_code2='0', photon_flux_error2='6.01e-08', ts2='1.57', photon_index='2.48' WHERE bin_id='1011' AND source_name='4FGL J1656.0+2047' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 01:21:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 148049: <4FGL_J1656.0+2047_daily_bin1011> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1656.0+2047_daily_bin1011 254.005 20.7841 501379201 501638401 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 :                                   646.53 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            989 sec.

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

