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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin65
RA = 342.246, Dec = 21.1159
tmin = 256176001, tmax = 256435201
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='477468', job_status='RUN', time_executed='2021-09-28 20:53:03.541809', time_epoch_executed='1632887583.54' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='65'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/477468

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/477468/ft1_4FGL_J2248.9+2106_daily_bin65.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/477468/ft2_4FGL_J2248.9+2106_daily_bin65.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/477468/ft1_4FGL_J2248.9+2106_daily_bin65.fits outfile=/scratch/kocevski/477468/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin65.fits ra=342.246 dec=21.1159 rad=12.0 tmin=256176001.0 tmax=256435201.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 1.46
user 1.26
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/477468/ft1_filtered_4FGL_J2248.9+2106_daily_bin65.fits evtable="EVENTS" scfile=/scratch/kocevski/477468/ft2_4FGL_J2248.9+2106_daily_bin65.fits sctable="SC_DATA" expcube=/scratch/kocevski/477468/ltcube_256176001_256435201_4FGL_J2248.9+2106_daily_bin65.fits outfile=/scratch/kocevski/477468/expmap_256176001_256435201_4FGL_J2248.9+2106_daily_bin65.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/477468/ltcube_256176001_256435201_4FGL_J2248.9+2106_daily_bin65.fits
.....................!
real 190.14
user 185.16
sys 4.65

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/477468/ft1_filtered_4FGL_J2248.9+2106_daily_bin65.fits scfile=/scratch/kocevski/477468/ft2_4FGL_J2248.9+2106_daily_bin65.fits outfile=/scratch/kocevski/477468/cmap_256176001_256435201_4FGL_J2248.9+2106_daily_bin65.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/477468/ft1_filtered_4FGL_J2248.9+2106_daily_bin65.fits scfile=/scratch/kocevski/477468/ft2_4FGL_J2248.9+2106_daily_bin65.fits outfile=/scratch/kocevski/477468/cmap_HighResolution_256176001_256435201_4FGL_J2248.9+2106_daily_bin65.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/477468/ft1_filtered_4FGL_J2248.9+2106_daily_bin65.fits evtable="EVENTS" scfile=/scratch/kocevski/477468/ft2_4FGL_J2248.9+2106_daily_bin65.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/477468/Model_4FGL_J2248.9+2106_daily_bin65.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/477468/ft1_filtered_4FGL_J2248.9+2106_daily_bin65.fits.....................!
real 77.40
user 76.07
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10543E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.6001       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .59994E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.6060       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .44710       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.8167       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.7111       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10702E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10907E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .30461       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.6482       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9988       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8065       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.442       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.1851       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3558       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79210       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=   7249.173     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2966 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    33.474       -.69081E-05** at limit **
   2  norm          2.6000        1.2920        .25366E-07   -.55180E-04
   3  Prefactor     .10296E-03    11.387       -.14188E-05** at limit **
   4  norm          .10000E-03    2.6470        .50771E-07** at limit **
   5  Prefactor     .10000E-03    2.8477        .18700E-07** at limit **
   6  Prefactor     .10001E-03    21.731       -.32917E-05** at limit **
   7  Prefactor     6.5995        12.022        .39540E-06    .67490E-04
   8  Prefactor     .44714        .18780        .75875E-08   -.45916E-03
   9  Prefactor     .10000E-03    5.8842       -.21930E-07** at limit **
  10  norm          2.8166        1.2916        .30537E-06   -.14246E-02
  11  Prefactor     .10001E-03    26.676        .36981E-05** at limit **
  12  norm          3.7116        2.0284        .20950E-07   -.28924E-04
  13  Prefactor     .10001E-03    48.786        .47320E-05** at limit **
  14  Prefactor     .10000E-03    14.668        .35517E-06** at limit **
  15  Prefactor     .10000E-03    12.582       -.14639E-06** at limit **
  16  Prefactor     .30462        .14120       -.11712E-07   -.10697E-02
  17  Prefactor     7.6507        10.516        .24222E-06   -.15431E-04
  18  Prefactor     5.0014        5.7847        .31543E-05   -.12507E-02
  19  Prefactor     4.8085        9.1419        .12833E-06   -.37741E-05
  20  Prefactor     .10000E-03    24.173        .33505E-05** at limit **
  21  Prefactor     23.417        23.945        .23465E-05    .35789E-03
  22  Prefactor     8.1856        7.0996       -.34635E-06   -.31370E-03
  23  Prefactor     .10000E-03    22.646       -.34730E-06** at limit **
  24  Normalizat    1.3558        .22588       -.92203E-07    .48522E-04
  25  Prefactor     .79193        .11709       -.63338E-06    .13280E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100022
  norm       = 2.59995
  Prefactor  = 0.000102964
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 6.59945
  Prefactor  = 0.44714
  Prefactor  = 0.0001
  norm       = 2.81656
  Prefactor  = 0.000100006
  norm       = 3.71156
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.304623
  Prefactor  = 7.65066
  Prefactor  = 5.00139
  Prefactor  = 4.80848
  Prefactor  = 0.000100004
  Prefactor  = 23.417
  Prefactor  = 8.18556
  Prefactor  = 0.0001
  Normalizat = 1.35581
  Prefactor  = 0.791935
 **********
 **   18 **HESSE 
 **********

 FCN=   7249.173     FROM HESSE     STATUS=OK           433 CALLS     3399 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    35.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.6000        1.2890        .65652E-04   -1.5385    
   3  Prefactor     .10296E-03    13.575        .82503E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.6913        .13523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8496        .14032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    22.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.5995        12.094        .15613E-03   -1.5194    
   8  Prefactor     .44714        .18666        .22943E-04   -1.5574    
   9  Prefactor     .10000E-03    5.9150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.8166        1.2963        .31525E-03   -1.5372    
  11  Prefactor     .10001E-03    27.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.7116        2.0280        .86925E-04   -1.5323    
  13  Prefactor     .10001E-03    50.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .30462        .14027        .20621E-04   -1.5598    
  17  Prefactor     7.6507        10.515        .14500E-03   -1.5155    
  18  Prefactor     5.0014        6.1306        .89932E-03   -1.5261    
  19  Prefactor     4.8085        9.1329        .18350E-03   -1.5269    
  20  Prefactor     .10000E-03    24.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.417        24.266        .82731E-04   -1.4740    
  22  Prefactor     8.1856        7.1491        .14013E-03   -1.5136    
  23  Prefactor     .10000E-03    23.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3558        .26967        .29818E-03   -.81915    
  25  Prefactor     .79193        .13915        .20539E-03   -1.0003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67289e-09
Minuit parameter uncertainties:
  1  0.00176515
  2  1.28903
  3  0.0126896
  4  3.62851e-06
  5  1.39895e-06
  6  0.000668288
  7  12.0982
  8  0.186656
  9  1.44022e-06
  10  1.29635
  11  0.000786744
  12  2.02804
  13  0.00138835
  14  4.9882e-05
  15  2.25922e-05
  16  0.140266
  17  10.5178
  18  6.13135
  19  9.13558
  20  0.000625264
  21  24.2759
  22  7.14989
  23  4.81604e-06
  24  0.269948
  25  0.139216
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  4.988e-05  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:  7.919e-01  1.392e-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.356e+00  2.699e-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: 9.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/477468/likelihoodResults_256176001_256435201_4FGL_J2248.9+2106_daily_bin65.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) = 7249.17294961
delta logL = -0.000320308107803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7249.17263056
delta logL = -1.2527925719e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15445E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3987       1.0000          .0000       10.000    
     3 'Normalizat'    1.3563       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79168       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=   7247.811     FROM MIGRAD    STATUS=CONVERGED    133 CALLS      293 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .89842E-02    .10200        .90712E-03    .37913E-02
   2  Index         5.7508        2.1154        .10536        .15128E-03
   3  Normalizat    1.2373        .57605E-01    .69950E-01    .44620E-04
   4  Prefactor     .83366        .31335E-01    .43609E-01    .14666E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00898424
  Index      = 5.75084
  Normalizat = 1.23735
  Prefactor  = 0.83366
 **********
 **   18 **HESSE 
 **********

 FCN=   7247.811     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      326 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .89842E-02    .24029        .56784E-05   -1.5689    
   2  Index         5.7508        3.6426        .39299E-02    .15074    
   3  Normalizat    1.2373        .21771        .30952E-03   -.85456    
   4  Prefactor     .83366        .11704        .20067E-03   -.98499    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.72603e-07
Minuit parameter uncertainties:
  1  0.0924089
  2  4.09521
  3  0.21787
  4  0.117075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/477468': 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) = 7247.81088078
delta logL = 1.3617485304

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  8.984e-03  9.241e-02  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  5.751e+00  4.095e+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:  8.337e-01  1.171e-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.237e+00  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.90
Ra Dec: 342.246 21.116
Photon Index (Free Index): 5.75 +/- 4.10
Photon Flux (Free Index): 8.48e-08 +/- 6.21e-08
Energy Flux (Free Index): 1.07e-05 +/- 8.92e-06

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/477468/cmap_HighResolution_256176001_256435201_4FGL_J2248.9+2106_daily_bin65.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.16e-03', comment='SUCCESS', energy_flux2='1.07e-05', dlogl='1.36e+00', photon_flux2='8.48e-08', job_status='DONE', time_completed='2021-09-28 21:05:31.995756', photon_index_error2='4.10', photon_index2='5.75', ts='-0.00', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='9.33e-08', energy_flux_error2='8.92e-06', EG='1.36', time_epoch_completed='1632888332.0', return_code='0', job_id='477468', GAL2='0.83', EG2='1.24', return_code2='102', photon_flux_error2='6.21e-08', ts2='2.90', photon_index='2.30' WHERE bin_id='65' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:05:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 477468: <4FGL_J2248.9+2106_daily_bin65> in cluster <slac> Done

Job <4FGL_J2248.9+2106_daily_bin65> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 20:50:19 2021
Job was executed on host(s) <bullet0223>, 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:05:32 2021
Results reported at Tue Sep 28 21:05:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin65 342.246 21.1159 256176001 256435201 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 :                                   749.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

