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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1318
RA = 342.193, Dec = -32.5926
tmin = 580953601, tmax = 581212801
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='475955', job_status='RUN', time_executed='2021-09-28 20:46:36.488609', time_epoch_executed='1632887196.49' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/475955

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/475955/ft1_4FGL_J2248.7-3235_daily_bin1318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/475955/ft2_4FGL_J2248.7-3235_daily_bin1318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/475955/ft1_4FGL_J2248.7-3235_daily_bin1318.fits outfile=/scratch/kocevski/475955/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1318.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=580953601.0 tmax=581212801.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.95
user 2.74
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/475955/ft1_filtered_4FGL_J2248.7-3235_daily_bin1318.fits" evtable="EVENTS" scfile=/scratch/kocevski/475955/ft2_4FGL_J2248.7-3235_daily_bin1318.fits sctable="SC_DATA" outfile=/scratch/kocevski/475955/ltcube_580953601_581212801_4FGL_J2248.7-3235_daily_bin1318.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/475955/ft2_4FGL_J2248.7-3235_daily_bin1318.fits
.....................!
real 12.45
user 12.08
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/475955/ft1_filtered_4FGL_J2248.7-3235_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/475955/ft2_4FGL_J2248.7-3235_daily_bin1318.fits sctable="SC_DATA" expcube=/scratch/kocevski/475955/ltcube_580953601_581212801_4FGL_J2248.7-3235_daily_bin1318.fits outfile=/scratch/kocevski/475955/expmap_580953601_581212801_4FGL_J2248.7-3235_daily_bin1318.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/475955/ltcube_580953601_581212801_4FGL_J2248.7-3235_daily_bin1318.fits
.....................!
real 189.94
user 185.04
sys 4.59

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/475955/ft1_filtered_4FGL_J2248.7-3235_daily_bin1318.fits scfile=/scratch/kocevski/475955/ft2_4FGL_J2248.7-3235_daily_bin1318.fits outfile=/scratch/kocevski/475955/cmap_580953601_581212801_4FGL_J2248.7-3235_daily_bin1318.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=342.193 yref=-32.5926 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/475955/ft1_filtered_4FGL_J2248.7-3235_daily_bin1318.fits scfile=/scratch/kocevski/475955/ft2_4FGL_J2248.7-3235_daily_bin1318.fits outfile=/scratch/kocevski/475955/cmap_HighResolution_580953601_581212801_4FGL_J2248.7-3235_daily_bin1318.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/475955/ft1_filtered_4FGL_J2248.7-3235_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/475955/ft2_4FGL_J2248.7-3235_daily_bin1318.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/475955/Model_4FGL_J2248.7-3235_daily_bin1318.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/475955/ft1_filtered_4FGL_J2248.7-3235_daily_bin1318.fits.....................!
real 65.94
user 64.59
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0707       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10544E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    31.353       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.548       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11951E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.2751       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13608E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5986       1.0000         .10000E-03   10000.    
    13 'norm      '    6.1813       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22136E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8327       1.0000         .10000E-03   10000.    
    16 'norm      '    .91654       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.861       1.0000         .10000E-03   10000.    
    19 'norm      '    .35179       1.0000         .10000E-03   10000.    
    20 'norm      '    10.389       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2242       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94500       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=   9206.859     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     2573 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0707        .32487       -.62362E-08    .78269E-04
   2  Prefactor     .10000E-03    26.484       -.18928E-05** at limit **
   3  Prefactor     .10000E-03    2.8791        .54024E-08** at limit **
   4  norm          31.345        20.737       -.10400E-06    .11993E-04
   5  Prefactor     .10000E-03    18.643        .81005E-06** at limit **
   6  Prefactor     16.553        16.651       -.16225E-06    .28097E-04
   7  Prefactor     .10000E-03    12.688       -.72317E-06** at limit **
   8  Prefactor     .10000E-03    7.5683       -.13421E-07** at limit **
   9  norm          2.2752        1.5160       -.27140E-07   -.24983E-04
  10  Prefactor     .10000E-03    18.599        .44587E-06** at limit **
  11  Prefactor     .10002E-03    5.1970       -.48789E-06** at limit **
  12  Prefactor     1.5982        4.9781       -.41883E-05   -.25563E-03
  13  norm          6.1840        3.9341       -.16093E-06   -.10242E-03
  14  Prefactor     .10019E-03    7.6377        .46746E-07** at limit **
  15  Prefactor     6.8494        5.6427        .12314E-05   -.10236E-02
  16  norm          .91667        .69372       -.11974E-06   -.41665E-03
  17  Prefactor     .10000E-03    43.172       -.14643E-05** at limit **
  18  Prefactor     13.861        9.0340        .25413E-07   -.32310E-04
  19  norm          .34676        2.7746       -.74189E-06    .22784E-03
  20  norm          10.389        5.9941       -.47607E-06   -.29821E-04
  21  Prefactor     .10000E-03    44.481        .17729E-05** at limit **
  22  Prefactor     .10000E-03    10.555        .23926E-06** at limit **
  23  norm          .10000E-03    2.0785        .13660E-06** at limit **
  24  Normalizat    1.2243        .15600        .30061E-06    .20273E-03
  25  Prefactor     .94497        .15802        .39544E-06    .16275E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.0707
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 31.3453
  Prefactor  = 0.0001
  Prefactor  = 16.5532
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.27521
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 1.59816
  norm       = 6.18396
  Prefactor  = 0.000100192
  Prefactor  = 6.84942
  norm       = 0.916668
  Prefactor  = 0.0001
  Prefactor  = 13.8609
  norm       = 0.346758
  norm       = 10.3888
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.22428
  Prefactor  = 0.944968
 **********
 **   18 **HESSE 
 **********

 FCN=   9206.859     FROM HESSE     STATUS=OK           437 CALLS     3010 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0707        .32528        .29237E-04   -1.5501    
   2  Prefactor     .10000E-03    27.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.9056        .15893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          31.345        20.726        .71558E-04   -1.4588    
   5  Prefactor     .10000E-03    18.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.553        16.645        .98456E-04   -1.4894    
   7  Prefactor     .10000E-03    13.157        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.5914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.2752        1.5128        .93169E-04   -1.5406    
  10  Prefactor     .10000E-03    18.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    82.719        .41311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5982        5.1449        .33537E-03   -1.5455    
  13  norm          6.1840        3.9579        .13478E-03   -1.5211    
  14  Prefactor     .10019E-03    62.831        .46038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8494        10.432        .76746E-03   -1.5184    
  16  norm          .91667        .73559        .52606E-03   -1.5516    
  17  Prefactor     .10000E-03    43.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.861        9.0954        .10759E-03   -1.4963    
  19  norm          .34676        6.5310        .29370E-02   -1.5590    
  20  norm          10.389        5.9983        .12431E-03   -1.5063    
  21  Prefactor     .10000E-03    44.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.7939        .25513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2243        .19176        .23593E-03   -.85856    
  25  Prefactor     .94497        .19434        .26981E-03   -.94587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0521e-09
Minuit parameter uncertainties:
  1  0.32528
  2  5.31252e-05
  3  2.04312e-06
  4  20.7307
  5  2.76639e-05
  6  16.6492
  7  2.97617e-05
  8  8.88461e-06
  9  1.51283
  10  1.04539e-05
  11  0.00269205
  12  5.14629
  13  3.95802
  14  0.00695438
  15  10.4347
  16  0.735599
  17  2.75094e-05
  18  9.09629
  19  3.00971
  20  5.9987
  21  0.000104829
  22  1.02661e-06
  23  4.20918e-05
  24  0.191868
  25  0.194481
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  2.692e-03  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.450e-01  1.945e-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.224e+00  1.919e-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: 7.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/475955/likelihoodResults_580953601_581212801_4FGL_J2248.7-3235_daily_bin1318.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) = 9206.85942136
delta logL = -5.56498707738e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9206.81185232
delta logL = 0.0475133844993

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29914       1.0000         .10000E-03   10000.    
     2 'Index     '    4.8529       1.0000          .0000       10.000    
     3 'Normalizat'    1.2072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95632       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=   9206.812     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      421 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29918        4.8305        .26162E-01    .16459E-02
   2  Index         4.8529        2.1681        .50000        .82121E-04
   3  Normalizat    1.2072        .11654E-01    .53684E-01   -.66964E-04
   4  Prefactor     .95632        .11943E-01    .45719E-01    .13261E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.299182
  Index      = 4.85293
  Normalizat = 1.20725
  Prefactor  = 0.956316
 **********
 **   18 **HESSE 
 **********

 FCN=   9206.812     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      456 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29918        145.88        .13120E-02   -1.5599    
   2  Index         4.8529        5.5747        .13391E-01   -.29419E-01
   3  Normalizat    1.2072        .98789E-01    .23737E-03   -.86379    
   4  Prefactor     .95632        .97218E-01    .26840E-03   -.94200    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.67984e-06
Minuit parameter uncertainties:
  1  13.243
  2  32.5662
  3  0.0988044
  4  0.0972357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/475955': 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) = 9206.81185232
delta logL = 0.0475133892196

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  2.992e-01  1.324e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  4.853e+00  3.257e+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:  9.563e-01  9.724e-02  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  1.207e+00  9.880e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.79e-03', job_status='DONE', photon_flux_upper_limit='7.33e-08', time_completed='2021-09-28 21:01:05.770328', job_id='475955', GAL2='0.96', fit_tolerance='1e-08', EG2='1.21', EG='1.22', time_epoch_completed='1632888065.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='4.75e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1318' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:01:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 475955: <4FGL_J2248.7-3235_daily_bin1318> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1318 342.193 -32.5926 580953601 581212801 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 :                                   865.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            951 sec.

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

