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


Performing analysis on: 4FGL_J1656.0+2047_daily_bin18
RA = 254.005, Dec = 20.7841
tmin = 243993601, tmax = 244252801
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='141094', job_status='RUN', time_executed='2021-09-16 00:45:57.205524', time_epoch_executed='1631778357.21' WHERE source_name='4FGL J1656.0+2047' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/141094

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/141094/ft1_4FGL_J1656.0+2047_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/141094/ft2_4FGL_J1656.0+2047_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/141094/ft1_4FGL_J1656.0+2047_daily_bin18.fits outfile=/scratch/kocevski/141094/ft1_filteredMKT_4FGL_J1656.0+2047_daily_bin18.fits ra=254.005 dec=20.7841 rad=12.0 tmin=243993601.0 tmax=244252801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.43
user 1.23
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/141094/ft1_filtered_4FGL_J1656.0+2047_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/141094/ft2_4FGL_J1656.0+2047_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/141094/ltcube_243993601_244252801_4FGL_J1656.0+2047_daily_bin18.fits outfile=/scratch/kocevski/141094/expmap_243993601_244252801_4FGL_J1656.0+2047_daily_bin18.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/141094/ltcube_243993601_244252801_4FGL_J1656.0+2047_daily_bin18.fits
.....................!
real 194.89
user 189.25
sys 5.28

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/141094/ft1_filtered_4FGL_J1656.0+2047_daily_bin18.fits scfile=/scratch/kocevski/141094/ft2_4FGL_J1656.0+2047_daily_bin18.fits outfile=/scratch/kocevski/141094/cmap_243993601_244252801_4FGL_J1656.0+2047_daily_bin18.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/141094/ft1_filtered_4FGL_J1656.0+2047_daily_bin18.fits scfile=/scratch/kocevski/141094/ft2_4FGL_J1656.0+2047_daily_bin18.fits outfile=/scratch/kocevski/141094/cmap_HighResolution_243993601_244252801_4FGL_J1656.0+2047_daily_bin18.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3300       1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.488       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.056       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .21092E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.955       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3141       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    12.563       1.0000         .10000E-03   10000.    
    11 'norm      '    11.256       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.0879       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .96115       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=   7834.772     FROM MIGRAD    STATUS=CONVERGED    271 CALLS     1290 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3317        13.267       -.89498E-06   -.58000E-04
   2  Prefactor     33.498        42.676        .11619E-04   -.13653E-05
   3  Prefactor     10.054        16.828        .63394E-06   -.38378E-04
   4  Prefactor     .10000E-03    3.6663        .84191E-07** at limit **
   5  Prefactor     .10000E-03    73.226        .84510E-06** at limit **
   6  Prefactor     .10000E-03    14.045        .16303E-06** at limit **
   7  Prefactor     11.937        44.230       -.36796E-04   -.67090E-05
   8  Prefactor     5.3176        8.8646        .21225E-05   -.12294E-03
   9  Prefactor     .10000E-03    7.0305       -.29390E-06** at limit **
  10  norm          12.563        4.3048        .23904E-07   -.29850E-04
  11  norm          11.257        8.5292        .20735E-06    .39297E-05
  12  Prefactor     .10000E-03    .97605       -.62149E-07** at limit **
  13  norm          .10000E-03    23.174        .51431E-07** at limit **
  14  Normalizat    1.0879        .22799       -.91189E-06    .85439E-05
  15  Prefactor     .96103        .98704E-01    .29629E-06   -.91996E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.33174
  Prefactor  = 33.4978
  Prefactor  = 10.054
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9368
  Prefactor  = 5.31761
  Prefactor  = 0.0001
  norm       = 12.5634
  norm       = 11.2569
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.0879
  Prefactor  = 0.961032
 **********
 **   18 **HESSE 
 **********

 FCN=   7834.772     FROM HESSE     STATUS=OK           182 CALLS     1472 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3317        13.326        .13120E-03   -1.5097    
   2  Prefactor     33.498        42.670        .69246E-04   -1.4550    
   3  Prefactor     10.054        16.946        .12636E-03   -1.5074    
   4  Prefactor     .10000E-03    3.7484        .16543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    74.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.937        44.245        .11586E-03   -1.5017    
   8  Prefactor     5.3176        8.8329        .17435E-03   -1.5247    
   9  Prefactor     .10000E-03    7.0704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.563        4.3064        .10344E-03   -1.4999    
  11  norm          11.257        8.5314        .11941E-03   -1.5037    
  12  Prefactor     .10000E-03    .98482        .85341E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    23.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.0879        .27523        .35314E-03   -.90141    
  15  Prefactor     .96103        .11978        .16573E-03   -.94040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.71283e-11
Minuit parameter uncertainties:
  1  13.3304
  2  42.7089
  3  16.9542
  4  1.21575e-06
  5  6.28863e-05
  6  3.56154e-07
  7  44.3671
  8  8.83511
  9  1.57213e-05
  10  4.30647
  11  8.53236
  12  9.01496e-07
  13  8.64033e-08
  14  0.275589
  15  0.119818
Done.

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

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  6.289e-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.610e-01  1.198e-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.088e+00  2.756e-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.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/141094/likelihoodResults_243993601_244252801_4FGL_J1656.0+2047_daily_bin18.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) = 7834.77227085
delta logL = -6.4133185333e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7834.6938043
delta logL = 0.078402414023

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0397       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7326       1.0000          .0000       10.000    
     3 'Normalizat'    1.0572       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96742       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=   7834.694     FROM MIGRAD    STATUS=FAILED        88 CALLS      297 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0389        596.47        .28956E-03   -.64483E-03
   2  Index         3.7324        7.0415        .11566E-01   -.17704E-03
   3  Normalizat    1.0572        .23990        .35770E-03   -.41328E-03
   4  Prefactor     .96745        .10545        .16524E-03   -.53915E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7834.694     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      390 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0389        596.47        .21866E-03   -.64483E-03
   2  Index         3.7324        7.0415        .22779E-02   -.17704E-03
   3  Normalizat    1.0572        .23990        .24033E-03   -.41328E-03
   4  Prefactor     .96745        .10545        .85809E-04   -.53915E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7834.694     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      420 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0384        12.950        .11583E-04   -.99841E-03
   2  Index         3.7325        2.3483        .46262E-03   -.13850E-03
   3  Normalizat    1.0572        .27211        .14308E-04   -.43606E-03
   4  Prefactor     .96745        .11803        .33048E-04   -.57249E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.03838
  Index      = 3.73251
  Normalizat = 1.05717
  Prefactor  = 0.967445
 **********
 **   18 **HESSE 
 **********

 FCN=   7834.694     FROM HESSE     STATUS=OK            23 CALLS      443 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0384        12.407        .23165E-05   -1.5422    
   2  Index         3.7325        2.3022        .18505E-04   -.25629    
   3  Normalizat    1.0572        .27215        .28616E-05   -.91139    
   4  Prefactor     .96745        .11804        .66097E-05   -.93823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35203e-09
Minuit parameter uncertainties:
  1  10.0609
  2  2.39943
  3  0.272506
  4  0.118073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/141094': 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) = 7834.69380421
delta logL = 0.0784025076946

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  2.038e+00  1.006e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  3.733e+00  2.399e+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:  9.674e-01  1.181e-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.057e+00  2.725e-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/141094/cmap_HighResolution_243993601_244252801_4FGL_J1656.0+2047_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.35e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-16 00:56:03.018257', job_id='141094', GAL2='0.97', fit_tolerance='1e-08', EG2='1.06', EG='1.09', time_epoch_completed='1631778963.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='7.84e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='18' AND source_name='4FGL J1656.0+2047' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:56:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 141094: <4FGL_J1656.0+2047_daily_bin18> in cluster <slac> Done

Job <4FGL_J1656.0+2047_daily_bin18> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 16 00:40:28 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 00:42:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 16 00:42:21 2021
Terminated at Thu Sep 16 00:56:03 2021
Results reported at Thu Sep 16 00:56:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1656.0+2047_daily_bin18 254.005 20.7841 243993601 244252801 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 :                                   605.48 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            935 sec.

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

