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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1573
RA = 342.193, Dec = -32.5926
tmin = 647049601, tmax = 647308801
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='476339', job_status='RUN', time_executed='2021-09-28 20:48:18.468713', time_epoch_executed='1632887298.47' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1573'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476339

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476339/ft1_4FGL_J2248.7-3235_daily_bin1573.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476339/ft2_4FGL_J2248.7-3235_daily_bin1573.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476339/ft1_4FGL_J2248.7-3235_daily_bin1573.fits outfile=/scratch/kocevski/476339/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1573.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=647049601.0 tmax=647308801.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.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/476339/ft1_filtered_4FGL_J2248.7-3235_daily_bin1573.fits" evtable="EVENTS" scfile=/scratch/kocevski/476339/ft2_4FGL_J2248.7-3235_daily_bin1573.fits sctable="SC_DATA" outfile=/scratch/kocevski/476339/ltcube_647049601_647308801_4FGL_J2248.7-3235_daily_bin1573.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/476339/ft2_4FGL_J2248.7-3235_daily_bin1573.fits
.....................!
real 11.66
user 11.29
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476339/ft1_filtered_4FGL_J2248.7-3235_daily_bin1573.fits evtable="EVENTS" scfile=/scratch/kocevski/476339/ft2_4FGL_J2248.7-3235_daily_bin1573.fits sctable="SC_DATA" expcube=/scratch/kocevski/476339/ltcube_647049601_647308801_4FGL_J2248.7-3235_daily_bin1573.fits outfile=/scratch/kocevski/476339/expmap_647049601_647308801_4FGL_J2248.7-3235_daily_bin1573.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/476339/ltcube_647049601_647308801_4FGL_J2248.7-3235_daily_bin1573.fits
.....................!
real 190.98
user 184.84
sys 5.79

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/476339/ft1_filtered_4FGL_J2248.7-3235_daily_bin1573.fits scfile=/scratch/kocevski/476339/ft2_4FGL_J2248.7-3235_daily_bin1573.fits outfile=/scratch/kocevski/476339/cmap_647049601_647308801_4FGL_J2248.7-3235_daily_bin1573.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/476339/ft1_filtered_4FGL_J2248.7-3235_daily_bin1573.fits scfile=/scratch/kocevski/476339/ft2_4FGL_J2248.7-3235_daily_bin1573.fits outfile=/scratch/kocevski/476339/cmap_HighResolution_647049601_647308801_4FGL_J2248.7-3235_daily_bin1573.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/476339/ft1_filtered_4FGL_J2248.7-3235_daily_bin1573.fits evtable="EVENTS" scfile=/scratch/kocevski/476339/ft2_4FGL_J2248.7-3235_daily_bin1573.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/476339/Model_4FGL_J2248.7-3235_daily_bin1573.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/476339/ft1_filtered_4FGL_J2248.7-3235_daily_bin1573.fits....................!
real 39.29
user 37.98
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22322       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .76490       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.2379       1.0000         .10000E-03   10000.    
     4 'norm      '    21.880       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18485E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10497E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10638E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    80.828       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.363       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5603       1.0000         .10000E-03   10000.    
    13 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0639       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.1791       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.815       1.0000         .10000E-03   10000.    
    23 'norm      '    7.3780       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .79924       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0299       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=   4543.612     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2893 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22320        .32900        .76687E-07    .18509E-03
   2  Prefactor     .67191        22.205        .63943E-05   -.71261E-03
   3  Prefactor     8.2379        10.798        .39242E-05    .46311E-03
   4  norm          21.879        24.025       -.21941E-06   -.15557E-03
   5  Prefactor     .10000E-03    120.42       -.96487E-06** at limit **
   6  Prefactor     .10000E-03    5.9950       -.44473E-07** at limit **
   7  Prefactor     .10000E-03    17.956        .28868E-05** at limit **
   8  Prefactor     .10000E-03    10.408       -.12290E-06** at limit **
   9  norm          .10000E-03    1.5077        .19628E-05** at limit **
  10  Prefactor     80.887        62.810       -.76677E-07    .18468E-04
  11  Prefactor     11.365        14.049        .28962E-06   -.51489E-04
  12  Prefactor     1.5576        4.3036        .83534E-06    .12833E-03
  13  norm          .10000E-03    5.8206        .66810E-06** at limit **
  14  Prefactor     2.0570        12.930        .14085E-05    .30514E-04
  15  Prefactor     8.1825        11.606       -.46091E-08   -.21567E-03
  16  norm          .10000E-03    .25913        .57247E-07** at limit **
  17  Prefactor     .10000E-03    29.431       -.38943E-06** at limit **
  18  Prefactor     .10000E-03    3.8711        .11333E-06** at limit **
  19  norm          .10000E-03    2.6843       -.47427E-07** at limit **
  20  norm          .10000E-03    7.0910       -.24845E-06** at limit **
  21  Prefactor     .10000E-03    19.594        .55582E-06** at limit **
  22  Prefactor     17.808        37.267        .83053E-06   -.39436E-04
  23  norm          7.3792        5.1042        .29248E-06    .33120E-04
  24  Normalizat    .79917        .20508       -.24138E-05   -.42487E-03
  25  Prefactor     1.0299        .19136       -.93268E-07   -.50773E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.223205
  Prefactor  = 0.671914
  Prefactor  = 8.23786
  norm       = 21.8786
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 80.8873
  Prefactor  = 11.3647
  Prefactor  = 1.5576
  norm       = 0.0001
  Prefactor  = 2.05704
  Prefactor  = 8.18248
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 17.8078
  norm       = 7.3792
  Normalizat = 0.799167
  Prefactor  = 1.02993
 **********
 **   18 **HESSE 
 **********

 FCN=   4543.612     FROM HESSE     STATUS=OK           427 CALLS     3320 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22320        .30136        .45366E-03   -1.5613    
   2  Prefactor     .67191        121.74        .48761E-02   -1.5544    
   3  Prefactor     8.2379        10.808        .69840E-03   -1.5134    
   4  norm          21.879        24.018        .85629E-04   -1.4772    
   5  Prefactor     .10000E-03    121.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9965        .16119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.5322        .80888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     80.887        62.177        .22337E-03   -1.3907    
  11  Prefactor     11.365        14.085        .11884E-03   -1.5034    
  12  Prefactor     1.5576        4.2612        .22571E-03   -1.5458    
  13  norm          .10000E-03    5.9464        .31565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.0570        12.422        .28761E-03   -1.5421    
  15  Prefactor     8.1825        11.232        .14019E-03   -1.5136    
  16  norm          .10000E-03    .27361        .64149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.8750        .12944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.6990        .10780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.1970        .17517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.808        37.365        .94892E-04   -1.4864    
  23  norm          7.3792        5.1022        .12176E-03   -1.5165    
  24  Normalizat    .79917        .24143        .25068E-03   -1.0010    
  25  Prefactor     1.0299        .22753        .22310E-03   -.91738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30047e-08
Minuit parameter uncertainties:
  1  0.301366
  2  18.1246
  3  10.8108
  4  24.0284
  5  0.000401139
  6  8.73658e-08
  7  9.60703e-05
  8  2.68501e-06
  9  5.14209e-05
  10  62.2267
  11  14.0889
  12  4.26206
  13  2.41438e-05
  14  10.1128
  15  11.2348
  16  9.16792e-09
  17  0.000155563
  18  5.73017e-06
  19  2.03382e-06
  20  1.71881e-07
  21  0.000284254
  22  37.4136
  23  5.10251
  24  0.241754
  25  0.227743
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.136e+01  1.409e+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:  1.030e+00  2.277e-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:  7.992e-01  2.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/476339/likelihoodResults_647049601_647308801_4FGL_J2248.7-3235_daily_bin1573.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) = 4543.08704485
delta logL = 0.524620206004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4543.07331491
delta logL = 0.538350142128

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4685       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3236       1.0000          .0000       10.000    
     3 'Normalizat'    .73650       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0744       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=   4543.073     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      248 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4498        73.891        .47620E-02    .28534E-03
   2  Index         4.3273        7.0470        .19667        .67885E-04
   3  Normalizat    .73664        .59812E-01    .42776E-01    .15530E-04
   4  Prefactor     1.0743        .58109E-01    .38651E-01    .27060E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44979
  Index      = 4.32727
  Normalizat = 0.736642
  Prefactor  = 1.07426
 **********
 **   18 **HESSE 
 **********

 FCN=   4543.073     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4498        153.35        .10727E-03   -1.5286    
   2  Index         4.3273        6.7386        .70242E-02   -.13495    
   3  Normalizat    .73664        .24649        .25997E-03   -1.0246    
   4  Prefactor     1.0743        .24881        .21897E-03   -.90294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88966e-10
Minuit parameter uncertainties:
  1  52.3897
  2  10.0457
  3  0.246859
  4  0.249079
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476339': 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) = 4543.07331281
delta logL = 0.538352249228

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  4.450e+00  5.239e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  4.327e+00  1.005e+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.074e+00  2.491e-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:  7.366e-01  2.469e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.06
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 4.33 +/- 10.05
Photon Flux (Free Index): 8.73e-08 +/- 7.61e-08
Energy Flux (Free Index): 1.25e-05 +/- 1.64e-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/476339/cmap_HighResolution_647049601_647308801_4FGL_J2248.7-3235_daily_bin1573.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', energy_flux2='1.25e-05', dlogl='5.38e-01', photon_flux2='8.73e-08', job_status='DONE', time_completed='2021-09-28 20:58:01.697693', photon_index_error2='10.05', photon_index2='4.33', ts='0.83', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='1.64e-05', EG='0.80', time_epoch_completed='1632887881.7', return_code='0', job_id='476339', GAL2='1.07', EG2='0.74', return_code2='0', photon_flux_error2='7.61e-08', ts2='2.06', photon_index='2.76' WHERE bin_id='1573' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:58:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 476339: <4FGL_J2248.7-3235_daily_bin1573> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1573 342.193 -32.5926 647049601 647308801 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 :                                   581.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            738 sec.

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

