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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1575
RA = 342.246, Dec = 21.1159
tmin = 647568001, tmax = 647827201
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='484996', job_status='RUN', time_executed='2021-09-28 21:18:09.779720', time_epoch_executed='1632889089.78' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484996

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484996/ft1_4FGL_J2248.9+2106_daily_bin1575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484996/ft2_4FGL_J2248.9+2106_daily_bin1575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484996/ft1_4FGL_J2248.9+2106_daily_bin1575.fits outfile=/scratch/kocevski/484996/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1575.fits ra=342.246 dec=21.1159 rad=12.0 tmin=647568001.0 tmax=647827201.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.45
user 3.23
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484996/ft1_filtered_4FGL_J2248.9+2106_daily_bin1575.fits evtable="EVENTS" scfile=/scratch/kocevski/484996/ft2_4FGL_J2248.9+2106_daily_bin1575.fits sctable="SC_DATA" expcube=/scratch/kocevski/484996/ltcube_647568001_647827201_4FGL_J2248.9+2106_daily_bin1575.fits outfile=/scratch/kocevski/484996/expmap_647568001_647827201_4FGL_J2248.9+2106_daily_bin1575.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/484996/ltcube_647568001_647827201_4FGL_J2248.9+2106_daily_bin1575.fits
.....................!
real 192.56
user 187.16
sys 5.09

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/484996/ft1_filtered_4FGL_J2248.9+2106_daily_bin1575.fits scfile=/scratch/kocevski/484996/ft2_4FGL_J2248.9+2106_daily_bin1575.fits outfile=/scratch/kocevski/484996/cmap_647568001_647827201_4FGL_J2248.9+2106_daily_bin1575.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.54
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484996/ft1_filtered_4FGL_J2248.9+2106_daily_bin1575.fits scfile=/scratch/kocevski/484996/ft2_4FGL_J2248.9+2106_daily_bin1575.fits outfile=/scratch/kocevski/484996/cmap_HighResolution_647568001_647827201_4FGL_J2248.9+2106_daily_bin1575.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/484996/ft1_filtered_4FGL_J2248.9+2106_daily_bin1575.fits evtable="EVENTS" scfile=/scratch/kocevski/484996/ft2_4FGL_J2248.9+2106_daily_bin1575.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/484996/Model_4FGL_J2248.9+2106_daily_bin1575.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/484996/ft1_filtered_4FGL_J2248.9+2106_daily_bin1575.fits.....................!
real 95.72
user 94.33
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.0888       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2116       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.405       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14251E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16663       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.624       1.0000         .10000E-03   10000.    
    10 'norm      '    .24876E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.4484       1.0000         .10000E-03   10000.    
    12 'norm      '    2.4171       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.918       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .36615E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .61549       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.6060       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.6466       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11731E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.381       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.5315       1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.391       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1591       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90772       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=   9165.957     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2963 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.967       -.18830E-04** at limit **
   2  norm          .10000E-03    .28502       -.82576E-07** at limit **
   3  Prefactor     .10000E-03    5.6468       -.60730E-06** at limit **
   4  norm          2.0887        2.9928       -.51161E-06   -.48142E-03
   5  Prefactor     7.2097        10.489       -.15217E-05   -.48078E-04
   6  Prefactor     24.277        58.760       -.20713E-03    .64142E-04
   7  Prefactor     .10000E-03    18.880        .13764E-05** at limit **
   8  Prefactor     .16661        .12969       -.52596E-07   -.13124E-02
   9  Prefactor     16.623        11.780       -.64629E-06    .11226E-04
  10  norm          .10001E-03    .43121       -.55867E-06** at limit **
  11  Prefactor     8.5090        23.791        .28495E-04    .30171E-03
  12  norm          2.4170        1.6049       -.28860E-06   -.20635E-02
  13  Prefactor     .10000E-03    57.278        .38381E-04** at limit **
  14  Prefactor     12.917        10.199       -.68924E-06    .23063E-04
  15  Prefactor     .10015E-03    9.5712       -.63429E-06** at limit **
  16  Prefactor     .61537        .16944       -.11381E-06   -.20557E-02
  17  Prefactor     4.6060        6.1211       -.99731E-07   -.94193E-04
  18  Prefactor     6.6439        7.2697        .34453E-05   -.64432E-04
  19  Prefactor     .10005E-03    6.8495       -.96705E-06** at limit **
  20  Prefactor     .10000E-03    7.5901       -.50545E-06** at limit **
  21  Prefactor     39.380        23.950       -.79827E-06    .29734E-04
  22  Prefactor     6.5306        5.3858       -.32670E-05   -.18941E-03
  23  Prefactor     21.388        17.567       -.61262E-07    .33721E-04
  24  Normalizat    1.1591        .20010        .26656E-05    .34466E-03
  25  Prefactor     .90776        .10727        .28043E-05    .24303E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.08868
  Prefactor  = 7.20969
  Prefactor  = 24.2767
  Prefactor  = 0.0001
  Prefactor  = 0.166609
  Prefactor  = 16.6229
  norm       = 0.000100009
  Prefactor  = 8.50898
  norm       = 2.41695
  Prefactor  = 0.000100001
  Prefactor  = 12.9168
  Prefactor  = 0.000100154
  Prefactor  = 0.615365
  Prefactor  = 4.60602
  Prefactor  = 6.64392
  Prefactor  = 0.000100051
  Prefactor  = 0.0001
  Prefactor  = 39.38
  Prefactor  = 6.53064
  Prefactor  = 21.3882
  Normalizat = 1.1591
  Prefactor  = 0.907763
 **********
 **   18 **HESSE 
 **********

 FCN=   9165.957     FROM HESSE     STATUS=OK           437 CALLS     3400 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .53481        .99393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.6567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.0887        2.9740        .19223E-03   -1.5419    
   5  Prefactor     7.2097        10.451        .14937E-03   -1.5171    
   6  Prefactor     24.277        58.613        .81086E-04   -1.4722    
   7  Prefactor     .10000E-03    19.740        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .16661        .12526        .28740E-04   -1.5626    
   9  Prefactor     16.623        11.743        .98230E-04   -1.4892    
  10  norm          .10001E-03    6.2864        .11067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.5090        22.050        .13792E-03   -1.5124    
  12  norm          2.4170        1.6033        .47360E-03   -1.5397    
  13  Prefactor     .10000E-03    57.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.917        10.191        .11145E-03   -1.4989    
  15  Prefactor     .10015E-03    75.937        .55380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .61537        .16401        .18812E-04   -1.5551    
  17  Prefactor     4.6060        6.1131        .18754E-03   -1.5279    
  18  Prefactor     6.6439        7.2303        .15565E-03   -1.5192    
  19  Prefactor     .10005E-03    39.016        .48410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.6037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     39.380        23.949        .63872E-04   -1.4452    
  22  Prefactor     6.5306        5.3773        .15703E-03   -1.5197    
  23  Prefactor     21.388        17.553        .86603E-04   -1.4783    
  24  Normalizat    1.1591        .23665        .32412E-03   -.87876    
  25  Prefactor     .90776        .12790        .19750E-03   -.95870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.42621e-09
Minuit parameter uncertainties:
  1  1.31925e-06
  2  7.28285e-06
  3  0.000120717
  4  2.97419
  5  10.4541
  6  58.7527
  7  0.000104001
  8  0.125261
  9  11.7446
  10  0.0004886
  11  22.071
  12  1.60336
  13  0.000465544
  14  10.1921
  15  0.00684205
  16  0.164009
  17  6.1139
  18  7.23123
  19  0.00281578
  20  2.77368e-05
  21  23.9553
  22  5.37766
  23  17.5574
  24  0.236869
  25  0.127942
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.292e+01  1.019e+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.078e-01  1.279e-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.159e+00  2.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.42
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 4.51e-08 +/- 3.56e-08
Energy Flux (Fixed Index): 1.71e-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) = 9165.9547895
delta logL = 0.0026015261974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9165.95321782
delta logL = 0.00417320740416

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.280       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3590       1.0000          .0000       10.000    
     3 'Normalizat'    1.1556       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90880       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=   9165.953     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      261 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.281        12.837        .11431E-03   -.65044E-04
   2  Index         2.3591        .71730        .80852E-02    .61096E-03
   3  Normalizat    1.1554        .23567        .32455E-03    .49530E-04
   4  Prefactor     .90890        .12747        .19738E-03    .99413E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2807
  Index      = 2.35912
  Normalizat = 1.15541
  Prefactor  = 0.9089
 **********
 **   18 **HESSE 
 **********

 FCN=   9165.953     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.281        12.049        .45724E-05   -1.5007    
   2  Index         2.3591        .67306        .16170E-02   -.55645    
   3  Normalizat    1.1554        .23548        .12982E-04   -.87992    
   4  Prefactor     .90890        .12750        .78953E-05   -.95831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05287e-11
Minuit parameter uncertainties:
  1  12.0518
  2  0.675906
  3  0.2357
  4  0.127547
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484996': 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) = 9165.95321748
delta logL = 0.00417354352976

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.228e+01  1.205e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.359e+00  6.759e-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.089e-01  1.275e-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.155e+00  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.44
Ra Dec: 342.246 21.116
Photon Index (Free Index): 2.36 +/- 0.68
Photon Flux (Free Index): 4.82e-08 +/- 4.94e-08
Energy Flux (Free Index): 1.67e-05 +/- 1.35e-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/484996/cmap_HighResolution_647568001_647827201_4FGL_J2248.9+2106_daily_bin1575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.51e-08', energy_flux2='1.67e-05', photon_flux_error='3.56e-08', dlogl='4.17e-03', energy_flux='1.71e-05', photon_flux2='4.82e-08', job_status='DONE', time_completed='2021-09-28 21:30:54.661842', photon_index_error2='0.68', photon_index2='2.36', ts='4.42', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.35e-05', EG='1.16', time_epoch_completed='1632889854.66', return_code='0', job_id='484996', GAL2='0.91', EG2='1.16', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='4.94e-08', ts2='4.44', photon_index='2.30' WHERE bin_id='1575' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:30:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 484996: <4FGL_J2248.9+2106_daily_bin1575> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1575 342.246 21.1159 647568001 647827201 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 :                                   762.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            932 sec.

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

