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


Performing analysis on: 4FGL_J2056.2-4714_daily_bin1082
RA = 314.072, Dec = -47.2369
tmin = 519782401, tmax = 520041601
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='212581', job_status='RUN', time_executed='2021-09-25 21:43:28.350703', time_epoch_executed='1632631408.35' WHERE source_name='4FGL J2056.2-4714' and cadence='daily' and bin_id='1082'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212581

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212581/ft1_4FGL_J2056.2-4714_daily_bin1082.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212581/ft2_4FGL_J2056.2-4714_daily_bin1082.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212581/ft1_4FGL_J2056.2-4714_daily_bin1082.fits outfile=/scratch/kocevski/212581/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1082.fits ra=314.072 dec=-47.2369 rad=12.0 tmin=519782401.0 tmax=520041601.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.57
user 3.28
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/212581/ft2_4FGL_J2056.2-4714_daily_bin1082.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/212581/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1082.fits evtable="EVENTS" outfile="/scratch/kocevski/212581/ft1_filtered_4FGL_J2056.2-4714_daily_bin1082.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.51
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212581/ft1_filtered_4FGL_J2056.2-4714_daily_bin1082.fits" evtable="EVENTS" scfile=/scratch/kocevski/212581/ft2_4FGL_J2056.2-4714_daily_bin1082.fits sctable="SC_DATA" outfile=/scratch/kocevski/212581/ltcube_519782401_520041601_4FGL_J2056.2-4714_daily_bin1082.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/212581/ft2_4FGL_J2056.2-4714_daily_bin1082.fits
.....................!
real 14.41
user 13.74
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212581/ft1_filtered_4FGL_J2056.2-4714_daily_bin1082.fits evtable="EVENTS" scfile=/scratch/kocevski/212581/ft2_4FGL_J2056.2-4714_daily_bin1082.fits sctable="SC_DATA" expcube=/scratch/kocevski/212581/ltcube_519782401_520041601_4FGL_J2056.2-4714_daily_bin1082.fits outfile=/scratch/kocevski/212581/expmap_519782401_520041601_4FGL_J2056.2-4714_daily_bin1082.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/212581/ltcube_519782401_520041601_4FGL_J2056.2-4714_daily_bin1082.fits
.....................!
real 195.89
user 190.13
sys 5.17

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/212581/ft1_filtered_4FGL_J2056.2-4714_daily_bin1082.fits scfile=/scratch/kocevski/212581/ft2_4FGL_J2056.2-4714_daily_bin1082.fits outfile=/scratch/kocevski/212581/cmap_519782401_520041601_4FGL_J2056.2-4714_daily_bin1082.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212581/ft1_filtered_4FGL_J2056.2-4714_daily_bin1082.fits scfile=/scratch/kocevski/212581/ft2_4FGL_J2056.2-4714_daily_bin1082.fits outfile=/scratch/kocevski/212581/cmap_HighResolution_519782401_520041601_4FGL_J2056.2-4714_daily_bin1082.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.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    45.005       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .16164E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.0198       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20025E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .52033       1.0000         .10000E-03   10000.    
    11 'norm      '    .12587E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.3348       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.783       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.511       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .50496       1.0000         .10000E-03   10000.    
    18 'norm      '    10.846       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .53904       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .67962       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1520       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=   7354.718     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2601 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.9618        .24954E-05** at limit **
   2  norm          45.013        21.625        .31939E-06   -.16085E-04
   3  norm          .10000E-03    .37952        .45006E-07** at limit **
   4  Prefactor     .10000E-03    64.421       -.36843E-05** at limit **
   5  norm          .10000E-03    1.9678       -.55199E-07** at limit **
   6  norm          .10000E-03    12.561       -.76605E-06** at limit **
   7  Prefactor     8.0226        23.863        .95206E-06   -.48772E-05
   8  Prefactor     .10000E-03    48.638       -.20894E-05** at limit **
   9  Prefactor     .10027E-03    1.0982       -.42200E-06** at limit **
  10  Prefactor     .49803        14.723       -.35870E-05    .45915E-03
  11  norm          .10001E-03    .71672       -.23109E-06** at limit **
  12  Prefactor     .10000E-03    6.1630       -.31804E-07** at limit **
  13  Prefactor     .10000E-03    53.248        .85020E-05** at limit **
  14  Prefactor     8.3343        6.5922       -.15566E-06    .72515E-04
  15  Prefactor     26.775        24.207       -.34965E-05    .10196E-03
  16  Prefactor     25.508        22.362       -.50116E-06    .10002E-03
  17  Prefactor     .50452        2.2089       -.53042E-06    .29965E-04
  18  norm          10.845        5.0223        .14271E-05    .31402E-03
  19  Prefactor     .57216        6.6848       -.33512E-05    .35094E-03
  20  Prefactor     .10000E-03    16.807        .30032E-05** at limit **
  21  Prefactor     .10000E-03    2.7273        .56682E-07** at limit **
  22  Normalizat    .67971        .21748        .18769E-05    .51781E-03
  23  Prefactor     1.1520        .11623       -.19286E-06    .10339E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 45.0128
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.02259
  Prefactor  = 0.0001
  Prefactor  = 0.000100274
  Prefactor  = 0.498031
  norm       = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.3343
  Prefactor  = 26.7745
  Prefactor  = 25.5078
  Prefactor  = 0.504523
  norm       = 10.8447
  Prefactor  = 0.572159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.679715
  Prefactor  = 1.15203
 **********
 **   18 **HESSE 
 **********

 FCN=   7354.718     FROM HESSE     STATUS=OK           380 CALLS     2981 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.0753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          45.013        21.461        .59764E-04   -1.4365    
   3  norm          .10000E-03    .38236        .51586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    64.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.7177        .23224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    12.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.0226        23.800        .14158E-03   -1.5141    
   8  Prefactor     .10000E-03    48.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10027E-03    21.979        .16885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .49803        153.68        .58649E-02   -1.5567    
  11  norm          .10001E-03    7.1550        .13756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.1644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    53.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.3343        6.5922        .13886E-03   -1.5131    
  15  Prefactor     26.775        24.227        .77408E-04   -1.4673    
  16  Prefactor     25.508        22.334        .79312E-04   -1.4697    
  17  Prefactor     .50452        10.260        .23456E-02   -1.5566    
  18  norm          10.845        5.0669        .12166E-03   -1.5049    
  19  Prefactor     .57216        22.849        .40943E-02   -1.5557    
  20  Prefactor     .10000E-03    16.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.7349        .13829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .67971        .24083        .37230E-03   -1.0470    
  23  Prefactor     1.1520        .13205        .16749E-03   -.87820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83772e-08
Minuit parameter uncertainties:
  1  2.25433e-05
  2  21.4643
  3  2.99105e-07
  4  2.98973e-05
  5  4.18264e-05
  6  1.99696e-05
  7  23.8285
  8  2.26135e-05
  9  0.00491146
  10  17.5412
  11  0.000567589
  12  7.4052e-07
  13  5.55116e-08
  14  6.59278
  15  24.2357
  16  22.3418
  17  4.55076
  18  5.06711
  19  7.23369
  20  7.70385e-06
  21  9.75969e-07
  22  0.241205
  23  0.132086
Done.

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

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  1.000e-04  5.676e-04  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.152e+00  1.321e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  6.797e-01  2.412e-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: 8.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/212581/likelihoodResults_519782401_520041601_4FGL_J2056.2-4714_daily_bin1082.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): 102
logL (Free Index) = 7354.71915705
delta logL = -0.000675702269291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7354.25457945
delta logL = 0.46390190178

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22314       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5885       1.0000          .0000       5.0000    
     3 'Normalizat'    .61179       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1733       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=   7354.255     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      293 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22318        6.9084        .96737E-02    .24255E-02
   2  alpha         4.5886        4.1077        .50000        .17189E-05
   3  Normalizat    .61175        .63853E-01    .88308E-01    .41914E-04
   4  Prefactor     1.1733        .33994E-01    .35296E-01   -.56857E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.22318
  alpha      = 4.58856
  Normalizat = 0.611752
  Prefactor  = 1.17328
 **********
 **   18 **HESSE 
 **********

 FCN=   7354.255     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      328 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22318        13.127        .44399E-03   -1.5614    
   2  alpha         4.5886        4.7925        .65541E-01    .98890    
   3  Normalizat    .61175        .16923        .39119E-03   -1.0749    
   4  Prefactor     1.1733        .95163E-01    .16612E-03   -.87158    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.68773e-07
Minuit parameter uncertainties:
  1  3.42331
  2  12.077
  3  0.169375
  4  0.0951765
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212581': 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): 102
logL (Free Index) = 7354.25457942
delta logL = 0.463901929181

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  2.232e-01  3.423e+00  1.000e-04  1.000e+04 ( 1.000e-11)
292        alpha:  4.589e+00  1.208e+01  0.000e+00  5.000e+00 ( 1.000e+00)
293         beta:  1.074e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  4.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.173e+00  9.518e-02  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  6.118e-01  1.694e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 314.072 -47.237
Photon Index (Free Index): 4.59 +/- 12.08
Photon Flux (Free Index): 5.15e-08 +/- 6.65e-08
Energy Flux (Free Index): 7.26e-06 +/- 1.73e-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/212581/cmap_HighResolution_519782401_520041601_4FGL_J2056.2-4714_daily_bin1082.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.58e-05', comment='SUCCESS', energy_flux2='7.26e-06', dlogl='4.64e-01', photon_flux2='5.15e-08', job_status='DONE', time_completed='2021-09-25 21:55:25.184667', photon_index_error2='12.08', photon_index2='4.59', ts='-0.00', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='8.44e-08', energy_flux_error2='1.73e-05', EG='0.68', time_epoch_completed='1632632125.18', return_code='0', job_id='212581', GAL2='1.17', EG2='0.61', return_code2='102', photon_flux_error2='6.65e-08', ts2='1.01', photon_index='2.35' WHERE bin_id='1082' AND source_name='4FGL J2056.2-4714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 21:55:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 212581: <4FGL_J2056.2-4714_daily_bin1082> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.2-4714_daily_bin1082 314.072 -47.2369 519782401 520041601 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 :                                   713.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            864 sec.

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

