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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin70
RA = 342.246, Dec = 21.1159
tmin = 257472001, tmax = 257731201
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='477475', job_status='RUN', time_executed='2021-09-28 20:51:03.830507', time_epoch_executed='1632887463.83' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='70'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/477475

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/477475/ft1_4FGL_J2248.9+2106_daily_bin70.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/477475/ft2_4FGL_J2248.9+2106_daily_bin70.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/477475/ft1_4FGL_J2248.9+2106_daily_bin70.fits outfile=/scratch/kocevski/477475/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin70.fits ra=342.246 dec=21.1159 rad=12.0 tmin=257472001.0 tmax=257731201.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 2.03
user 1.82
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/477475/ft2_4FGL_J2248.9+2106_daily_bin70.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/477475/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin70.fits evtable="EVENTS" outfile="/scratch/kocevski/477475/ft1_filtered_4FGL_J2248.9+2106_daily_bin70.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.52
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/477475/ft1_filtered_4FGL_J2248.9+2106_daily_bin70.fits" evtable="EVENTS" scfile=/scratch/kocevski/477475/ft2_4FGL_J2248.9+2106_daily_bin70.fits sctable="SC_DATA" outfile=/scratch/kocevski/477475/ltcube_257472001_257731201_4FGL_J2248.9+2106_daily_bin70.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/477475/ft2_4FGL_J2248.9+2106_daily_bin70.fits
.....................!
real 12.70
user 12.34
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/477475/ft1_filtered_4FGL_J2248.9+2106_daily_bin70.fits evtable="EVENTS" scfile=/scratch/kocevski/477475/ft2_4FGL_J2248.9+2106_daily_bin70.fits sctable="SC_DATA" expcube=/scratch/kocevski/477475/ltcube_257472001_257731201_4FGL_J2248.9+2106_daily_bin70.fits outfile=/scratch/kocevski/477475/expmap_257472001_257731201_4FGL_J2248.9+2106_daily_bin70.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/477475/ltcube_257472001_257731201_4FGL_J2248.9+2106_daily_bin70.fits
.....................!
real 191.73
user 187.21
sys 4.13

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/477475/ft1_filtered_4FGL_J2248.9+2106_daily_bin70.fits scfile=/scratch/kocevski/477475/ft2_4FGL_J2248.9+2106_daily_bin70.fits outfile=/scratch/kocevski/477475/cmap_257472001_257731201_4FGL_J2248.9+2106_daily_bin70.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/477475/ft1_filtered_4FGL_J2248.9+2106_daily_bin70.fits scfile=/scratch/kocevski/477475/ft2_4FGL_J2248.9+2106_daily_bin70.fits outfile=/scratch/kocevski/477475/cmap_HighResolution_257472001_257731201_4FGL_J2248.9+2106_daily_bin70.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/477475/ft1_filtered_4FGL_J2248.9+2106_daily_bin70.fits', '/scratch/kocevski/477475/ft2_4FGL_J2248.9+2106_daily_bin70.fits', expMap='/scratch/kocevski/477475/expmap_257472001_257731201_4FGL_J2248.9+2106_daily_bin70.fits', expCube='/scratch/kocevski/477475/ltcube_257472001_257731201_4FGL_J2248.9+2106_daily_bin70.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/477475/Model_4FGL_J2248.9+2106_daily_bin70.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/477475/ft1_filtered_4FGL_J2248.9+2106_daily_bin70.fits
Spacecraft file(s): /scratch/kocevski/477475/ft2_4FGL_J2248.9+2106_daily_bin70.fits
Exposure map: /scratch/kocevski/477475/expmap_257472001_257731201_4FGL_J2248.9+2106_daily_bin70.fits
Exposure cube: /scratch/kocevski/477475/ltcube_257472001_257731201_4FGL_J2248.9+2106_daily_bin70.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/477475/Model_4FGL_J2248.9+2106_daily_bin70.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) = 9080.71861424

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24547E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2441       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.123       1.0000         .10000E-03   10000.    
     4 'norm      '    .45082       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9086       1.0000         .10000E-03   10000.    
     6 'Prefactor '    160.63       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3190       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5693       1.0000         .10000E-03   10000.    
    10 'norm      '    2.2801       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22691       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3142       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .56616       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.0262       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6911       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.0096       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0384       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88311       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=   9080.713     FROM MIGRAD    STATUS=CONVERGED   1036 CALLS     3838 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    208.08        .36285E-03** at limit **
   2  norm          1.2441        .95966        .80615E-04    .15231E-03
   3  Prefactor     15.123        16.019        .10299E-03   -.75061E-05
   4  norm          .45039        5.4330        .41878E-03   -.13867E-03
   5  Prefactor     3.9068        11.707        .10204E-02    .52344E-04
   6  Prefactor     160.61        106.37        .15909E-03   -.44735E-04
   7  Prefactor     .10000E-03    12.720        .36285E-03** at limit **
   8  Prefactor     1.3190        .25898        .19765E-04    .11584E-02
   9  Prefactor     1.5680        10.013        .33940E-03   -.99150E-05
  10  norm          2.2811        1.2275        .71514E-04    .12972E-03
  11  Prefactor     .14805        15.313        .98172E-01    .22196E-03
  12  norm          1.3141        1.3188        .10834E-03   -.60863E-05
  13  Prefactor     .10000E-03    7.4130        .18142E-02** at limit **
  14  Prefactor     .10000E-03    13.554        .36285E-03** at limit **
  15  Prefactor     .10000E-03    6.8999        .18142E-02** at limit **
  16  Prefactor     .56615        .14861        .17633E-04    .88972E-03
  17  Prefactor     .10000E-03    6.8890        .18142E-02** at limit **
  18  Prefactor     7.0246        8.1829        .15134E-03    .35907E-04
  19  Prefactor     3.6900        12.712        .10511E-02    .72706E-04
  20  Prefactor     .10000E-03    27.671        .36285E-03** at limit **
  21  Prefactor     .10000E-03    4.9631        .18142E-02** at limit **
  22  Prefactor     .10000E-03    3.9412        .18142E-02** at limit **
  23  Prefactor     5.0081        13.173        .17967E-03    .45559E-05
  24  Normalizat    1.0384        .23029        .32990E-03    .15439E-03
  25  Prefactor     .88322        .12231        .19471E-03    .19831E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 1.24406
  Prefactor  = 15.1229
  norm       = 0.450392
  Prefactor  = 3.90678
  Prefactor  = 160.607
  Prefactor  = 0.000100001
  Prefactor  = 1.31899
  Prefactor  = 1.56803
  norm       = 2.28112
  Prefactor  = 0.148053
  norm       = 1.31412
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.566151
  Prefactor  = 0.0001
  Prefactor  = 7.02463
  Prefactor  = 3.69002
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.00813
  Normalizat = 1.03837
  Prefactor  = 0.883218
 **********
 **   18 **HESSE 
 **********

 FCN=   9080.713     FROM HESSE     STATUS=OK           415 CALLS     4253 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    208.08        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2441        .95962        .32246E-05   -1.5485    
   3  Prefactor     15.123        16.018        .41197E-05   -1.4930    
   4  norm          .45039        5.4301        .16751E-04   -1.5574    
   5  Prefactor     3.9068        11.699        .40814E-04   -1.5313    
   6  Prefactor     160.61        106.36        .63636E-05   -1.3167    
   7  Prefactor     .10000E-03    12.720        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.3190        .25881        .79061E-06   -1.5478    
   9  Prefactor     1.5680        10.009        .13576E-04   -1.5458    
  10  norm          2.2811        1.2263        .28606E-05   -1.5406    
  11  Prefactor     .14805        13.712        .10682       -1.5631    
  12  norm          1.3141        1.3188        .43336E-05   -1.5479    
  13  Prefactor     .10000E-03    7.4132        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.555        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.9005        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .56615        .14860        .70534E-06   -1.5557    
  17  Prefactor     .10000E-03    6.8920        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.0246        8.1804        .60537E-05   -1.5178    
  19  Prefactor     3.6900        12.704        .42043E-04   -1.5324    
  20  Prefactor     .10000E-03    27.673        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.9632        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.9442        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.0081        13.172        .71867E-05   -1.5260    
  24  Normalizat    1.0384        .23046        .13196E-04   -.91756    
  25  Prefactor     .88322        .12240        .38941E-04   -.96730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76114e-10
Minuit parameter uncertainties:
  1  0.0013426
  2  0.959636
  3  16.0229
  4  3.12773
  5  11.7059
  6  106.49
  7  0.000189557
  8  0.258814
  9  7.92511
  10  1.22634
  11  2.8493
  12  1.3188
  13  9.61347e-06
  14  0.000203753
  15  1.01962e-05
  16  0.148602
  17  7.59992e-05
  18  8.1817
  19  12.7129
  20  0.000414198
  21  1.18653e-05
  22  5.05683e-05
  23  13.1796
  24  0.230682
  25  0.122439
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  2.038e-04  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:  8.832e-01  1.224e-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.038e+00  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 342.246 21.116
Photon Flux Upper Limit: 6.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/477475/likelihoodResults_257472001_257731201_4FGL_J2248.9+2106_daily_bin70.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) = 9080.71334561
delta logL = -0.000352119070158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9080.71299351
delta logL = -1.86391844181e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2916       1.0000          .0000       10.000    
     3 'Normalizat'    1.0384       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88324       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.

 FCN=   9080.713     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      217 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7209        .90712E-02** at limit **
   2  Index         2.2855        5.7310        .50000        .36421E-05
   3  Normalizat    1.0384        .31696E-02    .74546E-01    .27919E-04
   4  Prefactor     .88322        .17486E-02    .44791E-01    .96224E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.28552
  Normalizat = 1.03837
  Prefactor  = 0.883218
 **********
 **   18 **HESSE 
 **********

 FCN=   9080.713     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      250 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    414.85        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2855        5.0714        .50000       -.57388    
   3  Normalizat    1.0384        .27608E-01    .32990E-03   -.91756    
   4  Prefactor     .88322        .15249E-01    .19471E-03   -.96730    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.89524e-07
Minuit parameter uncertainties:
  1  1.14658e-05
  2  501.423
  3  0.0276085
  4  0.0152492
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/477475': 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) = 9080.71299348
delta logL = 1.1268639355e-08

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  1.147e-05  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.286e+00  5.014e+02  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:  8.832e-01  1.525e-02  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.038e+00  2.761e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 342.246 21.116

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/477475/cmap_HighResolution_257472001_257731201_4FGL_J2248.9+2106_daily_bin70.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-03', job_status='DONE', photon_flux_upper_limit='6.89e-08', time_completed='2021-09-28 21:06:46.736420', job_id='477475', GAL2='0.88', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1632888406.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.13e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='70' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:06:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 477475: <4FGL_J2248.9+2106_daily_bin70> in cluster <slac> Done

Job <4FGL_J2248.9+2106_daily_bin70> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 20:50:20 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:50:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 20:50:21 2021
Terminated at Tue Sep 28 21:06:47 2021
Results reported at Tue Sep 28 21:06:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin70 342.246 21.1159 257472001 257731201 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 :                                   934.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            987 sec.

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

