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


Performing analysis on: 4FGL_J2056.2-4714_daily_bin1539
RA = 314.072, Dec = -47.2369
tmin = 638236801, tmax = 638496001
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='215181', job_status='RUN', time_executed='2021-09-25 21:54:16.260478', time_epoch_executed='1632632056.26' WHERE source_name='4FGL J2056.2-4714' and cadence='daily' and bin_id='1539'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/215181

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/215181/ft1_4FGL_J2056.2-4714_daily_bin1539.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/215181/ft2_4FGL_J2056.2-4714_daily_bin1539.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/215181/ft1_4FGL_J2056.2-4714_daily_bin1539.fits outfile=/scratch/kocevski/215181/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1539.fits ra=314.072 dec=-47.2369 rad=12.0 tmin=638236801.0 tmax=638496001.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.64
user 3.39
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/215181/ft1_filtered_4FGL_J2056.2-4714_daily_bin1539.fits" evtable="EVENTS" scfile=/scratch/kocevski/215181/ft2_4FGL_J2056.2-4714_daily_bin1539.fits sctable="SC_DATA" outfile=/scratch/kocevski/215181/ltcube_638236801_638496001_4FGL_J2056.2-4714_daily_bin1539.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/215181/ft2_4FGL_J2056.2-4714_daily_bin1539.fits
.....................!
real 15.10
user 14.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/215181/ft1_filtered_4FGL_J2056.2-4714_daily_bin1539.fits evtable="EVENTS" scfile=/scratch/kocevski/215181/ft2_4FGL_J2056.2-4714_daily_bin1539.fits sctable="SC_DATA" expcube=/scratch/kocevski/215181/ltcube_638236801_638496001_4FGL_J2056.2-4714_daily_bin1539.fits outfile=/scratch/kocevski/215181/expmap_638236801_638496001_4FGL_J2056.2-4714_daily_bin1539.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/215181/ltcube_638236801_638496001_4FGL_J2056.2-4714_daily_bin1539.fits
.....................!
real 192.72
user 187.16
sys 4.79

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/215181/ft1_filtered_4FGL_J2056.2-4714_daily_bin1539.fits scfile=/scratch/kocevski/215181/ft2_4FGL_J2056.2-4714_daily_bin1539.fits outfile=/scratch/kocevski/215181/cmap_638236801_638496001_4FGL_J2056.2-4714_daily_bin1539.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/215181/ft1_filtered_4FGL_J2056.2-4714_daily_bin1539.fits scfile=/scratch/kocevski/215181/ft2_4FGL_J2056.2-4714_daily_bin1539.fits outfile=/scratch/kocevski/215181/cmap_HighResolution_638236801_638496001_4FGL_J2056.2-4714_daily_bin1539.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .63175E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5756       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.738       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0663       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7820       1.0000         .10000E-03   10000.    
    11 'norm      '    3.9113       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.3589       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20506       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.9358       1.0000         .10000E-03   10000.    
    18 'norm      '    6.1874       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5149       1.0000         .10000E-03   10000.    
    20 'Prefactor '    51.057       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13748E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2550       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92374       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=   7538.742     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2948 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.7202        .23803E-06** at limit **
   2  norm          .10000E-03    7.3869       -.98688E-07** at limit **
   3  norm          1.5755        2.0921       -.24027E-06   -.93844E-03
   4  Prefactor     .10000E-03    17.652        .49160E-06** at limit **
   5  norm          .10000E-03    3.1257        .20685E-07** at limit **
   6  norm          .10000E-03    7.1448        .68033E-07** at limit **
   7  Prefactor     .10000E-03    17.253       -.18663E-05** at limit **
   8  Prefactor     10.717        48.161       -.86876E-05   -.42015E-05
   9  Prefactor     2.0666        1.8697       -.16523E-06   -.29619E-03
  10  Prefactor     2.7737        18.772        .12298E-04   -.11437E-03
  11  norm          3.9107        2.1137       -.10706E-06   -.39491E-03
  12  Prefactor     .10000E-03    21.457        .35298E-05** at limit **
  13  Prefactor     .10000E-03    15.351        .21616E-06** at limit **
  14  Prefactor     9.3558        7.3856        .15676E-05   -.66341E-04
  15  Prefactor     .10000E-03    24.076       -.33581E-05** at limit **
  16  Prefactor     .66412E-01    16.933       -.65059E-06   -.15040E-05
  17  Prefactor     4.9352        4.4742       -.12937E-06   -.32463E-03
  18  norm          6.1861        4.4839       -.11641E-06   -.14784E-03
  19  Prefactor     3.5140        8.9040       -.60997E-06   -.20706E-03
  20  Prefactor     51.010        47.583       -.34100E-05   -.74990E-05
  21  Prefactor     .10000E-03    17.308        .66555E-06** at limit **
  22  Normalizat    1.2555        .22250       -.19240E-07   -.30121E-04
  23  Prefactor     .92356        .11476       -.15041E-06   -.21352E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 1.57547
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7174
  Prefactor  = 2.06664
  Prefactor  = 2.77372
  norm       = 3.91072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.3558
  Prefactor  = 0.0001
  Prefactor  = 0.0664119
  Prefactor  = 4.93519
  norm       = 6.18609
  Prefactor  = 3.51405
  Prefactor  = 51.0096
  Prefactor  = 0.0001
  Normalizat = 1.25551
  Prefactor  = 0.923557
 **********
 **   18 **HESSE 
 **********

 FCN=   7538.742     FROM HESSE     STATUS=OK           384 CALLS     3332 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    28.373        .40092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.4030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5755        2.0904        .13878E-03   -1.5457    
   4  Prefactor     .10000E-03    17.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.2634        .29959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.1624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.717        48.462        .12227E-03   -1.5053    
   9  Prefactor     2.0666        1.8699        .10939E-03   -1.5420    
  10  Prefactor     2.7737        17.409        .24396E-03   -1.5375    
  11  norm          3.9107        2.1162        .88258E-04   -1.5312    
  12  Prefactor     .10000E-03    21.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.3558        7.3789        .13100E-03   -1.5096    
  15  Prefactor     .10000E-03    24.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .66412E-01    21.571        .10265       -1.5656    
  17  Prefactor     4.9352        4.4842        .16586E-03   -1.5264    
  18  norm          6.1861        4.4847        .15082E-03   -1.5210    
  19  Prefactor     3.5140        8.9258        .21564E-03   -1.5333    
  20  Prefactor     51.010        48.058        .56126E-04   -1.4278    
  21  Prefactor     .10000E-03    17.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2555        .27237        .30823E-03   -.84904    
  23  Prefactor     .92356        .13953        .18983E-03   -.95323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55275e-10
Minuit parameter uncertainties:
  1  0.000341664
  2  1.73157e-06
  3  2.09048
  4  1.21407e-06
  5  3.92134e-06
  6  2.06501e-06
  7  1.61531e-05
  8  45.6414
  9  1.86997
  10  13.9036
  11  2.11628
  12  2.07521e-07
  13  1.02785e-05
  14  7.37958
  15  5.66046e-08
  16  2.39285
  17  4.48452
  18  4.48497
  19  8.92922
  20  48.0947
  21  0.000115026
  22  0.272678
  23  0.139586
Done.

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

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  3.911e+00  2.116e+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:  9.236e-01  1.396e-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.256e+00  2.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.24
Ra Dec: 314.072 -47.237
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 8.78e-08 +/- 4.75e-08
Energy Flux (Fixed Index): 2.68e-05 +/- 1.45e-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) = 7538.72174376
delta logL = 0.0207238787643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7538.72039225
delta logL = 0.0220753819322

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8403       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4712       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2452       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92747       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=   7538.720     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      202 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8403        46.690        .51485E-02    .76284E-03
   2  alpha         2.4712        3.2612        .41155        .95296E-05
   3  Normalizat    1.2452        .12371        .69906E-01    .55293E-04
   4  Prefactor     .92747        .73470E-01    .45354E-01    .25459E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.84032
  alpha      = 2.47118
  Normalizat = 1.24516
  Prefactor  = 0.927467
 **********
 **   18 **HESSE 
 **********

 FCN=   7538.720     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8403        2.1326        .86120E-04   -1.5316    
   2  alpha         2.4712        .57336        .15490E-01   -.11530E-01
   3  Normalizat    1.2452        .25764        .30931E-03   -.85219    
   4  Prefactor     .92747        .13703        .18948E-03   -.95188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38257e-11
Minuit parameter uncertainties:
  1  2.1326
  2  0.578505
  3  0.257902
  4  0.137076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/215181': 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) = 7538.72039225
delta logL = 0.0220753819367

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  3.840e+00  2.133e+00  1.000e-04  1.000e+04 ( 1.000e-11)
292        alpha:  2.471e+00  5.785e-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:  9.275e-01  1.371e-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.245e+00  2.579e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.28
Ra Dec: 314.072 -47.237
Photon Index (Free Index): 2.47 +/- 0.58
Photon Flux (Free Index): 9.45e-08 +/- 5.79e-08
Energy Flux (Free Index): 2.61e-05 +/- 1.45e-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/215181/cmap_HighResolution_638236801_638496001_4FGL_J2056.2-4714_daily_bin1539.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.78e-08', energy_flux2='2.61e-05', photon_flux_error='4.75e-08', dlogl='2.21e-02', energy_flux='2.68e-05', photon_flux2='9.45e-08', job_status='DONE', time_completed='2021-09-25 22:05:44.793072', photon_index_error2='0.58', photon_index2='2.47', ts='6.24', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='1.26', time_epoch_completed='1632632744.79', return_code='0', job_id='215181', GAL2='0.93', EG2='1.25', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='5.79e-08', ts2='6.28', photon_index='2.35' WHERE bin_id='1539' AND source_name='4FGL J2056.2-4714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 22:05:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 215181: <4FGL_J2056.2-4714_daily_bin1539> in cluster <slac> Done

Job <4FGL_J2056.2-4714_daily_bin1539> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 25 21:50:18 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 21:52:39 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:52:39 2021
Terminated at Sat Sep 25 22:05:45 2021
Results reported at Sat Sep 25 22:05:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.2-4714_daily_bin1539 314.072 -47.2369 638236801 638496001 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 :                                   677.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            927 sec.

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

