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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1358
RA = 342.246, Dec = 21.1159
tmin = 591321601, tmax = 591580801
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='483584', job_status='RUN', time_executed='2021-09-28 21:10:47.615833', time_epoch_executed='1632888647.62' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1358'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483584

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483584/ft1_4FGL_J2248.9+2106_daily_bin1358.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483584/ft2_4FGL_J2248.9+2106_daily_bin1358.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483584/ft1_4FGL_J2248.9+2106_daily_bin1358.fits outfile=/scratch/kocevski/483584/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1358.fits ra=342.246 dec=21.1159 rad=12.0 tmin=591321601.0 tmax=591580801.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.88
user 2.66
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/483584/ft2_4FGL_J2248.9+2106_daily_bin1358.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/483584/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1358.fits evtable="EVENTS" outfile="/scratch/kocevski/483584/ft1_filtered_4FGL_J2248.9+2106_daily_bin1358.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.62
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/483584/ft1_filtered_4FGL_J2248.9+2106_daily_bin1358.fits" evtable="EVENTS" scfile=/scratch/kocevski/483584/ft2_4FGL_J2248.9+2106_daily_bin1358.fits sctable="SC_DATA" outfile=/scratch/kocevski/483584/ltcube_591321601_591580801_4FGL_J2248.9+2106_daily_bin1358.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/483584/ft2_4FGL_J2248.9+2106_daily_bin1358.fits
.....................!
real 12.14
user 11.79
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483584/ft1_filtered_4FGL_J2248.9+2106_daily_bin1358.fits evtable="EVENTS" scfile=/scratch/kocevski/483584/ft2_4FGL_J2248.9+2106_daily_bin1358.fits sctable="SC_DATA" expcube=/scratch/kocevski/483584/ltcube_591321601_591580801_4FGL_J2248.9+2106_daily_bin1358.fits outfile=/scratch/kocevski/483584/expmap_591321601_591580801_4FGL_J2248.9+2106_daily_bin1358.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/483584/ltcube_591321601_591580801_4FGL_J2248.9+2106_daily_bin1358.fits
.....................!
real 191.23
user 186.37
sys 4.55

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/483584/ft1_filtered_4FGL_J2248.9+2106_daily_bin1358.fits scfile=/scratch/kocevski/483584/ft2_4FGL_J2248.9+2106_daily_bin1358.fits outfile=/scratch/kocevski/483584/cmap_591321601_591580801_4FGL_J2248.9+2106_daily_bin1358.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483584/ft1_filtered_4FGL_J2248.9+2106_daily_bin1358.fits scfile=/scratch/kocevski/483584/ft2_4FGL_J2248.9+2106_daily_bin1358.fits outfile=/scratch/kocevski/483584/cmap_HighResolution_591321601_591580801_4FGL_J2248.9+2106_daily_bin1358.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15339E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.1724       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .13288E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1124.1       1.0000         .10000E-03   10000.    
     7 'Prefactor '    90.019       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6092       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12462E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0530       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .73257       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11829E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    110.89       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13127E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15375       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12244E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    196.07       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .27535E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10559E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .79042E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .25265E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .92146       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1436       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .42410E-08   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=   532.8201     FROM MIGRAD    STATUS=CONVERGED    986 CALLS     3799 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    100.07        .18142E-02** at limit **
   2  norm          2.1715        2.5394        .35524E-04    .27438E-03
   3  Prefactor     .10000E-03    333.18        .36285E-03** at limit **
   4  norm          .10000E-03    21.474        .10406E-02** at limit **
   5  Prefactor     .10000E-03    38.063        .13916E-02** at limit **
   6  Prefactor     1123.9        580.52        .63317E-04    .29860E-04
   7  Prefactor     90.102        84.390        .21175E-03    .67197E-04
   8  Prefactor     1.6094        1.0736        .17723E-04    .61934E-03
   9  Prefactor     .10000E-03    29.827        .12322E-02** at limit **
  10  norm          2.0579        6.5221        .91375E-04    .91525E-04
  11  Prefactor     .10000E-03    153.54        .18142E-02** at limit **
  12  norm          .74087        191.22        .25222E-02    .26905E-03
  13  Prefactor     .10000E-03    146.61        .18142E-02** at limit **
  14  Prefactor     110.91        212.61        .19099E-03   -.83931E-05
  15  Prefactor     .10203E-03    7242.1        .18142E-02** at limit **
  16  Prefactor     .14675        12.040        .61462E-03    .35590E-03
  17  Prefactor     .10000E-03    161.97        .18142E-02** at limit **
  18  Prefactor     196.98        548.13        .14425E-03    .38541E-04
  19  Prefactor     .10000E-03    281.79        .21426E-02** at limit **
  20  Prefactor     .10000E-03    406.24        .18142E-02** at limit **
  21  Prefactor     .10000E-03    882.45        .20909E-02** at limit **
  22  Prefactor     .10000E-03    273.44        .21461E-02** at limit **
  23  Prefactor     .10135E-03    6514.8        .25770E-02** at limit **
  24  Normalizat    1.1435        .66419        .29906E-03    .10087E-03
  25  Prefactor     .84821E-12    .20517        .57410E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.17153
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1123.86
  Prefactor  = 90.1024
  Prefactor  = 1.60942
  Prefactor  = 0.0001
  norm       = 2.05794
  Prefactor  = 0.0001
  norm       = 0.740868
  Prefactor  = 0.0001
  Prefactor  = 110.909
  Prefactor  = 0.000102025
  Prefactor  = 0.14675
  Prefactor  = 0.0001
  Prefactor  = 196.981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101347
  Normalizat = 1.14348
  Prefactor  = 8.4821e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   532.8201     FROM HESSE     STATUS=OK           405 CALLS     4204 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    100.07        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1715        2.5392        .14210E-05   -1.5413    
   3  Prefactor     .10000E-03    333.19        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    21.476        .20812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    38.063        .27832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1123.9        580.41        .12663E-04   -.88708    
   7  Prefactor     90.102        83.862        .84702E-05   -1.3807    
   8  Prefactor     1.6094        1.0724        .35445E-05   -1.5454    
   9  Prefactor     .10000E-03    29.827        .24645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0579        6.5205        .36550E-05   -1.5421    
  11  Prefactor     .10000E-03    153.55        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .74087        161.79        .50444E-03   -1.5536    
  13  Prefactor     .10000E-03    146.61        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     110.91        196.58        .76395E-05   -1.3598    
  15  Prefactor     .10203E-03    7241.9        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14675        9.9489        .24585E-04   -1.5631    
  17  Prefactor     .10000E-03    161.97        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     196.98        501.58        .28851E-04   -1.2892    
  19  Prefactor     .10000E-03    281.79        .42851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    406.24        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    882.45        .41819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    273.44        .42922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10135E-03    6514.8        .51541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1435        .66321        .59813E-04   -.88368    
  25  Prefactor     .84821E-12    .20519        .11482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80525e-10
Minuit parameter uncertainties:
  1  1.49175e-06
  2  2.53937
  3  0.000114417
  4  3.94709e-05
  5  1.01064e-05
  6  583.725
  7  83.9727
  8  1.07245
  9  8.43727e-06
  10  6.5228
  11  2.73634e-06
  12  21.9556
  13  0.000188739
  14  197.755
  15  0.208839
  16  2.4162
  17  8.62498e-05
  18  513.169
  19  0.000221654
  20  4.35852e-05
  21  0.00046348
  22  8.39931e-05
  23  0.593902
  24  0.668148
  25  8.37179e-07
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.109e+02  1.978e+02  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.482e-13  8.372e-07  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.143e+00  6.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 3.88e-07 +/- 6.91e-07
Energy Flux (Fixed Index): 1.47e-04 +/- 2.62e-04

TS (Fixed Index): 1.32
Ra Dec: 342.246 21.116
Photon Flux Upper Limit: 1.54e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/483584/likelihoodResults_591321601_591580801_4FGL_J2248.9+2106_daily_bin1358.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) = 532.371274577
delta logL = 0.448830476587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 532.367019609
delta logL = 0.453085444527

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.523       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3639       1.0000          .0000       10.000    
     3 'Normalizat'    1.0530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58317E-07   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=   532.3670     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      294 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.495        83.161        .70263E-04    .36063E-03
   2  Index         3.3644        1.3610        .20698E-02    .18224E-03
   3  Normalizat    1.0531        .43687        .30649E-03   -.62556E-04
   4  Prefactor     .14394E-11    .23694        .59201E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.4954
  Index      = 3.36436
  Normalizat = 1.05314
  Prefactor  = 1.4394e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   532.3670     FROM HESSE     STATUS=OK            23 CALLS      317 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.495        72.623        .14053E-04   -1.4567    
   2  Index         3.3644        1.1910        .82792E-04   -.33326    
   3  Normalizat    1.0531        .43681        .61298E-04   -.91271    
   4  Prefactor     .14394E-11    .23697        .11840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30586e-10
Minuit parameter uncertainties:
  1  72.8216
  2  1.20397
  3  0.438313
  4  1.17281e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483584': 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) = 532.367019372
delta logL = 0.453085681894

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  3.250e+01  7.282e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  3.364e+00  1.204e+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:  1.439e-12  1.173e-06  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.053e+00  4.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 342.246 21.116
Photon Index (Free Index): 3.36 +/- 1.20
Photon Flux (Free Index): 1.07e-06 +/- 1.15e-06
Energy Flux (Free Index): 1.85e-04 +/- 1.69e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/483584/cmap_HighResolution_591321601_591580801_4FGL_J2248.9+2106_daily_bin1358.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-01', comment='SUCCESS', photon_flux='3.88e-07', energy_flux2='1.85e-04', photon_flux_error='6.91e-07', dlogl='4.53e-01', energy_flux='1.47e-04', photon_flux2='1.07e-06', job_status='DONE', time_completed='2021-09-28 21:16:45.028270', photon_index_error2='1.20', photon_index2='3.36', ts='1.32', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', photon_flux_upper_limit='1.54e-06', energy_flux_error2='1.69e-04', EG='1.14', time_epoch_completed='1632889005.03', return_code='0', job_id='483584', GAL2='0.00', EG2='1.05', return_code2='0', energy_flux_error='2.62e-04', photon_flux_error2='1.15e-06', ts2='2.17', photon_index='2.30' WHERE bin_id='1358' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:16:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 483584: <4FGL_J2248.9+2106_daily_bin1358> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1358 342.246 21.1159 591321601 591580801 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 :                                   348.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   371 sec.
    Turnaround time :                            373 sec.

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

