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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin1708
RA = 192.244, Dec = 48.67
tmin = 682041601, tmax = 682300801
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='122018', job_status='RUN', time_executed='2022-09-16 16:57:39.103978', time_epoch_executed='1663372659.1' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='1708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/122018

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/122018/ft1_4FGL_J1248.9+4840_daily_bin1708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/122018/ft2_4FGL_J1248.9+4840_daily_bin1708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/122018/ft1_4FGL_J1248.9+4840_daily_bin1708.fits outfile=/scratch/kocevski/122018/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin1708.fits ra=192.244 dec=48.67 rad=12.0 tmin=682041601.0 tmax=682300801.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.98
user 3.74
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/122018/ft2_4FGL_J1248.9+4840_daily_bin1708.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/122018/ft2_4FGL_J1248.9+4840_daily_bin1708.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/122018/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin1708.fits evtable="EVENTS" outfile="/scratch/kocevski/122018/ft1_filtered_4FGL_J1248.9+4840_daily_bin1708.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.56
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 541

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/122018/ft1_filtered_4FGL_J1248.9+4840_daily_bin1708.fits" evtable="EVENTS" scfile=/scratch/kocevski/122018/ft2_4FGL_J1248.9+4840_daily_bin1708.fits sctable="SC_DATA" outfile=/scratch/kocevski/122018/ltcube_682041601_682300801_4FGL_J1248.9+4840_daily_bin1708.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/122018/ft2_4FGL_J1248.9+4840_daily_bin1708.fits
.....................!
real 15.92
user 15.52
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/122018/ft1_filtered_4FGL_J1248.9+4840_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/122018/ft2_4FGL_J1248.9+4840_daily_bin1708.fits sctable="SC_DATA" expcube=/scratch/kocevski/122018/ltcube_682041601_682300801_4FGL_J1248.9+4840_daily_bin1708.fits outfile=/scratch/kocevski/122018/expmap_682041601_682300801_4FGL_J1248.9+4840_daily_bin1708.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/122018/ltcube_682041601_682300801_4FGL_J1248.9+4840_daily_bin1708.fits
.....................!
real 192.68
user 187.14
sys 5.08

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

Setting source of interest to:
4FGL J1248.9+4840 @ 192.244 48.67

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/122018/ft1_filtered_4FGL_J1248.9+4840_daily_bin1708.fits scfile=/scratch/kocevski/122018/ft2_4FGL_J1248.9+4840_daily_bin1708.fits outfile=/scratch/kocevski/122018/cmap_682041601_682300801_4FGL_J1248.9+4840_daily_bin1708.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.244 yref=48.67 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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/122018/ft1_filtered_4FGL_J1248.9+4840_daily_bin1708.fits scfile=/scratch/kocevski/122018/ft2_4FGL_J1248.9+4840_daily_bin1708.fits outfile=/scratch/kocevski/122018/cmap_HighResolution_682041601_682300801_4FGL_J1248.9+4840_daily_bin1708.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.244 yref=48.67 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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/122018/ft1_filtered_4FGL_J1248.9+4840_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/122018/ft2_4FGL_J1248.9+4840_daily_bin1708.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/122018/Model_4FGL_J1248.9+4840_daily_bin1708.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/122018/ft1_filtered_4FGL_J1248.9+4840_daily_bin1708.fits.....................!
real 51.11
user 49.75
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/122018/ft1_filtered_4FGL_J1248.9+4840_daily_bin1708.fits', '/scratch/kocevski/122018/ft2_4FGL_J1248.9+4840_daily_bin1708.fits', expMap='/scratch/kocevski/122018/expmap_682041601_682300801_4FGL_J1248.9+4840_daily_bin1708.fits', expCube='/scratch/kocevski/122018/ltcube_682041601_682300801_4FGL_J1248.9+4840_daily_bin1708.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/122018/Model_4FGL_J1248.9+4840_daily_bin1708.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1248.9+4840'

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.227e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/122018/ft1_filtered_4FGL_J1248.9+4840_daily_bin1708.fits
Spacecraft file(s): /scratch/kocevski/122018/ft2_4FGL_J1248.9+4840_daily_bin1708.fits
Exposure map: /scratch/kocevski/122018/expmap_682041601_682300801_4FGL_J1248.9+4840_daily_bin1708.fits
Exposure cube: /scratch/kocevski/122018/ltcube_682041601_682300801_4FGL_J1248.9+4840_daily_bin1708.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/122018/Model_4FGL_J1248.9+4840_daily_bin1708.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) = 6021.75260907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3998       1.0000          .0000       .10000E+07
     2 'Prefactor '    4.3514       1.0000          .0000       .10000E+07
     3 'norm      '    2.7020       1.0000          .0000       .10000E+07
     4 'norm      '    .10035E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .16919E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .37088       1.0000          .0000       .10000E+07
     7 'norm      '    3.1189       1.0000          .0000       .10000E+07
     8 'Prefactor '    .60873E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    20.005       1.0000          .0000       .10000E+07
    10 'norm      '    2.4663       1.0000          .0000       .10000E+07
    11 'Prefactor '    .44463E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22825E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    16.793       1.0000          .0000       .10000E+07
    14 'norm      '    4.6598       1.0000          .0000       .10000E+07
    15 'norm      '    6.3454       1.0000          .0000       .10000E+07
    16 'Prefactor '    43.987       1.0000          .0000       .10000E+07
    17 'Prefactor '    .15126E-01   1.0000          .0000       .10000E+07
    18 'norm      '    .72182E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    1.5286       1.0000          .0000       .10000E+07
    20 'norm      '    .23415E-06   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0055       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0471       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6021.700     FROM MIGRAD    STATUS=CONVERGED    184 CALLS     1811 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4008        3.2678       -.30656E-06    .82764E-04
   2  Prefactor     4.3102        4.5685        .34397E-06    .15904E-01
   3  norm          2.6992        2.0008        .58752E-07   -.73864E-03
   4  norm           .0000        3.1490        .14542E-06** at limit **
   5  Prefactor     .48850E-08    23.091        .61418E-06** at limit **
   6  Prefactor     .41582        8.4860        .84410E-06   -.51263E-03
   7  norm          3.1131        1.9142       -.13967E-07   -.73371E-03
   8  Prefactor      .0000        4.6426        .28428E-07** at limit **
   9  Prefactor     20.329        16.717        .22174E-06   -.43487E-01
  10  norm          2.4656        1.7112        .92095E-07   -.13389E-02
  11  Prefactor      .0000        15.932       -.20224E-06** at limit **
  12  Prefactor     .55511E-10    6.0576       -.26446E-06** at limit **
  13  Prefactor     16.871        18.148        .60779E-06    .28247E-01
  14  norm          4.6104        12.912        .86403E-06   -.66961E-03
  15  norm          6.3560        3.9474        .80167E-07   -.10591E-02
  16  Prefactor     43.562        32.182        .54720E-06   -.22223E-01
  17  Prefactor      .0000        24.850        .19349E-06** at limit **
  18  norm           .0000        5.2062        .15874E-06** at limit **
  19  Prefactor     .30688E-01    4060.5       -.89128E-05** at limit **
  20  norm           .0000        1.9528       -.20426E-06** at limit **
  21  Normalizat    1.0065        .19444        .31047E-06   -.22112E-04
  22  Prefactor     1.0466        .23631       -.37373E-06   -.11557E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.4008
  Prefactor  = 4.31019
  norm       = 2.69918
  norm       = 0
  Prefactor  = 4.88498e-09
  Prefactor  = 0.415819
  norm       = 3.11308
  Prefactor  = 0
  Prefactor  = 20.3288
  norm       = 2.46555
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 16.8711
  norm       = 4.61042
  norm       = 6.35599
  Prefactor  = 43.5622
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0.0306876
  norm       = 0
  Normalizat = 1.00655
  Prefactor  = 1.04658
 **********
 **   18 **HESSE 
 **********

 FCN=   6021.700     FROM HESSE     STATUS=OK           402 CALLS     2213 TOTAL
                     EDM=   .47E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4008        4.4041        .91682E-03   -1.5684    
   2  Prefactor     4.3102        29.868        .48263E-03   -1.5666    
   3  norm          2.6992        2.0061        .61945E-03   -1.5675    
   4  norm           .0000        3.1540        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .48850E-08    23.279        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .41582        8.4271        .92940E-03   -1.5695    
   7  norm          3.1131        1.9389        .57387E-03   -1.5673    
   8  Prefactor      .0000        4.6632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.329        26.816        .22365E-03   -1.5618    
  10  norm          2.4656        1.7146        .65089E-03   -1.5677    
  11  Prefactor      .0000        15.936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .55511E-10    6.0419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.871        24.989        .24414E-03   -1.5626    
  14  norm          4.6104        12.950        .46597E-03   -1.5665    
  15  norm          6.3560        3.9587        .39823E-03   -1.5658    
  16  Prefactor     43.562        34.489        .15079E-03   -1.5576    
  17  Prefactor      .0000        24.825        .17381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        5.1875        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .30688E-01    42.798        .13826E-01   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        .80906        .24244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0065        .16354        .46236E-01   -.92811    
  22  Prefactor     1.0466        .19759        .61960E-01   -.91193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71872e-06
Minuit parameter uncertainties:
  1  4.40413
  2  22.6927
  3  2.00614
  4  1.13274e-05
  5  0.000674941
  6  3.74387
  7  1.93887
  8  1.22174e-05
  9  26.8165
  10  1.71459
  11  3.08483e-06
  12  2.83459e-05
  13  24.9895
  14  12.9502
  15  3.9587
  16  34.4894
  17  3.61564e-05
  18  1.42913e-05
  19  2.29207
  20  3.43647e-06
  21  0.163618
  22  0.197731
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  0.000e+00  1.222e-05  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.047e+00  1.977e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  1.007e+00  1.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 3.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/122018/likelihoodResults_682041601_682300801_4FGL_J1248.9+4840_daily_bin1708.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): 102
logL (Free Index) = 6021.70052171
delta logL = -0.000358253780178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6021.70016371
delta logL = -2.53681719187e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78171E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.0779       1.0000          .0000       10.000    
     3 'Normalizat'    1.0065       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0467       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6021.700     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      267 TOTAL
                     EDM=   .70E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    .65168E-01    .42118E-03** at limit **
   2  Index         2.9126        8.4067        .38494        .14767E-09
   3  Normalizat    1.0065        .56364E-03    .46249E-01    .14454E-03
   4  Prefactor     1.0466        .70028E-03    .61960E-01    .25108E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  Index      = 2.91263
  Normalizat = 1.00655
  Prefactor  = 1.04658
 **********
 **   18 **HESSE 
 **********

 FCN=   6021.700     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      298 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    .28302        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9126        6.4245        .50000       -.43066    
   3  Normalizat    1.0065        .11736E-02    .22553E-03   -.92811    
   4  Prefactor     1.0466        .14573E-02    .27403E-03   -.91192    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.86837e-12
Minuit parameter uncertainties:
  1  1.83459e-05
  2  32341.5
  3  0.00117355
  4  0.0014573
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/122018': 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): 102
logL (Free Index) = 6021.70016345
delta logL = -1.09139364213e-10

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  2.776e-10  1.835e-05  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.913e+00  3.234e+04  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.047e+00  1.457e-03  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  1.007e+00  1.174e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 192.244 48.670

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/122018/cmap_HighResolution_682041601_682300801_4FGL_J1248.9+4840_daily_bin1708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-03', job_status='DONE', photon_flux_upper_limit='3.94e-08', time_completed='2022-09-16 17:08:24.205502', job_id='122018', GAL2='1.05', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1663373304.21', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-1.09e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1708' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:08:24 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 122018: <4FGL_J1248.9+4840_daily_bin1708> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin1708> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 16:55:24 2022
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:57:11 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 16:57:11 2022
Terminated at Fri Sep 16 17:08:24 2022
Results reported at Fri Sep 16 17:08:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin1708 192.244 48.67 682041601 682300801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1248.9+4840 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   647.00 sec.
    Max Memory :                                 1117 MB
    Average Memory :                             307.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   673 sec.
    Turnaround time :                            780 sec.

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

