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


Performing analysis on: 4FGL_J2056.2-4714_daily_bin1328
RA = 314.072, Dec = -47.2369
tmin = 583545601, tmax = 583804801
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='213952', job_status='RUN', time_executed='2021-09-25 21:49:35.858163', time_epoch_executed='1632631775.86' WHERE source_name='4FGL J2056.2-4714' and cadence='daily' and bin_id='1328'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/213952

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/213952/ft1_4FGL_J2056.2-4714_daily_bin1328.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/213952/ft2_4FGL_J2056.2-4714_daily_bin1328.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/213952/ft1_4FGL_J2056.2-4714_daily_bin1328.fits outfile=/scratch/kocevski/213952/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1328.fits ra=314.072 dec=-47.2369 rad=12.0 tmin=583545601.0 tmax=583804801.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.47
user 3.23
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/213952/ft2_4FGL_J2056.2-4714_daily_bin1328.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/213952/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1328.fits evtable="EVENTS" outfile="/scratch/kocevski/213952/ft1_filtered_4FGL_J2056.2-4714_daily_bin1328.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/213952/ft1_filtered_4FGL_J2056.2-4714_daily_bin1328.fits" evtable="EVENTS" scfile=/scratch/kocevski/213952/ft2_4FGL_J2056.2-4714_daily_bin1328.fits sctable="SC_DATA" outfile=/scratch/kocevski/213952/ltcube_583545601_583804801_4FGL_J2056.2-4714_daily_bin1328.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/213952/ft2_4FGL_J2056.2-4714_daily_bin1328.fits
.....................!
real 13.55
user 13.18
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/213952/ft1_filtered_4FGL_J2056.2-4714_daily_bin1328.fits evtable="EVENTS" scfile=/scratch/kocevski/213952/ft2_4FGL_J2056.2-4714_daily_bin1328.fits sctable="SC_DATA" expcube=/scratch/kocevski/213952/ltcube_583545601_583804801_4FGL_J2056.2-4714_daily_bin1328.fits outfile=/scratch/kocevski/213952/expmap_583545601_583804801_4FGL_J2056.2-4714_daily_bin1328.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/213952/ltcube_583545601_583804801_4FGL_J2056.2-4714_daily_bin1328.fits
.....................!
real 191.37
user 186.63
sys 4.34

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/213952/ft1_filtered_4FGL_J2056.2-4714_daily_bin1328.fits scfile=/scratch/kocevski/213952/ft2_4FGL_J2056.2-4714_daily_bin1328.fits outfile=/scratch/kocevski/213952/cmap_583545601_583804801_4FGL_J2056.2-4714_daily_bin1328.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.55
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/213952/ft1_filtered_4FGL_J2056.2-4714_daily_bin1328.fits scfile=/scratch/kocevski/213952/ft2_4FGL_J2056.2-4714_daily_bin1328.fits outfile=/scratch/kocevski/213952/cmap_HighResolution_583545601_583804801_4FGL_J2056.2-4714_daily_bin1328.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.58
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/213952/ft1_filtered_4FGL_J2056.2-4714_daily_bin1328.fits evtable="EVENTS" scfile=/scratch/kocevski/213952/ft2_4FGL_J2056.2-4714_daily_bin1328.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/213952/Model_4FGL_J2056.2-4714_daily_bin1328.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/213952/ft1_filtered_4FGL_J2056.2-4714_daily_bin1328.fits.....................!
real 57.05
user 55.56
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    15.520       1.0000         .10000E-03   10000.    
     3 'norm      '    2.4735       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.7462       1.0000         .10000E-03   10000.    
     6 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    81.295       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .26176       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.851       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.771       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0590       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    22.267       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.1011       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10466E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0570       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98969       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=   7291.418     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2497 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.2924       -.99837E-07** at limit **
   2  norm          15.506        22.663        .12355E-06   -.27533E-04
   3  norm          2.4736        1.7947        .13519E-07   -.81860E-05
   4  Prefactor     .10000E-03    60.808       -.52144E-06** at limit **
   5  norm          2.7469        2.7121       -.13070E-07   -.17495E-05
   6  norm          .10000E-03    25.316       -.41200E-07** at limit **
   7  Prefactor     .10000E-03    37.072        .71386E-06** at limit **
   8  Prefactor     81.294        68.749        .32843E-06   -.38321E-05
   9  Prefactor     .26193        1.5351        .15744E-05   -.27271E-04
  10  Prefactor     .10000E-03    24.246       -.63178E-06** at limit **
  11  norm          10.852        2.8600        .41464E-08   -.34066E-04
  12  Prefactor     .10000E-03    6.7232       -.36942E-08** at limit **
  13  Prefactor     47.758        51.509       -.52470E-06   -.39651E-04
  14  Prefactor     8.0604        6.9315        .90723E-07   -.20436E-04
  15  Prefactor     .10000E-03    18.344        .89776E-07** at limit **
  16  Prefactor     .10000E-03    6.2024       -.24544E-07** at limit **
  17  Prefactor     .10000E-03    1.6698        .55243E-08** at limit **
  18  norm          22.269        7.0634        .26961E-07   -.39286E-04
  19  Prefactor     5.1036        11.648        .33067E-06   -.55484E-05
  20  Prefactor     .10000E-03    52.077        .43193E-06** at limit **
  21  Prefactor     .10000E-03    5.1968        .69840E-07** at limit **
  22  Normalizat    1.0568        .22280       -.23669E-07   -.61089E-04
  23  Prefactor     .98982        .11862       -.27524E-06   -.45547E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 15.5062
  norm       = 2.47362
  Prefactor  = 0.000100001
  norm       = 2.74685
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 81.2937
  Prefactor  = 0.26193
  Prefactor  = 0.0001
  norm       = 10.8515
  Prefactor  = 0.0001
  Prefactor  = 47.7582
  Prefactor  = 8.0604
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.269
  Prefactor  = 5.10356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05681
  Prefactor  = 0.989822
 **********
 **   18 **HESSE 
 **********

 FCN=   7291.418     FROM HESSE     STATUS=OK           366 CALLS     2863 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.3053        .17271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.506        22.652        .10167E-03   -1.4920    
   3  norm          2.4736        1.7962        .94355E-04   -1.5393    
   4  Prefactor     .10000E-03    61.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.7469        2.7110        .13486E-03   -1.5376    
   6  norm          .10000E-03    25.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    37.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     81.294        68.772        .44546E-04   -1.3902    
   9  Prefactor     .26193        1.5377        .20702E-03   -1.5606    
  10  Prefactor     .10000E-03    24.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.852        2.8635        .70449E-04   -1.5049    
  12  Prefactor     .10000E-03    6.7253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     47.758        51.639        .58015E-04   -1.4325    
  14  Prefactor     8.0604        6.9427        .14123E-03   -1.5140    
  15  Prefactor     .10000E-03    18.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.2078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.6828        .10771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          22.269        7.0616        .84884E-04   -1.4764    
  19  Prefactor     5.1036        11.676        .17802E-03   -1.5256    
  20  Prefactor     .10000E-03    52.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.2311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0568        .26454        .33679E-03   -.91151    
  23  Prefactor     .98982        .14104        .19029E-03   -.93070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.97218e-11
Minuit parameter uncertainties:
  1  1.40016e-06
  2  22.6642
  3  1.79624
  4  0.000405588
  5  2.71114
  6  7.06824e-05
  7  0.000330182
  8  68.8395
  9  1.26907
  10  0.000115964
  11  2.86358
  12  4.45201e-06
  13  51.6873
  14  6.94339
  15  4.17601e-05
  16  5.40762e-06
  17  5.95093e-07
  18  7.06188
  19  11.6813
  20  0.000105619
  21  2.30502e-07
  22  0.264872
  23  0.141094
Done.

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

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  1.085e+01  2.864e+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:  9.898e-01  1.411e-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.057e+00  2.649e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 32.53
Ra Dec: 314.072 -47.237
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 2.44e-07 +/- 6.43e-08
Energy Flux (Fixed Index): 7.44e-05 +/- 1.96e-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) = 7291.30207936
delta logL = 0.116113312161

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7291.26684455
delta logL = 0.151348129051

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.237       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5158       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0333       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99920       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=   7291.267     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.240        9.6502        .31309E-02    .78296E-04
   2  alpha         2.5152        .92761        .19620        .26685E-04
   3  Normalizat    1.0336        .22113        .76801E-01    .22088E-04
   4  Prefactor     .99913        .12269        .46257E-01    .87349E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2402
  alpha      = 2.51522
  Normalizat = 1.03362
  Prefactor  = 0.999127
 **********
 **   18 **HESSE 
 **********

 FCN=   7291.267     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.240        3.0224        .67240E-04   -1.5068    
   2  alpha         2.5152        .30432        .84581E-02    .60892E-02
   3  Normalizat    1.0336        .25782        .33991E-03   -.91912    
   4  Prefactor     .99913        .14057        .18950E-03   -.92759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98455e-10
Minuit parameter uncertainties:
  1  3.02248
  2  0.30508
  3  0.258131
  4  0.140619
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/213952': 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) = 7291.26684101
delta logL = 0.151351669427

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  1.024e+01  3.022e+00  1.000e-04  1.000e+04 ( 1.000e-11)
292        alpha:  2.515e+00  3.051e-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:  9.991e-01  1.406e-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.034e+00  2.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.76
Ra Dec: 314.072 -47.237
Photon Index (Free Index): 2.52 +/- 0.31
Photon Flux (Free Index): 2.61e-07 +/- 7.32e-08
Energy Flux (Free Index): 6.98e-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/213952/cmap_HighResolution_583545601_583804801_4FGL_J2056.2-4714_daily_bin1328.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.44e-07', energy_flux2='6.98e-05', photon_flux_error='6.43e-08', dlogl='1.51e-01', energy_flux='7.44e-05', photon_flux2='2.61e-07', job_status='DONE', time_completed='2021-09-25 21:59:51.345886', photon_index_error2='0.31', photon_index2='2.52', ts='32.53', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.99e-05', EG='1.06', time_epoch_completed='1632632391.35', return_code='0', job_id='213952', GAL2='1.00', EG2='1.03', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='7.32e-08', ts2='32.76', photon_index='2.35' WHERE bin_id='1328' AND source_name='4FGL J2056.2-4714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 21:59:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 213952: <4FGL_J2056.2-4714_daily_bin1328> in cluster <slac> Done

Job <4FGL_J2056.2-4714_daily_bin1328> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 25 21:45:53 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 21:49:24 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:49:24 2021
Terminated at Sat Sep 25 21:59:52 2021
Results reported at Sat Sep 25 21:59:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.2-4714_daily_bin1328 314.072 -47.2369 583545601 583804801 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 :                                   613.59 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   628 sec.
    Turnaround time :                            839 sec.

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

