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


Performing analysis on: 4FGL_J2056.2-4714_daily_bin1622
RA = 314.072, Dec = -47.2369
tmin = 659750401, tmax = 660009601
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='464953', job_status='RUN', time_executed='2021-12-08 07:18:08.346546', time_epoch_executed='1638976688.35' WHERE source_name='4FGL J2056.2-4714' and cadence='daily' and bin_id='1622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/464953

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/464953/ft1_4FGL_J2056.2-4714_daily_bin1622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/464953/ft2_4FGL_J2056.2-4714_daily_bin1622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/464953/ft1_4FGL_J2056.2-4714_daily_bin1622.fits outfile=/scratch/kocevski/464953/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1622.fits ra=314.072 dec=-47.2369 rad=12.0 tmin=659750401.0 tmax=660009601.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 2.54
user 2.25
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/464953/ft2_4FGL_J2056.2-4714_daily_bin1622.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/464953/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1622.fits evtable="EVENTS" outfile="/scratch/kocevski/464953/ft1_filtered_4FGL_J2056.2-4714_daily_bin1622.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.54
user 0.37
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/464953/ft1_filtered_4FGL_J2056.2-4714_daily_bin1622.fits" evtable="EVENTS" scfile=/scratch/kocevski/464953/ft2_4FGL_J2056.2-4714_daily_bin1622.fits sctable="SC_DATA" outfile=/scratch/kocevski/464953/ltcube_659750401_660009601_4FGL_J2056.2-4714_daily_bin1622.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/464953/ft2_4FGL_J2056.2-4714_daily_bin1622.fits
.....................!
real 19.08
user 18.58
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/464953/ft1_filtered_4FGL_J2056.2-4714_daily_bin1622.fits evtable="EVENTS" scfile=/scratch/kocevski/464953/ft2_4FGL_J2056.2-4714_daily_bin1622.fits sctable="SC_DATA" expcube=/scratch/kocevski/464953/ltcube_659750401_660009601_4FGL_J2056.2-4714_daily_bin1622.fits outfile=/scratch/kocevski/464953/expmap_659750401_660009601_4FGL_J2056.2-4714_daily_bin1622.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/464953/ltcube_659750401_660009601_4FGL_J2056.2-4714_daily_bin1622.fits
.....................!
real 196.29
user 189.33
sys 5.40

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/464953/ft1_filtered_4FGL_J2056.2-4714_daily_bin1622.fits scfile=/scratch/kocevski/464953/ft2_4FGL_J2056.2-4714_daily_bin1622.fits outfile=/scratch/kocevski/464953/cmap_659750401_660009601_4FGL_J2056.2-4714_daily_bin1622.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.40
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/464953/ft1_filtered_4FGL_J2056.2-4714_daily_bin1622.fits evtable="EVENTS" scfile=/scratch/kocevski/464953/ft2_4FGL_J2056.2-4714_daily_bin1622.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/464953/Model_4FGL_J2056.2-4714_daily_bin1622.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/464953/ft1_filtered_4FGL_J2056.2-4714_daily_bin1622.fits.....................!
real 58.72
user 57.15
sys 1.43

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.910       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9461       1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.946       1.0000         .10000E-03   10000.    
     5 'norm      '    1.7356       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6337       1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.897       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 '    .10191E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4913       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2588       1.0000         .10000E-03   10000.    
    18 'norm      '    3.1390       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.288       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .98855E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4892       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90386       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=   7272.761     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2580 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.909        9.4507       -.12048E-07    .47269E-05
   2  norm          .10000E-03    8.6844       -.10489E-06** at limit **
   3  norm          1.9461        1.5632       -.39996E-08    .23553E-04
   4  Prefactor     35.940        39.851        .54741E-07   -.12040E-04
   5  norm          1.7350        3.2373        .81976E-07    .91497E-05
   6  norm          .10000E-03    5.8821       -.15317E-07** at limit **
   7  Prefactor     .10000E-03    6.3943       -.24978E-07** at limit **
   8  Prefactor     .10000E-03    71.872        .83837E-06** at limit **
   9  Prefactor     1.6337        3.2579        .21449E-06   -.43714E-05
  10  Prefactor     30.887        25.150        .42693E-06    .25506E-04
  11  norm          .10000E-03    .98479       -.25418E-06** at limit **
  12  Prefactor     .10000E-03    32.260       -.59576E-06** at limit **
  13  Prefactor     .10001E-03    122.12       -.30730E-05** at limit **
  14  Prefactor     6.4872        8.9475        .97921E-06   -.84813E-04
  15  Prefactor     .10000E-03    9.9422       -.41709E-07** at limit **
  16  Prefactor     .10000E-03    16.632       -.62277E-06** at limit **
  17  Prefactor     3.2597        5.3273        .20292E-05   -.21964E-03
  18  norm          3.1381        3.4024        .77601E-07   -.49629E-04
  19  Prefactor     .10000E-03    16.792        .70417E-07** at limit **
  20  Prefactor     31.414        45.443       -.84077E-05   -.10187E-03
  21  Prefactor     .10001E-03    8.0988        .28011E-05** at limit **
  22  Normalizat    1.4898        .25084       -.47520E-05   -.27405E-03
  23  Prefactor     .90364        .12345        .24533E-05   -.46503E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.9089
  norm       = 0.0001
  norm       = 1.9461
  Prefactor  = 35.9396
  norm       = 1.73495
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.63369
  Prefactor  = 30.8868
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 6.48722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.25967
  norm       = 3.13811
  Prefactor  = 0.0001
  Prefactor  = 31.4136
  Prefactor  = 0.000100009
  Normalizat = 1.48976
  Prefactor  = 0.903641
 **********
 **   18 **HESSE 
 **********

 FCN=   7272.761     FROM HESSE     STATUS=OK           366 CALLS     2946 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.909        9.4557        .12130E-03   -1.5047    
   2  norm          .10000E-03    8.7053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9461        1.5624        .92894E-04   -1.5429    
   4  Prefactor     35.940        39.868        .66844E-04   -1.4508    
   5  norm          1.7350        3.2169        .20238E-03   -1.5445    
   6  norm          .10000E-03    5.8882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.3951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    72.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.6337        3.2346        .20414E-03   -1.5452    
  10  Prefactor     30.887        25.121        .72082E-04   -1.4596    
  11  norm          .10000E-03    1.8217        .16259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    32.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    122.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.4872        8.9368        .78760E-03   -1.5199    
  15  Prefactor     .10000E-03    9.9476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.2597        5.3884        .11217E-02   -1.5347    
  18  norm          3.1381        3.4024        .15871E-03   -1.5354    
  19  Prefactor     .10000E-03    17.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     31.414        46.907        .71632E-04   -1.4586    
  21  Prefactor     .10001E-03    53.739        .43651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4898        .27725        .30546E-03   -.78066    
  23  Prefactor     .90364        .13915        .20206E-03   -.96014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.37285e-10
Minuit parameter uncertainties:
  1  9.457
  2  6.57117e-07
  3  1.56238
  4  39.8978
  5  3.21726
  6  2.47613e-06
  7  1.55738e-06
  8  0.000579445
  9  3.23498
  10  25.1298
  11  2.85262e-05
  12  7.43614e-05
  13  0.00201414
  14  8.93862
  15  6.3318e-07
  16  0.000135944
  17  5.38917
  18  3.40264
  19  0.000157652
  20  46.9625
  21  0.00141173
  22  0.277537
  23  0.139203
Done.

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

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  1.000e-04  2.853e-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:  9.036e-01  1.392e-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.490e+00  2.775e-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: 8.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/464953/likelihoodResults_659750401_660009601_4FGL_J2056.2-4714_daily_bin1622.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) = 7272.76361295
delta logL = -0.00261878843321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7272.76099464
delta logL = -4.83330950374e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3600       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4897       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90372       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=   7272.761     FROM MIGRAD    STATUS=FAILED        91 CALLS      251 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10035E-03    419.48        .16262E-02** at limit **
   2  alpha         2.4365        3.0300        .16493       -.68968E-05
   3  Normalizat    1.4898        .17500        .30546E-03   -.12394E-04
   4  Prefactor     .90364        .93375E-01    .20206E-03   -.63073E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7272.761     FROM SIMPLEX   STATUS=PROGRESS     161 CALLS      412 TOTAL
                     EDM=   .55E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10026E-03    419.48        .17734E-03** at limit **
   2  alpha         2.4365        3.0300        .65533E-05   -.68968E-05
   3  Normalizat    1.4898        .17500        .16276E-05   -.12394E-04
   4  Prefactor     .90364        .93375E-01    .29963E-06   -.63073E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7272.761     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      446 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8958        .32525E-03** at limit **
   2  alpha         2.4840        2.6846        .65973E-01    .54454E-07
   3  Normalizat    1.4898        .25289        .12219E-04   -.96952E-04
   4  Prefactor     .90364        .13529        .80822E-05   -.10437E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.48398
  Normalizat = 1.48976
  Prefactor  = 0.903642
 **********
 **   18 **HESSE 
 **********

 FCN=   7272.761     FROM HESSE     STATUS=OK            23 CALLS      469 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8623        .65050E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4840        3.0898        .26389E-02   -.64082E-02
   3  Normalizat    1.4898        .25296        .24437E-05   -.78066    
   4  Prefactor     .90364        .13530        .16164E-05   -.96014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53085e-11
Minuit parameter uncertainties:
  1  6.65965e-06
  2  132.252
  3  0.253172
  4  0.135353
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/464953': 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) = 7272.76099365
delta logL = 5.07255208504e-07

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  1.000e-04  6.660e-06  1.000e-04  1.000e+04 ( 1.000e-11)
292        alpha:  2.484e+00  1.323e+02  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.036e-01  1.354e-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.490e+00  2.532e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/464953/cmap_HighResolution_659750401_660009601_4FGL_J2056.2-4714_daily_bin1622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-05', job_status='DONE', photon_flux_upper_limit='8.78e-08', time_completed='2021-12-08 07:30:03.434445', job_id='464953', GAL2='0.90', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1638977403.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='5.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1622' AND source_name='4FGL J2056.2-4714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 07:30:03 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 464953: <4FGL_J2056.2-4714_daily_bin1622> in cluster <slac> Done

Job <4FGL_J2056.2-4714_daily_bin1622> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec  8 07:15:31 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 07:17:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 07:17:40 2021
Terminated at Wed Dec  8 07:30:04 2021
Results reported at Wed Dec  8 07:30:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.2-4714_daily_bin1622 314.072 -47.2369 659750401 660009601 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 :                                   713.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            873 sec.

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

