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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1520
RA = 342.193, Dec = -32.5926
tmin = 633312001, tmax = 633571201
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='476262', job_status='RUN', time_executed='2021-09-28 20:47:25.200697', time_epoch_executed='1632887245.2' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1520'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476262

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476262/ft1_4FGL_J2248.7-3235_daily_bin1520.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476262/ft2_4FGL_J2248.7-3235_daily_bin1520.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476262/ft1_4FGL_J2248.7-3235_daily_bin1520.fits outfile=/scratch/kocevski/476262/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1520.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=633312001.0 tmax=633571201.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.68
user 3.42
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/476262/ft2_4FGL_J2248.7-3235_daily_bin1520.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/476262/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1520.fits evtable="EVENTS" outfile="/scratch/kocevski/476262/ft1_filtered_4FGL_J2248.7-3235_daily_bin1520.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/476262/ft1_filtered_4FGL_J2248.7-3235_daily_bin1520.fits" evtable="EVENTS" scfile=/scratch/kocevski/476262/ft2_4FGL_J2248.7-3235_daily_bin1520.fits sctable="SC_DATA" outfile=/scratch/kocevski/476262/ltcube_633312001_633571201_4FGL_J2248.7-3235_daily_bin1520.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/476262/ft2_4FGL_J2248.7-3235_daily_bin1520.fits
.....................!
real 12.08
user 11.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476262/ft1_filtered_4FGL_J2248.7-3235_daily_bin1520.fits evtable="EVENTS" scfile=/scratch/kocevski/476262/ft2_4FGL_J2248.7-3235_daily_bin1520.fits sctable="SC_DATA" expcube=/scratch/kocevski/476262/ltcube_633312001_633571201_4FGL_J2248.7-3235_daily_bin1520.fits outfile=/scratch/kocevski/476262/expmap_633312001_633571201_4FGL_J2248.7-3235_daily_bin1520.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/476262/ltcube_633312001_633571201_4FGL_J2248.7-3235_daily_bin1520.fits
.....................!
real 190.52
user 185.18
sys 4.99

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/476262/ft1_filtered_4FGL_J2248.7-3235_daily_bin1520.fits scfile=/scratch/kocevski/476262/ft2_4FGL_J2248.7-3235_daily_bin1520.fits outfile=/scratch/kocevski/476262/cmap_633312001_633571201_4FGL_J2248.7-3235_daily_bin1520.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/476262/ft1_filtered_4FGL_J2248.7-3235_daily_bin1520.fits scfile=/scratch/kocevski/476262/ft2_4FGL_J2248.7-3235_daily_bin1520.fits outfile=/scratch/kocevski/476262/cmap_HighResolution_633312001_633571201_4FGL_J2248.7-3235_daily_bin1520.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/476262/ft1_filtered_4FGL_J2248.7-3235_daily_bin1520.fits evtable="EVENTS" scfile=/scratch/kocevski/476262/ft2_4FGL_J2248.7-3235_daily_bin1520.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/476262/Model_4FGL_J2248.7-3235_daily_bin1520.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/476262/ft1_filtered_4FGL_J2248.7-3235_daily_bin1520.fits.....................!
real 41.67
user 40.29
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .80607       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.309       1.0000         .10000E-03   10000.    
     4 'norm      '    13.107       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20803E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1372       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.181       1.0000         .10000E-03   10000.    
     9 'norm      '    .47356       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.180       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .33181E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .18175E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.349       1.0000         .10000E-03   10000.    
    16 'norm      '    1.9640       1.0000         .10000E-03   10000.    
    17 'Prefactor '    119.49       1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.264       1.0000         .10000E-03   10000.    
    19 'norm      '    2.4240       1.0000         .10000E-03   10000.    
    20 'norm      '    9.9645       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .25919E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.8313       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97769       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0471       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=   4848.002     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2920 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80593        .42709        .10402E-07   -.21621E-04
   2  Prefactor     .10000E-03    20.283        .17193E-06** at limit **
   3  Prefactor     13.314        10.837       -.10077E-06   -.60490E-04
   4  norm          13.103        30.467       -.85863E-06   -.45027E-04
   5  Prefactor     .10000E-03    12.636       -.13403E-08** at limit **
   6  Prefactor     .10000E-03    110.20       -.18266E-05** at limit **
   7  Prefactor     2.1368        28.215        .13581E-05    .24606E-04
   8  Prefactor     20.189        22.112       -.10784E-06   -.54421E-04
   9  norm          .47649        2.0801        .19917E-05    .72540E-03
  10  Prefactor     .10000E-03    103.14       -.13428E-05** at limit **
  11  Prefactor     15.188        16.703       -.12599E-07   -.41449E-04
  12  Prefactor     .10009E-03    7.4536        .24900E-05** at limit **
  13  norm          .10000E-03    4.2631        .16186E-06** at limit **
  14  Prefactor     .10000E-03    10.279       -.17684E-06** at limit **
  15  Prefactor     19.359        18.790       -.76253E-07   -.20768E-04
  16  norm          1.9647        1.1666        .44941E-07    .18317E-04
  17  Prefactor     119.43        79.161       -.65211E-06   -.14176E-03
  18  Prefactor     26.257        18.721       -.44598E-07   -.21553E-04
  19  norm          2.4220        5.2927        .52029E-06    .16201E-03
  20  norm          9.9673        9.1383        .47394E-07   -.12299E-04
  21  Prefactor     .10000E-03    44.065       -.82599E-06** at limit **
  22  Prefactor     .10000E-03    134.20        .65395E-06** at limit **
  23  norm          3.8302        5.4454        .27878E-06    .11011E-03
  24  Normalizat    .97783        .23384        .73197E-06   -.16616E-03
  25  Prefactor     1.0473        .22163       -.13108E-05   -.15354E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.805935
  Prefactor  = 0.0001
  Prefactor  = 13.314
  norm       = 13.1031
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.13678
  Prefactor  = 20.1886
  norm       = 0.476488
  Prefactor  = 0.000100001
  Prefactor  = 15.1881
  Prefactor  = 0.000100085
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.3593
  norm       = 1.96471
  Prefactor  = 119.43
  Prefactor  = 26.2565
  norm       = 2.42205
  norm       = 9.96732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.83016
  Normalizat = 0.977831
  Prefactor  = 1.04728
 **********
 **   18 **HESSE 
 **********

 FCN=   4848.002     FROM HESSE     STATUS=OK           435 CALLS     3355 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .80593        .42840        .32101E-04   -1.5528    
   2  Prefactor     .10000E-03    20.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.314        10.852        .10980E-03   -1.4978    
   4  norm          13.103        30.482        .11064E-03   -1.4984    
   5  Prefactor     .10000E-03    12.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    112.63        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.1368        27.736        .28197E-03   -1.5416    
   8  Prefactor     20.189        22.109        .89159E-04   -1.4809    
   9  norm          .47649        2.2154        .20118E-03   -1.5570    
  10  Prefactor     .10000E-03    104.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.188        16.730        .10280E-03   -1.4928    
  12  Prefactor     .10009E-03    18.885        .26724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    10.223        .26794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.359        18.856        .91053E-04   -1.4828    
  16  norm          1.9647        1.1818        .44814E-04   -1.5428    
  17  Prefactor     119.43        79.460        .18407E-03   -1.3518    
  18  Prefactor     26.257        18.648        .78168E-04   -1.4683    
  19  norm          2.4220        5.2612        .22169E-03   -1.5397    
  20  norm          9.9673        9.1395        .12694E-03   -1.5076    
  21  Prefactor     .10000E-03    44.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    135.36        .21450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.8302        5.4241        .17913E-03   -1.5317    
  24  Normalizat    .97783        .28269        .27154E-03   -.93777    
  25  Prefactor     1.0473        .26682        .25993E-03   -.91170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03884e-09
Minuit parameter uncertainties:
  1  0.428402
  2  2.23012e-05
  3  10.8536
  4  30.5182
  5  5.80479e-06
  6  0.000725829
  7  15.4054
  8  22.1176
  9  2.05476
  10  0.000690488
  11  16.7353
  12  0.00254014
  13  0.000134192
  14  2.97723e-05
  15  18.8619
  16  1.18178
  17  79.5309
  18  18.6521
  19  5.26218
  20  9.14075
  21  0.000211853
  22  0.000341349
  23  5.42479
  24  0.28312
  25  0.267158
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.519e+01  1.674e+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.047e+00  2.672e-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:  9.778e-01  2.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.10
Ra Dec: 342.193 -32.593
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 5.38e-08 +/- 5.93e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 1.36e-05

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

Saving results to:
/scratch/kocevski/476262/likelihoodResults_633312001_633571201_4FGL_J2248.7-3235_daily_bin1520.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) = 4847.91834538
delta logL = 0.083636075994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4847.90345892
delta logL = 0.0985225312825

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.571       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2085       1.0000          .0000       10.000    
     3 'Normalizat'    .95812       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0614       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=   4847.903     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      211 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.560        369.88        .28245E-02    .49403E-04
   2  Index         3.2104        6.3891        .21668        .49178E-04
   3  Normalizat    .95835        .77114E-01    .45640E-01    .11655E-04
   4  Prefactor     1.0613        .77895E-01    .58438E-01    .66906E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5602
  Index      = 3.21042
  Normalizat = 0.95835
  Prefactor  = 1.06126
 **********
 **   18 **HESSE 
 **********

 FCN=   4847.903     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.560        17.331        .11298E-03   -1.4999    
   2  Index         3.2104        1.1660        .96053E-02   -.36604    
   3  Normalizat    .95835        .26963        .27387E-03   -.94439    
   4  Prefactor     1.0613        .26160        .25841E-03   -.90714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91568e-12
Minuit parameter uncertainties:
  1  17.3379
  2  1.17842
  3  0.270014
  4  0.261912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476262': 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) = 4847.90345636
delta logL = 0.0985250903495

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.256e+01  1.734e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  3.210e+00  1.178e+00  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.061e+00  2.619e-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:  9.583e-01  2.700e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.32
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 3.21 +/- 1.18
Photon Flux (Free Index): 6.96e-08 +/- 7.21e-08
Energy Flux (Free Index): 1.27e-05 +/- 1.28e-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/476262/cmap_HighResolution_633312001_633571201_4FGL_J2248.7-3235_daily_bin1520.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', comment='SUCCESS', photon_flux='5.38e-08', energy_flux2='1.27e-05', photon_flux_error='5.93e-08', dlogl='9.85e-02', energy_flux='1.24e-05', photon_flux2='6.96e-08', job_status='DONE', time_completed='2021-09-28 20:57:51.638690', photon_index_error2='1.18', photon_index2='3.21', ts='1.10', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.78e-07', energy_flux_error2='1.28e-05', EG='0.98', time_epoch_completed='1632887871.64', return_code='0', job_id='476262', GAL2='1.06', EG2='0.96', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='7.21e-08', ts2='1.32', photon_index='2.76' WHERE bin_id='1520' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:57:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 476262: <4FGL_J2248.7-3235_daily_bin1520> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1520 342.193 -32.5926 633312001 633571201 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 :                                   613.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             272.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            734 sec.

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

