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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1592
RA = 342.193, Dec = -32.5926
tmin = 651974401, tmax = 652233601
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='477364', job_status='RUN', time_executed='2021-09-28 20:52:51.309894', time_epoch_executed='1632887571.31' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1592'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/477364

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/477364/ft1_4FGL_J2248.7-3235_daily_bin1592.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/477364/ft2_4FGL_J2248.7-3235_daily_bin1592.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/477364/ft1_4FGL_J2248.7-3235_daily_bin1592.fits outfile=/scratch/kocevski/477364/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1592.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=651974401.0 tmax=652233601.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.52
user 3.28
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/477364/ft2_4FGL_J2248.7-3235_daily_bin1592.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/477364/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1592.fits evtable="EVENTS" outfile="/scratch/kocevski/477364/ft1_filtered_4FGL_J2248.7-3235_daily_bin1592.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/477364/ft1_filtered_4FGL_J2248.7-3235_daily_bin1592.fits" evtable="EVENTS" scfile=/scratch/kocevski/477364/ft2_4FGL_J2248.7-3235_daily_bin1592.fits sctable="SC_DATA" outfile=/scratch/kocevski/477364/ltcube_651974401_652233601_4FGL_J2248.7-3235_daily_bin1592.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/477364/ft2_4FGL_J2248.7-3235_daily_bin1592.fits
.....................!
real 13.77
user 13.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/477364/ft1_filtered_4FGL_J2248.7-3235_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/477364/ft2_4FGL_J2248.7-3235_daily_bin1592.fits sctable="SC_DATA" expcube=/scratch/kocevski/477364/ltcube_651974401_652233601_4FGL_J2248.7-3235_daily_bin1592.fits outfile=/scratch/kocevski/477364/expmap_651974401_652233601_4FGL_J2248.7-3235_daily_bin1592.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/477364/ltcube_651974401_652233601_4FGL_J2248.7-3235_daily_bin1592.fits
.....................!
real 190.76
user 185.69
sys 4.54

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/477364/ft1_filtered_4FGL_J2248.7-3235_daily_bin1592.fits scfile=/scratch/kocevski/477364/ft2_4FGL_J2248.7-3235_daily_bin1592.fits outfile=/scratch/kocevski/477364/cmap_651974401_652233601_4FGL_J2248.7-3235_daily_bin1592.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/477364/ft1_filtered_4FGL_J2248.7-3235_daily_bin1592.fits scfile=/scratch/kocevski/477364/ft2_4FGL_J2248.7-3235_daily_bin1592.fits outfile=/scratch/kocevski/477364/cmap_HighResolution_651974401_652233601_4FGL_J2248.7-3235_daily_bin1592.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1945       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.654       1.0000         .10000E-03   10000.    
     4 'norm      '    21.237       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    51.735       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.3583       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .80163       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5753       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.777       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3813       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .26795E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.676       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.4233       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.521       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97760       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80405       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=   5241.181     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2935 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1944        .45103        .65291E-02    .12734E-03
   2  Prefactor     .10000E-03    8.5025        .90712E-02** at limit **
   3  Prefactor     11.658        11.221        .29337E-02   -.51171E-03
   4  norm          21.235        21.170        .21729E-02   -.23565E-04
   5  Prefactor     .10000E-03    222.76        .90712E-02** at limit **
   6  Prefactor     51.731        26.561        .13940E-02   -.54862E-03
   7  Prefactor     8.3600        12.489        .34666E-02    .19671E-03
   8  Prefactor     .10000E-03    13.989        .90712E-02** at limit **
   9  norm          .80282        2.0611        .32846E-01    .93121E-03
  10  Prefactor     .10000E-03    36.713        .90712E-02** at limit **
  11  Prefactor     5.5764        6.8382        .42536E-02    .56346E-04
  12  Prefactor     15.778        8.9900        .25209E-02    .19450E-03
  13  norm          2.3807        3.4740        .66363E-02    .35512E-03
  14  Prefactor     .10000E-03    8.1891        .99739E-01** at limit **
  15  Prefactor     .10000E-03    8.1454        .90712E-02** at limit **
  16  norm          .10000E-03    .30341        .18454E-01** at limit **
  17  Prefactor     .10000E-03    29.129        .90712E-02** at limit **
  18  Prefactor     26.670        13.420        .19391E-02    .12896E-03
  19  norm          .10000E-03    1.3076        .90712E-02** at limit **
  20  norm          5.4233        6.4436        .43138E-02    .16557E-03
  21  Prefactor     19.533        35.202        .22663E-02   -.15140E-03
  22  Prefactor     .10000E-03    17.382        .90712E-02** at limit **
  23  norm          .10000E-03    1.1345        .90712E-02** at limit **
  24  Normalizat    .97726        .19209        .45886E-01    .78006E-05
  25  Prefactor     .80435        .18452        .43770E-01    .15726E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.19443
  Prefactor  = 0.0001
  Prefactor  = 11.6584
  norm       = 21.2355
  Prefactor  = 0.0001
  Prefactor  = 51.7309
  Prefactor  = 8.36002
  Prefactor  = 0.0001
  norm       = 0.802824
  Prefactor  = 0.0001
  Prefactor  = 5.57636
  Prefactor  = 15.7778
  norm       = 2.38068
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.6704
  norm       = 0.0001
  norm       = 5.42333
  Prefactor  = 19.5331
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.977256
  Prefactor  = 0.804346
 **********
 **   18 **HESSE 
 **********

 FCN=   5241.181     FROM HESSE     STATUS=OK           433 CALLS     3368 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1944        .45062        .28915E-04   -1.5489    
   2  Prefactor     .10000E-03    8.5293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.658        11.290        .11735E-03   -1.5025    
   4  norm          21.235        21.123        .86916E-04   -1.4786    
   5  Prefactor     .10000E-03    226.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     51.731        26.574        .55759E-04   -1.4268    
   7  Prefactor     8.3600        12.420        .13866E-03   -1.5130    
   8  Prefactor     .10000E-03    14.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .80282        1.8060        .15567E-02   -1.5529    
  10  Prefactor     .10000E-03    36.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.5764        6.8398        .17014E-03   -1.5236    
  12  Prefactor     15.778        9.0016        .10083E-03   -1.4913    
  13  norm          2.3807        3.3924        .15299E-03   -1.5399    
  14  Prefactor     .10000E-03    98.157        .38054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.2294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .36561        .73046E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     26.670        12.496        .77563E-04   -1.4675    
  19  norm          .10000E-03    1.3079        .80845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.4233        6.4388        .17255E-03   -1.5242    
  21  Prefactor     19.533        35.369        .90652E-04   -1.4824    
  22  Prefactor     .10000E-03    17.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.1352        .75228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .97726        .23107        .23319E-03   -.93796    
  25  Prefactor     .80435        .22046        .25519E-03   -.99568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.87466e-10
Minuit parameter uncertainties:
  1  0.450616
  2  1.61772e-06
  3  11.2924
  4  21.1307
  5  0.000100929
  6  26.5802
  7  12.4242
  8  2.96275e-06
  9  1.80614
  10  2.04766e-05
  11  6.84074
  12  9.00236
  13  3.39264
  14  3.55473e-05
  15  1.33122e-06
  16  2.63374e-07
  17  2.27761e-05
  18  12.4974
  19  7.19046e-07
  20  6.43961
  21  35.4073
  22  2.37931e-06
  23  2.11182e-07
  24  0.231307
  25  0.2207
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  5.576e+00  6.841e+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

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  8.043e-01  2.207e-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:  9.773e-01  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.53
Ra Dec: 342.193 -32.593
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 1.98e-08 +/- 2.42e-08
Energy Flux (Fixed Index): 4.55e-06 +/- 5.58e-06

TS (Fixed Index): 1.53
Ra Dec: 342.193 -32.593
Photon Flux Upper Limit: 9.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/477364/likelihoodResults_651974401_652233601_4FGL_J2248.7-3235_daily_bin1592.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) = 5240.77323075
delta logL = 0.408008690302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5240.76644405
delta logL = 0.414795387949

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8673       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8404       1.0000          .0000       10.000    
     3 'Normalizat'    .99255       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79404       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=   5240.766     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8778        5.5660        .45582E-02   -.82830E-04
   2  Index         1.8400        .55953        .26797       -.41758E-04
   3  Normalizat    .99266        .18065        .46074E-01    .81432E-05
   4  Prefactor     .79393        .18177        .43640E-01    .13698E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.87777
  Index      = 1.83999
  Normalizat = 0.99266
  Prefactor  = 0.793932
 **********
 **   18 **HESSE 
 **********

 FCN=   5240.766     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8778        6.4271        .17801E-03   -1.5266    
   2  Index         1.8400        .84146        .10236E-01   -.68413    
   3  Normalizat    .99266        .21392        .23153E-03   -.93277    
   4  Prefactor     .79393        .21516        .25659E-03   -.99952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33942e-09
Minuit parameter uncertainties:
  1  6.42803
  2  0.848221
  3  0.21411
  4  0.21539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/477364': 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) = 5240.76644155
delta logL = 0.414797887419

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  4.878e+00  6.428e+00  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  1.840e+00  8.482e-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:  7.939e-01  2.154e-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:  9.927e-01  2.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.36
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 1.84 +/- 0.85
Photon Flux (Free Index): 9.10e-09 +/- 1.34e-08
Energy Flux (Free Index): 9.67e-06 +/- 1.85e-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/477364/cmap_HighResolution_651974401_652233601_4FGL_J2248.7-3235_daily_bin1592.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.45e-03', comment='SUCCESS', photon_flux='1.98e-08', energy_flux2='9.67e-06', photon_flux_error='2.42e-08', dlogl='4.15e-01', energy_flux='4.55e-06', photon_flux2='9.10e-09', job_status='DONE', time_completed='2021-09-28 21:03:35.147748', photon_index_error2='0.85', photon_index2='1.84', ts='1.53', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='9.44e-08', energy_flux_error2='1.85e-05', EG='0.98', time_epoch_completed='1632888215.15', return_code='0', job_id='477364', GAL2='0.79', EG2='0.99', return_code2='0', energy_flux_error='5.58e-06', photon_flux_error2='1.34e-08', ts2='2.36', photon_index='2.76' WHERE bin_id='1592' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:03:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 477364: <4FGL_J2248.7-3235_daily_bin1592> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1592> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 20:50:11 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:50:13 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:50:13 2021
Terminated at Tue Sep 28 21:03:35 2021
Results reported at Tue Sep 28 21:03:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1592 342.193 -32.5926 651974401 652233601 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 :                                   638.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            804 sec.

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

