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


Performing analysis on: 4FGL_J2056.2-4714_daily_bin1654
RA = 314.072, Dec = -47.2369
tmin = 668044801, tmax = 668304001
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='100136', job_status='RUN', time_executed='2022-03-07 01:22:14.994692', time_epoch_executed='1646644934.99' WHERE source_name='4FGL J2056.2-4714' and cadence='daily' and bin_id='1654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/100136

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/100136/ft1_4FGL_J2056.2-4714_daily_bin1654.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/100136/ft2_4FGL_J2056.2-4714_daily_bin1654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/100136/ft1_4FGL_J2056.2-4714_daily_bin1654.fits outfile=/scratch/kocevski/100136/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1654.fits ra=314.072 dec=-47.2369 rad=12.0 tmin=668044801.0 tmax=668304001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.10
user 2.85
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/100136/ft2_4FGL_J2056.2-4714_daily_bin1654.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/100136/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1654.fits evtable="EVENTS" outfile="/scratch/kocevski/100136/ft1_filtered_4FGL_J2056.2-4714_daily_bin1654.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.46
user 0.28
sys 0.15
Number of photons that survived the gtmktime cut: 831

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/100136/ft1_filtered_4FGL_J2056.2-4714_daily_bin1654.fits" evtable="EVENTS" scfile=/scratch/kocevski/100136/ft2_4FGL_J2056.2-4714_daily_bin1654.fits sctable="SC_DATA" outfile=/scratch/kocevski/100136/ltcube_668044801_668304001_4FGL_J2056.2-4714_daily_bin1654.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/100136/ft2_4FGL_J2056.2-4714_daily_bin1654.fits
.....................!
real 11.04
user 10.70
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/100136/ft1_filtered_4FGL_J2056.2-4714_daily_bin1654.fits evtable="EVENTS" scfile=/scratch/kocevski/100136/ft2_4FGL_J2056.2-4714_daily_bin1654.fits sctable="SC_DATA" expcube=/scratch/kocevski/100136/ltcube_668044801_668304001_4FGL_J2056.2-4714_daily_bin1654.fits outfile=/scratch/kocevski/100136/expmap_668044801_668304001_4FGL_J2056.2-4714_daily_bin1654.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/100136/ltcube_668044801_668304001_4FGL_J2056.2-4714_daily_bin1654.fits
.....................!
real 157.09
user 151.92
sys 4.88

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/100136/ft1_filtered_4FGL_J2056.2-4714_daily_bin1654.fits scfile=/scratch/kocevski/100136/ft2_4FGL_J2056.2-4714_daily_bin1654.fits outfile=/scratch/kocevski/100136/cmap_668044801_668304001_4FGL_J2056.2-4714_daily_bin1654.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.49
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/100136/ft1_filtered_4FGL_J2056.2-4714_daily_bin1654.fits scfile=/scratch/kocevski/100136/ft2_4FGL_J2056.2-4714_daily_bin1654.fits outfile=/scratch/kocevski/100136/cmap_HighResolution_668044801_668304001_4FGL_J2056.2-4714_daily_bin1654.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.49
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/100136/ft1_filtered_4FGL_J2056.2-4714_daily_bin1654.fits evtable="EVENTS" scfile=/scratch/kocevski/100136/ft2_4FGL_J2056.2-4714_daily_bin1654.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/100136/Model_4FGL_J2056.2-4714_daily_bin1654.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/100136/ft1_filtered_4FGL_J2056.2-4714_daily_bin1654.fits.....................!
real 53.51
user 52.32
sys 1.07

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.845       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .11082       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.6012       1.0000         .10000E-03   10000.    
     6 'norm      '    .94749       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10499E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10377E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.9663       1.0000         .10000E-03   10000.    
    11 'norm      '    .21863E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5834       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3984       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10756E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.4811       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6909       1.0000         .10000E-03   10000.    
    18 'norm      '    3.8991       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2461       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .53674E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .90100E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .67274       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1939       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=   8952.185     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2256 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.846        8.8788        .74762E-07   -.18076E-04
   2  norm          .10000E-03    4.5685        .10653E-07** at limit **
   3  norm          .11098        .70680        .40876E-06   -.52972E-03
   4  Prefactor     .10000E-03    16.137       -.12495E-06** at limit **
   5  norm          1.6015        2.6114        .60795E-06    .25621E-03
   6  norm          .94454        8.2892        .36700E-06   -.53272E-04
   7  Prefactor     .10000E-03    27.029       -.15770E-05** at limit **
   8  Prefactor     .10000E-03    104.70       -.11389E-05** at limit **
   9  Prefactor     .10000E-03    .56491       -.29279E-08** at limit **
  10  Prefactor     7.9557        14.615        .39190E-06   -.47067E-05
  11  norm          .10000E-03    .58456        .42588E-07** at limit **
  12  Prefactor     7.5931        29.429        .12046E-05    .26297E-04
  13  Prefactor     .10000E-03    23.126        .10809E-05** at limit **
  14  Prefactor     7.3977        6.0323        .10310E-08   -.30408E-03
  15  Prefactor     .10000E-03    12.991       -.57397E-08** at limit **
  16  Prefactor     7.4847        15.075        .41113E-05    .26932E-03
  17  Prefactor     2.6868        4.1151        .77900E-06    .89430E-04
  18  norm          3.8970        3.3858        .74573E-07   -.13471E-06
  19  Prefactor     4.2476        6.6476        .27646E-06   -.53085E-04
  20  Prefactor     .10000E-03    132.08       -.18229E-06** at limit **
  21  Prefactor     .10112E-03    5.2470        .18669E-05** at limit **
  22  Normalizat    .67251        .20126       -.87461E-06   -.25471E-03
  23  Prefactor     1.1940        .10976       -.35116E-06   -.48234E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.8461
  norm       = 0.0001
  norm       = 0.110977
  Prefactor  = 0.0001
  norm       = 1.60147
  norm       = 0.944542
  Prefactor  = 0.000100004
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 7.95568
  norm       = 0.0001
  Prefactor  = 7.59314
  Prefactor  = 0.000100003
  Prefactor  = 7.39772
  Prefactor  = 0.0001
  Prefactor  = 7.48473
  Prefactor  = 2.68685
  norm       = 3.89699
  Prefactor  = 4.24761
  Prefactor  = 0.0001
  Prefactor  = 0.000101117
  Normalizat = 0.67251
  Prefactor  = 1.19398
 **********
 **   18 **HESSE 
 **********

 FCN=   8952.185     FROM HESSE     STATUS=OK           380 CALLS     2636 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.846        8.8785        .92264E-04   -1.4839    
   2  norm          .10000E-03    4.5747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .11098        1.4540        .14889E-02   -1.5641    
   4  Prefactor     .10000E-03    16.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6015        2.6009        .18874E-03   -1.5455    
   6  norm          .94454        36.081        .52746E-02   -1.5514    
   7  Prefactor     .10000E-03    27.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    105.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .56869        .69422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.9557        14.599        .14206E-03   -1.5144    
  11  norm          .10000E-03    7.6073        .13713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.5931        29.398        .14563E-03   -1.5157    
  13  Prefactor     .10000E-03    23.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3977        6.0323        .14745E-03   -1.5164    
  15  Prefactor     .10000E-03    13.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.4847        15.202        .73314E-03   -1.5161    
  17  Prefactor     2.6868        4.1128        .22025E-03   -1.5380    
  18  norm          3.8970        3.3864        .15651E-03   -1.5313    
  19  Prefactor     4.2476        6.6396        .19554E-03   -1.5296    
  20  Prefactor     .10000E-03    136.91        .42244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10112E-03    51.037        .33208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .67251        .22577        .37809E-03   -1.0499    
  23  Prefactor     1.1940        .12597        .16585E-03   -.86517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18515e-07
Minuit parameter uncertainties:
  1  8.8791
  2  3.39962e-06
  3  0.803064
  4  5.14873e-05
  5  2.6011
  6  11.6827
  7  0.000698519
  8  0.00100542
  9  2.82921e-07
  10  14.6052
  11  9.19715e-05
  12  29.4542
  13  0.000504131
  14  6.03285
  15  1.46222e-05
  16  15.2097
  17  4.11323
  18  3.38653
  19  6.64075
  20  0.000442811
  21  0.0151163
  22  0.226086
  23  0.125997
Done.

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

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  1.000e-04  9.197e-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:  1.194e+00  1.260e-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:  6.725e-01  2.261e-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.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/100136/likelihoodResults_668044801_668304001_4FGL_J2056.2-4714_daily_bin1654.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) = 8952.18607599
delta logL = -0.000635483216683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8952.03582372
delta logL = 0.149616794559

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32172       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6578       1.0000          .0000       5.0000    
     3 'Normalizat'    .64009       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2032       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.

 FCN=   8952.036     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      392 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32179        2.8332        .42079E-04    .32042E-03
   2  alpha         3.6579        4.3186        .52051E-01    .13873E-04
   3  Normalizat    .64006        .22102        .38700E-03   -.45322E-03
   4  Prefactor     1.2032        .12373        .16529E-03   -.11477E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.321788
  alpha      = 3.65789
  Normalizat = 0.640064
  Prefactor  = 1.20316
 **********
 **   18 **HESSE 
 **********

 FCN=   8952.036     FROM HESSE     STATUS=OK            25 CALLS      417 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32179        .95493        .16832E-05   -1.5595    
   2  alpha         3.6579        1.8149        .20821E-02    .48155    
   3  Normalizat    .64006        .22125        .15480E-04   -1.0631    
   4  Prefactor     1.2032        .12383        .33058E-04   -.86234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97045e-10
Minuit parameter uncertainties:
  1  0.95497
  2  2.12683
  3  0.221561
  4  0.123855
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/100136': 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) = 8952.03582346
delta logL = 0.149617051875

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  3.218e-01  9.550e-01  1.000e-04  1.000e+04 ( 1.000e-11)
292        alpha:  3.658e+00  2.127e+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:  1.203e+00  1.239e-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:  6.401e-01  2.216e-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/100136/cmap_HighResolution_668044801_668304001_4FGL_J2056.2-4714_daily_bin1654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.50e-05', job_status='DONE', photon_flux_upper_limit='8.17e-08', time_completed='2022-03-07 01:32:49.791998', job_id='100136', GAL2='1.20', fit_tolerance='1e-08', EG2='0.64', EG='0.67', time_epoch_completed='1646645569.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='1.50e-01', ts2='0.33', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1654' AND source_name='4FGL J2056.2-4714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar  7 01:32:49 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 100136: <4FGL_J2056.2-4714_daily_bin1654> in cluster <slac> Done

Job <4FGL_J2056.2-4714_daily_bin1654> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Mar  7 01:20:34 2022
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar  7 01:21:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar  7 01:21:19 2022
Terminated at Mon Mar  7 01:32:50 2022
Results reported at Mon Mar  7 01:32:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.2-4714_daily_bin1654 314.072 -47.2369 668044801 668304001 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 :                                   633.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            736 sec.

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

