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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin610
RA = 342.246, Dec = 21.1159
tmin = 397440001, tmax = 397699201
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='479318', job_status='RUN', time_executed='2021-09-28 20:55:51.271415', time_epoch_executed='1632887751.27' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='610'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/479318

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/479318/ft1_4FGL_J2248.9+2106_daily_bin610.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/479318/ft2_4FGL_J2248.9+2106_daily_bin610.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/479318/ft1_4FGL_J2248.9+2106_daily_bin610.fits outfile=/scratch/kocevski/479318/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin610.fits ra=342.246 dec=21.1159 rad=12.0 tmin=397440001.0 tmax=397699201.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 4.54
user 4.30
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/479318/ft1_filtered_4FGL_J2248.9+2106_daily_bin610.fits" evtable="EVENTS" scfile=/scratch/kocevski/479318/ft2_4FGL_J2248.9+2106_daily_bin610.fits sctable="SC_DATA" outfile=/scratch/kocevski/479318/ltcube_397440001_397699201_4FGL_J2248.9+2106_daily_bin610.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/479318/ft2_4FGL_J2248.9+2106_daily_bin610.fits
.....................!
real 14.90
user 14.57
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/479318/ft1_filtered_4FGL_J2248.9+2106_daily_bin610.fits evtable="EVENTS" scfile=/scratch/kocevski/479318/ft2_4FGL_J2248.9+2106_daily_bin610.fits sctable="SC_DATA" expcube=/scratch/kocevski/479318/ltcube_397440001_397699201_4FGL_J2248.9+2106_daily_bin610.fits outfile=/scratch/kocevski/479318/expmap_397440001_397699201_4FGL_J2248.9+2106_daily_bin610.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/479318/ltcube_397440001_397699201_4FGL_J2248.9+2106_daily_bin610.fits
.....................!
real 190.68
user 185.60
sys 4.76

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/479318/ft1_filtered_4FGL_J2248.9+2106_daily_bin610.fits scfile=/scratch/kocevski/479318/ft2_4FGL_J2248.9+2106_daily_bin610.fits outfile=/scratch/kocevski/479318/cmap_397440001_397699201_4FGL_J2248.9+2106_daily_bin610.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.57
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3541       1.0000         .10000E-03   10000.    
     2 'norm      '    1.4057       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.9194       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.394       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5768       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .54017       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0810       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .30497       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.116       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6849       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .35175       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.951       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.432       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .86363       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91574       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=   8474.150     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     2916 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3635        261.84       -.11863E-04   -.13539E-04
   2  norm          1.4054        1.1833       -.11350E-06    .80978E-03
   3  Prefactor     .10000E-03    18.056        .43228E-05** at limit **
   4  norm          5.9187        5.3524       -.12301E-06    .31094E-03
   5  Prefactor     19.393        12.664       -.13651E-06    .43513E-04
   6  Prefactor     .10001E-03    54.706       -.60332E-05** at limit **
   7  Prefactor     1.5731        21.037       -.16358E-05    .33078E-03
   8  Prefactor     .54015        .20223       -.24914E-07    .13489E-02
   9  Prefactor     .10000E-03    4.6355       -.15558E-07** at limit **
  10  norm          2.0808        1.0989       -.90914E-07    .13234E-02
  11  Prefactor     .10000E-03    18.617       -.50582E-05** at limit **
  12  norm          .30482        .87138       -.12743E-05    .62940E-03
  13  Prefactor     .10000E-03    32.469       -.12848E-04** at limit **
  14  Prefactor     16.115        10.194        .54810E-06    .50922E-03
  15  Prefactor     .10000E-03    8.4696       -.24606E-06** at limit **
  16  Prefactor     2.6853        .29946        .55167E-07    .52430E-02
  17  Prefactor     .10000E-03    5.1847       -.99884E-07** at limit **
  18  Prefactor     .30468        54.776       -.27308E-04    .90124E-04
  19  Prefactor     .10000E-03    6.7815       -.52982E-06** at limit **
  20  Prefactor     13.945        22.031       -.21286E-05   -.71070E-04
  21  Prefactor     13.429        20.422       -.13469E-05   -.64545E-04
  22  Prefactor     .10000E-03    5.7403       -.37196E-06** at limit **
  23  Prefactor     .10000E-03    7.0889        .30026E-06** at limit **
  24  Normalizat    .86374        .22322        .22829E-05    .41470E-03
  25  Prefactor     .91580        .11342        .67577E-06    .41236E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.3635
  norm       = 1.40545
  Prefactor  = 0.000100001
  norm       = 5.91873
  Prefactor  = 19.393
  Prefactor  = 0.000100008
  Prefactor  = 1.5731
  Prefactor  = 0.540149
  Prefactor  = 0.0001
  norm       = 2.08085
  Prefactor  = 0.000100004
  norm       = 0.304821
  Prefactor  = 0.0001
  Prefactor  = 16.1147
  Prefactor  = 0.0001
  Prefactor  = 2.68528
  Prefactor  = 0.0001
  Prefactor  = 0.304677
  Prefactor  = 0.0001
  Prefactor  = 13.9451
  Prefactor  = 13.4287
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.863738
  Prefactor  = 0.915797
 **********
 **   18 **HESSE 
 **********

 FCN=   8474.150     FROM HESSE     STATUS=OK           433 CALLS     3349 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3635        264.77        .26714E-03   -1.5400    
   2  norm          1.4054        1.1722        .87810E-04   -1.5471    
   3  Prefactor     .10000E-03    18.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.9187        5.3364        .16505E-03   -1.5221    
   5  Prefactor     19.393        12.668        .90948E-04   -1.4827    
   6  Prefactor     .10001E-03    55.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.5731        21.182        .33834E-03   -1.5457    
   8  Prefactor     .54015        .20050        .24152E-04   -1.5561    
   9  Prefactor     .10000E-03    4.6432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0808        1.0963        .67408E-04   -1.5419    
  11  Prefactor     .10000E-03    19.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .30482        .86841        .14778E-02   -1.5598    
  13  Prefactor     .10000E-03    176.79        .82944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.115        10.206        .99769E-04   -1.4905    
  15  Prefactor     .10000E-03    8.4765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.6853        .29505        .15205E-04   -1.5380    
  17  Prefactor     .10000E-03    5.2030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .30468        58.797        .42471E-02   -1.5598    
  19  Prefactor     .10000E-03    6.8159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.945        22.070        .10724E-03   -1.4961    
  21  Prefactor     13.429        20.432        .10929E-03   -1.4975    
  22  Prefactor     .10000E-03    5.8196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.0970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .86374        .25720        .39045E-03   -.97746    
  25  Prefactor     .91580        .13213        .20068E-03   -.95591    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46168e-09
Minuit parameter uncertainties:
  1  50.2595
  2  1.17224
  3  0.000289133
  4  5.33685
  5  12.6693
  6  0.0013489
  7  11.5495
  8  0.200504
  9  3.03871e-06
  10  1.09628
  11  0.000571875
  12  0.868445
  13  5.08101e-05
  14  10.2072
  15  2.1882e-05
  16  0.295052
  17  6.53148e-06
  18  8.47206
  19  4.91602e-05
  20  22.0826
  21  20.4428
  22  4.26886e-05
  23  1.55404e-05
  24  0.257567
  25  0.13218
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.611e+01  1.021e+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.158e-01  1.322e-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.637e-01  2.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.03
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 5.63e-08 +/- 3.56e-08
Energy Flux (Fixed Index): 2.14e-05 +/- 1.35e-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) = 8473.94454225
delta logL = 0.205091342748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8473.94422395
delta logL = 0.205409647893

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.750       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9655       1.0000          .0000       10.000    
     3 'Normalizat'    .87993       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91177       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=   8473.944     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      270 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.717        430.09        .22531E-02   -.44302E-05
   2  Index         1.9637        5.5859        .16349        .76042E-04
   3  Normalizat    .88010        .21054        .87452E-01    .35276E-04
   4  Prefactor     .91176        .68334E-01    .45155E-01    .13913E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.7168
  Index      = 1.96374
  Normalizat = 0.880105
  Prefactor  = 0.911758
 **********
 **   18 **HESSE 
 **********

 FCN=   8473.944     FROM HESSE     STATUS=OK            33 CALLS      303 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.717        13.675        .90124E-04   -1.4820    
   2  Index         1.9637        .52203        .94482E-02   -.65260    
   3  Normalizat    .88010        .24473        .38730E-03   -.97163    
   4  Prefactor     .91176        .12968        .20114E-03   -.95731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.52731e-12
Minuit parameter uncertainties:
  1  13.6771
  2  0.523543
  3  0.245041
  4  0.129724
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/479318': 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) = 8473.94421341
delta logL = 0.205420187538

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.972e+01  1.368e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  1.964e+00  5.235e-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.118e-01  1.297e-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.801e-01  2.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.43
Ra Dec: 342.246 21.116
Photon Index (Free Index): 1.96 +/- 0.52
Photon Flux (Free Index): 3.81e-08 +/- 3.71e-08
Energy Flux (Free Index): 2.88e-05 +/- 2.69e-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/479318/cmap_HighResolution_397440001_397699201_4FGL_J2248.9+2106_daily_bin610.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.63e-08', energy_flux2='2.88e-05', photon_flux_error='3.56e-08', dlogl='2.05e-01', energy_flux='2.14e-05', photon_flux2='3.81e-08', job_status='DONE', time_completed='2021-09-28 21:08:07.243143', photon_index_error2='0.52', photon_index2='1.96', ts='9.03', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='2.69e-05', EG='0.86', time_epoch_completed='1632888487.24', return_code='0', job_id='479318', GAL2='0.91', EG2='0.88', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='3.71e-08', ts2='9.43', photon_index='2.30' WHERE bin_id='610' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:08:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 479318: <4FGL_J2248.9+2106_daily_bin610> in cluster <slac> Done

Job <4FGL_J2248.9+2106_daily_bin610> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 20:55:42 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:55:43 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:55:43 2021
Terminated at Tue Sep 28 21:08:07 2021
Results reported at Tue Sep 28 21:08:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin610 342.246 21.1159 397440001 397699201 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 :                                   733.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            745 sec.

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

