aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 25 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7481
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2056.2-4714_daily_bin1731
RA = 314.072, Dec = -47.2369
tmin = 688003201, tmax = 688262401
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='551006', job_status='RUN', time_executed='2022-10-24 00:40:48.163206', time_epoch_executed='1666597248.16' WHERE source_name='4FGL J2056.2-4714' and cadence='daily' and bin_id='1731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551006

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551006/ft1_4FGL_J2056.2-4714_daily_bin1731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551006/ft2_4FGL_J2056.2-4714_daily_bin1731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551006/ft1_4FGL_J2056.2-4714_daily_bin1731.fits outfile=/scratch/kocevski/551006/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1731.fits ra=314.072 dec=-47.2369 rad=12.0 tmin=688003201.0 tmax=688262401.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.53
user 3.32
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/551006/ft2_4FGL_J2056.2-4714_daily_bin1731.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/551006/ft2_4FGL_J2056.2-4714_daily_bin1731.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/551006/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1731.fits evtable="EVENTS" outfile="/scratch/kocevski/551006/ft1_filtered_4FGL_J2056.2-4714_daily_bin1731.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 624

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551006/ft1_filtered_4FGL_J2056.2-4714_daily_bin1731.fits" evtable="EVENTS" scfile=/scratch/kocevski/551006/ft2_4FGL_J2056.2-4714_daily_bin1731.fits sctable="SC_DATA" outfile=/scratch/kocevski/551006/ltcube_688003201_688262401_4FGL_J2056.2-4714_daily_bin1731.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/551006/ft2_4FGL_J2056.2-4714_daily_bin1731.fits
.....................!
real 12.61
user 12.19
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551006/ft1_filtered_4FGL_J2056.2-4714_daily_bin1731.fits evtable="EVENTS" scfile=/scratch/kocevski/551006/ft2_4FGL_J2056.2-4714_daily_bin1731.fits sctable="SC_DATA" expcube=/scratch/kocevski/551006/ltcube_688003201_688262401_4FGL_J2056.2-4714_daily_bin1731.fits outfile=/scratch/kocevski/551006/expmap_688003201_688262401_4FGL_J2056.2-4714_daily_bin1731.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/551006/ltcube_688003201_688262401_4FGL_J2056.2-4714_daily_bin1731.fits
.....................!
real 192.78
user 186.88
sys 5.02

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 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J2056.2-4714 @ 314.072 -47.2369

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/551006/ft1_filtered_4FGL_J2056.2-4714_daily_bin1731.fits scfile=/scratch/kocevski/551006/ft2_4FGL_J2056.2-4714_daily_bin1731.fits outfile=/scratch/kocevski/551006/cmap_688003201_688262401_4FGL_J2056.2-4714_daily_bin1731.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=314.072 yref=-47.2369 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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551006/ft1_filtered_4FGL_J2056.2-4714_daily_bin1731.fits scfile=/scratch/kocevski/551006/ft2_4FGL_J2056.2-4714_daily_bin1731.fits outfile=/scratch/kocevski/551006/cmap_HighResolution_688003201_688262401_4FGL_J2056.2-4714_daily_bin1731.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=314.072 yref=-47.2369 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/551006/ft1_filtered_4FGL_J2056.2-4714_daily_bin1731.fits evtable="EVENTS" scfile=/scratch/kocevski/551006/ft2_4FGL_J2056.2-4714_daily_bin1731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/551006/Model_4FGL_J2056.2-4714_daily_bin1731.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/551006/ft1_filtered_4FGL_J2056.2-4714_daily_bin1731.fits.....................!
real 55.42
user 53.89
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/551006/ft1_filtered_4FGL_J2056.2-4714_daily_bin1731.fits', '/scratch/kocevski/551006/ft2_4FGL_J2056.2-4714_daily_bin1731.fits', expMap='/scratch/kocevski/551006/expmap_688003201_688262401_4FGL_J2056.2-4714_daily_bin1731.fits', expCube='/scratch/kocevski/551006/ltcube_688003201_688262401_4FGL_J2056.2-4714_daily_bin1731.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/551006/Model_4FGL_J2056.2-4714_daily_bin1731.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2056.2-4714'

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  5.442e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
292        alpha:  2.353e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
293         beta:  1.074e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  4.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/551006/ft1_filtered_4FGL_J2056.2-4714_daily_bin1731.fits
Spacecraft file(s): /scratch/kocevski/551006/ft2_4FGL_J2056.2-4714_daily_bin1731.fits
Exposure map: /scratch/kocevski/551006/expmap_688003201_688262401_4FGL_J2056.2-4714_daily_bin1731.fits
Exposure cube: /scratch/kocevski/551006/ltcube_688003201_688262401_4FGL_J2056.2-4714_daily_bin1731.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/551006/Model_4FGL_J2056.2-4714_daily_bin1731.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) = 6763.0727553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .39141E-03   1.0000          .0000       .10000E+07
     2 'norm      '    34.898       1.0000          .0000       .10000E+07
     3 'norm      '    .97094       1.0000          .0000       .10000E+07
     4 'norm      '    .44331E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .92116E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    12.712       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.2914       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.0484       1.0000          .0000       .10000E+07
     9 'norm      '    2.5974       1.0000          .0000       .10000E+07
    10 'Prefactor '    .99377       1.0000          .0000       .10000E+07
    11 'Prefactor '    .77710E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    87.329       1.0000          .0000       .10000E+07
    13 'Prefactor '    10.053       1.0000          .0000       .10000E+07
    14 'Prefactor '    .60785E-07   1.0000          .0000       .10000E+07
    15 'norm      '    6.5144       1.0000          .0000       .10000E+07
    16 'Prefactor '    .67446E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .85380       1.0000          .0000       .10000E+07
    18 'Prefactor '    .23819E-02   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.1004       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1250       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6763.072     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1620 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12212E-08    4.5831       -.77634E-07** at limit **
   2  norm          35.023        20.994        .83468E-07   -.28990E-01
   3  norm          .97083        1.0109        .16671E-07   -.54339E-03
   4  norm          .15258E-02    148.85        .34554E-05** at limit **
   5  norm          .24536E-07    7.6733        .49106E-07** at limit **
   6  Prefactor     12.520        13.762        .34430E-06    .17320E-02
   7  Prefactor     2.2925        2.8520        .18510E-09   -.60145E-03
   8  Prefactor     3.9925        20.054       -.89160E-07   -.35394E-02
   9  norm          2.5962        2.5269        .60716E-07   -.30650E-03
  10  Prefactor     .79589        75.740        .12274E-05    .48391E-01
  11  Prefactor     .17208E-08    4.7359       -.14805E-06** at limit **
  12  Prefactor     87.723        43.404       -.31734E-06   -.13672    
  13  Prefactor     10.044        8.0083       -.74946E-07   -.69615E-01
  14  Prefactor      .0000        1.2042        .48065E-07** at limit **
  15  norm          6.5071        5.1903        .18865E-06   -.57854E-03
  16  Prefactor     .99920E-09    3.9148        .86480E-08** at limit **
  17  Prefactor     .40506        287.27        .30407E-05    .21248E-01
  18  Prefactor     .49212E-05    41.465        .15179E-05** at limit **
  19  Normalizat    1.1003        .30169       -.73392E-05   -.65311E-04
  20  Prefactor     1.1252        .15487        .30182E-05   -.16290E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.22125e-09
  norm       = 35.0229
  norm       = 0.970832
  norm       = 0.00152579
  norm       = 2.45359e-08
  Prefactor  = 12.5201
  Prefactor  = 2.29246
  Prefactor  = 3.99254
  norm       = 2.59617
  Prefactor  = 0.795891
  Prefactor  = 1.72085e-09
  Prefactor  = 87.7234
  Prefactor  = 10.0441
  Prefactor  = 0
  norm       = 6.50707
  Prefactor  = 9.99201e-10
  Prefactor  = 0.405055
  Prefactor  = 4.92117e-06
  Normalizat = 1.10028
  Prefactor  = 1.12519
 **********
 **   18 **HESSE 
 **********

 FCN=   6763.072     FROM HESSE     STATUS=OK           343 CALLS     1963 TOTAL
                     EDM=   .87E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12212E-08    4.5861        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          35.023        22.655        .16930E-03   -1.5590    
   3  norm          .97083        1.0089        .42734E-03   -1.5688    
   4  norm          .15258E-02    3.6245        .51748E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .24536E-07    7.7109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.520        127.20        .28069E-03   -1.5637    
   7  Prefactor     2.2925        2.8771        .67782E-03   -1.5678    
   8  Prefactor     3.9925        20.344        .50090E-03   -1.5668    
   9  norm          2.5962        2.5551        .63280E-03   -1.5676    
  10  Prefactor     .79589        706.86        .43545E-03   -1.5690    
  11  Prefactor     .17208E-08    4.7373        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     87.723        44.231        .10702E-03   -1.5521    
  13  Prefactor     10.044        21.492        .31578E-03   -1.5645    
  14  Prefactor      .0000        1.2096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.5071        5.2196        .39296E-03   -1.5657    
  16  Prefactor     .99920E-09    3.9278        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .40506        705.29        .49008E-03   -1.5695    
  18  Prefactor     .49212E-05    41.600        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1003        .26016        .79647E-01   -.89743    
  20  Prefactor     1.1252        .13215        .36704E-01   -.88665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.7143e-06
Minuit parameter uncertainties:
  1  0.000151
  2  22.6546
  3  1.00892
  4  0.148731
  5  0.000869591
  6  79.8164
  7  2.87705
  8  18.0252
  9  2.55509
  10  47.4434
  11  0.000180952
  12  44.2311
  13  21.4919
  14  2.78036e-06
  15  5.21961
  16  0.000126225
  17  33.8083
  18  0.0286164
  19  0.26046
  20  0.132191
Done.

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

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  2.596e+00  2.555e+00  0.000e+00  1.000e+06 ( 1.000e-11)
292        alpha:  2.353e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
293         beta:  1.074e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  4.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.125e+00  1.322e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  1.100e+00  2.605e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.29
Ra Dec: 314.072 -47.237
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 5.83e-08 +/- 5.73e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.75e-05

TS (Fixed Index): 1.29
Ra Dec: 314.072 -47.237
Photon Flux Upper Limit: 1.72e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/551006/likelihoodResults_688003201_688262401_4FGL_J2056.2-4714_daily_bin1731.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) = 6761.32035762
delta logL = 1.75171659564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6761.31554465
delta logL = 1.75652956782

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5061       1.0000          .0000       .10000E+07
     2 'alpha     '    3.8464       1.0000          .0000       5.0000    
     3 'Normalizat'    .98749       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1637       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6761.316     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      236 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5067        14.047        .87164E-03    .58000E-02
   2  alpha         3.8460        4.3592        .37880        .35294E-04
   3  Normalizat    .98752        .88788E-01    .83392E-01    .21796E-04
   4  Prefactor     1.1637        .48843E-01    .35551E-01   -.14528E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.50672
  alpha      = 3.846
  Normalizat = 0.987521
  Prefactor  = 1.16372
 **********
 **   18 **HESSE 
 **********

 FCN=   6761.316     FROM HESSE     STATUS=OK            31 CALLS      267 TOTAL
                     EDM=   .45E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5067        1.8389        .52129E-05   -1.5683    
   2  alpha         3.8460        .97789        .17126E-02    .56854    
   3  Normalizat    .98752        .29101        .36917E-03   -.93450    
   4  Prefactor     1.1637        .15517        .18593E-03   -.87455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51255e-13
Minuit parameter uncertainties:
  1  1.83887
  2  1.01692
  3  0.291474
  4  0.155227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551006': 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) = 6761.31554457
delta logL = 1.75652964809

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  1.507e+00  1.839e+00  0.000e+00  1.000e+06 ( 1.000e-11)
292        alpha:  3.846e+00  1.017e+00  0.000e+00  5.000e+00 ( 1.000e+00)
293         beta:  1.074e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  4.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.164e+00  1.552e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  9.875e-01  2.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.08
Ra Dec: 314.072 -47.237
Photon Index (Free Index): 3.85 +/- 1.02
Photon Flux (Free Index): 1.46e-07 +/- 8.04e-08
Energy Flux (Free Index): 2.30e-05 +/- 1.31e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/551006/cmap_HighResolution_688003201_688262401_4FGL_J2056.2-4714_daily_bin1731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.25e-05', comment='SUCCESS', photon_flux='5.83e-08', energy_flux2='2.30e-05', photon_flux_error='5.73e-08', dlogl='1.76e+00', energy_flux='1.78e-05', photon_flux2='1.46e-07', job_status='DONE', time_completed='2022-10-24 00:50:03.583483', photon_index_error2='1.02', photon_index2='3.85', ts='1.29', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.72e-07', energy_flux_error2='1.31e-05', EG='1.10', time_epoch_completed='1666597803.58', return_code='0', job_id='551006', GAL2='1.16', EG2='0.99', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='8.04e-08', ts2='5.08', photon_index='2.35' WHERE bin_id='1731' AND source_name='4FGL J2056.2-4714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Oct 24 00:50:03 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 551006: <4FGL_J2056.2-4714_daily_bin1731> in cluster <slac> Done

Job <4FGL_J2056.2-4714_daily_bin1731> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Oct 24 00:40:12 2022
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct 24 00:40:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct 24 00:40:13 2022
Terminated at Mon Oct 24 00:50:04 2022
Results reported at Mon Oct 24 00:50:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.2-4714_daily_bin1731 314.072 -47.2369 688003201 688262401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2056.2-4714 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   556.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   590 sec.
    Turnaround time :                            592 sec.

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

