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


Performing analysis on: 4FGL_J2056.2-4714_daily_bin1197
RA = 314.072, Dec = -47.2369
tmin = 549590401, tmax = 549849601
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='213748', job_status='RUN', time_executed='2021-09-25 21:48:09.436733', time_epoch_executed='1632631689.44' WHERE source_name='4FGL J2056.2-4714' and cadence='daily' and bin_id='1197'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/213748

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/213748/ft1_4FGL_J2056.2-4714_daily_bin1197.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/213748/ft2_4FGL_J2056.2-4714_daily_bin1197.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/213748/ft1_4FGL_J2056.2-4714_daily_bin1197.fits outfile=/scratch/kocevski/213748/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1197.fits ra=314.072 dec=-47.2369 rad=12.0 tmin=549590401.0 tmax=549849601.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.73
user 2.52
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/213748/ft1_filtered_4FGL_J2056.2-4714_daily_bin1197.fits" evtable="EVENTS" scfile=/scratch/kocevski/213748/ft2_4FGL_J2056.2-4714_daily_bin1197.fits sctable="SC_DATA" outfile=/scratch/kocevski/213748/ltcube_549590401_549849601_4FGL_J2056.2-4714_daily_bin1197.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/213748/ft2_4FGL_J2056.2-4714_daily_bin1197.fits
.....................!
real 16.62
user 16.06
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/213748/ft1_filtered_4FGL_J2056.2-4714_daily_bin1197.fits evtable="EVENTS" scfile=/scratch/kocevski/213748/ft2_4FGL_J2056.2-4714_daily_bin1197.fits sctable="SC_DATA" expcube=/scratch/kocevski/213748/ltcube_549590401_549849601_4FGL_J2056.2-4714_daily_bin1197.fits outfile=/scratch/kocevski/213748/expmap_549590401_549849601_4FGL_J2056.2-4714_daily_bin1197.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/213748/ltcube_549590401_549849601_4FGL_J2056.2-4714_daily_bin1197.fits
.....................!
real 191.70
user 186.34
sys 4.60

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/213748/ft1_filtered_4FGL_J2056.2-4714_daily_bin1197.fits scfile=/scratch/kocevski/213748/ft2_4FGL_J2056.2-4714_daily_bin1197.fits outfile=/scratch/kocevski/213748/cmap_549590401_549849601_4FGL_J2056.2-4714_daily_bin1197.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.56
user 0.38
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/213748/ft1_filtered_4FGL_J2056.2-4714_daily_bin1197.fits evtable="EVENTS" scfile=/scratch/kocevski/213748/ft2_4FGL_J2056.2-4714_daily_bin1197.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/213748/Model_4FGL_J2056.2-4714_daily_bin1197.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/213748/ft1_filtered_4FGL_J2056.2-4714_daily_bin1197.fits.....................!
real 55.91
user 53.60
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.2092       1.0000         .10000E-03   10000.    
     3 'norm      '    3.0972       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13022E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.5538       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    195.75       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17754       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14791E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.1218       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.207       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.3384       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7027       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.7042       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87228       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=   6934.838     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2646 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.5315        .14457E-07** at limit **
   2  norm          6.2110        17.099       -.50355E-06    .14624E-04
   3  norm          3.0976        2.3167       -.84346E-07    .67563E-04
   4  Prefactor     .10000E-03    149.27        .68583E-05** at limit **
   5  norm          7.5549        5.7638       -.55349E-06    .25561E-04
   6  norm          .10000E-03    6.8367       -.73053E-07** at limit **
   7  Prefactor     .10000E-03    14.541        .28264E-06** at limit **
   8  Prefactor     195.79        123.27       -.18278E-05   -.67611E-06
   9  Prefactor     .18503        11.681        .53446E-05    .29740E-04
  10  Prefactor     .10000E-03    94.550       -.53350E-05** at limit **
  11  norm          2.1220        2.1310       -.50076E-06    .15586E-03
  12  Prefactor     .10000E-03    8.8809        .36965E-07** at limit **
  13  Prefactor     .10000E-03    68.704        .20223E-05** at limit **
  14  Prefactor     11.208        9.6391        .72904E-07    .15715E-04
  15  Prefactor     .10000E-03    51.786        .19116E-05** at limit **
  16  Prefactor     .10000E-03    16.936       -.21326E-07** at limit **
  17  Prefactor     .10000E-03    2.8066        .48941E-06** at limit **
  18  norm          5.3377        4.2419       -.80806E-07   -.32491E-04
  19  Prefactor     .10000E-03    11.942       -.28814E-06** at limit **
  20  Prefactor     4.7076        38.939       -.76162E-06    .15796E-05
  21  Prefactor     .10000E-03    3.9050        .23101E-06** at limit **
  22  Normalizat    1.7041        .24560       -.58077E-06   -.21166E-04
  23  Prefactor     .87221        .12865       -.43283E-06   -.13359E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 6.21103
  norm       = 3.09762
  Prefactor  = 0.0001
  norm       = 7.55487
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 195.787
  Prefactor  = 0.185028
  Prefactor  = 0.000100001
  norm       = 2.12198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2082
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.33768
  Prefactor  = 0.0001
  Prefactor  = 4.7076
  Prefactor  = 0.0001
  Normalizat = 1.70408
  Prefactor  = 0.872214
 **********
 **   18 **HESSE 
 **********

 FCN=   6934.838     FROM HESSE     STATUS=OK           370 CALLS     3016 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.5351        .15284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.2110        17.064        .16110E-03   -1.5209    
   3  norm          3.0976        2.3127        .10589E-03   -1.5356    
   4  Prefactor     .10000E-03    150.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.5549        5.7553        .14592E-03   -1.5158    
   6  norm          .10000E-03    6.8372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     195.79        123.71        .14437E-03   -1.2900    
   9  Prefactor     .18503        11.712        .19042E-02   -1.5622    
  10  Prefactor     .10000E-03    96.206        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1220        2.1203        .11588E-03   -1.5417    
  12  Prefactor     .10000E-03    8.8840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    69.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.208        9.7090        .11967E-03   -1.5038    
  15  Prefactor     .10000E-03    52.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.8888        .27273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.3377        4.2414        .14805E-03   -1.5246    
  19  Prefactor     .10000E-03    12.453        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.7076        38.959        .18556E-03   -1.5274    
  21  Prefactor     .10000E-03    3.9227        .16075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.7041        .28998        .30120E-03   -.72194    
  23  Prefactor     .87221        .15195        .21674E-03   -.97119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.39163e-11
Minuit parameter uncertainties:
  1  3.42851e-06
  2  17.0772
  3  2.31276
  4  0.000124132
  5  5.75576
  6  3.99596e-06
  7  3.81412e-05
  8  123.875
  9  2.94398
  10  0.000733357
  11  2.12042
  12  1.95465e-06
  13  5.05142e-05
  14  9.71041
  15  8.59989e-05
  16  4.42464e-06
  17  1.21452e-06
  18  4.24164
  19  2.27582e-05
  20  27.1091
  21  2.30003e-06
  22  0.290267
  23  0.152019
Done.

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

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  2.122e+00  2.120e+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:  8.722e-01  1.520e-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.704e+00  2.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.51
Ra Dec: 314.072 -47.237
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 4.76e-08 +/- 4.76e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.45e-05

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

Saving results to:
/scratch/kocevski/213748/likelihoodResults_549590401_549849601_4FGL_J2056.2-4714_daily_bin1197.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) = 6934.38008429
delta logL = 0.458405147138

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6934.36200518
delta logL = 0.476484258365

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .63437       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5086       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5828       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91892       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6934.362     FROM MIGRAD    STATUS=FAILED        98 CALLS      294 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63299        12.829        .44491E-04   -.75968E-03
   2  alpha         4.5108        2.6646        .50000        .21486E-03
   3  Normalizat    1.5826        .14154        .30995E-03   -.41778E-04
   4  Prefactor     .91906        .77324E-01    .21181E-03   -.56841E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6934.362     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      383 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63299        12.829        .13665E-03   -.75968E-03
   2  alpha         4.5108        2.6646        .88519E-02    .21486E-03
   3  Normalizat    1.5826        .14154        .10411E-03   -.41778E-04
   4  Prefactor     .91906        .77324E-01    .57610E-04   -.56841E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6934.362     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      416 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63298        12.849        .17797E-05   -.28704E-03
   2  alpha         4.5108        2.6696        .50000        .65624E-05
   3  Normalizat    1.5826        .14215        .12398E-04   -.11187E-04
   4  Prefactor     .91906        .77656E-01    .84724E-05   -.34351E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.632981
  alpha      = 4.51082
  Normalizat = 1.58264
  Prefactor  = 0.919057
 **********
 **   18 **HESSE 
 **********

 FCN=   6934.362     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      443 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .63298        14.260        .37071E-06   -1.5549    
   2  alpha         4.5108        2.7371        .39393E-01    .93454    
   3  Normalizat    1.5826        .27988        .24796E-05   -.75482    
   4  Prefactor     .91906        .15058        .16945E-05   -.95478    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.32074e-08
Minuit parameter uncertainties:
  1  6.00995
  2  8.22552
  3  0.280161
  4  0.150652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/213748': 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): 102
logL (Free Index) = 6934.36200426
delta logL = 0.476485181749

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  6.330e-01  6.010e+00  1.000e-04  1.000e+04 ( 1.000e-11)
292        alpha:  4.511e+00  8.226e+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.191e-01  1.507e-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.583e+00  2.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.67
Ra Dec: 314.072 -47.237
Photon Index (Free Index): 4.51 +/- 8.23
Photon Flux (Free Index): 1.33e-07 +/- 1.07e-07
Energy Flux (Free Index): 1.89e-05 +/- 1.77e-05

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/213748/cmap_HighResolution_549590401_549849601_4FGL_J2056.2-4714_daily_bin1197.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.74e-05', comment='SUCCESS', photon_flux='4.76e-08', energy_flux2='1.89e-05', photon_flux_error='4.76e-08', dlogl='4.76e-01', energy_flux='1.46e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2021-09-25 21:59:56.157231', photon_index_error2='8.23', photon_index2='4.51', ts='1.51', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.55e-07', energy_flux_error2='1.77e-05', EG='1.70', time_epoch_completed='1632632396.16', return_code='0', job_id='213748', GAL2='0.92', EG2='1.58', return_code2='102', energy_flux_error='1.45e-05', photon_flux_error2='1.07e-07', ts2='2.67', photon_index='2.35' WHERE bin_id='1197' AND source_name='4FGL J2056.2-4714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 21:59:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 213748: <4FGL_J2056.2-4714_daily_bin1197> in cluster <slac> Done

Job <4FGL_J2056.2-4714_daily_bin1197> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 25 21:45:35 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 21:46:42 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:46:42 2021
Terminated at Sat Sep 25 21:59:56 2021
Results reported at Sat Sep 25 21:59:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.2-4714_daily_bin1197 314.072 -47.2369 549590401 549849601 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 :                                   703.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            861 sec.

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

