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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1022
RA = 342.193, Dec = -32.5926
tmin = 504230401, tmax = 504489601
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='474468', job_status='RUN', time_executed='2021-09-28 20:44:00.969701', time_epoch_executed='1632887040.97' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1022'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474468

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474468/ft1_4FGL_J2248.7-3235_daily_bin1022.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474468/ft2_4FGL_J2248.7-3235_daily_bin1022.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474468/ft1_4FGL_J2248.7-3235_daily_bin1022.fits outfile=/scratch/kocevski/474468/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1022.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=504230401.0 tmax=504489601.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.57
user 3.35
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474468/ft1_filtered_4FGL_J2248.7-3235_daily_bin1022.fits" evtable="EVENTS" scfile=/scratch/kocevski/474468/ft2_4FGL_J2248.7-3235_daily_bin1022.fits sctable="SC_DATA" outfile=/scratch/kocevski/474468/ltcube_504230401_504489601_4FGL_J2248.7-3235_daily_bin1022.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/474468/ft2_4FGL_J2248.7-3235_daily_bin1022.fits
.....................!
real 12.29
user 11.96
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474468/ft1_filtered_4FGL_J2248.7-3235_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/474468/ft2_4FGL_J2248.7-3235_daily_bin1022.fits sctable="SC_DATA" expcube=/scratch/kocevski/474468/ltcube_504230401_504489601_4FGL_J2248.7-3235_daily_bin1022.fits outfile=/scratch/kocevski/474468/expmap_504230401_504489601_4FGL_J2248.7-3235_daily_bin1022.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/474468/ltcube_504230401_504489601_4FGL_J2248.7-3235_daily_bin1022.fits
.....................!
real 191.82
user 186.22
sys 5.22

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/474468/ft1_filtered_4FGL_J2248.7-3235_daily_bin1022.fits scfile=/scratch/kocevski/474468/ft2_4FGL_J2248.7-3235_daily_bin1022.fits outfile=/scratch/kocevski/474468/cmap_504230401_504489601_4FGL_J2248.7-3235_daily_bin1022.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474468/ft1_filtered_4FGL_J2248.7-3235_daily_bin1022.fits scfile=/scratch/kocevski/474468/ft2_4FGL_J2248.7-3235_daily_bin1022.fits outfile=/scratch/kocevski/474468/cmap_HighResolution_504230401_504489601_4FGL_J2248.7-3235_daily_bin1022.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/474468/ft1_filtered_4FGL_J2248.7-3235_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/474468/ft2_4FGL_J2248.7-3235_daily_bin1022.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/474468/Model_4FGL_J2248.7-3235_daily_bin1022.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/474468/ft1_filtered_4FGL_J2248.7-3235_daily_bin1022.fits.....................!
real 41.07
user 39.76
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/474468/ft1_filtered_4FGL_J2248.7-3235_daily_bin1022.fits', '/scratch/kocevski/474468/ft2_4FGL_J2248.7-3235_daily_bin1022.fits', expMap='/scratch/kocevski/474468/expmap_504230401_504489601_4FGL_J2248.7-3235_daily_bin1022.fits', expCube='/scratch/kocevski/474468/ltcube_504230401_504489601_4FGL_J2248.7-3235_daily_bin1022.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/474468/Model_4FGL_J2248.7-3235_daily_bin1022.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/474468/ft1_filtered_4FGL_J2248.7-3235_daily_bin1022.fits
Spacecraft file(s): /scratch/kocevski/474468/ft2_4FGL_J2248.7-3235_daily_bin1022.fits
Exposure map: /scratch/kocevski/474468/expmap_504230401_504489601_4FGL_J2248.7-3235_daily_bin1022.fits
Exposure cube: /scratch/kocevski/474468/ltcube_504230401_504489601_4FGL_J2248.7-3235_daily_bin1022.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/474468/Model_4FGL_J2248.7-3235_daily_bin1022.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) = 4851.64656603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29243       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12074E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3430       1.0000         .10000E-03   10000.    
     4 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.480       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10430       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    127.42       1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.675       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11039E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8131       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .84174       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .41029       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.160       1.0000         .10000E-03   10000.    
    20 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    40.959       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .32365       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1981       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89995       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4851.568     FROM MIGRAD    STATUS=CONVERGED   1093 CALLS     3903 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29245        .26276        .30954E-03    .38343E-04
   2  Prefactor     .10000E-03    39.148        .99188E-01** at limit **
   3  Prefactor     6.3441        6.2292        .15937E-03    .97727E-05
   4  norm          .10000E-03    6.7633        .17691E-02** at limit **
   5  Prefactor     .10000E-03    23.685        .18142E-02** at limit **
   6  Prefactor     .10000E-03    10.085        .18142E-02** at limit **
   7  Prefactor     10.463        20.678        .12377E-03    .13264E-03
   8  Prefactor     .10645        27.236        .92095E-01    .99481E-04
   9  norm          .10000E-03    1.4136        .80238E-03** at limit **
  10  Prefactor     127.44        73.878        .35663E-04    .60887E-04
  11  Prefactor     27.684        14.633        .76154E-04    .35479E-03
  12  Prefactor     .10000E-03    20.826        .36285E-03** at limit **
  13  norm          .10000E-03    1.6679        .87700E-03** at limit **
  14  Prefactor     4.8127        15.141        .18337E-03   -.21234E-03
  15  Prefactor     .10000E-03    8.5489        .18142E-02** at limit **
  16  norm          .84197        .66892        .43341E-04   -.12848E-02
  17  Prefactor     .17674E-03    93.323        .17970    ** at limit **
  18  Prefactor     .10000E-03    8.8386        .18142E-02** at limit **
  19  norm          10.158        6.4418        .12571E-03   -.16893E-03
  20  norm          .10000E-03    3.1894        .12139E-02** at limit **
  21  Prefactor     40.871        56.750        .62634E-04   -.12847E-03
  22  Prefactor     .10000E-03    24.120        .18142E-02** at limit **
  23  norm          .33054        11.292        .25731E-02    .21354E-03
  24  Normalizat    1.1982        .27653        .24223E-03    .48803E-03
  25  Prefactor     .89978        .25338        .26664E-03    .45094E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.292446
  Prefactor  = 0.0001
  Prefactor  = 6.34413
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4629
  Prefactor  = 0.106453
  norm       = 0.0001
  Prefactor  = 127.438
  Prefactor  = 27.6842
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 4.81274
  Prefactor  = 0.000100003
  norm       = 0.841974
  Prefactor  = 0.000176744
  Prefactor  = 0.000100001
  norm       = 10.1581
  norm       = 0.0001
  Prefactor  = 40.8715
  Prefactor  = 0.0001
  norm       = 0.330543
  Normalizat = 1.19817
  Prefactor  = 0.899777
 **********
 **   18 **HESSE 
 **********

 FCN=   4851.568     FROM HESSE     STATUS=OK           435 CALLS     4338 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29245        .26276        .12382E-04   -1.5600    
   2  Prefactor     .10000E-03    36.485        .10346       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.3441        6.2292        .63749E-05   -1.5204    
   4  norm          .10000E-03    6.7634        .35383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.685        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.086        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.463        20.675        .49508E-05   -1.5061    
   8  Prefactor     .10645        25.136        .97246E-01   -1.5643    
   9  norm          .10000E-03    1.4137        .16048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     127.44        73.868        .71327E-05   -1.3445    
  11  Prefactor     27.684        14.633        .15231E-04   -1.4655    
  12  Prefactor     .10000E-03    20.828        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.6679        .17540E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.8127        15.136        .73350E-05   -1.5269    
  15  Prefactor     .10000E-03    8.5503        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .84197        .66884        .17336E-05   -1.5524    
  17  Prefactor     .17674E-03    97.756        .17439       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.8414        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.158        6.4305        .50284E-05   -1.5070    
  20  norm          .10000E-03    3.1894        .24279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     40.871        55.564        .12527E-04   -1.4428    
  22  Prefactor     .10000E-03    24.121        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .33054        10.793        .10292E-03   -1.5593    
  24  Normalizat    1.1982        .27680        .48446E-04   -.86659    
  25  Prefactor     .89978        .25366        .53328E-04   -.96149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77179e-09
Minuit parameter uncertainties:
  1  0.262762
  2  9.43472e-05
  3  6.2298
  4  7.53904e-06
  5  6.21413e-05
  6  5.99946e-06
  7  20.6895
  8  3.27147
  9  3.71738e-05
  10  73.922
  11  14.6352
  12  0.000282611
  13  2.62249e-05
  14  15.1478
  15  0.000335313
  16  0.668842
  17  0.173514
  18  0.000166574
  19  6.4309
  20  7.04287e-06
  21  55.6346
  22  1.22996e-06
  23  3.77776
  24  0.277142
  25  0.253992
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  2.768e+01  1.464e+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:  8.998e-01  2.540e-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:  1.198e+00  2.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.63
Ra Dec: 342.193 -32.593
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 9.82e-08 +/- 5.18e-08
Energy Flux (Fixed Index): 2.26e-05 +/- 1.19e-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) = 4850.51174493
delta logL = 1.05666074837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4850.49530241
delta logL = 1.07310327346

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.816       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0244       1.0000          .0000       10.000    
     3 'Normalizat'    1.2475       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86496       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=   4850.495     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      211 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.824        17.674        .25014E-05   -.10679E-03
   2  Index         2.0245        .45923        .21694E-04    .73451E-05
   3  Normalizat    1.2475        .21445       -.22972E-05   -.16607E-03
   4  Prefactor     .86491        .20639        .14308E-05   -.19267E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.8237
  Index      = 2.02453
  Normalizat = 1.24755
  Prefactor  = 0.864913
 **********
 **   18 **HESSE 
 **********

 FCN=   4850.495     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.824        17.530        .36687E-03   -1.4615    
   2  Index         2.0245        .45571        .64145E-02   -.63738    
   3  Normalizat    1.2475        .25777        .23811E-03   -.85146    
   4  Prefactor     .86491        .24886        .27122E-03   -.97378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95398e-10
Minuit parameter uncertainties:
  1  17.5334
  2  0.456693
  3  0.258034
  4  0.249185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474468': 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) = 4850.49530226
delta logL = 1.0731034233

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  2.982e+01  1.753e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.025e+00  4.567e-01  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:  8.649e-01  2.492e-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:  1.248e+00  2.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.76
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 2.02 +/- 0.46
Photon Flux (Free Index): 6.02e-08 +/- 4.27e-08
Energy Flux (Free Index): 3.92e-05 +/- 3.33e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/474468/cmap_HighResolution_504230401_504489601_4FGL_J2248.7-3235_daily_bin1022.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.82e-08', energy_flux2='3.92e-05', photon_flux_error='5.18e-08', dlogl='1.07e+00', energy_flux='2.26e-05', photon_flux2='6.02e-08', job_status='DONE', time_completed='2021-09-28 20:54:16.546818', photon_index_error2='0.46', photon_index2='2.02', ts='9.63', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='3.33e-05', EG='1.20', time_epoch_completed='1632887656.55', return_code='0', job_id='474468', GAL2='0.86', EG2='1.25', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='4.27e-08', ts2='11.76', photon_index='2.76' WHERE bin_id='1022' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:54:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 474468: <4FGL_J2248.7-3235_daily_bin1022> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1022> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 20:40:50 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:40:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 20:40:52 2021
Terminated at Tue Sep 28 20:54:17 2021
Results reported at Tue Sep 28 20:54:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1022 342.193 -32.5926 504230401 504489601 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 :                                   613.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            807 sec.

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

