/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 102 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 = 7475
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2248.7-3235_daily_bin318
RA = 342.193, Dec = -32.5926
tmin = 321753601, tmax = 322012801
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='471319', job_status='RUN', time_executed='2021-09-28 20:32:09.312711', time_epoch_executed='1632886329.31' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/471319

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/471319/ft1_4FGL_J2248.7-3235_daily_bin318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/471319/ft2_4FGL_J2248.7-3235_daily_bin318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/471319/ft1_4FGL_J2248.7-3235_daily_bin318.fits outfile=/scratch/kocevski/471319/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin318.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=321753601.0 tmax=322012801.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.41
user 3.16
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/471319/ft1_filtered_4FGL_J2248.7-3235_daily_bin318.fits" evtable="EVENTS" scfile=/scratch/kocevski/471319/ft2_4FGL_J2248.7-3235_daily_bin318.fits sctable="SC_DATA" outfile=/scratch/kocevski/471319/ltcube_321753601_322012801_4FGL_J2248.7-3235_daily_bin318.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/471319/ft2_4FGL_J2248.7-3235_daily_bin318.fits
.....................!
real 11.93
user 11.58
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/471319/ft1_filtered_4FGL_J2248.7-3235_daily_bin318.fits evtable="EVENTS" scfile=/scratch/kocevski/471319/ft2_4FGL_J2248.7-3235_daily_bin318.fits sctable="SC_DATA" expcube=/scratch/kocevski/471319/ltcube_321753601_322012801_4FGL_J2248.7-3235_daily_bin318.fits outfile=/scratch/kocevski/471319/expmap_321753601_322012801_4FGL_J2248.7-3235_daily_bin318.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/471319/ltcube_321753601_322012801_4FGL_J2248.7-3235_daily_bin318.fits
.....................!
real 190.10
user 185.13
sys 4.48

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/471319/ft1_filtered_4FGL_J2248.7-3235_daily_bin318.fits scfile=/scratch/kocevski/471319/ft2_4FGL_J2248.7-3235_daily_bin318.fits outfile=/scratch/kocevski/471319/cmap_321753601_322012801_4FGL_J2248.7-3235_daily_bin318.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/471319/ft1_filtered_4FGL_J2248.7-3235_daily_bin318.fits scfile=/scratch/kocevski/471319/ft2_4FGL_J2248.7-3235_daily_bin318.fits outfile=/scratch/kocevski/471319/cmap_HighResolution_321753601_322012801_4FGL_J2248.7-3235_daily_bin318.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/471319/ft1_filtered_4FGL_J2248.7-3235_daily_bin318.fits evtable="EVENTS" scfile=/scratch/kocevski/471319/ft2_4FGL_J2248.7-3235_daily_bin318.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/471319/Model_4FGL_J2248.7-3235_daily_bin318.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/471319/ft1_filtered_4FGL_J2248.7-3235_daily_bin318.fits.....................!
real 40.88
user 39.55
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1888       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    31.019       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.170       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .49610E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.8580       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    54.134       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11134E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5606       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3382       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.367       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .53617       1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.618       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10666E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4162       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .58111       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=   4741.751     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2904 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1890        .62253       -.82882E-08    .10178E-04
   2  Prefactor     .10000E-03    6.7796        .36451E-07** at limit **
   3  Prefactor     .10000E-03    13.378        .36102E-06** at limit **
   4  norm          31.030        26.494        .17070E-06    .74722E-04
   5  Prefactor     .10000E-03    28.287        .47472E-08** at limit **
   6  Prefactor     31.155        22.635       -.36162E-06   -.44582E-04
   7  Prefactor     .10000E-03    6.7202        .25906E-06** at limit **
   8  Prefactor     .10000E-03    95.990       -.77817E-06** at limit **
   9  norm          1.8580        2.0417        .14407E-06    .22582E-04
  10  Prefactor     .10000E-03    50.316        .83178E-06** at limit **
  11  Prefactor     54.135        21.527       -.29798E-06    .60725E-04
  12  Prefactor     .10010E-03    6.9951       -.22326E-05** at limit **
  13  norm          .10000E-03    3.0995        .10302E-06** at limit **
  14  Prefactor     8.5695        14.720        .21620E-06    .13017E-05
  15  Prefactor     .10000E-03    5.6752        .13714E-06** at limit **
  16  norm          1.3388        .78949        .56819E-07    .17972E-04
  17  Prefactor     24.349        63.916       -.69833E-06   -.32937E-04
  18  Prefactor     .10000E-03    17.503        .60985E-06** at limit **
  19  norm          .10000E-03    3.4917       -.25807E-05** at limit **
  20  norm          .62550        10.273        .19603E-05   -.33924E-03
  21  Prefactor     31.539        44.307        .22523E-05    .67882E-04
  22  Prefactor     .10000E-03    30.100        .22205E-06** at limit **
  23  norm          .10000E-03    5.0580       -.84896E-05** at limit **
  24  Normalizat    1.4164        .22689        .28620E-05    .13865E-03
  25  Prefactor     .58058        .21167       -.38575E-05    .26353E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.18903
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 31.0295
  Prefactor  = 0.0001
  Prefactor  = 31.1551
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.85798
  Prefactor  = 0.000100001
  Prefactor  = 54.1349
  Prefactor  = 0.000100098
  norm       = 0.0001
  Prefactor  = 8.56949
  Prefactor  = 0.0001
  norm       = 1.33884
  Prefactor  = 24.3486
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.6255
  Prefactor  = 31.5388
  Prefactor  = 0.0001
  norm       = 0.000100001
  Normalizat = 1.41644
  Prefactor  = 0.580584
 **********
 **   18 **HESSE 
 **********

 FCN=   4741.751     FROM HESSE     STATUS=OK           419 CALLS     3323 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1890        .62296        .28040E-04   -1.5412    
   2  Prefactor     .10000E-03    6.7830        .17512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          31.030        26.474        .71941E-04   -1.4593    
   5  Prefactor     .10000E-03    28.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.155        22.633        .71767E-04   -1.4591    
   7  Prefactor     .10000E-03    6.7322        .17433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    99.119        .42323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8580        2.0226        .99655E-04   -1.5435    
  10  Prefactor     .10000E-03    50.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     54.135        21.766        .54516E-04   -1.4235    
  12  Prefactor     .10010E-03    25.495        .33883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.1281        .11820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.5695        14.924        .13701E-03   -1.5122    
  15  Prefactor     .10000E-03    5.6980        .15994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3388        .79376        .41740E-04   -1.5477    
  17  Prefactor     24.349        63.966        .81149E-04   -1.4721    
  18  Prefactor     .10000E-03    17.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.5083        .12556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .62550        37.920        .40623E-02   -1.5550    
  21  Prefactor     31.539        44.622        .71258E-04   -1.4584    
  22  Prefactor     .10000E-03    30.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.1859        .30199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4164        .27205        .22569E-03   -.80154    
  25  Prefactor     .58058        .24913        .32000E-03   -1.0841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.5707e-09
Minuit parameter uncertainties:
  1  0.622964
  2  1.27595e-05
  3  1.63032e-05
  4  26.4842
  5  3.14309e-05
  6  22.6388
  7  1.37534e-05
  8  0.000440534
  9  2.02264
  10  0.00032345
  11  21.769
  12  0.00316866
  13  3.4097e-06
  14  14.9301
  15  1.11553e-05
  16  0.79377
  17  64.1468
  18  6.00359e-05
  19  2.66301e-05
  20  9.74606
  21  44.6695
  22  1.61384e-05
  23  0.000119717
  24  0.272329
  25  0.249603
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  5.413e+01  2.177e+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:  5.806e-01  2.496e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  1.416e+00  2.723e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.69
Ra Dec: 342.193 -32.593
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 1.92e-07 +/- 7.71e-08
Energy Flux (Fixed Index): 4.41e-05 +/- 1.77e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4741.09289265
delta logL = 0.657842368358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4741.01264233
delta logL = 0.738092690471

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.467       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5510       1.0000          .0000       10.000    
     3 'Normalizat'    1.2850       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70306       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=   4741.013     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      268 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.390        54.136        .30961E-02    .35687E-03
   2  Index         4.5570        3.2863        .85678E-01    .14939E-03
   3  Normalizat    1.2851        .10443        .53051E-01   -.69619E-05
   4  Prefactor     .70315        .10169        .66520E-01   -.16858E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3904
  Index      = 4.55705
  Normalizat = 1.28513
  Prefactor  = 0.703147
 **********
 **   18 **HESSE 
 **********

 FCN=   4741.013     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      301 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.390        64.946        .75096E-04   -1.5063    
   2  Index         4.5570        3.6131        .36751E-02   -.88707E-01
   3  Normalizat    1.2851        .25452        .23456E-03   -.84011    
   4  Prefactor     .70315        .24502        .29433E-03   -1.0340    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.5512e-10
Minuit parameter uncertainties:
  1  52.0377
  2  4.04268
  3  0.254768
  4  0.245392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/471319': 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) = 4741.01263624
delta logL = 0.738098776505

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.039e+01  5.204e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  4.557e+00  4.043e+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:  7.031e-01  2.454e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  1.285e+00  2.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.95
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 4.56 +/- 4.04
Photon Flux (Free Index): 2.69e-07 +/- 1.00e-07
Energy Flux (Free Index): 3.74e-05 +/- 2.38e-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/471319/cmap_HighResolution_321753601_322012801_4FGL_J2248.7-3235_daily_bin318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.92e-07', energy_flux2='3.74e-05', photon_flux_error='7.71e-08', dlogl='7.38e-01', energy_flux='4.41e-05', photon_flux2='2.69e-07', job_status='DONE', time_completed='2021-09-28 20:41:18.585209', photon_index_error2='4.04', photon_index2='4.56', ts='10.69', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', energy_flux_error2='2.38e-05', EG='1.42', time_epoch_completed='1632886878.59', return_code='0', job_id='471319', GAL2='0.70', EG2='1.29', return_code2='102', energy_flux_error='1.77e-05', photon_flux_error2='1.00e-07', ts2='12.95', photon_index='2.76' WHERE bin_id='318' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:41:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 471319: <4FGL_J2248.7-3235_daily_bin318> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin318> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 20:30:17 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:30:19 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:30:19 2021
Terminated at Tue Sep 28 20:41:18 2021
Results reported at Tue Sep 28 20:41:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin318 342.193 -32.5926 321753601 322012801 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 :                                   548.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   659 sec.
    Turnaround time :                            661 sec.

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

