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


Performing analysis on: 4FGL_J2249.4-1300_daily_bin1193
RA = 342.356, Dec = -13.0006
tmin = 548553601, tmax = 548812801
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='489659', job_status='RUN', time_executed='2021-09-28 21:31:29.123942', time_epoch_executed='1632889889.12' WHERE source_name='4FGL J2249.4-1300' and cadence='daily' and bin_id='1193'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/489659

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/489659/ft1_4FGL_J2249.4-1300_daily_bin1193.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/489659/ft2_4FGL_J2249.4-1300_daily_bin1193.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/489659/ft1_4FGL_J2249.4-1300_daily_bin1193.fits outfile=/scratch/kocevski/489659/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin1193.fits ra=342.356 dec=-13.0006 rad=12.0 tmin=548553601.0 tmax=548812801.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.43
user 3.21
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/489659/ft2_4FGL_J2249.4-1300_daily_bin1193.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/489659/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin1193.fits evtable="EVENTS" outfile="/scratch/kocevski/489659/ft1_filtered_4FGL_J2249.4-1300_daily_bin1193.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/489659/ft1_filtered_4FGL_J2249.4-1300_daily_bin1193.fits" evtable="EVENTS" scfile=/scratch/kocevski/489659/ft2_4FGL_J2249.4-1300_daily_bin1193.fits sctable="SC_DATA" outfile=/scratch/kocevski/489659/ltcube_548553601_548812801_4FGL_J2249.4-1300_daily_bin1193.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/489659/ft2_4FGL_J2249.4-1300_daily_bin1193.fits
.....................!
real 12.16
user 11.83
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/489659/ft1_filtered_4FGL_J2249.4-1300_daily_bin1193.fits evtable="EVENTS" scfile=/scratch/kocevski/489659/ft2_4FGL_J2249.4-1300_daily_bin1193.fits sctable="SC_DATA" expcube=/scratch/kocevski/489659/ltcube_548553601_548812801_4FGL_J2249.4-1300_daily_bin1193.fits outfile=/scratch/kocevski/489659/expmap_548553601_548812801_4FGL_J2249.4-1300_daily_bin1193.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/489659/ltcube_548553601_548812801_4FGL_J2249.4-1300_daily_bin1193.fits
.....................!
real 189.40
user 184.86
sys 4.22

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/489659/ft1_filtered_4FGL_J2249.4-1300_daily_bin1193.fits scfile=/scratch/kocevski/489659/ft2_4FGL_J2249.4-1300_daily_bin1193.fits outfile=/scratch/kocevski/489659/cmap_548553601_548812801_4FGL_J2249.4-1300_daily_bin1193.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/489659/ft1_filtered_4FGL_J2249.4-1300_daily_bin1193.fits scfile=/scratch/kocevski/489659/ft2_4FGL_J2249.4-1300_daily_bin1193.fits outfile=/scratch/kocevski/489659/cmap_HighResolution_548553601_548812801_4FGL_J2249.4-1300_daily_bin1193.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/489659/ft1_filtered_4FGL_J2249.4-1300_daily_bin1193.fits evtable="EVENTS" scfile=/scratch/kocevski/489659/ft2_4FGL_J2249.4-1300_daily_bin1193.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/489659/Model_4FGL_J2249.4-1300_daily_bin1193.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/489659/ft1_filtered_4FGL_J2249.4-1300_daily_bin1193.fits.....................!
real 74.48
user 73.15
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47288E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.2916       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8111       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.723       1.0000         .10000E-03   10000.    
     6 'norm      '    1.7954       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1939       1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.013       1.0000         .10000E-03   10000.    
    11 'norm      '    1.1303       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16835E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6080       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10157E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .45632       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18928E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0014       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84560       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=   9193.580     FROM MIGRAD    STATUS=CONVERGED    971 CALLS     3099 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2874        .57644E-01** at limit **
   2  Prefactor     7.2916        8.5232        .14854E-03   -.19287E-04
   3  Prefactor     .10000E-03    15.742        .18142E-02** at limit **
   4  Prefactor     1.8110        2.2493        .15343E-03    .44012E-04
   5  Prefactor     20.723        25.869        .87986E-04   -.54268E-05
   6  norm          1.7954        1.9871        .13744E-03    .76927E-04
   7  Prefactor     .10000E-03    41.286        .18142E-02** at limit **
   8  Prefactor     .10000E-03    3.3698        .17156E-02** at limit **
   9  norm          1.1939        .67725        .56568E-04    .20298E-03
  10  Prefactor     41.006        27.420        .62593E-04   -.13077E-04
  11  norm          1.1311        2.0362        .80400E-04   -.11595E-03
  12  Prefactor     .10000E-03    21.067        .85826E-01** at limit **
  13  Prefactor     4.6077        5.1769        .18750E-03    .28254E-04
  14  Prefactor     .10000E-03    7.1407        .18142E-02** at limit **
  15  norm          .10000E-03    14.408        .36285E-03** at limit **
  16  Prefactor     .10000E-03    15.256        .18142E-02** at limit **
  17  Prefactor     .10000E-03    6.7650        .18142E-02** at limit **
  18  Prefactor     .10000E-03    3.0638        .16324E-02** at limit **
  19  norm          .45494        7.9181        .25483E-02    .11644E-03
  20  Prefactor     .10000E-03    22.552        .18142E-02** at limit **
  21  Prefactor     .10000E-03    25.782        .42068E-02** at limit **
  22  Normalizat    1.0014        .16370        .24186E-03    .21247E-04
  23  Prefactor     .84563        .12973        .20904E-03    .20557E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.29162
  Prefactor  = 0.0001
  Prefactor  = 1.81098
  Prefactor  = 20.7226
  norm       = 1.79545
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.19387
  Prefactor  = 41.0057
  norm       = 1.1311
  Prefactor  = 0.0001
  Prefactor  = 4.6077
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.454937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00141
  Prefactor  = 0.845635
 **********
 **   18 **HESSE 
 **********

 FCN=   9193.580     FROM HESSE     STATUS=OK           368 CALLS     3467 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8248        .66953E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.2916        8.5223        .59415E-05   -1.5168    
   3  Prefactor     .10000E-03    15.742        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8110        2.2490        .61374E-05   -1.5439    
   5  Prefactor     20.723        25.866        .35195E-05   -1.4797    
   6  norm          1.7954        1.9869        .54976E-05   -1.5440    
   7  Prefactor     .10000E-03    41.289        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.3703        .34311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1939        .67720        .22627E-05   -1.5489    
  10  Prefactor     41.006        27.503        .25037E-05   -1.4426    
  11  norm          1.1311        2.0334        .32160E-05   -1.5495    
  12  Prefactor     .10000E-03    17.066        .99632E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.6077        5.1772        .75002E-05   -1.5279    
  14  Prefactor     .10000E-03    7.1470        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    14.408        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.258        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.7653        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.0641        .32649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .45494        7.9182        .10193E-03   -1.5573    
  20  Prefactor     .10000E-03    22.555        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    26.139        .84136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0014        .16390        .96743E-05   -.92983    
  23  Prefactor     .84563        .12984        .83617E-05   -.98067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57149e-11
Minuit parameter uncertainties:
  1  3.04252e-05
  2  8.52371
  3  8.87391e-06
  4  2.2491
  5  25.8796
  6  1.98695
  7  5.92513e-05
  8  3.41926e-06
  9  0.677203
  10  27.5111
  11  2.03357
  12  1.23503e-05
  13  5.17769
  14  1.73834e-05
  15  6.99914e-05
  16  1.26836e-05
  17  3.1258e-06
  18  2.31193e-06
  19  3.79611
  20  1.5826e-06
  21  3.46161e-06
  22  0.163978
  23  0.129887
Done.

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

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  4.101e+01  2.751e+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:  8.456e-01  1.299e-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.001e+00  1.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.42
Ra Dec: 342.356 -13.001
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.50e-07 +/- 1.01e-07
Energy Flux (Fixed Index): 4.87e-05 +/- 3.27e-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) = 9192.2066822
delta logL = 1.37285268794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9192.19951044
delta logL = 1.38002444853

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9779       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9668       1.0000          .0000       10.000    
     3 'Normalizat'    .94954       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87436       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=   9192.200     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      246 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9779        33.604        .31714E-02    .19130E-02
   2  Index         2.9668        1.0901        .40568E-01    .43736E-03
   3  Normalizat    .94954        .71397E-01    .45531E-01    .57434E-04
   4  Prefactor     .87436        .52852E-01    .44677E-01    .51419E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.97792
  Index      = 2.96679
  Normalizat = 0.949536
  Prefactor  = 0.874357
 **********
 **   18 **HESSE 
 **********

 FCN=   9192.200     FROM HESSE     STATUS=OK            33 CALLS      279 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9779        186.69        .77312E-04   -1.5076    
   2  Index         2.9668        2.7624        .17392E-02   -.41878    
   3  Normalizat    .94954        .23862        .24713E-03   -.94741    
   4  Prefactor     .87436        .17994        .20587E-03   -.97043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52627e-07
Minuit parameter uncertainties:
  1  86.6332
  2  2.96654
  3  0.238891
  4  0.180058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/489659': 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) = 9192.19951044
delta logL = 1.38002444853

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  9.978e+00  8.663e+01  1.000e-04  1.000e+04 ( 1.000e-14)
265        Index:  2.967e+00  2.967e+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:  8.744e-01  1.801e-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.495e-01  2.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.34
Ra Dec: 342.356 -13.001
Photon Index (Free Index): 2.97 +/- 2.97
Photon Flux (Free Index): 1.90e-07 +/- 8.31e-08
Energy Flux (Free Index): 3.86e-05 +/- 4.72e-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/489659/cmap_HighResolution_548553601_548812801_4FGL_J2249.4-1300_daily_bin1193.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.50e-07', energy_flux2='3.86e-05', photon_flux_error='1.01e-07', dlogl='1.38e+00', energy_flux='4.87e-05', photon_flux2='1.90e-07', job_status='DONE', time_completed='2021-09-28 21:43:54.527885', photon_index_error2='2.97', photon_index2='2.97', ts='17.42', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='4.72e-05', EG='1.00', time_epoch_completed='1632890634.53', return_code='0', job_id='489659', GAL2='0.87', EG2='0.95', return_code2='0', energy_flux_error='3.27e-05', photon_flux_error2='8.31e-08', ts2='21.34', photon_index='2.41' WHERE bin_id='1193' AND source_name='4FGL J2249.4-1300' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:43:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 489659: <4FGL_J2249.4-1300_daily_bin1193> in cluster <slac> Done

Job <4FGL_J2249.4-1300_daily_bin1193> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 21:31:07 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:31:09 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:31:09 2021
Terminated at Tue Sep 28 21:43:55 2021
Results reported at Tue Sep 28 21:43:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2249.4-1300_daily_bin1193 342.356 -13.0006 548553601 548812801 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 :                                   733.44 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             323.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            768 sec.

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

