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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin884
RA = 342.193, Dec = -32.5926
tmin = 468460801, tmax = 468720001
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='474252', job_status='RUN', time_executed='2021-09-28 20:40:43.290253', time_epoch_executed='1632886843.29' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='884'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474252

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474252/ft1_4FGL_J2248.7-3235_daily_bin884.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474252/ft2_4FGL_J2248.7-3235_daily_bin884.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474252/ft1_4FGL_J2248.7-3235_daily_bin884.fits outfile=/scratch/kocevski/474252/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin884.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=468460801.0 tmax=468720001.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.80
user 3.58
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474252/ft1_filtered_4FGL_J2248.7-3235_daily_bin884.fits" evtable="EVENTS" scfile=/scratch/kocevski/474252/ft2_4FGL_J2248.7-3235_daily_bin884.fits sctable="SC_DATA" outfile=/scratch/kocevski/474252/ltcube_468460801_468720001_4FGL_J2248.7-3235_daily_bin884.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/474252/ft2_4FGL_J2248.7-3235_daily_bin884.fits
.....................!
real 11.94
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474252/ft1_filtered_4FGL_J2248.7-3235_daily_bin884.fits evtable="EVENTS" scfile=/scratch/kocevski/474252/ft2_4FGL_J2248.7-3235_daily_bin884.fits sctable="SC_DATA" expcube=/scratch/kocevski/474252/ltcube_468460801_468720001_4FGL_J2248.7-3235_daily_bin884.fits outfile=/scratch/kocevski/474252/expmap_468460801_468720001_4FGL_J2248.7-3235_daily_bin884.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/474252/ltcube_468460801_468720001_4FGL_J2248.7-3235_daily_bin884.fits
.....................!
real 189.28
user 184.79
sys 4.14

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/474252/ft1_filtered_4FGL_J2248.7-3235_daily_bin884.fits scfile=/scratch/kocevski/474252/ft2_4FGL_J2248.7-3235_daily_bin884.fits outfile=/scratch/kocevski/474252/cmap_468460801_468720001_4FGL_J2248.7-3235_daily_bin884.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474252/ft1_filtered_4FGL_J2248.7-3235_daily_bin884.fits scfile=/scratch/kocevski/474252/ft2_4FGL_J2248.7-3235_daily_bin884.fits outfile=/scratch/kocevski/474252/cmap_HighResolution_468460801_468720001_4FGL_J2248.7-3235_daily_bin884.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=342.193 yref=-32.5926 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/474252/ft1_filtered_4FGL_J2248.7-3235_daily_bin884.fits evtable="EVENTS" scfile=/scratch/kocevski/474252/ft2_4FGL_J2248.7-3235_daily_bin884.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/474252/Model_4FGL_J2248.7-3235_daily_bin884.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/474252/ft1_filtered_4FGL_J2248.7-3235_daily_bin884.fits.....................!
real 39.75
user 38.40
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3864       1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.172       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    35.665       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.512       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    109.76       1.0000         .10000E-03   10000.    
    11 'Prefactor '    43.963       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    65.172       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    10.560       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4223       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .60591       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=   4291.660     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2954 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3864        .66511       -.75644E-08    .12113E-03
   2  Prefactor     30.164        31.672       -.59518E-05    .22170E-04
   3  Prefactor     .10000E-03    10.427        .33941E-05** at limit **
   4  norm          35.664        24.407       -.35529E-06    .10861E-03
   5  Prefactor     .10000E-03    28.307       -.27064E-04** at limit **
   6  Prefactor     .10000E-03    39.417        .62819E-05** at limit **
   7  Prefactor     11.511        15.653       -.20393E-05    .11791E-03
   8  Prefactor     .10000E-03    13.961       -.42810E-05** at limit **
   9  norm          .10012E-03    2.3197       -.18101E-05** at limit **
  10  Prefactor     109.77        84.474        .12613E-04    .49387E-03
  11  Prefactor     43.957        23.466       -.17343E-05    .64775E-04
  12  Prefactor     .10000E-03    8.6528       -.16300E-05** at limit **
  13  norm          .10000E-03    2.4611        .60976E-07** at limit **
  14  Prefactor     .10000E-03    7.9957        .52096E-06** at limit **
  15  Prefactor     .10000E-03    13.561       -.53642E-05** at limit **
  16  norm          .10000E-03    .25323       -.11526E-06** at limit **
  17  Prefactor     .10000E-03    48.923        .34347E-04** at limit **
  18  Prefactor     .10000E-03    17.714        .11498E-04** at limit **
  19  norm          .10000E-03    3.0141        .35989E-06** at limit **
  20  norm          .10000E-03    2.9735        .32925E-07** at limit **
  21  Prefactor     65.146        69.264       -.27385E-04    .11413E-04
  22  Prefactor     .10000E-03    78.359       -.31495E-04** at limit **
  23  norm          10.561        7.1621        .33755E-05   -.73371E-04
  24  Normalizat    1.4228        .24040        .23282E-05    .12614E-03
  25  Prefactor     .60550        .21795       -.15612E-05    .20847E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.38642
  Prefactor  = 30.1644
  Prefactor  = 0.0001
  norm       = 35.6639
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5107
  Prefactor  = 0.0001
  norm       = 0.000100119
  Prefactor  = 109.774
  Prefactor  = 43.9571
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 65.1459
  Prefactor  = 0.0001
  norm       = 10.5608
  Normalizat = 1.42284
  Prefactor  = 0.605497
 **********
 **   18 **HESSE 
 **********

 FCN=   4291.660     FROM HESSE     STATUS=OK           417 CALLS     3371 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3864        .66601        .27308E-04   -1.5399    
   2  Prefactor     30.164        31.667        .72942E-04   -1.4609    
   3  Prefactor     .10000E-03    10.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          35.664        24.399        .67106E-04   -1.4513    
   5  Prefactor     .10000E-03    28.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    39.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.511        15.632        .11807E-03   -1.5029    
   8  Prefactor     .10000E-03    13.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10012E-03    19.813        .17180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     109.77        76.931        .38392E-04   -1.3609    
  11  Prefactor     43.957        23.739        .60464E-04   -1.4381    
  12  Prefactor     .10000E-03    8.7318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.4912        .10030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.0182        .18088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.879        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .28931        .64006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    48.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.131        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.0223        .11103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.9759        .11033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     65.146        69.203        .49712E-04   -1.4092    
  22  Prefactor     .10000E-03    78.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          10.561        7.1605        .12256E-03   -1.5058    
  24  Normalizat    1.4228        .29225        .23341E-03   -.79970    
  25  Prefactor     .60550        .26135        .31965E-03   -1.0736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.11716e-09
Minuit parameter uncertainties:
  1  0.666013
  2  31.6845
  3  2.22058e-05
  4  24.4063
  5  7.31891e-06
  6  2.53283e-05
  7  15.6379
  8  7.47714e-07
  9  0.003066
  10  77.0011
  11  23.7445
  12  1.99355e-05
  13  9.26637e-06
  14  2.47441e-05
  15  0.000130721
  16  5.65324e-06
  17  7.33815e-06
  18  0.000254125
  19  5.21552e-05
  20  2.73649e-06
  21  69.2889
  22  4.94927e-05
  23  7.1611
  24  0.292599
  25  0.261879
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  4.396e+01  2.374e+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:  6.055e-01  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:  1.423e+00  2.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.25
Ra Dec: 342.193 -32.593
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 1.56e-07 +/- 8.41e-08
Energy Flux (Fixed Index): 3.58e-05 +/- 1.94e-05

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) = 4291.49865891
delta logL = 0.161141043933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4291.48073657
delta logL = 0.179063389214

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.793       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2724       1.0000          .0000       10.000    
     3 'Normalizat'    1.3642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65227       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=   4291.481     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      303 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.785        39.397        .69974E-04    .59139E-04
   2  Index         3.2721        1.2358        .57619E-02    .35580E-04
   3  Normalizat    1.3652        .30235        .23731E-03    .11044E-03
   4  Prefactor     .65146        .27612        .30936E-03   -.32927E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.7847
  Index      = 3.27208
  Normalizat = 1.36519
  Prefactor  = 0.65146
 **********
 **   18 **HESSE 
 **********

 FCN=   4291.481     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.785        33.395        .27989E-05   -1.4562    
   2  Index         3.2721        1.0494        .23048E-03   -.35286    
   3  Normalizat    1.3652        .30012        .47462E-04   -.81641    
   4  Prefactor     .65146        .27304        .12374E-04   -1.0546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50826e-10
Minuit parameter uncertainties:
  1  33.4144
  2  1.05833
  3  0.300507
  4  0.2736
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474252': 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) = 4291.48073134
delta logL = 0.179068619354

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  3.278e+01  3.341e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  3.272e+00  1.058e+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:  6.515e-01  2.736e-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.365e+00  3.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.69
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 3.27 +/- 1.06
Photon Flux (Free Index): 1.94e-07 +/- 1.08e-07
Energy Flux (Free Index): 3.45e-05 +/- 1.81e-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/474252/cmap_HighResolution_468460801_468720001_4FGL_J2248.7-3235_daily_bin884.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.56e-07', energy_flux2='3.45e-05', photon_flux_error='8.41e-08', dlogl='1.79e-01', energy_flux='3.58e-05', photon_flux2='1.94e-07', job_status='DONE', time_completed='2021-09-28 20:49:40.071623', photon_index_error2='1.06', photon_index2='3.27', ts='5.25', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', energy_flux_error2='1.81e-05', EG='1.42', time_epoch_completed='1632887380.07', return_code='0', job_id='474252', GAL2='0.65', EG2='1.37', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='1.08e-07', ts2='5.69', photon_index='2.76' WHERE bin_id='884' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:49:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 474252: <4FGL_J2248.7-3235_daily_bin884> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin884> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 20:40:29 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:40:31 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:40:31 2021
Terminated at Tue Sep 28 20:49:40 2021
Results reported at Tue Sep 28 20:49:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin884 342.193 -32.5926 468460801 468720001 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 :                                   535.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   549 sec.
    Turnaround time :                            551 sec.

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

