aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 176 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 = 7530
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2050.4-2627_daily_bin1674
RA = 312.61, Dec = -26.4659
tmin = 673228801, tmax = 673488001
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='717741', job_status='RUN', time_executed='2022-05-06 03:14:05.592959', time_epoch_executed='1651832045.59' WHERE source_name='4FGL J2050.4-2627' and cadence='daily' and bin_id='1674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/717741

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/717741/ft1_4FGL_J2050.4-2627_daily_bin1674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/717741/ft2_4FGL_J2050.4-2627_daily_bin1674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/717741/ft1_4FGL_J2050.4-2627_daily_bin1674.fits outfile=/scratch/kocevski/717741/ft1_filteredMKT_4FGL_J2050.4-2627_daily_bin1674.fits ra=312.61 dec=-26.4659 rad=12.0 tmin=673228801.0 tmax=673488001.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.79
user 2.54
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/717741/ft2_4FGL_J2050.4-2627_daily_bin1674.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/717741/ft1_filteredMKT_4FGL_J2050.4-2627_daily_bin1674.fits evtable="EVENTS" outfile="/scratch/kocevski/717741/ft1_filtered_4FGL_J2050.4-2627_daily_bin1674.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.51
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 774

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/717741/ft1_filtered_4FGL_J2050.4-2627_daily_bin1674.fits" evtable="EVENTS" scfile=/scratch/kocevski/717741/ft2_4FGL_J2050.4-2627_daily_bin1674.fits sctable="SC_DATA" outfile=/scratch/kocevski/717741/ltcube_673228801_673488001_4FGL_J2050.4-2627_daily_bin1674.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/717741/ft2_4FGL_J2050.4-2627_daily_bin1674.fits
.....................!
real 14.20
user 13.82
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/717741/ft1_filtered_4FGL_J2050.4-2627_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/717741/ft2_4FGL_J2050.4-2627_daily_bin1674.fits sctable="SC_DATA" expcube=/scratch/kocevski/717741/ltcube_673228801_673488001_4FGL_J2050.4-2627_daily_bin1674.fits outfile=/scratch/kocevski/717741/expmap_673228801_673488001_4FGL_J2050.4-2627_daily_bin1674.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/717741/ltcube_673228801_673488001_4FGL_J2050.4-2627_daily_bin1674.fits
.....................!
real 192.25
user 185.56
sys 6.14

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/717741/ft1_filtered_4FGL_J2050.4-2627_daily_bin1674.fits scfile=/scratch/kocevski/717741/ft2_4FGL_J2050.4-2627_daily_bin1674.fits outfile=/scratch/kocevski/717741/cmap_673228801_673488001_4FGL_J2050.4-2627_daily_bin1674.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/717741/ft1_filtered_4FGL_J2050.4-2627_daily_bin1674.fits scfile=/scratch/kocevski/717741/ft2_4FGL_J2050.4-2627_daily_bin1674.fits outfile=/scratch/kocevski/717741/cmap_HighResolution_673228801_673488001_4FGL_J2050.4-2627_daily_bin1674.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/717741/ft1_filtered_4FGL_J2050.4-2627_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/717741/ft2_4FGL_J2050.4-2627_daily_bin1674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/717741/Model_4FGL_J2050.4-2627_daily_bin1674.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/717741/ft1_filtered_4FGL_J2050.4-2627_daily_bin1674.fits.....................!
real 71.33
user 69.78
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/717741/ft1_filtered_4FGL_J2050.4-2627_daily_bin1674.fits', '/scratch/kocevski/717741/ft2_4FGL_J2050.4-2627_daily_bin1674.fits', expMap='/scratch/kocevski/717741/expmap_673228801_673488001_4FGL_J2050.4-2627_daily_bin1674.fits', expCube='/scratch/kocevski/717741/ltcube_673228801_673488001_4FGL_J2050.4-2627_daily_bin1674.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/717741/Model_4FGL_J2050.4-2627_daily_bin1674.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/717741/ft1_filtered_4FGL_J2050.4-2627_daily_bin1674.fits
Spacecraft file(s): /scratch/kocevski/717741/ft2_4FGL_J2050.4-2627_daily_bin1674.fits
Exposure map: /scratch/kocevski/717741/expmap_673228801_673488001_4FGL_J2050.4-2627_daily_bin1674.fits
Exposure cube: /scratch/kocevski/717741/ltcube_673228801_673488001_4FGL_J2050.4-2627_daily_bin1674.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/717741/Model_4FGL_J2050.4-2627_daily_bin1674.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) = 8395.90341729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.859       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .23217E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10664E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    22.023       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.568       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.918       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10205E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .27276E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6814       1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.0687       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.0084       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=   8395.899     FROM MIGRAD    STATUS=CONVERGED    300 CALLS     1349 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.5714        .38693E-07** at limit **
   2  norm          .10000E-03    8.2241        .15094E-06** at limit **
   3  Prefactor     13.780        37.270       -.44061E-04   -.23643E-03
   4  Prefactor     .10004E-03    3.7518        .36313E-05** at limit **
   5  Prefactor     .10000E-03    2.9039        .16386E-06** at limit **
   6  Prefactor     .10000E-03    15.479        .58569E-06** at limit **
   7  norm          22.028        22.874       -.54907E-05   -.11701E-03
   8  Prefactor     16.550        18.761        .18532E-04   -.15924E-03
   9  Prefactor     25.897        25.173        .10338E-04   -.39257E-04
  10  Prefactor     .10000E-03    1.8786       -.27826E-07** at limit **
  11  norm          .10000E-03    2.8496       -.13925E-08** at limit **
  12  Prefactor     .10004E-03    4.9195       -.37239E-06** at limit **
  13  Prefactor     5.6730        16.857        .11594E-04   -.47237E-04
  14  Normalizat    1.0685        .21302       -.47429E-05   -.35281E-03
  15  Prefactor     1.0082        .95158E-01    .57135E-06   -.10809E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.7795
  Prefactor  = 0.000100037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.0279
  Prefactor  = 16.5501
  Prefactor  = 25.8966
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100036
  Prefactor  = 5.67299
  Normalizat = 1.06854
  Prefactor  = 1.00824
 **********
 **   18 **HESSE 
 **********

 FCN=   8395.899     FROM HESSE     STATUS=OK           182 CALLS     1531 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.5868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.3167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.780        37.262        .10759E-03   -1.4965    
   4  Prefactor     .10004E-03    12.554        .33572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.0082        .30466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          22.028        22.885        .85353E-04   -1.4769    
   8  Prefactor     16.550        18.596        .98398E-04   -1.4894    
   9  Prefactor     25.897        25.148        .78688E-04   -1.4690    
  10  Prefactor     .10000E-03    1.8852        .12262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.8545        .15106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10004E-03    40.702        .39110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6730        16.848        .16852E-03   -1.5232    
  14  Normalizat    1.0685        .24841        .35313E-03   -.90768    
  15  Prefactor     1.0082        .11266        .16652E-03   -.92455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78096e-09
Minuit parameter uncertainties:
  1  1.21169e-05
  2  5.4872e-05
  3  37.3245
  4  0.00135974
  5  2.4971e-05
  6  7.70683e-06
  7  22.8945
  8  18.6026
  9  25.1582
  10  5.61182e-06
  11  3.66139e-06
  12  0.00243195
  13  16.8623
  14  0.248682
  15  0.112684
Done.

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

Extracting fit parameters...

4FGL J2050.4-2627
   Spectrum: LogParabola
313         norm:  2.203e+01  2.289e+01  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.008e+00  1.127e-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:  1.069e+00  2.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 312.610 -26.466
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 2.19e-08 +/- 2.28e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 1.38e-05

TS (Fixed Index): 1.31
Ra Dec: 312.610 -26.466
Photon Flux Upper Limit: 7.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.60e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/717741/likelihoodResults_673228801_673488001_4FGL_J2050.4-2627_daily_bin1674.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) = 8395.82834413
delta logL = 0.0710472773699

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8395.82604558
delta logL = 0.0733458275226

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8395.826     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      288 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.523        28.120        .98514E-04   -.24788E-03
   2  alpha         2.4417        1.1486        .17573E-01   -.54264E-04
   3  Normalizat    1.0608        .24364        .35425E-03   -.63710E-03
   4  Prefactor     1.0101        .11256        .16638E-03   -.17748E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 16.5228
  alpha      = 2.44173
  Normalizat = 1.06076
  Prefactor  = 1.01012
 **********
 **   18 **HESSE 
 **********

 FCN=   8395.826     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.523        24.840        .39405E-05   -1.4895    
   2  alpha         2.4417        1.0230        .70292E-03   -.23309E-01
   3  Normalizat    1.0608        .24336        .70850E-04   -.91022    
   4  Prefactor     1.0101        .11249        .33275E-04   -.92393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38319e-09
Minuit parameter uncertainties:
  1  24.8556
  2  1.05397
  3  0.243616
  4  0.112516
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/717741': 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) = 8395.82604381
delta logL = 0.0733475952984

Extracting fit parameters...

4FGL J2050.4-2627
   Spectrum: LogParabola
313         norm:  1.652e+01  2.486e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        alpha:  2.442e+00  1.054e+00  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.010e+00  1.125e-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:  1.061e+00  2.436e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 312.610 -26.466
Photon Index (Free Index): 2.44 +/- 1.05
Photon Flux (Free Index): 2.91e-08 +/- 3.36e-08
Energy Flux (Free Index): 1.11e-05 +/- 1.23e-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/717741/cmap_HighResolution_673228801_673488001_4FGL_J2050.4-2627_daily_bin1674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-05', comment='SUCCESS', photon_flux='2.19e-08', energy_flux2='1.11e-05', photon_flux_error='2.28e-08', dlogl='7.33e-02', energy_flux='1.33e-05', photon_flux2='2.91e-08', job_status='DONE', time_completed='2022-05-06 03:23:44.013051', photon_index_error2='1.05', photon_index2='2.44', ts='1.31', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='7.59e-08', energy_flux_error2='1.23e-05', EG='1.07', time_epoch_completed='1651832624.01', return_code='0', job_id='717741', GAL2='1.01', EG2='1.06', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='3.36e-08', ts2='1.45', photon_index='2.06' WHERE bin_id='1674' AND source_name='4FGL J2050.4-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 03:23:44 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 717741: <4FGL_J2050.4-2627_daily_bin1674> in cluster <slac> Done

Job <4FGL_J2050.4-2627_daily_bin1674> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri May  6 03:10:22 2022
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 03:11:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 03:11:01 2022
Terminated at Fri May  6 03:23:44 2022
Results reported at Fri May  6 03:23:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2050.4-2627_daily_bin1674 312.61 -26.4659 673228801 673488001 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 :                                   580.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            802 sec.

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

