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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1371
RA = 342.246, Dec = 21.1159
tmin = 594691201, tmax = 594950401
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='483606', job_status='RUN', time_executed='2021-09-28 21:14:02.835303', time_epoch_executed='1632888842.84' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1371'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483606

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483606/ft1_4FGL_J2248.9+2106_daily_bin1371.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483606/ft2_4FGL_J2248.9+2106_daily_bin1371.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483606/ft1_4FGL_J2248.9+2106_daily_bin1371.fits outfile=/scratch/kocevski/483606/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1371.fits ra=342.246 dec=21.1159 rad=12.0 tmin=594691201.0 tmax=594950401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.95
user 2.75
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483606/ft1_filtered_4FGL_J2248.9+2106_daily_bin1371.fits evtable="EVENTS" scfile=/scratch/kocevski/483606/ft2_4FGL_J2248.9+2106_daily_bin1371.fits sctable="SC_DATA" expcube=/scratch/kocevski/483606/ltcube_594691201_594950401_4FGL_J2248.9+2106_daily_bin1371.fits outfile=/scratch/kocevski/483606/expmap_594691201_594950401_4FGL_J2248.9+2106_daily_bin1371.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/483606/ltcube_594691201_594950401_4FGL_J2248.9+2106_daily_bin1371.fits
.....................!
real 191.03
user 186.88
sys 3.75

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/483606/ft1_filtered_4FGL_J2248.9+2106_daily_bin1371.fits scfile=/scratch/kocevski/483606/ft2_4FGL_J2248.9+2106_daily_bin1371.fits outfile=/scratch/kocevski/483606/cmap_594691201_594950401_4FGL_J2248.9+2106_daily_bin1371.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483606/ft1_filtered_4FGL_J2248.9+2106_daily_bin1371.fits scfile=/scratch/kocevski/483606/ft2_4FGL_J2248.9+2106_daily_bin1371.fits outfile=/scratch/kocevski/483606/cmap_HighResolution_594691201_594950401_4FGL_J2248.9+2106_daily_bin1371.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=342.246 yref=21.1159 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9687       1.0000         .10000E-03   10000.    
     4 'norm      '    3.2907       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11332E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.330       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .30555       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22566E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.6304       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6460       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.534       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .45573       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.124       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    54.130       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.2144       1.0000         .10000E-03   10000.    
    23 'Prefactor '    52.865       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98165       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0058       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=   8449.566     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     2939 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    75.948        .90712E-02** at limit **
   2  norm          .10000E-03    .30675        .25249E-01** at limit **
   3  Prefactor     4.9717        16.867        .45105E-02   -.43330E-03
   4  norm          3.2904        3.5631        .55800E-02    .29330E-03
   5  Prefactor     .10000E-03    2.6927        .90712E-02** at limit **
   6  Prefactor     .10000E-03    275.72        .90712E-02** at limit **
   7  Prefactor     10.330        13.375        .31166E-02    .91494E-04
   8  Prefactor     .30558        .16469        .57362E-02    .13994E-02
   9  Prefactor     .10000E-03    12.902        .90712E-02** at limit **
  10  norm          7.6307        1.7850        .36294E-02    .29807E-04
  11  Prefactor     .10000E-03    7.5843        .90712E-02** at limit **
  12  norm          1.6459        1.6115        .82300E-02    .42753E-03
  13  Prefactor     .10000E-03    20.644        .90712E-02** at limit **
  14  Prefactor     32.534        14.181        .17563E-02    .11639E-02
  15  Prefactor     .10000E-03    10.131        .90712E-02** at limit **
  16  Prefactor     .45572        .16193        .46334E-02    .81346E-03
  17  Prefactor     .10000E-03    3.3620        .90712E-02** at limit **
  18  Prefactor     .10000E-03    7.1219        .90712E-02** at limit **
  19  Prefactor     16.125        17.151        .24936E-02   -.40328E-03
  20  Prefactor     .10000E-03    12.656        .90712E-02** at limit **
  21  Prefactor     54.127        38.958        .13629E-02    .19120E-03
  22  Prefactor     2.2171        12.273        .69097E-02    .39304E-03
  23  Prefactor     52.858        33.264        .13791E-02   -.48206E-03
  24  Normalizat    .98162        .23922        .84736E-01    .30086E-04
  25  Prefactor     1.0059        .11708        .44026E-01    .86409E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.97175
  norm       = 3.2904
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10.3303
  Prefactor  = 0.305578
  Prefactor  = 0.0001
  norm       = 7.63065
  Prefactor  = 0.0001
  norm       = 1.6459
  Prefactor  = 0.0001
  Prefactor  = 32.5339
  Prefactor  = 0.0001
  Prefactor  = 0.45572
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1247
  Prefactor  = 0.0001
  Prefactor  = 54.1272
  Prefactor  = 2.21706
  Prefactor  = 52.8575
  Normalizat = 0.981625
  Prefactor  = 1.00588
 **********
 **   18 **HESSE 
 **********

 FCN=   8449.566     FROM HESSE     STATUS=OK           427 CALLS     3366 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    76.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .40789        .98754E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.9717        16.814        .18042E-03   -1.5262    
   4  norm          3.2904        3.5538        .17405E-03   -1.5345    
   5  Prefactor     .10000E-03    2.6954        .14730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    276.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.330        13.420        .12466E-03   -1.5065    
   8  Prefactor     .30558        .16065        .25916E-04   -1.5597    
   9  Prefactor     .10000E-03    13.428        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.6307        1.7854        .56723E-04   -1.5155    
  11  Prefactor     .10000E-03    7.5893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6459        1.5936        .10949E-03   -1.5451    
  13  Prefactor     .10000E-03    20.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.534        14.164        .70250E-04   -1.4567    
  15  Prefactor     .10000E-03    10.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .45572        .16134        .20572E-04   -1.5573    
  17  Prefactor     .10000E-03    3.3651        .16460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.2430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.125        17.172        .99744E-04   -1.4905    
  20  Prefactor     .10000E-03    12.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     54.127        38.964        .54518E-04   -1.4235    
  22  Prefactor     2.2171        11.650        .27639E-03   -1.5410    
  23  Prefactor     52.858        32.491        .55163E-04   -1.4253    
  24  Normalizat    .98162        .27613        .37515E-03   -.93649    
  25  Prefactor     1.0059        .13628        .19872E-03   -.92534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13074e-09
Minuit parameter uncertainties:
  1  0.000129248
  2  1.39576e-08
  3  16.8302
  4  3.554
  5  2.30355e-07
  6  0.00106243
  7  13.4236
  8  0.160649
  9  1.76334e-05
  10  1.78539
  11  1.1943e-07
  12  1.59368
  13  3.77313e-06
  14  14.1651
  15  1.8536e-06
  16  0.161337
  17  4.4327e-07
  18  5.34182e-07
  19  17.1773
  20  1.66559e-05
  21  38.9827
  22  10.1671
  23  32.5022
  24  0.27653
  25  0.136328
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  3.253e+01  1.417e+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.006e+00  1.363e-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:  9.816e-01  2.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.28
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 4.95e-08
Energy Flux (Fixed Index): 4.32e-05 +/- 1.88e-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) = 8448.76666664
delta logL = 0.799715744466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8448.76666386
delta logL = 0.799718526237

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.097       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8195       1.0000          .0000       10.000    
     3 'Normalizat'    1.0331       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99020       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=   8448.767     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      271 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.091        19.935        .29851E-03    .54080E-05
   2  Index         1.8192        .34912        .64413E-02    .10036E-03
   3  Normalizat    1.0332        .25162        .36674E-03   -.34347E-04
   4  Prefactor     .99015        .13456        .20008E-03    .43071E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.0909
  Index      = 1.81919
  Normalizat = 1.0332
  Prefactor  = 0.990147
 **********
 **   18 **HESSE 
 **********

 FCN=   8448.767     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.091        19.870        .11941E-04   -1.4364    
   2  Index         1.8192        .34784        .12883E-02   -.68951    
   3  Normalizat    1.0332        .25175        .14670E-04   -.91926    
   4  Prefactor     .99015        .13465        .80031E-05   -.93059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12624e-11
Minuit parameter uncertainties:
  1  19.8732
  2  0.34831
  3  0.25204
  4  0.134698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483606': 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) = 8448.7666634
delta logL = 0.799718982944

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  4.509e+01  1.987e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  1.819e+00  3.483e-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.901e-01  1.347e-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.033e+00  2.520e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.87
Ra Dec: 342.246 21.116
Photon Index (Free Index): 1.82 +/- 0.35
Photon Flux (Free Index): 6.95e-08 +/- 4.37e-08
Energy Flux (Free Index): 7.86e-05 +/- 5.70e-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/483606/cmap_HighResolution_594691201_594950401_4FGL_J2248.9+2106_daily_bin1371.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='7.86e-05', photon_flux_error='4.95e-08', dlogl='8.00e-01', energy_flux='4.32e-05', photon_flux2='6.95e-08', job_status='DONE', time_completed='2021-09-28 21:26:08.749460', photon_index_error2='0.35', photon_index2='1.82', ts='13.28', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='5.70e-05', EG='0.98', time_epoch_completed='1632889568.75', return_code='0', job_id='483606', GAL2='0.99', EG2='1.03', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='4.37e-08', ts2='14.87', photon_index='2.30' WHERE bin_id='1371' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:26:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 483606: <4FGL_J2248.9+2106_daily_bin1371> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1371 342.246 21.1159 594691201 594950401 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 :                                   712.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            936 sec.

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

