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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1006
RA = 342.246, Dec = 21.1159
tmin = 500083201, tmax = 500342401
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='480945', job_status='RUN', time_executed='2021-09-28 21:04:00.380230', time_epoch_executed='1632888240.38' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/480945

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/480945/ft1_4FGL_J2248.9+2106_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/480945/ft2_4FGL_J2248.9+2106_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/480945/ft1_4FGL_J2248.9+2106_daily_bin1006.fits outfile=/scratch/kocevski/480945/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1006.fits ra=342.246 dec=21.1159 rad=12.0 tmin=500083201.0 tmax=500342401.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.63
user 5.35
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/480945/ft1_filtered_4FGL_J2248.9+2106_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/480945/ft2_4FGL_J2248.9+2106_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/480945/ltcube_500083201_500342401_4FGL_J2248.9+2106_daily_bin1006.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/480945/ft2_4FGL_J2248.9+2106_daily_bin1006.fits
.....................!
real 12.18
user 11.83
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/480945/ft1_filtered_4FGL_J2248.9+2106_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/480945/ft2_4FGL_J2248.9+2106_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/480945/ltcube_500083201_500342401_4FGL_J2248.9+2106_daily_bin1006.fits outfile=/scratch/kocevski/480945/expmap_500083201_500342401_4FGL_J2248.9+2106_daily_bin1006.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/480945/ltcube_500083201_500342401_4FGL_J2248.9+2106_daily_bin1006.fits
.....................!
real 190.67
user 185.52
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/480945/ft1_filtered_4FGL_J2248.9+2106_daily_bin1006.fits scfile=/scratch/kocevski/480945/ft2_4FGL_J2248.9+2106_daily_bin1006.fits outfile=/scratch/kocevski/480945/cmap_500083201_500342401_4FGL_J2248.9+2106_daily_bin1006.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/480945/ft1_filtered_4FGL_J2248.9+2106_daily_bin1006.fits scfile=/scratch/kocevski/480945/ft2_4FGL_J2248.9+2106_daily_bin1006.fits outfile=/scratch/kocevski/480945/cmap_HighResolution_500083201_500342401_4FGL_J2248.9+2106_daily_bin1006.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/480945/ft1_filtered_4FGL_J2248.9+2106_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/480945/ft2_4FGL_J2248.9+2106_daily_bin1006.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/480945/Model_4FGL_J2248.9+2106_daily_bin1006.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/480945/ft1_filtered_4FGL_J2248.9+2106_daily_bin1006.fits.....................!
real 76.28
user 74.96
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.741       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9828       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3145       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6402       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3599       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.182       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.7539       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.070       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .80180E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13246E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.235       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.9956       1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.013       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99282       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0167       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=   6467.395     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2920 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.744        38.986        .13554E-05   -.36992E-05
   2  norm          .10000E-03    .28285       -.13861E-07** at limit **
   3  Prefactor     4.9745        18.034       -.21496E-05   -.51310E-04
   4  norm          .10000E-03    3.4890       -.13898E-06** at limit **
   5  Prefactor     .10000E-03    5.7425       -.42161E-07** at limit **
   6  Prefactor     .10000E-03    60.479        .26620E-04** at limit **
   7  Prefactor     5.2900        22.122        .21973E-05   -.29149E-04
   8  Prefactor     6.6400        .69172       -.35903E-07    .38156E-03
   9  Prefactor     .10000E-03    7.7849        .88623E-08** at limit **
  10  norm          .10000E-03    .84674       -.94486E-07** at limit **
  11  Prefactor     .10000E-03    41.432       -.36794E-04** at limit **
  12  norm          2.3598        2.2913       -.26300E-07    .18049E-03
  13  Prefactor     .10000E-03    147.43       -.78113E-05** at limit **
  14  Prefactor     24.181        22.306       -.53099E-06    .29161E-05
  15  Prefactor     .10000E-03    20.179       -.63566E-06** at limit **
  16  Prefactor     5.7533        .58022       -.27048E-07    .18481E-02
  17  Prefactor     23.068        19.457        .20358E-06    .44596E-05
  18  Prefactor     .10027E-03    5.3369       -.13818E-05** at limit **
  19  Prefactor     .10000E-03    6.5537        .16525E-07** at limit **
  20  Prefactor     .10000E-03    35.278        .22635E-04** at limit **
  21  Prefactor     46.185        42.395       -.30210E-04   -.43318E-04
  22  Prefactor     5.9948        10.693       -.25148E-06   -.71319E-04
  23  Prefactor     22.011        23.820       -.51472E-06    .14558E-04
  24  Normalizat    .99323        .35502        .43230E-05    .43955E-04
  25  Prefactor     1.0164        .17469        .92367E-06    .21010E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.7444
  norm       = 0.0001
  Prefactor  = 4.97447
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.28999
  Prefactor  = 6.64001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.35983
  Prefactor  = 0.0001
  Prefactor  = 24.181
  Prefactor  = 0.0001
  Prefactor  = 5.75328
  Prefactor  = 23.0676
  Prefactor  = 0.000100275
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 46.1854
  Prefactor  = 5.99477
  Prefactor  = 22.0111
  Normalizat = 0.993229
  Prefactor  = 1.01639
 **********
 **   18 **HESSE 
 **********

 FCN=   6467.395     FROM HESSE     STATUS=OK           427 CALLS     3347 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.744        39.043        .11222E-03   -1.4994    
   2  norm          .10000E-03    .28500        .41759E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.9745        18.002        .18016E-03   -1.5262    
   4  norm          .10000E-03    3.5066        .14667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.7442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    60.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.2900        22.131        .17434E-03   -1.5248    
   8  Prefactor     6.6400        .69187        .20728E-04   -1.5193    
   9  Prefactor     .10000E-03    7.8014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    9.1190        .14171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    41.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3598        2.2982        .11545E-03   -1.5401    
  13  Prefactor     .10000E-03    148.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.181        22.271        .81458E-04   -1.4724    
  15  Prefactor     .10000E-03    20.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.7533        .57923        .18344E-04   -1.5228    
  17  Prefactor     23.068        19.461        .83395E-04   -1.4747    
  18  Prefactor     .10027E-03    56.662        .35913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.5561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     46.185        42.518        .58966E-04   -1.4348    
  22  Prefactor     5.9948        10.693        .16398E-03   -1.5218    
  23  Prefactor     22.011        23.818        .85370E-04   -1.4769    
  24  Normalizat    .99323        .41196        .48274E-03   -.93258    
  25  Prefactor     1.0164        .20513        .24945E-03   -.92185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75363e-09
Minuit parameter uncertainties:
  1  39.1209
  2  1.1985e-06
  3  18.0214
  4  1.55005e-05
  5  3.77601e-06
  6  4.8618e-05
  7  21.6535
  8  0.691871
  9  2.87545e-06
  10  7.14343e-05
  11  0.000106149
  12  2.29828
  13  0.000101611
  14  22.2791
  15  5.11249e-06
  16  0.579232
  17  19.4665
  18  0.00789884
  19  2.43211e-06
  20  0.00045995
  21  42.5456
  22  10.6962
  23  23.8286
  24  0.413285
  25  0.205289
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  2.418e+01  2.228e+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.016e+00  2.053e-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.932e-01  4.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.93
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 8.45e-08 +/- 7.78e-08
Energy Flux (Fixed Index): 3.21e-05 +/- 2.96e-05

TS (Fixed Index): 1.93
Ra Dec: 342.246 21.116
Photon Flux Upper Limit: 2.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.98e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/480945/likelihoodResults_500083201_500342401_4FGL_J2248.9+2106_daily_bin1006.txt

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) = 6467.38757372
delta logL = 0.00792540702059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6467.38143331
delta logL = 0.0140658237069

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.303       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4392       1.0000          .0000       10.000    
     3 'Normalizat'    .97993       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0208       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=   6467.381     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      252 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.300        30.313        .86781E-04    .15943E-03
   2  Index         2.4393        .95664        .76133E-02    .44826E-04
   3  Normalizat    .97994        .39452        .48545E-03   -.19681E-03
   4  Prefactor     1.0208        .20419        .24895E-03   -.50646E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.2996
  Index      = 2.43932
  Normalizat = 0.979935
  Prefactor  = 1.02083
 **********
 **   18 **HESSE 
 **********

 FCN=   6467.381     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.300        26.946        .34712E-05   -1.4785    
   2  Index         2.4393        .85044        .30453E-03   -.53767    
   3  Normalizat    .97994        .39278        .19418E-04   -.93706    
   4  Prefactor     1.0208        .20371        .49790E-04   -.92038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53024e-10
Minuit parameter uncertainties:
  1  26.9613
  2  0.856097
  3  0.39394
  4  0.203865
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/480945': 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) = 6467.38143329
delta logL = 0.0140658366654

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  2.130e+01  2.696e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.439e+00  8.561e-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.021e+00  2.039e-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.799e-01  3.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.96
Ra Dec: 342.246 21.116
Photon Index (Free Index): 2.44 +/- 0.86
Photon Flux (Free Index): 9.78e-08 +/- 1.14e-07
Energy Flux (Free Index): 3.05e-05 +/- 2.81e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/480945/cmap_HighResolution_500083201_500342401_4FGL_J2248.9+2106_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.98e-02', comment='SUCCESS', photon_flux='8.45e-08', energy_flux2='3.05e-05', photon_flux_error='7.78e-08', dlogl='1.41e-02', energy_flux='3.21e-05', photon_flux2='9.78e-08', job_status='DONE', time_completed='2021-09-28 21:16:26.063051', photon_index_error2='0.86', photon_index2='2.44', ts='1.93', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='2.58e-07', energy_flux_error2='2.81e-05', EG='0.99', time_epoch_completed='1632888986.06', return_code='0', job_id='480945', GAL2='1.02', EG2='0.98', return_code2='0', energy_flux_error='2.96e-05', photon_flux_error2='1.14e-07', ts2='1.96', photon_index='2.30' WHERE bin_id='1006' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:16:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 480945: <4FGL_J2248.9+2106_daily_bin1006> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1006 342.246 21.1159 500083201 500342401 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 :                                   742.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             246.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            947 sec.

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

