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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin1776
RA = 192.084, Dec = 58.3432
tmin = 699667201, tmax = 699926401
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='833774', job_status='RUN', time_executed='2023-03-08 00:42:48.740441', time_epoch_executed='1678264968.74' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833774

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833774/ft1_4FGL_J1248.3+5820_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833774/ft2_4FGL_J1248.3+5820_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833774/ft1_4FGL_J1248.3+5820_daily_bin1776.fits outfile=/scratch/kocevski/833774/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin1776.fits ra=192.084 dec=58.3432 rad=12.0 tmin=699667201.0 tmax=699926401.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 3.93
user 3.68
sys 0.22

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

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

Number of photons that the gtmktime cut: 625

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833774/ft1_filtered_4FGL_J1248.3+5820_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/833774/ft2_4FGL_J1248.3+5820_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/833774/ltcube_699667201_699926401_4FGL_J1248.3+5820_daily_bin1776.fits outfile=/scratch/kocevski/833774/expmap_699667201_699926401_4FGL_J1248.3+5820_daily_bin1776.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/833774/ltcube_699667201_699926401_4FGL_J1248.3+5820_daily_bin1776.fits
.....................!
real 190.79
user 184.86
sys 5.29

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/833774/ft1_filtered_4FGL_J1248.3+5820_daily_bin1776.fits scfile=/scratch/kocevski/833774/ft2_4FGL_J1248.3+5820_daily_bin1776.fits outfile=/scratch/kocevski/833774/cmap_699667201_699926401_4FGL_J1248.3+5820_daily_bin1776.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833774/ft1_filtered_4FGL_J1248.3+5820_daily_bin1776.fits scfile=/scratch/kocevski/833774/ft2_4FGL_J1248.3+5820_daily_bin1776.fits outfile=/scratch/kocevski/833774/cmap_HighResolution_699667201_699926401_4FGL_J1248.3+5820_daily_bin1776.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8913       1.0000          .0000       .10000E+07
     2 'Prefactor '    30.495       1.0000          .0000       .10000E+07
     3 'norm      '    3.5011       1.0000          .0000       .10000E+07
     4 'Prefactor '    .30653E-03   1.0000          .0000       .10000E+07
     5 'norm      '    1.8794       1.0000          .0000       .10000E+07
     6 'Prefactor '    .50115E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    9.8095       1.0000          .0000       .10000E+07
     8 'norm      '    2.4888       1.0000          .0000       .10000E+07
     9 'Prefactor '    10.811       1.0000          .0000       .10000E+07
    10 'norm      '    .50695E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .34039E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .13405E-03   1.0000          .0000       .10000E+07
    13 'norm      '    1.6211       1.0000          .0000       .10000E+07
    14 'Prefactor '    .97848E-02   1.0000          .0000       .10000E+07
    15 'norm      '    1.6439       1.0000          .0000       .10000E+07
    16 'Prefactor '    .82895E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .25507E-02   1.0000          .0000       .10000E+07
    18 'norm      '    .18766E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    36.994       1.0000          .0000       .10000E+07
    20 'Prefactor '    108.20       1.0000          .0000       .10000E+07
    21 'norm      '    .16246E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    56.561       1.0000          .0000       .10000E+07
    23 'Prefactor '    .10781       1.0000          .0000       .10000E+07
    24 'norm      '    .32485E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    1.5981       1.0000          .0000       .10000E+07
    26 'Normalizat'    .88022       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2004       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=   6816.792     FROM MIGRAD    STATUS=CONVERGED    186 CALLS     2448 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9063        4.1642       -.10937E-06    .25792E-03
   2  Prefactor     30.690        9.5685       -.55727E-07    .30975E-01
   3  norm          3.4510        1.1594        .13399E-07    .91230E-03
   4  Prefactor     .55511E-10    3.8508       -.17595E-07** at limit **
   5  norm          1.9560        5.3262        .44612E-07   -.11710E-02
   6  Prefactor      .0000        4.1385       -.38865E-07** at limit **
   7  Prefactor     9.4183        23.889       -.21771E-06    .36928E-01
   8  norm          2.5032        1.8186        .36110E-07   -.54247E-03
   9  Prefactor     11.063        7.3297        .15678E-07    .26041E-01
  10  norm          .55511E-10    2.8274        .42230E-07** at limit **
  11  Prefactor     .16309E-06    17.606        .14804E-06** at limit **
  12  Prefactor      .0000        2.4018       -.11381E-06** at limit **
  13  norm          1.6253        1.4638        .83762E-07   -.22011E-03
  14  Prefactor     .19984E-08    10.263       -.13018E-06** at limit **
  15  norm          1.6471        1.4618        .35255E-07   -.56377E-03
  16  Prefactor     .73774E-07    14.434        .14605E-06** at limit **
  17  Prefactor     .27756E-09    6.9802       -.79878E-07** at limit **
  18  norm          .97145E-08    8.0519       -.20003E-06** at limit **
  19  Prefactor     39.443        26.005       -.10365E-06   -.13342    
  20  Prefactor     110.82        25.409       -.41050E-07    .59571E-01
  21  norm          .61062E-09    4.3919        .12070E-06** at limit **
  22  Prefactor     61.398        45.720       -.10404E-06    .50363E-01
  23  Prefactor     .12770        33.449       -.22641E-05** at limit **
  24  norm           .0000        2.8931       -.70176E-07** at limit **
  25  Prefactor     2.1576        6.2921        .76554E-07    .37646E-02
  26  Normalizat    .87444        .18809       -.17682E-05    .20307E-06
  27  Prefactor     1.2028        .22268       -.48322E-06    .71702E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.90633
  Prefactor  = 30.6901
  norm       = 3.45101
  Prefactor  = 5.55112e-11
  norm       = 1.95603
  Prefactor  = 0
  Prefactor  = 9.4183
  norm       = 2.50323
  Prefactor  = 11.0628
  norm       = 5.55112e-11
  Prefactor  = 1.63092e-07
  Prefactor  = 0
  norm       = 1.62528
  Prefactor  = 1.9984e-09
  norm       = 1.64711
  Prefactor  = 7.37743e-08
  Prefactor  = 2.77556e-10
  norm       = 9.71445e-09
  Prefactor  = 39.4435
  Prefactor  = 110.815
  norm       = 6.10623e-10
  Prefactor  = 61.398
  Prefactor  = 0.1277
  norm       = 0
  Prefactor  = 2.15758
  Normalizat = 0.874444
  Prefactor  = 1.20285
 **********
 **   18 **HESSE 
 **********

 FCN=   6816.792     FROM HESSE     STATUS=OK           552 CALLS     3000 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9063        4.2225        .75630E-03   -1.5680    
   2  Prefactor     30.690        26.137        .18111E-03   -1.5597    
   3  norm          3.4510        9.4744        .54010E-03   -1.5671    
   4  Prefactor     .55511E-10    3.7602        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9560        5.5932        .75913E-03   -1.5680    
   6  Prefactor      .0000        4.1406        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.4183        26.793        .31970E-03   -1.5647    
   8  norm          2.5032        1.8259        .64767E-03   -1.5676    
   9  Prefactor     11.063        23.450        .30447E-03   -1.5641    
  10  norm          .55511E-10    2.8173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .16309E-06    18.090        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.3959        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6253        1.4518        .83089E-03   -1.5682    
  14  Prefactor     .19984E-08    10.237        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.6471        1.4782        .82358E-03   -1.5682    
  16  Prefactor     .73774E-07    14.617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .27756E-09    6.9306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .97145E-08    7.8113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     39.443        55.903        .16443E-03   -1.5582    
  20  Prefactor     110.82        54.970        .96142E-04   -1.5497    
  21  norm          .61062E-09    4.2723        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     61.398        55.695        .13298E-03   -1.5551    
  23  Prefactor     .12770        1.6141        .84307E-02   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        2.8769        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.1576        254.32        .83849E-03   -1.5679    
  26  Normalizat    .87444        .15728        .44648E-01   -.97364    
  27  Prefactor     1.2028        .18713        .58350E-01   -.86244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74961e-06
Minuit parameter uncertainties:
  1  4.22252
  2  26.1375
  3  9.47442
  4  3.43835e-05
  5  5.59323
  6  1.1778e-05
  7  26.7934
  8  1.82588
  9  23.4502
  10  2.49716e-05
  11  0.00343543
  12  7.6461e-06
  13  1.45179
  14  0.000284089
  15  1.47819
  16  0.0020767
  17  8.83346e-05
  18  0.000551002
  19  55.9037
  20  54.9704
  21  0.000100823
  22  55.695
  23  0.908016
  24  1.3706e-05
  25  46.8515
  26  0.157357
  27  0.187231
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  1.625e+00  1.452e+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.203e+00  1.872e-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:  8.744e-01  1.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.78
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 1.43e-08 +/- 1.28e-08
Energy Flux (Fixed Index): 1.43e-05 +/- 1.28e-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) = 6816.68460799
delta logL = 0.107470874967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6816.67610258
delta logL = 0.115976283638

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4158       1.0000          .0000       .10000E+07
     2 'alpha     '    1.5038       1.0000          .0000       5.0000    
     3 'Normalizat'    .87791       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2032       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=   6816.676     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4135        1.7855        .90947E-03   -.20733E-02
   2  alpha         1.5033        .61678        .44735       -.21818E-04
   3  Normalizat    .87787        .14575        .44619E-01    .12724E-04
   4  Prefactor     1.2031        .18536        .58348E-01    .36764E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.41354
  alpha      = 1.5033
  Normalizat = 0.877866
  Prefactor  = 1.20312
 **********
 **   18 **HESSE 
 **********

 FCN=   6816.676     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4135        1.5466        .89677E-05   -1.5684    
   2  alpha         1.5033        .64011        .16226E-01   -.41008    
   3  Normalizat    .87787        .17314        .23416E-03   -.97242    
   4  Prefactor     1.2031        .22063        .25803E-03   -.86235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.36074e-10
Minuit parameter uncertainties:
  1  1.54661
  2  0.648733
  3  0.173246
  4  0.220804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833774': 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) = 6816.67609989
delta logL = 0.115978969105

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  1.414e+00  1.547e+00  0.000e+00  1.000e+06 ( 1.000e-12)
365        alpha:  1.503e+00  6.487e-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.203e+00  2.208e-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:  8.779e-01  1.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.01
Ra Dec: 192.084 58.343
Photon Index (Free Index): 1.50 +/- 0.65
Photon Flux (Free Index): 9.30e-09 +/- 1.28e-08
Energy Flux (Free Index): 2.20e-05 +/- 2.94e-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/833774/cmap_HighResolution_699667201_699926401_4FGL_J1248.3+5820_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.43e-08', energy_flux2='2.20e-05', photon_flux_error='1.28e-08', dlogl='1.16e-01', energy_flux='1.43e-05', photon_flux2='9.30e-09', job_status='DONE', time_completed='2023-03-08 00:54:46.576907', photon_index_error2='0.65', photon_index2='1.50', ts='5.78', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='2.94e-05', EG='0.87', time_epoch_completed='1678265686.58', return_code='0', job_id='833774', GAL2='1.20', EG2='0.88', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='1.28e-08', ts2='6.01', photon_index='1.81' WHERE bin_id='1776' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 00:54:46 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 833774: <4FGL_J1248.3+5820_daily_bin1776> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin1776> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Mar  8 00:40:15 2023
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 00:40:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 00:40:16 2023
Terminated at Wed Mar  8 00:54:47 2023
Results reported at Wed Mar  8 00:54:47 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin1776 192.084 58.3432 699667201 699926401 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 :                                   719.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            872 sec.

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

