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


Performing analysis on: 4FGL_J2056.2-4714_daily_bin661
RA = 314.072, Dec = -47.2369
tmin = 410659201, tmax = 410918401
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='210750', job_status='RUN', time_executed='2021-09-25 21:38:55.104167', time_epoch_executed='1632631135.1' WHERE source_name='4FGL J2056.2-4714' and cadence='daily' and bin_id='661'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210750

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210750/ft1_4FGL_J2056.2-4714_daily_bin661.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210750/ft2_4FGL_J2056.2-4714_daily_bin661.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210750/ft1_4FGL_J2056.2-4714_daily_bin661.fits outfile=/scratch/kocevski/210750/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin661.fits ra=314.072 dec=-47.2369 rad=12.0 tmin=410659201.0 tmax=410918401.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 6.97
user 6.68
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210750/ft1_filtered_4FGL_J2056.2-4714_daily_bin661.fits" evtable="EVENTS" scfile=/scratch/kocevski/210750/ft2_4FGL_J2056.2-4714_daily_bin661.fits sctable="SC_DATA" outfile=/scratch/kocevski/210750/ltcube_410659201_410918401_4FGL_J2056.2-4714_daily_bin661.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/210750/ft2_4FGL_J2056.2-4714_daily_bin661.fits
.....................!
real 15.31
user 14.94
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210750/ft1_filtered_4FGL_J2056.2-4714_daily_bin661.fits evtable="EVENTS" scfile=/scratch/kocevski/210750/ft2_4FGL_J2056.2-4714_daily_bin661.fits sctable="SC_DATA" expcube=/scratch/kocevski/210750/ltcube_410659201_410918401_4FGL_J2056.2-4714_daily_bin661.fits outfile=/scratch/kocevski/210750/expmap_410659201_410918401_4FGL_J2056.2-4714_daily_bin661.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/210750/ltcube_410659201_410918401_4FGL_J2056.2-4714_daily_bin661.fits
.....................!
real 191.31
user 186.18
sys 4.31

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/210750/ft1_filtered_4FGL_J2056.2-4714_daily_bin661.fits scfile=/scratch/kocevski/210750/ft2_4FGL_J2056.2-4714_daily_bin661.fits outfile=/scratch/kocevski/210750/cmap_410659201_410918401_4FGL_J2056.2-4714_daily_bin661.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210750/ft1_filtered_4FGL_J2056.2-4714_daily_bin661.fits scfile=/scratch/kocevski/210750/ft2_4FGL_J2056.2-4714_daily_bin661.fits outfile=/scratch/kocevski/210750/cmap_HighResolution_410659201_410918401_4FGL_J2056.2-4714_daily_bin661.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.67
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.172       1.0000         .10000E-03   10000.    
     2 'norm      '    .11714E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .44725E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11671E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.646       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.7504       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0971       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9000       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.4851       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0841       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92955       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=   5760.682     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2595 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.161        11.800        .23128E-06    .96525E-04
   2  norm          .10000E-03    51.585       -.17960E-05** at limit **
   3  norm          .10000E-03    1.1715       -.76961E-07** at limit **
   4  Prefactor     .14375E-03    29.850       -.51432E-05** at limit **
   5  norm          .10000E-03    1.7095        .17091E-08** at limit **
   6  norm          .10000E-03    6.1554       -.59104E-07** at limit **
   7  Prefactor     .10000E-03    8.5088       -.84754E-07** at limit **
   8  Prefactor     .10000E-03    292.29        .21844E-05** at limit **
   9  Prefactor     10.647        6.3274       -.38987E-05   -.84357E-04
  10  Prefactor     .10000E-03    53.681        .35873E-05** at limit **
  11  norm          1.7509        2.3893       -.31242E-07   -.50037E-05
  12  Prefactor     .10000E-03    11.496        .15955E-06** at limit **
  13  Prefactor     .10000E-03    30.700       -.47182E-05** at limit **
  14  Prefactor     1.0973        .75589        .29414E-07   -.53109E-03
  15  Prefactor     .10000E-03    27.214        .24888E-05** at limit **
  16  Prefactor     1.9140        421.74        .38817E-04    .26090E-05
  17  Prefactor     .10000E-03    4.1215       -.67606E-07** at limit **
  18  norm          9.4826        7.7232        .74140E-06   -.19067E-04
  19  Prefactor     .10000E-03    4.5835       -.36943E-07** at limit **
  20  Prefactor     .10000E-03    26.814        .98901E-06** at limit **
  21  Prefactor     .10000E-03    16.515       -.52778E-06** at limit **
  22  Normalizat    1.0843        .25687       -.73114E-08    .96844E-04
  23  Prefactor     .92945        .12475        .64434E-06    .18622E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 27.161
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000143753
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6471
  Prefactor  = 0.000100001
  norm       = 1.75095
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.09734
  Prefactor  = 0.0001
  Prefactor  = 1.91404
  Prefactor  = 0.0001
  norm       = 9.48256
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0843
  Prefactor  = 0.929455
 **********
 **   18 **HESSE 
 **********

 FCN=   5760.682     FROM HESSE     STATUS=OK           372 CALLS     2967 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.161        11.819        .76853E-04   -1.4665    
   2  norm          .10000E-03    53.695        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.4039        .15826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .14375E-03    32.160        .13028       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.7414        .96869E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.1587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.5128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    294.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.647        6.3441        .12279E-03   -1.5055    
  10  Prefactor     .10000E-03    54.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7509        2.3701        .12879E-03   -1.5443    
  12  Prefactor     .10000E-03    11.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0973        12.622        .22734E-02   -1.5498    
  15  Prefactor     .10000E-03    27.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9140        425.06        .30174E-03   -1.5431    
  17  Prefactor     .10000E-03    4.1610        .15045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.4826        7.7281        .13012E-03   -1.5092    
  19  Prefactor     .10000E-03    4.5855        .15870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    26.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0843        .31208        .34406E-03   -.90257    
  23  Prefactor     .92945        .15114        .18076E-03   -.95119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43056e-09
Minuit parameter uncertainties:
  1  11.8203
  2  0.000106076
  3  5.98482e-06
  4  0.0750633
  5  1.95899e-06
  6  1.2834e-06
  7  1.71789e-06
  8  0.000272895
  9  6.3445
  10  0.000331155
  11  2.37024
  12  2.71638e-06
  13  9.88846e-06
  14  7.44499
  15  4.80339e-05
  16  57.463
  17  1.24443e-05
  18  7.72895
  19  2.75532e-06
  20  8.46186e-06
  21  2.63472e-05
  22  0.312616
  23  0.151205
Done.

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

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  1.751e+00  2.370e+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.295e-01  1.512e-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.084e+00  3.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/210750/likelihoodResults_410659201_410918401_4FGL_J2056.2-4714_daily_bin661.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) = 5759.97995727
delta logL = 0.701811408265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5759.9776468
delta logL = 0.704121875106

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7577       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5866       1.0000          .0000       5.0000    
     3 'Normalizat'    .97774       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96211       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=   5759.978     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      223 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7591        27.356        .79027E-02    .10545E-02
   2  alpha         3.5874        3.6691        .47642        .51702E-04
   3  Normalizat    .97781        .84162E-01    .81325E-01    .32093E-04
   4  Prefactor     .96198        .42192E-01    .45792E-01   -.99034E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.75909
  alpha      = 3.58738
  Normalizat = 0.977815
  Prefactor  = 0.961984
 **********
 **   18 **HESSE 
 **********

 FCN=   5759.978     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7591        2.4057        .71618E-04   -1.5443    
   2  alpha         3.5874        1.1905        .21003E-01    .44999    
   3  Normalizat    .97781        .31784        .35999E-03   -.93777    
   4  Prefactor     .96198        .15185        .17793E-03   -.94008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22845e-11
Minuit parameter uncertainties:
  1  2.40581
  2  1.25442
  3  0.318452
  4  0.151915
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210750': 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) = 5759.97764405
delta logL = 0.704124629672

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  1.759e+00  2.406e+00  1.000e-04  1.000e+04 ( 1.000e-11)
292        alpha:  3.587e+00  1.254e+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:  9.620e-01  1.519e-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.778e-01  3.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.29
Ra Dec: 314.072 -47.237
Photon Index (Free Index): 3.59 +/- 1.25
Photon Flux (Free Index): 1.28e-07 +/- 1.04e-07
Energy Flux (Free Index): 2.13e-05 +/- 1.67e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.89e-05', comment='SUCCESS', energy_flux2='2.13e-05', dlogl='7.04e-01', photon_flux2='1.28e-07', job_status='DONE', time_completed='2021-09-25 21:49:20.382556', photon_index_error2='1.25', photon_index2='3.59', ts='0.72', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.60e-07', energy_flux_error2='1.67e-05', EG='1.08', time_epoch_completed='1632631760.38', return_code='0', job_id='210750', GAL2='0.96', EG2='0.98', return_code2='0', photon_flux_error2='1.04e-07', ts2='2.29', photon_index='2.35' WHERE bin_id='661' AND source_name='4FGL J2056.2-4714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 21:49:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 210750: <4FGL_J2056.2-4714_daily_bin661> in cluster <slac> Done

Job <4FGL_J2056.2-4714_daily_bin661> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 25 21:35:28 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 21:36:15 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:36:15 2021
Terminated at Sat Sep 25 21:49:21 2021
Results reported at Sat Sep 25 21:49:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.2-4714_daily_bin661 314.072 -47.2369 410659201 410918401 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 :                                   623.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            833 sec.

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

