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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1502
RA = 342.246, Dec = 21.1159
tmin = 628646401, tmax = 628905601
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='484890', job_status='RUN', time_executed='2021-09-28 21:19:04.395246', time_epoch_executed='1632889144.4' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1502'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484890

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484890/ft1_4FGL_J2248.9+2106_daily_bin1502.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484890/ft2_4FGL_J2248.9+2106_daily_bin1502.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484890/ft1_4FGL_J2248.9+2106_daily_bin1502.fits outfile=/scratch/kocevski/484890/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1502.fits ra=342.246 dec=21.1159 rad=12.0 tmin=628646401.0 tmax=628905601.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.52
user 3.30
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484890/ft1_filtered_4FGL_J2248.9+2106_daily_bin1502.fits evtable="EVENTS" scfile=/scratch/kocevski/484890/ft2_4FGL_J2248.9+2106_daily_bin1502.fits sctable="SC_DATA" expcube=/scratch/kocevski/484890/ltcube_628646401_628905601_4FGL_J2248.9+2106_daily_bin1502.fits outfile=/scratch/kocevski/484890/expmap_628646401_628905601_4FGL_J2248.9+2106_daily_bin1502.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/484890/ltcube_628646401_628905601_4FGL_J2248.9+2106_daily_bin1502.fits
.....................!
real 192.51
user 187.81
sys 4.33

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484890/ft1_filtered_4FGL_J2248.9+2106_daily_bin1502.fits scfile=/scratch/kocevski/484890/ft2_4FGL_J2248.9+2106_daily_bin1502.fits outfile=/scratch/kocevski/484890/cmap_HighResolution_628646401_628905601_4FGL_J2248.9+2106_daily_bin1502.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .11881E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .80323       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.4705       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .53607       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .11560E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.9015       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.179       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .59547       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.034       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.661       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.689       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.8320       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84216       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0460       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8211.191     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     2515 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10055E-03    78.324         .0000    ** at limit **
   2  norm          .10000E-03    .44137         .0000    ** at limit **
   3  Prefactor     .10007E-03    11.646         .0000    ** at limit **
   4  norm          .81993        6.6383         .0000        .42412E-01
   5  Prefactor     .10003E-03    4.3527         .0000    ** at limit **
   6  Prefactor     .10179E-03    37.084         .0000    ** at limit **
   7  Prefactor     6.4710        10.960         .0000       -.26777E-03
   8  Prefactor     .53610        .18912         .0000        .82270E-03
   9  Prefactor     .10003E-03    4.1218         .0000    ** at limit **
  10  norm          .10000E-03    .41506         .0000    ** at limit **
  11  Prefactor     .10008E-03    9.4597         .0000    ** at limit **
  12  norm          3.9016        2.0476         .0000       -.49072E-04
  13  Prefactor     .10087E-03    29.422         .0000    ** at limit **
  14  Prefactor     33.180        13.014         .0000        .10790E-03
  15  Prefactor     .10001E-03    7.0370         .0000    ** at limit **
  16  Prefactor     .59552        .16000         .0000        .63241E-03
  17  Prefactor     25.035        11.429         .0000        .16798E-03
  18  Prefactor     .10000E-03    1.9712         .0000    ** at limit **
  19  Prefactor     14.662        13.880         .0000        .15501E-03
  20  Prefactor     15.689        15.300         .0000        .13345E-03
  21  Prefactor     .10001E-03    7.1682         .0000    ** at limit **
  22  Prefactor     2.8329        6.2115         .0000        .99114E-03
  23  Prefactor     .10001E-03    5.7998         .0000    ** at limit **
  24  Normalizat    .84209        .21570         .0000        .26489E-04
  25  Prefactor     1.0461        .11384         .0000        .33318E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100546
  norm       = 0.0001
  Prefactor  = 0.000100067
  norm       = 0.819935
  Prefactor  = 0.000100027
  Prefactor  = 0.000101794
  Prefactor  = 6.47105
  Prefactor  = 0.536095
  Prefactor  = 0.000100026
  norm       = 0.000100004
  Prefactor  = 0.000100083
  norm       = 3.90164
  Prefactor  = 0.000100871
  Prefactor  = 33.1801
  Prefactor  = 0.000100006
  Prefactor  = 0.595522
  Prefactor  = 25.0351
  Prefactor  = 0.0001
  Prefactor  = 14.6622
  Prefactor  = 15.6895
  Prefactor  = 0.000100011
  Prefactor  = 2.83289
  Prefactor  = 0.000100012
  Normalizat = 0.842087
  Prefactor  = 1.04605
 **********
 **   18 **HESSE 
 **********

 FCN=   8211.191     FROM HESSE     STATUS=OK           423 CALLS     2938 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10055E-03    78.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.1399        .11584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10007E-03    11.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .81993        6.7043        .21843E-02   -1.5527    
   5  Prefactor     .10003E-03    4.3610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10179E-03    37.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.4710        10.948        .15778E-03   -1.5199    
   8  Prefactor     .53610        .18845        .22588E-04   -1.5562    
   9  Prefactor     .10003E-03    4.1307        .17967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.6847        .11130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10008E-03    9.4889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.9016        2.0476        .89630E-04   -1.5313    
  13  Prefactor     .10087E-03    29.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     33.180        13.006        .69566E-04   -1.4555    
  15  Prefactor     .10001E-03    7.0458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .59552        .15912        .17912E-04   -1.5554    
  17  Prefactor     25.035        11.427        .80062E-04   -1.4707    
  18  Prefactor     .10000E-03    1.9771        .12423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.662        13.886        .10461E-03   -1.4942    
  20  Prefactor     15.689        15.292        .10112E-03   -1.4916    
  21  Prefactor     .10001E-03    7.1746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.8329        6.2161        .24165E-03   -1.5371    
  23  Prefactor     .10001E-03    5.8036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .84209        .24818        .35990E-03   -.98526    
  25  Prefactor     1.0461        .13269        .18426E-03   -.91210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42075e-07
Minuit parameter uncertainties:
  1  0.0131352
  2  2.30406e-05
  3  0.00177053
  4  4.6896
  5  0.000690554
  6  0.016327
  7  10.9515
  8  0.18845
  9  0.000651657
  10  0.000238106
  11  0.00177907
  12  2.04763
  13  0.0101551
  14  13.0075
  15  0.000408089
  16  0.159122
  17  11.428
  18  1.22019e-05
  19  13.8887
  20  15.2963
  21  0.000570612
  22  6.21748
  23  0.000518945
  24  0.248514
  25  0.132731
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  3.318e+01  1.301e+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:  1.046e+00  1.327e-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:  8.421e-01  2.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.91
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.16e-07 +/- 4.54e-08
Energy Flux (Fixed Index): 4.40e-05 +/- 1.73e-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) = 8210.96376302
delta logL = 0.227487001705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8210.96311187
delta logL = 0.228138156257

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.649       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0879       1.0000          .0000       10.000    
     3 'Normalizat'    .85953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0394       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=   8210.963     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      269 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.638        288.04        .15346E-02    .15498E-04
   2  Index         2.0877        2.6321        .11512        .15837E-03
   3  Normalizat    .85966        .14233        .80571E-01    .29344E-04
   4  Prefactor     1.0394        .60813E-01    .40572E-01    .12191E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.6375
  Index      = 2.08768
  Normalizat = 0.859665
  Prefactor  = 1.03941
 **********
 **   18 **HESSE 
 **********

 FCN=   8210.963     FROM HESSE     STATUS=OK            31 CALLS      300 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.638        21.437        .61386E-04   -1.4401    
   2  Index         2.0877        .30762        .45638E-02   -.62176    
   3  Normalizat    .85966        .23177        .35668E-03   -.97892    
   4  Prefactor     1.0394        .13109        .18479E-03   -.91427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.81256e-12
Minuit parameter uncertainties:
  1  21.4404
  2  0.307912
  3  0.232035
  4  0.131126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484890': 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) = 8210.96311055
delta logL = 0.22813946831

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  4.264e+01  2.144e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.088e+00  3.079e-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:  1.039e+00  1.311e-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:  8.597e-01  2.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.47
Ra Dec: 342.246 21.116
Photon Index (Free Index): 2.09 +/- 0.31
Photon Flux (Free Index): 1.02e-07 +/- 4.55e-08
Energy Flux (Free Index): 5.72e-05 +/- 3.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/484890/cmap_HighResolution_628646401_628905601_4FGL_J2248.9+2106_daily_bin1502.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.16e-07', energy_flux2='5.72e-05', photon_flux_error='4.54e-08', dlogl='2.28e-01', energy_flux='4.40e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-28 21:30:27.754290', photon_index_error2='0.31', photon_index2='2.09', ts='16.91', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='3.43e-05', EG='0.84', time_epoch_completed='1632889827.75', return_code='0', job_id='484890', GAL2='1.04', EG2='0.86', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='4.55e-08', ts2='17.47', photon_index='2.30' WHERE bin_id='1502' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:30:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 484890: <4FGL_J2248.9+2106_daily_bin1502> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1502 342.246 21.1159 628646401 628905601 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 :                                   676.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

