/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 82 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 = 7435
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2050.4-2627_daily_bin1337
RA = 312.61, Dec = -26.4659
tmin = 585878401, tmax = 586137601
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='172085', job_status='RUN', time_executed='2021-09-25 19:23:07.258331', time_epoch_executed='1632622987.26' WHERE source_name='4FGL J2050.4-2627' and cadence='daily' and bin_id='1337'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/172085

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/172085/ft1_4FGL_J2050.4-2627_daily_bin1337.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/172085/ft2_4FGL_J2050.4-2627_daily_bin1337.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/172085/ft1_4FGL_J2050.4-2627_daily_bin1337.fits outfile=/scratch/kocevski/172085/ft1_filteredMKT_4FGL_J2050.4-2627_daily_bin1337.fits ra=312.61 dec=-26.4659 rad=12.0 tmin=585878401.0 tmax=586137601.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.78
user 2.57
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/172085/ft2_4FGL_J2050.4-2627_daily_bin1337.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/172085/ft2_4FGL_J2050.4-2627_daily_bin1337.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/172085/ft1_filteredMKT_4FGL_J2050.4-2627_daily_bin1337.fits evtable="EVENTS" outfile="/scratch/kocevski/172085/ft1_filtered_4FGL_J2050.4-2627_daily_bin1337.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.53
user 0.32
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/172085/ft1_filtered_4FGL_J2050.4-2627_daily_bin1337.fits" evtable="EVENTS" scfile=/scratch/kocevski/172085/ft2_4FGL_J2050.4-2627_daily_bin1337.fits sctable="SC_DATA" outfile=/scratch/kocevski/172085/ltcube_585878401_586137601_4FGL_J2050.4-2627_daily_bin1337.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/172085/ft2_4FGL_J2050.4-2627_daily_bin1337.fits
.....................!
real 13.56
user 13.10
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/172085/ft1_filtered_4FGL_J2050.4-2627_daily_bin1337.fits evtable="EVENTS" scfile=/scratch/kocevski/172085/ft2_4FGL_J2050.4-2627_daily_bin1337.fits sctable="SC_DATA" expcube=/scratch/kocevski/172085/ltcube_585878401_586137601_4FGL_J2050.4-2627_daily_bin1337.fits outfile=/scratch/kocevski/172085/expmap_585878401_586137601_4FGL_J2050.4-2627_daily_bin1337.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/172085/ltcube_585878401_586137601_4FGL_J2050.4-2627_daily_bin1337.fits
.....................!
real 191.28
user 185.30
sys 5.38

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 J2050.4-2627 @ 312.61 -26.4659

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/172085/ft1_filtered_4FGL_J2050.4-2627_daily_bin1337.fits scfile=/scratch/kocevski/172085/ft2_4FGL_J2050.4-2627_daily_bin1337.fits outfile=/scratch/kocevski/172085/cmap_585878401_586137601_4FGL_J2050.4-2627_daily_bin1337.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=312.61 yref=-26.4659 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/172085/ft1_filtered_4FGL_J2050.4-2627_daily_bin1337.fits scfile=/scratch/kocevski/172085/ft2_4FGL_J2050.4-2627_daily_bin1337.fits outfile=/scratch/kocevski/172085/cmap_HighResolution_585878401_586137601_4FGL_J2050.4-2627_daily_bin1337.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=312.61 yref=-26.4659 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.68
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/172085/ft1_filtered_4FGL_J2050.4-2627_daily_bin1337.fits evtable="EVENTS" scfile=/scratch/kocevski/172085/ft2_4FGL_J2050.4-2627_daily_bin1337.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/172085/Model_4FGL_J2050.4-2627_daily_bin1337.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/172085/ft1_filtered_4FGL_J2050.4-2627_daily_bin1337.fits.....................!
real 21.36
user 20.05
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/172085/ft1_filtered_4FGL_J2050.4-2627_daily_bin1337.fits', '/scratch/kocevski/172085/ft2_4FGL_J2050.4-2627_daily_bin1337.fits', expMap='/scratch/kocevski/172085/expmap_585878401_586137601_4FGL_J2050.4-2627_daily_bin1337.fits', expCube='/scratch/kocevski/172085/ltcube_585878401_586137601_4FGL_J2050.4-2627_daily_bin1337.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/172085/Model_4FGL_J2050.4-2627_daily_bin1337.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2050.4-2627'

4FGL J2050.4-2627
   Spectrum: LogParabola
313         norm:  4.487e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
314        alpha:  2.056e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
315         beta:  1.779e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
316           Eb:  1.248e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/172085/ft1_filtered_4FGL_J2050.4-2627_daily_bin1337.fits
Spacecraft file(s): /scratch/kocevski/172085/ft2_4FGL_J2050.4-2627_daily_bin1337.fits
Exposure map: /scratch/kocevski/172085/expmap_585878401_586137601_4FGL_J2050.4-2627_daily_bin1337.fits
Exposure cube: /scratch/kocevski/172085/ltcube_585878401_586137601_4FGL_J2050.4-2627_daily_bin1337.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/172085/Model_4FGL_J2050.4-2627_daily_bin1337.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) = 1157.5023015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    86.426       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.915       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    149.90       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    59.433       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4554       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Normalizat'    .64275       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.0261       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1157.439     FROM MIGRAD    STATUS=CONVERGED    266 CALLS     1281 TOTAL
                     EDM=   .14E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.368        .37953E-06** at limit **
   2  norm          .10000E-03    22.820       -.19636E-06** at limit **
   3  Prefactor     86.474        149.60       -.50752E-05   -.11039E-05
   4  Prefactor     17.916        26.738        .21236E-06   -.45110E-06
   5  Prefactor     .10000E-03    4.3075       -.40026E-07** at limit **
   6  Prefactor     149.91        261.83       -.61714E-06    .32130E-06
   7  norm          .10000E-03    41.263        .28336E-07** at limit **
   8  Prefactor     .10000E-03    18.134        .19430E-06** at limit **
   9  Prefactor     59.478        92.667       -.54408E-05   -.93796E-06
  10  Prefactor     .10000E-03    12.078       -.45989E-06** at limit **
  11  norm          .10000E-03    10.539       -.11096E-06** at limit **
  12  Prefactor     2.4552        21.222        .43659E-05   -.31440E-05
  13  Prefactor     .10000E-03    22.166        .19240E-07** at limit **
  14  Normalizat    .64221        .56670        .26327E-05    .18841E-05
  15  Prefactor     1.0263        .24989       -.24606E-06    .21364E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 86.4738
  Prefactor  = 17.9162
  Prefactor  = 0.0001
  Prefactor  = 149.91
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.4778
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.4552
  Prefactor  = 0.0001
  Normalizat = 0.64221
  Prefactor  = 1.02635
 **********
 **   18 **HESSE 
 **********

 FCN=   1157.439     FROM HESSE     STATUS=OK           176 CALLS     1457 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.368        .11206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    22.849        .15879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     86.474        149.60        .21607E-03   -1.3845    
   4  Prefactor     17.916        26.714        .94625E-04   -1.4861    
   5  Prefactor     .10000E-03    4.3105        .68972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     149.91        262.15        .32919E-04   -1.3253    
   7  norm          .10000E-03    41.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.136        .14155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     59.478        92.675        .52042E-04   -1.4164    
  10  Prefactor     .10000E-03    12.114        .11555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    10.539        .10790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.4552        21.235        .13051E-02   -1.5395    
  13  Prefactor     .10000E-03    22.168        .15651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    .64221        .62941        .41969E-03   -1.0622    
  15  Prefactor     1.0263        .28133        .15647E-03   -.91856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.13401e-11
Minuit parameter uncertainties:
  1  8.88427e-07
  2  3.38581e-07
  3  150.255
  4  26.7321
  5  2.59759e-06
  6  264.224
  7  2.00369e-06
  8  1.19007e-06
  9  92.9012
  10  1.22246e-05
  11  4.379e-07
  12  14.4476
  13  4.21354e-06
  14  0.636658
  15  0.281733
Done.

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

Extracting fit parameters...

4FGL J2050.4-2627
   Spectrum: LogParabola
313         norm:  1.000e-04  2.004e-06  1.000e-04  1.000e+04 ( 1.000e-13)
314        alpha:  2.056e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
315         beta:  1.779e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
316           Eb:  1.248e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.026e+00  2.817e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  6.422e-01  6.367e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 312.610 -26.466
Photon Flux Upper Limit: 2.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/172085/likelihoodResults_585878401_586137601_4FGL_J2050.4-2627_daily_bin1337.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) = 1157.43872908
delta logL = -0.000114477367561

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1157.13452741
delta logL = 0.304087191141

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .60228       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .47698       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0677       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1157.135     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      266 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60296        57.520        .77291E-02    .15490E-03
   2  alpha         5.0000        3.1116        .46388    ** at limit **
   3  Normalizat    .47715        .94148        .10835        .77256E-05
   4  Prefactor     1.0676        .31395        .38971E-01    .18726E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.602962
  alpha      = 5
  Normalizat = 0.477148
  Prefactor  = 1.06764
 **********
 **   18 **HESSE 
 **********

 FCN=   1157.135     FROM HESSE     STATUS=OK            31 CALLS      297 TOTAL
                     EDM=   .74E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .60296        .85827        .34705E-04   -1.5553    
   2  alpha         5.0000        3.2415        .32381E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .47715        .62036        .48029E-03   -1.1349    
   4  Prefactor     1.0676        .28419        .15323E-03   -.90507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.3946e-13
Minuit parameter uncertainties:
  1  0.858288
  2  3.85338e-07
  3  0.629671
  4  0.284596
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/172085': 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) = 1157.13452656
delta logL = 0.304088042792

Extracting fit parameters...

4FGL J2050.4-2627
   Spectrum: LogParabola
313         norm:  6.030e-01  8.583e-01  1.000e-04  1.000e+04 ( 1.000e-13)
314        alpha:  5.000e+00  3.853e-07  0.000e+00  5.000e+00 ( 1.000e+00)
315         beta:  1.779e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
316           Eb:  1.248e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.068e+00  2.846e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  4.771e-01  6.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 312.610 -26.466

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/172085/cmap_HighResolution_585878401_586137601_4FGL_J2050.4-2627_daily_bin1337.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-04', job_status='DONE', photon_flux_upper_limit='2.19e-07', time_completed='2021-09-25 19:28:58.946722', job_id='172085', GAL2='1.07', fit_tolerance='1e-08', EG2='0.48', EG='0.64', time_epoch_completed='1632623338.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.04e-01', ts2='0.68', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1337' AND source_name='4FGL J2050.4-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 19:28:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 172085: <4FGL_J2050.4-2627_daily_bin1337> in cluster <slac> Done

Job <4FGL_J2050.4-2627_daily_bin1337> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 25 19:20:22 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 19:21:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 19:21:32 2021
Terminated at Sat Sep 25 19:29:01 2021
Results reported at Sat Sep 25 19:29:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2050.4-2627_daily_bin1337 312.61 -26.4659 585878401 586137601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2050.4-2627 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   348.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   447 sec.
    Turnaround time :                            519 sec.

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

