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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin1771
RA = 192.084, Dec = 58.3432
tmin = 698371201, tmax = 698630401
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='547608', job_status='RUN', time_executed='2023-02-21 00:50:52.181314', time_epoch_executed='1676969452.18' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='1771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/547608

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/547608/ft1_4FGL_J1248.3+5820_daily_bin1771.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/547608/ft2_4FGL_J1248.3+5820_daily_bin1771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/547608/ft1_4FGL_J1248.3+5820_daily_bin1771.fits outfile=/scratch/kocevski/547608/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin1771.fits ra=192.084 dec=58.3432 rad=12.0 tmin=698371201.0 tmax=698630401.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.13
user 2.88
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/547608/ft2_4FGL_J1248.3+5820_daily_bin1771.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/547608/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin1771.fits evtable="EVENTS" outfile="/scratch/kocevski/547608/ft1_filtered_4FGL_J1248.3+5820_daily_bin1771.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.54
user 0.33
sys 0.14

Number of photons that the gtmktime cut: 254

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/547608/ft1_filtered_4FGL_J1248.3+5820_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/547608/ft2_4FGL_J1248.3+5820_daily_bin1771.fits sctable="SC_DATA" expcube=/scratch/kocevski/547608/ltcube_698371201_698630401_4FGL_J1248.3+5820_daily_bin1771.fits outfile=/scratch/kocevski/547608/expmap_698371201_698630401_4FGL_J1248.3+5820_daily_bin1771.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/547608/ltcube_698371201_698630401_4FGL_J1248.3+5820_daily_bin1771.fits
.....................!
real 190.15
user 185.63
sys 4.03

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/547608/ft1_filtered_4FGL_J1248.3+5820_daily_bin1771.fits scfile=/scratch/kocevski/547608/ft2_4FGL_J1248.3+5820_daily_bin1771.fits outfile=/scratch/kocevski/547608/cmap_698371201_698630401_4FGL_J1248.3+5820_daily_bin1771.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/547608/ft1_filtered_4FGL_J1248.3+5820_daily_bin1771.fits scfile=/scratch/kocevski/547608/ft2_4FGL_J1248.3+5820_daily_bin1771.fits outfile=/scratch/kocevski/547608/cmap_HighResolution_698371201_698630401_4FGL_J1248.3+5820_daily_bin1771.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/547608/ft1_filtered_4FGL_J1248.3+5820_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/547608/ft2_4FGL_J1248.3+5820_daily_bin1771.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/547608/Model_4FGL_J1248.3+5820_daily_bin1771.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/547608/ft1_filtered_4FGL_J1248.3+5820_daily_bin1771.fits......................!
real 33.17
user 31.82
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2264       1.0000          .0000       .10000E+07
     2 'Prefactor '    .52234       1.0000          .0000       .10000E+07
     3 'norm      '    .26434E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    215.97       1.0000          .0000       .10000E+07
     5 'norm      '    .11591E+06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .39639E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .26139E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .27892E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    24.853       1.0000          .0000       .10000E+07
    10 'norm      '    .18378E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .32539E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .43188E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .14133       1.0000          .0000       .10000E+07
    14 'Prefactor '    .45490E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .15924       1.0000          .0000       .10000E+07
    16 'Prefactor '    .29413E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .46962E-07   1.0000          .0000       .10000E+07
    18 'norm      '    .42594E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .30159E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    48.039       1.0000          .0000       .10000E+07
    21 'norm      '    .94924E-08   1.0000          .0000       .10000E+07
    22 'Prefactor '    .69685E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    .28311E-08   1.0000          .0000       .10000E+07
    24 'norm      '    6.0875       1.0000          .0000       .10000E+07
    25 'Prefactor '    6.2421       1.0000          .0000       .10000E+07
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .70615       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2629.604     FROM MIGRAD    STATUS=CONVERGED    878 CALLS     3271 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49405E-08    5879.6       -.90250E-06** at limit **
   2  Prefactor      .0000        374.41       -.42410E-08** at limit **
   3  norm           .0000        80.249       -.19495E-08** at limit **
   4  Prefactor     228.38        233.25        .12534E-08    .99005E-05
   5  norm          .11395E+06    10129.        .47644E-06    .77123E-04
   6  Prefactor     .55511E-10    465.09       -.24848E-06** at limit **
   7  Prefactor      .0000        531.26       -.31073E-07** at limit **
   8  norm           .0000        13.976       -.58088E-08** at limit **
   9  Prefactor     24.914        30.521       -.33903E-08    .15502E-04
  10  norm           .0000        16.780       -.10230E-07** at limit **
  11  Prefactor      .0000        31.975       -.11714E-08** at limit **
  12  Prefactor      .0000        5.1031       -.78191E-08** at limit **
  13  norm          .16262        22.708       -.12081E-05** at limit **
  14  Prefactor      .0000        22.319        .82617E-08** at limit **
  15  norm          .19320        13.045       -.34061E-06** at limit **
  16  Prefactor      .0000        15.322       -.29417E-09** at limit **
  17  Prefactor      .0000        3.9751        .54442E-08** at limit **
  18  norm          .13985        65.223        .17200E-06** at limit **
  19  Prefactor      .0000        11.727        .15178E-08** at limit **
  20  Prefactor     48.317        52.378       -.11803E-06    .18813E-03
  21  norm           .0000        1.9141       -.65582E-08** at limit **
  22  Prefactor     .55511E-10    28.571       -.11450E-06** at limit **
  23  Prefactor      .0000        .46970       -.15113E-07** at limit **
  24  norm          6.1630        4.8640       -.34594E-07   -.10479E-02
  25  Prefactor     6.2811        12.850       -.90450E-07    .15386E-03
  26  Normalizat    .10000E-01    .15106E-01    .12456E-05** at limit **
  27  Prefactor     .71037        .11692        .10880E-05    .32999E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.94049e-09
  Prefactor  = 0
  norm       = 0
  Prefactor  = 228.382
  norm       = 113949
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  Prefactor  = 24.9144
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.162619
  Prefactor  = 0
  norm       = 0.193202
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.139849
  Prefactor  = 0
  Prefactor  = 48.3171
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 6.16297
  Prefactor  = 6.28112
  Normalizat = 0.01
  Prefactor  = 0.71037
 **********
 **   18 **HESSE 
 **********

 FCN=   2629.604     FROM HESSE     STATUS=OK           482 CALLS     3753 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49405E-08    6082.9        .20326E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        374.69        .15299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        80.267        .33290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     228.38        233.41        .13611E-04   -1.5406    
   5  norm          .11395E+06    10120.        .83541E-06   -.88214    
   6  Prefactor     .55511E-10    470.94        .31960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        535.42        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        14.003        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.914        30.514        .80253E-05   -1.5608    
  10  norm           .0000        16.835        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        32.003        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        5.1166        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .16262        22.608        .19176E-03   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        22.341        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .19320        13.039        .21794E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        15.350        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        3.9752        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .13985        63.685        .21563E-03   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        11.789        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     48.317        52.309        .28858E-04   -1.5569    
  21  norm           .0000        1.9248        .69281E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .55511E-10    29.024        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        .47187        .34311E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.1630        4.8594        .95066E-05   -1.5658    
  25  Prefactor     6.2811        12.868        .16062E-04   -1.5658    
  26  Normalizat    .10000E-01    .14945E-01    .19176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .71037        .11699        .21047E-03   -1.0312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.49614e-09
Minuit parameter uncertainties:
  1  0.0109493
  2  8.51211e-06
  3  3.30413e-06
  4  233.423
  5  10121.6
  6  0.000252084
  7  3.65114e-06
  8  2.18947e-06
  9  30.5141
  10  3.23601e-06
  11  1.71888e-06
  12  2.84117e-06
  13  3.83486
  14  2.78201e-06
  15  3.17435
  16  4.11981e-06
  17  1.42329e-06
  18  5.96876
  19  9.14e-06
  20  52.3097
  21  3.08885e-07
  22  9.67935e-05
  23  6.4031e-07
  24  4.85938
  25  12.8676
  26  4.21986e-08
  27  0.117033
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  1.626e-01  3.835e+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:  7.104e-01  1.170e-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.000e-02  4.220e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 192.084 58.343
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.24e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/547608/likelihoodResults_698371201_698630401_4FGL_J1248.3+5820_daily_bin1771.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2629.60368072
delta logL = -6.42735358269e-08

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2629.60368065
delta logL = 1.13186615636e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16262       1.0000          .0000       .10000E+07
     2 'alpha     '    1.8108       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71037       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2629.604     FROM MIGRAD    STATUS=FAILED        89 CALLS      248 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16281        49.529        .19464E-03** at limit **
   2  alpha         1.8046        2.9869        .58096E-01   -.58656E-04
   3  Normalizat    .10000E-01    .14945E-01    .19225E-02** at limit **
   4  Prefactor     .71037        .10844        .21045E-03    .46037E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2629.604     FROM SIMPLEX   STATUS=UNCHANGED    118 CALLS      366 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16281        49.529        .12871E-04   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8046        2.9869        .29346E-03   -.28188    
   3  Normalizat    .10000E-01    .14945E-01    .50849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .71037        .10844        .32269E-07   -1.0312    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2629.604     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      400 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16338        23.053        .77855E-05** at limit **
   2  alpha         1.8048        3.3857        .23238E-02   -.34245E-07
   3  Normalizat    .10000E-01    .14945E-01    .38450E-03** at limit **
   4  Prefactor     .71037        .10815        .42090E-04   -.30927E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.163376
  alpha      = 1.80485
  Normalizat = 0.01
  Prefactor  = 0.71037
 **********
 **   18 **HESSE 
 **********

 FCN=   2629.604     FROM HESSE     STATUS=OK            23 CALLS      423 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16338        22.951        .15571E-05   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8048        3.3863        .92954E-04   -.28178    
   3  Normalizat    .10000E-01    .14945E-01    .76899E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .71037        .10815        .84180E-05   -1.0312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75267e-12
Minuit parameter uncertainties:
  1  3.87285
  2  3.48121
  3  5.1966e-08
  4  0.108177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/547608': 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) = 2629.60367919
delta logL = 1.46901447806e-06

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  1.634e-01  3.873e+00  0.000e+00  1.000e+06 ( 1.000e-12)
365        alpha:  1.805e+00  3.481e+00  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:  7.104e-01  1.082e-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.000e-02  5.197e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 192.084 58.343

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/547608/cmap_HighResolution_698371201_698630401_4FGL_J1248.3+5820_daily_bin1771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-04', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2023-02-21 01:00:21.040009', job_id='547608', GAL2='0.71', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1676970021.04', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='1.47e-06', ts2='0.00', photon_index_error='0.00', photon_index='1.81' WHERE bin_id='1771' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb 21 01:00:21 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 547608: <4FGL_J1248.3+5820_daily_bin1771> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin1771> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb 21 00:50:23 2023
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 00:50:24 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 00:50:24 2023
Terminated at Tue Feb 21 01:00:21 2023
Results reported at Tue Feb 21 01:00:21 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin1771 192.084 58.3432 698371201 698630401 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 :                                   570.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   597 sec.
    Turnaround time :                            598 sec.

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

