/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 58 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 = 7412
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2056.2-4714_daily_bin1563
RA = 314.072, Dec = -47.2369
tmin = 644457601, tmax = 644716801
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='215216', job_status='RUN', time_executed='2021-09-25 21:54:22.700594', time_epoch_executed='1632632062.7' WHERE source_name='4FGL J2056.2-4714' and cadence='daily' and bin_id='1563'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/215216

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/215216/ft1_4FGL_J2056.2-4714_daily_bin1563.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/215216/ft2_4FGL_J2056.2-4714_daily_bin1563.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/215216/ft1_4FGL_J2056.2-4714_daily_bin1563.fits outfile=/scratch/kocevski/215216/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1563.fits ra=314.072 dec=-47.2369 rad=12.0 tmin=644457601.0 tmax=644716801.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 2.77
user 2.58
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/215216/ft2_4FGL_J2056.2-4714_daily_bin1563.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/215216/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1563.fits evtable="EVENTS" outfile="/scratch/kocevski/215216/ft1_filtered_4FGL_J2056.2-4714_daily_bin1563.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/215216/ft1_filtered_4FGL_J2056.2-4714_daily_bin1563.fits" evtable="EVENTS" scfile=/scratch/kocevski/215216/ft2_4FGL_J2056.2-4714_daily_bin1563.fits sctable="SC_DATA" outfile=/scratch/kocevski/215216/ltcube_644457601_644716801_4FGL_J2056.2-4714_daily_bin1563.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/215216/ft2_4FGL_J2056.2-4714_daily_bin1563.fits
.....................!
real 14.96
user 14.59
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/215216/ft1_filtered_4FGL_J2056.2-4714_daily_bin1563.fits evtable="EVENTS" scfile=/scratch/kocevski/215216/ft2_4FGL_J2056.2-4714_daily_bin1563.fits sctable="SC_DATA" expcube=/scratch/kocevski/215216/ltcube_644457601_644716801_4FGL_J2056.2-4714_daily_bin1563.fits outfile=/scratch/kocevski/215216/expmap_644457601_644716801_4FGL_J2056.2-4714_daily_bin1563.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/215216/ltcube_644457601_644716801_4FGL_J2056.2-4714_daily_bin1563.fits
.....................!
real 192.91
user 187.55
sys 4.87

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/215216/ft1_filtered_4FGL_J2056.2-4714_daily_bin1563.fits scfile=/scratch/kocevski/215216/ft2_4FGL_J2056.2-4714_daily_bin1563.fits outfile=/scratch/kocevski/215216/cmap_644457601_644716801_4FGL_J2056.2-4714_daily_bin1563.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/215216/ft1_filtered_4FGL_J2056.2-4714_daily_bin1563.fits scfile=/scratch/kocevski/215216/ft2_4FGL_J2056.2-4714_daily_bin1563.fits outfile=/scratch/kocevski/215216/cmap_HighResolution_644457601_644716801_4FGL_J2056.2-4714_daily_bin1563.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/215216/ft1_filtered_4FGL_J2056.2-4714_daily_bin1563.fits evtable="EVENTS" scfile=/scratch/kocevski/215216/ft2_4FGL_J2056.2-4714_daily_bin1563.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/215216/Model_4FGL_J2056.2-4714_daily_bin1563.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/215216/ft1_filtered_4FGL_J2056.2-4714_daily_bin1563.fits.....................!
real 53.79
user 51.94
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/215216/ft1_filtered_4FGL_J2056.2-4714_daily_bin1563.fits', '/scratch/kocevski/215216/ft2_4FGL_J2056.2-4714_daily_bin1563.fits', expMap='/scratch/kocevski/215216/expmap_644457601_644716801_4FGL_J2056.2-4714_daily_bin1563.fits', expCube='/scratch/kocevski/215216/ltcube_644457601_644716801_4FGL_J2056.2-4714_daily_bin1563.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/215216/Model_4FGL_J2056.2-4714_daily_bin1563.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  1.000e-04  1.000e+04 ( 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  0.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/215216/ft1_filtered_4FGL_J2056.2-4714_daily_bin1563.fits
Spacecraft file(s): /scratch/kocevski/215216/ft2_4FGL_J2056.2-4714_daily_bin1563.fits
Exposure map: /scratch/kocevski/215216/expmap_644457601_644716801_4FGL_J2056.2-4714_daily_bin1563.fits
Exposure cube: /scratch/kocevski/215216/ltcube_644457601_644716801_4FGL_J2056.2-4714_daily_bin1563.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/215216/Model_4FGL_J2056.2-4714_daily_bin1563.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) = 6776.55662155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    13.289       1.0000         .10000E-03   10000.    
     3 'norm      '    2.3376       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.7771       1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.6919       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.264       1.0000         .10000E-03   10000.    
    11 'norm      '    5.7316       1.0000         .10000E-03   10000.    
    12 'Prefactor '    40.998       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2756       1.0000         .10000E-03   10000.    
    18 'norm      '    8.5069       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0438       1.0000         .10000E-03   10000.    
    20 'Prefactor '    42.208       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15904E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .90354       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2009       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6776.553     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2526 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.703       -.16145E-06** at limit **
   2  norm          13.284        36.622       -.48472E-06   -.11083E-04
   3  norm          2.3373        2.8401        .13603E-06    .82774E-04
   4  Prefactor     .10000E-03    39.061        .22474E-08** at limit **
   5  norm          4.7772        5.1874        .36276E-07    .13270E-04
   6  norm          .10000E-03    8.5084       -.63311E-07** at limit **
   7  Prefactor     8.6867        26.642       -.40543E-07   -.83181E-05
   8  Prefactor     .10000E-03    33.384        .19290E-06** at limit **
   9  Prefactor     .10000E-03    2.9491        .56512E-06** at limit **
  10  Prefactor     36.275        27.263       -.42115E-06    .72150E-04
  11  norm          5.7321        2.5470       -.51225E-07    .15094E-03
  12  Prefactor     40.990        32.647       -.27571E-06   -.36229E-04
  13  Prefactor     .10000E-03    14.095        .15134E-06** at limit **
  14  Prefactor     .10000E-03    5.9510        .79657E-07** at limit **
  15  Prefactor     .10000E-03    8.3676        .37318E-07** at limit **
  16  Prefactor     .10000E-03    12.034        .32937E-06** at limit **
  17  Prefactor     3.2764        4.3423        .52180E-06    .87472E-03
  18  norm          8.5075        3.9968       -.83654E-07    .56451E-04
  19  Prefactor     7.0470        8.4846       -.14325E-06    .53711E-04
  20  Prefactor     42.166        40.993        .21941E-05    .43741E-03
  21  Prefactor     .10015E-03    7.6974       -.35398E-05** at limit **
  22  Normalizat    .90277        .25857        .52612E-05    .56017E-03
  23  Prefactor     1.2013        .14268       -.18712E-05    .75685E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 13.2836
  norm       = 2.33734
  Prefactor  = 0.0001
  norm       = 4.77718
  norm       = 0.0001
  Prefactor  = 8.68674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.2751
  norm       = 5.73209
  Prefactor  = 40.9895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.27637
  norm       = 8.50753
  Prefactor  = 7.04699
  Prefactor  = 42.1658
  Prefactor  = 0.000100153
  Normalizat = 0.902771
  Prefactor  = 1.20127
 **********
 **   18 **HESSE 
 **********

 FCN=   6776.553     FROM HESSE     STATUS=OK           368 CALLS     2894 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.284        36.576        .10988E-03   -1.4979    
   3  norm          2.3373        2.8264        .14848E-03   -1.5402    
   4  Prefactor     .10000E-03    39.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.7772        5.1795        .18408E-03   -1.5271    
   6  norm          .10000E-03    8.5113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.6867        26.642        .13596E-03   -1.5118    
   8  Prefactor     .10000E-03    33.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.0255        .27479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     36.275        27.299        .66551E-04   -1.4503    
  11  norm          5.7321        2.5463        .83363E-04   -1.5229    
  12  Prefactor     40.990        32.663        .62604E-04   -1.4427    
  13  Prefactor     .10000E-03    14.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.1358        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.3786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.2764        4.3643        .18517E-03   -1.5346    
  18  norm          8.5075        3.9972        .10874E-03   -1.5125    
  19  Prefactor     7.0470        8.4871        .15115E-03   -1.5177    
  20  Prefactor     42.166        41.878        .61704E-04   -1.4408    
  21  Prefactor     .10015E-03    22.971        .31432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .90277        .27829        .36916E-03   -.96363    
  23  Prefactor     1.2013        .15442        .19040E-03   -.86292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.64731e-09
Minuit parameter uncertainties:
  1  1.97612e-05
  2  36.6382
  3  2.82656
  4  2.52919e-05
  5  5.17994
  6  8.84153e-06
  7  26.6784
  8  8.55004e-05
  9  1.78616e-05
  10  27.3086
  11  2.54635
  12  32.6776
  13  8.71698e-06
  14  1.31329e-05
  15  1.54998e-07
  16  2.89426e-05
  17  4.36471
  18  3.99729
  19  8.48855
  20  41.9077
  21  0.00374923
  22  0.27873
  23  0.154478
Done.

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

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  5.732e+00  2.546e+00  1.000e-04  1.000e+04 ( 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  0.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.201e+00  1.545e-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.028e-01  2.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.80
Ra Dec: 314.072 -47.237
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 1.29e-07 +/- 5.71e-08
Energy Flux (Fixed Index): 3.93e-05 +/- 1.75e-05

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) = 6776.19904587
delta logL = 0.353505281832

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6776.18635809
delta logL = 0.366193064545

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4843       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9588       1.0000          .0000       5.0000    
     3 'Normalizat'    .93746       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1901       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=   6776.186     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      210 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4853        2.5649        .42893E-02    .11829E-03
   2  alpha         1.9590        .38254        .30905       -.33713E-04
   3  Normalizat    .93745        .22841        .82023E-01    .24838E-04
   4  Prefactor     1.1901        .13361        .34870E-01    .42077E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.48528
  alpha      = 1.959
  Normalizat = 0.937446
  Prefactor  = 1.19006
 **********
 **   18 **HESSE 
 **********

 FCN=   6776.186     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4853        2.6932        .85463E-04   -1.5240    
   2  alpha         1.9590        .44419        .12326E-01   -.21813    
   3  Normalizat    .93745        .25830        .36311E-03   -.95157    
   4  Prefactor     1.1901        .15100        .19119E-03   -.86638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35142e-12
Minuit parameter uncertainties:
  1  2.69331
  2  0.446681
  3  0.258646
  4  0.151052
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/215216': 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) = 6776.18635794
delta logL = 0.366193210353

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  5.485e+00  2.693e+00  1.000e-04  1.000e+04 ( 1.000e-11)
292        alpha:  1.959e+00  4.467e-01  0.000e+00  5.000e+00 ( 1.000e+00)
293         beta:  1.074e-01  0.000e+00  0.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.190e+00  1.511e-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.374e-01  2.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.50
Ra Dec: 314.072 -47.237
Photon Index (Free Index): 1.96 +/- 0.45
Photon Flux (Free Index): 9.58e-08 +/- 5.83e-08
Energy Flux (Free Index): 4.64e-05 +/- 2.43e-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/215216/cmap_HighResolution_644457601_644716801_4FGL_J2056.2-4714_daily_bin1563.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.29e-07', energy_flux2='4.64e-05', photon_flux_error='5.71e-08', dlogl='3.66e-01', energy_flux='3.93e-05', photon_flux2='9.58e-08', job_status='DONE', time_completed='2021-09-25 22:04:20.763880', photon_index_error2='0.45', photon_index2='1.96', ts='10.80', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='2.43e-05', EG='0.90', time_epoch_completed='1632632660.76', return_code='0', job_id='215216', GAL2='1.19', EG2='0.94', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='5.83e-08', ts2='11.50', photon_index='2.35' WHERE bin_id='1563' AND source_name='4FGL J2056.2-4714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 22:04:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 215216: <4FGL_J2056.2-4714_daily_bin1563> in cluster <slac> Done

Job <4FGL_J2056.2-4714_daily_bin1563> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 25 21:50:20 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 21:53:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 21:53:09 2021
Terminated at Sat Sep 25 22:04:21 2021
Results reported at Sat Sep 25 22:04:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.2-4714_daily_bin1563 314.072 -47.2369 644457601 644716801 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 :                                   595.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   672 sec.
    Turnaround time :                            841 sec.

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

