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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1394
RA = 342.246, Dec = 21.1159
tmin = 600652801, tmax = 600912001
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='483647', job_status='RUN', time_executed='2021-09-28 21:10:55.366341', time_epoch_executed='1632888655.37' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1394'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483647

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483647/ft1_4FGL_J2248.9+2106_daily_bin1394.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483647/ft2_4FGL_J2248.9+2106_daily_bin1394.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483647/ft1_4FGL_J2248.9+2106_daily_bin1394.fits outfile=/scratch/kocevski/483647/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1394.fits ra=342.246 dec=21.1159 rad=12.0 tmin=600652801.0 tmax=600912001.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.63
user 3.43
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/483647/ft1_filtered_4FGL_J2248.9+2106_daily_bin1394.fits" evtable="EVENTS" scfile=/scratch/kocevski/483647/ft2_4FGL_J2248.9+2106_daily_bin1394.fits sctable="SC_DATA" outfile=/scratch/kocevski/483647/ltcube_600652801_600912001_4FGL_J2248.9+2106_daily_bin1394.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/483647/ft2_4FGL_J2248.9+2106_daily_bin1394.fits
.....................!
real 11.80
user 11.37
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483647/ft1_filtered_4FGL_J2248.9+2106_daily_bin1394.fits evtable="EVENTS" scfile=/scratch/kocevski/483647/ft2_4FGL_J2248.9+2106_daily_bin1394.fits sctable="SC_DATA" expcube=/scratch/kocevski/483647/ltcube_600652801_600912001_4FGL_J2248.9+2106_daily_bin1394.fits outfile=/scratch/kocevski/483647/expmap_600652801_600912001_4FGL_J2248.9+2106_daily_bin1394.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/483647/ltcube_600652801_600912001_4FGL_J2248.9+2106_daily_bin1394.fits
.....................!
real 189.93
user 184.86
sys 4.74

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/483647/ft1_filtered_4FGL_J2248.9+2106_daily_bin1394.fits scfile=/scratch/kocevski/483647/ft2_4FGL_J2248.9+2106_daily_bin1394.fits outfile=/scratch/kocevski/483647/cmap_600652801_600912001_4FGL_J2248.9+2106_daily_bin1394.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/483647/ft1_filtered_4FGL_J2248.9+2106_daily_bin1394.fits scfile=/scratch/kocevski/483647/ft2_4FGL_J2248.9+2106_daily_bin1394.fits outfile=/scratch/kocevski/483647/cmap_HighResolution_600652801_600912001_4FGL_J2248.9+2106_daily_bin1394.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.143       1.0000         .10000E-03   10000.    
     2 'norm      '    .25118       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18443E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .35233E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .47734E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.7152       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0889       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .31050E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    2.0863       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7913       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.932       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10769E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .56929       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.952       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .59397       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .26486E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17027E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.4249       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.0708       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .26478E-02   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0678       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94246       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=   7636.841     FROM MIGRAD    STATUS=CONVERGED    639 CALLS     2218 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.540        57.777       -.59101E-06    .12130E-04
   2  norm          .25048        .51333       -.60283E-07   -.82997E-04
   3  Prefactor     .10000E-03    28.263       -.12597E-06** at limit **
   4  norm          .10000E-03    2.2233       -.89185E-07** at limit **
   5  Prefactor     .10002E-03    75.762        .24361E-04** at limit **
   6  Prefactor     .10000E-03    37.886        .38746E-05** at limit **
   7  Prefactor     7.6414        9.8735       -.59492E-07    .14709E-03
   8  Prefactor     .10000E-03    .88471E-01   -.36909E-06** at limit **
   9  Prefactor     .10000E-03    4.0735        .24349E-08** at limit **
  10  norm          1.0898        .92993       -.40488E-08    .62762E-03
  11  Prefactor     .10000E-03    17.393       -.33396E-07** at limit **
  12  norm          2.0909        1.5603       -.13740E-06   -.33283E-03
  13  Prefactor     7.8616        16.467        .24134E-06    .35982E-04
  14  Prefactor     22.783        12.964        .55033E-06    .41288E-03
  15  Prefactor     .10000E-03    29.164       -.42945E-06** at limit **
  16  Prefactor     .56964        .16748       -.20853E-07    .16681E-02
  17  Prefactor     25.016        12.901       -.90489E-07    .23761E-03
  18  Prefactor     .60156        4.1904        .93072E-06    .27496E-03
  19  Prefactor     .10000E-03    10.036        .31858E-06** at limit **
  20  Prefactor     .10001E-03    54.207       -.16697E-06** at limit **
  21  Prefactor     2.4705        24.957       -.97108E-05    .11455E-03
  22  Prefactor     2.0765        4.1847       -.47054E-06    .35915E-04
  23  Prefactor     .10000E-03    16.335        .54824E-06** at limit **
  24  Normalizat    1.0683        .20880        .38814E-05    .63052E-03
  25  Prefactor     .94160        .11350       -.11059E-05    .66422E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.5397
  norm       = 0.250483
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 0.000100003
  Prefactor  = 7.64136
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 1.08983
  Prefactor  = 0.0001
  norm       = 2.09085
  Prefactor  = 7.86163
  Prefactor  = 22.7834
  Prefactor  = 0.0001
  Prefactor  = 0.569642
  Prefactor  = 25.0165
  Prefactor  = 0.60156
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 2.47052
  Prefactor  = 2.07647
  Prefactor  = 0.0001
  Normalizat = 1.06828
  Prefactor  = 0.941597
 **********
 **   18 **HESSE 
 **********

 FCN=   7636.841     FROM HESSE     STATUS=OK           433 CALLS     2651 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.540        57.777        .10650E-03   -1.4870    
   2  norm          .25048        .51264        .40835E-04   -1.5608    
   3  Prefactor     .10000E-03    29.060        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.8527        .25277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    75.762        .48368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    38.187        .19266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.6414        9.8620        .14437E-03   -1.5155    
   8  Prefactor     .10000E-03    1.2558        .45489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.0774        .17224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0898        .90855        .74627E-04   -1.5499    
  11  Prefactor     .10000E-03    17.485        .19791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0909        1.5582        .90048E-04   -1.5419    
  13  Prefactor     7.8616        16.470        .14366E-03   -1.5147    
  14  Prefactor     22.783        12.978        .83646E-04   -1.4753    
  15  Prefactor     .10000E-03    29.409        .18154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .56964        .16627        .18131E-04   -1.5557    
  17  Prefactor     25.016        12.892        .80194E-04   -1.4707    
  18  Prefactor     .60156        9.1396        .33937E-02   -1.5553    
  19  Prefactor     .10000E-03    10.174        .19960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    54.644        .18216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.4705        25.468        .13141E-02   -1.5394    
  22  Prefactor     2.0765        4.1613        .24406E-03   -1.5420    
  23  Prefactor     .10000E-03    16.615        .19960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0683        .24443        .31692E-03   -.90777    
  25  Prefactor     .94160        .13606        .18845E-03   -.94702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65296e-09
Minuit parameter uncertainties:
  1  57.9625
  2  0.512654
  3  0.000169718
  4  5.86176e-05
  5  0.00246887
  6  0.000723321
  7  9.86409
  8  0.000131516
  9  5.31245e-07
  10  0.908557
  11  1.99743e-05
  12  1.55824
  13  16.4795
  14  12.9799
  15  3.39686e-05
  16  0.166272
  17  12.8934
  18  4.69003
  19  5.05125e-05
  20  0.00118659
  21  15.8728
  22  4.16188
  23  9.11745e-05
  24  0.244685
  25  0.13611
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  2.278e+01  1.298e+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.416e-01  1.361e-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.068e+00  2.447e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.53
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 7.96e-08 +/- 4.53e-08
Energy Flux (Fixed Index): 3.02e-05 +/- 1.72e-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) = 7635.22999181
delta logL = 1.61105877131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7635.21745925
delta logL = 1.62359132958

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0680       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3125       1.0000          .0000       10.000    
     3 'Normalizat'    .97762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97501       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=   7635.217     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      262 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0577        30.562        .44652E-02    .26319E-03
   2  Index         3.3135        2.0276        .77494E-01    .22600E-03
   3  Normalizat    .97753        .86298E-01    .74276E-01    .18922E-04
   4  Prefactor     .97507        .45639E-01    .45954E-01    .78451E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.05767
  Index      = 3.31351
  Normalizat = 0.977528
  Prefactor  = 0.975071
 **********
 **   18 **HESSE 
 **********

 FCN=   7635.217     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0577        18.478        .78124E-04   -1.5258    
   2  Index         3.3135        1.6869        .31352E-02   -.34405    
   3  Normalizat    .97753        .25421        .32867E-03   -.93787    
   4  Prefactor     .97507        .14061        .18537E-03   -.93565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20179e-07
Minuit parameter uncertainties:
  1  18.4984
  2  1.7253
  3  0.25452
  4  0.140658
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483647': 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) = 7635.21745805
delta logL = 1.62359252949

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  5.058e+00  1.850e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  3.314e+00  1.725e+00  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.751e-01  1.407e-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.775e-01  2.545e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.11
Ra Dec: 342.246 21.116
Photon Index (Free Index): 3.31 +/- 1.73
Photon Flux (Free Index): 1.48e-07 +/- 7.00e-08
Energy Flux (Free Index): 2.61e-05 +/- 1.43e-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/483647/cmap_HighResolution_600652801_600912001_4FGL_J2248.9+2106_daily_bin1394.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.96e-08', energy_flux2='2.61e-05', photon_flux_error='4.53e-08', dlogl='1.62e+00', energy_flux='3.02e-05', photon_flux2='1.48e-07', job_status='DONE', time_completed='2021-09-28 21:21:49.784264', photon_index_error2='1.73', photon_index2='3.31', ts='5.53', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.43e-05', EG='1.07', time_epoch_completed='1632889309.78', return_code='0', job_id='483647', GAL2='0.98', EG2='0.98', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='7.00e-08', ts2='9.11', photon_index='2.30' WHERE bin_id='1394' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:21:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 483647: <4FGL_J2248.9+2106_daily_bin1394> in cluster <slac> Done

Job <4FGL_J2248.9+2106_daily_bin1394> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 21:10:37 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:10:39 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:39 2021
Terminated at Tue Sep 28 21:21:50 2021
Results reported at Tue Sep 28 21:21:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1394 342.246 21.1159 600652801 600912001 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 :                                   637.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             346.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            673 sec.

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

