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


Performing analysis on: 4FGL_J2056.2-4714_daily_bin1295
RA = 314.072, Dec = -47.2369
tmin = 574992001, tmax = 575251201
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='213900', job_status='RUN', time_executed='2021-09-25 21:49:20.847808', time_epoch_executed='1632631760.85' WHERE source_name='4FGL J2056.2-4714' and cadence='daily' and bin_id='1295'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/213900

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/213900/ft1_4FGL_J2056.2-4714_daily_bin1295.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/213900/ft2_4FGL_J2056.2-4714_daily_bin1295.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/213900/ft1_4FGL_J2056.2-4714_daily_bin1295.fits outfile=/scratch/kocevski/213900/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1295.fits ra=314.072 dec=-47.2369 rad=12.0 tmin=574992001.0 tmax=575251201.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.25
user 3.93
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/213900/ft1_filtered_4FGL_J2056.2-4714_daily_bin1295.fits" evtable="EVENTS" scfile=/scratch/kocevski/213900/ft2_4FGL_J2056.2-4714_daily_bin1295.fits sctable="SC_DATA" outfile=/scratch/kocevski/213900/ltcube_574992001_575251201_4FGL_J2056.2-4714_daily_bin1295.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/213900/ft2_4FGL_J2056.2-4714_daily_bin1295.fits
.....................!
real 10.68
user 10.39
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/213900/ft1_filtered_4FGL_J2056.2-4714_daily_bin1295.fits evtable="EVENTS" scfile=/scratch/kocevski/213900/ft2_4FGL_J2056.2-4714_daily_bin1295.fits sctable="SC_DATA" expcube=/scratch/kocevski/213900/ltcube_574992001_575251201_4FGL_J2056.2-4714_daily_bin1295.fits outfile=/scratch/kocevski/213900/expmap_574992001_575251201_4FGL_J2056.2-4714_daily_bin1295.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/213900/ltcube_574992001_575251201_4FGL_J2056.2-4714_daily_bin1295.fits
.....................!
real 150.36
user 146.46
sys 3.62

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/213900/ft1_filtered_4FGL_J2056.2-4714_daily_bin1295.fits scfile=/scratch/kocevski/213900/ft2_4FGL_J2056.2-4714_daily_bin1295.fits outfile=/scratch/kocevski/213900/cmap_574992001_575251201_4FGL_J2056.2-4714_daily_bin1295.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.48
user 0.34
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/213900/ft1_filtered_4FGL_J2056.2-4714_daily_bin1295.fits scfile=/scratch/kocevski/213900/ft2_4FGL_J2056.2-4714_daily_bin1295.fits outfile=/scratch/kocevski/213900/cmap_HighResolution_574992001_575251201_4FGL_J2056.2-4714_daily_bin1295.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.47
user 0.32
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/213900/ft1_filtered_4FGL_J2056.2-4714_daily_bin1295.fits evtable="EVENTS" scfile=/scratch/kocevski/213900/ft2_4FGL_J2056.2-4714_daily_bin1295.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/213900/Model_4FGL_J2056.2-4714_daily_bin1295.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/213900/ft1_filtered_4FGL_J2056.2-4714_daily_bin1295.fits.....................!
real 59.21
user 57.26
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9750       1.0000         .10000E-03   10000.    
     2 'norm      '    16.707       1.0000         .10000E-03   10000.    
     3 'norm      '    .80585       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.475       1.0000         .10000E-03   10000.    
     5 'norm      '    .21725E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10221E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.614       1.0000         .10000E-03   10000.    
     8 'Prefactor '    104.14       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5550       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.3312       1.0000         .10000E-03   10000.    
    11 'norm      '    9.6885       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .29968E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.835       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.6169       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.4091       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12182E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .77208       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1940       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=   10303.57     FROM MIGRAD    STATUS=CONVERGED    907 CALLS     2962 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9744        4.9247        .29500E-03   -.24896E-04
   2  norm          16.708        16.936        .97987E-04    .20884E-05
   3  norm          .80226        .97696        .13073E-02    .80113E-03
   4  Prefactor     11.474        33.958        .11826E-03    .10574E-04
   5  norm          .10000E-03    15.057        .21703E-02** at limit **
   6  norm          .10000E-03    4.5205        .18142E-02** at limit **
   7  Prefactor     10.625        19.803        .12298E-03   -.11241E-03
   8  Prefactor     104.15        69.267        .39403E-04   -.10768E-03
   9  Prefactor     4.5548        2.7867        .12553E-03    .37675E-04
  10  Prefactor     7.3260        10.281        .74066E-03   -.63546E-05
  11  norm          9.6886        2.2298        .69248E-04    .38745E-04
  12  Prefactor     .10000E-03    182.33        .85014E-02** at limit **
  13  Prefactor     .10000E-03    21.902        .18142E-02** at limit **
  14  Prefactor     12.837        6.5541        .11181E-03    .14479E-03
  15  Prefactor     .10000E-03    3.6478        .18142E-02** at limit **
  16  Prefactor     7.6163        24.765        .14530E-03    .97018E-05
  17  Prefactor     .10000E-03    .62435        .78261E-03** at limit **
  18  norm          5.4096        2.8895        .12263E-03   -.10569E-04
  19  Prefactor     .10000E-03    2.0614        .14219E-02** at limit **
  20  Prefactor     .10000E-03    36.177        .18142E-02** at limit **
  21  Prefactor     .10000E-03    4.6828        .18142E-02** at limit **
  22  Normalizat    .77185        .22202        .38481E-03    .23281E-04
  23  Prefactor     1.1942        .12153        .17901E-03   -.87642E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.97441
  norm       = 16.7083
  norm       = 0.802258
  Prefactor  = 11.4742
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.6254
  Prefactor  = 104.15
  Prefactor  = 4.55482
  Prefactor  = 7.32596
  norm       = 9.68857
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 12.837
  Prefactor  = 0.0001
  Prefactor  = 7.61627
  Prefactor  = 0.0001
  norm       = 5.40956
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.771848
  Prefactor  = 1.19416
 **********
 **   18 **HESSE 
 **********

 FCN=   10303.57     FROM HESSE     STATUS=OK           348 CALLS     3310 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9744        4.9239        .11800E-04   -1.5427    
   2  norm          16.708        16.930        .39195E-05   -1.4890    
   3  norm          .80226        .97635        .52290E-04   -1.5529    
   4  Prefactor     11.474        33.944        .47305E-05   -1.5030    
   5  norm          .10000E-03    15.453        .43405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.5205        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.625        19.804        .49191E-05   -1.5056    
   8  Prefactor     104.15        69.269        .78806E-05   -1.3663    
   9  Prefactor     4.5548        2.7863        .50212E-05   -1.5281    
  10  Prefactor     7.3260        10.280        .29627E-04   -1.5167    
  11  norm          9.6886        2.2297        .27699E-05   -1.5085    
  12  Prefactor     .10000E-03    190.32        .34006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.903        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.837        6.5539        .44723E-05   -1.4991    
  15  Prefactor     .10000E-03    3.6478        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.6163        24.762        .58122E-05   -1.5156    
  17  Prefactor     .10000E-03    .62436        .15652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.4096        2.8894        .49050E-05   -1.5243    
  19  Prefactor     .10000E-03    2.0615        .28437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    36.185        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.6843        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .77185        .22215        .15392E-04   -1.0112    
  23  Prefactor     1.1942        .12161        .71604E-05   -.86511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77123e-10
Minuit parameter uncertainties:
  1  4.92489
  2  16.9346
  3  0.976368
  4  34.0011
  5  7.6208e-07
  6  4.40354e-06
  7  19.8166
  8  69.3229
  9  2.78641
  10  10.2823
  11  2.22973
  12  0.000854908
  13  8.79522e-05
  14  6.55427
  15  2.28684e-07
  16  24.795
  17  9.42471e-08
  18  2.88951
  19  2.37573e-07
  20  0.000170601
  21  3.72485e-06
  22  0.222406
  23  0.121642
Done.

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

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  9.689e+00  2.230e+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.194e+00  1.216e-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:  7.718e-01  2.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 45.62
Ra Dec: 314.072 -47.237
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 2.18e-07 +/- 5.00e-08
Energy Flux (Fixed Index): 6.65e-05 +/- 1.53e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10303.3048988
delta logL = 0.260276138579

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10303.2510822
delta logL = 0.314092813316

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.046       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1623       1.0000          .0000       5.0000    
     3 'Normalizat'    .79819       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1843       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=   10303.25     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      207 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.046        2.7376        .31606E-02    .21756E-02
   2  alpha         2.1623        .26399        .20875       -.13799E-03
   3  Normalizat    .79820        .18844        .85627E-01   -.91909E-04
   4  Prefactor     1.1843        .10609        .35014E-01   -.34315E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.0458
  alpha      = 2.16228
  Normalizat = 0.798198
  Prefactor  = 1.18425
 **********
 **   18 **HESSE 
 **********

 FCN=   10303.25     FROM HESSE     STATUS=OK            29 CALLS      236 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.046        2.3572        .72061E-04   -1.5074    
   2  alpha         2.1623        .23557        .88946E-02   -.13550    
   3  Normalizat    .79820        .21368        .37919E-03   -1.0014    
   4  Prefactor     1.1843        .12032        .17968E-03   -.86817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.01333e-10
Minuit parameter uncertainties:
  1  2.35719
  2  0.235922
  3  0.213904
  4  0.120351
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/213900': 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) = 10303.2510822
delta logL = 0.314092817074

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  1.005e+01  2.357e+00  1.000e-04  1.000e+04 ( 1.000e-11)
292        alpha:  2.162e+00  2.359e-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.184e+00  1.204e-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:  7.982e-01  2.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 46.09
Ra Dec: 314.072 -47.237
Photon Index (Free Index): 2.16 +/- 0.24
Photon Flux (Free Index): 1.97e-07 +/- 5.31e-08
Energy Flux (Free Index): 7.34e-05 +/- 1.99e-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/213900/cmap_HighResolution_574992001_575251201_4FGL_J2056.2-4714_daily_bin1295.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.18e-07', energy_flux2='7.34e-05', photon_flux_error='5.00e-08', dlogl='3.14e-01', energy_flux='6.65e-05', photon_flux2='1.97e-07', job_status='DONE', time_completed='2021-09-25 22:00:16.982640', photon_index_error2='0.24', photon_index2='2.16', ts='45.62', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='1.99e-05', EG='0.77', time_epoch_completed='1632632416.98', return_code='0', job_id='213900', GAL2='1.18', EG2='0.80', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='5.31e-08', ts2='46.09', photon_index='2.35' WHERE bin_id='1295' AND source_name='4FGL J2056.2-4714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 22:00:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 213900: <4FGL_J2056.2-4714_daily_bin1295> in cluster <slac> Done

Job <4FGL_J2056.2-4714_daily_bin1295> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 25 21:45:47 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 21:48:37 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:48:37 2021
Terminated at Sat Sep 25 22:00:17 2021
Results reported at Sat Sep 25 22:00:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.2-4714_daily_bin1295 314.072 -47.2369 574992001 575251201 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 :                                   650.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            870 sec.

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

