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


Performing analysis on: 4FGL_J2249.4-1300_daily_bin1215
RA = 342.356, Dec = -13.0006
tmin = 554256001, tmax = 554515201
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='489696', job_status='RUN', time_executed='2021-09-28 21:32:44.070459', time_epoch_executed='1632889964.07' WHERE source_name='4FGL J2249.4-1300' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/489696

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/489696/ft1_4FGL_J2249.4-1300_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/489696/ft2_4FGL_J2249.4-1300_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/489696/ft1_4FGL_J2249.4-1300_daily_bin1215.fits outfile=/scratch/kocevski/489696/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin1215.fits ra=342.356 dec=-13.0006 rad=12.0 tmin=554256001.0 tmax=554515201.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 4.05
user 3.80
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/489696/ft2_4FGL_J2249.4-1300_daily_bin1215.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/489696/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin1215.fits evtable="EVENTS" outfile="/scratch/kocevski/489696/ft1_filtered_4FGL_J2249.4-1300_daily_bin1215.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/489696/ft1_filtered_4FGL_J2249.4-1300_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/489696/ft2_4FGL_J2249.4-1300_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/489696/ltcube_554256001_554515201_4FGL_J2249.4-1300_daily_bin1215.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/489696/ft2_4FGL_J2249.4-1300_daily_bin1215.fits
.....................!
real 11.93
user 11.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/489696/ft1_filtered_4FGL_J2249.4-1300_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/489696/ft2_4FGL_J2249.4-1300_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/489696/ltcube_554256001_554515201_4FGL_J2249.4-1300_daily_bin1215.fits outfile=/scratch/kocevski/489696/expmap_554256001_554515201_4FGL_J2249.4-1300_daily_bin1215.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/489696/ltcube_554256001_554515201_4FGL_J2249.4-1300_daily_bin1215.fits
.....................!
real 190.56
user 185.35
sys 4.79

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/489696/ft1_filtered_4FGL_J2249.4-1300_daily_bin1215.fits scfile=/scratch/kocevski/489696/ft2_4FGL_J2249.4-1300_daily_bin1215.fits outfile=/scratch/kocevski/489696/cmap_554256001_554515201_4FGL_J2249.4-1300_daily_bin1215.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/489696/ft1_filtered_4FGL_J2249.4-1300_daily_bin1215.fits scfile=/scratch/kocevski/489696/ft2_4FGL_J2249.4-1300_daily_bin1215.fits outfile=/scratch/kocevski/489696/cmap_HighResolution_554256001_554515201_4FGL_J2249.4-1300_daily_bin1215.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/489696/ft1_filtered_4FGL_J2249.4-1300_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/489696/ft2_4FGL_J2249.4-1300_daily_bin1215.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/489696/Model_4FGL_J2249.4-1300_daily_bin1215.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/489696/ft1_filtered_4FGL_J2249.4-1300_daily_bin1215.fits.....................!
real 42.67
user 41.21
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.413       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.684       1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.705       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12896E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19626E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    4.6912       1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.050       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.8770       1.0000         .10000E-03   10000.    
     9 'norm      '    .54325       1.0000         .10000E-03   10000.    
    10 'Prefactor '    78.959       1.0000         .10000E-03   10000.    
    11 'norm      '    10.979       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.341       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.094       1.0000         .10000E-03   10000.    
    15 'norm      '    30.112       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .72562       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99133       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=   4408.403     FROM MIGRAD    STATUS=CONVERGED    921 CALLS     3342 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.410        18.596        .75160E-04    .78050E-04
   2  Prefactor     13.693        30.133        .10828E-03   -.77695E-05
   3  Prefactor     28.559        100.43        .74778E-04    .29525E-04
   4  Prefactor     .10000E-03    13.997        .36285E-03** at limit **
   5  Prefactor     .10002E-03    93.624        .17436    ** at limit **
   6  norm          4.6935        5.5594        .77369E-03   -.63266E-03
   7  Prefactor     39.938        133.07        .63338E-04    .52412E-05
   8  Prefactor     5.8771        12.872        .16565E-03   -.48040E-05
   9  norm          .54358        .92636        .85125E-03   -.12991E-02
  10  Prefactor     78.880        63.357        .45195E-04    .13634E-03
  11  norm          10.985        5.6487        .50993E-04    .85991E-03
  12  Prefactor     21.425        43.563        .86704E-04    .18226E-04
  13  Prefactor     .10000E-03    6.5960        .16646E-02** at limit **
  14  Prefactor     11.094        11.252        .12028E-03    .41398E-04
  15  norm          30.132        32.834        .73014E-04    .19307E-04
  16  Prefactor     .10000E-03    18.730        .18142E-02** at limit **
  17  Prefactor     .10000E-03    19.426        .18142E-02** at limit **
  18  Prefactor     .10000E-03    3.9542        .12894E-02** at limit **
  19  norm          .10000E-03    2.8615        .10969E-02** at limit **
  20  Prefactor     .10000E-03    29.947        .18142E-02** at limit **
  21  Prefactor     .10000E-03    10.823        .18142E-02** at limit **
  22  Normalizat    .72567        .30666        .33373E-03    .18876E-03
  23  Prefactor     .99119        .22751        .22360E-03   -.27314E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.4095
  Prefactor  = 13.6934
  Prefactor  = 28.5588
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  norm       = 4.69352
  Prefactor  = 39.9376
  Prefactor  = 5.87706
  norm       = 0.543584
  Prefactor  = 78.8798
  norm       = 10.9848
  Prefactor  = 21.4253
  Prefactor  = 0.0001
  Prefactor  = 11.0939
  norm       = 30.132
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.72567
  Prefactor  = 0.991188
 **********
 **   18 **HESSE 
 **********

 FCN=   4408.403     FROM HESSE     STATUS=OK           358 CALLS     3700 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.410        18.594        .30064E-05   -1.4641    
   2  Prefactor     13.693        30.122        .43312E-05   -1.4968    
   3  Prefactor     28.559        100.40        .14956E-04   -1.4639    
   4  Prefactor     .10000E-03    13.998        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    104.50        .16249       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.6935        5.5549        .30947E-04   -1.5275    
   7  Prefactor     39.938        133.00        .12668E-04   -1.4443    
   8  Prefactor     5.8771        12.871        .66262E-05   -1.5223    
   9  norm          .54358        .92518        .34050E-04   -1.5561    
  10  Prefactor     78.880        63.423        .90390E-05   -1.3929    
  11  norm          10.985        5.6553        .20397E-05   -1.5045    
  12  Prefactor     21.425        43.526        .34681E-05   -1.4782    
  13  Prefactor     .10000E-03    6.5962        .33291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.094        11.252        .48113E-05   -1.5042    
  15  norm          30.132        32.831        .29206E-05   -1.4610    
  16  Prefactor     .10000E-03    18.730        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.427        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.9542        .25788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.8615        .21937E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    29.948        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.824        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .72567        .30682        .13349E-04   -1.0289    
  23  Prefactor     .99119        .22776        .44721E-04   -.93024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42017e-09
Minuit parameter uncertainties:
  1  18.598
  2  30.1555
  3  100.999
  4  7.1416e-05
  5  0.00302495
  6  5.55546
  7  134.006
  8  12.877
  9  0.925206
  10  63.4775
  11  5.65556
  12  43.5907
  13  1.50227e-06
  14  11.254
  15  32.8509
  16  4.5421e-06
  17  3.85983e-05
  18  1.4681e-06
  19  8.24284e-07
  20  3.67235e-05
  21  2.51215e-05
  22  0.307553
  23  0.227977
Done.

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

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  7.888e+01  6.348e+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.912e-01  2.280e-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:  7.257e-01  3.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.33
Ra Dec: 342.356 -13.001
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 2.89e-07 +/- 2.32e-07
Energy Flux (Fixed Index): 9.36e-05 +/- 7.53e-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) = 4407.22304967
delta logL = 1.1796329453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4407.21765584
delta logL = 1.18502677571

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    206.83       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9486       1.0000          .0000       10.000    
     3 'Normalizat'    .78083       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96263       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=   4407.218     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      300 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     206.84        114.35        .28106E-04   -.51929E-03
   2  Index         1.9486        .27758        .27386E-02   -.70910E-03
   3  Normalizat    .78095        .28717        .32343E-03    .15027E-03
   4  Prefactor     .96254        .22113        .22669E-03    .30877E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 206.843
  Index      = 1.94858
  Normalizat = 0.780951
  Prefactor  = 0.962543
 **********
 **   18 **HESSE 
 **********

 FCN=   4407.218     FROM HESSE     STATUS=OK            23 CALLS      323 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     206.84        110.03        .56211E-05   -1.2822    
   2  Index         1.9486        .26691        .10954E-03   -.65642    
   3  Normalizat    .78095        .28724        .12937E-04   -1.0078    
   4  Prefactor     .96254        .22129        .45338E-04   -.93989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5231e-09
Minuit parameter uncertainties:
  1  110.141
  2  0.267113
  3  0.287798
  4  0.221502
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/489696': 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) = 4407.21765574
delta logL = 1.18502687708

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  2.068e+02  1.101e+02  1.000e-04  1.000e+04 ( 1.000e-14)
265        Index:  1.949e+00  2.671e-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.625e-01  2.215e-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:  7.810e-01  2.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.53
Ra Dec: 342.356 -13.001
Photon Index (Free Index): 1.95 +/- 0.27
Photon Flux (Free Index): 2.20e-07 +/- 1.06e-07
Energy Flux (Free Index): 1.73e-04 +/- 9.57e-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/489696/cmap_HighResolution_554256001_554515201_4FGL_J2249.4-1300_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.89e-07', energy_flux2='1.73e-04', photon_flux_error='2.32e-07', dlogl='1.19e+00', energy_flux='9.36e-05', photon_flux2='2.20e-07', job_status='DONE', time_completed='2021-09-28 21:41:29.679325', photon_index_error2='0.27', photon_index2='1.95', ts='7.33', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='9.57e-05', EG='0.73', time_epoch_completed='1632890489.68', return_code='0', job_id='489696', GAL2='0.96', EG2='0.78', return_code2='0', energy_flux_error='7.53e-05', photon_flux_error2='1.06e-07', ts2='11.53', photon_index='2.41' WHERE bin_id='1215' AND source_name='4FGL J2249.4-1300' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:41:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 489696: <4FGL_J2249.4-1300_daily_bin1215> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2249.4-1300_daily_bin1215 342.356 -13.0006 554256001 554515201 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 :                                   514.50 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             298.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   618 sec.
    Turnaround time :                            620 sec.

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

