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


Performing analysis on: 4FGL_J2056.2-4714_daily_bin1074
RA = 314.072, Dec = -47.2369
tmin = 517708801, tmax = 517968001
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='212570', job_status='RUN', time_executed='2021-09-25 21:42:39.789624', time_epoch_executed='1632631359.79' WHERE source_name='4FGL J2056.2-4714' and cadence='daily' and bin_id='1074'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212570

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212570/ft1_4FGL_J2056.2-4714_daily_bin1074.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212570/ft2_4FGL_J2056.2-4714_daily_bin1074.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212570/ft1_4FGL_J2056.2-4714_daily_bin1074.fits outfile=/scratch/kocevski/212570/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1074.fits ra=314.072 dec=-47.2369 rad=12.0 tmin=517708801.0 tmax=517968001.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.71
user 3.46
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212570/ft1_filtered_4FGL_J2056.2-4714_daily_bin1074.fits" evtable="EVENTS" scfile=/scratch/kocevski/212570/ft2_4FGL_J2056.2-4714_daily_bin1074.fits sctable="SC_DATA" outfile=/scratch/kocevski/212570/ltcube_517708801_517968001_4FGL_J2056.2-4714_daily_bin1074.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/212570/ft2_4FGL_J2056.2-4714_daily_bin1074.fits
.....................!
real 15.33
user 14.90
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212570/ft1_filtered_4FGL_J2056.2-4714_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/212570/ft2_4FGL_J2056.2-4714_daily_bin1074.fits sctable="SC_DATA" expcube=/scratch/kocevski/212570/ltcube_517708801_517968001_4FGL_J2056.2-4714_daily_bin1074.fits outfile=/scratch/kocevski/212570/expmap_517708801_517968001_4FGL_J2056.2-4714_daily_bin1074.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/212570/ltcube_517708801_517968001_4FGL_J2056.2-4714_daily_bin1074.fits
.....................!
real 194.98
user 187.93
sys 5.23

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/212570/ft1_filtered_4FGL_J2056.2-4714_daily_bin1074.fits scfile=/scratch/kocevski/212570/ft2_4FGL_J2056.2-4714_daily_bin1074.fits outfile=/scratch/kocevski/212570/cmap_517708801_517968001_4FGL_J2056.2-4714_daily_bin1074.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.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/212570/ft1_filtered_4FGL_J2056.2-4714_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/212570/ft2_4FGL_J2056.2-4714_daily_bin1074.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/212570/Model_4FGL_J2056.2-4714_daily_bin1074.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/212570/ft1_filtered_4FGL_J2056.2-4714_daily_bin1074.fits.....................!
real 65.52
user 64.16
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1184       1.0000         .10000E-03   10000.    
     2 'norm      '    3.7583       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1712       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.1118       1.0000         .10000E-03   10000.    
     6 'norm      '    .86466       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.9812       1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.851       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .26111E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.968       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    38.903       1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.229       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1229       1.0000         .10000E-03   10000.    
    18 'norm      '    13.047       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0463       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95374       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=   8452.789     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2593 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1176        8.8035        .26362E-05   -.62257E-03
   2  norm          3.7568        21.001       -.18773E-05   -.70368E-04
   3  norm          1.1712        .90993        .84223E-08    .77467E-04
   4  Prefactor     .10000E-03    12.679       -.94636E-08** at limit **
   5  norm          6.1118        3.7163       -.49311E-07   -.26698E-03
   6  norm          .82343        8.9677       -.72833E-06    .24599E-04
   7  Prefactor     7.9922        17.683        .48294E-05    .51008E-03
   8  Prefactor     42.847        71.203       -.83120E-06   -.10927E-04
   9  Prefactor     .10000E-03    1.0068        .35156E-06** at limit **
  10  Prefactor     .10000E-03    7.6650       -.76271E-06** at limit **
  11  norm          .10000E-03    1.0754        .30657E-07** at limit **
  12  Prefactor     .10000E-03    7.1821        .62498E-06** at limit **
  13  Prefactor     25.960        36.464       -.28515E-05   -.23028E-03
  14  Prefactor     .10000E-03    5.9316        .71052E-06** at limit **
  15  Prefactor     38.909        33.937        .16200E-05    .17661E-03
  16  Prefactor     29.230        21.246        .21477E-06    .15994E-04
  17  Prefactor     7.1238        4.5815        .14927E-05   -.13815E-02
  18  norm          13.048        5.8888       -.12771E-06   -.23464E-04
  19  Prefactor     .10000E-03    5.5980       -.62264E-06** at limit **
  20  Prefactor     .10000E-03    26.448        .23371E-07** at limit **
  21  Prefactor     .10000E-03    3.2218       -.62856E-07** at limit **
  22  Normalizat    1.0460        .19993       -.11717E-05   -.73966E-04
  23  Prefactor     .95386        .10331       -.13040E-06   -.15512E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.11765
  norm       = 3.75678
  norm       = 1.17119
  Prefactor  = 0.0001
  norm       = 6.11176
  norm       = 0.823428
  Prefactor  = 7.99219
  Prefactor  = 42.8466
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.9599
  Prefactor  = 0.0001
  Prefactor  = 38.9087
  Prefactor  = 29.23
  Prefactor  = 7.12376
  norm       = 13.0476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04603
  Prefactor  = 0.953857
 **********
 **   18 **HESSE 
 **********

 FCN=   8452.789     FROM HESSE     STATUS=OK           370 CALLS     2963 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1176        9.0282        .75175E-03   -1.5174    
   2  norm          3.7568        20.665        .20826E-03   -1.5320    
   3  norm          1.1712        .92106        .75262E-04   -1.5492    
   4  Prefactor     .10000E-03    12.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.1118        3.7089        .13073E-03   -1.5213    
   6  norm          .82343        45.995        .52203E-02   -1.5526    
   7  Prefactor     7.9922        19.105        .14192E-03   -1.5142    
   8  Prefactor     42.847        71.362        .61241E-04   -1.4398    
   9  Prefactor     .10000E-03    5.1457        .17627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.7006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1230        .18576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.2078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.960        36.992        .78611E-04   -1.4689    
  14  Prefactor     .10000E-03    6.0417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     38.909        34.226        .64261E-04   -1.4460    
  16  Prefactor     29.230        21.312        .74106E-04   -1.4626    
  17  Prefactor     7.1238        4.7486        .75151E-03   -1.5174    
  18  norm          13.048        5.8925        .11089E-03   -1.4985    
  19  Prefactor     .10000E-03    5.7188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    26.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.2324        .16116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0460        .23876        .32070E-03   -.91504    
  23  Prefactor     .95386        .12470        .18074E-03   -.94284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91829e-09
Minuit parameter uncertainties:
  1  9.02996
  2  17.631
  3  0.921069
  4  2.04752e-06
  5  3.70907
  6  12.3175
  7  19.1192
  8  71.5043
  9  0.000192023
  10  7.74772e-05
  11  3.02129e-06
  12  6.73878e-05
  13  37.0244
  14  5.25166e-05
  15  34.2432
  16  21.3179
  17  4.7489
  18  5.89273
  19  5.7975e-05
  20  6.55434e-06
  21  4.15443e-06
  22  0.239004
  23  0.124733
Done.

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

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  1.000e-04  3.021e-06  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.539e-01  1.247e-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.046e+00  2.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 314.072 -47.237
Photon Flux Upper Limit: 7.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.29e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/212570/likelihoodResults_517708801_517968001_4FGL_J2056.2-4714_daily_bin1074.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8452.79319477
delta logL = -0.00424230918361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8451.90131891
delta logL = 0.887633545424

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17805       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .94691       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98647       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=   8451.901     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      337 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17785        .15403        .31630E-03    .76342E-03
   2  alpha         5.0000        3.2839        .82046E-01** at limit **
   3  Normalizat    .94691        .23489        .33527E-03    .91893E-04
   4  Prefactor     .98648        .12419        .17803E-03    .17858E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.177853
  alpha      = 5
  Normalizat = 0.946909
  Prefactor  = 0.986477
 **********
 **   18 **HESSE 
 **********

 FCN=   8451.901     FROM HESSE     STATUS=OK            25 CALLS      362 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17785        .15175        .12652E-04   -1.5624    
   2  alpha         5.0000        3.2825        .32818E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .94691        .23493        .13411E-04   -.94831    
   4  Prefactor     .98648        .12427        .35605E-04   -.93182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31646e-11
Minuit parameter uncertainties:
  1  0.15175
  2  1.41493e-06
  3  0.235188
  4  0.124305
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212570': 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) = 8451.90131702
delta logL = 0.88763543498

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  1.779e-01  1.517e-01  1.000e-04  1.000e+04 ( 1.000e-11)
292        alpha:  5.000e+00  1.415e-06  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.865e-01  1.243e-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:  9.469e-01  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.94
Ra Dec: 314.072 -47.237
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 6.79e-08 +/- 5.76e-08
Energy Flux (Free Index): 9.18e-06 +/- 7.81e-06

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/212570/cmap_HighResolution_517708801_517968001_4FGL_J2056.2-4714_daily_bin1074.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.29e-05', comment='SUCCESS', energy_flux2='9.18e-06', dlogl='8.88e-01', photon_flux2='6.79e-08', job_status='DONE', time_completed='2021-09-25 21:55:56.454395', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='7.48e-08', energy_flux_error2='7.81e-06', EG='1.05', time_epoch_completed='1632632156.45', return_code='0', job_id='212570', GAL2='0.99', EG2='0.95', return_code2='0', photon_flux_error2='5.76e-08', ts2='1.94', photon_index='2.35' WHERE bin_id='1074' AND source_name='4FGL J2056.2-4714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 21:55:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 212570: <4FGL_J2056.2-4714_daily_bin1074> in cluster <slac> Done

Job <4FGL_J2056.2-4714_daily_bin1074> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 25 21:41:01 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 21:42:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 21:42:06 2021
Terminated at Sat Sep 25 21:55:57 2021
Results reported at Sat Sep 25 21:55:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.2-4714_daily_bin1074 314.072 -47.2369 517708801 517968001 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 :                                   792.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            896 sec.

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

