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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1294
RA = 342.246, Dec = 21.1159
tmin = 574732801, tmax = 574992001
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='483480', job_status='RUN', time_executed='2021-09-28 21:14:13.216613', time_epoch_executed='1632888853.22' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1294'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483480

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483480/ft1_4FGL_J2248.9+2106_daily_bin1294.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483480/ft2_4FGL_J2248.9+2106_daily_bin1294.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483480/ft1_4FGL_J2248.9+2106_daily_bin1294.fits outfile=/scratch/kocevski/483480/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1294.fits ra=342.246 dec=21.1159 rad=12.0 tmin=574732801.0 tmax=574992001.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 5.33
user 5.06
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/483480/ft1_filtered_4FGL_J2248.9+2106_daily_bin1294.fits" evtable="EVENTS" scfile=/scratch/kocevski/483480/ft2_4FGL_J2248.9+2106_daily_bin1294.fits sctable="SC_DATA" outfile=/scratch/kocevski/483480/ltcube_574732801_574992001_4FGL_J2248.9+2106_daily_bin1294.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/483480/ft2_4FGL_J2248.9+2106_daily_bin1294.fits
.....................!
real 11.46
user 11.09
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483480/ft1_filtered_4FGL_J2248.9+2106_daily_bin1294.fits evtable="EVENTS" scfile=/scratch/kocevski/483480/ft2_4FGL_J2248.9+2106_daily_bin1294.fits sctable="SC_DATA" expcube=/scratch/kocevski/483480/ltcube_574732801_574992001_4FGL_J2248.9+2106_daily_bin1294.fits outfile=/scratch/kocevski/483480/expmap_574732801_574992001_4FGL_J2248.9+2106_daily_bin1294.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/483480/ltcube_574732801_574992001_4FGL_J2248.9+2106_daily_bin1294.fits
.....................!
real 189.80
user 185.24
sys 4.17

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/483480/ft1_filtered_4FGL_J2248.9+2106_daily_bin1294.fits scfile=/scratch/kocevski/483480/ft2_4FGL_J2248.9+2106_daily_bin1294.fits outfile=/scratch/kocevski/483480/cmap_574732801_574992001_4FGL_J2248.9+2106_daily_bin1294.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483480/ft1_filtered_4FGL_J2248.9+2106_daily_bin1294.fits scfile=/scratch/kocevski/483480/ft2_4FGL_J2248.9+2106_daily_bin1294.fits outfile=/scratch/kocevski/483480/cmap_HighResolution_574732801_574992001_4FGL_J2248.9+2106_daily_bin1294.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.067       1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2775       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10562E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5900       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .51071       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.4768       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4281       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12449E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    64.173       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6377       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.496       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.486       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.235       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4976       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .70969       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .48268       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2851       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=   7416.708     FROM MIGRAD    STATUS=CONVERGED   1037 CALLS     3412 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.488        .18142E-02** at limit **
   2  norm          .10000E-03    .60337        .11019E-02** at limit **
   3  Prefactor     23.050        20.856        .83400E-04   -.16630E-04
   4  norm          .10000E-03    18.711        .31918E-02** at limit **
   5  Prefactor     3.2534        41.766        .22367E-03   -.20179E-04
   6  Prefactor     .10000E-03    74.649        .18142E-02** at limit **
   7  Prefactor     2.5822        21.733        .12678E-02   -.11739E-04
   8  Prefactor     .51078        .30924        .32096E-04    .22464E-02
   9  Prefactor     .10000E-03    5.7178        .18142E-02** at limit **
  10  norm          2.4763        1.4343        .72023E-04    .36115E-03
  11  Prefactor     5.4243        26.911        .17247E-03    .12656E-04
  12  norm          .10000E-03    .65989        .68164E-03** at limit **
  13  Prefactor     .10017E-03    57.890        .16397    ** at limit **
  14  Prefactor     64.163        20.151        .50095E-04    .35630E-04
  15  Prefactor     .10000E-03    18.232        .18142E-02** at limit **
  16  Prefactor     1.6376        .29589        .17577E-04    .83113E-03
  17  Prefactor     12.485        18.341        .11332E-03    .55279E-04
  18  Prefactor     .10000E-03    4.4092        .17588E-02** at limit **
  19  Prefactor     10.489        13.058        .12373E-03    .13323E-04
  20  Prefactor     20.224        28.379        .89040E-04    .25791E-04
  21  Prefactor     1.4955        77.462        .35003E-03    .28290E-04
  22  Prefactor     .10000E-03    14.590        .36285E-02** at limit **
  23  Prefactor     .61316        121.52        .61019E-02    .27494E-03
  24  Normalizat    .48310        .30713        .54164E-03   -.36522E-05
  25  Prefactor     1.2850        .15946        .18981E-03   -.25557E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.0496
  norm       = 0.000100002
  Prefactor  = 3.25335
  Prefactor  = 0.0001
  Prefactor  = 2.58218
  Prefactor  = 0.510781
  Prefactor  = 0.0001
  norm       = 2.47635
  Prefactor  = 5.42429
  norm       = 0.0001
  Prefactor  = 0.000100168
  Prefactor  = 64.163
  Prefactor  = 0.0001
  Prefactor  = 1.63762
  Prefactor  = 12.4851
  Prefactor  = 0.0001
  Prefactor  = 10.4885
  Prefactor  = 20.224
  Prefactor  = 1.49546
  Prefactor  = 0.0001
  Prefactor  = 0.613163
  Normalizat = 0.483103
  Prefactor  = 1.28499
 **********
 **   18 **HESSE 
 **********

 FCN=   7416.708     FROM HESSE     STATUS=OK           415 CALLS     3827 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.488        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .60383        .22039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.050        20.841        .33360E-05   -1.4747    
   4  norm          .10000E-03    18.835        .63836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2534        41.676        .89467E-05   -1.5347    
   6  Prefactor     .10000E-03    74.656        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5822        21.598        .50710E-04   -1.5387    
   8  Prefactor     .51078        .30896        .12838E-05   -1.5565    
   9  Prefactor     .10000E-03    5.7180        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.4763        1.4338        .28809E-05   -1.5393    
  11  Prefactor     5.4243        26.894        .68989E-05   -1.5242    
  12  norm          .10000E-03    .65990        .13633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10017E-03    61.215        .15824       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     64.163        20.147        .20038E-05   -1.4104    
  15  Prefactor     .10000E-03    18.234        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.6376        .29594        .70308E-06   -1.5452    
  17  Prefactor     12.485        18.336        .45327E-05   -1.5001    
  18  Prefactor     .10000E-03    4.4105        .35176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.489        13.056        .49493E-05   -1.5060    
  20  Prefactor     20.224        28.373        .35616E-05   -1.4808    
  21  Prefactor     1.4955        77.404        .14001E-04   -1.5463    
  22  Prefactor     .10000E-03    14.692        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .61316        123.24        .24408E-03   -1.5551    
  24  Normalizat    .48310        .30585        .21666E-04   -1.1320    
  25  Prefactor     1.2850        .15942        .37962E-04   -.83755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30016e-09
Minuit parameter uncertainties:
  1  2.55612e-05
  2  2.86083e-06
  3  20.8479
  4  0.000344426
  5  23.308
  6  8.72287e-05
  7  14.943
  8  0.308958
  9  2.82064e-07
  10  1.43386
  11  24.1734
  12  1.37834e-06
  13  0.00642897
  14  20.1496
  15  3.00622e-07
  16  0.295936
  17  18.3445
  18  5.14277e-06
  19  13.0596
  20  28.3916
  21  21.5466
  22  0.000100228
  23  17.4208
  24  0.306922
  25  0.159485
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  6.416e+01  2.015e+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.285e+00  1.595e-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:  4.831e-01  3.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 27.29
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 2.24e-07 +/- 7.04e-08
Energy Flux (Fixed Index): 8.52e-05 +/- 2.67e-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) = 7416.63805371
delta logL = 0.0694987607367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7416.63597632
delta logL = 0.071576153402

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.528       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4067       1.0000          .0000       10.000    
     3 'Normalizat'    .46212       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2924       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=   7416.636     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      292 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.540        28.186        .53355E-04   -.16782E-03
   2  Index         2.4068        .30649        .32638E-02   -.37574E-04
   3  Normalizat    .46257        .28986        .55257E-03   -.15976E-03
   4  Prefactor     1.2921        .15836        .18931E-03   -.22067E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.5396
  Index      = 2.40684
  Normalizat = 0.462573
  Prefactor  = 1.29213
 **********
 **   18 **HESSE 
 **********

 FCN=   7416.636     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.540        26.830        .10671E-04   -1.4203    
   2  Index         2.4068        .29156        .13055E-03   -.54525    
   3  Normalizat    .46257        .28937        .22103E-04   -1.1418    
   4  Prefactor     1.2921        .15818        .37863E-04   -.83541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.961e-10
Minuit parameter uncertainties:
  1  26.8361
  2  0.291788
  3  0.290312
  4  0.15824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483480': 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) = 7416.63597367
delta logL = 0.0715788060088

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  5.654e+01  2.684e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.407e+00  2.918e-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.292e+00  1.582e-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:  4.626e-01  2.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.44
Ra Dec: 342.246 21.116
Photon Index (Free Index): 2.41 +/- 0.29
Photon Flux (Free Index): 2.44e-07 +/- 8.87e-08
Energy Flux (Free Index): 7.91e-05 +/- 2.77e-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/483480/cmap_HighResolution_574732801_574992001_4FGL_J2248.9+2106_daily_bin1294.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.24e-07', energy_flux2='7.91e-05', photon_flux_error='7.04e-08', dlogl='7.16e-02', energy_flux='8.52e-05', photon_flux2='2.44e-07', job_status='DONE', time_completed='2021-09-28 21:26:16.454902', photon_index_error2='0.29', photon_index2='2.41', ts='27.29', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='2.77e-05', EG='0.48', time_epoch_completed='1632889576.45', return_code='0', job_id='483480', GAL2='1.29', EG2='0.46', return_code2='0', energy_flux_error='2.67e-05', photon_flux_error2='8.87e-08', ts2='27.44', photon_index='2.30' WHERE bin_id='1294' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:26:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 483480: <4FGL_J2248.9+2106_daily_bin1294> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1294 342.246 21.1159 574732801 574992001 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 :                                   709.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            954 sec.

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

