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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1155
RA = 342.193, Dec = -32.5926
tmin = 538704001, tmax = 538963201
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='474672', job_status='RUN', time_executed='2021-09-28 20:43:32.899870', time_epoch_executed='1632887012.9' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1155'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474672

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474672/ft1_4FGL_J2248.7-3235_daily_bin1155.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474672/ft2_4FGL_J2248.7-3235_daily_bin1155.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474672/ft1_4FGL_J2248.7-3235_daily_bin1155.fits outfile=/scratch/kocevski/474672/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1155.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=538704001.0 tmax=538963201.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.53
user 3.27
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/474672/ft2_4FGL_J2248.7-3235_daily_bin1155.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/474672/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1155.fits evtable="EVENTS" outfile="/scratch/kocevski/474672/ft1_filtered_4FGL_J2248.7-3235_daily_bin1155.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/474672/ft1_filtered_4FGL_J2248.7-3235_daily_bin1155.fits" evtable="EVENTS" scfile=/scratch/kocevski/474672/ft2_4FGL_J2248.7-3235_daily_bin1155.fits sctable="SC_DATA" outfile=/scratch/kocevski/474672/ltcube_538704001_538963201_4FGL_J2248.7-3235_daily_bin1155.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/474672/ft2_4FGL_J2248.7-3235_daily_bin1155.fits
.....................!
real 11.76
user 11.38
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474672/ft1_filtered_4FGL_J2248.7-3235_daily_bin1155.fits evtable="EVENTS" scfile=/scratch/kocevski/474672/ft2_4FGL_J2248.7-3235_daily_bin1155.fits sctable="SC_DATA" expcube=/scratch/kocevski/474672/ltcube_538704001_538963201_4FGL_J2248.7-3235_daily_bin1155.fits outfile=/scratch/kocevski/474672/expmap_538704001_538963201_4FGL_J2248.7-3235_daily_bin1155.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/474672/ltcube_538704001_538963201_4FGL_J2248.7-3235_daily_bin1155.fits
.....................!
real 193.22
user 187.27
sys 5.36

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/474672/ft1_filtered_4FGL_J2248.7-3235_daily_bin1155.fits scfile=/scratch/kocevski/474672/ft2_4FGL_J2248.7-3235_daily_bin1155.fits outfile=/scratch/kocevski/474672/cmap_538704001_538963201_4FGL_J2248.7-3235_daily_bin1155.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474672/ft1_filtered_4FGL_J2248.7-3235_daily_bin1155.fits scfile=/scratch/kocevski/474672/ft2_4FGL_J2248.7-3235_daily_bin1155.fits outfile=/scratch/kocevski/474672/cmap_HighResolution_538704001_538963201_4FGL_J2248.7-3235_daily_bin1155.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.35
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/474672/ft1_filtered_4FGL_J2248.7-3235_daily_bin1155.fits evtable="EVENTS" scfile=/scratch/kocevski/474672/ft2_4FGL_J2248.7-3235_daily_bin1155.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/474672/Model_4FGL_J2248.7-3235_daily_bin1155.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/474672/ft1_filtered_4FGL_J2248.7-3235_daily_bin1155.fits.....................!
real 56.94
user 55.56
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4478       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1278       1.0000         .10000E-03   10000.    
     4 'norm      '    29.878       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.7085       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11880E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.368       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10508E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.4582       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.0791       1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.652       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.333       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10.174       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.7183       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0134       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .77456       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=   7846.622     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2526 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4478        .35058        .20112E-08   -.31523E-03
   2  Prefactor     .10000E-03    10.541        .25598E-06** at limit **
   3  Prefactor     1.1286        7.6982        .47059E-05    .54367E-04
   4  norm          29.875        16.458       -.35292E-07   -.15600E-04
   5  Prefactor     .10000E-03    32.205       -.14605E-05** at limit **
   6  Prefactor     .10000E-03    5.4402       -.96355E-07** at limit **
   7  Prefactor     .10000E-03    7.9918       -.27863E-07** at limit **
   8  Prefactor     .10000E-03    6.4252       -.40828E-07** at limit **
   9  norm          1.7065        1.4979       -.17560E-06   -.13231E-03
  10  Prefactor     .10001E-03    104.86       -.24285E-05** at limit **
  11  Prefactor     12.368        8.1980        .10263E-05    .76348E-04
  12  Prefactor     .10008E-03    3.6777       -.14014E-05** at limit **
  13  norm          2.4575        2.9570        .18784E-06    .96545E-05
  14  Prefactor     .10000E-03    7.1545       -.12051E-06** at limit **
  15  Prefactor     .10000E-03    6.9347       -.10957E-06** at limit **
  16  norm          3.0792        .75054       -.69873E-07    .35711E-03
  17  Prefactor     27.653        26.586        .74868E-07    .46103E-06
  18  Prefactor     12.331        9.4234        .14645E-05    .12584E-03
  19  norm          .10000E-03    3.3023       -.71929E-07** at limit **
  20  norm          10.175        5.8615        .18166E-06    .13202E-04
  21  Prefactor     .10000E-03    21.443        .93851E-06** at limit **
  22  Prefactor     .10001E-03    57.447        .29378E-05** at limit **
  23  norm          3.7185        3.6316        .42284E-06    .81884E-04
  24  Normalizat    1.0134        .14937       -.11216E-05   -.21187E-04
  25  Prefactor     .77453        .14570       -.38390E-06   -.99336E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.44783
  Prefactor  = 0.0001
  Prefactor  = 1.12856
  norm       = 29.8745
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.70655
  Prefactor  = 0.000100008
  Prefactor  = 12.3675
  Prefactor  = 0.000100083
  norm       = 2.4575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.07915
  Prefactor  = 27.653
  Prefactor  = 12.3305
  norm       = 0.0001
  norm       = 10.1746
  Prefactor  = 0.000100002
  Prefactor  = 0.000100013
  norm       = 3.71852
  Normalizat = 1.01343
  Prefactor  = 0.774528
 **********
 **   18 **HESSE 
 **********

 FCN=   7846.622     FROM HESSE     STATUS=OK           429 CALLS     2955 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4478        .35164        .25063E-04   -1.5467    
   2  Prefactor     .10000E-03    10.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1286        7.8729        .44055E-03   -1.5496    
   4  norm          29.875        16.452        .73299E-04   -1.4614    
   5  Prefactor     .10000E-03    32.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.4481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.1983        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.4409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7065        1.4924        .97699E-04   -1.5447    
  10  Prefactor     .10001E-03    106.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.368        8.2000        .56952E-03   -1.5004    
  12  Prefactor     .10008E-03    15.560        .29767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.4575        2.9439        .15619E-03   -1.5394    
  14  Prefactor     .10000E-03    7.1733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.0410        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.0792        .75515        .32486E-04   -1.5357    
  17  Prefactor     27.653        26.592        .76185E-04   -1.4656    
  18  Prefactor     12.331        9.5217        .57032E-03   -1.5006    
  19  norm          .10000E-03    3.3560        .15667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.175        5.8627        .12562E-03   -1.5070    
  21  Prefactor     .10000E-03    21.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    58.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.7185        3.6193        .15982E-03   -1.5322    
  24  Normalizat    1.0134        .17671        .22330E-03   -.92582    
  25  Prefactor     .77453        .17355        .25587E-03   -1.0067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69726e-09
Minuit parameter uncertainties:
  1  0.351644
  2  6.09641e-05
  3  5.96243
  4  16.4543
  5  0.000748845
  6  9.17669e-06
  7  1.52335e-06
  8  3.71753e-06
  9  1.49248
  10  0.00180953
  11  8.20078
  12  0.00227056
  13  2.94406
  14  2.00699e-05
  15  1.64564e-06
  16  0.755153
  17  26.6038
  18  9.52291
  19  8.57378e-06
  20  5.86303
  21  0.000417956
  22  0.00173799
  23  3.61954
  24  0.176815
  25  0.173672
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  7.745e-01  1.737e-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.013e+00  1.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.51
Ra Dec: 342.193 -32.593
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 4.38e-08 +/- 2.90e-08
Energy Flux (Fixed Index): 1.01e-05 +/- 6.68e-06

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

Saving results to:
/scratch/kocevski/474672/likelihoodResults_538704001_538963201_4FGL_J2248.7-3235_daily_bin1155.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) = 7845.77350857
delta logL = 0.848477332333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7845.74898502
delta logL = 0.873000877445

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.444       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9694       1.0000          .0000       10.000    
     3 'Normalizat'    1.0457       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74743       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=   7845.749     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      212 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.428        9.1463        .26347E-02    .23434E-04
   2  Index         1.9692        .37378        .21868       -.76978E-04
   3  Normalizat    1.0454        .14430        .40851E-01    .95217E-05
   4  Prefactor     .74774        .14663        .43029E-01    .19415E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4285
  Index      = 1.96922
  Normalizat = 1.04541
  Prefactor  = 0.747744
 **********
 **   18 **HESSE 
 **********

 FCN=   7845.749     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.428        9.5617        .10539E-03   -1.4948    
   2  Index         1.9692        .47936        .78841E-02   -.65122    
   3  Normalizat    1.0454        .17013        .22022E-03   -.91524    
   4  Prefactor     .74774        .17237        .25966E-03   -1.0168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57851e-12
Minuit parameter uncertainties:
  1  9.5627
  2  0.480525
  3  0.170215
  4  0.172494
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474672': 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) = 7845.74898162
delta logL = 0.873004285208

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.443e+01  9.563e+00  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  1.969e+00  4.805e-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:  7.477e-01  1.725e-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.045e+00  1.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.24
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 1.97 +/- 0.48
Photon Flux (Free Index): 2.83e-08 +/- 2.20e-08
Energy Flux (Free Index): 2.12e-05 +/- 2.07e-05

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/474672/cmap_HighResolution_538704001_538963201_4FGL_J2248.7-3235_daily_bin1155.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.23e-03', comment='SUCCESS', photon_flux='4.38e-08', energy_flux2='2.12e-05', photon_flux_error='2.90e-08', dlogl='8.73e-01', energy_flux='1.01e-05', photon_flux2='2.83e-08', job_status='DONE', time_completed='2021-09-28 20:56:34.386185', photon_index_error2='0.48', photon_index2='1.97', ts='3.51', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='2.07e-05', EG='1.01', time_epoch_completed='1632887794.39', return_code='0', job_id='474672', GAL2='0.75', EG2='1.05', return_code2='0', energy_flux_error='6.68e-06', photon_flux_error2='2.20e-08', ts2='5.24', photon_index='2.76' WHERE bin_id='1155' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:56:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 474672: <4FGL_J2248.7-3235_daily_bin1155> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1155> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 20:41:09 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:41:10 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:10 2021
Terminated at Tue Sep 28 20:56:35 2021
Results reported at Tue Sep 28 20:56:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1155 342.193 -32.5926 538704001 538963201 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 :                                   774.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            926 sec.

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

