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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin956
RA = 342.246, Dec = 21.1159
tmin = 487123201, tmax = 487382401
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='480875', job_status='RUN', time_executed='2021-09-28 21:00:49.798060', time_epoch_executed='1632888049.8' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='956'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/480875

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/480875/ft1_4FGL_J2248.9+2106_daily_bin956.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/480875/ft2_4FGL_J2248.9+2106_daily_bin956.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/480875/ft1_4FGL_J2248.9+2106_daily_bin956.fits outfile=/scratch/kocevski/480875/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin956.fits ra=342.246 dec=21.1159 rad=12.0 tmin=487123201.0 tmax=487382401.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.60
user 3.37
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/480875/ft1_filtered_4FGL_J2248.9+2106_daily_bin956.fits evtable="EVENTS" scfile=/scratch/kocevski/480875/ft2_4FGL_J2248.9+2106_daily_bin956.fits sctable="SC_DATA" expcube=/scratch/kocevski/480875/ltcube_487123201_487382401_4FGL_J2248.9+2106_daily_bin956.fits outfile=/scratch/kocevski/480875/expmap_487123201_487382401_4FGL_J2248.9+2106_daily_bin956.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/480875/ltcube_487123201_487382401_4FGL_J2248.9+2106_daily_bin956.fits
.....................!
real 190.33
user 184.92
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/480875/ft1_filtered_4FGL_J2248.9+2106_daily_bin956.fits scfile=/scratch/kocevski/480875/ft2_4FGL_J2248.9+2106_daily_bin956.fits outfile=/scratch/kocevski/480875/cmap_487123201_487382401_4FGL_J2248.9+2106_daily_bin956.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/480875/ft1_filtered_4FGL_J2248.9+2106_daily_bin956.fits scfile=/scratch/kocevski/480875/ft2_4FGL_J2248.9+2106_daily_bin956.fits outfile=/scratch/kocevski/480875/cmap_HighResolution_487123201_487382401_4FGL_J2248.9+2106_daily_bin956.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.379       1.0000         .10000E-03   10000.    
     2 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10360E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.307       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6833       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.580       1.0000         .10000E-03   10000.    
    10 'norm      '    2.2300       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.939       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.213       1.0000         .10000E-03   10000.    
    14 'Prefactor '    63.641       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0284       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.0184       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.977       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .21597       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.4262       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .61373       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2356       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=   11475.56     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2949 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.391        32.437        .35431E-06    .45064E-04
   2  norm          .10000E-03    .49803        .77323E-07** at limit **
   3  Prefactor     .10000E-03    4.2736        .98493E-07** at limit **
   4  norm          .10000E-03    1.8816       -.27349E-06** at limit **
   5  Prefactor     .10000E-03    8.0266       -.50806E-07** at limit **
   6  Prefactor     32.330        51.921        .68844E-06    .48969E-04
   7  Prefactor     .10000E-03    7.4955       -.72065E-07** at limit **
   8  Prefactor     4.6832        .42164        .64194E-08   -.32632E-03
   9  Prefactor     11.579        10.882        .15163E-08    .16252E-05
  10  norm          2.2297        1.1659        .63456E-07    .11629E-03
  11  Prefactor     23.936        20.177        .18726E-07   -.24454E-04
  12  norm          .10000E-03    .64937       -.19675E-07** at limit **
  13  Prefactor     22.205        36.561       -.26001E-06   -.49281E-04
  14  Prefactor     63.639        16.827       -.62284E-07   -.22671E-03
  15  Prefactor     .10000E-03    8.5354       -.80948E-07** at limit **
  16  Prefactor     2.0284        .25371       -.10301E-08   -.31004E-02
  17  Prefactor     .10000E-03    4.2287       -.13602E-06** at limit **
  18  Prefactor     4.0208        8.1668        .27530E-06   -.10662E-03
  19  Prefactor     12.974        12.814        .56477E-07   -.30217E-04
  20  Prefactor     .10000E-03    50.975       -.10887E-05** at limit **
  21  Prefactor     .10000E-03    8.7396       -.97737E-07** at limit **
  22  Prefactor     .20437        7.5073        .31635E-05   -.10030E-02
  23  Prefactor     7.4469        19.031       -.45529E-05   -.54253E-03
  24  Normalizat    .61345        .25189       -.13827E-05   -.45683E-03
  25  Prefactor     1.2359        .13134       -.65281E-07   -.86776E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.3908
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 32.3297
  Prefactor  = 0.0001
  Prefactor  = 4.68324
  Prefactor  = 11.5789
  norm       = 2.22967
  Prefactor  = 23.9364
  norm       = 0.0001
  Prefactor  = 22.2052
  Prefactor  = 63.639
  Prefactor  = 0.0001
  Prefactor  = 2.02839
  Prefactor  = 0.0001
  Prefactor  = 4.02077
  Prefactor  = 12.9739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.204367
  Prefactor  = 7.44689
  Normalizat = 0.613449
  Prefactor  = 1.23585
 **********
 **   18 **HESSE 
 **********

 FCN=   11475.56     FROM HESSE     STATUS=OK           427 CALLS     3376 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.391        32.365        .79517E-04   -1.4700    
   2  norm          .10000E-03    1.1944        .14608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.2771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.0234        .28243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.0517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     32.330        51.606        .70496E-04   -1.4570    
   7  Prefactor     .10000E-03    7.5682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.6832        .42188        .19897E-04   -1.5275    
   9  Prefactor     11.579        10.892        .11773E-03   -1.5027    
  10  norm          2.2297        1.1599        .76766E-04   -1.5409    
  11  Prefactor     23.936        20.154        .81870E-04   -1.4729    
  12  norm          .10000E-03    .65631        .84191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.205        36.690        .84986E-04   -1.4765    
  14  Prefactor     63.639        16.754        .50303E-04   -1.4111    
  15  Prefactor     .10000E-03    8.5395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.0284        .25473        .17326E-04   -1.5423    
  17  Prefactor     .10000E-03    4.2389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.0208        8.1440        .20117E-03   -1.5307    
  19  Prefactor     12.974        12.797        .11119E-03   -1.4987    
  20  Prefactor     .10000E-03    52.457        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.7589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .20437        43.694        .38472E-02   -1.5618    
  23  Prefactor     7.4469        19.618        .14717E-03   -1.5162    
  24  Normalizat    .61345        .26211        .51386E-03   -1.0742    
  25  Prefactor     1.2359        .13999        .20831E-03   -.85235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14234e-08
Minuit parameter uncertainties:
  1  32.387
  2  4.72723e-06
  3  1.39219e-05
  4  0.000102826
  5  1.1721e-06
  6  51.6775
  7  1.24885e-05
  8  0.421881
  9  10.8941
  10  1.15991
  11  20.1602
  12  1.62706e-07
  13  36.7277
  14  16.755
  15  8.5308e-06
  16  0.254732
  17  1.08868e-05
  18  8.14626
  19  12.7992
  20  0.000115417
  21  8.17896e-06
  22  5.97947
  23  19.6345
  24  0.262639
  25  0.140035
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  6.364e+01  1.676e+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.236e+00  1.400e-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:  6.134e-01  2.626e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 33.02
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 2.22e-07 +/- 5.85e-08
Energy Flux (Fixed Index): 8.45e-05 +/- 2.22e-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) = 11474.962373
delta logL = 0.599090908658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11474.9478571
delta logL = 0.61360678924

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.974       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6100       1.0000          .0000       10.000    
     3 'Normalizat'    .54730       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2628       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=   11474.95     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      272 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.975        25.837        .62623E-04   -.32300E-03
   2  Index         2.6099        .34550        .29020E-02   -.14557E-03
   3  Normalizat    .54732        .25649        .54140E-03    .62618E-04
   4  Prefactor     1.2628        .14147        .20633E-03    .34671E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.9753
  Index      = 2.60995
  Normalizat = 0.547318
  Prefactor  = 1.26283
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.975        22.633        .12525E-04   -1.4427    
   2  Index         2.6099        .30250        .11608E-03   -.49839    
   3  Normalizat    .54732        .25500        .21656E-04   -1.1027    
   4  Prefactor     1.2628        .14082        .41266E-04   -.84419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17957e-10
Minuit parameter uncertainties:
  1  22.6377
  2  0.302741
  3  0.255549
  4  0.140864
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/480875': 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) = 11474.9478571
delta logL = 0.61360679857

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  4.098e+01  2.264e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.610e+00  3.027e-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.263e+00  1.409e-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:  5.473e-01  2.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 34.26
Ra Dec: 342.246 21.116
Photon Index (Free Index): 2.61 +/- 0.30
Photon Flux (Free Index): 2.65e-07 +/- 7.36e-08
Energy Flux (Free Index): 6.88e-05 +/- 2.01e-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/480875/cmap_HighResolution_487123201_487382401_4FGL_J2248.9+2106_daily_bin956.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.22e-07', energy_flux2='6.88e-05', photon_flux_error='5.85e-08', dlogl='6.14e-01', energy_flux='8.45e-05', photon_flux2='2.65e-07', job_status='DONE', time_completed='2021-09-28 21:16:05.096509', photon_index_error2='0.30', photon_index2='2.61', ts='33.02', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='2.01e-05', EG='0.61', time_epoch_completed='1632888965.1', return_code='0', job_id='480875', GAL2='1.26', EG2='0.55', return_code2='0', energy_flux_error='2.22e-05', photon_flux_error2='7.36e-08', ts2='34.26', photon_index='2.30' WHERE bin_id='956' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:16:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 480875: <4FGL_J2248.9+2106_daily_bin956> in cluster <slac> Done

Job <4FGL_J2248.9+2106_daily_bin956> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 21:00:34 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:00:35 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:00:35 2021
Terminated at Tue Sep 28 21:16:05 2021
Results reported at Tue Sep 28 21:16:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin956 342.246 21.1159 487123201 487382401 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 :                                   912.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            931 sec.

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

