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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin1745
RA = 192.084, Dec = 58.3432
tmin = 691632001, tmax = 691891201
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='645416', job_status='RUN', time_executed='2022-12-05 00:37:22.901583', time_epoch_executed='1670229442.9' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/645416

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/645416/ft1_4FGL_J1248.3+5820_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/645416/ft2_4FGL_J1248.3+5820_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/645416/ft1_4FGL_J1248.3+5820_daily_bin1745.fits outfile=/scratch/kocevski/645416/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin1745.fits ra=192.084 dec=58.3432 rad=12.0 tmin=691632001.0 tmax=691891201.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.35
user 2.15
sys 0.18

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

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

Number of photons that the gtmktime cut: 795

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/645416/ft1_filtered_4FGL_J1248.3+5820_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/645416/ft2_4FGL_J1248.3+5820_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/645416/ltcube_691632001_691891201_4FGL_J1248.3+5820_daily_bin1745.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/645416/ft2_4FGL_J1248.3+5820_daily_bin1745.fits
.....................!
real 12.30
user 11.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/645416/ft1_filtered_4FGL_J1248.3+5820_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/645416/ft2_4FGL_J1248.3+5820_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/645416/ltcube_691632001_691891201_4FGL_J1248.3+5820_daily_bin1745.fits outfile=/scratch/kocevski/645416/expmap_691632001_691891201_4FGL_J1248.3+5820_daily_bin1745.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/645416/ltcube_691632001_691891201_4FGL_J1248.3+5820_daily_bin1745.fits
.....................!
real 190.47
user 184.71
sys 5.42

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/645416/ft1_filtered_4FGL_J1248.3+5820_daily_bin1745.fits scfile=/scratch/kocevski/645416/ft2_4FGL_J1248.3+5820_daily_bin1745.fits outfile=/scratch/kocevski/645416/cmap_691632001_691891201_4FGL_J1248.3+5820_daily_bin1745.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/645416/ft1_filtered_4FGL_J1248.3+5820_daily_bin1745.fits scfile=/scratch/kocevski/645416/ft2_4FGL_J1248.3+5820_daily_bin1745.fits outfile=/scratch/kocevski/645416/cmap_HighResolution_691632001_691891201_4FGL_J1248.3+5820_daily_bin1745.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7620       1.0000          .0000       .10000E+07
     2 'Prefactor '    4.0920       1.0000          .0000       .10000E+07
     3 'norm      '    .32550E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    6.3118       1.0000          .0000       .10000E+07
     5 'norm      '    .14055E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.9997       1.0000          .0000       .10000E+07
     7 'Prefactor '    .12587E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .51984E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .82224E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .81557E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .70039       1.0000          .0000       .10000E+07
    12 'Prefactor '    .26300E-04   1.0000          .0000       .10000E+07
    13 'norm      '    5.3914       1.0000          .0000       .10000E+07
    14 'Prefactor '    13.761       1.0000          .0000       .10000E+07
    15 'norm      '    .21699E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    .30496E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.4924       1.0000          .0000       .10000E+07
    18 'norm      '    .52408       1.0000          .0000       .10000E+07
    19 'Prefactor '    .10045E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    43.085       1.0000          .0000       .10000E+07
    21 'norm      '    .52178       1.0000          .0000       .10000E+07
    22 'Prefactor '    65.535       1.0000          .0000       .10000E+07
    23 'Prefactor '    .69343E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .11981       1.0000          .0000       .10000E+07
    25 'Prefactor '    37.496       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0067       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2345       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=   8635.048     FROM MIGRAD    STATUS=CONVERGED    203 CALLS     2448 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7322        7.8621        .55593E-06    .63616E-01
   2  Prefactor     4.5808        10.987        .16910E-06   -.78471E-01
   3  norm          .42188E-08    2.9492       -.19426E-06** at limit **
   4  Prefactor     6.2989        4.2630        .64224E-07    .96900E-03
   5  norm           .0000        1.1370        .14983E-06** at limit **
   6  Prefactor     8.0138        6.4132       -.77052E-07    .11847E-02
   7  Prefactor     .17097E-07    6.6708       -.63307E-07** at limit **
   8  norm          .63177E-01    11.566       -.18078E-06** at limit **
   9  Prefactor     .17264E-07    7.9347       -.14569E-06** at limit **
  10  norm          .55511E-10    2.2189        .12922E-06** at limit **
  11  Prefactor     .53733        13.226        .11052E-06    .81862E-02
  12  Prefactor     .43299E-08    2.8971        .54968E-07** at limit **
  13  norm          5.3910        2.0715        .28042E-07   -.19530E-02
  14  Prefactor     13.806        2.5167       -.31597E-07    .64656E-01
  15  norm           .0000        .61094       -.60918E-07** at limit **
  16  Prefactor     .50515E-08    13.121        .12874E-06** at limit **
  17  Prefactor     5.4934        6.8331       -.75524E-07    .39364E-02
  18  norm          .52095        1.4398        .73383E-07    .34652E-03
  19  Prefactor     .16975E-06    22.419        .59829E-07** at limit **
  20  Prefactor     43.897        29.374        .55771E-07    .13773    
  21  norm          .51039        3.2007       -.79339E-07    .60156E-03
  22  Prefactor     67.000        55.140        .54003E-06   -.40165E-01
  23  Prefactor     .44409E-08    6.7324        .16304E-06** at limit **
  24  norm          .10957        27.773       -.27189E-05** at limit **
  25  Prefactor     37.638        8.4661        .33827E-08   -.11080    
  26  Normalizat    1.0050        .17396       -.29494E-05   -.33495E-04
  27  Prefactor     1.2354        .21170        .16328E-05    .29215E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.73218
  Prefactor  = 4.5808
  norm       = 4.21885e-09
  Prefactor  = 6.29888
  norm       = 0
  Prefactor  = 8.01376
  Prefactor  = 1.70974e-08
  norm       = 0.0631773
  Prefactor  = 1.7264e-08
  norm       = 5.55112e-11
  Prefactor  = 0.537329
  Prefactor  = 4.32987e-09
  norm       = 5.39101
  Prefactor  = 13.806
  norm       = 0
  Prefactor  = 5.05151e-09
  Prefactor  = 5.49342
  norm       = 0.520947
  Prefactor  = 1.69753e-07
  Prefactor  = 43.897
  norm       = 0.510387
  Prefactor  = 67.0002
  Prefactor  = 4.44089e-09
  norm       = 0.109566
  Prefactor  = 37.6384
  Normalizat = 1.00501
  Prefactor  = 1.23538
 **********
 **   18 **HESSE 
 **********

 FCN=   8635.048     FROM HESSE     STATUS=OK           560 CALLS     3008 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7322        8.5629        .33838E-03   -1.5649    
   2  Prefactor     4.5808        38.030        .49814E-03   -1.5665    
   3  norm          .42188E-08    2.9607        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.2989        4.2670        .39930E-03   -1.5658    
   5  norm           .0000        1.1416        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.0138        6.4217        .35426E-03   -1.5651    
   7  Prefactor     .17097E-07    6.7306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .63177E-01    .72766        .52529E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .17264E-07    7.9815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55511E-10    2.2176        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .53733        95.807        .60677E-03   -1.5693    
  12  Prefactor     .43299E-08    2.9013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.3910        2.0739        .43255E-03   -1.5662    
  14  Prefactor     13.806        14.131        .26975E-03   -1.5634    
  15  norm           .0000        .60723        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .50515E-08    13.119        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.4934        6.8466        .42849E-03   -1.5661    
  18  norm          .52095        1.5408        .41813E-02   -1.5694    
  19  Prefactor     .16975E-06    22.563        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     43.897        36.297        .15236E-03   -1.5575    
  21  norm          .51039        3.2004        .76548E-03   -1.5694    
  22  Prefactor     67.000        56.555        .12353E-03   -1.5544    
  23  Prefactor     .44409E-08    6.5795        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10957        1.5248        .80780E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     37.638        27.996        .16332E-03   -1.5585    
  26  Normalizat    1.0050        .14727        .46250E-01   -.92863    
  27  Prefactor     1.2354        .17669        .61776E-01   -.85249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0481e-06
Minuit parameter uncertainties:
  1  8.56288
  2  26.3979
  3  0.00022378
  4  4.267
  5  3.88464e-06
  6  6.4217
  7  0.000678203
  8  0.428819
  9  0.000742018
  10  1.7216e-05
  11  14.3501
  12  0.000224711
  13  2.07393
  14  14.1314
  15  5.38683e-07
  16  0.000514468
  17  6.84659
  18  1.54085
  19  0.00391435
  20  36.2972
  21  2.55612
  22  56.555
  23  0.000341789
  24  0.817468
  25  27.9958
  26  0.147332
  27  0.176774
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  5.391e+00  2.074e+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.235e+00  1.768e-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.005e+00  1.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 27.39
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 4.76e-08 +/- 1.83e-08
Energy Flux (Fixed Index): 4.76e-05 +/- 1.83e-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) = 8635.04818498
delta logL = 1.20469630929e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8635.04818479
delta logL = 1.22411202028e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3910       1.0000          .0000       .10000E+07
     2 'alpha     '    1.8123       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0050       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2354       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=   8635.048     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      194 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3896        8.9663        .43257E-03   -.45781E-03
   2  alpha         1.8123        1.1290        .25112        .18701E-04
   3  Normalizat    1.0049        .15158        .46229E-01    .15210E-04
   4  Prefactor     1.2354        .18231        .61775E-01    .99365E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.38961
  alpha      = 1.81232
  Normalizat = 1.00493
  Prefactor  = 1.23543
 **********
 **   18 **HESSE 
 **********

 FCN=   8635.048     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3896        2.0869        .80021E-05   -1.5662    
   2  alpha         1.8123        .30089        .10008E-01   -.27866    
   3  Normalizat    1.0049        .16697        .23786E-03   -.92866    
   4  Prefactor     1.2354        .20993        .27322E-03   -.85248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.84753e-11
Minuit parameter uncertainties:
  1  2.0869
  2  0.301679
  3  0.167053
  4  0.210072
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/645416': 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) = 8635.04818451
delta logL = 1.25182523334e-05

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  5.390e+00  2.087e+00  0.000e+00  1.000e+06 ( 1.000e-12)
365        alpha:  1.812e+00  3.017e-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.235e+00  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.005e+00  1.671e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.38
Ra Dec: 192.084 58.343
Photon Index (Free Index): 1.81 +/- 0.30
Photon Flux (Free Index): 4.76e-08 +/- 2.30e-08
Energy Flux (Free Index): 4.75e-05 +/- 2.87e-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/645416/cmap_HighResolution_691632001_691891201_4FGL_J1248.3+5820_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.76e-08', energy_flux2='4.75e-05', photon_flux_error='1.83e-08', dlogl='1.25e-05', energy_flux='4.76e-05', photon_flux2='4.76e-08', job_status='DONE', time_completed='2022-12-05 00:50:52.453040', photon_index_error2='0.30', photon_index2='1.81', ts='27.39', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='2.87e-05', EG='1.01', time_epoch_completed='1670230252.45', return_code='0', job_id='645416', GAL2='1.24', EG2='1.00', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='2.30e-08', ts2='27.38', photon_index='1.81' WHERE bin_id='1745' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:50:52 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 645416: <4FGL_J1248.3+5820_daily_bin1745> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin1745> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Dec  5 00:35:21 2022
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:35:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:35:21 2022
Terminated at Mon Dec  5 00:50:53 2022
Results reported at Mon Dec  5 00:50:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin1745 192.084 58.3432 691632001 691891201 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 :                                   811.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            932 sec.

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

