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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin804
RA = 342.246, Dec = 21.1159
tmin = 447724801, tmax = 447984001
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='480661', job_status='RUN', time_executed='2021-09-28 21:00:35.255776', time_epoch_executed='1632888035.26' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='804'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/480661

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/480661/ft1_4FGL_J2248.9+2106_daily_bin804.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/480661/ft2_4FGL_J2248.9+2106_daily_bin804.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/480661/ft1_4FGL_J2248.9+2106_daily_bin804.fits outfile=/scratch/kocevski/480661/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin804.fits ra=342.246 dec=21.1159 rad=12.0 tmin=447724801.0 tmax=447984001.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.42
user 3.20
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/480661/ft1_filtered_4FGL_J2248.9+2106_daily_bin804.fits evtable="EVENTS" scfile=/scratch/kocevski/480661/ft2_4FGL_J2248.9+2106_daily_bin804.fits sctable="SC_DATA" expcube=/scratch/kocevski/480661/ltcube_447724801_447984001_4FGL_J2248.9+2106_daily_bin804.fits outfile=/scratch/kocevski/480661/expmap_447724801_447984001_4FGL_J2248.9+2106_daily_bin804.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/480661/ltcube_447724801_447984001_4FGL_J2248.9+2106_daily_bin804.fits
.....................!
real 191.05
user 185.84
sys 4.83

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/480661/ft1_filtered_4FGL_J2248.9+2106_daily_bin804.fits scfile=/scratch/kocevski/480661/ft2_4FGL_J2248.9+2106_daily_bin804.fits outfile=/scratch/kocevski/480661/cmap_447724801_447984001_4FGL_J2248.9+2106_daily_bin804.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/480661/ft1_filtered_4FGL_J2248.9+2106_daily_bin804.fits scfile=/scratch/kocevski/480661/ft2_4FGL_J2248.9+2106_daily_bin804.fits outfile=/scratch/kocevski/480661/cmap_HighResolution_447724801_447984001_4FGL_J2248.9+2106_daily_bin804.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9197       1.0000         .10000E-03   10000.    
     2 'norm      '    .39659       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8161       1.0000         .10000E-03   10000.    
     4 'norm      '    23.809       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.0409       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7219       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7375       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3115       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .53289       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.398       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.4151       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3344       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3846       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.1307       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.018       1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.750       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.912       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .92962       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0123       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=   12028.57     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2907 TOTAL
                     EDM=   .64E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8738        140.53        .16023E-04   -.76443E-06
   2  norm          .39619        .97284        .10720E-07   -.16174E-03
   3  Prefactor     4.8155        10.500        .52126E-07   -.74181E-05
   4  norm          23.810        7.6578        .63638E-07    .99567E-05
   5  Prefactor     7.0387        16.333        .21785E-06    .18903E-05
   6  Prefactor     .10000E-03    30.414        .34068E-06** at limit **
   7  Prefactor     4.7221        8.6348        .13110E-06   -.44056E-05
   8  Prefactor     2.7375        .37560        .65582E-08   -.43916E-04
   9  Prefactor     .10000E-03    7.4111        .43878E-08** at limit **
  10  norm          2.3116        1.1714        .29169E-07   -.15162E-04
  11  Prefactor     .10000E-03    9.1558        .75591E-08** at limit **
  12  norm          .53295        1.4423        .17691E-06   -.11996E-04
  13  Prefactor     .10000E-03    39.408       -.22748E-06** at limit **
  14  Prefactor     12.398        10.580        .69478E-07    .24944E-05
  15  Prefactor     .10000E-03    16.010        .18448E-07** at limit **
  16  Prefactor     5.4151        .38493       -.10143E-07   -.44972E-05
  17  Prefactor     6.3344        6.4338        .22390E-07   -.15603E-05
  18  Prefactor     3.3844        9.4098        .29468E-05    .10983E-05
  19  Prefactor     7.1301        14.394       -.83879E-07   -.54614E-06
  20  Prefactor     26.018        19.957        .13616E-06   -.20850E-05
  21  Prefactor     25.749        23.145        .12544E-06   -.14818E-05
  22  Prefactor     12.910        10.018        .13974E-06    .82515E-05
  23  Prefactor     .10000E-03    39.496       -.31875E-06** at limit **
  24  Normalizat    .92955        .26076       -.10752E-05   -.15715E-04
  25  Prefactor     1.0124        .12763       -.10460E-07    .22065E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.87384
  norm       = 0.396188
  Prefactor  = 4.81555
  norm       = 23.8098
  Prefactor  = 7.03875
  Prefactor  = 0.0001
  Prefactor  = 4.7221
  Prefactor  = 2.73753
  Prefactor  = 0.0001
  norm       = 2.31162
  Prefactor  = 0.0001
  norm       = 0.532954
  Prefactor  = 0.0001
  Prefactor  = 12.3982
  Prefactor  = 0.0001
  Prefactor  = 5.41511
  Prefactor  = 6.33442
  Prefactor  = 3.38445
  Prefactor  = 7.13013
  Prefactor  = 26.0178
  Prefactor  = 25.7495
  Prefactor  = 12.9102
  Prefactor  = 0.0001
  Normalizat = 0.929547
  Prefactor  = 1.01239
 **********
 **   18 **HESSE 
 **********

 FCN=   12028.57     FROM HESSE     STATUS=OK           439 CALLS     3346 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8738        140.62        .20377E-03   -1.5314    
   2  norm          .39619        .95201        .16116E-03   -1.5582    
   3  Prefactor     4.8155        10.485        .18332E-03   -1.5269    
   4  norm          23.810        7.6350        .82092E-04   -1.4732    
   5  Prefactor     7.0387        16.362        .15118E-03   -1.5177    
   6  Prefactor     .10000E-03    30.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.7221        8.6251        .18518E-03   -1.5273    
   8  Prefactor     2.7375        .37679        .23124E-04   -1.5377    
   9  Prefactor     .10000E-03    7.4292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3116        1.1688        .80552E-04   -1.5404    
  11  Prefactor     .10000E-03    9.1759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .53295        1.4055        .20671E-03   -1.5562    
  13  Prefactor     .10000E-03    39.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.398        10.531        .11376E-03   -1.5004    
  15  Prefactor     .10000E-03    16.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.4151        .38564        .16829E-04   -1.5243    
  17  Prefactor     6.3344        6.4351        .15948E-03   -1.5205    
  18  Prefactor     3.3844        9.4257        .10997E-02   -1.5340    
  19  Prefactor     7.1301        14.380        .15022E-03   -1.5174    
  20  Prefactor     26.018        19.966        .78536E-04   -1.4687    
  21  Prefactor     25.749        23.157        .78943E-04   -1.4693    
  22  Prefactor     12.910        10.017        .11147E-03   -1.4989    
  23  Prefactor     .10000E-03    39.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .92955        .29364        .49007E-03   -.95430    
  25  Prefactor     1.0124        .14608        .24401E-03   -.92318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25703e-11
Minuit parameter uncertainties:
  1  46.7985
  2  0.952045
  3  10.4886
  4  7.63533
  5  16.3719
  6  5.48589e-06
  7  8.6274
  8  0.37679
  9  3.99893e-07
  10  1.1688
  11  2.02384e-06
  12  1.40561
  13  3.63789e-06
  14  10.5329
  15  3.73397e-07
  16  0.38564
  17  6.43583
  18  9.42983
  19  14.3869
  20  19.9714
  21  23.165
  22  10.0179
  23  1.58125e-05
  24  0.294146
  25  0.146135
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.240e+01  1.053e+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.012e+00  1.461e-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.295e-01  2.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.30
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 4.33e-08 +/- 3.68e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.40e-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) = 12028.427144
delta logL = 0.138741855344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12028.4226633
delta logL = 0.143222542554

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.541       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7855       1.0000          .0000       10.000    
     3 'Normalizat'    .95240       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0079       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=   12028.42     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      247 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.517        524.61        .29481E-02   -.46439E-03
   2  Index         1.7839        5.8509        .27191       -.59047E-04
   3  Normalizat    .95261        .31177        .10939        .35999E-04
   4  Prefactor     1.0079        .79026E-01    .43651E-01   -.40365E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5171
  Index      = 1.7839
  Normalizat = 0.952608
  Prefactor  = 1.00794
 **********
 **   18 **HESSE 
 **********

 FCN=   12028.42     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.517        12.969        .58962E-03   -1.5029    
   2  Index         1.7839        .97649        .15840E-01   -.69870    
   3  Normalizat    .95261        .27466        .48498E-03   -.94635    
   4  Prefactor     1.0079        .14268        .24461E-03   -.92465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8587e-09
Minuit parameter uncertainties:
  1  12.9722
  2  0.987401
  3  0.275068
  4  0.142738
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/480661': 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) = 12028.4226602
delta logL = 0.143225690976

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.152e+01  1.297e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  1.784e+00  9.874e-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.008e+00  1.427e-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.526e-01  2.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.58
Ra Dec: 342.246 21.116
Photon Index (Free Index): 1.78 +/- 0.99
Photon Flux (Free Index): 1.69e-08 +/- 3.72e-08
Energy Flux (Free Index): 2.12e-05 +/- 2.97e-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/480661/cmap_HighResolution_447724801_447984001_4FGL_J2248.9+2106_daily_bin804.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.33e-08', energy_flux2='2.12e-05', photon_flux_error='3.68e-08', dlogl='1.43e-01', energy_flux='1.65e-05', photon_flux2='1.69e-08', job_status='DONE', time_completed='2021-09-28 21:16:13.045167', photon_index_error2='0.99', photon_index2='1.78', ts='6.30', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='2.97e-05', EG='0.93', time_epoch_completed='1632888973.05', return_code='0', job_id='480661', GAL2='1.01', EG2='0.95', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='3.72e-08', ts2='6.58', photon_index='2.30' WHERE bin_id='804' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:16:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 480661: <4FGL_J2248.9+2106_daily_bin804> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin804 342.246 21.1159 447724801 447984001 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 :                                   936.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             367.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            953 sec.

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

