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 140 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin1780
RA = 192.084, Dec = 58.3432
tmin = 700704001, tmax = 700963201
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='62617', job_status='RUN', time_executed='2023-03-20 00:52:47.794030', time_epoch_executed='1679298767.79' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62617

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62617/ft1_4FGL_J1248.3+5820_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62617/ft2_4FGL_J1248.3+5820_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62617/ft1_4FGL_J1248.3+5820_daily_bin1780.fits outfile=/scratch/kocevski/62617/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin1780.fits ra=192.084 dec=58.3432 rad=12.0 tmin=700704001.0 tmax=700963201.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 4.15
user 3.95
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/62617/ft2_4FGL_J1248.3+5820_daily_bin1780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/62617/ft2_4FGL_J1248.3+5820_daily_bin1780.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/62617/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/62617/ft1_filtered_4FGL_J1248.3+5820_daily_bin1780.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.48
user 0.31
sys 0.16

Number of photons that the gtmktime cut: 872

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62617/ft1_filtered_4FGL_J1248.3+5820_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/62617/ft2_4FGL_J1248.3+5820_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/62617/ltcube_700704001_700963201_4FGL_J1248.3+5820_daily_bin1780.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/62617/ft2_4FGL_J1248.3+5820_daily_bin1780.fits
.....................!
real 11.85
user 11.52
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62617/ft1_filtered_4FGL_J1248.3+5820_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/62617/ft2_4FGL_J1248.3+5820_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/62617/ltcube_700704001_700963201_4FGL_J1248.3+5820_daily_bin1780.fits outfile=/scratch/kocevski/62617/expmap_700704001_700963201_4FGL_J1248.3+5820_daily_bin1780.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/62617/ltcube_700704001_700963201_4FGL_J1248.3+5820_daily_bin1780.fits
.....................!
real 190.57
user 184.95
sys 5.30

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

Setting source of interest to:
4FGL J1248.3+5820 @ 192.084 58.3432

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/62617/ft1_filtered_4FGL_J1248.3+5820_daily_bin1780.fits scfile=/scratch/kocevski/62617/ft2_4FGL_J1248.3+5820_daily_bin1780.fits outfile=/scratch/kocevski/62617/cmap_700704001_700963201_4FGL_J1248.3+5820_daily_bin1780.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=192.084 yref=58.3432 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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62617/ft1_filtered_4FGL_J1248.3+5820_daily_bin1780.fits scfile=/scratch/kocevski/62617/ft2_4FGL_J1248.3+5820_daily_bin1780.fits outfile=/scratch/kocevski/62617/cmap_HighResolution_700704001_700963201_4FGL_J1248.3+5820_daily_bin1780.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=192.084 yref=58.3432 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.54
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/62617/ft1_filtered_4FGL_J1248.3+5820_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/62617/ft2_4FGL_J1248.3+5820_daily_bin1780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/62617/Model_4FGL_J1248.3+5820_daily_bin1780.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/62617/ft1_filtered_4FGL_J1248.3+5820_daily_bin1780.fits.....................!
real 79.38
user 78.08
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/62617/ft1_filtered_4FGL_J1248.3+5820_daily_bin1780.fits', '/scratch/kocevski/62617/ft2_4FGL_J1248.3+5820_daily_bin1780.fits', expMap='/scratch/kocevski/62617/expmap_700704001_700963201_4FGL_J1248.3+5820_daily_bin1780.fits', expCube='/scratch/kocevski/62617/ltcube_700704001_700963201_4FGL_J1248.3+5820_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/62617/Model_4FGL_J1248.3+5820_daily_bin1780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1248.3+5820'

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  3.611e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
365        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
366         beta:  4.589e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/62617/ft1_filtered_4FGL_J1248.3+5820_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/62617/ft2_4FGL_J1248.3+5820_daily_bin1780.fits
Exposure map: /scratch/kocevski/62617/expmap_700704001_700963201_4FGL_J1248.3+5820_daily_bin1780.fits
Exposure cube: /scratch/kocevski/62617/ltcube_700704001_700963201_4FGL_J1248.3+5820_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/62617/Model_4FGL_J1248.3+5820_daily_bin1780.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) = 9531.61147399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62403E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    32.917       1.0000          .0000       .10000E+07
     3 'norm      '    .17483E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .66053E-04   1.0000          .0000       .10000E+07
     5 'norm      '    .11195E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.3024       1.0000          .0000       .10000E+07
     7 'Prefactor '    .81559       1.0000          .0000       .10000E+07
     8 'norm      '    .41510E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .66897E-05   1.0000          .0000       .10000E+07
    10 'norm      '    .17397E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    9.6678       1.0000          .0000       .10000E+07
    12 'Prefactor '    .19850E-05   1.0000          .0000       .10000E+07
    13 'norm      '    2.5936       1.0000          .0000       .10000E+07
    14 'Prefactor '    8.9239       1.0000          .0000       .10000E+07
    15 'norm      '    4.0114       1.0000          .0000       .10000E+07
    16 'Prefactor '    .75117E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .16079E-04   1.0000          .0000       .10000E+07
    18 'norm      '    .64178E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .29587E-07   1.0000          .0000       .10000E+07
    20 'Prefactor '    21.721       1.0000          .0000       .10000E+07
    21 'norm      '    .28694E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .18615E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .21751E-05   1.0000          .0000       .10000E+07
    24 'norm      '    .10721E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    .37616E-03   1.0000          .0000       .10000E+07
    26 'Normalizat'    .99157       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0452       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9531.575     FROM MIGRAD    STATUS=CONVERGED    178 CALLS     1873 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11282E-05    6.6269       -.32681E-06** at limit **
   2  Prefactor     33.792        18.337        .14243E-06   -.93200E-01
   3  norm          .22204E-09    2.9591        .99659E-07** at limit **
   4  Prefactor     .88818E-09    3.0507       -.57437E-07** at limit **
   5  norm          .33307E-09    3.3948        .39951E-07** at limit **
   6  Prefactor     7.2900        4.9403        .38334E-07    .18332E-02
   7  Prefactor     .57845        3.5029       -.77352E-07    .19596E-01
   8  norm           .0000        .80844       -.19400E-07** at limit **
   9  Prefactor     .30531E-08    11.270       -.20685E-06** at limit **
  10  norm          .11964E-05    4.3157       -.17386E-06** at limit **
  11  Prefactor     9.6049        3.1238        .45737E-08   -.13440E-01
  12  Prefactor     .11102E-09    1.2663        .98051E-07** at limit **
  13  norm          2.5979        1.3640       -.92409E-08   -.22082E-02
  14  Prefactor     8.9802        4.0997        .16057E-07    .80815E-01
  15  norm          4.0102        1.8278       -.10278E-07   -.21677E-02
  16  Prefactor     .14261E-06    7.8670       -.12416E-06** at limit **
  17  Prefactor     .55511E-10    3.1352        .19674E-07** at limit **
  18  norm          .22204E-09    1.8070       -.12470E-06** at limit **
  19  Prefactor     .37198E-06    5.8772       -.10720E-06** at limit **
  20  Prefactor     23.677        39.495        .16453E-06   -.20359E-01
  21  norm           .0000        2.1229        .45568E-07** at limit **
  22  Prefactor     .90877E-06    43.277       -.23436E-06** at limit **
  23  Prefactor      .0000        .73454       -.35735E-07** at limit **
  24  norm          .37187E-06    2.4241       -.26848E-07** at limit **
  25  Prefactor     .28311E-08    7.4094       -.69092E-07** at limit **
  26  Normalizat    .99017        .14347       -.11128E-05    .21351E-03
  27  Prefactor     1.0460        .17750        .19617E-05    .26790E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.12815e-06
  Prefactor  = 33.7917
  norm       = 2.22045e-10
  Prefactor  = 8.88178e-10
  norm       = 3.33067e-10
  Prefactor  = 7.29004
  Prefactor  = 0.578453
  norm       = 0
  Prefactor  = 3.05311e-09
  norm       = 1.19643e-06
  Prefactor  = 9.60495
  Prefactor  = 1.11022e-10
  norm       = 2.59789
  Prefactor  = 8.98018
  norm       = 4.01018
  Prefactor  = 1.42608e-07
  Prefactor  = 5.55112e-11
  norm       = 2.22045e-10
  Prefactor  = 3.7198e-07
  Prefactor  = 23.677
  norm       = 0
  Prefactor  = 9.08773e-07
  Prefactor  = 0
  norm       = 3.71869e-07
  Prefactor  = 2.83107e-09
  Normalizat = 0.990173
  Prefactor  = 1.04599
 **********
 **   18 **HESSE 
 **********

 FCN=   9531.575     FROM HESSE     STATUS=OK           536 CALLS     2409 TOTAL
                     EDM=   .67E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11282E-05    16.323        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     33.792        22.935        .17432E-03   -1.5592    
   3  norm          .22204E-09    2.9611        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .88818E-09    3.0337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .33307E-09    3.3737        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.2900        5.2306        .37093E-03   -1.5654    
   7  Prefactor     .57845        52.600        .51780E-03   -1.5693    
   8  norm           .0000        .80266        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .30531E-08    14.226        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .11964E-05    9.3263        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.6049        16.437        .32205E-03   -1.5646    
  12  Prefactor     .11102E-09    1.2641        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.5979        1.3633        .63330E-03   -1.5676    
  14  Prefactor     8.9802        12.388        .33528E-03   -1.5648    
  15  norm          4.0102        1.8267        .50328E-03   -1.5668    
  16  Prefactor     .14261E-06    10.399        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    3.1334        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .22204E-09    1.7888        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .37198E-06    8.2384        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.677        40.586        .21462E-03   -1.5611    
  21  norm           .0000        2.1116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .90877E-06    44.802        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        .73276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .37187E-06    11.753        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .28311E-08    7.7033        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .99017        .12095        .46061E-01   -.93360    
  27  Prefactor     1.0460        .14857        .59635E-01   -.91212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.66255e-07
Minuit parameter uncertainties:
  1  0.00858262
  2  22.9347
  3  5.36736e-05
  4  0.000103024
  5  6.91474e-05
  6  5.23056
  7  11.0322
  8  3.59458e-06
  9  0.000417725
  10  0.00668079
  11  16.4375
  12  2.06581e-05
  13  1.36327
  14  12.3881
  15  1.82671
  16  0.00243567
  17  2.9844e-05
  18  3.89632e-05
  19  0.00350127
  20  40.5862
  21  1.18449e-05
  22  0.0127615
  23  6.18882e-06
  24  0.00418108
  25  0.00029633
  26  0.120981
  27  0.148624
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  2.598e+00  1.363e+00  0.000e+00  1.000e+06 ( 1.000e-12)
365        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
366         beta:  4.589e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
695    Prefactor:  1.046e+00  1.486e-01  0.000e+00  1.000e+01 ( 1.000e+00)
696        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
697        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
694   Normalization:  9.902e-01  1.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.83
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 2.29e-08 +/- 1.20e-08
Energy Flux (Fixed Index): 2.29e-05 +/- 1.20e-05

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) = 9531.56868145
delta logL = 0.00622990430384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9531.5685795
delta logL = 0.00633184862818

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5972       1.0000          .0000       .10000E+07
     2 'alpha     '    1.8599       1.0000          .0000       5.0000    
     3 'Normalizat'    .98867       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0468       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9531.569     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      196 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5967        31.063        .63283E-03    .38476E-03
   2  alpha         1.8599        3.2174        .38494        .99459E-05
   3  Normalizat    .98867        .91294E-01    .46025E-01    .12968E-03
   4  Prefactor     1.0468        .74629E-01    .59613E-01    .10522E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.59672
  alpha      = 1.8599
  Normalizat = 0.988665
  Prefactor  = 1.04678
 **********
 **   18 **HESSE 
 **********

 FCN=   9531.569     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5967        1.3535        .79448E-05   -1.5676    
   2  alpha         1.8599        .43574        .13465E-01   -.25892    
   3  Normalizat    .98867        .14223        .21666E-03   -.93411    
   4  Prefactor     1.0468        .17744        .26363E-03   -.91186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.14007e-12
Minuit parameter uncertainties:
  1  1.35353
  2  0.438132
  3  0.142286
  4  0.177535
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62617': 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) = 9531.56857945
delta logL = 0.00633190445114

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  2.597e+00  1.354e+00  0.000e+00  1.000e+06 ( 1.000e-12)
365        alpha:  1.860e+00  4.381e-01  0.000e+00  5.000e+00 ( 1.000e+00)
366         beta:  4.589e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
695    Prefactor:  1.047e+00  1.775e-01  0.000e+00  1.000e+01 ( 1.000e+00)
696        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
697        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
694   Normalization:  9.887e-01  1.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.83
Ra Dec: 192.084 58.343
Photon Index (Free Index): 1.86 +/- 0.44
Photon Flux (Free Index): 2.43e-08 +/- 1.76e-08
Energy Flux (Free Index): 2.15e-05 +/- 1.65e-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/62617/cmap_HighResolution_700704001_700963201_4FGL_J1248.3+5820_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.29e-08', energy_flux2='2.15e-05', photon_flux_error='1.20e-08', dlogl='6.33e-03', energy_flux='2.29e-05', photon_flux2='2.43e-08', job_status='DONE', time_completed='2023-03-20 01:05:49.009274', photon_index_error2='0.44', photon_index2='1.86', ts='10.83', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.65e-05', EG='0.99', time_epoch_completed='1679299549.01', return_code='0', job_id='62617', GAL2='1.05', EG2='0.99', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='1.76e-08', ts2='10.83', photon_index='1.81' WHERE bin_id='1780' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 01:05:49 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 62617: <4FGL_J1248.3+5820_daily_bin1780> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin1780> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Mar 20 00:50:19 2023
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 00:50:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 00:50:19 2023
Terminated at Mon Mar 20 01:05:49 2023
Results reported at Mon Mar 20 01:05:49 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin1780 192.084 58.3432 700704001 700963201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1248.3+5820 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   783.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            930 sec.

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

