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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1352
RA = 342.246, Dec = 21.1159
tmin = 589766401, tmax = 590025601
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='483576', job_status='RUN', time_executed='2021-09-28 21:13:19.365428', time_epoch_executed='1632888799.37' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1352'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483576

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483576/ft1_4FGL_J2248.9+2106_daily_bin1352.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483576/ft2_4FGL_J2248.9+2106_daily_bin1352.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483576/ft1_4FGL_J2248.9+2106_daily_bin1352.fits outfile=/scratch/kocevski/483576/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1352.fits ra=342.246 dec=21.1159 rad=12.0 tmin=589766401.0 tmax=590025601.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 5.20
user 4.95
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483576/ft1_filtered_4FGL_J2248.9+2106_daily_bin1352.fits evtable="EVENTS" scfile=/scratch/kocevski/483576/ft2_4FGL_J2248.9+2106_daily_bin1352.fits sctable="SC_DATA" expcube=/scratch/kocevski/483576/ltcube_589766401_590025601_4FGL_J2248.9+2106_daily_bin1352.fits outfile=/scratch/kocevski/483576/expmap_589766401_590025601_4FGL_J2248.9+2106_daily_bin1352.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/483576/ltcube_589766401_590025601_4FGL_J2248.9+2106_daily_bin1352.fits
.....................!
real 190.84
user 185.24
sys 5.28

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/483576/ft1_filtered_4FGL_J2248.9+2106_daily_bin1352.fits scfile=/scratch/kocevski/483576/ft2_4FGL_J2248.9+2106_daily_bin1352.fits outfile=/scratch/kocevski/483576/cmap_589766401_590025601_4FGL_J2248.9+2106_daily_bin1352.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483576/ft1_filtered_4FGL_J2248.9+2106_daily_bin1352.fits scfile=/scratch/kocevski/483576/ft2_4FGL_J2248.9+2106_daily_bin1352.fits outfile=/scratch/kocevski/483576/cmap_HighResolution_589766401_590025601_4FGL_J2248.9+2106_daily_bin1352.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/483576/ft1_filtered_4FGL_J2248.9+2106_daily_bin1352.fits evtable="EVENTS" scfile=/scratch/kocevski/483576/ft2_4FGL_J2248.9+2106_daily_bin1352.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/483576/Model_4FGL_J2248.9+2106_daily_bin1352.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/483576/ft1_filtered_4FGL_J2248.9+2106_daily_bin1352.fits.....................!
real 76.98
user 75.60
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.3498       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    414.10       1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.267       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .59952       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.359       1.0000         .10000E-03   10000.    
    10 'norm      '    4.2025       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3544       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    62.847       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1862       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.733       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.2369       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.874       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .19840E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .76099       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95863       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=   7091.463     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     3008 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    75.536       -.30769E-04** at limit **
   2  norm          .10000E-03    .37074       -.91558E-07** at limit **
   3  Prefactor     .10000E-03    15.769        .12179E-04** at limit **
   4  norm          8.3502        5.3295       -.15323E-06    .26613E-05
   5  Prefactor     .10000E-03    7.0164       -.83193E-06** at limit **
   6  Prefactor     414.09        183.04       -.37641E-05   -.29345E-04
   7  Prefactor     36.267        18.424        .94521E-07   -.51292E-04
   8  Prefactor     .59956        .24308        .33099E-07   -.15212E-03
   9  Prefactor     12.360        13.301       -.10528E-08   -.10340E-04
  10  norm          4.2030        2.0791        .20627E-06   -.14528E-03
  11  Prefactor     1.3530        93.421       -.41243E-05   -.91054E-04
  12  norm          .10000E-03    1.4194       -.11627E-06** at limit **
  13  Prefactor     .10000E-03    35.475       -.20093E-05** at limit **
  14  Prefactor     62.847        21.568        .45645E-07    .60387E-04
  15  Prefactor     .10000E-03    11.785        .19105E-05** at limit **
  16  Prefactor     1.1862        .25203       -.72759E-09    .55215E-03
  17  Prefactor     18.733        15.164       -.16672E-06   -.15132E-05
  18  Prefactor     9.2360        8.9448        .97445E-08    .92614E-05
  19  Prefactor     .10000E-03    30.944       -.17101E-04** at limit **
  20  Prefactor     26.879        32.874        .31958E-05   -.24663E-06
  21  Prefactor     .10000E-03    21.886        .68045E-07** at limit **
  22  Prefactor     .10000E-03    13.792       -.10241E-04** at limit **
  23  Prefactor     .10000E-03    47.099        .40861E-04** at limit **
  24  Normalizat    .76105        .27327        .68850E-07    .21539E-04
  25  Prefactor     .95856        .13583       -.47194E-06    .16953E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.35022
  Prefactor  = 0.0001
  Prefactor  = 414.091
  Prefactor  = 36.2669
  Prefactor  = 0.599559
  Prefactor  = 12.36
  norm       = 4.20303
  Prefactor  = 1.35298
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.8467
  Prefactor  = 0.0001
  Prefactor  = 1.1862
  Prefactor  = 18.7331
  Prefactor  = 9.23602
  Prefactor  = 0.000100001
  Prefactor  = 26.8788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.761051
  Prefactor  = 0.958561
 **********
 **   18 **HESSE 
 **********

 FCN=   7091.463     FROM HESSE     STATUS=OK           427 CALLS     3435 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    75.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .55508        .99791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.3502        5.3273        .13874E-03   -1.5130    
   5  Prefactor     .10000E-03    7.0312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     414.09        182.95        .10038E-03   -1.1609    
   7  Prefactor     36.267        18.419        .66548E-04   -1.4503    
   8  Prefactor     .59956        .24274        .24542E-04   -1.5553    
   9  Prefactor     12.360        13.331        .11394E-03   -1.5005    
  10  norm          4.2030        2.0352        .73147E-04   -1.5298    
  11  Prefactor     1.3530        91.695        .37567E-03   -1.5475    
  12  norm          .10000E-03    2.3093        .18956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    35.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     62.847        20.989        .50617E-04   -1.4121    
  15  Prefactor     .10000E-03    11.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1862        .25200        .18049E-04   -1.5490    
  17  Prefactor     18.733        15.155        .92539E-04   -1.4842    
  18  Prefactor     9.2360        8.9443        .13187E-03   -1.5100    
  19  Prefactor     .10000E-03    31.711        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     26.879        32.877        .77277E-04   -1.4671    
  21  Prefactor     .10000E-03    21.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.279        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    47.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .76105        .30728        .43088E-03   -1.0153    
  25  Prefactor     .95856        .15572        .20312E-03   -.94124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54937e-10
Minuit parameter uncertainties:
  1  0.000100015
  2  5.95934e-06
  3  1.30475e-05
  4  5.32764
  5  3.67356e-07
  6  183.212
  7  18.4216
  8  0.24274
  9  13.3341
  10  2.03519
  11  22.3114
  12  2.14789e-05
  13  1.5216e-05
  14  20.9914
  15  3.51336e-06
  16  0.252004
  17  15.1582
  18  8.94558
  19  0.000361543
  20  32.8991
  21  3.11446e-05
  22  1.46457e-05
  23  0.000115677
  24  0.307983
  25  0.155789
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  6.285e+01  2.099e+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.586e-01  1.558e-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:  7.611e-01  3.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.83
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 2.20e-07 +/- 7.33e-08
Energy Flux (Fixed Index): 8.34e-05 +/- 2.79e-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) = 7091.456471
delta logL = 0.00641572072072

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7091.4486228
delta logL = 0.0142639238547

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.580       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3447       1.0000          .0000       10.000    
     3 'Normalizat'    .75345       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96118       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=   7091.449     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      240 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.572        28.790        .51979E-04    .10507E-03
   2  Index         2.3447        .28872        .34242E-02    .15346E-03
   3  Normalizat    .75346        .29608        .43278E-03    .16592E-03
   4  Prefactor     .96119        .15483        .20286E-03    .21516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.5722
  Index      = 2.34472
  Normalizat = 0.753463
  Prefactor  = 0.961187
 **********
 **   18 **HESSE 
 **********

 FCN=   7091.449     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.572        27.786        .10396E-04   -1.4163    
   2  Index         2.3447        .27848        .13697E-03   -.55985    
   3  Normalizat    .75346        .29601        .17311E-04   -1.0182    
   4  Prefactor     .96119        .15483        .40572E-04   -.94035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17698e-10
Minuit parameter uncertainties:
  1  27.7919
  2  0.278684
  3  0.296646
  4  0.154901
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483576': 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) = 7091.44862275
delta logL = 0.0142639692458

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  5.957e+01  2.779e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.345e+00  2.787e-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.612e-01  1.549e-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:  7.535e-01  2.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.76
Ra Dec: 342.246 21.116
Photon Index (Free Index): 2.34 +/- 0.28
Photon Flux (Free Index): 2.28e-07 +/- 8.76e-08
Energy Flux (Free Index): 8.05e-05 +/- 3.10e-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/483576/cmap_HighResolution_589766401_590025601_4FGL_J2248.9+2106_daily_bin1352.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.20e-07', energy_flux2='8.05e-05', photon_flux_error='7.33e-08', dlogl='1.43e-02', energy_flux='8.34e-05', photon_flux2='2.28e-07', job_status='DONE', time_completed='2021-09-28 21:24:39.091054', photon_index_error2='0.28', photon_index2='2.34', ts='19.83', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='3.10e-05', EG='0.76', time_epoch_completed='1632889479.09', return_code='0', job_id='483576', GAL2='0.96', EG2='0.75', return_code2='0', energy_flux_error='2.79e-05', photon_flux_error2='8.76e-08', ts2='19.76', photon_index='2.30' WHERE bin_id='1352' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:24:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 483576: <4FGL_J2248.9+2106_daily_bin1352> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1352 342.246 21.1159 589766401 590025601 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 :                                   665.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            848 sec.

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

