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


Performing analysis on: 4FGL_J2056.2-4714_daily_bin1020
RA = 314.072, Dec = -47.2369
tmin = 503712001, tmax = 503971201
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='212491', job_status='RUN', time_executed='2021-09-25 21:43:51.457639', time_epoch_executed='1632631431.46' WHERE source_name='4FGL J2056.2-4714' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212491

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212491/ft1_4FGL_J2056.2-4714_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212491/ft2_4FGL_J2056.2-4714_daily_bin1020.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212491/ft1_4FGL_J2056.2-4714_daily_bin1020.fits outfile=/scratch/kocevski/212491/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1020.fits ra=314.072 dec=-47.2369 rad=12.0 tmin=503712001.0 tmax=503971201.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 5.75
user 5.44
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/212491/ft2_4FGL_J2056.2-4714_daily_bin1020.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/212491/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1020.fits evtable="EVENTS" outfile="/scratch/kocevski/212491/ft1_filtered_4FGL_J2056.2-4714_daily_bin1020.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.58
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212491/ft1_filtered_4FGL_J2056.2-4714_daily_bin1020.fits" evtable="EVENTS" scfile=/scratch/kocevski/212491/ft2_4FGL_J2056.2-4714_daily_bin1020.fits sctable="SC_DATA" outfile=/scratch/kocevski/212491/ltcube_503712001_503971201_4FGL_J2056.2-4714_daily_bin1020.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/212491/ft2_4FGL_J2056.2-4714_daily_bin1020.fits
.....................!
real 14.23
user 13.85
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212491/ft1_filtered_4FGL_J2056.2-4714_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/212491/ft2_4FGL_J2056.2-4714_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/212491/ltcube_503712001_503971201_4FGL_J2056.2-4714_daily_bin1020.fits outfile=/scratch/kocevski/212491/expmap_503712001_503971201_4FGL_J2056.2-4714_daily_bin1020.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/212491/ltcube_503712001_503971201_4FGL_J2056.2-4714_daily_bin1020.fits
.....................!
real 191.66
user 186.08
sys 5.05

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/212491/ft1_filtered_4FGL_J2056.2-4714_daily_bin1020.fits scfile=/scratch/kocevski/212491/ft2_4FGL_J2056.2-4714_daily_bin1020.fits outfile=/scratch/kocevski/212491/cmap_503712001_503971201_4FGL_J2056.2-4714_daily_bin1020.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212491/ft1_filtered_4FGL_J2056.2-4714_daily_bin1020.fits scfile=/scratch/kocevski/212491/ft2_4FGL_J2056.2-4714_daily_bin1020.fits outfile=/scratch/kocevski/212491/cmap_HighResolution_503712001_503971201_4FGL_J2056.2-4714_daily_bin1020.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.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/212491/ft1_filtered_4FGL_J2056.2-4714_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/212491/ft2_4FGL_J2056.2-4714_daily_bin1020.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/212491/Model_4FGL_J2056.2-4714_daily_bin1020.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/212491/ft1_filtered_4FGL_J2056.2-4714_daily_bin1020.fits.....................!
real 43.79
user 42.37
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8353       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.3509       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.8137       1.0000         .10000E-03   10000.    
     5 'norm      '    5.9611       1.0000         .10000E-03   10000.    
     6 'norm      '    9.0189       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0785       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.6348       1.0000         .10000E-03   10000.    
    11 'norm      '    .37295E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.365       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0317       1.0000         .10000E-03   10000.    
    18 'norm      '    8.8404       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    74.579       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5244       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .74759       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=   4673.945     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2535 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8341        11.148        .25559E-06   -.74410E-04
   2  norm          .10000E-03    18.334        .77360E-05** at limit **
   3  norm          4.3509        3.8026        .67969E-07   -.85364E-04
   4  Prefactor     8.7840        93.767       -.79685E-04    .16253E-05
   5  norm          5.9613        4.3947        .16151E-06   -.17056E-05
   6  norm          9.0166        17.142       -.17177E-05   -.60808E-03
   7  Prefactor     .10000E-03    21.265       -.57860E-05** at limit **
   8  Prefactor     5.0968        489.74        .76443E-04    .12129E-04
   9  Prefactor     .10000E-03    6.6114       -.15561E-05** at limit **
  10  Prefactor     7.6649        58.147        .71043E-04    .30193E-04
  11  norm          .10000E-03    1.6597       -.11849E-05** at limit **
  12  Prefactor     .10000E-03    10.536       -.38408E-06** at limit **
  13  Prefactor     .10000E-03    65.367       -.24794E-04** at limit **
  14  Prefactor     .10000E-03    6.9992        .10135E-05** at limit **
  15  Prefactor     .10000E-03    56.894        .27076E-04** at limit **
  16  Prefactor     17.370        55.388        .81467E-05   -.61112E-05
  17  Prefactor     4.0318        5.5327       -.59498E-06   -.24760E-03
  18  norm          8.8399        5.1061        .98027E-06   -.41553E-03
  19  Prefactor     .10000E-03    6.1273        .10364E-06** at limit **
  20  Prefactor     74.586        63.029        .68637E-05    .32940E-05
  21  Prefactor     .10000E-03    20.499       -.40080E-05** at limit **
  22  Normalizat    1.5242        .28257       -.88320E-05    .37781E-03
  23  Prefactor     .74770        .13677        .29649E-05   -.26357E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.83405
  norm       = 0.0001
  norm       = 4.35088
  Prefactor  = 8.78397
  norm       = 5.96134
  norm       = 9.01659
  Prefactor  = 0.0001
  Prefactor  = 5.09684
  Prefactor  = 0.000100001
  Prefactor  = 7.66491
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.3698
  Prefactor  = 4.03182
  norm       = 8.83988
  Prefactor  = 0.0001
  Prefactor  = 74.5859
  Prefactor  = 0.0001
  Normalizat = 1.52421
  Prefactor  = 0.747704
 **********
 **   18 **HESSE 
 **********

 FCN=   4673.945     FROM HESSE     STATUS=OK           366 CALLS     2901 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8341        11.161        .14325E-03   -1.5148    
   2  norm          .10000E-03    18.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.3509        3.8018        .12034E-03   -1.5291    
   4  Prefactor     8.7840        93.899        .13501E-03   -1.5115    
   5  norm          5.9613        4.3939        .11938E-03   -1.5220    
   6  norm          9.0166        17.198        .66730E-03   -1.5107    
   7  Prefactor     .10000E-03    21.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.0968        486.78        .17842E-03   -1.5256    
   9  Prefactor     .10000E-03    6.7448        .17171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.6649        57.932        .14513E-03   -1.5154    
  11  norm          .10000E-03    13.851        .16641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    65.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.0308        .17660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    57.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.370        55.710        .96112E-04   -1.4874    
  17  Prefactor     4.0318        5.5269        .18178E-03   -1.5306    
  18  norm          8.8399        5.1036        .11301E-03   -1.5113    
  19  Prefactor     .10000E-03    6.1533        .16525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     74.586        63.156        .46493E-04   -1.3979    
  21  Prefactor     .10000E-03    20.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.5242        .33158        .29702E-03   -.77100    
  23  Prefactor     .74770        .16154        .20319E-03   -1.0169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8412e-09
Minuit parameter uncertainties:
  1  11.1644
  2  3.17506e-05
  3  3.80199
  4  57.5544
  5  4.3941
  6  17.2078
  7  1.01307e-05
  8  100.472
  9  0.000191681
  10  42.2014
  11  9.72119e-05
  12  2.51054e-05
  13  0.000376324
  14  3.27408e-06
  15  0.000143162
  16  55.8771
  17  5.52756
  18  5.10382
  19  1.83282e-05
  20  63.2125
  21  8.76802e-05
  22  0.332053
  23  0.161642
Done.

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

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  1.000e-04  9.721e-05  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:  7.477e-01  1.616e-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.524e+00  3.321e-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: 1.70e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/212491/likelihoodResults_503712001_503971201_4FGL_J2056.2-4714_daily_bin1020.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) = 4673.94515765
delta logL = -0.000345272625964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4673.9448144
delta logL = -2.02563751373e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31855E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4626       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5241       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74779       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4673.945     FROM MIGRAD    STATUS=FAILED        93 CALLS      260 TOTAL
                     EDM=   .27E-03    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11945E-03    6476.7        .15485E-02** at limit **
   2  alpha         3.1546        .19139        .16463        .51135E-05
   3  Normalizat    1.5242        .20557        .29702E-03    .75953E-03
   4  Prefactor     .74771        .10453        .20319E-03    .86873E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4673.943     FROM SIMPLEX   STATUS=PROGRESS     152 CALLS      412 TOTAL
                     EDM=   .48E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13486        6476.7        .30504E-03   -1.5635    
   2  alpha         3.1546        .19139        .75095E-06    .26492    
   3  Normalizat    1.5242        .20557        .27862E-05   -.77101    
   4  Prefactor     .74771        .10453        .24558E-06   -1.0169    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4673.942     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      473 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18212        38.205        .30969E-02    .39502E-03
   2  alpha         3.0121        2.7976        .65852E-01    .36646E-05
   3  Normalizat    1.5186        .33622        .59404E-04    .65146E-04
   4  Prefactor     .74854        .15610        .40639E-04    .77883E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.182122
  alpha      = 3.01207
  Normalizat = 1.51864
  Prefactor  = 0.748539
 **********
 **   18 **HESSE 
 **********

 FCN=   4673.942     FROM HESSE     STATUS=OK            27 CALLS      500 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .18212        8.4467        .12388E-03   -1.5623    
   2  alpha         3.0121        4.0056        .26341E-02    .20629    
   3  Normalizat    1.5186        .31789        .11881E-04   -.77256    
   4  Prefactor     .74854        .15594        .81277E-05   -1.0165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35576e-11
Minuit parameter uncertainties:
  1  2.48028
  2  4.41162
  3  0.318312
  4  0.156032
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212491': 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) = 4673.94190683
delta logL = 0.0029055480918

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  1.821e-01  2.480e+00  1.000e-04  1.000e+04 ( 1.000e-11)
292        alpha:  3.012e+00  4.412e+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:  7.485e-01  1.560e-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.519e+00  3.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 314.072 -47.237

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/212491/cmap_HighResolution_503712001_503971201_4FGL_J2056.2-4714_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.20e-05', job_status='DONE', photon_flux_upper_limit='1.70e-07', time_completed='2021-09-25 21:53:18.936154', job_id='212491', GAL2='0.75', fit_tolerance='1e-08', EG2='1.52', EG='1.52', time_epoch_completed='1632631998.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='2.91e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1020' AND source_name='4FGL J2056.2-4714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 21:53:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 212491: <4FGL_J2056.2-4714_daily_bin1020> in cluster <slac> Done

Job <4FGL_J2056.2-4714_daily_bin1020> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 25 21:40:53 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 21:41:50 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:41:50 2021
Terminated at Sat Sep 25 21:53:19 2021
Results reported at Sat Sep 25 21:53:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.2-4714_daily_bin1020 314.072 -47.2369 503712001 503971201 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 :                                   565.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            746 sec.

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

