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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1295
RA = 342.193, Dec = -32.5926
tmin = 574992001, tmax = 575251201
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='475921', job_status='RUN', time_executed='2021-09-28 20:47:24.084871', time_epoch_executed='1632887244.08' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1295'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/475921

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/475921/ft1_4FGL_J2248.7-3235_daily_bin1295.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/475921/ft2_4FGL_J2248.7-3235_daily_bin1295.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/475921/ft1_4FGL_J2248.7-3235_daily_bin1295.fits outfile=/scratch/kocevski/475921/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1295.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=574992001.0 tmax=575251201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.34
user 5.08
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/475921/ft1_filtered_4FGL_J2248.7-3235_daily_bin1295.fits" evtable="EVENTS" scfile=/scratch/kocevski/475921/ft2_4FGL_J2248.7-3235_daily_bin1295.fits sctable="SC_DATA" outfile=/scratch/kocevski/475921/ltcube_574992001_575251201_4FGL_J2248.7-3235_daily_bin1295.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/475921/ft2_4FGL_J2248.7-3235_daily_bin1295.fits
.....................!
real 11.65
user 11.25
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/475921/ft1_filtered_4FGL_J2248.7-3235_daily_bin1295.fits evtable="EVENTS" scfile=/scratch/kocevski/475921/ft2_4FGL_J2248.7-3235_daily_bin1295.fits sctable="SC_DATA" expcube=/scratch/kocevski/475921/ltcube_574992001_575251201_4FGL_J2248.7-3235_daily_bin1295.fits outfile=/scratch/kocevski/475921/expmap_574992001_575251201_4FGL_J2248.7-3235_daily_bin1295.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/475921/ltcube_574992001_575251201_4FGL_J2248.7-3235_daily_bin1295.fits
.....................!
real 191.35
user 186.06
sys 4.89

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/475921/ft1_filtered_4FGL_J2248.7-3235_daily_bin1295.fits scfile=/scratch/kocevski/475921/ft2_4FGL_J2248.7-3235_daily_bin1295.fits outfile=/scratch/kocevski/475921/cmap_574992001_575251201_4FGL_J2248.7-3235_daily_bin1295.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/475921/ft1_filtered_4FGL_J2248.7-3235_daily_bin1295.fits scfile=/scratch/kocevski/475921/ft2_4FGL_J2248.7-3235_daily_bin1295.fits outfile=/scratch/kocevski/475921/cmap_HighResolution_574992001_575251201_4FGL_J2248.7-3235_daily_bin1295.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/475921/ft1_filtered_4FGL_J2248.7-3235_daily_bin1295.fits evtable="EVENTS" scfile=/scratch/kocevski/475921/ft2_4FGL_J2248.7-3235_daily_bin1295.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/475921/Model_4FGL_J2248.7-3235_daily_bin1295.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/475921/ft1_filtered_4FGL_J2248.7-3235_daily_bin1295.fits.....................!
real 51.80
user 50.44
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1523       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.2257       1.0000         .10000E-03   10000.    
     4 'norm      '    4.4301       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.658       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .86654       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.364       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.510       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4552       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2304       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.7846       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.078       1.0000         .10000E-03   10000.    
    22 'Prefactor '    33.881       1.0000         .10000E-03   10000.    
    23 'norm      '    2.7629       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98846       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74905       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=   6994.499     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2897 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1523        .44815       -.94617E-08    .72303E-04
   2  Prefactor     .10000E-03    11.758       -.20995E-06** at limit **
   3  Prefactor     9.2236        7.7259        .13337E-05   -.59150E-03
   4  norm          4.4308        10.054        .36200E-05   -.37521E-03
   5  Prefactor     .10000E-03    22.235       -.71108E-06** at limit **
   6  Prefactor     13.663        14.741       -.19504E-05   -.15905E-03
   7  Prefactor     .10000E-03    3.5387       -.16963E-06** at limit **
   8  Prefactor     .10000E-03    9.0118        .34950E-06** at limit **
   9  norm          .86598        1.4981       -.11544E-05   -.12474E-02
  10  Prefactor     28.313        42.626       -.52563E-05   -.13055E-03
  11  Prefactor     .10000E-03    2.5722       -.10635E-07** at limit **
  12  Prefactor     .10000E-03    1.7362        .40738E-07** at limit **
  13  norm          .10000E-03    1.0671       -.46804E-07** at limit **
  14  Prefactor     18.503        17.207        .18700E-05    .34794E-03
  15  Prefactor     2.4812        15.973        .17557E-05   -.17829E-03
  16  norm          2.2283        .90842       -.22730E-06    .13985E-02
  17  Prefactor     .10000E-03    8.7283       -.20009E-06** at limit **
  18  Prefactor     .10000E-03    16.538        .17235E-06** at limit **
  19  norm          .10000E-03    1.6795       -.14888E-07** at limit **
  20  norm          5.7855        6.3489        .19574E-06    .15250E-05
  21  Prefactor     22.104        31.796       -.12804E-06    .14908E-04
  22  Prefactor     33.861        35.817       -.18706E-05   -.54301E-04
  23  norm          2.7602        3.9346        .10717E-06   -.87661E-04
  24  Normalizat    .98860        .15956        .16028E-05   -.89745E-04
  25  Prefactor     .74890        .15572       -.15606E-05    .16709E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.15228
  Prefactor  = 0.0001
  Prefactor  = 9.22365
  norm       = 4.43083
  Prefactor  = 0.0001
  Prefactor  = 13.6631
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.86598
  Prefactor  = 28.3127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.5031
  Prefactor  = 2.48124
  norm       = 2.22833
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.78548
  Prefactor  = 22.1039
  Prefactor  = 33.861
  norm       = 2.76017
  Normalizat = 0.988601
  Prefactor  = 0.7489
 **********
 **   18 **HESSE 
 **********

 FCN=   6994.499     FROM HESSE     STATUS=OK           429 CALLS     3326 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1523        .44873        .24774E-04   -1.5415    
   2  Prefactor     .10000E-03    11.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.2236        7.8009        .65974E-03   -1.5100    
   4  norm          4.4308        10.149        .95663E-03   -1.5287    
   5  Prefactor     .10000E-03    22.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.663        14.765        .10838E-03   -1.4969    
   7  Prefactor     .10000E-03    3.5520        .15356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.0482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .86598        1.2720        .13324E-02   -1.5522    
  10  Prefactor     28.313        39.256        .75224E-04   -1.4643    
  11  Prefactor     .10000E-03    2.5796        .13098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.7428        .10761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0708        .84291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.503        17.112        .93094E-04   -1.4847    
  15  Prefactor     2.4812        14.963        .26104E-03   -1.5393    
  16  norm          2.2283        .91522        .35179E-04   -1.5409    
  17  Prefactor     .10000E-03    8.7301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.133        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.6828        .10567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.7855        6.3412        .16699E-03   -1.5227    
  21  Prefactor     22.104        31.894        .85246E-04   -1.4767    
  22  Prefactor     33.861        35.953        .68844E-04   -1.4544    
  23  norm          2.7602        3.9280        .15417E-03   -1.5376    
  24  Normalizat    .98860        .19080        .22336E-03   -.93413    
  25  Prefactor     .74890        .18515        .25627E-03   -1.0164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73089e-09
Minuit parameter uncertainties:
  1  0.448732
  2  1.81159e-05
  3  7.80175
  4  10.1525
  5  7.40513e-05
  6  14.7693
  7  2.70802e-05
  8  1.09725e-05
  9  1.27208
  10  39.2921
  11  5.62037e-07
  12  1.22687e-06
  13  7.62304e-07
  14  17.1165
  15  12.1907
  16  0.915224
  17  1.09e-05
  18  4.06192e-05
  19  4.59792e-07
  20  6.34198
  21  31.9182
  22  35.9764
  23  3.9284
  24  0.190935
  25  0.185304
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  5.620e-07  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:  7.489e-01  1.853e-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.886e-01  1.909e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/475921/likelihoodResults_574992001_575251201_4FGL_J2248.7-3235_daily_bin1295.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): 102
logL (Free Index) = 6994.50050315
delta logL = -0.00184217245351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6994.49866469
delta logL = -3.71267924493e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11187E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7335       1.0000          .0000       10.000    
     3 'Normalizat'    .98848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74885       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=   6994.499     FROM MIGRAD    STATUS=CONVERGED    115 CALLS      259 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.920        .63270E-01** at limit **
   2  Index         1.6898        8.0671        .50000       -.61573E-06
   3  Normalizat    .98860        .66578E-02    .22336E-03    .91110E-05
   4  Prefactor     .74890        .67708E-02    .25627E-03    .83223E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.6898
  Normalizat = 0.988603
  Prefactor  = 0.748898
 **********
 **   18 **HESSE 
 **********

 FCN=   6994.499     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      290 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    383.00        .33317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6898        5.6107        .50000       -.72354    
   3  Normalizat    .98860        .25214E-01    .89343E-05   -.93413    
   4  Prefactor     .74890        .25643E-01    .10251E-04   -1.0164    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.22998e-09
Minuit parameter uncertainties:
  1  4.2033e-05
  2  381.533
  3  0.0252139
  4  0.0256433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/475921': 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): 102
logL (Free Index) = 6994.49864721
delta logL = 1.37656070365e-05

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  4.203e-05  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  1.690e+00  3.815e+02  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.489e-01  2.564e-02  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.886e-01  2.521e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 342.193 -32.593

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/475921/cmap_HighResolution_574992001_575251201_4FGL_J2248.7-3235_daily_bin1295.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.46e-03', job_status='DONE', photon_flux_upper_limit='4.38e-08', time_completed='2021-09-28 21:00:16.665923', job_id='475921', GAL2='0.75', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632888016.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.38e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1295' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:00:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 475921: <4FGL_J2248.7-3235_daily_bin1295> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1295> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 20:45:13 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:45:15 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:15 2021
Terminated at Tue Sep 28 21:00:17 2021
Results reported at Tue Sep 28 21:00:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1295 342.193 -32.5926 574992001 575251201 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 :                                   759.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            904 sec.

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

