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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1213
RA = 342.193, Dec = -32.5926
tmin = 553737601, tmax = 553996801
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='474765', job_status='RUN', time_executed='2021-09-28 20:41:28.764533', time_epoch_executed='1632886888.76' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1213'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474765

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474765/ft1_4FGL_J2248.7-3235_daily_bin1213.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474765/ft2_4FGL_J2248.7-3235_daily_bin1213.fits


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

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

Done.
real 2.52
user 2.31
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474765/ft1_filtered_4FGL_J2248.7-3235_daily_bin1213.fits" evtable="EVENTS" scfile=/scratch/kocevski/474765/ft2_4FGL_J2248.7-3235_daily_bin1213.fits sctable="SC_DATA" outfile=/scratch/kocevski/474765/ltcube_553737601_553996801_4FGL_J2248.7-3235_daily_bin1213.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/474765/ft2_4FGL_J2248.7-3235_daily_bin1213.fits
.....................!
real 12.56
user 12.13
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474765/ft1_filtered_4FGL_J2248.7-3235_daily_bin1213.fits evtable="EVENTS" scfile=/scratch/kocevski/474765/ft2_4FGL_J2248.7-3235_daily_bin1213.fits sctable="SC_DATA" expcube=/scratch/kocevski/474765/ltcube_553737601_553996801_4FGL_J2248.7-3235_daily_bin1213.fits outfile=/scratch/kocevski/474765/expmap_553737601_553996801_4FGL_J2248.7-3235_daily_bin1213.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/474765/ltcube_553737601_553996801_4FGL_J2248.7-3235_daily_bin1213.fits
.....................!
real 191.80
user 185.63
sys 5.75

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/474765/ft1_filtered_4FGL_J2248.7-3235_daily_bin1213.fits scfile=/scratch/kocevski/474765/ft2_4FGL_J2248.7-3235_daily_bin1213.fits outfile=/scratch/kocevski/474765/cmap_553737601_553996801_4FGL_J2248.7-3235_daily_bin1213.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474765/ft1_filtered_4FGL_J2248.7-3235_daily_bin1213.fits scfile=/scratch/kocevski/474765/ft2_4FGL_J2248.7-3235_daily_bin1213.fits outfile=/scratch/kocevski/474765/cmap_HighResolution_553737601_553996801_4FGL_J2248.7-3235_daily_bin1213.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/474765/ft1_filtered_4FGL_J2248.7-3235_daily_bin1213.fits evtable="EVENTS" scfile=/scratch/kocevski/474765/ft2_4FGL_J2248.7-3235_daily_bin1213.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/474765/Model_4FGL_J2248.7-3235_daily_bin1213.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/474765/ft1_filtered_4FGL_J2248.7-3235_daily_bin1213.fits......................!
real 27.56
user 26.22
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27073       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.665       1.0000         .10000E-03   10000.    
     4 'norm      '    23.907       1.0000         .10000E-03   10000.    
     5 'Prefactor '    152.73       1.0000         .10000E-03   10000.    
     6 'Prefactor '    47.692       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8023       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10843E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.3877       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11875E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19046E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.051       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    208.47       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.4880       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.804       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.3906       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3101       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98544       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=   2391.799     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     3498 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27102        .83159       -.19266E-06   -.10052E-02
   2  Prefactor     .10000E-03    19.635        .19792E-06** at limit **
   3  Prefactor     29.663        27.977        .17396E-06   -.49690E-04
   4  norm          23.913        56.094        .53145E-05   -.17340E-04
   5  Prefactor     152.76        145.58        .22368E-04   -.77634E-05
   6  Prefactor     47.704        50.579        .50818E-05   -.28653E-04
   7  Prefactor     1.7940        104.68        .99937E-05   -.46123E-04
   8  Prefactor     .10000E-03    65.907       -.19435E-07** at limit **
   9  norm          4.3889        4.4289       -.26360E-06   -.65873E-04
  10  Prefactor     .10000E-03    76.062       -.50570E-06** at limit **
  11  Prefactor     .10025E-03    36.331        .16198E-05** at limit **
  12  Prefactor     21.055        18.722       -.12457E-05   -.34219E-04
  13  norm          .10000E-03    3.0216        .43611E-07** at limit **
  14  Prefactor     .10000E-03    8.4274       -.68822E-07** at limit **
  15  Prefactor     .10000E-03    14.315        .66454E-07** at limit **
  16  norm          .10000E-03    .38542        .78485E-07** at limit **
  17  Prefactor     208.47        142.33        .36763E-05   -.21117E-04
  18  Prefactor     .10000E-03    19.015       -.19335E-06** at limit **
  19  norm          .10000E-03    7.9424       -.74781E-06** at limit **
  20  norm          3.4898        12.278       -.20747E-05   -.11680E-03
  21  Prefactor     15.847        74.475        .60717E-04    .15110E-04
  22  Prefactor     .10000E-03    66.476       -.13670E-05** at limit **
  23  norm          6.3889        10.101       -.84391E-05   -.20605E-03
  24  Normalizat    1.3101        .35171       -.38415E-05   -.59132E-04
  25  Prefactor     .98540        .33813       -.10877E-05   -.13261E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.27102
  Prefactor  = 0.0001
  Prefactor  = 29.6628
  norm       = 23.9127
  Prefactor  = 152.763
  Prefactor  = 47.704
  Prefactor  = 1.79396
  Prefactor  = 0.000100001
  norm       = 4.38892
  Prefactor  = 0.0001
  Prefactor  = 0.000100247
  Prefactor  = 21.0546
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 208.474
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 3.48977
  Prefactor  = 15.8472
  Prefactor  = 0.0001
  norm       = 6.38893
  Normalizat = 1.31005
  Prefactor  = 0.985397
 **********
 **   18 **HESSE 
 **********

 FCN=   2391.799     FROM HESSE     STATUS=OK           427 CALLS     3925 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27102        .73385        .75888E-03   -1.5604    
   2  Prefactor     .10000E-03    19.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.663        28.011        .73560E-04   -1.4618    
   4  norm          23.913        56.058        .81924E-04   -1.4730    
   5  Prefactor     152.76        145.03        .16308E-03   -1.3230    
   6  Prefactor     47.704        50.474        .58063E-04   -1.4326    
   7  Prefactor     1.7940        103.69        .31136E-03   -1.5440    
   8  Prefactor     .10000E-03    66.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.3889        4.4131        .97408E-04   -1.5289    
  10  Prefactor     .10000E-03    76.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10025E-03    284.66        .54659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.055        18.736        .87298E-04   -1.4790    
  13  norm          .10000E-03    3.0258        .83019E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.4288        .13868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.401        .18059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .38903        .29610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     208.47        142.38        .27997E-04   -1.2810    
  18  Prefactor     .10000E-03    19.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.9797        .13444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.4898        12.265        .21650E-03   -1.5334    
  21  Prefactor     15.847        74.622        .10075E-03   -1.4912    
  22  Prefactor     .10000E-03    66.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.3889        10.124        .15877E-03   -1.5202    
  24  Normalizat    1.3101        .42953        .26491E-03   -.83267    
  25  Prefactor     .98540        .41785        .29303E-03   -.93218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45724e-09
Minuit parameter uncertainties:
  1  0.733876
  2  1.64643e-06
  3  28.023
  4  56.1816
  5  145.369
  6  50.5193
  7  27.3271
  8  0.000539547
  9  4.41341
  10  4.91642e-05
  11  0.0168383
  12  18.7412
  13  2.10073e-06
  14  4.35013e-06
  15  3.75648e-05
  16  1.72729e-06
  17  142.615
  18  6.09923e-05
  19  0.000193385
  20  12.2734
  21  68.9171
  22  0.000150182
  23  10.1269
  24  0.430712
  25  0.419229
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  9.854e-01  4.192e-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.310e+00  4.307e-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: 2.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/474765/likelihoodResults_553737601_553996801_4FGL_J2248.7-3235_daily_bin1213.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) = 2391.79895841
delta logL = -1.62421374625e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2391.7989584
delta logL = -1.62348223967e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96362E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7611       1.0000          .0000       10.000    
     3 'Normalizat'    1.3100       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98539       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=   2391.604     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      280 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53761        26.670        .14633E-01   -.74020E-03
   2  Index         5.7621        7.8214        .22714       -.18629E-04
   3  Normalizat    1.2339        .65320E-01    .61421E-01    .17719E-03
   4  Prefactor     1.0360        .63904E-01    .46084E-01    .10744E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.537607
  Index      = 5.76214
  Normalizat = 1.23388
  Prefactor  = 1.03599
 **********
 **   18 **HESSE 
 **********

 FCN=   2391.604     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      311 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53761        90.188        .67371E-03   -1.5561    
   2  Index         5.7621        5.7546        .98131E-02    .15303    
   3  Normalizat    1.2339        .29655        .27167E-03   -.85562    
   4  Prefactor     1.0360        .27696        .28642E-03   -.91539    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.77168e-09
Minuit parameter uncertainties:
  1  13.9465
  2  18.6107
  3  0.296953
  4  0.277341
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474765': 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) = 2391.60423093
delta logL = 0.194711241652

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  5.376e-01  1.395e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  5.762e+00  1.861e+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:  1.036e+00  2.773e-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.234e+00  2.970e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/474765/cmap_HighResolution_553737601_553996801_4FGL_J2248.7-3235_daily_bin1213.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.05e-02', job_status='DONE', photon_flux_upper_limit='2.60e-07', time_completed='2021-09-28 20:49:31.240048', job_id='474765', GAL2='1.04', fit_tolerance='1e-08', EG2='1.23', EG='1.31', time_epoch_completed='1632887371.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.95e-01', ts2='0.42', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1213' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:49:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 474765: <4FGL_J2248.7-3235_daily_bin1213> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1213 342.193 -32.5926 553737601 553996801 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 :                                   474.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   492 sec.
    Turnaround time :                            494 sec.

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

