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


Performing analysis on: 4FGL_J2056.2-4714_daily_bin1565
RA = 314.072, Dec = -47.2369
tmin = 644976001, tmax = 645235201
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='215219', job_status='RUN', time_executed='2021-09-25 21:53:55.371822', time_epoch_executed='1632632035.37' WHERE source_name='4FGL J2056.2-4714' and cadence='daily' and bin_id='1565'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/215219

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/215219/ft1_4FGL_J2056.2-4714_daily_bin1565.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/215219/ft2_4FGL_J2056.2-4714_daily_bin1565.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/215219/ft1_4FGL_J2056.2-4714_daily_bin1565.fits outfile=/scratch/kocevski/215219/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1565.fits ra=314.072 dec=-47.2369 rad=12.0 tmin=644976001.0 tmax=645235201.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.00
user 2.75
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/215219/ft2_4FGL_J2056.2-4714_daily_bin1565.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/215219/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1565.fits evtable="EVENTS" outfile="/scratch/kocevski/215219/ft1_filtered_4FGL_J2056.2-4714_daily_bin1565.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/215219/ft1_filtered_4FGL_J2056.2-4714_daily_bin1565.fits" evtable="EVENTS" scfile=/scratch/kocevski/215219/ft2_4FGL_J2056.2-4714_daily_bin1565.fits sctable="SC_DATA" outfile=/scratch/kocevski/215219/ltcube_644976001_645235201_4FGL_J2056.2-4714_daily_bin1565.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/215219/ft2_4FGL_J2056.2-4714_daily_bin1565.fits
.....................!
real 15.61
user 15.20
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/215219/ft1_filtered_4FGL_J2056.2-4714_daily_bin1565.fits evtable="EVENTS" scfile=/scratch/kocevski/215219/ft2_4FGL_J2056.2-4714_daily_bin1565.fits sctable="SC_DATA" expcube=/scratch/kocevski/215219/ltcube_644976001_645235201_4FGL_J2056.2-4714_daily_bin1565.fits outfile=/scratch/kocevski/215219/expmap_644976001_645235201_4FGL_J2056.2-4714_daily_bin1565.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/215219/ltcube_644976001_645235201_4FGL_J2056.2-4714_daily_bin1565.fits
.....................!
real 192.12
user 186.29
sys 5.08

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/215219/ft1_filtered_4FGL_J2056.2-4714_daily_bin1565.fits scfile=/scratch/kocevski/215219/ft2_4FGL_J2056.2-4714_daily_bin1565.fits outfile=/scratch/kocevski/215219/cmap_644976001_645235201_4FGL_J2056.2-4714_daily_bin1565.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/215219/ft1_filtered_4FGL_J2056.2-4714_daily_bin1565.fits scfile=/scratch/kocevski/215219/ft2_4FGL_J2056.2-4714_daily_bin1565.fits outfile=/scratch/kocevski/215219/cmap_HighResolution_644976001_645235201_4FGL_J2056.2-4714_daily_bin1565.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.71
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/215219/ft1_filtered_4FGL_J2056.2-4714_daily_bin1565.fits evtable="EVENTS" scfile=/scratch/kocevski/215219/ft2_4FGL_J2056.2-4714_daily_bin1565.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/215219/Model_4FGL_J2056.2-4714_daily_bin1565.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/215219/ft1_filtered_4FGL_J2056.2-4714_daily_bin1565.fits.....................!
real 63.27
user 61.48
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    46.367       1.0000         .10000E-03   10000.    
     3 'norm      '    1.8369       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.651       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    21.909       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.090       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.260       1.0000         .10000E-03   10000.    
    11 'norm      '    5.6216       1.0000         .10000E-03   10000.    
    12 'Prefactor '    53.272       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.504       1.0000         .10000E-03   10000.    
    15 'Prefactor '    49.988       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.7259       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3726       1.0000         .10000E-03   10000.    
    18 'norm      '    7.7877       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.260       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6122       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84685       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=   8042.143     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2535 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.5712       -.30470E-07** at limit **
   2  norm          46.365        28.386       -.81348E-06    .28381E-04
   3  norm          1.8369        1.4631        .21804E-07    .66561E-04
   4  Prefactor     14.658        54.682        .15198E-04   -.60940E-04
   5  norm          .10000E-03    1.5832        .52128E-07** at limit **
   6  norm          21.910        19.602        .56236E-06   -.16911E-04
   7  Prefactor     .10000E-03    41.989       -.58782E-06** at limit **
   8  Prefactor     19.079        47.734       -.16643E-04    .10780E-03
   9  Prefactor     .10000E-03    .93868       -.10589E-07** at limit **
  10  Prefactor     14.259        19.626       -.12600E-05   -.38151E-03
  11  norm          5.6216        2.4667        .92819E-08   -.16767E-03
  12  Prefactor     53.269        32.108       -.23758E-05    .93270E-04
  13  Prefactor     .10000E-03    57.032        .26775E-06** at limit **
  14  Prefactor     10.504        9.5022       -.18752E-06   -.50239E-04
  15  Prefactor     49.988        35.096       -.41622E-07    .17140E-04
  16  Prefactor     6.7260        12.880       -.19926E-06   -.32450E-04
  17  Prefactor     2.3724        3.5939       -.49552E-06   -.74506E-03
  18  norm          7.7877        4.6827       -.45234E-06   -.15195E-02
  19  Prefactor     12.260        9.3876       -.11481E-06    .76053E-05
  20  Prefactor     .10000E-03    19.144       -.12711E-06** at limit **
  21  Prefactor     .10000E-03    1.8883       -.31371E-07** at limit **
  22  Normalizat    1.6122        .23114        .10538E-05   -.26015E-04
  23  Prefactor     .84683        .11826        .28982E-07    .48232E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 46.365
  norm       = 1.83688
  Prefactor  = 14.6582
  norm       = 0.0001
  norm       = 21.9105
  Prefactor  = 0.0001
  Prefactor  = 19.0793
  Prefactor  = 0.0001
  Prefactor  = 14.2593
  norm       = 5.62165
  Prefactor  = 53.2688
  Prefactor  = 0.0001
  Prefactor  = 10.5037
  Prefactor  = 49.9875
  Prefactor  = 6.72601
  Prefactor  = 2.37244
  norm       = 7.78766
  Prefactor  = 12.2604
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.61225
  Prefactor  = 0.846828
 **********
 **   18 **HESSE 
 **********

 FCN=   8042.143     FROM HESSE     STATUS=OK           372 CALLS     2907 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.6773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          46.365        28.404        .58883E-04   -1.4345    
   3  norm          1.8369        1.4655        .94284E-04   -1.5437    
   4  Prefactor     14.658        53.993        .10464E-03   -1.4942    
   5  norm          .10000E-03    1.5899        .11015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          21.910        19.589        .85573E-04   -1.4771    
   7  Prefactor     .10000E-03    42.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.079        46.962        .91670E-04   -1.4834    
   9  Prefactor     .10000E-03    .94644        .84800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.259        20.032        .53034E-03   -1.4953    
  11  norm          5.6216        2.4686        .88535E-04   -1.5234    
  12  Prefactor     53.269        32.099        .27476E-03   -1.4247    
  13  Prefactor     .10000E-03    57.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.504        9.5309        .12362E-03   -1.5060    
  15  Prefactor     49.988        35.203        .56720E-04   -1.4293    
  16  Prefactor     6.7260        12.881        .15472E-03   -1.5189    
  17  Prefactor     2.3724        3.6329        .20160E-03   -1.5400    
  18  norm          7.7877        4.8042        .71845E-03   -1.5150    
  19  Prefactor     12.260        9.3933        .11440E-03   -1.5008    
  20  Prefactor     .10000E-03    19.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.8903        .12034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.6122        .27303        .30862E-03   -.74671    
  23  Prefactor     .84683        .13829        .22013E-03   -.98025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65288e-09
Minuit parameter uncertainties:
  1  2.50728e-06
  2  28.4118
  3  1.46557
  4  54.1738
  5  7.5668e-07
  6  19.5948
  7  6.3773e-05
  8  47.0535
  9  3.26199e-07
  10  20.0414
  11  2.46864
  12  32.1089
  13  2.24571e-05
  14  9.53231
  15  35.218
  16  12.8868
  17  3.63327
  18  4.80443
  19  9.39446
  20  2.28113e-06
  21  1.81301e-08
  22  0.27328
  23  0.138342
Done.

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

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  5.622e+00  2.469e+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:  8.468e-01  1.383e-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.612e+00  2.733e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.93
Ra Dec: 314.072 -47.237
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 1.26e-07 +/- 5.54e-08
Energy Flux (Fixed Index): 3.86e-05 +/- 1.69e-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) = 8042.14007523
delta logL = 0.002584742203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8042.13991905
delta logL = 0.00274092265408

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6141       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3887       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6082       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84818       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=   8042.140     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      223 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6095        52.067        .42386E-02    .31667E-03
   2  alpha         2.3877        3.3207        .36011        .31677E-04
   3  Normalizat    1.6084        .28234        .69826E-01    .14218E-04
   4  Prefactor     .84814        .16679        .44341E-01   -.25634E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 5.60952
  alpha      = 2.38767
  Normalizat = 1.60839
  Prefactor  = 0.848137
 **********
 **   18 **HESSE 
 **********

 FCN=   8042.140     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6095        2.4622        .87918E-04   -1.5234    
   2  alpha         2.3877        .46905        .14043E-01   -.44948E-01
   3  Normalizat    1.6084        .25790        .30890E-03   -.74777    
   4  Prefactor     .84814        .13697        .21998E-03   -.97978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88357e-11
Minuit parameter uncertainties:
  1  2.46229
  2  0.471851
  3  0.25811
  4  0.137024
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/215219': 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) = 8042.13991431
delta logL = 0.00274566558437

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  5.610e+00  2.462e+00  1.000e-04  1.000e+04 ( 1.000e-11)
292        alpha:  2.388e+00  4.719e-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:  8.481e-01  1.370e-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.608e+00  2.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.88
Ra Dec: 314.072 -47.237
Photon Index (Free Index): 2.39 +/- 0.47
Photon Flux (Free Index): 1.29e-07 +/- 6.88e-08
Energy Flux (Free Index): 3.83e-05 +/- 1.72e-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/215219/cmap_HighResolution_644976001_645235201_4FGL_J2056.2-4714_daily_bin1565.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.26e-07', energy_flux2='3.83e-05', photon_flux_error='5.54e-08', dlogl='2.75e-03', energy_flux='3.86e-05', photon_flux2='1.29e-07', job_status='DONE', time_completed='2021-09-25 22:04:51.484085', photon_index_error2='0.47', photon_index2='2.39', ts='9.93', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='1.61', time_epoch_completed='1632632691.48', return_code='0', job_id='215219', GAL2='0.85', EG2='1.61', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='6.88e-08', ts2='9.88', photon_index='2.35' WHERE bin_id='1565' AND source_name='4FGL J2056.2-4714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 22:04:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 215219: <4FGL_J2056.2-4714_daily_bin1565> in cluster <slac> Done

Job <4FGL_J2056.2-4714_daily_bin1565> 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) <bullet0085>, 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:52 2021
Results reported at Sat Sep 25 22:04:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.2-4714_daily_bin1565 314.072 -47.2369 644976001 645235201 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 :                                   653.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            872 sec.

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

