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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1633
RA = 342.193, Dec = -32.5926
tmin = 662601601, tmax = 662860801
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='693048', job_status='RUN', time_executed='2022-01-03 00:37:01.614045', time_epoch_executed='1641199021.61' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1633'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/693048

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/693048/ft1_4FGL_J2248.7-3235_daily_bin1633.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/693048/ft2_4FGL_J2248.7-3235_daily_bin1633.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/693048/ft1_4FGL_J2248.7-3235_daily_bin1633.fits outfile=/scratch/kocevski/693048/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1633.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=662601601.0 tmax=662860801.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 2.92
user 2.70
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/693048/ft2_4FGL_J2248.7-3235_daily_bin1633.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/693048/ft2_4FGL_J2248.7-3235_daily_bin1633.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/693048/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1633.fits evtable="EVENTS" outfile="/scratch/kocevski/693048/ft1_filtered_4FGL_J2248.7-3235_daily_bin1633.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/693048/ft1_filtered_4FGL_J2248.7-3235_daily_bin1633.fits" evtable="EVENTS" scfile=/scratch/kocevski/693048/ft2_4FGL_J2248.7-3235_daily_bin1633.fits sctable="SC_DATA" outfile=/scratch/kocevski/693048/ltcube_662601601_662860801_4FGL_J2248.7-3235_daily_bin1633.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/693048/ft2_4FGL_J2248.7-3235_daily_bin1633.fits
.....................!
real 12.67
user 12.30
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/693048/ft1_filtered_4FGL_J2248.7-3235_daily_bin1633.fits evtable="EVENTS" scfile=/scratch/kocevski/693048/ft2_4FGL_J2248.7-3235_daily_bin1633.fits sctable="SC_DATA" expcube=/scratch/kocevski/693048/ltcube_662601601_662860801_4FGL_J2248.7-3235_daily_bin1633.fits outfile=/scratch/kocevski/693048/expmap_662601601_662860801_4FGL_J2248.7-3235_daily_bin1633.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/693048/ltcube_662601601_662860801_4FGL_J2248.7-3235_daily_bin1633.fits
.....................!
real 190.37
user 184.97
sys 5.08

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J2248.7-3235 @ 342.193 -32.5926

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/693048/ft1_filtered_4FGL_J2248.7-3235_daily_bin1633.fits scfile=/scratch/kocevski/693048/ft2_4FGL_J2248.7-3235_daily_bin1633.fits outfile=/scratch/kocevski/693048/cmap_662601601_662860801_4FGL_J2248.7-3235_daily_bin1633.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.193 yref=-32.5926 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/693048/ft1_filtered_4FGL_J2248.7-3235_daily_bin1633.fits scfile=/scratch/kocevski/693048/ft2_4FGL_J2248.7-3235_daily_bin1633.fits outfile=/scratch/kocevski/693048/cmap_HighResolution_662601601_662860801_4FGL_J2248.7-3235_daily_bin1633.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.193 yref=-32.5926 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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/693048/ft1_filtered_4FGL_J2248.7-3235_daily_bin1633.fits evtable="EVENTS" scfile=/scratch/kocevski/693048/ft2_4FGL_J2248.7-3235_daily_bin1633.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/693048/Model_4FGL_J2248.7-3235_daily_bin1633.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/693048/ft1_filtered_4FGL_J2248.7-3235_daily_bin1633.fits.....................!
real 51.13
user 49.89
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/693048/ft1_filtered_4FGL_J2248.7-3235_daily_bin1633.fits', '/scratch/kocevski/693048/ft2_4FGL_J2248.7-3235_daily_bin1633.fits', expMap='/scratch/kocevski/693048/expmap_662601601_662860801_4FGL_J2248.7-3235_daily_bin1633.fits', expCube='/scratch/kocevski/693048/ltcube_662601601_662860801_4FGL_J2248.7-3235_daily_bin1633.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/693048/Model_4FGL_J2248.7-3235_daily_bin1633.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2248.7-3235'

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  4.211e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.761e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
313        Scale:  4.468e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/693048/ft1_filtered_4FGL_J2248.7-3235_daily_bin1633.fits
Spacecraft file(s): /scratch/kocevski/693048/ft2_4FGL_J2248.7-3235_daily_bin1633.fits
Exposure map: /scratch/kocevski/693048/expmap_662601601_662860801_4FGL_J2248.7-3235_daily_bin1633.fits
Exposure cube: /scratch/kocevski/693048/ltcube_662601601_662860801_4FGL_J2248.7-3235_daily_bin1633.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/693048/Model_4FGL_J2248.7-3235_daily_bin1633.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) = 6866.80275034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .47773       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.575       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.057       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.222       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7501       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.820       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.8760       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17662E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.916       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .42854E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.397       1.0000         .10000E-03   10000.    
    16 'norm      '    .53295       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.220       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.0662       1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.965       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.691       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .77404       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0159       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6866.793     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2897 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .47768        .26796       -.26283E-07    .20216E-04
   2  Prefactor     15.568        20.600        .55336E-06   -.18013E-04
   3  Prefactor     .10000E-03    1.9991       -.13499E-07** at limit **
   4  norm          10.055        17.476        .61989E-06   -.34287E-04
   5  Prefactor     25.195        38.222       -.27206E-04    .11086E-05
   6  Prefactor     8.7513        13.125       -.32440E-06   -.30293E-04
   7  Prefactor     16.804        11.918        .16240E-05   -.74438E-04
   8  Prefactor     .10000E-03    6.7642        .22254E-06** at limit **
   9  norm          2.8692        1.9734       -.16604E-06   -.32453E-03
  10  Prefactor     .10000E-03    112.95        .43785E-05** at limit **
  11  Prefactor     12.921        10.383        .43013E-05   -.71181E-04
  12  Prefactor     .10000E-03    1.4547        .26693E-07** at limit **
  13  norm          .10001E-03    2.0130       -.59245E-07** at limit **
  14  Prefactor     .10000E-03    14.039        .35035E-06** at limit **
  15  Prefactor     16.413        12.346       -.23122E-05   -.17931E-03
  16  norm          .53288        .90893        .45665E-06   -.15059E-02
  17  Prefactor     21.196        38.461       -.26911E-04   -.26749E-05
  18  Prefactor     .10000E-03    4.5904        .41444E-07** at limit **
  19  norm          5.0661        3.5313       -.20780E-06    .12160E-03
  20  norm          .10000E-03    2.0313       -.47344E-07** at limit **
  21  Prefactor     28.976        30.108        .44026E-05    .13822E-04
  22  Prefactor     14.687        33.463       -.54912E-05   -.63117E-05
  23  norm          .10000E-03    1.6572       -.18115E-06** at limit **
  24  Normalizat    .77368        .17022        .14724E-05   -.89187E-04
  25  Prefactor     1.0163        .16536        .10934E-05   -.66978E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.477678
  Prefactor  = 15.5679
  Prefactor  = 0.0001
  norm       = 10.0552
  Prefactor  = 25.1952
  Prefactor  = 8.75131
  Prefactor  = 16.8042
  Prefactor  = 0.0001
  norm       = 2.86921
  Prefactor  = 0.0001
  Prefactor  = 12.9207
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 16.4133
  norm       = 0.532884
  Prefactor  = 21.1956
  Prefactor  = 0.0001
  norm       = 5.0661
  norm       = 0.0001
  Prefactor  = 28.976
  Prefactor  = 14.6875
  norm       = 0.0001
  Normalizat = 0.77368
  Prefactor  = 1.01626
 **********
 **   18 **HESSE 
 **********

 FCN=   6866.793     FROM HESSE     STATUS=OK           437 CALLS     3334 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .47768        .27058        .31252E-04   -1.5570    
   2  Prefactor     15.568        20.601        .10149E-03   -1.4919    
   3  Prefactor     .10000E-03    2.0071        .11440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.055        17.477        .12635E-03   -1.5074    
   5  Prefactor     25.195        38.245        .79763E-04   -1.4704    
   6  Prefactor     8.7513        13.125        .13551E-03   -1.5116    
   7  Prefactor     16.804        11.919        .97656E-04   -1.4888    
   8  Prefactor     .10000E-03    6.7769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.8692        1.9641        .91921E-04   -1.5369    
  10  Prefactor     .10000E-03    114.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.921        10.423        .11146E-03   -1.4989    
  12  Prefactor     .10000E-03    1.4572        .97599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    29.524        .21072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.413        11.506        .98910E-04   -1.4897    
  16  norm          .53288        .82285        .60021E-04   -1.5562    
  17  Prefactor     21.196        38.503        .86951E-04   -1.4787    
  18  Prefactor     .10000E-03    4.6159        .17310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.0661        3.5323        .12496E-03   -1.5258    
  20  norm          .10000E-03    2.0379        .11532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.976        30.165        .74442E-04   -1.4631    
  22  Prefactor     14.687        33.811        .10450E-03   -1.4941    
  23  norm          .10000E-03    1.6654        .10384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .77368        .20830        .24911E-03   -1.0105    
  25  Prefactor     1.0163        .20096        .22707E-03   -.92189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.06668e-10
Minuit parameter uncertainties:
  1  0.27058
  2  20.6102
  3  4.25256e-06
  4  17.4856
  5  38.2826
  6  13.1289
  7  11.9206
  8  5.40443e-05
  9  1.96417
  10  0.000408632
  11  10.4246
  12  7.63047e-06
  13  0.000812317
  14  0.000124404
  15  11.5076
  16  0.822865
  17  38.5485
  18  8.78559e-06
  19  3.5324
  20  3.87148e-07
  21  30.1804
  22  33.8552
  23  2.22125e-05
  24  0.208511
  25  0.201104
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.292e+01  1.042e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.761e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
313        Scale:  4.468e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  1.016e+00  2.011e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  7.737e-01  2.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.08
Ra Dec: 342.193 -32.593
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 4.58e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 8.50e-06

TS (Fixed Index): 2.08
Ra Dec: 342.193 -32.593
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/693048/likelihoodResults_662601601_662860801_4FGL_J2248.7-3235_daily_bin1633.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) = 6866.38475882
delta logL = 0.408440475279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6866.37793667
delta logL = 0.415262622418

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0767       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6975       1.0000          .0000       10.000    
     3 'Normalizat'    .73777       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0447       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6866.378     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      240 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0723        86.776        .37699E-02    .60057E-03
   2  Index         3.6982        4.0261        .20901        .14396E-03
   3  Normalizat    .73772        .48404E-01    .42793E-01   -.11126E-04
   4  Prefactor     1.0448        .49832E-01    .40228E-01   -.52990E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.07232
  Index      = 3.69819
  Normalizat = 0.737723
  Prefactor  = 1.04477
 **********
 **   18 **HESSE 
 **********

 FCN=   6866.378     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0723        15.484        .13938E-03   -1.5176    
   2  Index         3.6982        1.8241        .73593E-02   -.26340    
   3  Normalizat    .73772        .19274        .25448E-03   -1.0242    
   4  Prefactor     1.0448        .19615        .22434E-03   -.91252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16069e-10
Minuit parameter uncertainties:
  1  15.4923
  2  1.87061
  3  0.192915
  4  0.196282
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/693048': 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) = 6866.37793653
delta logL = 0.415262760795

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  7.072e+00  1.549e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  3.698e+00  1.871e+00  0.000e+00  1.000e+01 (-1.000e+00)
313        Scale:  4.468e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  1.045e+00  1.963e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  7.377e-01  1.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.03
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 3.70 +/- 1.87
Photon Flux (Free Index): 6.67e-08 +/- 4.55e-08
Energy Flux (Free Index): 1.06e-05 +/- 8.28e-06

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/693048/cmap_HighResolution_662601601_662860801_4FGL_J2248.7-3235_daily_bin1633.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.37e-03', comment='SUCCESS', photon_flux='4.58e-08', energy_flux2='1.06e-05', photon_flux_error='3.69e-08', dlogl='4.15e-01', energy_flux='1.05e-05', photon_flux2='6.67e-08', job_status='DONE', time_completed='2022-01-03 00:49:17.911958', photon_index_error2='1.87', photon_index2='3.70', ts='2.08', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='8.28e-06', EG='0.77', time_epoch_completed='1641199757.91', return_code='0', job_id='693048', GAL2='1.04', EG2='0.74', return_code2='0', energy_flux_error='8.50e-06', photon_flux_error2='4.55e-08', ts2='3.03', photon_index='2.76' WHERE bin_id='1633' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan  3 00:49:17 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 693048: <4FGL_J2248.7-3235_daily_bin1633> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1633> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Jan  3 00:35:35 2022
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan  3 00:35:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan  3 00:35:37 2022
Terminated at Mon Jan  3 00:49:18 2022
Results reported at Mon Jan  3 00:49:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1633 342.193 -32.5926 662601601 662860801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2248.7-3235 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   738.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            823 sec.

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

