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


Performing analysis on: 4FGL_J2056.2-4714_daily_bin1520
RA = 314.072, Dec = -47.2369
tmin = 633312001, tmax = 633571201
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='215154', job_status='RUN', time_executed='2021-09-25 21:53:09.027833', time_epoch_executed='1632631989.03' WHERE source_name='4FGL J2056.2-4714' and cadence='daily' and bin_id='1520'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/215154

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/215154/ft1_4FGL_J2056.2-4714_daily_bin1520.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/215154/ft2_4FGL_J2056.2-4714_daily_bin1520.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/215154/ft1_4FGL_J2056.2-4714_daily_bin1520.fits outfile=/scratch/kocevski/215154/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1520.fits ra=314.072 dec=-47.2369 rad=12.0 tmin=633312001.0 tmax=633571201.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.72
user 3.45
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/215154/ft1_filtered_4FGL_J2056.2-4714_daily_bin1520.fits" evtable="EVENTS" scfile=/scratch/kocevski/215154/ft2_4FGL_J2056.2-4714_daily_bin1520.fits sctable="SC_DATA" outfile=/scratch/kocevski/215154/ltcube_633312001_633571201_4FGL_J2056.2-4714_daily_bin1520.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/215154/ft2_4FGL_J2056.2-4714_daily_bin1520.fits
.....................!
real 13.95
user 13.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/215154/ft1_filtered_4FGL_J2056.2-4714_daily_bin1520.fits evtable="EVENTS" scfile=/scratch/kocevski/215154/ft2_4FGL_J2056.2-4714_daily_bin1520.fits sctable="SC_DATA" expcube=/scratch/kocevski/215154/ltcube_633312001_633571201_4FGL_J2056.2-4714_daily_bin1520.fits outfile=/scratch/kocevski/215154/expmap_633312001_633571201_4FGL_J2056.2-4714_daily_bin1520.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/215154/ltcube_633312001_633571201_4FGL_J2056.2-4714_daily_bin1520.fits
.....................!
real 192.56
user 186.46
sys 5.57

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/215154/ft1_filtered_4FGL_J2056.2-4714_daily_bin1520.fits scfile=/scratch/kocevski/215154/ft2_4FGL_J2056.2-4714_daily_bin1520.fits outfile=/scratch/kocevski/215154/cmap_633312001_633571201_4FGL_J2056.2-4714_daily_bin1520.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.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/215154/ft1_filtered_4FGL_J2056.2-4714_daily_bin1520.fits scfile=/scratch/kocevski/215154/ft2_4FGL_J2056.2-4714_daily_bin1520.fits outfile=/scratch/kocevski/215154/cmap_HighResolution_633312001_633571201_4FGL_J2056.2-4714_daily_bin1520.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/215154/ft1_filtered_4FGL_J2056.2-4714_daily_bin1520.fits evtable="EVENTS" scfile=/scratch/kocevski/215154/ft2_4FGL_J2056.2-4714_daily_bin1520.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/215154/Model_4FGL_J2056.2-4714_daily_bin1520.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/215154/ft1_filtered_4FGL_J2056.2-4714_daily_bin1520.fits.....................!
real 54.93
user 53.59
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10560E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    52.718       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8287       1.0000         .10000E-03   10000.    
     6 'norm      '    8.5222       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.7519       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.613       1.0000         .10000E-03   10000.    
    11 'norm      '    2.4257       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0452       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.664       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7936       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.0509       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.7206       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.626       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0852       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1605       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=   6610.313     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2541 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.983       -.82850E-06** at limit **
   2  norm          52.726        29.026        .31642E-05    .10433E-03
   3  norm          .10000E-03    .62168       -.68762E-08** at limit **
   4  Prefactor     .10000E-03    59.064       -.10820E-04** at limit **
   5  norm          1.8282        4.8239       -.66015E-06   -.22320E-03
   6  norm          8.5231        17.682        .14253E-06    .77641E-05
   7  Prefactor     .10000E-03    28.562       -.25760E-05** at limit **
   8  Prefactor     .10000E-03    52.682        .12195E-04** at limit **
   9  Prefactor     8.7516        4.2644        .51403E-07   -.19966E-04
  10  Prefactor     10.609        23.828       -.22741E-05   -.20931E-04
  11  norm          2.4257        2.3036        .33321E-07   -.89137E-04
  12  Prefactor     .10000E-03    20.049        .17609E-06** at limit **
  13  Prefactor     .10000E-03    19.594        .13048E-05** at limit **
  14  Prefactor     6.0448        6.7811        .36169E-06   -.48415E-03
  15  Prefactor     21.658        33.508       -.48249E-05   -.40153E-04
  16  Prefactor     1.7824        9.2205        .15769E-05   -.53089E-03
  17  Prefactor     .10000E-03    2.6210       -.88523E-08** at limit **
  18  norm          3.0506        3.1064        .19379E-06    .62692E-04
  19  Prefactor     6.7197        9.7157        .19587E-06   -.37138E-03
  20  Prefactor     .10000E-03    12.759        .12498E-06** at limit **
  21  Prefactor     10.626        9.4916       -.13384E-07   -.63433E-05
  22  Normalizat    1.0854        .26329        .39898E-06   -.67266E-05
  23  Prefactor     1.1605        .14053       -.21188E-06    .53698E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 52.7257
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.8282
  norm       = 8.52307
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.75159
  Prefactor  = 10.6089
  norm       = 2.4257
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.04484
  Prefactor  = 21.6585
  Prefactor  = 1.78237
  Prefactor  = 0.0001
  norm       = 3.05055
  Prefactor  = 6.71971
  Prefactor  = 0.0001
  Prefactor  = 10.626
  Normalizat = 1.08543
  Prefactor  = 1.16046
 **********
 **   18 **HESSE 
 **********

 FCN=   6610.313     FROM HESSE     STATUS=OK           370 CALLS     2911 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          52.726        29.020        .55239E-04   -1.4254    
   3  norm          .10000E-03    .62445        .62595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    59.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8282        4.8304        .27405E-03   -1.5438    
   6  norm          8.5231        17.694        .13732E-03   -1.5124    
   7  Prefactor     .10000E-03    28.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    52.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.7516        4.2650        .11076E-03   -1.5116    
  10  Prefactor     10.609        23.847        .12299E-03   -1.5056    
  11  norm          2.4257        2.2944        .11422E-03   -1.5396    
  12  Prefactor     .10000E-03    20.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.0448        6.9099        .81650E-03   -1.5216    
  15  Prefactor     21.658        33.511        .86056E-04   -1.4777    
  16  Prefactor     1.7824        36.233        .15613E-02   -1.5441    
  17  Prefactor     .10000E-03    2.6865        .25696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.0506        3.1090        .13924E-03   -1.5359    
  19  Prefactor     6.7197        9.9237        .77391E-03   -1.5189    
  20  Prefactor     .10000E-03    12.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.626        9.5160        .12291E-03   -1.5056    
  22  Normalizat    1.0854        .30658        .36451E-03   -.90221    
  23  Prefactor     1.1605        .16371        .19358E-03   -.87557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.60528e-09
Minuit parameter uncertainties:
  1  0.000108312
  2  29.0281
  3  7.89615e-07
  4  0.00032074
  5  4.83145
  6  17.7044
  7  5.96886e-05
  8  0.000333348
  9  4.26515
  10  23.8679
  11  2.29446
  12  3.91178e-06
  13  2.48254e-05
  14  6.91077
  15  33.5402
  16  16.0832
  17  4.83337e-07
  18  3.10915
  19  9.92609
  20  2.22577e-06
  21  9.51736
  22  0.307082
  23  0.16378
Done.

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

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  2.426e+00  2.294e+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.160e+00  1.638e-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.085e+00  3.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 314.072 -47.237
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 5.45e-08 +/- 5.15e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.57e-05

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

Saving results to:
/scratch/kocevski/215154/likelihoodResults_633312001_633571201_4FGL_J2056.2-4714_daily_bin1520.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) = 6610.2774258
delta logL = 0.0354926524824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6610.27488656
delta logL = 0.0380318858379

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3211       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6385       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0683       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1669       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=   6610.275     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      200 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3209        69.631        .67309E-02    .83865E-03
   2  alpha         2.6386        3.3344        .41232        .24926E-04
   3  Normalizat    1.0677        .11861        .82928E-01    .11823E-04
   4  Prefactor     1.1672        .64190E-01    .35464E-01   -.99314E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.32088
  alpha      = 2.63862
  Normalizat = 1.06771
  Prefactor  = 1.16723
 **********
 **   18 **HESSE 
 **********

 FCN=   6610.275     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3209        2.3755        .10736E-03   -1.5403    
   2  alpha         2.6386        1.0948        .25693E-01    .55477E-01
   3  Normalizat    1.0677        .30310        .36716E-03   -.90795    
   4  Prefactor     1.1672        .16363        .19309E-03   -.87346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57217e-11
Minuit parameter uncertainties:
  1  2.3756
  2  1.13332
  3  0.303595
  4  0.163701
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/215154': 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) = 6610.27488439
delta logL = 0.0380340598922

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  2.321e+00  2.376e+00  1.000e-04  1.000e+04 ( 1.000e-11)
292        alpha:  2.639e+00  1.133e+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.167e+00  1.637e-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.068e+00  3.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.66
Ra Dec: 314.072 -47.237
Photon Index (Free Index): 2.64 +/- 1.13
Photon Flux (Free Index): 6.56e-08 +/- 6.89e-08
Energy Flux (Free Index): 1.61e-05 +/- 1.51e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/215154/cmap_HighResolution_633312001_633571201_4FGL_J2056.2-4714_daily_bin1520.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.07e-05', comment='SUCCESS', photon_flux='5.45e-08', energy_flux2='1.61e-05', photon_flux_error='5.15e-08', dlogl='3.80e-02', energy_flux='1.66e-05', photon_flux2='6.56e-08', job_status='DONE', time_completed='2021-09-25 22:04:17.565623', photon_index_error2='1.13', photon_index2='2.64', ts='1.58', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='1.66e-07', energy_flux_error2='1.51e-05', EG='1.09', time_epoch_completed='1632632657.57', return_code='0', job_id='215154', GAL2='1.17', EG2='1.07', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='6.89e-08', ts2='1.66', photon_index='2.35' WHERE bin_id='1520' AND source_name='4FGL J2056.2-4714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 22:04:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 215154: <4FGL_J2056.2-4714_daily_bin1520> in cluster <slac> Done

Job <4FGL_J2056.2-4714_daily_bin1520> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 25 21:50:16 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 21:52:34 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:52:34 2021
Terminated at Sat Sep 25 22:04:18 2021
Results reported at Sat Sep 25 22:04:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.2-4714_daily_bin1520 314.072 -47.2369 633312001 633571201 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 :                                   662.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             365.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            842 sec.

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

