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


Performing analysis on: 4FGL_J2249.4-1300_daily_bin1051
RA = 342.356, Dec = -13.0006
tmin = 511747201, tmax = 512006401
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='489448', job_status='RUN', time_executed='2021-09-28 21:31:13.060045', time_epoch_executed='1632889873.06' WHERE source_name='4FGL J2249.4-1300' and cadence='daily' and bin_id='1051'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/489448

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/489448/ft1_4FGL_J2249.4-1300_daily_bin1051.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/489448/ft2_4FGL_J2249.4-1300_daily_bin1051.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/489448/ft1_4FGL_J2249.4-1300_daily_bin1051.fits outfile=/scratch/kocevski/489448/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin1051.fits ra=342.356 dec=-13.0006 rad=12.0 tmin=511747201.0 tmax=512006401.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.52
user 3.30
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/489448/ft2_4FGL_J2249.4-1300_daily_bin1051.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/489448/ft2_4FGL_J2249.4-1300_daily_bin1051.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/489448/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin1051.fits evtable="EVENTS" outfile="/scratch/kocevski/489448/ft1_filtered_4FGL_J2249.4-1300_daily_bin1051.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/489448/ft1_filtered_4FGL_J2249.4-1300_daily_bin1051.fits" evtable="EVENTS" scfile=/scratch/kocevski/489448/ft2_4FGL_J2249.4-1300_daily_bin1051.fits sctable="SC_DATA" outfile=/scratch/kocevski/489448/ltcube_511747201_512006401_4FGL_J2249.4-1300_daily_bin1051.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/489448/ft2_4FGL_J2249.4-1300_daily_bin1051.fits
.....................!
real 11.72
user 11.41
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/489448/ft1_filtered_4FGL_J2249.4-1300_daily_bin1051.fits evtable="EVENTS" scfile=/scratch/kocevski/489448/ft2_4FGL_J2249.4-1300_daily_bin1051.fits sctable="SC_DATA" expcube=/scratch/kocevski/489448/ltcube_511747201_512006401_4FGL_J2249.4-1300_daily_bin1051.fits outfile=/scratch/kocevski/489448/expmap_511747201_512006401_4FGL_J2249.4-1300_daily_bin1051.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/489448/ltcube_511747201_512006401_4FGL_J2249.4-1300_daily_bin1051.fits
.....................!
real 189.85
user 185.23
sys 4.31

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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J2249.4-1300 @ 342.356 -13.0006

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/489448/ft1_filtered_4FGL_J2249.4-1300_daily_bin1051.fits scfile=/scratch/kocevski/489448/ft2_4FGL_J2249.4-1300_daily_bin1051.fits outfile=/scratch/kocevski/489448/cmap_511747201_512006401_4FGL_J2249.4-1300_daily_bin1051.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.356 yref=-13.0006 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/489448/ft1_filtered_4FGL_J2249.4-1300_daily_bin1051.fits scfile=/scratch/kocevski/489448/ft2_4FGL_J2249.4-1300_daily_bin1051.fits outfile=/scratch/kocevski/489448/cmap_HighResolution_511747201_512006401_4FGL_J2249.4-1300_daily_bin1051.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.356 yref=-13.0006 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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/489448/ft1_filtered_4FGL_J2249.4-1300_daily_bin1051.fits evtable="EVENTS" scfile=/scratch/kocevski/489448/ft2_4FGL_J2249.4-1300_daily_bin1051.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/489448/Model_4FGL_J2249.4-1300_daily_bin1051.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/489448/ft1_filtered_4FGL_J2249.4-1300_daily_bin1051.fits.....................!
real 72.73
user 71.42
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/489448/ft1_filtered_4FGL_J2249.4-1300_daily_bin1051.fits', '/scratch/kocevski/489448/ft2_4FGL_J2249.4-1300_daily_bin1051.fits', expMap='/scratch/kocevski/489448/expmap_511747201_512006401_4FGL_J2249.4-1300_daily_bin1051.fits', expCube='/scratch/kocevski/489448/ltcube_511747201_512006401_4FGL_J2249.4-1300_daily_bin1051.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/489448/Model_4FGL_J2249.4-1300_daily_bin1051.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2249.4-1300'

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  5.757e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
265        Index:  2.408e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
266        Scale:  3.479e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/489448/ft1_filtered_4FGL_J2249.4-1300_daily_bin1051.fits
Spacecraft file(s): /scratch/kocevski/489448/ft2_4FGL_J2249.4-1300_daily_bin1051.fits
Exposure map: /scratch/kocevski/489448/expmap_511747201_512006401_4FGL_J2249.4-1300_daily_bin1051.fits
Exposure cube: /scratch/kocevski/489448/ltcube_511747201_512006401_4FGL_J2249.4-1300_daily_bin1051.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/489448/Model_4FGL_J2249.4-1300_daily_bin1051.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) = 8508.38507445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9944       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1688       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10959E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.3113       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .27967E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.3990       1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.775       1.0000         .10000E-03   10000.    
    11 'norm      '    10.000       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3203       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.0278       1.0000         .10000E-03   10000.    
    15 'norm      '    13.914       1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.980       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.308       1.0000         .10000E-03   10000.    
    19 'norm      '    6.6103       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .96951       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96922       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8508.348     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2559 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9961        10.824        .34945E-06   -.57987E-05
   2  Prefactor     .10000E-03    14.951       -.15210E-06** at limit **
   3  Prefactor     7.1595        82.260       -.13779E-05   -.10336E-04
   4  Prefactor     .10000E-03    2.0912       -.49382E-07** at limit **
   5  Prefactor     .10000E-03    28.944        .38673E-06** at limit **
   6  norm          8.3119        3.7092        .81091E-06    .56416E-03
   7  Prefactor     .10001E-03    291.65       -.46722E-05** at limit **
   8  Prefactor     .10000E-03    6.5497        .41634E-06** at limit **
   9  norm          2.3990        .86563       -.29998E-07   -.12250E-03
  10  Prefactor     32.824        41.087        .11721E-04   -.52208E-04
  11  norm          9.9964        3.6847       -.19369E-05    .53692E-03
  12  Prefactor     .10000E-03    12.836        .79990E-06** at limit **
  13  Prefactor     5.3205        6.8529        .20988E-05    .23897E-03
  14  Prefactor     9.0278        10.959        .19394E-06   -.35056E-05
  15  norm          13.914        11.865        .11086E-06   -.13735E-04
  16  Prefactor     30.831        75.859       -.28703E-05   -.11166E-03
  17  Prefactor     .10000E-03    7.7656        .39087E-07** at limit **
  18  Prefactor     40.324        17.146        .47861E-06    .37580E-05
  19  norm          6.6108        5.0272       -.12145E-06   -.28651E-04
  20  Prefactor     .10000E-03    30.232        .16132E-06** at limit **
  21  Prefactor     .10000E-03    19.300        .14505E-06** at limit **
  22  Normalizat    .96919        .17649       -.74815E-06   -.97251E-04
  23  Prefactor     .96947        .13485       -.90356E-06   -.17998E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.99613
  Prefactor  = 0.0001
  Prefactor  = 7.15949
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.31193
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 2.39896
  Prefactor  = 32.8239
  norm       = 9.99642
  Prefactor  = 0.0001
  Prefactor  = 5.32048
  Prefactor  = 9.02779
  norm       = 13.9139
  Prefactor  = 30.8313
  Prefactor  = 0.0001
  Prefactor  = 40.3238
  norm       = 6.6108
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.969194
  Prefactor  = 0.969467
 **********
 **   18 **HESSE 
 **********

 FCN=   8508.348     FROM HESSE     STATUS=OK           374 CALLS     2933 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9961        10.841        .15169E-03   -1.5179    
   2  Prefactor     .10000E-03    15.374        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.1595        82.402        .14982E-03   -1.5173    
   4  Prefactor     .10000E-03    5.0461        .25617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.3119        3.7255        .56212E-03   -1.5131    
   7  Prefactor     .10001E-03    298.11        .21419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.6482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.3990        .86363        .49312E-04   -1.5398    
  10  Prefactor     32.824        41.459        .69993E-04   -1.4561    
  11  norm          9.9964        3.7131        .46988E-04   -1.5076    
  12  Prefactor     .10000E-03    12.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.3205        6.9047        .87121E-03   -1.5247    
  14  Prefactor     9.0278        10.954        .13339E-03   -1.5107    
  15  norm          13.914        11.866        .10738E-03   -1.4962    
  16  Prefactor     30.831        77.468        .71987E-04   -1.4597    
  17  Prefactor     .10000E-03    7.7802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     40.324        17.305        .63136E-04   -1.4437    
  19  norm          6.6108        5.0262        .15608E-03   -1.5194    
  20  Prefactor     .10000E-03    30.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.811        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .96919        .21029        .29164E-03   -.94070    
  23  Prefactor     .96947        .16085        .23114E-03   -.93754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38358e-10
Minuit parameter uncertainties:
  1  10.8445
  2  2.77049e-05
  3  48.6623
  4  1.84362e-05
  5  6.78195e-05
  6  3.72562
  7  0.00356163
  8  2.41498e-05
  9  0.863635
  10  41.4959
  11  3.71316
  12  3.3169e-05
  13  6.90569
  14  10.956
  15  11.8678
  16  77.7227
  17  2.25778e-06
  18  17.3073
  19  5.02656
  20  4.71997e-05
  21  3.26824e-05
  22  0.210472
  23  0.160932
Done.

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

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  3.282e+01  4.150e+01  1.000e-04  1.000e+04 ( 1.000e-14)
265        Index:  2.408e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
266        Scale:  3.479e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  9.695e-01  1.609e-01  0.000e+00  1.000e+01 ( 1.000e+00)
492        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
493        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
490   Normalization:  9.692e-01  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.09
Ra Dec: 342.356 -13.001
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.20e-07 +/- 1.52e-07
Energy Flux (Fixed Index): 3.90e-05 +/- 4.93e-05

TS (Fixed Index): 3.09
Ra Dec: 342.356 -13.001
Photon Flux Upper Limit: 2.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.87e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/489448/likelihoodResults_511747201_512006401_4FGL_J2249.4-1300_daily_bin1051.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) = 8508.23710864
delta logL = 0.110509117492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8508.23533544
delta logL = 0.112282309681

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.229       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1941       1.0000          .0000       10.000    
     3 'Normalizat'    .98347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96220       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4940E+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=   8508.235     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      303 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.232        61.278        .54975E-04    .11903E-03
   2  Index         2.1941        .49180        .41467E-02    .65979E-04
   3  Normalizat    .98349        .20315        .28970E-03    .16819E-03
   4  Prefactor     .96216        .15880        .23195E-03    .25367E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.2318
  Index      = 2.19407
  Normalizat = 0.983487
  Prefactor  = 0.96216
 **********
 **   18 **HESSE 
 **********

 FCN=   8508.235     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.232        51.832        .10995E-04   -1.4247    
   2  Index         2.1941        .41556        .16587E-03   -.59582    
   3  Normalizat    .98349        .20246        .11588E-04   -.93586    
   4  Prefactor     .96216        .15866        .46390E-04   -.94002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.79472e-11
Minuit parameter uncertainties:
  1  51.8758
  2  0.416258
  3  0.202616
  4  0.158737
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/489448': 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) = 8508.23533536
delta logL = 0.112282389437

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  5.323e+01  5.188e+01  1.000e-04  1.000e+04 ( 1.000e-14)
265        Index:  2.194e+00  4.163e-01  0.000e+00  1.000e+01 (-1.000e+00)
266        Scale:  3.479e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  9.622e-01  1.587e-01  0.000e+00  1.000e+01 ( 1.000e+00)
492        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
493        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
490   Normalization:  9.835e-01  2.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.96
Ra Dec: 342.356 -13.001
Photon Index (Free Index): 2.19 +/- 0.42
Photon Flux (Free Index): 1.07e-07 +/- 7.08e-08
Energy Flux (Free Index): 4.88e-05 +/- 3.51e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/489448/cmap_HighResolution_511747201_512006401_4FGL_J2249.4-1300_daily_bin1051.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-02', comment='SUCCESS', photon_flux='1.20e-07', energy_flux2='4.88e-05', photon_flux_error='1.52e-07', dlogl='1.12e-01', energy_flux='3.90e-05', photon_flux2='1.07e-07', job_status='DONE', time_completed='2021-09-28 21:43:45.963625', photon_index_error2='0.42', photon_index2='2.19', ts='3.09', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='2.41e-07', energy_flux_error2='3.51e-05', EG='0.97', time_epoch_completed='1632890625.96', return_code='0', job_id='489448', GAL2='0.96', EG2='0.98', return_code2='0', energy_flux_error='4.93e-05', photon_flux_error2='7.08e-08', ts2='3.96', photon_index='2.41' WHERE bin_id='1051' AND source_name='4FGL J2249.4-1300' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:43:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 489448: <4FGL_J2249.4-1300_daily_bin1051> in cluster <slac> Done

Job <4FGL_J2249.4-1300_daily_bin1051> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 21:30:48 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:30:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 21:30:50 2021
Terminated at Tue Sep 28 21:43:46 2021
Results reported at Tue Sep 28 21:43:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2249.4-1300_daily_bin1051 342.356 -13.0006 511747201 512006401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2249.4-1300 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   745.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             332.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            778 sec.

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

