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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1653
RA = 342.193, Dec = -32.5926
tmin = 667785601, tmax = 668044801
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='889461', job_status='RUN', time_executed='2022-03-04 01:18:12.985161', time_epoch_executed='1646385492.99' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889461

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889461/ft1_4FGL_J2248.7-3235_daily_bin1653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889461/ft2_4FGL_J2248.7-3235_daily_bin1653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889461/ft1_4FGL_J2248.7-3235_daily_bin1653.fits outfile=/scratch/kocevski/889461/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1653.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=667785601.0 tmax=668044801.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 4.30
user 4.00
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/889461/ft2_4FGL_J2248.7-3235_daily_bin1653.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/889461/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1653.fits evtable="EVENTS" outfile="/scratch/kocevski/889461/ft1_filtered_4FGL_J2248.7-3235_daily_bin1653.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.33
sys 0.15
Number of photons that survived the gtmktime cut: 558

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/889461/ft1_filtered_4FGL_J2248.7-3235_daily_bin1653.fits" evtable="EVENTS" scfile=/scratch/kocevski/889461/ft2_4FGL_J2248.7-3235_daily_bin1653.fits sctable="SC_DATA" outfile=/scratch/kocevski/889461/ltcube_667785601_668044801_4FGL_J2248.7-3235_daily_bin1653.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/889461/ft2_4FGL_J2248.7-3235_daily_bin1653.fits
.....................!
real 12.45
user 12.06
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889461/ft1_filtered_4FGL_J2248.7-3235_daily_bin1653.fits evtable="EVENTS" scfile=/scratch/kocevski/889461/ft2_4FGL_J2248.7-3235_daily_bin1653.fits sctable="SC_DATA" expcube=/scratch/kocevski/889461/ltcube_667785601_668044801_4FGL_J2248.7-3235_daily_bin1653.fits outfile=/scratch/kocevski/889461/expmap_667785601_668044801_4FGL_J2248.7-3235_daily_bin1653.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/889461/ltcube_667785601_668044801_4FGL_J2248.7-3235_daily_bin1653.fits
.....................!
real 190.33
user 185.04
sys 4.70

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/889461/ft1_filtered_4FGL_J2248.7-3235_daily_bin1653.fits scfile=/scratch/kocevski/889461/ft2_4FGL_J2248.7-3235_daily_bin1653.fits outfile=/scratch/kocevski/889461/cmap_667785601_668044801_4FGL_J2248.7-3235_daily_bin1653.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/889461/ft1_filtered_4FGL_J2248.7-3235_daily_bin1653.fits scfile=/scratch/kocevski/889461/ft2_4FGL_J2248.7-3235_daily_bin1653.fits outfile=/scratch/kocevski/889461/cmap_HighResolution_667785601_668044801_4FGL_J2248.7-3235_daily_bin1653.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/889461/ft1_filtered_4FGL_J2248.7-3235_daily_bin1653.fits evtable="EVENTS" scfile=/scratch/kocevski/889461/ft2_4FGL_J2248.7-3235_daily_bin1653.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/889461/Model_4FGL_J2248.7-3235_daily_bin1653.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/889461/ft1_filtered_4FGL_J2248.7-3235_daily_bin1653.fits.....................!
real 47.20
user 45.86
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0131       1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.548       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3931       1.0000         .10000E-03   10000.    
     4 'norm      '    29.522       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    41.355       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.9056       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    63.356       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7190       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1451       1.0000         .10000E-03   10000.    
    13 'norm      '    6.6124       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.582       1.0000         .10000E-03   10000.    
    16 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.9154       1.0000         .10000E-03   10000.    
    20 'norm      '    2.3764       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    64.887       1.0000         .10000E-03   10000.    
    23 'norm      '    10.376       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .65187       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2338       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=   6104.873     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2919 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0130        .34213        .37633E-08   -.27718E-03
   2  Prefactor     38.551        22.184        .16744E-06   -.11654E-04
   3  Prefactor     3.3953        5.8029        .73889E-06   -.65687E-05
   4  norm          29.513        24.050        .99557E-07   -.22660E-04
   5  Prefactor     .10000E-03    12.214        .23051E-06** at limit **
   6  Prefactor     41.355        19.765       -.37906E-07   -.97657E-04
   7  Prefactor     7.9050        13.829        .29825E-06    .18308E-04
   8  Prefactor     .10000E-03    5.5033       -.45976E-08** at limit **
   9  norm          .10000E-03    1.4956        .44112E-06** at limit **
  10  Prefactor     63.360        49.001       -.29829E-06   -.15385E-04
  11  Prefactor     6.7197        8.6771        .11543E-07   -.46466E-04
  12  Prefactor     4.1454        5.8462        .87303E-07   -.22701E-04
  13  norm          6.6121        4.8062       -.22842E-06   -.50067E-03
  14  Prefactor     .10000E-03    16.859        .49887E-06** at limit **
  15  Prefactor     15.597        10.778        .45554E-06    .21647E-03
  16  norm          .10000E-03    .22916        .98618E-07** at limit **
  17  Prefactor     .10000E-03    119.92        .60354E-06** at limit **
  18  Prefactor     .10000E-03    14.604        .81144E-07** at limit **
  19  norm          2.9153        3.5813        .31701E-07    .39009E-04
  20  norm          2.3792        8.7679        .65929E-05   -.74804E-04
  21  Prefactor     .10000E-03    26.149       -.21108E-06** at limit **
  22  Prefactor     64.882        53.977       -.73034E-06   -.10180E-05
  23  norm          10.377        5.3172       -.42631E-07    .12195E-03
  24  Normalizat    .65135        .19257       -.38914E-06    .39249E-04
  25  Prefactor     1.2342        .18538       -.66762E-06   -.72367E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.01303
  Prefactor  = 38.5509
  Prefactor  = 3.39526
  norm       = 29.5134
  Prefactor  = 0.0001
  Prefactor  = 41.3548
  Prefactor  = 7.90505
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 63.3603
  Prefactor  = 6.71967
  Prefactor  = 4.14536
  norm       = 6.61213
  Prefactor  = 0.0001
  Prefactor  = 15.5971
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.91531
  norm       = 2.37924
  Prefactor  = 0.0001
  Prefactor  = 64.8819
  norm       = 10.3771
  Normalizat = 0.651352
  Prefactor  = 1.23424
 **********
 **   18 **HESSE 
 **********

 FCN=   6104.873     FROM HESSE     STATUS=OK           427 CALLS     3346 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0130        .34223        .25809E-04   -1.5507    
   2  Prefactor     38.551        22.185        .64555E-04   -1.4465    
   3  Prefactor     3.3953        5.8064        .21964E-03   -1.5339    
   4  norm          29.513        24.050        .73738E-04   -1.4621    
   5  Prefactor     .10000E-03    12.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     41.355        19.782        .62335E-04   -1.4421    
   7  Prefactor     7.9050        13.808        .14261E-03   -1.5146    
   8  Prefactor     .10000E-03    5.5101        .17901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.5564        .18706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     63.360        48.826        .50415E-04   -1.4114    
  11  Prefactor     6.7197        8.6796        .15480E-03   -1.5189    
  12  Prefactor     4.1454        5.8390        .19798E-03   -1.5301    
  13  norm          6.6121        4.8222        .13130E-03   -1.5194    
  14  Prefactor     .10000E-03    17.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.597        10.729        .10146E-03   -1.4918    
  16  norm          .10000E-03    .23420        .72264E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    120.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.9153        3.5776        .15830E-03   -1.5366    
  20  norm          2.3792        8.8075        .13288E-02   -1.5399    
  21  Prefactor     .10000E-03    26.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     64.882        54.171        .49820E-04   -1.4095    
  23  norm          10.377        5.3226        .12274E-03   -1.5064    
  24  Normalizat    .65135        .23369        .29651E-03   -1.0585    
  25  Prefactor     1.2342        .22610        .22900E-03   -.85284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13879e-10
Minuit parameter uncertainties:
  1  0.342229
  2  22.1897
  3  5.80738
  4  24.0581
  5  3.75158e-06
  6  19.7847
  7  13.8131
  8  1.51761e-06
  9  3.86858e-05
  10  48.8566
  11  8.68125
  12  5.83982
  13  4.82248
  14  0.000106547
  15  10.7306
  16  3.17211e-06
  17  0.000159039
  18  0.000236291
  19  3.57784
  20  8.81225
  21  4.56597e-05
  22  54.2123
  23  5.32282
  24  0.234046
  25  0.226279
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  6.720e+00  8.681e+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:  1.234e+00  2.263e-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:  6.514e-01  2.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.08
Ra Dec: 342.193 -32.593
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 2.38e-08 +/- 3.07e-08
Energy Flux (Fixed Index): 5.48e-06 +/- 7.08e-06

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

Saving results to:
/scratch/kocevski/889461/likelihoodResults_667785601_668044801_4FGL_J2248.7-3235_daily_bin1653.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) = 6104.8081675
delta logL = 0.0649381604853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6104.80409267
delta logL = 0.0690129863751

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4435       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3134       1.0000          .0000       10.000    
     3 'Normalizat'    .66171       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2261       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=   6104.804     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      264 TOTAL
                     EDM=   .87E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4475        9.5147        .73501E-03   -.29373E-04
   2  Index         2.3130        1.0928        .12005E-01    .76993E-05
   3  Normalizat    .66178        .21414        .29429E-03   -.31368E-04
   4  Prefactor     1.2261        .22103        .22964E-03   -.16882E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.44754
  Index      = 2.31297
  Normalizat = 0.661784
  Prefactor  = 1.2261
 **********
 **   18 **HESSE 
 **********

 FCN=   6104.804     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4475        9.5355        .29400E-04   -1.5162    
   2  Index         2.3130        1.0955        .48018E-03   -.56736    
   3  Normalizat    .66178        .21435        .11772E-04   -1.0542    
   4  Prefactor     1.2261        .22123        .91855E-05   -.85532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17027e-11
Minuit parameter uncertainties:
  1  9.53744
  2  1.10822
  3  0.214618
  4  0.221399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889461': 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) = 6104.8040923
delta logL = 0.0690133602357

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  1.226e+00  2.214e-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:  6.618e-01  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.22
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 2.31 +/- 1.11
Photon Flux (Free Index): 1.81e-08 +/- 2.85e-08
Energy Flux (Free Index): 6.71e-06 +/- 1.00e-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/889461/cmap_HighResolution_667785601_668044801_4FGL_J2248.7-3235_daily_bin1653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.24e-03', comment='SUCCESS', photon_flux='2.38e-08', energy_flux2='6.71e-06', photon_flux_error='3.07e-08', dlogl='6.90e-02', energy_flux='5.48e-06', photon_flux2='1.81e-08', job_status='DONE', time_completed='2022-03-04 01:29:51.255348', photon_index_error2='1.11', photon_index2='2.31', ts='1.08', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.00e-05', EG='0.65', time_epoch_completed='1646386191.26', return_code='0', job_id='889461', GAL2='1.23', EG2='0.66', return_code2='0', energy_flux_error='7.08e-06', photon_flux_error2='2.85e-08', ts2='1.22', photon_index='2.76' WHERE bin_id='1653' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar  4 01:29:51 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 889461: <4FGL_J2248.7-3235_daily_bin1653> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1653> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Mar  4 01:15:49 2022
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar  4 01:16:39 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar  4 01:16:39 2022
Terminated at Fri Mar  4 01:29:52 2022
Results reported at Fri Mar  4 01:29:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1653 342.193 -32.5926 667785601 668044801 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 :                                   700.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            843 sec.

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

