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


Performing analysis on: 4FGL_J0051.5-4220_daily_bin1666
RA = 12.8793, Dec = -42.3455
tmin = 671155201, tmax = 671414401
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='405101', job_status='RUN', time_executed='2022-04-12 00:05:55.301229', time_epoch_executed='1649747155.3' WHERE source_name='4FGL J0051.5-4220' and cadence='daily' and bin_id='1666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405101

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405101/ft1_4FGL_J0051.5-4220_daily_bin1666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405101/ft2_4FGL_J0051.5-4220_daily_bin1666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405101/ft1_4FGL_J0051.5-4220_daily_bin1666.fits outfile=/scratch/kocevski/405101/ft1_filteredMKT_4FGL_J0051.5-4220_daily_bin1666.fits ra=12.8793 dec=-42.3455 rad=12.0 tmin=671155201.0 tmax=671414401.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 5.52
user 5.03
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/405101/ft2_4FGL_J0051.5-4220_daily_bin1666.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/405101/ft2_4FGL_J0051.5-4220_daily_bin1666.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/405101/ft1_filteredMKT_4FGL_J0051.5-4220_daily_bin1666.fits evtable="EVENTS" outfile="/scratch/kocevski/405101/ft1_filtered_4FGL_J0051.5-4220_daily_bin1666.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.56
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 582

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405101/ft1_filtered_4FGL_J0051.5-4220_daily_bin1666.fits" evtable="EVENTS" scfile=/scratch/kocevski/405101/ft2_4FGL_J0051.5-4220_daily_bin1666.fits sctable="SC_DATA" outfile=/scratch/kocevski/405101/ltcube_671155201_671414401_4FGL_J0051.5-4220_daily_bin1666.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/405101/ft2_4FGL_J0051.5-4220_daily_bin1666.fits
.....................!
real 15.56
user 15.10
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405101/ft1_filtered_4FGL_J0051.5-4220_daily_bin1666.fits evtable="EVENTS" scfile=/scratch/kocevski/405101/ft2_4FGL_J0051.5-4220_daily_bin1666.fits sctable="SC_DATA" expcube=/scratch/kocevski/405101/ltcube_671155201_671414401_4FGL_J0051.5-4220_daily_bin1666.fits outfile=/scratch/kocevski/405101/expmap_671155201_671414401_4FGL_J0051.5-4220_daily_bin1666.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/405101/ltcube_671155201_671414401_4FGL_J0051.5-4220_daily_bin1666.fits
.....................!
real 191.47
user 184.95
sys 5.67

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 195 point sources and 0 extended sources

Setting source of interest to:
4FGL J0051.5-4220 @ 12.8793 -42.3455

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/405101/ft1_filtered_4FGL_J0051.5-4220_daily_bin1666.fits scfile=/scratch/kocevski/405101/ft2_4FGL_J0051.5-4220_daily_bin1666.fits outfile=/scratch/kocevski/405101/cmap_671155201_671414401_4FGL_J0051.5-4220_daily_bin1666.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=12.8793 yref=-42.3455 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 1.51
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405101/ft1_filtered_4FGL_J0051.5-4220_daily_bin1666.fits scfile=/scratch/kocevski/405101/ft2_4FGL_J0051.5-4220_daily_bin1666.fits outfile=/scratch/kocevski/405101/cmap_HighResolution_671155201_671414401_4FGL_J0051.5-4220_daily_bin1666.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=12.8793 yref=-42.3455 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 1.17
user 0.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/405101/ft1_filtered_4FGL_J0051.5-4220_daily_bin1666.fits evtable="EVENTS" scfile=/scratch/kocevski/405101/ft2_4FGL_J0051.5-4220_daily_bin1666.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/405101/Model_4FGL_J0051.5-4220_daily_bin1666.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/405101/ft1_filtered_4FGL_J0051.5-4220_daily_bin1666.fits.....................!
real 61.24
user 45.38
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/405101/ft1_filtered_4FGL_J0051.5-4220_daily_bin1666.fits', '/scratch/kocevski/405101/ft2_4FGL_J0051.5-4220_daily_bin1666.fits', expMap='/scratch/kocevski/405101/expmap_671155201_671414401_4FGL_J0051.5-4220_daily_bin1666.fits', expCube='/scratch/kocevski/405101/ltcube_671155201_671414401_4FGL_J0051.5-4220_daily_bin1666.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/405101/Model_4FGL_J0051.5-4220_daily_bin1666.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0051.5-4220'

4FGL J0051.5-4220
   Spectrum: LogParabola
165         norm:  8.835e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
166        alpha:  2.556e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
167         beta:  2.805e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
168           Eb:  3.304e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/405101/ft1_filtered_4FGL_J0051.5-4220_daily_bin1666.fits
Spacecraft file(s): /scratch/kocevski/405101/ft2_4FGL_J0051.5-4220_daily_bin1666.fits
Exposure map: /scratch/kocevski/405101/expmap_671155201_671414401_4FGL_J0051.5-4220_daily_bin1666.fits
Exposure cube: /scratch/kocevski/405101/ltcube_671155201_671414401_4FGL_J0051.5-4220_daily_bin1666.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/405101/Model_4FGL_J0051.5-4220_daily_bin1666.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) = 6279.67665655

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19732E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15100E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .37060       1.0000         .10000E-03   10000.    
     8 'Prefactor '    81.912       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11619E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    21.175       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.403       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0377       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.209       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .81090E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    11.299       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.025       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22026       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0403       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .56067       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6279.567     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     1996 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9923        .24525E-07** at limit **
   2  Prefactor     .10000E-03    44.634       -.32417E-06** at limit **
   3  Prefactor     .10000E-03    51.751        .62309E-06** at limit **
   4  Prefactor     .10000E-03    3.5490        .41501E-07** at limit **
   5  Prefactor     .10000E-03    9.1073        .17255E-06** at limit **
   6  Prefactor     .10000E-03    7.1461        .32619E-07** at limit **
   7  Prefactor     .38073        4.8824       -.13797E-05    .94845E-03
   8  Prefactor     81.864        24.463       -.11862E-05   -.45591E-03
   9  Prefactor     .10000E-03    5.9642        .31625E-06** at limit **
  10  norm          21.125        18.304       -.46746E-06   -.29454E-03
  11  Prefactor     20.398        21.644       -.90818E-08   -.19784E-04
  12  norm          1.0379        1.6724        .18897E-06    .54747E-03
  13  Prefactor     18.201        14.746        .84625E-07   -.27987E-04
  14  Prefactor     .10000E-03    .71205        .10819E-07** at limit **
  15  Prefactor     .10301E-03    15.147        .51135E-08** at limit **
  16  norm          11.304        10.596        .74806E-07    .19386E-04
  17  Prefactor     .10000E-03    6.3713        .12316E-07** at limit **
  18  Prefactor     13.021        4.4146        .41477E-07   -.31230E-04
  19  Prefactor     .21684        1.5561        .21384E-06   -.41477E-04
  20  Normalizat    1.0403        .13087       -.81027E-06   -.59272E-03
  21  Prefactor     .56061        .14798       -.61519E-08   -.35563E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.380727
  Prefactor  = 81.8638
  Prefactor  = 0.0001
  norm       = 21.1249
  Prefactor  = 20.3979
  norm       = 1.0379
  Prefactor  = 18.2012
  Prefactor  = 0.0001
  Prefactor  = 0.000103008
  norm       = 11.3037
  Prefactor  = 0.0001
  Prefactor  = 13.0208
  Prefactor  = 0.21684
  Normalizat = 1.04034
  Prefactor  = 0.560614
 **********
 **   18 **HESSE 
 **********

 FCN=   6279.567     FROM HESSE     STATUS=OK           327 CALLS     2323 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.9966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    45.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    52.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.5920        .14579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.1332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.3244        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .38073        12.891        .21765E-02   -1.5585    
   8  Prefactor     81.864        28.049        .22190E-03   -1.3896    
   9  Prefactor     .10000E-03    6.1247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          21.125        18.274        .87043E-04   -1.4788    
  11  Prefactor     20.398        21.644        .88673E-04   -1.4804    
  12  norm          1.0379        1.3894        .12787E-02   -1.5504    
  13  Prefactor     18.201        14.753        .93860E-04   -1.4854    
  14  Prefactor     .10000E-03    .72261        .65290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10301E-03    23.556        .80009E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.304        10.587        .11918E-03   -1.5035    
  17  Prefactor     .10000E-03    6.3911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.021        4.4190        .94053E-04   -1.4986    
  19  Prefactor     .21684        6.4430        .18894E-02   -1.5615    
  20  Normalizat    1.0403        .15594        .18189E-03   -.91691    
  21  Prefactor     .56061        .17415        .27857E-03   -1.0927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79504e-08
Minuit parameter uncertainties:
  1  5.46066e-06
  2  8.5311e-05
  3  0.000378106
  4  5.92103e-06
  5  4.11401e-05
  6  2.04764e-05
  7  4.43125
  8  28.0531
  9  4.90123e-05
  10  18.2791
  11  21.6527
  12  1.3894
  13  14.7556
  14  1.06198e-06
  15  0.016841
  16  10.5887
  17  3.67248e-06
  18  4.41907
  19  2.36372
  20  0.156011
  21  0.174322
Done.

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

Extracting fit parameters...

4FGL J0051.5-4220
   Spectrum: LogParabola
165         norm:  2.112e+01  1.828e+01  1.000e-04  1.000e+04 ( 1.000e-12)
166        alpha:  2.556e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
167         beta:  2.805e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
168           Eb:  3.304e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  5.606e-01  1.743e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  1.040e+00  1.560e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.27
Ra Dec: 12.879 -42.346
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 2.40e-08 +/- 2.07e-08
Energy Flux (Fixed Index): 5.70e-06 +/- 4.93e-06

TS (Fixed Index): 2.27
Ra Dec: 12.879 -42.346
Photon Flux Upper Limit: 7.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.72e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/405101/likelihoodResults_671155201_671414401_4FGL_J0051.5-4220_daily_bin1666.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) = 6279.39364874
delta logL = 0.173373988288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6279.38420997
delta logL = 0.182812764122

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6279.384     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      217 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 16.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.633        18.864       -.34869E-05   -.23174E-03
   2  alpha         1.9009        1.0130       -.55528E-04    .15406E-04
   3  Normalizat    1.0512        .12870        .73597E-06    .13426E-03
   4  Prefactor     .55208        .14824       -.50643E-06    .98432E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.6332
  alpha      = 1.90085
  Normalizat = 1.05119
  Prefactor  = 0.552082
 **********
 **   18 **HESSE 
 **********

 FCN=   6279.384     FROM HESSE     STATUS=OK            29 CALLS      246 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.633        18.446        .92774E-04   -1.4844    
   2  alpha         1.9009        .98911        .26368E-01   -.24202    
   3  Normalizat    1.0512        .15060        .18108E-03   -.91335    
   4  Prefactor     .55208        .17340        .28050E-03   -1.0964    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.42394e-11
Minuit parameter uncertainties:
  1  18.4514
  2  1.01876
  3  0.150661
  4  0.17357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405101': 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) = 6279.38420991
delta logL = 0.182812824813

Extracting fit parameters...

4FGL J0051.5-4220
   Spectrum: LogParabola
165         norm:  1.863e+01  1.845e+01  1.000e-04  1.000e+04 ( 1.000e-12)
166        alpha:  1.901e+00  1.019e+00  0.000e+00  5.000e+00 ( 1.000e+00)
167         beta:  2.805e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
168           Eb:  3.304e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  5.521e-01  1.736e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  1.051e+00  1.507e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.64
Ra Dec: 12.879 -42.346
Photon Index (Free Index): 1.90 +/- 1.02
Photon Flux (Free Index): 1.61e-08 +/- 1.84e-08
Energy Flux (Free Index): 5.82e-06 +/- 5.08e-06

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/405101/cmap_HighResolution_671155201_671414401_4FGL_J0051.5-4220_daily_bin1666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.72e-05', comment='SUCCESS', photon_flux='2.40e-08', energy_flux2='5.82e-06', photon_flux_error='2.07e-08', dlogl='1.83e-01', energy_flux='5.70e-06', photon_flux2='1.61e-08', job_status='DONE', time_completed='2022-04-12 00:17:18.107490', photon_index_error2='1.02', photon_index2='1.90', ts='2.27', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', photon_flux_upper_limit='7.25e-08', energy_flux_error2='5.08e-06', EG='1.04', time_epoch_completed='1649747838.11', return_code='0', job_id='405101', GAL2='0.55', EG2='1.05', return_code2='0', energy_flux_error='4.93e-06', photon_flux_error2='1.84e-08', ts2='2.64', photon_index='2.56' WHERE bin_id='1666' AND source_name='4FGL J0051.5-4220' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Apr 12 00:17:18 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 405101: <4FGL_J0051.5-4220_daily_bin1666> in cluster <slac> Done

Job <4FGL_J0051.5-4220_daily_bin1666> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Apr 12 00:05:13 2022
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 12 00:05:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 12 00:05:15 2022
Terminated at Tue Apr 12 00:17:18 2022
Results reported at Tue Apr 12 00:17:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0051.5-4220_daily_bin1666 12.8793 -42.3455 671155201 671414401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0051.5-4220 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   642.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             317.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            725 sec.

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

