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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1393
RA = 342.193, Dec = -32.5926
tmin = 600393601, tmax = 600652801
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='476073', job_status='RUN', time_executed='2021-09-28 20:47:32.477026', time_epoch_executed='1632887252.48' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1393'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476073

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476073/ft1_4FGL_J2248.7-3235_daily_bin1393.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476073/ft2_4FGL_J2248.7-3235_daily_bin1393.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476073/ft1_4FGL_J2248.7-3235_daily_bin1393.fits outfile=/scratch/kocevski/476073/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1393.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=600393601.0 tmax=600652801.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.64
user 3.43
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/476073/ft1_filtered_4FGL_J2248.7-3235_daily_bin1393.fits" evtable="EVENTS" scfile=/scratch/kocevski/476073/ft2_4FGL_J2248.7-3235_daily_bin1393.fits sctable="SC_DATA" outfile=/scratch/kocevski/476073/ltcube_600393601_600652801_4FGL_J2248.7-3235_daily_bin1393.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/476073/ft2_4FGL_J2248.7-3235_daily_bin1393.fits
.....................!
real 11.91
user 11.54
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476073/ft1_filtered_4FGL_J2248.7-3235_daily_bin1393.fits evtable="EVENTS" scfile=/scratch/kocevski/476073/ft2_4FGL_J2248.7-3235_daily_bin1393.fits sctable="SC_DATA" expcube=/scratch/kocevski/476073/ltcube_600393601_600652801_4FGL_J2248.7-3235_daily_bin1393.fits outfile=/scratch/kocevski/476073/expmap_600393601_600652801_4FGL_J2248.7-3235_daily_bin1393.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/476073/ltcube_600393601_600652801_4FGL_J2248.7-3235_daily_bin1393.fits
.....................!
real 189.72
user 184.87
sys 4.54

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J2248.7-3235 @ 342.193 -32.5926

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/476073/ft1_filtered_4FGL_J2248.7-3235_daily_bin1393.fits scfile=/scratch/kocevski/476073/ft2_4FGL_J2248.7-3235_daily_bin1393.fits outfile=/scratch/kocevski/476073/cmap_600393601_600652801_4FGL_J2248.7-3235_daily_bin1393.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/476073/ft1_filtered_4FGL_J2248.7-3235_daily_bin1393.fits scfile=/scratch/kocevski/476073/ft2_4FGL_J2248.7-3235_daily_bin1393.fits outfile=/scratch/kocevski/476073/cmap_HighResolution_600393601_600652801_4FGL_J2248.7-3235_daily_bin1393.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/476073/ft1_filtered_4FGL_J2248.7-3235_daily_bin1393.fits evtable="EVENTS" scfile=/scratch/kocevski/476073/ft2_4FGL_J2248.7-3235_daily_bin1393.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/476073/Model_4FGL_J2248.7-3235_daily_bin1393.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/476073/ft1_filtered_4FGL_J2248.7-3235_daily_bin1393.fits.....................!
real 38.81
user 37.58
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .38058       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.041       1.0000         .10000E-03   10000.    
     4 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.350       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.871       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.989       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.389       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.248       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2285       1.0000         .10000E-03   10000.    
    17 'Prefactor '    133.46       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1986       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    42.018       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4788       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .69754       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=   4305.989     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2890 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .38060        .27201       -.16109E-08    .41414E-04
   2  Prefactor     .10000E-03    37.735       -.15087E-05** at limit **
   3  Prefactor     21.035        14.593        .15769E-06    .67100E-05
   4  norm          .10000E-03    16.210       -.12807E-06** at limit **
   5  Prefactor     .10000E-03    14.329        .66228E-07** at limit **
   6  Prefactor     .10000E-03    60.540        .30865E-06** at limit **
   7  Prefactor     34.354        25.617        .28671E-06   -.16568E-03
   8  Prefactor     11.873        19.538        .56838E-07    .44567E-05
   9  norm          .10000E-03    2.2875        .16356E-05** at limit **
  10  Prefactor     17.995        61.549       -.69052E-05   -.22186E-03
  11  Prefactor     15.383        15.228        .17013E-06   -.47293E-05
  12  Prefactor     .10000E-03    3.2298       -.24862E-07** at limit **
  13  norm          .10000E-03    1.8943       -.28680E-07** at limit **
  14  Prefactor     .10000E-03    7.5719       -.38215E-07** at limit **
  15  Prefactor     13.240        14.928       -.71300E-06   -.11356E-03
  16  norm          1.2287        .93967       -.18192E-06    .35792E-04
  17  Prefactor     133.49        102.93       -.15742E-05    .36348E-04
  18  Prefactor     2.2016        22.973        .97612E-05   -.19770E-03
  19  norm          .10000E-03    2.5145       -.30066E-07** at limit **
  20  norm          .10000E-03    2.5778        .36767E-07** at limit **
  21  Prefactor     .10000E-03    33.638        .10287E-05** at limit **
  22  Prefactor     42.039        44.149       -.18026E-05    .63254E-04
  23  norm          .10000E-03    2.6189       -.50214E-07** at limit **
  24  Normalizat    1.4793        .25596       -.16363E-05   -.16644E-03
  25  Prefactor     .69710        .22621        .19807E-05   -.67398E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.380597
  Prefactor  = 0.0001
  Prefactor  = 21.035
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.3541
  Prefactor  = 11.8726
  norm       = 0.0001
  Prefactor  = 17.9949
  Prefactor  = 15.3826
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2398
  norm       = 1.22867
  Prefactor  = 133.486
  Prefactor  = 2.20156
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.0387
  norm       = 0.0001
  Normalizat = 1.47926
  Prefactor  = 0.697097
 **********
 **   18 **HESSE 
 **********

 FCN=   4305.989     FROM HESSE     STATUS=OK           423 CALLS     3313 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .38060        .27566        .28180E-04   -1.5585    
   2  Prefactor     .10000E-03    37.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.035        14.736        .87318E-04   -1.4790    
   4  norm          .10000E-03    16.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    61.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     34.354        25.606        .68374E-04   -1.4535    
   8  Prefactor     11.873        19.535        .11627E-03   -1.5019    
   9  norm          .10000E-03    4.0852        .17875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.995        60.583        .94431E-04   -1.4859    
  11  Prefactor     15.383        15.245        .10210E-03   -1.4923    
  12  Prefactor     .10000E-03    3.2350        .11517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.8988        .88157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.5744        .17628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.240        15.651        .11005E-03   -1.4980    
  16  norm          1.2287        .96873        .44312E-04   -1.5486    
  17  Prefactor     133.49        102.60        .17429E-03   -1.3392    
  18  Prefactor     2.2016        23.726        .13875E-02   -1.5411    
  19  norm          .10000E-03    2.5180        .10163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.5788        .10290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     42.039        43.712        .30921E-03   -1.4410    
  23  norm          .10000E-03    2.6321        .10370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4793        .31165        .24083E-03   -.78363    
  25  Prefactor     .69710        .27294        .31243E-03   -1.0364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38061e-09
Minuit parameter uncertainties:
  1  0.27566
  2  2.90675e-05
  3  14.7387
  4  1.16612e-06
  5  7.24439e-06
  6  3.69973e-05
  7  25.6146
  8  19.5458
  9  8.5688e-05
  10  60.791
  11  15.2486
  12  1.63376e-06
  13  2.41322e-06
  14  1.0158e-05
  15  15.6561
  16  0.968739
  17  102.734
  18  14.4615
  19  1.61373e-06
  20  3.50522e-06
  21  0.000107145
  22  43.745
  23  3.18033e-06
  24  0.312058
  25  0.273462
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.538e+01  1.525e+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:  6.971e-01  2.735e-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.479e+00  3.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.63
Ra Dec: 342.193 -32.593
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 5.45e-08 +/- 5.40e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 1.24e-05

TS (Fixed Index): 1.63
Ra Dec: 342.193 -32.593
Photon Flux Upper Limit: 1.83e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.44e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/476073/likelihoodResults_600393601_600652801_4FGL_J2248.7-3235_daily_bin1393.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) = 4305.64429115
delta logL = 0.344524284733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4305.64101714
delta logL = 0.347798289701

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.384       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0887       1.0000          .0000       10.000    
     3 'Normalizat'    1.5060       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67905       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=   4305.641     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      204 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.599        15.558        .25529E-02    .43610E-03
   2  Index         2.0934        .55689        .23577       -.24904E-04
   3  Normalizat    1.5056        .24024        .54083E-01    .16993E-03
   4  Prefactor     .67917        .22343        .71391E-01   -.47299E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.599
  Index      = 2.0934
  Normalizat = 1.50559
  Prefactor  = 0.679166
 **********
 **   18 **HESSE 
 **********

 FCN=   4305.641     FROM HESSE     STATUS=OK            29 CALLS      233 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.599        16.919        .10212E-03   -1.4918    
   2  Index         2.0934        .74220        .84882E-02   -.62035    
   3  Normalizat    1.5056        .28817        .23912E-03   -.77621    
   4  Prefactor     .67917        .26638        .31597E-03   -1.0435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95691e-10
Minuit parameter uncertainties:
  1  16.9244
  2  0.74638
  3  0.288483
  4  0.26688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476073': 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) = 4305.64093904
delta logL = 0.347876394468

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.560e+01  1.692e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.093e+00  7.464e-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:  6.792e-01  2.669e-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.506e+00  2.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.33
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 2.09 +/- 0.75
Photon Flux (Free Index): 3.27e-08 +/- 4.39e-08
Energy Flux (Free Index): 1.82e-05 +/- 2.17e-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/476073/cmap_HighResolution_600393601_600652801_4FGL_J2248.7-3235_daily_bin1393.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-02', comment='SUCCESS', photon_flux='5.45e-08', energy_flux2='1.82e-05', photon_flux_error='5.40e-08', dlogl='3.48e-01', energy_flux='1.25e-05', photon_flux2='3.27e-08', job_status='DONE', time_completed='2021-09-28 20:57:10.390085', photon_index_error2='0.75', photon_index2='2.09', ts='1.63', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='1.83e-07', energy_flux_error2='2.17e-05', EG='1.48', time_epoch_completed='1632887830.39', return_code='0', job_id='476073', GAL2='0.68', EG2='1.51', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='4.39e-08', ts2='2.33', photon_index='2.76' WHERE bin_id='1393' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:57:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 476073: <4FGL_J2248.7-3235_daily_bin1393> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1393> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 20:45:24 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:45:25 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:25 2021
Terminated at Tue Sep 28 20:57:11 2021
Results reported at Tue Sep 28 20:57:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1393 342.193 -32.5926 600393601 600652801 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 :                                   568.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            707 sec.

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

