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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1410
RA = 342.193, Dec = -32.5926
tmin = 604800001, tmax = 605059201
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='476099', job_status='RUN', time_executed='2021-09-28 20:48:06.412590', time_epoch_executed='1632887286.41' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476099

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476099/ft1_4FGL_J2248.7-3235_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476099/ft2_4FGL_J2248.7-3235_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476099/ft1_4FGL_J2248.7-3235_daily_bin1410.fits outfile=/scratch/kocevski/476099/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1410.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=604800001.0 tmax=605059201.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 5.06
user 4.82
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/476099/ft2_4FGL_J2248.7-3235_daily_bin1410.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/476099/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1410.fits evtable="EVENTS" outfile="/scratch/kocevski/476099/ft1_filtered_4FGL_J2248.7-3235_daily_bin1410.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/476099/ft1_filtered_4FGL_J2248.7-3235_daily_bin1410.fits" evtable="EVENTS" scfile=/scratch/kocevski/476099/ft2_4FGL_J2248.7-3235_daily_bin1410.fits sctable="SC_DATA" outfile=/scratch/kocevski/476099/ltcube_604800001_605059201_4FGL_J2248.7-3235_daily_bin1410.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/476099/ft2_4FGL_J2248.7-3235_daily_bin1410.fits
.....................!
real 11.48
user 11.13
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476099/ft1_filtered_4FGL_J2248.7-3235_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/476099/ft2_4FGL_J2248.7-3235_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/476099/ltcube_604800001_605059201_4FGL_J2248.7-3235_daily_bin1410.fits outfile=/scratch/kocevski/476099/expmap_604800001_605059201_4FGL_J2248.7-3235_daily_bin1410.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/476099/ltcube_604800001_605059201_4FGL_J2248.7-3235_daily_bin1410.fits
.....................!
real 190.52
user 186.00
sys 4.21

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/476099/ft1_filtered_4FGL_J2248.7-3235_daily_bin1410.fits scfile=/scratch/kocevski/476099/ft2_4FGL_J2248.7-3235_daily_bin1410.fits outfile=/scratch/kocevski/476099/cmap_604800001_605059201_4FGL_J2248.7-3235_daily_bin1410.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/476099/ft1_filtered_4FGL_J2248.7-3235_daily_bin1410.fits scfile=/scratch/kocevski/476099/ft2_4FGL_J2248.7-3235_daily_bin1410.fits outfile=/scratch/kocevski/476099/cmap_HighResolution_604800001_605059201_4FGL_J2248.7-3235_daily_bin1410.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.53
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/476099/ft1_filtered_4FGL_J2248.7-3235_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/476099/ft2_4FGL_J2248.7-3235_daily_bin1410.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/476099/Model_4FGL_J2248.7-3235_daily_bin1410.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/476099/ft1_filtered_4FGL_J2248.7-3235_daily_bin1410.fits.....................!
real 35.50
user 34.29
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13933       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    37.692       1.0000         .10000E-03   10000.    
     5 'Prefactor '    59.437       1.0000         .10000E-03   10000.    
     6 'Prefactor '    45.571       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .96366E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2485       1.0000         .10000E-03   10000.    
     9 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.3395       1.0000         .10000E-03   10000.    
    16 'norm      '    .48134       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.483       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    13.843       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11043E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.138       1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1803       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1710       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=   3920.697     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2888 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13938        .27441       -.11413E-07    .18458E-03
   2  Prefactor     .10000E-03    42.000       -.97626E-06** at limit **
   3  Prefactor     .10000E-03    3.4653       -.24673E-06** at limit **
   4  norm          37.667        28.998        .10978E-06    .43805E-04
   5  Prefactor     59.408        57.928        .16971E-06   -.18453E-04
   6  Prefactor     45.576        35.046        .36755E-06   -.22697E-05
   7  Prefactor     .10015E-03    18.866        .21068E-06** at limit **
   8  Prefactor     2.2628        135.31       -.16651E-07   -.43976E-05
   9  norm          .10000E-03    2.0177        .14757E-06** at limit **
  10  Prefactor     .10000E-03    29.345       -.22734E-06** at limit **
  11  Prefactor     .10000E-03    7.3248        .37948E-07** at limit **
  12  Prefactor     .10000E-03    5.1817       -.37910E-06** at limit **
  13  norm          .10000E-03    2.8478       -.16266E-06** at limit **
  14  Prefactor     .10000E-03    8.4377       -.18036E-06** at limit **
  15  Prefactor     9.3382        16.098       -.27881E-06    .25310E-04
  16  norm          .48129        .83894        .12746E-05    .10285E-02
  17  Prefactor     12.587        118.43        .18170E-05    .20853E-04
  18  Prefactor     .10000E-03    27.506       -.94017E-06** at limit **
  19  norm          .10000E-03    2.3773       -.44632E-07** at limit **
  20  norm          13.838        14.892        .44781E-06    .38051E-04
  21  Prefactor     .10000E-03    14.287       -.27570E-07** at limit **
  22  Prefactor     15.293        102.37        .65127E-06    .32896E-04
  23  norm          .10000E-03    1.6668       -.27648E-07** at limit **
  24  Normalizat    1.1801        .29628       -.53547E-05    .20923E-03
  25  Prefactor     1.1712        .27649        .53517E-05   -.58185E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.139375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 37.6666
  Prefactor  = 59.4077
  Prefactor  = 45.5756
  Prefactor  = 0.000100152
  Prefactor  = 2.26278
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.33822
  norm       = 0.481291
  Prefactor  = 12.5871
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.8376
  Prefactor  = 0.0001
  Prefactor  = 15.2926
  norm       = 0.0001
  Normalizat = 1.18007
  Prefactor  = 1.17122
 **********
 **   18 **HESSE 
 **********

 FCN=   3920.697     FROM HESSE     STATUS=OK           433 CALLS     3321 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13938        .24087        .44706E-03   -1.5633    
   2  Prefactor     .10000E-03    42.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.4762        .11383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          37.667        28.995        .32641E-03   -1.4480    
   5  Prefactor     59.408        57.674        .26020E-03   -1.4165    
   6  Prefactor     45.576        34.963        .59393E-04   -1.4357    
   7  Prefactor     .10015E-03    23.912        .80023E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.2628        133.73        .27404E-03   -1.5407    
   9  norm          .10000E-03    2.0512        .86722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    29.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.3408        .16550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.2092        .13919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.8584        .10316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.4441        .17766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.3382        16.302        .13114E-03   -1.5097    
  16  norm          .48129        .87553        .22389E-03   -1.5569    
  17  Prefactor     12.587        117.88        .11337E-03   -1.4998    
  18  Prefactor     .10000E-03    27.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.3806        .94291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.838        14.877        .10765E-03   -1.4964    
  21  Prefactor     .10000E-03    14.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.293        101.63        .10294E-03   -1.4926    
  23  norm          .10000E-03    1.6683        .78949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1801        .34441        .26584E-03   -.87221    
  25  Prefactor     1.1712        .32026        .26216E-03   -.87222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07892e-09
Minuit parameter uncertainties:
  1  0.240869
  2  9.56017e-05
  3  2.60976e-06
  4  29.0061
  5  57.7282
  6  34.9788
  7  0.00380825
  8  34.8718
  9  5.02192e-06
  10  9.30799e-05
  11  1.09781e-06
  12  5.43949e-06
  13  1.61964e-05
  14  3.01003e-05
  15  16.3094
  16  0.875558
  17  77.2395
  18  0.00021627
  19  1.35887e-06
  20  14.8811
  21  7.80047e-07
  22  79.0404
  23  2.29147e-07
  24  0.34507
  25  0.320795
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  1.098e-06  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.171e+00  3.208e-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.180e+00  3.451e-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: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/476099/likelihoodResults_604800001_605059201_4FGL_J2248.7-3235_daily_bin1410.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) = 3920.69770422
delta logL = -0.000645985219762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3920.69705823
delta logL = 9.36233846005e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7540       1.0000          .0000       10.000    
     3 'Normalizat'    1.1801       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1712       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3920.697     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      241 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10082E-03    309.96        .16584E-02** at limit **
   2  Index         2.6719        6.7880        .50000        .64270E-05
   3  Normalizat    1.1801        .42175E-01    .26584E-03    .51317E-06
   4  Prefactor     1.1712        .41636E-01    .26216E-03    .14527E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100819
  Index      = 2.67189
  Normalizat = 1.18006
  Prefactor  = 1.17122
 **********
 **   18 **HESSE 
 **********

 FCN=   3920.697     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10082E-03    1070.1        .33169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6719        7.7744        .50000       -.48434    
   3  Normalizat    1.1801        .97362E-01    .10634E-04   -.87221    
   4  Prefactor     1.1712        .96117E-01    .10486E-04   -.87222    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.50712e-08
Minuit parameter uncertainties:
  1  0.0603192
  2  2663.81
  3  0.0973769
  4  0.0961313
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476099': 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) = 3920.69705814
delta logL = 1.00093075162e-07

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.008e-04  6.032e-02  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.672e+00  2.664e+03  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.171e+00  9.613e-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.180e+00  9.738e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/476099/cmap_HighResolution_604800001_605059201_4FGL_J2248.7-3235_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.67e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-28 20:57:28.827412', job_id='476099', GAL2='1.17', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1632887848.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.00e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1410' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:57:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 476099: <4FGL_J2248.7-3235_daily_bin1410> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1410 342.193 -32.5926 604800001 605059201 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 :                                   552.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             249.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            723 sec.

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

