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


Performing analysis on: 4FGL_J2056.2-4714_daily_bin1063
RA = 314.072, Dec = -47.2369
tmin = 514857601, tmax = 515116801
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='212559', job_status='RUN', time_executed='2021-09-25 21:43:13.431371', time_epoch_executed='1632631393.43' WHERE source_name='4FGL J2056.2-4714' and cadence='daily' and bin_id='1063'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212559

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212559/ft1_4FGL_J2056.2-4714_daily_bin1063.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212559/ft2_4FGL_J2056.2-4714_daily_bin1063.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212559/ft1_4FGL_J2056.2-4714_daily_bin1063.fits outfile=/scratch/kocevski/212559/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1063.fits ra=314.072 dec=-47.2369 rad=12.0 tmin=514857601.0 tmax=515116801.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.56
user 3.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212559/ft1_filtered_4FGL_J2056.2-4714_daily_bin1063.fits" evtable="EVENTS" scfile=/scratch/kocevski/212559/ft2_4FGL_J2056.2-4714_daily_bin1063.fits sctable="SC_DATA" outfile=/scratch/kocevski/212559/ltcube_514857601_515116801_4FGL_J2056.2-4714_daily_bin1063.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/212559/ft2_4FGL_J2056.2-4714_daily_bin1063.fits
.....................!
real 15.02
user 14.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212559/ft1_filtered_4FGL_J2056.2-4714_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/212559/ft2_4FGL_J2056.2-4714_daily_bin1063.fits sctable="SC_DATA" expcube=/scratch/kocevski/212559/ltcube_514857601_515116801_4FGL_J2056.2-4714_daily_bin1063.fits outfile=/scratch/kocevski/212559/expmap_514857601_515116801_4FGL_J2056.2-4714_daily_bin1063.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/212559/ltcube_514857601_515116801_4FGL_J2056.2-4714_daily_bin1063.fits
.....................!
real 193.08
user 186.96
sys 4.29

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/212559/ft1_filtered_4FGL_J2056.2-4714_daily_bin1063.fits scfile=/scratch/kocevski/212559/ft2_4FGL_J2056.2-4714_daily_bin1063.fits outfile=/scratch/kocevski/212559/cmap_514857601_515116801_4FGL_J2056.2-4714_daily_bin1063.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212559/ft1_filtered_4FGL_J2056.2-4714_daily_bin1063.fits scfile=/scratch/kocevski/212559/ft2_4FGL_J2056.2-4714_daily_bin1063.fits outfile=/scratch/kocevski/212559/cmap_HighResolution_514857601_515116801_4FGL_J2056.2-4714_daily_bin1063.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/212559/ft1_filtered_4FGL_J2056.2-4714_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/212559/ft2_4FGL_J2056.2-4714_daily_bin1063.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/212559/Model_4FGL_J2056.2-4714_daily_bin1063.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/212559/ft1_filtered_4FGL_J2056.2-4714_daily_bin1063.fits.....................!
real 62.84
user 61.26
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.8450       1.0000         .10000E-03   10000.    
     3 'norm      '    3.5509       1.0000         .10000E-03   10000.    
     4 'Prefactor '    64.021       1.0000         .10000E-03   10000.    
     5 'norm      '    .10522       1.0000         .10000E-03   10000.    
     6 'norm      '    1.5016       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    74.130       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4349       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.764       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    87.939       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.270       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.081       1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.762       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4284       1.0000         .10000E-03   10000.    
    18 'norm      '    5.5614       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.3634       1.0000         .10000E-03   10000.    
    20 'Prefactor '    42.381       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.6531       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .80840       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2123       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8239.382     FROM MIGRAD    STATUS=CONVERGED     43 CALLS     2139 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.5248        .88169E-08** at limit **
   2  norm          2.8447        1.0219       -.93293E-07    .24425E-03
   3  norm          3.5510        1.9730       -.48730E-07   -.20623E-04
   4  Prefactor     64.021        1.0019        .10851E-07   -.86954E-03
   5  norm          .10692        .32420        .25431E-06   -.29769E-03
   6  norm          1.5022        1.0745        .10210E-06   -.15208E-03
   7  Prefactor     .10000E-03    5.6008        .52294E-06** at limit **
   8  Prefactor     74.130        1.0027       -.12245E-07    .10263E-02
   9  Prefactor     4.4350        2.8490        .20725E-05    .40565E-03
  10  Prefactor     10.764        1.0064       -.41127E-07    .77391E-03
  11  norm          .10000E-03    .61107       -.12652E-06** at limit **
  12  Prefactor     87.939        1.0073        .18330E-07   -.20091E-02
  13  Prefactor     27.270        1.0158       -.48213E-07    .16126E-02
  14  Prefactor     10.081        1.0085       -.55242E-07    .34864E-03
  15  Prefactor     35.761        1.0452       -.72955E-07    .29403E-02
  16  Prefactor     .10000E-03    9.1913       -.46696E-06** at limit **
  17  Prefactor     6.4280        1.0041       -.27007E-07   -.94891E-04
  18  norm          5.5618        1.0075       -.48649E-07   -.25989E-04
  19  Prefactor     9.3630        1.0114       -.66722E-07    .54774E-03
  20  Prefactor     42.381        1.0235       -.47951E-07    .23235E-02
  21  Prefactor     8.6525        1.0097       -.61259E-07    .43140E-03
  22  Normalizat    .80861        .25288       -.61666E-06    .11593E-05
  23  Prefactor     1.2122        .14158        .14533E-06   -.35748E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.84471
  norm       = 3.55104
  Prefactor  = 64.0212
  norm       = 0.106918
  norm       = 1.50216
  Prefactor  = 0.0001
  Prefactor  = 74.13
  Prefactor  = 4.43496
  Prefactor  = 10.7639
  norm       = 0.0001
  Prefactor  = 87.9393
  Prefactor  = 27.2698
  Prefactor  = 10.0805
  Prefactor  = 35.7613
  Prefactor  = 0.0001
  Prefactor  = 6.42803
  norm       = 5.56182
  Prefactor  = 9.36296
  Prefactor  = 42.381
  Prefactor  = 8.65247
  Normalizat = 0.808611
  Prefactor  = 1.21221
 **********
 **   18 **HESSE 
 **********

 FCN=   8239.382     FROM HESSE     STATUS=OK           436 CALLS     2575 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.4932        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.8447        11.876        .60266E-02   -1.5371    
   3  norm          3.5510        1.9775        .53623E-02   -1.5331    
   4  Prefactor     64.021        72.628        .12539E-02   -1.4106    
   5  norm          .10692        1.5245        .58887E-01   -1.5643    
   6  norm          1.5022        14.391        .87349E-02   -1.5463    
   7  Prefactor     .10000E-03    5.6010        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     74.130        70.146        .11658E-02   -1.3984    
   9  Prefactor     4.4350        2.8864        .47805E-02   -1.5287    
  10  Prefactor     10.764        18.416        .30529E-02   -1.5052    
  11  norm          .10000E-03    .59597        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     87.939        43.446        .10711E-02   -1.3830    
  13  Prefactor     27.270        52.552        .19179E-02   -1.4663    
  14  Prefactor     10.081        8.2508        .31550E-02   -1.5073    
  15  Prefactor     35.761        32.518        .16754E-02   -1.4511    
  16  Prefactor     .10000E-03    9.1920        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.4280        4.4362        .39575E-02   -1.5201    
  18  norm          5.5618        5.0124        .42590E-02   -1.5236    
  19  Prefactor     9.3630        9.3141        .32742E-02   -1.5096    
  20  Prefactor     42.381        41.303        .15394E-02   -1.4405    
  21  Prefactor     8.6525        8.8708        .34067E-02   -1.5120    
  22  Normalizat    .80861        .24408        .90117E-01   -.99750    
  23  Prefactor     1.2122        .12730        .34346E-01   -.85956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28529e-07
Minuit parameter uncertainties:
  1  1.23214e-06
  2  11.6286
  3  1.97758
  4  72.729
  5  0.807105
  6  9.30152
  7  1.22001e-05
  8  70.2243
  9  2.88653
  10  18.4258
  11  1.52619e-06
  12  43.4618
  13  52.6416
  14  8.25174
  15  32.534
  16  4.1952e-05
  17  4.43644
  18  5.01277
  19  9.31554
  20  41.3311
  21  8.87219
  22  0.24441
  23  0.12733
Done.

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

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  1.000e-04  1.526e-06  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.212e+00  1.273e-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:  8.086e-01  2.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 314.072 -47.237
Photon Flux Upper Limit: 5.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/212559/likelihoodResults_514857601_515116801_4FGL_J2056.2-4714_daily_bin1063.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8239.38973388
delta logL = -0.00768629062986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8239.38204451
delta logL = 3.0793780752e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17729E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4684       1.0000          .0000       5.0000    
     3 'Normalizat'    .80865       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2122       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=   8239.382     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      262 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    1.1354        .12360E-02** at limit **
   2  alpha         3.4843        3.6942        .18383       -.65666E-04
   3  Normalizat    .80861        .25018        .39915E-03    .26010E-03
   4  Prefactor     1.2122        .14031        .18500E-03    .52282E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100011
  alpha      = 3.48435
  Normalizat = 0.808606
  Prefactor  = 1.21221
 **********
 **   18 **HESSE 
 **********

 FCN=   8239.382     FROM HESSE     STATUS=OK            23 CALLS      285 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    1.1387        .24719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.4843        3.6932        .36766E-01    .40470    
   3  Normalizat    .80861        .25027        .15966E-04   -.99750    
   4  Prefactor     1.2122        .14039        .37001E-04   -.85956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4337e-08
Minuit parameter uncertainties:
  1  0.000225367
  2  2.29814
  3  0.250632
  4  0.140431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212559': 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) = 8239.3820095
delta logL = 3.80875153496e-05

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  1.000e-04  2.254e-04  1.000e-04  1.000e+04 ( 1.000e-11)
292        alpha:  3.484e+00  2.298e+00  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.212e+00  1.404e-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:  8.086e-01  2.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 314.072 -47.237

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/212559/cmap_HighResolution_514857601_515116801_4FGL_J2056.2-4714_daily_bin1063.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.81e-05', job_status='DONE', photon_flux_upper_limit='5.93e-08', time_completed='2021-09-25 21:55:13.184920', job_id='212559', GAL2='1.21', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1632632113.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='3.81e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1063' AND source_name='4FGL J2056.2-4714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 21:55:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 212559: <4FGL_J2056.2-4714_daily_bin1063> in cluster <slac> Done

Job <4FGL_J2056.2-4714_daily_bin1063> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 25 21:41:00 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 21:42:05 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:42:05 2021
Terminated at Sat Sep 25 21:55:13 2021
Results reported at Sat Sep 25 21:55:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.2-4714_daily_bin1063 314.072 -47.2369 514857601 515116801 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 :                                   712.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            853 sec.

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

