/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 116 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 = 7636
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1334
RA = 342.246, Dec = 21.1159
tmin = 585100801, tmax = 585360001
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='483543', job_status='RUN', time_executed='2021-09-28 21:12:36.193336', time_epoch_executed='1632888756.19' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483543

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483543/ft1_4FGL_J2248.9+2106_daily_bin1334.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483543/ft2_4FGL_J2248.9+2106_daily_bin1334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483543/ft1_4FGL_J2248.9+2106_daily_bin1334.fits outfile=/scratch/kocevski/483543/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1334.fits ra=342.246 dec=21.1159 rad=12.0 tmin=585100801.0 tmax=585360001.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.06
user 2.80
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/483543/ft2_4FGL_J2248.9+2106_daily_bin1334.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/483543/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1334.fits evtable="EVENTS" outfile="/scratch/kocevski/483543/ft1_filtered_4FGL_J2248.9+2106_daily_bin1334.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.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483543/ft1_filtered_4FGL_J2248.9+2106_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/483543/ft2_4FGL_J2248.9+2106_daily_bin1334.fits sctable="SC_DATA" expcube=/scratch/kocevski/483543/ltcube_585100801_585360001_4FGL_J2248.9+2106_daily_bin1334.fits outfile=/scratch/kocevski/483543/expmap_585100801_585360001_4FGL_J2248.9+2106_daily_bin1334.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/483543/ltcube_585100801_585360001_4FGL_J2248.9+2106_daily_bin1334.fits
.....................!
real 190.64
user 185.57
sys 4.69

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/483543/ft1_filtered_4FGL_J2248.9+2106_daily_bin1334.fits scfile=/scratch/kocevski/483543/ft2_4FGL_J2248.9+2106_daily_bin1334.fits outfile=/scratch/kocevski/483543/cmap_585100801_585360001_4FGL_J2248.9+2106_daily_bin1334.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/483543/ft1_filtered_4FGL_J2248.9+2106_daily_bin1334.fits scfile=/scratch/kocevski/483543/ft2_4FGL_J2248.9+2106_daily_bin1334.fits outfile=/scratch/kocevski/483543/cmap_HighResolution_585100801_585360001_4FGL_J2248.9+2106_daily_bin1334.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11484E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10424E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.941       1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.124       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .57799       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.2850       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.318       1.0000         .10000E-03   10000.    
    12 'norm      '    3.8111       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.731       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .37344E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4322       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2852       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10622E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.2092       1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.737       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93631       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97788       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=   10472.58     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     3346 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.861       -.47572E-06** at limit **
   2  norm          .10000E-03    .43310        .98379E-07** at limit **
   3  Prefactor     14.938        17.619       -.14038E-05   -.28032E-04
   4  norm          .10000E-03    2.5010        .45716E-07** at limit **
   5  Prefactor     .10000E-03    10.059        .82926E-07** at limit **
   6  Prefactor     21.048        115.00        .15669E-04    .17925E-07
   7  Prefactor     .10000E-03    4.1456        .59403E-07** at limit **
   8  Prefactor     .57795        .21858        .76014E-08    .85198E-04
   9  Prefactor     .10000E-03    5.5922        .17744E-07** at limit **
  10  norm          3.2847        1.1574       -.71391E-07   -.20257E-03
  11  Prefactor     15.320        13.960        .63607E-07   -.51996E-05
  12  norm          3.8112        1.8140        .15523E-07   -.34947E-05
  13  Prefactor     .10000E-03    32.141        .21021E-05** at limit **
  14  Prefactor     30.732        12.357       -.11349E-06   -.86650E-05
  15  Prefactor     .10526E-03    17.632       -.22043E-05** at limit **
  16  Prefactor     1.4321        .22724       -.88832E-08    .15859E-02
  17  Prefactor     2.2856        4.7827        .38420E-05    .75538E-04
  18  Prefactor     .10000E-03    1.7542       -.19723E-08** at limit **
  19  Prefactor     .10000E-03    4.8082        .35939E-07** at limit **
  20  Prefactor     .10000E-03    4.9525        .33578E-08** at limit **
  21  Prefactor     .10000E-03    32.908       -.91020E-06** at limit **
  22  Prefactor     4.2194        7.0972        .16622E-05    .76778E-04
  23  Prefactor     21.720        15.665       -.18303E-05   -.51257E-04
  24  Normalizat    .93613        .20316       -.45684E-06    .14240E-04
  25  Prefactor     .97794        .10251       -.31672E-06    .42818E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.9384
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.0476
  Prefactor  = 0.0001
  Prefactor  = 0.577954
  Prefactor  = 0.0001
  norm       = 3.2847
  Prefactor  = 15.32
  norm       = 3.81121
  Prefactor  = 0.0001
  Prefactor  = 30.7319
  Prefactor  = 0.000105261
  Prefactor  = 1.4321
  Prefactor  = 2.28562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.21941
  Prefactor  = 21.72
  Normalizat = 0.936131
  Prefactor  = 0.977941
 **********
 **   18 **HESSE 
 **********

 FCN=   10472.58     FROM HESSE     STATUS=OK           437 CALLS     3783 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .69071        .13099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.938        17.621        .10362E-03   -1.4935    
   4  norm          .10000E-03    2.5531        .15802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.048        114.86        .87148E-04   -1.4790    
   7  Prefactor     .10000E-03    4.1555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .57795        .21658        .28396E-04   -1.5556    
   9  Prefactor     .10000E-03    5.6107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.2847        1.1561        .60893E-04   -1.5345    
  11  Prefactor     15.320        13.957        .10234E-03   -1.4925    
  12  norm          3.8112        1.8148        .90924E-04   -1.5317    
  13  Prefactor     .10000E-03    32.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.732        12.362        .72277E-04   -1.4599    
  15  Prefactor     .10526E-03    18.710        .12340       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.4321        .22914        .17658E-04   -1.5469    
  17  Prefactor     2.2856        4.7875        .13579E-02   -1.5406    
  18  Prefactor     .10000E-03    1.7592        .13235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.8205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.9606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.2194        7.1088        .19642E-03   -1.5297    
  23  Prefactor     21.720        15.667        .85912E-04   -1.4776    
  24  Normalizat    .93613        .23692        .37658E-03   -.95202    
  25  Prefactor     .97794        .12025        .19666E-03   -.93468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54986e-10
Minuit parameter uncertainties:
  1  1.24883e-05
  2  1.72161e-06
  3  17.6268
  4  3.52543e-06
  5  5.74131e-06
  6  98.6286
  7  5.34886e-06
  8  0.216581
  9  1.01395e-06
  10  1.15608
  11  13.9595
  12  1.81482
  13  2.55549e-05
  14  12.3626
  15  0.0198484
  16  0.229139
  17  4.78834
  18  5.97529e-07
  19  2.77732e-06
  20  1.67854e-06
  21  8.42281e-05
  22  7.11021
  23  15.6699
  24  0.237181
  25  0.120287
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  3.073e+01  1.236e+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.779e-01  1.203e-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:  9.361e-01  2.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.30
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.07e-07 +/- 4.32e-08
Energy Flux (Fixed Index): 4.08e-05 +/- 1.64e-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) = 10471.836386
delta logL = 0.744603588533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10471.8362496
delta logL = 0.744739980788

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.398       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8840       1.0000          .0000       10.000    
     3 'Normalizat'    .97314       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96641       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=   10471.84     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      272 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.346        320.39        .15392E-02    .10345E-03
   2  Index         1.8827        2.9562        .17594        .15932E-03
   3  Normalizat    .97330        .18038        .83650E-01    .20357E-03
   4  Prefactor     .96645        .55436E-01    .45846E-01    .60519E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.3462
  Index      = 1.88267
  Normalizat = 0.9733
  Prefactor  = 0.96645
 **********
 **   18 **HESSE 
 **********

 FCN=   10471.84     FROM HESSE     STATUS=OK            29 CALLS      301 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.346        18.277        .61566E-04   -1.4406    
   2  Index         1.8827        .32364        .62595E-02   -.67317    
   3  Normalizat    .97330        .22359        .37033E-03   -.93930    
   4  Prefactor     .96645        .11917        .19774E-03   -.93856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71944e-10
Minuit parameter uncertainties:
  1  18.2789
  2  0.324011
  3  0.223807
  4  0.119205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483543': 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) = 10471.8362319
delta logL = 0.74475768632

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  4.235e+01  1.828e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  1.883e+00  3.240e-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.664e-01  1.192e-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:  9.733e-01  2.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.86
Ra Dec: 342.246 21.116
Photon Index (Free Index): 1.88 +/- 0.32
Photon Flux (Free Index): 7.19e-08 +/- 4.02e-08
Energy Flux (Free Index): 6.77e-05 +/- 4.55e-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/483543/cmap_HighResolution_585100801_585360001_4FGL_J2248.9+2106_daily_bin1334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.07e-07', energy_flux2='6.77e-05', photon_flux_error='4.32e-08', dlogl='7.45e-01', energy_flux='4.08e-05', photon_flux2='7.19e-08', job_status='DONE', time_completed='2021-09-28 21:27:01.176758', photon_index_error2='0.32', photon_index2='1.88', ts='19.30', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='4.55e-05', EG='0.94', time_epoch_completed='1632889621.18', return_code='0', job_id='483543', GAL2='0.97', EG2='0.97', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='4.02e-08', ts2='20.86', photon_index='2.30' WHERE bin_id='1334' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:27:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 483543: <4FGL_J2248.9+2106_daily_bin1334> in cluster <slac> Done

Job <4FGL_J2248.9+2106_daily_bin1334> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 21:10:29 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:10:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 21:10:31 2021
Terminated at Tue Sep 28 21:27:01 2021
Results reported at Tue Sep 28 21:27:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1334 342.246 21.1159 585100801 585360001 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 :                                   857.27 sec.
    Max Memory :                                 1177 MB
    Average Memory :                             342.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            992 sec.

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

