/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 72 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_bin1043
RA = 314.072, Dec = -47.2369
tmin = 509673601, tmax = 509932801
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='212528', job_status='RUN', time_executed='2021-09-25 21:43:23.205306', time_epoch_executed='1632631403.21' WHERE source_name='4FGL J2056.2-4714' and cadence='daily' and bin_id='1043'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212528

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212528/ft1_4FGL_J2056.2-4714_daily_bin1043.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212528/ft2_4FGL_J2056.2-4714_daily_bin1043.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212528/ft1_4FGL_J2056.2-4714_daily_bin1043.fits outfile=/scratch/kocevski/212528/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1043.fits ra=314.072 dec=-47.2369 rad=12.0 tmin=509673601.0 tmax=509932801.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.58
user 3.37
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/212528/ft2_4FGL_J2056.2-4714_daily_bin1043.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/212528/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1043.fits evtable="EVENTS" outfile="/scratch/kocevski/212528/ft1_filtered_4FGL_J2056.2-4714_daily_bin1043.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.52
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212528/ft1_filtered_4FGL_J2056.2-4714_daily_bin1043.fits" evtable="EVENTS" scfile=/scratch/kocevski/212528/ft2_4FGL_J2056.2-4714_daily_bin1043.fits sctable="SC_DATA" outfile=/scratch/kocevski/212528/ltcube_509673601_509932801_4FGL_J2056.2-4714_daily_bin1043.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/212528/ft2_4FGL_J2056.2-4714_daily_bin1043.fits
.....................!
real 14.83
user 14.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212528/ft1_filtered_4FGL_J2056.2-4714_daily_bin1043.fits evtable="EVENTS" scfile=/scratch/kocevski/212528/ft2_4FGL_J2056.2-4714_daily_bin1043.fits sctable="SC_DATA" expcube=/scratch/kocevski/212528/ltcube_509673601_509932801_4FGL_J2056.2-4714_daily_bin1043.fits outfile=/scratch/kocevski/212528/expmap_509673601_509932801_4FGL_J2056.2-4714_daily_bin1043.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/212528/ltcube_509673601_509932801_4FGL_J2056.2-4714_daily_bin1043.fits
.....................!
real 192.09
user 186.49
sys 4.00

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/212528/ft1_filtered_4FGL_J2056.2-4714_daily_bin1043.fits scfile=/scratch/kocevski/212528/ft2_4FGL_J2056.2-4714_daily_bin1043.fits outfile=/scratch/kocevski/212528/cmap_509673601_509932801_4FGL_J2056.2-4714_daily_bin1043.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/212528/ft1_filtered_4FGL_J2056.2-4714_daily_bin1043.fits scfile=/scratch/kocevski/212528/ft2_4FGL_J2056.2-4714_daily_bin1043.fits outfile=/scratch/kocevski/212528/cmap_HighResolution_509673601_509932801_4FGL_J2056.2-4714_daily_bin1043.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.56
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/212528/ft1_filtered_4FGL_J2056.2-4714_daily_bin1043.fits evtable="EVENTS" scfile=/scratch/kocevski/212528/ft2_4FGL_J2056.2-4714_daily_bin1043.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/212528/Model_4FGL_J2056.2-4714_daily_bin1043.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/212528/ft1_filtered_4FGL_J2056.2-4714_daily_bin1043.fits.....................!
real 48.62
user 47.34
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.2146       1.0000         .10000E-03   10000.    
     4 'Prefactor '    61.073       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6425       1.0000         .10000E-03   10000.    
     6 'norm      '    24.854       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .39062E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15172E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3189       1.0000         .10000E-03   10000.    
    11 'norm      '    3.2110       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9002       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11505E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.5792       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.522       1.0000         .10000E-03   10000.    
    16 'Prefactor '    51.348       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1689       1.0000         .10000E-03   10000.    
    18 'norm      '    .93721       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .30479       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1590       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0427       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=   5927.335     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2655 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.0924       -.31933E-07** at limit **
   2  norm          .10000E-03    5.6256       -.31570E-07** at limit **
   3  norm          3.2140        1.9331       -.28038E-07   -.10555E-04
   4  Prefactor     61.006        80.038        .89878E-07    .18565E-05
   5  norm          1.6416        3.7988        .71321E-06   -.22651E-04
   6  norm          24.882        25.678        .50215E-06    .37204E-04
   7  Prefactor     .10000E-03    40.103        .86163E-06** at limit **
   8  Prefactor     .10003E-03    452.46        .11538E-04** at limit **
   9  Prefactor     .10000E-03    1.5543       -.19239E-06** at limit **
  10  Prefactor     2.3139        26.818        .74576E-06   -.51239E-05
  11  norm          3.2104        3.0049        .24033E-06   -.32692E-04
  12  Prefactor     5.8886        37.171        .37921E-06    .95074E-05
  13  Prefactor     .10000E-03    18.777       -.94611E-07** at limit **
  14  Prefactor     7.5744        10.863        .12246E-06    .63727E-05
  15  Prefactor     12.498        36.404       -.56944E-05   -.42874E-04
  16  Prefactor     51.340        33.431       -.17784E-06    .74188E-05
  17  Prefactor     1.1675        3.9113        .92929E-06    .85199E-04
  18  norm          .93790        4.7139        .43920E-05    .10605E-03
  19  Prefactor     .10000E-03    6.9054        .11430E-06** at limit **
  20  Prefactor     .10661E-02    58.389       -.61715E-05** at limit **
  21  Prefactor     .10000E-03    12.875       -.19030E-06** at limit **
  22  Normalizat    1.1596        .27306        .55384E-06    .13253E-03
  23  Prefactor     1.0427        .13612        .16877E-06    .17054E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.21403
  Prefactor  = 61.0061
  norm       = 1.64162
  norm       = 24.8816
  Prefactor  = 0.0001
  Prefactor  = 0.000100033
  Prefactor  = 0.0001
  Prefactor  = 2.3139
  norm       = 3.21036
  Prefactor  = 5.8886
  Prefactor  = 0.0001
  Prefactor  = 7.57439
  Prefactor  = 12.4983
  Prefactor  = 51.3405
  Prefactor  = 1.16755
  norm       = 0.937899
  Prefactor  = 0.0001
  Prefactor  = 0.00106608
  Prefactor  = 0.0001
  Normalizat = 1.15956
  Prefactor  = 1.04273
 **********
 **   18 **HESSE 
 **********

 FCN=   5927.335     FROM HESSE     STATUS=OK           380 CALLS     3035 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.1052        .15210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.6294        .17834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.2140        1.9351        .80535E-04   -1.5349    
   4  Prefactor     61.006        80.035        .51343E-04   -1.4144    
   5  norm          1.6416        3.7676        .21888E-03   -1.5452    
   6  norm          24.882        25.679        .80350E-04   -1.4710    
   7  Prefactor     .10000E-03    40.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10003E-03    457.74        .21274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.4827        .18320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3139        26.760        .26937E-03   -1.5404    
  11  norm          3.2104        2.9971        .11951E-03   -1.5350    
  12  Prefactor     5.8886        37.112        .16532E-03   -1.5223    
  13  Prefactor     .10000E-03    18.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.5744        10.890        .14567E-03   -1.5157    
  15  Prefactor     12.498        36.792        .11320E-03   -1.5001    
  16  Prefactor     51.340        33.520        .55968E-04   -1.4274    
  17  Prefactor     1.1675        3.8475        .26573E-03   -1.5492    
  18  norm          .93790        4.7243        .31027E-03   -1.5514    
  19  Prefactor     .10000E-03    6.9297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10661E-02    52.148        .14635       -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1596        .32701        .33574E-03   -.87862    
  23  Prefactor     1.0427        .16381        .18859E-03   -.91318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65047e-09
Minuit parameter uncertainties:
  1  1.83642e-06
  2  3.38241e-06
  3  1.93518
  4  80.1769
  5  3.76817
  6  25.6907
  7  5.98932e-05
  8  0.00781302
  9  0.000117556
  10  15.7462
  11  2.99724
  12  29.5929
  13  2.29901e-06
  14  10.8931
  15  36.859
  16  33.5323
  17  3.84833
  18  4.21023
  19  9.8275e-06
  20  0.449296
  21  3.30414e-05
  22  0.327584
  23  0.163885
Done.

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

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  3.210e+00  2.997e+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:  1.043e+00  1.639e-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.160e+00  3.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.45
Ra Dec: 314.072 -47.237
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 7.21e-08 +/- 6.73e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 2.06e-05

TS (Fixed Index): 1.45
Ra Dec: 314.072 -47.237
Photon Flux Upper Limit: 2.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.22e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/212528/likelihoodResults_509673601_509932801_4FGL_J2056.2-4714_daily_bin1043.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) = 5926.69488943
delta logL = 0.640079567533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5926.69383225
delta logL = 0.641136750069

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1856       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4005       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0748       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0748       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=   5926.694     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      233 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1834        28.157        .69607E-02    .56750E-03
   2  alpha         3.4016        3.9817        .41300        .41105E-04
   3  Normalizat    1.0748        .86724E-01    .78344E-01    .16705E-04
   4  Prefactor     1.0748        .48294E-01    .38634E-01   -.91419E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 2.18339
  alpha      = 3.40157
  Normalizat = 1.07476
  Prefactor  = 1.07479
 **********
 **   18 **HESSE 
 **********

 FCN=   5926.694     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1834        3.2016        .71925E-04   -1.5412    
   2  alpha         3.4016        1.2172        .17229E-01    .36894    
   3  Normalizat    1.0748        .30596        .34678E-03   -.90566    
   4  Prefactor     1.0748        .16115        .18604E-03   -.90276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2258e-11
Minuit parameter uncertainties:
  1  3.20183
  2  1.28063
  3  0.306463
  4  0.161218
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212528': 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) = 5926.69383168
delta logL = 0.641137315797

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  2.183e+00  3.202e+00  1.000e-04  1.000e+04 ( 1.000e-11)
292        alpha:  3.402e+00  1.281e+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.075e+00  1.612e-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.075e+00  3.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.88
Ra Dec: 314.072 -47.237
Photon Index (Free Index): 3.40 +/- 1.28
Photon Flux (Free Index): 1.30e-07 +/- 8.93e-08
Energy Flux (Free Index): 2.28e-05 +/- 1.72e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/212528/cmap_HighResolution_509673601_509932801_4FGL_J2056.2-4714_daily_bin1043.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.22e-05', comment='SUCCESS', photon_flux='7.21e-08', energy_flux2='2.28e-05', photon_flux_error='6.73e-08', dlogl='6.41e-01', energy_flux='2.20e-05', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-25 21:54:00.235990', photon_index_error2='1.28', photon_index2='3.40', ts='1.45', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='2.04e-07', energy_flux_error2='1.72e-05', EG='1.16', time_epoch_completed='1632632040.24', return_code='0', job_id='212528', GAL2='1.07', EG2='1.07', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='8.93e-08', ts2='2.88', photon_index='2.35' WHERE bin_id='1043' AND source_name='4FGL J2056.2-4714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 21:54:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 212528: <4FGL_J2056.2-4714_daily_bin1043> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.2-4714_daily_bin1043 314.072 -47.2369 509673601 509932801 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 :                                   633.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            784 sec.

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

