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


Performing analysis on: 4FGL_J2056.2-4714_daily_bin1593
RA = 314.072, Dec = -47.2369
tmin = 652233601, tmax = 652492801
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='215258', job_status='RUN', time_executed='2021-09-25 21:54:48.439119', time_epoch_executed='1632632088.44' WHERE source_name='4FGL J2056.2-4714' and cadence='daily' and bin_id='1593'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/215258

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/215258/ft1_4FGL_J2056.2-4714_daily_bin1593.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/215258/ft2_4FGL_J2056.2-4714_daily_bin1593.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/215258/ft1_4FGL_J2056.2-4714_daily_bin1593.fits outfile=/scratch/kocevski/215258/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1593.fits ra=314.072 dec=-47.2369 rad=12.0 tmin=652233601.0 tmax=652492801.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.52
user 4.22
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/215258/ft1_filtered_4FGL_J2056.2-4714_daily_bin1593.fits" evtable="EVENTS" scfile=/scratch/kocevski/215258/ft2_4FGL_J2056.2-4714_daily_bin1593.fits sctable="SC_DATA" outfile=/scratch/kocevski/215258/ltcube_652233601_652492801_4FGL_J2056.2-4714_daily_bin1593.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/215258/ft2_4FGL_J2056.2-4714_daily_bin1593.fits
.....................!
real 13.50
user 13.12
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/215258/ft1_filtered_4FGL_J2056.2-4714_daily_bin1593.fits evtable="EVENTS" scfile=/scratch/kocevski/215258/ft2_4FGL_J2056.2-4714_daily_bin1593.fits sctable="SC_DATA" expcube=/scratch/kocevski/215258/ltcube_652233601_652492801_4FGL_J2056.2-4714_daily_bin1593.fits outfile=/scratch/kocevski/215258/expmap_652233601_652492801_4FGL_J2056.2-4714_daily_bin1593.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/215258/ltcube_652233601_652492801_4FGL_J2056.2-4714_daily_bin1593.fits
.....................!
real 192.82
user 187.50
sys 4.96

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/215258/ft1_filtered_4FGL_J2056.2-4714_daily_bin1593.fits scfile=/scratch/kocevski/215258/ft2_4FGL_J2056.2-4714_daily_bin1593.fits outfile=/scratch/kocevski/215258/cmap_652233601_652492801_4FGL_J2056.2-4714_daily_bin1593.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/215258/ft1_filtered_4FGL_J2056.2-4714_daily_bin1593.fits scfile=/scratch/kocevski/215258/ft2_4FGL_J2056.2-4714_daily_bin1593.fits outfile=/scratch/kocevski/215258/cmap_HighResolution_652233601_652492801_4FGL_J2056.2-4714_daily_bin1593.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.58
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/215258/ft1_filtered_4FGL_J2056.2-4714_daily_bin1593.fits evtable="EVENTS" scfile=/scratch/kocevski/215258/ft2_4FGL_J2056.2-4714_daily_bin1593.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/215258/Model_4FGL_J2056.2-4714_daily_bin1593.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/215258/ft1_filtered_4FGL_J2056.2-4714_daily_bin1593.fits.....................!
real 62.39
user 61.01
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/215258/ft1_filtered_4FGL_J2056.2-4714_daily_bin1593.fits', '/scratch/kocevski/215258/ft2_4FGL_J2056.2-4714_daily_bin1593.fits', expMap='/scratch/kocevski/215258/expmap_652233601_652492801_4FGL_J2056.2-4714_daily_bin1593.fits', expCube='/scratch/kocevski/215258/ltcube_652233601_652492801_4FGL_J2056.2-4714_daily_bin1593.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/215258/Model_4FGL_J2056.2-4714_daily_bin1593.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/215258/ft1_filtered_4FGL_J2056.2-4714_daily_bin1593.fits
Spacecraft file(s): /scratch/kocevski/215258/ft2_4FGL_J2056.2-4714_daily_bin1593.fits
Exposure map: /scratch/kocevski/215258/expmap_652233601_652492801_4FGL_J2056.2-4714_daily_bin1593.fits
Exposure cube: /scratch/kocevski/215258/ltcube_652233601_652492801_4FGL_J2056.2-4714_daily_bin1593.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/215258/Model_4FGL_J2056.2-4714_daily_bin1593.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) = 8205.53473541

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.450       1.0000         .10000E-03   10000.    
     2 'norm      '    4.7233       1.0000         .10000E-03   10000.    
     3 'norm      '    3.6282       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.5121       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.364       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10619E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.074       1.0000         .10000E-03   10000.    
    11 'norm      '    5.7964       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.165       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4605       1.0000         .10000E-03   10000.    
    15 'Prefactor '    53.318       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4854       1.0000         .10000E-03   10000.    
    18 'norm      '    6.2667       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8885       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.102       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0486       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .72373       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1360       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=   8205.527     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2519 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.450        9.5840       -.38180E-07   -.87960E-05
   2  norm          4.7221        13.064        .87741E-07   -.18542E-04
   3  norm          3.6281        1.7939       -.15173E-07   -.33821E-06
   4  Prefactor     .10000E-03    13.411       -.21627E-05** at limit **
   5  norm          .10000E-03    1.2893        .16378E-07** at limit **
   6  norm          3.5093        10.360        .69471E-05   -.45873E-03
   7  Prefactor     25.355        31.236       -.31275E-05   -.17495E-03
   8  Prefactor     .10000E-03    31.005       -.98517E-06** at limit **
   9  Prefactor     .10000E-03    1.7748        .81461E-07** at limit **
  10  Prefactor     20.073        18.092       -.17425E-06   -.12375E-04
  11  norm          5.7963        2.2194       -.13332E-07   -.39595E-04
  12  Prefactor     24.146        30.470       -.42599E-05   -.35799E-03
  13  Prefactor     .10000E-03    12.445        .14957E-05** at limit **
  14  Prefactor     8.4605        7.4351       -.47250E-07   -.54000E-04
  15  Prefactor     53.318        29.219        .17238E-07    .12999E-04
  16  Prefactor     .10000E-03    21.237        .16090E-05** at limit **
  17  Prefactor     4.4858        4.0219       -.69554E-07   -.22000E-03
  18  norm          6.2667        4.0991       -.84602E-07   -.12760E-03
  19  Prefactor     2.8885        3.8901        .29251E-06    .19017E-03
  20  Prefactor     24.092        25.906       -.19250E-05   -.21907E-03
  21  Prefactor     2.0511        5.8573        .13653E-05    .57167E-04
  22  Normalizat    .72350        .22085        .86746E-06   -.29317E-04
  23  Prefactor     1.1362        .11840       -.34339E-07   -.12380E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.4496
  norm       = 4.72214
  norm       = 3.62812
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 3.50931
  Prefactor  = 25.3552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.0731
  norm       = 5.7963
  Prefactor  = 24.1456
  Prefactor  = 0.000100001
  Prefactor  = 8.46046
  Prefactor  = 53.3183
  Prefactor  = 0.0001
  Prefactor  = 4.48584
  norm       = 6.2667
  Prefactor  = 2.88853
  Prefactor  = 24.0925
  Prefactor  = 2.05106
  Normalizat = 0.723498
  Prefactor  = 1.13616
 **********
 **   18 **HESSE 
 **********

 FCN=   8205.527     FROM HESSE     STATUS=OK           374 CALLS     2893 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.450        9.5819        .10922E-03   -1.4974    
   2  norm          4.7221        13.045        .18515E-03   -1.5273    
   3  norm          3.6281        1.7947        .82680E-04   -1.5327    
   4  Prefactor     .10000E-03    13.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.3062        .10042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.5093        10.876        .10786E-02   -1.5333    
   7  Prefactor     25.355        31.355        .79540E-04   -1.4700    
   8  Prefactor     .10000E-03    31.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.8406        .23524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.073        18.118        .89396E-04   -1.4812    
  11  norm          5.7963        2.2183        .78993E-04   -1.5226    
  12  Prefactor     24.146        31.818        .81486E-04   -1.4725    
  13  Prefactor     .10000E-03    12.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.4605        7.4316        .13782E-03   -1.5126    
  15  Prefactor     53.318        29.195        .54929E-04   -1.4246    
  16  Prefactor     .10000E-03    21.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.4858        4.0231        .16356E-03   -1.5284    
  18  norm          6.2667        4.0967        .14059E-03   -1.5207    
  19  Prefactor     2.8885        3.8865        .20252E-03   -1.5368    
  20  Prefactor     24.092        26.192        .81592E-04   -1.4726    
  21  Prefactor     2.0511        5.8313        .28884E-03   -1.5422    
  22  Normalizat    .72350        .24911        .38562E-03   -1.0297    
  23  Prefactor     1.1362        .13537        .17726E-03   -.88319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68242e-09
Minuit parameter uncertainties:
  1  9.58296
  2  13.0526
  3  1.79475
  4  0.000283479
  5  2.00542e-07
  6  10.8818
  7  31.3758
  8  0.000168236
  9  6.62523e-06
  10  18.1227
  11  2.21832
  12  31.8402
  13  0.0001821
  14  7.43245
  15  29.203
  16  0.000196625
  17  4.02339
  18  4.09687
  19  3.88682
  20  26.2042
  21  5.83296
  22  0.249502
  23  0.135413
Done.

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

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  5.796e+00  2.218e+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.136e+00  1.354e-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:  7.235e-01  2.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.23
Ra Dec: 314.072 -47.237
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 1.30e-07 +/- 4.98e-08
Energy Flux (Fixed Index): 3.98e-05 +/- 1.52e-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) = 8205.01195156
delta logL = 0.514797322527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8205.00919449
delta logL = 0.517554389129

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9885       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7791       1.0000          .0000       5.0000    
     3 'Normalizat'    .67992       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1531       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8205.009     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      269 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9885        2.2749        .68499E-04    .19302E-02
   2  alpha         2.7791        .45177        .11684E-01    .10160E-03
   3  Normalizat    .67993        .24029        .39659E-03    .45865E-05
   4  Prefactor     1.1531        .13447        .17608E-03   -.82387E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.98848
  alpha      = 2.77909
  Normalizat = 0.679935
  Prefactor  = 1.1531
 **********
 **   18 **HESSE 
 **********

 FCN=   8205.009     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9885        2.2155        .27399E-05   -1.5261    
   2  alpha         2.7791        .43986        .46736E-03    .11187    
   3  Normalizat    .67993        .24041        .15864E-04   -1.0469    
   4  Prefactor     1.1531        .13450        .35216E-04   -.87787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71436e-10
Minuit parameter uncertainties:
  1  2.21558
  2  0.442189
  3  0.24078
  4  0.134545
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/215258': 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) = 8205.00919443
delta logL = 0.517554447368

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  4.988e+00  2.216e+00  1.000e-04  1.000e+04 ( 1.000e-11)
292        alpha:  2.779e+00  4.422e-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.153e+00  1.345e-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:  6.799e-01  2.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.36
Ra Dec: 314.072 -47.237
Photon Index (Free Index): 2.78 +/- 0.44
Photon Flux (Free Index): 1.60e-07 +/- 6.16e-08
Energy Flux (Free Index): 3.60e-05 +/- 1.34e-05

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/215258/cmap_HighResolution_652233601_652492801_4FGL_J2056.2-4714_daily_bin1593.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.30e-07', energy_flux2='3.60e-05', photon_flux_error='4.98e-08', dlogl='5.18e-01', energy_flux='3.98e-05', photon_flux2='1.60e-07', job_status='DONE', time_completed='2021-09-25 22:06:01.995108', photon_index_error2='0.44', photon_index2='2.78', ts='13.23', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.34e-05', EG='0.72', time_epoch_completed='1632632762.0', return_code='0', job_id='215258', GAL2='1.15', EG2='0.68', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='6.16e-08', ts2='14.36', photon_index='2.35' WHERE bin_id='1593' AND source_name='4FGL J2056.2-4714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 22:06:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 215258: <4FGL_J2056.2-4714_daily_bin1593> in cluster <slac> Done

Job <4FGL_J2056.2-4714_daily_bin1593> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 25 21:50:23 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 21:53:19 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:19 2021
Terminated at Sat Sep 25 22:06:02 2021
Results reported at Sat Sep 25 22:06:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.2-4714_daily_bin1593 314.072 -47.2369 652233601 652492801 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 :                                   669.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            939 sec.

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

