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


Performing analysis on: 4FGL_J2056.2-4714_daily_bin1072
RA = 314.072, Dec = -47.2369
tmin = 517190401, tmax = 517449601
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='212568', job_status='RUN', time_executed='2021-09-25 21:44:21.246090', time_epoch_executed='1632631461.25' WHERE source_name='4FGL J2056.2-4714' and cadence='daily' and bin_id='1072'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212568

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212568/ft1_4FGL_J2056.2-4714_daily_bin1072.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212568/ft2_4FGL_J2056.2-4714_daily_bin1072.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212568/ft1_4FGL_J2056.2-4714_daily_bin1072.fits outfile=/scratch/kocevski/212568/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1072.fits ra=314.072 dec=-47.2369 rad=12.0 tmin=517190401.0 tmax=517449601.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.66
user 4.41
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212568/ft1_filtered_4FGL_J2056.2-4714_daily_bin1072.fits" evtable="EVENTS" scfile=/scratch/kocevski/212568/ft2_4FGL_J2056.2-4714_daily_bin1072.fits sctable="SC_DATA" outfile=/scratch/kocevski/212568/ltcube_517190401_517449601_4FGL_J2056.2-4714_daily_bin1072.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/212568/ft2_4FGL_J2056.2-4714_daily_bin1072.fits
.....................!
real 13.79
user 13.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212568/ft1_filtered_4FGL_J2056.2-4714_daily_bin1072.fits evtable="EVENTS" scfile=/scratch/kocevski/212568/ft2_4FGL_J2056.2-4714_daily_bin1072.fits sctable="SC_DATA" expcube=/scratch/kocevski/212568/ltcube_517190401_517449601_4FGL_J2056.2-4714_daily_bin1072.fits outfile=/scratch/kocevski/212568/expmap_517190401_517449601_4FGL_J2056.2-4714_daily_bin1072.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/212568/ltcube_517190401_517449601_4FGL_J2056.2-4714_daily_bin1072.fits
.....................!
real 192.96
user 187.61
sys 4.94

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/212568/ft1_filtered_4FGL_J2056.2-4714_daily_bin1072.fits scfile=/scratch/kocevski/212568/ft2_4FGL_J2056.2-4714_daily_bin1072.fits outfile=/scratch/kocevski/212568/cmap_517190401_517449601_4FGL_J2056.2-4714_daily_bin1072.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212568/ft1_filtered_4FGL_J2056.2-4714_daily_bin1072.fits scfile=/scratch/kocevski/212568/ft2_4FGL_J2056.2-4714_daily_bin1072.fits outfile=/scratch/kocevski/212568/cmap_HighResolution_517190401_517449601_4FGL_J2056.2-4714_daily_bin1072.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=314.072 yref=-47.2369 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/212568/ft1_filtered_4FGL_J2056.2-4714_daily_bin1072.fits evtable="EVENTS" scfile=/scratch/kocevski/212568/ft2_4FGL_J2056.2-4714_daily_bin1072.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/212568/Model_4FGL_J2056.2-4714_daily_bin1072.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/212568/ft1_filtered_4FGL_J2056.2-4714_daily_bin1072.fits.....................!
real 71.06
user 68.80
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42920       1.0000         .10000E-03   10000.    
     2 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.7372       1.0000         .10000E-03   10000.    
     6 'norm      '    6.1895       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11860E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1512       1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.884       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3868       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.365       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4205       1.0000         .10000E-03   10000.    
    18 'norm      '    15.374       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7348       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.653       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14433E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3047       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78418       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=   9224.765     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2224 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .41470        5.0610       -.16712E-05   -.10545E-03
   2  norm          .10000E-03    15.685        .54732E-05** at limit **
   3  norm          .10000E-03    .48775        .22450E-08** at limit **
   4  Prefactor     .10000E-03    15.217       -.12050E-04** at limit **
   5  norm          3.7370        2.5386       -.17611E-06   -.35277E-03
   6  norm          6.1867        8.3191       -.39798E-06   -.29643E-04
   7  Prefactor     .10000E-03    6.8851       -.10589E-06** at limit **
   8  Prefactor     .10000E-03    49.425        .17706E-04** at limit **
   9  Prefactor     .10000E-03    .95348       -.18504E-06** at limit **
  10  Prefactor     .10000E-03    64.772        .12976E-05** at limit **
  11  norm          1.1511        1.1447       -.26051E-06   -.86325E-03
  12  Prefactor     31.880        18.399       -.40924E-06   -.12327E-06
  13  Prefactor     .10000E-03    23.869       -.22843E-04** at limit **
  14  Prefactor     5.3882        7.5580        .23494E-06   -.32079E-03
  15  Prefactor     .10000E-03    18.782        .20670E-04** at limit **
  16  Prefactor     10.365        16.908       -.91459E-06    .25706E-04
  17  Prefactor     3.4214        2.9193        .14575E-06   -.16636E-03
  18  norm          15.373        5.3650        .38315E-06   -.41932E-03
  19  Prefactor     4.7333        9.8250       -.12445E-05   -.19714E-03
  20  Prefactor     16.590        28.887       -.47001E-04   -.23477E-04
  21  Prefactor     .10001E-03    10.074        .24875E-05** at limit **
  22  Normalizat    1.3043        .18268        .40208E-05   -.23223E-03
  23  Prefactor     .78454        .93902E-01   -.81453E-06    .44191E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.414702
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.737
  norm       = 6.18674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.15113
  Prefactor  = 31.8795
  Prefactor  = 0.0001
  Prefactor  = 5.38819
  Prefactor  = 0.0001
  Prefactor  = 10.3647
  Prefactor  = 3.42137
  norm       = 15.3729
  Prefactor  = 4.73325
  Prefactor  = 16.59
  Prefactor  = 0.000100008
  Normalizat = 1.30432
  Prefactor  = 0.784539
 **********
 **   18 **HESSE 
 **********

 FCN=   9224.765     FROM HESSE     STATUS=OK           372 CALLS     2596 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .41470        29.369        .41056E-02   -1.5579    
   2  norm          .10000E-03    16.068        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .49943        .65475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.7370        2.5344        .12205E-03   -1.5321    
   6  norm          6.1867        8.3168        .16136E-03   -1.5210    
   7  Prefactor     .10000E-03    6.8952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    49.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.7871        .18162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    67.249        .36329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1511        1.1267        .98449E-04   -1.5493    
  12  Prefactor     31.880        18.401        .70962E-04   -1.4578    
  13  Prefactor     .10000E-03    23.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3882        7.5922        .17315E-03   -1.5244    
  15  Prefactor     .10000E-03    18.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.365        16.927        .12445E-03   -1.5064    
  17  Prefactor     3.4214        2.9187        .14613E-03   -1.5338    
  18  norm          15.373        5.3607        .10215E-03   -1.4924    
  19  Prefactor     4.7333        9.8313        .18492E-03   -1.5273    
  20  Prefactor     16.590        28.978        .98145E-04   -1.4893    
  21  Prefactor     .10001E-03    10.439        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3043        .21995        .28040E-03   -.83437    
  23  Prefactor     .78454        .11379        .18809E-03   -1.0030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42858e-08
Minuit parameter uncertainties:
  1  6.98258
  2  8.1342e-05
  3  1.80501e-06
  4  8.08749e-06
  5  2.53446
  6  8.31838
  7  6.53377e-06
  8  0.000132566
  9  2.65471e-05
  10  0.000590068
  11  1.12674
  12  18.4039
  13  5.00702e-06
  14  7.59351
  15  9.99629e-05
  16  16.9346
  17  2.91886
  18  5.36089
  19  9.83463
  20  29.0029
  21  0.000583462
  22  0.220107
  23  0.113821
Done.

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

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  1.151e+00  1.127e+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:  7.845e-01  1.138e-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.304e+00  2.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.93
Ra Dec: 314.072 -47.237
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 2.58e-08 +/- 2.53e-08
Energy Flux (Fixed Index): 7.90e-06 +/- 7.73e-06

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

Saving results to:
/scratch/kocevski/212568/likelihoodResults_517190401_517449601_4FGL_J2056.2-4714_daily_bin1072.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) = 9224.62713824
delta logL = 0.138274756544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9224.61551523
delta logL = 0.149897763813

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .97616       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8637       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3173       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78066       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=   9224.616     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      198 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .97570        1.0183        .13081E-01    .38192E-03
   2  alpha         1.8656        .62097        .42977       -.55310E-04
   3  Normalizat    1.3170        .17245        .63126E-01    .66461E-03
   4  Prefactor     .78075        .92526E-01    .43465E-01    .10326E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.9757
  alpha      = 1.86559
  Normalizat = 1.31702
  Prefactor  = 0.780745
 **********
 **   18 **HESSE 
 **********

 FCN=   9224.616     FROM HESSE     STATUS=OK            29 CALLS      227 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .97570        1.1308        .94365E-04   -1.5510    
   2  alpha         1.8656        .82975        .23862E-01   -.25657    
   3  Normalizat    1.3170        .20615        .27923E-03   -.83060    
   4  Prefactor     .78075        .11052        .18850E-03   -1.0044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85991e-10
Minuit parameter uncertainties:
  1  1.13081
  2  0.846963
  3  0.206276
  4  0.110554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212568': 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) = 9224.61551026
delta logL = 0.149902739126

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  9.757e-01  1.131e+00  1.000e-04  1.000e+04 ( 1.000e-11)
292        alpha:  1.866e+00  8.470e-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:  7.807e-01  1.106e-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.317e+00  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.23
Ra Dec: 314.072 -47.237
Photon Index (Free Index): 1.87 +/- 0.85
Photon Flux (Free Index): 1.63e-08 +/- 2.25e-08
Energy Flux (Free Index): 9.11e-06 +/- 9.88e-06

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/212568/cmap_HighResolution_517190401_517449601_4FGL_J2056.2-4714_daily_bin1072.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.65e-05', comment='SUCCESS', photon_flux='2.58e-08', energy_flux2='9.11e-06', photon_flux_error='2.53e-08', dlogl='1.50e-01', energy_flux='7.90e-06', photon_flux2='1.63e-08', job_status='DONE', time_completed='2021-09-25 21:57:18.561593', photon_index_error2='0.85', photon_index2='1.87', ts='1.93', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='8.67e-08', energy_flux_error2='9.88e-06', EG='1.30', time_epoch_completed='1632632238.56', return_code='0', job_id='212568', GAL2='0.78', EG2='1.32', return_code2='0', energy_flux_error='7.73e-06', photon_flux_error2='2.25e-08', ts2='2.23', photon_index='2.35' WHERE bin_id='1072' AND source_name='4FGL J2056.2-4714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 21:57:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 212568: <4FGL_J2056.2-4714_daily_bin1072> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.2-4714_daily_bin1072 314.072 -47.2369 517190401 517449601 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 :                                   774.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            978 sec.

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

