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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin1747
RA = 192.084, Dec = 58.3432
tmin = 692150401, tmax = 692409601
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='800895', job_status='RUN', time_executed='2022-12-11 00:51:53.405167', time_epoch_executed='1670748713.41' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/800895

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/800895/ft1_4FGL_J1248.3+5820_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/800895/ft2_4FGL_J1248.3+5820_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/800895/ft1_4FGL_J1248.3+5820_daily_bin1747.fits outfile=/scratch/kocevski/800895/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin1747.fits ra=192.084 dec=58.3432 rad=12.0 tmin=692150401.0 tmax=692409601.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.03
user 3.78
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/800895/ft2_4FGL_J1248.3+5820_daily_bin1747.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/800895/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin1747.fits evtable="EVENTS" outfile="/scratch/kocevski/800895/ft1_filtered_4FGL_J1248.3+5820_daily_bin1747.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.33
sys 0.15

Number of photons that the gtmktime cut: 628

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/800895/ft1_filtered_4FGL_J1248.3+5820_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/800895/ft2_4FGL_J1248.3+5820_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/800895/ltcube_692150401_692409601_4FGL_J1248.3+5820_daily_bin1747.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/800895/ft2_4FGL_J1248.3+5820_daily_bin1747.fits
.....................!
real 12.55
user 12.15
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/800895/ft1_filtered_4FGL_J1248.3+5820_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/800895/ft2_4FGL_J1248.3+5820_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/800895/ltcube_692150401_692409601_4FGL_J1248.3+5820_daily_bin1747.fits outfile=/scratch/kocevski/800895/expmap_692150401_692409601_4FGL_J1248.3+5820_daily_bin1747.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/800895/ltcube_692150401_692409601_4FGL_J1248.3+5820_daily_bin1747.fits
.....................!
real 190.53
user 185.53
sys 4.48

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/800895/ft1_filtered_4FGL_J1248.3+5820_daily_bin1747.fits scfile=/scratch/kocevski/800895/ft2_4FGL_J1248.3+5820_daily_bin1747.fits outfile=/scratch/kocevski/800895/cmap_692150401_692409601_4FGL_J1248.3+5820_daily_bin1747.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/800895/ft1_filtered_4FGL_J1248.3+5820_daily_bin1747.fits scfile=/scratch/kocevski/800895/ft2_4FGL_J1248.3+5820_daily_bin1747.fits outfile=/scratch/kocevski/800895/cmap_HighResolution_692150401_692409601_4FGL_J1248.3+5820_daily_bin1747.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.55
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/800895/ft1_filtered_4FGL_J1248.3+5820_daily_bin1747.fits', '/scratch/kocevski/800895/ft2_4FGL_J1248.3+5820_daily_bin1747.fits', expMap='/scratch/kocevski/800895/expmap_692150401_692409601_4FGL_J1248.3+5820_daily_bin1747.fits', expCube='/scratch/kocevski/800895/ltcube_692150401_692409601_4FGL_J1248.3+5820_daily_bin1747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/800895/Model_4FGL_J1248.3+5820_daily_bin1747.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/800895/ft1_filtered_4FGL_J1248.3+5820_daily_bin1747.fits
Spacecraft file(s): /scratch/kocevski/800895/ft2_4FGL_J1248.3+5820_daily_bin1747.fits
Exposure map: /scratch/kocevski/800895/expmap_692150401_692409601_4FGL_J1248.3+5820_daily_bin1747.fits
Exposure cube: /scratch/kocevski/800895/ltcube_692150401_692409601_4FGL_J1248.3+5820_daily_bin1747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/800895/Model_4FGL_J1248.3+5820_daily_bin1747.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) = 6880.68632093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.077       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11785E-04   1.0000          .0000       .10000E+07
     3 'norm      '    .47594E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .32320E-04   1.0000          .0000       .10000E+07
     5 'norm      '    .58544       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.1101       1.0000          .0000       .10000E+07
     7 'Prefactor '    .59180E-06   1.0000          .0000       .10000E+07
     8 'norm      '    .11458E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    3.9536       1.0000          .0000       .10000E+07
    10 'norm      '    7.1601       1.0000          .0000       .10000E+07
    11 'Prefactor '    .38915E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .38162E-05   1.0000          .0000       .10000E+07
    13 'norm      '    3.9038       1.0000          .0000       .10000E+07
    14 'Prefactor '    3.8661       1.0000          .0000       .10000E+07
    15 'norm      '    1.4450       1.0000          .0000       .10000E+07
    16 'Prefactor '    .71392E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    3.7182       1.0000          .0000       .10000E+07
    18 'norm      '    7.0184       1.0000          .0000       .10000E+07
    19 'Prefactor '    .35132       1.0000          .0000       .10000E+07
    20 'Prefactor '    .20512E-01   1.0000          .0000       .10000E+07
    21 'norm      '    .97021E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    23.214       1.0000          .0000       .10000E+07
    23 'Prefactor '    2.4184       1.0000          .0000       .10000E+07
    24 'norm      '    2.6242       1.0000          .0000       .10000E+07
    25 'Prefactor '    45.839       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0218       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .88017       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=   6880.647     FROM MIGRAD    STATUS=CONVERGED    169 CALLS     2346 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.075        1.7300        .28422E-06    .40546E-01
   2  Prefactor      .0000        8.6621       -.33037E-06** at limit **
   3  norm          .37748E-07    4.6453       -.25026E-05** at limit **
   4  Prefactor      .0000        2.8532       -.65296E-06** at limit **
   5  norm          .60631        2.2105        .83147E-07    .70889E-03
   6  Prefactor     4.1092        4.5215       -.52729E-07    .22844E-04
   7  Prefactor     .45797E-07    4.6576        .16880E-05** at limit **
   8  norm           .0000        .55340        .17454E-07** at limit **
   9  Prefactor     3.9716        1.9425        .79038E-06   -.11631E-01
  10  norm          7.2273        7.7717       -.13922E-05   -.37374E-02
  11  Prefactor     .40068E-06    7.2205        .45317E-06** at limit **
  12  Prefactor     .22204E-09    1.9656       -.13938E-06** at limit **
  13  norm          3.9035        1.8687       -.12474E-07   -.23900E-02
  14  Prefactor     3.8700        7.4189       -.30870E-05    .19631E-01
  15  norm          1.4454        1.6234       -.31106E-06   -.75427E-02
  16  Prefactor     .37831E-06    7.5521       -.51039E-06** at limit **
  17  Prefactor     3.7183        6.5197        .59271E-07    .24313E-02
  18  norm          7.0357        4.1700       -.51749E-07   -.36413E-02
  19  Prefactor     .20672E-06    298.33        .38504E-05** at limit **
  20  Prefactor     .70499E-08    62.849       -.34832E-05** at limit **
  21  norm          .55511E-10    2.9135       -.26431E-06** at limit **
  22  Prefactor     24.363        46.380        .28446E-05   -.26676E-02
  23  Prefactor     2.4020        4.1138       -.25293E-06   -.18807E-02
  24  norm          2.6200        3.2255        .12581E-07    .51665E-03
  25  Prefactor     45.829        2.5140        .59420E-07    .14979E-01
  26  Normalizat    1.0212        .17437        .75593E-06   -.19556E-03
  27  Prefactor     .88040        .21128        .16120E-05   -.16589E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0749
  Prefactor  = 0
  norm       = 3.77476e-08
  Prefactor  = 0
  norm       = 0.60631
  Prefactor  = 4.10918
  Prefactor  = 4.57967e-08
  norm       = 0
  Prefactor  = 3.97164
  norm       = 7.22735
  Prefactor  = 4.00679e-07
  Prefactor  = 2.22045e-10
  norm       = 3.90345
  Prefactor  = 3.87005
  norm       = 1.44539
  Prefactor  = 3.78308e-07
  Prefactor  = 3.71826
  norm       = 7.03571
  Prefactor  = 2.06724e-07
  Prefactor  = 7.04992e-09
  norm       = 5.55112e-11
  Prefactor  = 24.3632
  Prefactor  = 2.40198
  norm       = 2.62003
  Prefactor  = 45.8287
  Normalizat = 1.02121
  Prefactor  = 0.880399
 **********
 **   18 **HESSE 
 **********

 FCN=   6880.647     FROM HESSE     STATUS=OK           542 CALLS     2888 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.075        7.8342        .23529E-03   -1.5623    
   2  Prefactor      .0000        8.6682        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .37748E-07    5.6301        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        2.8414        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .60631        2.2497        .70542E-03   -1.5692    
   6  Prefactor     4.1092        4.5522        .49701E-03   -1.5667    
   7  Prefactor     .45797E-07    5.5789        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .55131        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.9716        18.320        .50707E-03   -1.5668    
  10  norm          7.2273        7.9351        .37463E-03   -1.5654    
  11  Prefactor     .40068E-06    14.464        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .22204E-09    1.9649        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.9035        1.8701        .51040E-03   -1.5668    
  14  Prefactor     3.8700        12.944        .51297E-03   -1.5669    
  15  norm          1.4454        1.6468        .89656E-03   -1.5684    
  16  Prefactor     .37831E-06    14.439        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.7183        6.5724        .52345E-03   -1.5669    
  18  norm          7.0357        4.1845        .37844E-03   -1.5655    
  19  Prefactor     .20672E-06    294.98        .95359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .70499E-08    61.814        .17003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .55511E-10    2.9065        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     24.363        46.360        .20760E-03   -1.5609    
  23  Prefactor     2.4020        4.1657        .65793E-03   -1.5677    
  24  norm          2.6200        3.2460        .62930E-03   -1.5676    
  25  Prefactor     45.829        32.419        .14771E-03   -1.5573    
  26  Normalizat    1.0212        .15083        .43093E-01   -.92323    
  27  Prefactor     .88040        .18107        .44752E-01   -.96829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10515e-07
Minuit parameter uncertainties:
  1  7.83416
  2  3.08025e-05
  3  0.000922305
  4  1.02258e-05
  5  2.24969
  6  4.55216
  7  0.00101111
  8  3.90725e-06
  9  17.0599
  10  7.93506
  11  0.00481494
  12  4.39397e-05
  13  1.87009
  14  12.9446
  15  1.64679
  16  0.0046743
  17  6.57244
  18  4.1845
  19  0.0156195
  20  0.00132214
  21  3.10889e-05
  22  46.3609
  23  4.16573
  24  3.24605
  25  32.4189
  26  0.150894
  27  0.181192
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  3.903e+00  1.870e+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:  8.804e-01  1.812e-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:  1.021e+00  1.509e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.52
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 3.44e-08 +/- 1.65e-08
Energy Flux (Fixed Index): 3.45e-05 +/- 1.65e-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) = 6880.39698707
delta logL = 0.249573973814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6880.37411455
delta logL = 0.272446490775

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8000       1.0000          .0000       .10000E+07
     2 'alpha     '    1.5506       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0293       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87692       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=   6880.374     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      199 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7999        1.9784        .51757E-03    .57317E-03
   2  alpha         1.5504        .32522        .26472       -.15399E-04
   3  Normalizat    1.0293        .14463        .42236E-01   -.53546E-04
   4  Prefactor     .87692        .17973        .44710E-01    .92267E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.79985
  alpha      = 1.55042
  Normalizat = 1.02927
  Prefactor  = 0.876916
 **********
 **   18 **HESSE 
 **********

 FCN=   6880.374     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7999        1.9554        .78117E-05   -1.5669    
   2  alpha         1.5504        .34647        .10832E-01   -.38961    
   3  Normalizat    1.0293        .16877        .21140E-03   -.92056    
   4  Prefactor     .87692        .20988        .28145E-03   -.96952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87095e-10
Minuit parameter uncertainties:
  1  1.95537
  2  0.347776
  3  0.168862
  4  0.210074
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/800895': 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) = 6880.37411443
delta logL = 0.272446612964

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  3.800e+00  1.955e+00  0.000e+00  1.000e+06 ( 1.000e-12)
365        alpha:  1.550e+00  3.478e-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:  8.769e-01  2.101e-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:  1.029e+00  1.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.06
Ra Dec: 192.084 58.343
Photon Index (Free Index): 1.55 +/- 0.35
Photon Flux (Free Index): 2.59e-08 +/- 1.66e-08
Energy Flux (Free Index): 5.32e-05 +/- 4.21e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/800895/cmap_HighResolution_692150401_692409601_4FGL_J1248.3+5820_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.44e-08', energy_flux2='5.32e-05', photon_flux_error='1.65e-08', dlogl='2.72e-01', energy_flux='3.45e-05', photon_flux2='2.59e-08', job_status='DONE', time_completed='2022-12-11 01:03:42.024893', photon_index_error2='0.35', photon_index2='1.55', ts='22.52', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='4.21e-05', EG='1.02', time_epoch_completed='1670749422.02', return_code='0', job_id='800895', GAL2='0.88', EG2='1.03', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='1.66e-08', ts2='23.06', photon_index='1.81' WHERE bin_id='1747' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 01:03:42 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 800895: <4FGL_J1248.3+5820_daily_bin1747> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin1747> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Dec 11 00:50:26 2022
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 00:50:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 00:50:27 2022
Terminated at Sun Dec 11 01:03:42 2022
Results reported at Sun Dec 11 01:03:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin1747 192.084 58.3432 692150401 692409601 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 :                                   710.47 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             303.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            796 sec.

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

