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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin1750
RA = 192.084, Dec = 58.3432
tmin = 692928001, tmax = 693187201
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='12045', job_status='RUN', time_executed='2022-12-20 00:50:54.912437', time_epoch_executed='1671526254.91' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12045

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12045/ft1_4FGL_J1248.3+5820_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12045/ft2_4FGL_J1248.3+5820_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12045/ft1_4FGL_J1248.3+5820_daily_bin1750.fits outfile=/scratch/kocevski/12045/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin1750.fits ra=192.084 dec=58.3432 rad=12.0 tmin=692928001.0 tmax=693187201.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.46
user 3.23
sys 0.22

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

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

Number of photons that the gtmktime cut: 573

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12045/ft1_filtered_4FGL_J1248.3+5820_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/12045/ft2_4FGL_J1248.3+5820_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/12045/ltcube_692928001_693187201_4FGL_J1248.3+5820_daily_bin1750.fits outfile=/scratch/kocevski/12045/expmap_692928001_693187201_4FGL_J1248.3+5820_daily_bin1750.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/12045/ltcube_692928001_693187201_4FGL_J1248.3+5820_daily_bin1750.fits
.....................!
real 190.61
user 185.17
sys 5.10

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/12045/ft1_filtered_4FGL_J1248.3+5820_daily_bin1750.fits scfile=/scratch/kocevski/12045/ft2_4FGL_J1248.3+5820_daily_bin1750.fits outfile=/scratch/kocevski/12045/cmap_692928001_693187201_4FGL_J1248.3+5820_daily_bin1750.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/12045/ft1_filtered_4FGL_J1248.3+5820_daily_bin1750.fits scfile=/scratch/kocevski/12045/ft2_4FGL_J1248.3+5820_daily_bin1750.fits outfile=/scratch/kocevski/12045/cmap_HighResolution_692928001_693187201_4FGL_J1248.3+5820_daily_bin1750.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=192.084 yref=58.3432 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2504       1.0000          .0000       .10000E+07
     2 'Prefactor '    5.7440       1.0000          .0000       .10000E+07
     3 'norm      '    .61600E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .18683E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .35164E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16075E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .10885E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .53373       1.0000          .0000       .10000E+07
     9 'Prefactor '    .15543E-08   1.0000          .0000       .10000E+07
    10 'norm      '    5.5096       1.0000          .0000       .10000E+07
    11 'Prefactor '    15.445       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.0586       1.0000          .0000       .10000E+07
    13 'norm      '    2.6593       1.0000          .0000       .10000E+07
    14 'Prefactor '    7.5907       1.0000          .0000       .10000E+07
    15 'norm      '     .0000       1.0000          .0000       .10000E+07
    16 'Prefactor '    .54634       1.0000          .0000       .10000E+07
    17 'Prefactor '    .11688E-02   1.0000          .0000       .10000E+07
    18 'norm      '    4.3200       1.0000          .0000       .10000E+07
    19 'Prefactor '    .18853E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .87817E-04   1.0000          .0000       .10000E+07
    21 'norm      '    5.2478       1.0000          .0000       .10000E+07
    22 'Prefactor '    103.50       1.0000          .0000       .10000E+07
    23 'Prefactor '    1.8126       1.0000          .0000       .10000E+07
    24 'norm      '    .98235E-05   1.0000          .0000       .10000E+07
    25 'Prefactor '    .13820E-02   1.0000          .0000       .10000E+07
    26 'Normalizat'    .93375       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0233       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=   6220.965     FROM MIGRAD    STATUS=CONVERGED    216 CALLS     2442 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2535        7.7242        .38362E-06   -.78938E-03
   2  Prefactor     5.7487        4.3924       -.58785E-07    .85275E-02
   3  norm           .0000        6.4966        .39427E-06** at limit **
   4  Prefactor      .0000        2.9156        .20853E-06** at limit **
   5  norm           .0000        1.8194        .13471E-07** at limit **
   6  Prefactor      .0000        1.8221        .15237E-06** at limit **
   7  Prefactor      .0000        4.5825        .62186E-07** at limit **
   8  norm          .53521        1.9151       -.20769E-06    .91919E-05
   9  Prefactor     .33307E-09    96.537        .15202E-05** at limit **
  10  norm          5.5355        6.6737       -.51385E-07    .14958E-02
  11  Prefactor     15.358        3.4348        .23860E-07   -.88962E-02
  12  Prefactor     1.0647        5.6397       -.55657E-06    .12701E-03
  13  norm          2.6598        1.6762        .10443E-06    .54774E-03
  14  Prefactor     7.6093        15.372        .35491E-06    .34444E-02
  15  norm           .0000        .56760       -.82031E-07** at limit **
  16  Prefactor     .59397E-08    134.28        .34951E-06** at limit **
  17  Prefactor      .0000        8.8731        .48472E-06** at limit **
  18  norm          4.3113        4.0506       -.11642E-06    .31494E-04
  19  Prefactor      .0000        15.851       -.24363E-06** at limit **
  20  Prefactor      .0000        31.635        .49246E-06** at limit **
  21  norm          5.2485        4.8372       -.11596E-06   -.22338E-04
  22  Prefactor     105.24        57.521        .81060E-07   -.68192E-03
  23  Prefactor     1.8168        3.5540       -.21743E-06   -.20959E-03
  24  norm           .0000        1.4342        .94811E-07** at limit **
  25  Prefactor      .0000        10.859       -.95949E-08** at limit **
  26  Normalizat    .93284        .18257       -.15422E-05    .13354E-04
  27  Prefactor     1.0240        .21727        .35184E-05    .12864E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.25355
  Prefactor  = 5.74866
  norm       = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.53521
  Prefactor  = 3.33067e-10
  norm       = 5.53552
  Prefactor  = 15.3579
  Prefactor  = 1.06468
  norm       = 2.65979
  Prefactor  = 7.60934
  norm       = 0
  Prefactor  = 5.93969e-09
  Prefactor  = 0
  norm       = 4.31128
  Prefactor  = 0
  Prefactor  = 0
  norm       = 5.24847
  Prefactor  = 105.243
  Prefactor  = 1.81682
  norm       = 0
  Prefactor  = 0
  Normalizat = 0.932844
  Prefactor  = 1.02399
 **********
 **   18 **HESSE 
 **********

 FCN=   6220.965     FROM HESSE     STATUS=OK           538 CALLS     2980 TOTAL
                     EDM=   .82E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2535        7.9825        .48849E-03   -1.5667    
   2  Prefactor     5.7487        18.072        .41885E-03   -1.5660    
   3  norm           .0000        6.5069        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        2.9168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        1.8154        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.8259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        4.5943        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .53521        1.9184        .75387E-03   -1.5693    
   9  Prefactor     .33307E-09    95.798        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.5355        10.057        .42781E-03   -1.5661    
  11  Prefactor     15.358        27.735        .25459E-03   -1.5630    
  12  Prefactor     1.0647        5.7942        .11927E-02   -1.5687    
  13  norm          2.6598        1.6864        .62479E-03   -1.5675    
  14  Prefactor     7.6093        16.030        .36375E-03   -1.5653    
  15  norm           .0000        .56833        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .59397E-08    132.83        .74179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        8.8105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.3113        4.0533        .48443E-03   -1.5666    
  19  Prefactor      .0000        15.864        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        31.644        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.2485        4.8492        .43854E-03   -1.5662    
  22  Prefactor     105.24        57.395        .98300E-04   -1.5503    
  23  Prefactor     1.8168        3.5629        .77565E-03   -1.5681    
  24  norm           .0000        1.4334        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor      .0000        10.885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .93284        .15712        .45331E-01   -.95315    
  27  Prefactor     1.0240        .18665        .41828E-01   -.91934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.18769e-08
Minuit parameter uncertainties:
  1  7.98248
  2  18.0727
  3  1.2525e-07
  4  1.35496e-06
  5  1.43813e-06
  6  2.29478e-07
  7  4.34693e-06
  8  1.91843
  9  0.000358666
  10  10.0575
  11  27.7357
  12  4.96749
  13  1.68644
  14  16.03
  15  6.95961e-07
  16  0.00177358
  17  1.53905e-06
  18  4.05329
  19  4.00931e-06
  20  4.88001e-05
  21  4.84918
  22  57.3948
  23  3.56294
  24  1.30415e-06
  25  7.1301e-06
  26  0.157201
  27  0.186767
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  2.660e+00  1.686e+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.024e+00  1.868e-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:  9.328e-01  1.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.05
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 2.35e-08 +/- 1.49e-08
Energy Flux (Fixed Index): 2.35e-05 +/- 1.49e-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) = 6219.31047165
delta logL = 1.65426430794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6218.80097567
delta logL = 2.16376028944

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .78025       1.0000          .0000       .10000E+07
     2 'alpha     '    .74129       1.0000          .0000       5.0000    
     3 'Normalizat'    .94522       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0241       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=   6218.801     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      209 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77908        .66380        .54418E-03   -.61641E-02
   2  alpha         .74083        .32412        .25952       -.24876E-04
   3  Normalizat    .94519        .14408        .45477E-01    .97990E-05
   4  Prefactor     1.0242        .18209        .59769E-01    .86749E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.779077
  alpha      = 0.740834
  Normalizat = 0.945187
  Prefactor  = 1.02417
 **********
 **   18 **HESSE 
 **********

 FCN=   6218.801     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .52E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77908        1.1534        .47050E-05   -1.5690    
   2  alpha         .74083        .54989        .11481E-02   -.78054    
   3  Normalizat    .94519        .17111        .21788E-03   -.94890    
   4  Prefactor     1.0242        .21617        .26431E-03   -.91928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22351e-13
Minuit parameter uncertainties:
  1  1.15343
  2  0.559075
  3  0.171207
  4  0.216354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12045': 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) = 6218.80097511
delta logL = 2.1637608412

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  7.791e-01  1.153e+00  0.000e+00  1.000e+06 ( 1.000e-12)
365        alpha:  7.408e-01  5.591e-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.024e+00  2.164e-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:  9.452e-01  1.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 29.37
Ra Dec: 192.084 58.343
Photon Index (Free Index): 0.74 +/- 0.56
Photon Flux (Free Index): 6.71e-09 +/- 5.48e-09
Energy Flux (Free Index): 1.20e-04 +/- 1.15e-04

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/12045/cmap_HighResolution_692928001_693187201_4FGL_J1248.3+5820_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.35e-08', energy_flux2='1.20e-04', photon_flux_error='1.49e-08', dlogl='2.16e+00', energy_flux='2.35e-05', photon_flux2='6.71e-09', job_status='DONE', time_completed='2022-12-20 01:02:23.702201', photon_index_error2='0.56', photon_index2='0.74', ts='25.05', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.15e-04', EG='0.93', time_epoch_completed='1671526943.7', return_code='0', job_id='12045', GAL2='1.02', EG2='0.95', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='5.48e-09', ts2='29.37', photon_index='1.81' WHERE bin_id='1750' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 01:02:23 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 12045: <4FGL_J1248.3+5820_daily_bin1750> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin1750> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec 20 00:50:13 2022
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 00:50:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 00:50:13 2022
Terminated at Tue Dec 20 01:02:24 2022
Results reported at Tue Dec 20 01:02:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin1750 192.084 58.3432 692928001 693187201 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 :                                   691.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            731 sec.

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

