aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 173 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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 = 17212
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1248.3+5820_weekly_bin191
RA = 192.084, Dec = 58.3432
tmin = 354499201, tmax = 355104001
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='465227', job_status='RUN', time_executed='2021-07-20 02:23:45.171226', time_epoch_executed='1626773025.17' WHERE source_name='4FGL J1248.3+5820' and cadence='weekly' and bin_id='191'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/465227

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/465227/ft1_4FGL_J1248.3+5820_weekly_bin191.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/465227/ft2_4FGL_J1248.3+5820_weekly_bin191.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/465227/ft1_4FGL_J1248.3+5820_weekly_bin191.fits outfile=/scratch/kocevski/465227/ft1_filteredMKT_4FGL_J1248.3+5820_weekly_bin191.fits ra=192.084 dec=58.3432 rad=12.0 tmin=354499201.0 tmax=355104001.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 7.53
user 7.04
sys 0.44

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/465227/ft1_filtered_4FGL_J1248.3+5820_weekly_bin191.fits" evtable="EVENTS" scfile=/scratch/kocevski/465227/ft2_4FGL_J1248.3+5820_weekly_bin191.fits sctable="SC_DATA" outfile=/scratch/kocevski/465227/ltcube_354499201_355104001_4FGL_J1248.3+5820_weekly_bin191.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/465227/ft2_4FGL_J1248.3+5820_weekly_bin191.fits
.....................!
real 27.26
user 26.53
sys 0.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/465227/ft1_filtered_4FGL_J1248.3+5820_weekly_bin191.fits evtable="EVENTS" scfile=/scratch/kocevski/465227/ft2_4FGL_J1248.3+5820_weekly_bin191.fits sctable="SC_DATA" expcube=/scratch/kocevski/465227/ltcube_354499201_355104001_4FGL_J1248.3+5820_weekly_bin191.fits outfile=/scratch/kocevski/465227/expmap_354499201_355104001_4FGL_J1248.3+5820_weekly_bin191.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/465227/ltcube_354499201_355104001_4FGL_J1248.3+5820_weekly_bin191.fits
.....................!
real 192.70
user 187.05
sys 4.94

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/465227/ft1_filtered_4FGL_J1248.3+5820_weekly_bin191.fits scfile=/scratch/kocevski/465227/ft2_4FGL_J1248.3+5820_weekly_bin191.fits outfile=/scratch/kocevski/465227/cmap_354499201_355104001_4FGL_J1248.3+5820_weekly_bin191.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.75
user 0.42
sys 0.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/465227/ft1_filtered_4FGL_J1248.3+5820_weekly_bin191.fits scfile=/scratch/kocevski/465227/ft2_4FGL_J1248.3+5820_weekly_bin191.fits outfile=/scratch/kocevski/465227/cmap_HighResolution_354499201_355104001_4FGL_J1248.3+5820_weekly_bin191.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.76
user 0.41
sys 0.34

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/465227/ft1_filtered_4FGL_J1248.3+5820_weekly_bin191.fits', '/scratch/kocevski/465227/ft2_4FGL_J1248.3+5820_weekly_bin191.fits', expMap='/scratch/kocevski/465227/expmap_354499201_355104001_4FGL_J1248.3+5820_weekly_bin191.fits', expCube='/scratch/kocevski/465227/ltcube_354499201_355104001_4FGL_J1248.3+5820_weekly_bin191.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/465227/Model_4FGL_J1248.3+5820_weekly_bin191.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  1.000e-04  1.000e+04 ( 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  0.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/465227/ft1_filtered_4FGL_J1248.3+5820_weekly_bin191.fits
Spacecraft file(s): /scratch/kocevski/465227/ft2_4FGL_J1248.3+5820_weekly_bin191.fits
Exposure map: /scratch/kocevski/465227/expmap_354499201_355104001_4FGL_J1248.3+5820_weekly_bin191.fits
Exposure cube: /scratch/kocevski/465227/ltcube_354499201_355104001_4FGL_J1248.3+5820_weekly_bin191.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/465227/Model_4FGL_J1248.3+5820_weekly_bin191.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) = 14271.4952956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.0237       1.0000         .10000E-03   10000.    
     3 'norm      '    7.4216       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .48892E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.3332       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.9230       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.3485       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.8195       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.298       1.0000         .10000E-03   10000.    
    16 'norm      '    3.9231       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .13725E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.275       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .26941E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    2.7982       1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.182       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.9792       1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.173       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    19.645       1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .87454E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .93339       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .94578       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=   14271.38     FROM MIGRAD    STATUS=CONVERGED    905 CALLS     4003 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7221        .17995E-07** at limit **
   2  Prefactor     7.0260        14.259       -.16711E-06   -.41353E-04
   3  norm          7.4219        7.0846        .19504E-05   -.59259E-04
   4  Prefactor     .10000E-03    .79424       -.28836E-07** at limit **
   5  norm          3.3333        2.4605       -.13215E-07   -.68520E-04
   6  Prefactor     .10000E-03    1.5659       -.11126E-08** at limit **
   7  Prefactor     .10000E-03    3.1344       -.16340E-07** at limit **
   8  norm          3.9231        1.4915        .38091E-07   -.65570E-04
   9  Prefactor     .10000E-03    2.5755        .28508E-07** at limit **
  10  Prefactor     .10000E-03    22.913       -.21671E-05** at limit **
  11  norm          2.3485        3.3187        .10406E-06   -.58893E-03
  12  Prefactor     .10000E-03    4.0167        .42158E-07** at limit **
  13  Prefactor     .10000E-03    1.0918        .96099E-08** at limit **
  14  norm          3.8196        1.2016       -.46973E-08   -.50101E-04
  15  Prefactor     25.297        14.358        .37501E-06   -.18986E-04
  16  norm          3.9231        1.4077        .33594E-08   -.15470E-03
  17  Prefactor     .10000E-03    11.094       -.15751E-05** at limit **
  18  Prefactor     .10000E-03    3.9652        .73466E-07** at limit **
  19  norm          .10000E-03    .96064       -.24120E-06** at limit **
  20  Prefactor     .10000E-03    11.281        .16406E-05** at limit **
  21  Prefactor     14.266        29.015       -.24414E-06   -.58759E-04
  22  Prefactor     .10031E-03    6.9838        .19647E-05** at limit **
  23  norm          2.7950        2.3704        .17911E-06   -.11478E-02
  24  Prefactor     18.170        26.984       -.31191E-06   -.15608E-03
  25  Prefactor     3.9834        2.7400        .22118E-06   -.92244E-04
  26  Prefactor     18.175        19.654        .17641E-06   -.15997E-04
  27  Prefactor     .10000E-03    5.1890       -.13227E-06** at limit **
  28  norm          19.645        23.395        .17349E-07    .13338E-05
  29  norm          .10000E-03    .65286        .25168E-08** at limit **
  30  Prefactor     .10001E-03    22.924        .45083E-05** at limit **
  31  Prefactor     .10000E-03    130.72       -.12029E-05** at limit **
  32  Normalizat    .93331        .10165        .26807E-08   -.33701E-03
  33  Prefactor     .94583        .12116       -.31638E-06   -.20145E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.02602
  norm       = 7.42193
  Prefactor  = 0.0001
  norm       = 3.33333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.92305
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 2.34849
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.81956
  Prefactor  = 25.2974
  norm       = 3.92313
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 14.2664
  Prefactor  = 0.000100307
  norm       = 2.79497
  Prefactor  = 18.1698
  Prefactor  = 3.98341
  Prefactor  = 18.1755
  Prefactor  = 0.0001
  norm       = 19.6452
  norm       = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.000100001
  Normalizat = 0.933306
  Prefactor  = 0.945833
 **********
 **   18 **HESSE 
 **********

 FCN=   14271.38     FROM HESSE     STATUS=OK           699 CALLS     4702 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7514        .15295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.0260        14.265        .15137E-03   -1.5178    
   3  norm          7.4219        7.3776        .73610E-03   -1.5163    
   4  Prefactor     .10000E-03    7.1372        .20634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.3333        2.4509        .15224E-03   -1.5343    
   6  Prefactor     .10000E-03    1.5874        .14586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.1390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.9231        1.4922        .84947E-04   -1.5312    
   9  Prefactor     .10000E-03    2.5820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.3485        3.4042        .25606E-03   -1.5401    
  12  Prefactor     .10000E-03    4.0321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1233        .24368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.8196        1.2019        .71401E-04   -1.5317    
  15  Prefactor     25.297        14.371        .39822E-03   -1.4702    
  16  norm          3.9231        1.4081        .82109E-04   -1.5312    
  17  Prefactor     .10000E-03    11.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.0915        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.2059        .21614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.266        27.985        .10601E-03   -1.4952    
  22  Prefactor     .10031E-03    37.209        .51156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.7950        2.2086        .15148E-03   -1.5374    
  24  Prefactor     18.170        26.960        .93928E-04   -1.4855    
  25  Prefactor     3.9834        2.7245        .15402E-03   -1.5309    
  26  Prefactor     18.175        19.673        .93952E-04   -1.4855    
  27  Prefactor     .10000E-03    5.2807        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          19.645        23.395        .90365E-04   -1.4821    
  29  norm          .10000E-03    .65898        .94224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10001E-03    25.008        .41696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    130.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .93331        .11932        .21528E-03   -.95299    
  33  Prefactor     .94583        .14183        .26792E-03   -.94557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.36874e-09
Minuit parameter uncertainties:
  1  1.47797e-06
  2  14.2716
  3  7.37852
  4  7.00757e-05
  5  2.45098
  6  6.72469e-08
  7  1.50711e-06
  8  1.49218
  9  1.85226e-06
  10  0.000563845
  11  3.40446
  12  1.41233e-05
  13  9.75604e-08
  14  1.20193
  15  14.3725
  16  1.40808
  17  0.000286658
  18  4.42036e-06
  19  0.00012232
  20  0.000298189
  21  28.0111
  22  0.00676884
  23  2.20865
  24  26.9777
  25  2.72456
  26  19.6798
  27  1.60628e-05
  28  23.4062
  29  9.35673e-08
  30  0.0010136
  31  0.000748222
  32  0.119355
  33  0.141883
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  3.820e+00  1.202e+00  1.000e-04  1.000e+04 ( 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  0.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:  9.458e-01  1.419e-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.333e-01  1.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 54.11
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 3.37e-08 +/- 1.06e-08
Energy Flux (Fixed Index): 3.37e-05 +/- 1.06e-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) = 14268.5993791
delta logL = 2.78351186997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14268.5970648
delta logL = 2.78582610338

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4140       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2949       1.0000          .0000       5.0000    
     3 'Normalizat'    .94529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94077       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=   14268.60     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      217 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4133        1.1297        .54735E-02   -.26348E-03
   2  alpha         1.2948        .17961        .22378       -.49909E-04
   3  Normalizat    .94530        .95503E-01    .45478E-01    .10699E-03
   4  Prefactor     .94076        .12022        .45522E-01   -.84615E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.41331
  alpha      = 1.29477
  Normalizat = 0.945302
  Prefactor  = 0.940755
 **********
 **   18 **HESSE 
 **********

 FCN=   14268.60     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4133        1.2719        .70701E-04   -1.5338    
   2  alpha         1.2948        .21063        .94939E-02   -.50304    
   3  Normalizat    .94530        .11155        .21405E-03   -.94886    
   4  Prefactor     .94076        .14046        .26863E-03   -.94731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.42836e-11
Minuit parameter uncertainties:
  1  1.27189
  2  0.21096
  3  0.111574
  4  0.140511
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/465227': 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) = 14268.5970645
delta logL = 2.78582646358

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  3.413e+00  1.272e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.295e+00  2.110e-01  0.000e+00  5.000e+00 ( 1.000e+00)
366         beta:  4.589e-02  0.000e+00  0.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:  9.408e-01  1.405e-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.453e-01  1.116e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 59.67
Ra Dec: 192.084 58.343
Photon Index (Free Index): 1.29 +/- 0.21
Photon Flux (Free Index): 2.04e-08 +/- 8.05e-09
Energy Flux (Free Index): 9.00e-05 +/- 4.72e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/465227/cmap_HighResolution_354499201_355104001_4FGL_J1248.3+5820_weekly_bin191.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.37e-08', energy_flux2='9.00e-05', photon_flux_error='1.06e-08', dlogl='2.79e+00', energy_flux='3.37e-05', photon_flux2='2.04e-08', job_status='DONE', time_completed='2021-07-20 02:51:14.464962', photon_index_error2='0.21', photon_index2='1.29', ts='54.11', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='4.72e-05', EG='0.93', time_epoch_completed='1626774674.47', return_code='0', job_id='465227', GAL2='0.94', EG2='0.95', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='8.05e-09', ts2='59.67', photon_index='1.81' WHERE bin_id='191' AND source_name='4FGL J1248.3+5820' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 20 02:51:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 465227: <4FGL_J1248.3+5820_weekly_bin191> in cluster <slac> Done

Job <4FGL_J1248.3+5820_weekly_bin191> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Jul 19 13:40:59 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 19 13:45:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 19 13:45:01 2021
Terminated at Tue Jul 20 02:51:15 2021
Results reported at Tue Jul 20 02:51:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_weekly_bin191 192.084 58.3432 354499201 355104001 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 :                                   1653.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             57.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   47173 sec.
    Turnaround time :                            47416 sec.

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

