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


Performing analysis on: 4FGL_J2249.4-1300_daily_bin1115
RA = 342.356, Dec = -13.0006
tmin = 528336001, tmax = 528595201
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='489548', job_status='RUN', time_executed='2021-09-28 21:32:23.389315', time_epoch_executed='1632889943.39' WHERE source_name='4FGL J2249.4-1300' and cadence='daily' and bin_id='1115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/489548

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/489548/ft1_4FGL_J2249.4-1300_daily_bin1115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/489548/ft2_4FGL_J2249.4-1300_daily_bin1115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/489548/ft1_4FGL_J2249.4-1300_daily_bin1115.fits outfile=/scratch/kocevski/489548/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin1115.fits ra=342.356 dec=-13.0006 rad=12.0 tmin=528336001.0 tmax=528595201.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.46
user 3.24
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/489548/ft2_4FGL_J2249.4-1300_daily_bin1115.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/489548/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin1115.fits evtable="EVENTS" outfile="/scratch/kocevski/489548/ft1_filtered_4FGL_J2249.4-1300_daily_bin1115.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/489548/ft1_filtered_4FGL_J2249.4-1300_daily_bin1115.fits" evtable="EVENTS" scfile=/scratch/kocevski/489548/ft2_4FGL_J2249.4-1300_daily_bin1115.fits sctable="SC_DATA" outfile=/scratch/kocevski/489548/ltcube_528336001_528595201_4FGL_J2249.4-1300_daily_bin1115.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/489548/ft2_4FGL_J2249.4-1300_daily_bin1115.fits
.....................!
real 11.72
user 11.37
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/489548/ft1_filtered_4FGL_J2249.4-1300_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/489548/ft2_4FGL_J2249.4-1300_daily_bin1115.fits sctable="SC_DATA" expcube=/scratch/kocevski/489548/ltcube_528336001_528595201_4FGL_J2249.4-1300_daily_bin1115.fits outfile=/scratch/kocevski/489548/expmap_528336001_528595201_4FGL_J2249.4-1300_daily_bin1115.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/489548/ltcube_528336001_528595201_4FGL_J2249.4-1300_daily_bin1115.fits
.....................!
real 191.34
user 185.91
sys 5.06

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/489548/ft1_filtered_4FGL_J2249.4-1300_daily_bin1115.fits scfile=/scratch/kocevski/489548/ft2_4FGL_J2249.4-1300_daily_bin1115.fits outfile=/scratch/kocevski/489548/cmap_528336001_528595201_4FGL_J2249.4-1300_daily_bin1115.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.50
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/489548/ft1_filtered_4FGL_J2249.4-1300_daily_bin1115.fits scfile=/scratch/kocevski/489548/ft2_4FGL_J2249.4-1300_daily_bin1115.fits outfile=/scratch/kocevski/489548/cmap_HighResolution_528336001_528595201_4FGL_J2249.4-1300_daily_bin1115.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/489548/ft1_filtered_4FGL_J2249.4-1300_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/489548/ft2_4FGL_J2249.4-1300_daily_bin1115.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/489548/Model_4FGL_J2249.4-1300_daily_bin1115.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/489548/ft1_filtered_4FGL_J2249.4-1300_daily_bin1115.fits....................!
real 52.53
user 51.11
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/489548/ft1_filtered_4FGL_J2249.4-1300_daily_bin1115.fits', '/scratch/kocevski/489548/ft2_4FGL_J2249.4-1300_daily_bin1115.fits', expMap='/scratch/kocevski/489548/expmap_528336001_528595201_4FGL_J2249.4-1300_daily_bin1115.fits', expCube='/scratch/kocevski/489548/ltcube_528336001_528595201_4FGL_J2249.4-1300_daily_bin1115.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/489548/Model_4FGL_J2249.4-1300_daily_bin1115.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/489548/ft1_filtered_4FGL_J2249.4-1300_daily_bin1115.fits
Spacecraft file(s): /scratch/kocevski/489548/ft2_4FGL_J2249.4-1300_daily_bin1115.fits
Exposure map: /scratch/kocevski/489548/expmap_528336001_528595201_4FGL_J2249.4-1300_daily_bin1115.fits
Exposure cube: /scratch/kocevski/489548/ltcube_528336001_528595201_4FGL_J2249.4-1300_daily_bin1115.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/489548/Model_4FGL_J2249.4-1300_daily_bin1115.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) = 5333.69322749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.765       1.0000         .10000E-03   10000.    
     3 'Prefactor '    203.58       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3560       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    226.21       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.692       1.0000         .10000E-03   10000.    
    11 'norm      '    15.817       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.681       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15154E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0795       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.2946       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5498       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2368       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .68014       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=   5333.688     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2537 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5096        .98031E-07** at limit **
   2  Prefactor     14.765        14.902        .86791E-07   -.10658E-04
   3  Prefactor     203.58        129.57        .33532E-06   -.21893E-04
   4  Prefactor     4.3560        4.9831        .30535E-06    .23951E-04
   5  Prefactor     .10000E-03    16.449       -.10135E-07** at limit **
   6  norm          .10000E-03    4.0776        .15843E-06** at limit **
   7  Prefactor     226.20        128.51       -.68887E-06   -.33836E-04
   8  Prefactor     .10000E-03    7.9465        .71597E-06** at limit **
   9  norm          .10000E-03    .39178        .69492E-06** at limit **
  10  Prefactor     16.847        75.218        .15955E-04    .15031E-04
  11  norm          15.805        5.5747       -.24367E-05   -.25460E-03
  12  Prefactor     13.573        133.83        .25238E-04   -.41116E-04
  13  Prefactor     .10000E-03    37.174       -.71706E-05** at limit **
  14  Prefactor     4.0823        9.4054        .60176E-05    .13004E-03
  15  norm          .10000E-03    8.6871       -.11968E-05** at limit **
  16  Prefactor     .10000E-03    33.894       -.15647E-05** at limit **
  17  Prefactor     .10000E-03    9.8961        .66731E-06** at limit **
  18  Prefactor     .10000E-03    2.8636       -.10617E-06** at limit **
  19  norm          1.2945        4.3646        .11384E-05    .40253E-04
  20  Prefactor     .10000E-03    61.116        .49846E-07** at limit **
  21  Prefactor     2.5539        40.809        .19591E-05   -.21564E-05
  22  Normalizat    1.2362        .23081       -.47972E-05    .73242E-04
  23  Prefactor     .68054        .16243        .28226E-05   -.24581E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.7652
  Prefactor  = 203.577
  Prefactor  = 4.35602
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 226.197
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.8472
  norm       = 15.8054
  Prefactor  = 13.5726
  Prefactor  = 0.0001
  Prefactor  = 4.0823
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.29451
  Prefactor  = 0.0001
  Prefactor  = 2.55386
  Normalizat = 1.2362
  Prefactor  = 0.680543
 **********
 **   18 **HESSE 
 **********

 FCN=   5333.688     FROM HESSE     STATUS=OK           366 CALLS     2903 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5203        .16741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.765        14.885        .10424E-03   -1.4939    
   3  Prefactor     203.58        129.43        .28324E-04   -1.2845    
   4  Prefactor     4.3560        4.9648        .16113E-03   -1.5291    
   5  Prefactor     .10000E-03    16.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.1961        .28714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     226.20        128.33        .13451E-03   -1.2689    
   8  Prefactor     .10000E-03    7.9887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .40827        .89112E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.847        76.460        .98031E-04   -1.4887    
  11  norm          15.805        5.6582        .44700E-04   -1.4913    
  12  Prefactor     13.573        132.28        .10829E-03   -1.4971    
  13  Prefactor     .10000E-03    39.049        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.0823        9.4661        .99806E-03   -1.5304    
  15  norm          .10000E-03    8.7211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    33.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.9010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.8662        .12068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.2945        4.3344        .27116E-03   -1.5480    
  20  Prefactor     .10000E-03    61.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.5539        40.892        .25571E-03   -1.5388    
  22  Normalizat    1.2362        .26632        .27002E-03   -.85491    
  23  Prefactor     .68054        .18738        .25878E-03   -1.0429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.10383e-10
Minuit parameter uncertainties:
  1  4.69253e-06
  2  14.8888
  3  129.615
  4  4.96526
  5  1.14671e-05
  6  2.28042e-06
  7  128.49
  8  4.65889e-05
  9  6.51273e-07
  10  71.9337
  11  5.65843
  12  84.9908
  13  0.000205154
  14  9.46957
  15  7.27756e-05
  16  0.000190298
  17  4.59097e-05
  18  3.44311e-06
  19  4.33543
  20  4.54823e-07
  21  20.4546
  22  0.266617
  23  0.18755
Done.

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

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  1.685e+01  7.193e+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:  6.805e-01  1.875e-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:  1.236e+00  2.666e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/489548/likelihoodResults_528336001_528595201_4FGL_J2249.4-1300_daily_bin1115.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) = 5332.99474905
delta logL = 0.69311305297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5332.8870017
delta logL = 0.800860400557

Fit tolerance = 1e-08

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

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

 FCN=   5332.887     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      359 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18334E-01    .16947        .15611E-02    .14030E-01
   2  Index         4.9177        1.4407        .67409E-01    .39657E-03
   3  Normalizat    1.1315        .51384E-01    .63165E-01    .88171E-04
   4  Prefactor     .73449        .37915E-01    .42857E-01    .78767E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.018334
  Index      = 4.91769
  Normalizat = 1.13154
  Prefactor  = 0.73449
 **********
 **   18 **HESSE 
 **********

 FCN=   5332.887     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      392 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18334E-01    .46800        .69426E-05   -1.5681    
   2  Index         4.9177        2.8465        .24645E-02   -.16463E-01
   3  Normalizat    1.1315        .22169        .27939E-03   -.88746    
   4  Prefactor     .73449        .15852        .24997E-03   -1.0219    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.33894e-10
Minuit parameter uncertainties:
  1  0.184756
  2  3.02837
  3  0.221876
  4  0.158619
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/489548': 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) = 5332.8870007
delta logL = 0.800861403263

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  1.833e-02  1.848e-01  1.000e-04  1.000e+04 ( 1.000e-14)
265        Index:  4.918e+00  3.028e+00  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:  7.345e-01  1.586e-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:  1.132e+00  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.18
Ra Dec: 342.356 -13.001
Photon Index (Free Index): 4.92 +/- 3.03
Photon Flux (Free Index): 1.79e-07 +/- 1.32e-07
Energy Flux (Free Index): 2.40e-05 +/- 1.94e-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/489548/cmap_HighResolution_528336001_528595201_4FGL_J2249.4-1300_daily_bin1115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.06e-02', comment='SUCCESS', energy_flux2='2.40e-05', dlogl='8.01e-01', photon_flux2='1.79e-07', job_status='DONE', time_completed='2021-09-28 21:41:54.987700', photon_index_error2='3.03', photon_index2='4.92', ts='0.27', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='2.67e-07', energy_flux_error2='1.94e-05', EG='1.24', time_epoch_completed='1632890514.99', return_code='0', job_id='489548', GAL2='0.73', EG2='1.13', return_code2='102', photon_flux_error2='1.32e-07', ts2='2.18', photon_index='2.41' WHERE bin_id='1115' AND source_name='4FGL J2249.4-1300' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:41:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 489548: <4FGL_J2249.4-1300_daily_bin1115> in cluster <slac> Done

Job <4FGL_J2249.4-1300_daily_bin1115> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 21:30:57 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:30:59 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:59 2021
Terminated at Tue Sep 28 21:41:55 2021
Results reported at Tue Sep 28 21:41:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2249.4-1300_daily_bin1115 342.356 -13.0006 528336001 528595201 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 :                                   568.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   656 sec.
    Turnaround time :                            658 sec.

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

