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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1663
RA = 342.246, Dec = 21.1159
tmin = 670377601, tmax = 670636801
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='261589', job_status='RUN', time_executed='2022-04-03 00:38:30.712502', time_epoch_executed='1648971510.71' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1663'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261589

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261589/ft1_4FGL_J2248.9+2106_daily_bin1663.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261589/ft2_4FGL_J2248.9+2106_daily_bin1663.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261589/ft1_4FGL_J2248.9+2106_daily_bin1663.fits outfile=/scratch/kocevski/261589/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1663.fits ra=342.246 dec=21.1159 rad=12.0 tmin=670377601.0 tmax=670636801.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.81
user 3.60
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/261589/ft2_4FGL_J2248.9+2106_daily_bin1663.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261589/ft2_4FGL_J2248.9+2106_daily_bin1663.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/261589/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1663.fits evtable="EVENTS" outfile="/scratch/kocevski/261589/ft1_filtered_4FGL_J2248.9+2106_daily_bin1663.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

Number of photons that the gtmktime cut: 792

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261589/ft1_filtered_4FGL_J2248.9+2106_daily_bin1663.fits" evtable="EVENTS" scfile=/scratch/kocevski/261589/ft2_4FGL_J2248.9+2106_daily_bin1663.fits sctable="SC_DATA" outfile=/scratch/kocevski/261589/ltcube_670377601_670636801_4FGL_J2248.9+2106_daily_bin1663.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/261589/ft2_4FGL_J2248.9+2106_daily_bin1663.fits
.....................!
real 12.02
user 11.67
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261589/ft1_filtered_4FGL_J2248.9+2106_daily_bin1663.fits evtable="EVENTS" scfile=/scratch/kocevski/261589/ft2_4FGL_J2248.9+2106_daily_bin1663.fits sctable="SC_DATA" expcube=/scratch/kocevski/261589/ltcube_670377601_670636801_4FGL_J2248.9+2106_daily_bin1663.fits outfile=/scratch/kocevski/261589/expmap_670377601_670636801_4FGL_J2248.9+2106_daily_bin1663.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/261589/ltcube_670377601_670636801_4FGL_J2248.9+2106_daily_bin1663.fits
.....................!
real 190.99
user 186.18
sys 4.51

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

Setting source of interest to:
4FGL J2248.9+2106 @ 342.246 21.1159

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/261589/ft1_filtered_4FGL_J2248.9+2106_daily_bin1663.fits scfile=/scratch/kocevski/261589/ft2_4FGL_J2248.9+2106_daily_bin1663.fits outfile=/scratch/kocevski/261589/cmap_670377601_670636801_4FGL_J2248.9+2106_daily_bin1663.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=342.246 yref=21.1159 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261589/ft1_filtered_4FGL_J2248.9+2106_daily_bin1663.fits scfile=/scratch/kocevski/261589/ft2_4FGL_J2248.9+2106_daily_bin1663.fits outfile=/scratch/kocevski/261589/cmap_HighResolution_670377601_670636801_4FGL_J2248.9+2106_daily_bin1663.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=342.246 yref=21.1159 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261589/ft1_filtered_4FGL_J2248.9+2106_daily_bin1663.fits evtable="EVENTS" scfile=/scratch/kocevski/261589/ft2_4FGL_J2248.9+2106_daily_bin1663.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261589/Model_4FGL_J2248.9+2106_daily_bin1663.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/261589/ft1_filtered_4FGL_J2248.9+2106_daily_bin1663.fits.....................!
real 89.60
user 88.27
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/261589/ft1_filtered_4FGL_J2248.9+2106_daily_bin1663.fits', '/scratch/kocevski/261589/ft2_4FGL_J2248.9+2106_daily_bin1663.fits', expMap='/scratch/kocevski/261589/expmap_670377601_670636801_4FGL_J2248.9+2106_daily_bin1663.fits', expCube='/scratch/kocevski/261589/ltcube_670377601_670636801_4FGL_J2248.9+2106_daily_bin1663.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/261589/Model_4FGL_J2248.9+2106_daily_bin1663.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2248.9+2106'

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.757e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.298e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.432e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/261589/ft1_filtered_4FGL_J2248.9+2106_daily_bin1663.fits
Spacecraft file(s): /scratch/kocevski/261589/ft2_4FGL_J2248.9+2106_daily_bin1663.fits
Exposure map: /scratch/kocevski/261589/expmap_670377601_670636801_4FGL_J2248.9+2106_daily_bin1663.fits
Exposure cube: /scratch/kocevski/261589/ltcube_670377601_670636801_4FGL_J2248.9+2106_daily_bin1663.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/261589/Model_4FGL_J2248.9+2106_daily_bin1663.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) = 8626.11870626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6036       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.686       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0039       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .78154       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.1775       1.0000         .10000E-03   10000.    
    10 'norm      '    4.1253       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.9419       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.749       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .47467       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0182       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.1176       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2212       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91541       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8626.103     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2440 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.037        .22009E-05** at limit **
   2  norm          .10000E-03    .29767        .12515E-07** at limit **
   3  Prefactor     7.6021        12.715        .20783E-05   -.30485E-03
   4  norm          .10000E-03    2.2431        .43643E-08** at limit **
   5  Prefactor     27.681        19.453       -.33358E-06   -.12568E-03
   6  Prefactor     .10000E-03    48.644       -.96874E-06** at limit **
   7  Prefactor     4.0039        7.0306        .83369E-07   -.46373E-04
   8  Prefactor     .78145        .26646        .19657E-07   -.38171E-03
   9  Prefactor     7.1793        7.6860       -.33045E-07    .27536E-05
  10  norm          4.1254        1.3300        .10906E-07    .25918E-04
  11  Prefactor     .10000E-03    15.053       -.87583E-06** at limit **
  12  norm          2.9417        1.9269        .26919E-07   -.15236E-04
  13  Prefactor     .10000E-03    14.888       -.92225E-07** at limit **
  14  Prefactor     13.750        11.453        .34006E-07   -.15429E-04
  15  Prefactor     .10000E-03    4.8748       -.35504E-07** at limit **
  16  Prefactor     .47473        .15251       -.11828E-07   -.10225E-02
  17  Prefactor     .10000E-03    4.3485        .15203E-07** at limit **
  18  Prefactor     1.0167        5.3854        .26183E-05   -.34973E-03
  19  Prefactor     .10000E-03    10.768        .29590E-05** at limit **
  20  Prefactor     .10000E-03    20.073       -.22947E-06** at limit **
  21  Prefactor     .10000E-03    15.502       -.15548E-05** at limit **
  22  Prefactor     5.1189        6.6306        .19820E-06    .10093E-04
  23  Prefactor     .10000E-03    10.494       -.17105E-05** at limit **
  24  Normalizat    1.2208        .21909       -.13647E-06   -.54617E-04
  25  Prefactor     .91572        .11283       -.36090E-06   -.48577E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 7.6021
  norm       = 0.0001
  Prefactor  = 27.6811
  Prefactor  = 0.0001
  Prefactor  = 4.00388
  Prefactor  = 0.781452
  Prefactor  = 7.17932
  norm       = 4.12544
  Prefactor  = 0.0001
  norm       = 2.94172
  Prefactor  = 0.0001
  Prefactor  = 13.7498
  Prefactor  = 0.0001
  Prefactor  = 0.474733
  Prefactor  = 0.0001
  Prefactor  = 1.01674
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.11894
  Prefactor  = 0.000100001
  Normalizat = 1.22076
  Prefactor  = 0.915721
 **********
 **   18 **HESSE 
 **********

 FCN=   8626.103     FROM HESSE     STATUS=OK           427 CALLS     2867 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .30438        .49467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.6021        13.118        .72717E-03   -1.5156    
   4  norm          .10000E-03    2.2674        .13581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.681        19.597        .76138E-04   -1.4655    
   6  Prefactor     .10000E-03    48.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0039        7.0192        .20155E-03   -1.5308    
   8  Prefactor     .78145        .26574        .25212E-04   -1.5531    
   9  Prefactor     7.1793        7.6989        .14972E-03   -1.5172    
  10  norm          4.1254        1.3300        .58379E-04   -1.5302    
  11  Prefactor     .10000E-03    15.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.9417        1.9230        .98398E-04   -1.5365    
  13  Prefactor     .10000E-03    14.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.750        11.449        .10802E-03   -1.4966    
  15  Prefactor     .10000E-03    4.8759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .47473        .15177        .19505E-04   -1.5570    
  17  Prefactor     .10000E-03    4.3636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.0167        5.8304        .43236E-03   -1.5506    
  19  Prefactor     .10000E-03    11.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.1189        6.6360        .17772E-03   -1.5255    
  23  Prefactor     .10000E-03    10.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2208        .26215        .33471E-03   -.85964    
  25  Prefactor     .91572        .13485        .20271E-03   -.95594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1148e-09
Minuit parameter uncertainties:
  1  0.000435029
  2  2.95412e-07
  3  13.1226
  4  6.21895e-07
  5  19.601
  6  0.000287735
  7  7.02067
  8  0.265742
  9  7.69999
  10  1.33
  11  0.000135282
  12  1.92309
  13  1.4462e-05
  14  11.4504
  15  3.53903e-06
  16  0.151773
  17  1.03772e-06
  18  4.86996
  19  0.000396942
  20  4.44675e-05
  21  0.00025902
  22  6.63692
  23  0.000241712
  24  0.262438
  25  0.134899
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.375e+01  1.145e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.298e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.432e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  9.157e-01  1.349e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  1.221e+00  2.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.95
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 4.81e-08 +/- 4.00e-08
Energy Flux (Fixed Index): 1.82e-05 +/- 1.52e-05

TS (Fixed Index): 2.95
Ra Dec: 342.246 21.116
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261589/likelihoodResults_670377601_670636801_4FGL_J2248.9+2106_daily_bin1663.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) = 8625.96178771
delta logL = 0.141022682898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8625.95550403
delta logL = 0.147306363475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.094       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9164       1.0000          .0000       10.000    
     3 'Normalizat'    1.2404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91027       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+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.

 FCN=   8625.956     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      304 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.094        14.626        .96873E-04   -.17876E-03
   2  Index         1.9164        .70864        .11201E-01   -.73804E-04
   3  Normalizat    1.2403        .25239        .33245E-03    .68872E-04
   4  Prefactor     .91030        .13440        .20326E-03    .12820E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.094
  Index      = 1.9164
  Normalizat = 1.24035
  Prefactor  = 0.910297
 **********
 **   18 **HESSE 
 **********

 FCN=   8625.956     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.094        14.526        .19375E-04   -1.4881    
   2  Index         1.9164        .70351        .44803E-03   -.66457    
   3  Normalizat    1.2403        .25248        .13298E-04   -.85365    
   4  Prefactor     .91030        .13451        .81302E-05   -.95782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5059e-10
Minuit parameter uncertainties:
  1  14.529
  2  0.707313
  3  0.252729
  4  0.134559
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261589': 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) = 8625.955504
delta logL = 0.147306394505

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.709e+01  1.453e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  1.916e+00  7.073e-01  0.000e+00  1.000e+01 (-1.000e+00)
309        Scale:  1.432e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  9.103e-01  1.346e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  1.240e+00  2.527e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.25
Ra Dec: 342.246 21.116
Photon Index (Free Index): 1.92 +/- 0.71
Photon Flux (Free Index): 3.06e-08 +/- 4.05e-08
Energy Flux (Free Index): 2.62e-05 +/- 3.23e-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/261589/cmap_HighResolution_670377601_670636801_4FGL_J2248.9+2106_daily_bin1663.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='4.81e-08', energy_flux2='2.62e-05', photon_flux_error='4.00e-08', dlogl='1.47e-01', energy_flux='1.82e-05', photon_flux2='3.06e-08', job_status='DONE', time_completed='2022-04-03 00:51:30.645702', photon_index_error2='0.71', photon_index2='1.92', ts='2.95', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='3.23e-05', EG='1.22', time_epoch_completed='1648972290.65', return_code='0', job_id='261589', GAL2='0.91', EG2='1.24', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='4.05e-08', ts2='3.25', photon_index='2.30' WHERE bin_id='1663' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Apr  3 00:51:30 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 261589: <4FGL_J2248.9+2106_daily_bin1663> in cluster <slac> Done

Job <4FGL_J2248.9+2106_daily_bin1663> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Apr  3 00:35:40 2022
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr  3 00:35:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr  3 00:35:42 2022
Terminated at Sun Apr  3 00:51:31 2022
Results reported at Sun Apr  3 00:51:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1663 342.246 21.1159 670377601 670636801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2248.9+2106 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   782.07 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             290.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            951 sec.

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

