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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1498
RA = 342.193, Dec = -32.5926
tmin = 627609601, tmax = 627868801
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='476229', job_status='RUN', time_executed='2021-09-28 20:47:10.831561', time_epoch_executed='1632887230.83' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476229

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476229/ft1_4FGL_J2248.7-3235_daily_bin1498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476229/ft2_4FGL_J2248.7-3235_daily_bin1498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476229/ft1_4FGL_J2248.7-3235_daily_bin1498.fits outfile=/scratch/kocevski/476229/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1498.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=627609601.0 tmax=627868801.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.54
user 2.32
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/476229/ft2_4FGL_J2248.7-3235_daily_bin1498.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/476229/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1498.fits evtable="EVENTS" outfile="/scratch/kocevski/476229/ft1_filtered_4FGL_J2248.7-3235_daily_bin1498.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/476229/ft1_filtered_4FGL_J2248.7-3235_daily_bin1498.fits" evtable="EVENTS" scfile=/scratch/kocevski/476229/ft2_4FGL_J2248.7-3235_daily_bin1498.fits sctable="SC_DATA" outfile=/scratch/kocevski/476229/ltcube_627609601_627868801_4FGL_J2248.7-3235_daily_bin1498.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/476229/ft2_4FGL_J2248.7-3235_daily_bin1498.fits
.....................!
real 12.55
user 12.17
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476229/ft1_filtered_4FGL_J2248.7-3235_daily_bin1498.fits evtable="EVENTS" scfile=/scratch/kocevski/476229/ft2_4FGL_J2248.7-3235_daily_bin1498.fits sctable="SC_DATA" expcube=/scratch/kocevski/476229/ltcube_627609601_627868801_4FGL_J2248.7-3235_daily_bin1498.fits outfile=/scratch/kocevski/476229/expmap_627609601_627868801_4FGL_J2248.7-3235_daily_bin1498.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/476229/ltcube_627609601_627868801_4FGL_J2248.7-3235_daily_bin1498.fits
.....................!
real 190.91
user 185.35
sys 5.13

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/476229/ft1_filtered_4FGL_J2248.7-3235_daily_bin1498.fits scfile=/scratch/kocevski/476229/ft2_4FGL_J2248.7-3235_daily_bin1498.fits outfile=/scratch/kocevski/476229/cmap_627609601_627868801_4FGL_J2248.7-3235_daily_bin1498.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/476229/ft1_filtered_4FGL_J2248.7-3235_daily_bin1498.fits scfile=/scratch/kocevski/476229/ft2_4FGL_J2248.7-3235_daily_bin1498.fits outfile=/scratch/kocevski/476229/cmap_HighResolution_627609601_627868801_4FGL_J2248.7-3235_daily_bin1498.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/476229/ft1_filtered_4FGL_J2248.7-3235_daily_bin1498.fits evtable="EVENTS" scfile=/scratch/kocevski/476229/ft2_4FGL_J2248.7-3235_daily_bin1498.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/476229/Model_4FGL_J2248.7-3235_daily_bin1498.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/476229/ft1_filtered_4FGL_J2248.7-3235_daily_bin1498.fits.....................!
real 48.26
user 46.89
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5591       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11713E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.322       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.726       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7762       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.963       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.957       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9791       1.0000         .10000E-03   10000.    
    13 'norm      '    .43818       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.542       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7370       1.0000         .10000E-03   10000.    
    17 'Prefactor '    59.561       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10890E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.1802       1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.549       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.4015       1.0000         .10000E-03   10000.    
    23 'norm      '    9.4593       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87881       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96094       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=   6065.780     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2898 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5592        .40664        .10669E-08   -.34568E-03
   2  Prefactor     .10000E-03    9.8640        .29928E-06** at limit **
   3  Prefactor     .10010E-03    10.306       -.40875E-05** at limit **
   4  norm          10.318        13.599        .15275E-06   -.28045E-04
   5  Prefactor     31.729        47.545        .49248E-06   -.17251E-05
   6  Prefactor     8.7886        20.776       -.10354E-05    .28204E-05
   7  Prefactor     11.964        12.392        .33745E-06   -.10900E-04
   8  Prefactor     .10000E-03    16.028        .81836E-06** at limit **
   9  norm          .10000E-03    1.3925        .12917E-06** at limit **
  10  Prefactor     .10000E-03    36.724        .41035E-06** at limit **
  11  Prefactor     14.961        15.008       -.37680E-06   -.13345E-03
  12  Prefactor     1.9796        4.7239        .12712E-05    .33287E-03
  13  norm          .44111        3.7507        .27687E-06    .94826E-04
  14  Prefactor     .10000E-03    6.8473        .52447E-07** at limit **
  15  Prefactor     23.553        15.683       -.65133E-06   -.52641E-03
  16  norm          2.7345        1.1891        .32337E-07   -.18778E-02
  17  Prefactor     59.568        51.397        .29022E-06   -.44363E-05
  18  Prefactor     .10000E-03    5.0187        .17929E-06** at limit **
  19  norm          .10000E-03    1.8500       -.15586E-05** at limit **
  20  norm          8.1804        6.4544        .10210E-07   -.71315E-04
  21  Prefactor     44.454        51.769       -.21730E-05   -.12604E-03
  22  Prefactor     2.3828        97.107        .23979E-05    .11771E-05
  23  norm          9.4621        6.3056        .67972E-06    .39788E-03
  24  Normalizat    .87782        .20612        .26597E-05   -.28204E-03
  25  Prefactor     .96190        .19615       -.44995E-05   -.36032E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.55916
  Prefactor  = 0.0001
  Prefactor  = 0.000100101
  norm       = 10.3182
  Prefactor  = 31.7287
  Prefactor  = 8.78862
  Prefactor  = 11.9638
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.961
  Prefactor  = 1.97959
  norm       = 0.44111
  Prefactor  = 0.0001
  Prefactor  = 23.5532
  norm       = 2.7345
  Prefactor  = 59.5678
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 8.18038
  Prefactor  = 44.4535
  Prefactor  = 2.38281
  norm       = 9.46211
  Normalizat = 0.877822
  Prefactor  = 0.961905
 **********
 **   18 **HESSE 
 **********

 FCN=   6065.780     FROM HESSE     STATUS=OK           433 CALLS     3331 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5592        .40769        .24644E-04   -1.5458    
   2  Prefactor     .10000E-03    9.9039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10010E-03    18.934        .35240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.318        13.593        .12472E-03   -1.5065    
   5  Prefactor     31.729        47.524        .71138E-04   -1.4581    
   6  Prefactor     8.7886        20.599        .13530E-03   -1.5115    
   7  Prefactor     11.964        12.400        .11582E-03   -1.5016    
   8  Prefactor     .10000E-03    16.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.4320        .17934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    36.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.961        15.028        .10356E-03   -1.4934    
  12  Prefactor     1.9796        4.7333        .25422E-03   -1.5427    
  13  norm          .44111        21.831        .24552E-02   -1.5575    
  14  Prefactor     .10000E-03    6.8507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.553        16.324        .82556E-04   -1.4737    
  16  norm          2.7345        1.2327        .40682E-04   -1.5377    
  17  Prefactor     59.568        51.406        .51987E-04   -1.4163    
  18  Prefactor     .10000E-03    5.0320        .17035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.9126        .10506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.1804        6.4503        .14018E-03   -1.5136    
  21  Prefactor     44.454        52.220        .60067E-04   -1.4374    
  22  Prefactor     2.3828        98.080        .26422E-03   -1.5399    
  23  norm          9.4621        6.3746        .13022E-03   -1.5093    
  24  Normalizat    .87782        .23833        .26209E-03   -.97244    
  25  Prefactor     .96190        .22571        .25015E-03   -.94010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.96899e-09
Minuit parameter uncertainties:
  1  0.407686
  2  3.94199e-05
  3  0.00276234
  4  13.5974
  5  47.5803
  6  20.6155
  7  12.4029
  8  0.000166905
  9  9.40786e-06
  10  0.000154541
  11  15.032
  12  4.73418
  13  6.20816
  14  1.45154e-05
  15  16.3274
  16  1.23275
  17  51.4447
  18  2.34874e-05
  19  7.56151e-05
  20  6.4508
  21  52.2738
  22  30.6282
  23  6.37504
  24  0.238613
  25  0.225933
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.496e+01  1.503e+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:  9.619e-01  2.259e-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:  8.778e-01  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.24
Ra Dec: 342.193 -32.593
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 5.30e-08 +/- 5.32e-08
Energy Flux (Fixed Index): 1.22e-05 +/- 1.23e-05

TS (Fixed Index): 1.24
Ra Dec: 342.193 -32.593
Photon Flux Upper Limit: 1.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/476229/likelihoodResults_627609601_627868801_4FGL_J2248.7-3235_daily_bin1498.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) = 6065.76209818
delta logL = 0.0176022503238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6065.75557749
delta logL = 0.0241229406683

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.171       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9802       1.0000          .0000       10.000    
     3 'Normalizat'    .86905       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96939       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6065.756     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      274 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.158        18.349        .55185E-03   -.17655E-04
   2  Index         2.9777        1.1560        .10147E-01    .21596E-03
   3  Normalizat    .86937        .22677        .26322E-03    .12525E-05
   4  Prefactor     .96918        .22199        .24935E-03   -.77508E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1577
  Index      = 2.97766
  Normalizat = 0.869375
  Prefactor  = 0.969185
 **********
 **   18 **HESSE 
 **********

 FCN=   6065.756     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .87E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.158        16.927        .22074E-04   -1.4982    
   2  Index         2.9777        1.0672        .20295E-02   -.41640    
   3  Normalizat    .86937        .22709        .10529E-04   -.97545    
   4  Prefactor     .96918        .22201        .99740E-05   -.93764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.71373e-13
Minuit parameter uncertainties:
  1  16.9332
  2  1.07716
  3  0.227341
  4  0.222217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476229': 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) = 6065.75557013
delta logL = 0.0241303057655

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.316e+01  1.693e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.978e+00  1.077e+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:  9.692e-01  2.222e-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:  8.694e-01  2.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 2.98 +/- 1.08
Photon Flux (Free Index): 5.75e-08 +/- 5.76e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.19e-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/476229/cmap_HighResolution_627609601_627868801_4FGL_J2248.7-3235_daily_bin1498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', comment='SUCCESS', photon_flux='5.30e-08', energy_flux2='1.16e-05', photon_flux_error='5.32e-08', dlogl='2.41e-02', energy_flux='1.22e-05', photon_flux2='5.75e-08', job_status='DONE', time_completed='2021-09-28 20:58:44.242855', photon_index_error2='1.08', photon_index2='2.98', ts='1.24', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.56e-07', energy_flux_error2='1.19e-05', EG='0.88', time_epoch_completed='1632887924.24', return_code='0', job_id='476229', GAL2='0.97', EG2='0.87', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='5.76e-08', ts2='1.30', photon_index='2.76' WHERE bin_id='1498' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:58:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 476229: <4FGL_J2248.7-3235_daily_bin1498> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1498> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 20:45:35 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:45:36 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:45:36 2021
Terminated at Tue Sep 28 20:58:44 2021
Results reported at Tue Sep 28 20:58:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1498 342.193 -32.5926 627609601 627868801 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 :                                   687.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            789 sec.

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

