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


Performing analysis on: 4FGL_J1656.0+2047_daily_bin1029
RA = 254.005, Dec = 20.7841
tmin = 506044801, tmax = 506304001
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='148077', job_status='RUN', time_executed='2021-09-16 01:12:03.916754', time_epoch_executed='1631779923.92' WHERE source_name='4FGL J1656.0+2047' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/148077

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/148077/ft1_4FGL_J1656.0+2047_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/148077/ft2_4FGL_J1656.0+2047_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/148077/ft1_4FGL_J1656.0+2047_daily_bin1029.fits outfile=/scratch/kocevski/148077/ft1_filteredMKT_4FGL_J1656.0+2047_daily_bin1029.fits ra=254.005 dec=20.7841 rad=12.0 tmin=506044801.0 tmax=506304001.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 4.38
user 4.13
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/148077/ft1_filtered_4FGL_J1656.0+2047_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/148077/ft2_4FGL_J1656.0+2047_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/148077/ltcube_506044801_506304001_4FGL_J1656.0+2047_daily_bin1029.fits outfile=/scratch/kocevski/148077/expmap_506044801_506304001_4FGL_J1656.0+2047_daily_bin1029.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/148077/ltcube_506044801_506304001_4FGL_J1656.0+2047_daily_bin1029.fits
.....................!
real 192.03
user 186.98
sys 4.60

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/148077/ft1_filtered_4FGL_J1656.0+2047_daily_bin1029.fits scfile=/scratch/kocevski/148077/ft2_4FGL_J1656.0+2047_daily_bin1029.fits outfile=/scratch/kocevski/148077/cmap_506044801_506304001_4FGL_J1656.0+2047_daily_bin1029.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.59
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/148077/ft1_filtered_4FGL_J1656.0+2047_daily_bin1029.fits scfile=/scratch/kocevski/148077/ft2_4FGL_J1656.0+2047_daily_bin1029.fits outfile=/scratch/kocevski/148077/cmap_HighResolution_506044801_506304001_4FGL_J1656.0+2047_daily_bin1029.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.043       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.908       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0941       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10426E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.064       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4535       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    33.619       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9532       1.0000         .10000E-03   10000.    
    13 'norm      '    48.099       1.0000         .10000E-03   10000.    
    14 'Normalizat'    .68629       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.0772       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7323.290     FROM MIGRAD    STATUS=CONVERGED     67 CALLS     1096 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.045        1.0974        .51447E-06    .23260E-04
   2  Prefactor     .10000E-03    40.864        .60892E-04** at limit **
   3  Prefactor     32.910        1.0851       -.41098E-06    .23574E-03
   4  Prefactor     4.0928        5.8716       -.34532E-05   -.75872E-04
   5  Prefactor     .10000E-03    38.334       -.54696E-04** at limit **
   6  Prefactor     35.065        1.0200        .14295E-06   -.25258E-03
   7  Prefactor     .10000E-03    139.25       -.17490E-04** at limit **
   8  Prefactor     4.4486        7.9544        .28537E-05   -.13045E-03
   9  Prefactor     .10000E-03    6.2632        .33281E-05** at limit **
  10  norm          .10000E-03    2.0502        .62635E-06** at limit **
  11  norm          33.619        1.0423        .28323E-07   -.35096E-04
  12  Prefactor     2.9533        3.5055        .76916E-07   -.60179E-04
  13  norm          48.101        1.0708        .28596E-06   -.63809E-03
  14  Normalizat    .68621        .26625        .11231E-05   -.85731E-04
  15  Prefactor     1.0772        .12341       -.60104E-06   -.17598E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.0446
  Prefactor  = 0.0001
  Prefactor  = 32.9096
  Prefactor  = 4.09276
  Prefactor  = 0.0001
  Prefactor  = 35.0652
  Prefactor  = 0.000100002
  Prefactor  = 4.44864
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 33.6194
  Prefactor  = 2.95333
  norm       = 48.1006
  Normalizat = 0.686205
  Prefactor  = 1.07715
 **********
 **   18 **HESSE 
 **********

 FCN=   7323.290     FROM HESSE     STATUS=OK           216 CALLS     1312 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.045        13.555        .20423E-02   -1.4727    
   2  Prefactor     .10000E-03    40.671        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.910        18.914        .17463E-02   -1.4560    
   4  Prefactor     4.0928        5.9465        .49811E-02   -1.5303    
   5  Prefactor     .10000E-03    37.954        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     35.065        40.164        .16919E-02   -1.4523    
   7  Prefactor     .10000E-03    138.77        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.4486        7.9839        .47702E-02   -1.5286    
   9  Prefactor     .10000E-03    6.2443        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.9791        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          33.619        16.762        .17278E-02   -1.4548    
  12  Prefactor     2.9533        3.8298        .59080E-02   -1.5364    
  13  norm          48.101        47.391        .14455E-02   -1.4320    
  14  Normalizat    .68621        .24643        .93765E-01   -1.0444    
  15  Prefactor     1.0772        .10869        .38527E-01   -.90200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33614e-07
Minuit parameter uncertainties:
  1  13.557
  2  0.0001263
  3  18.9172
  4  5.94738
  5  0.000235923
  6  40.1951
  7  0.00106137
  8  7.9858
  9  3.79428e-05
  10  4.57475e-06
  11  16.7645
  12  3.83011
  13  47.4284
  14  0.246828
  15  0.108717
Done.

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

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  2.359e-04  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.077e+00  1.087e-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:  6.862e-01  2.468e-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: 8.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/148077/likelihoodResults_506044801_506304001_4FGL_J1656.0+2047_daily_bin1029.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) = 7323.28987879
delta logL = -0.000124213337585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7323.28987879
delta logL = -0.000124205780594

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96359E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4774       1.0000          .0000       10.000    
     3 'Normalizat'    .68620       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0772       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=   7322.608     FROM MIGRAD    STATUS=CONVERGED    160 CALLS      307 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.027        673.72        .36285E-02    .19643E-03
   2  Index         1.1817        8.7243        .20000        .13622E-03
   3  Normalizat    .68782        .89524E-01    .41542E-03   -.18443E-03
   4  Prefactor     1.0733        .42072E-01    .15549E-03   -.29661E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0274
  Index      = 1.18171
  Normalizat = 0.687823
  Prefactor  = 1.07331
 **********
 **   18 **HESSE 
 **********

 FCN=   7322.608     FROM HESSE     STATUS=OK            27 CALLS      334 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.027        23.946        .14514E-03   -1.5044    
   2  Index         1.1817        .80479        .11405E-01   -2.2726    
   3  Normalizat    .68782        .26268        .16617E-04   -1.0438    
   4  Prefactor     1.0733        .12208        .31099E-04   -.90324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8834e-10
Minuit parameter uncertainties:
  1  23.967
  2  0.813368
  3  0.26316
  4  0.122107
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/148077': 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) = 7322.60780294
delta logL = 0.681951639357

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  1.103e+01  2.397e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  1.182e+00  8.134e-01  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.073e+00  1.221e-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:  6.878e-01  2.632e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 254.005 20.784
Photon Index (Free Index): 1.18 +/- 0.81
Photon Flux (Free Index): 5.77e-09 +/- 1.47e-08
Energy Flux (Free Index): 5.09e-05 +/- 2.44e-04

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/148077/cmap_HighResolution_506044801_506304001_4FGL_J1656.0+2047_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.95e-03', comment='SUCCESS', energy_flux2='5.09e-05', dlogl='6.82e-01', photon_flux2='5.77e-09', job_status='DONE', time_completed='2021-09-16 01:21:54.682972', photon_index_error2='0.81', photon_index2='1.18', ts='-0.00', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='8.95e-08', energy_flux_error2='2.44e-04', EG='0.69', time_epoch_completed='1631780514.68', return_code='0', job_id='148077', GAL2='1.07', EG2='0.69', return_code2='0', photon_flux_error2='1.47e-08', ts2='1.36', photon_index='2.48' WHERE bin_id='1029' 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@bullet0296>
Subject: Job 148077: <4FGL_J1656.0+2047_daily_bin1029> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1656.0+2047_daily_bin1029 254.005 20.7841 506044801 506304001 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 :                                   583.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            993 sec.

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

