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


Performing analysis on: 4FGL_J2249.4-1300_daily_bin1091
RA = 342.356, Dec = -13.0006
tmin = 522115201, tmax = 522374401
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='489510', job_status='RUN', time_executed='2021-09-28 21:33:13.909970', time_epoch_executed='1632889993.91' WHERE source_name='4FGL J2249.4-1300' and cadence='daily' and bin_id='1091'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/489510

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/489510/ft1_4FGL_J2249.4-1300_daily_bin1091.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/489510/ft2_4FGL_J2249.4-1300_daily_bin1091.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/489510/ft1_4FGL_J2249.4-1300_daily_bin1091.fits outfile=/scratch/kocevski/489510/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin1091.fits ra=342.356 dec=-13.0006 rad=12.0 tmin=522115201.0 tmax=522374401.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.71
user 3.49
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/489510/ft1_filtered_4FGL_J2249.4-1300_daily_bin1091.fits" evtable="EVENTS" scfile=/scratch/kocevski/489510/ft2_4FGL_J2249.4-1300_daily_bin1091.fits sctable="SC_DATA" outfile=/scratch/kocevski/489510/ltcube_522115201_522374401_4FGL_J2249.4-1300_daily_bin1091.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/489510/ft2_4FGL_J2249.4-1300_daily_bin1091.fits
.....................!
real 11.83
user 11.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/489510/ft1_filtered_4FGL_J2249.4-1300_daily_bin1091.fits evtable="EVENTS" scfile=/scratch/kocevski/489510/ft2_4FGL_J2249.4-1300_daily_bin1091.fits sctable="SC_DATA" expcube=/scratch/kocevski/489510/ltcube_522115201_522374401_4FGL_J2249.4-1300_daily_bin1091.fits outfile=/scratch/kocevski/489510/expmap_522115201_522374401_4FGL_J2249.4-1300_daily_bin1091.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/489510/ltcube_522115201_522374401_4FGL_J2249.4-1300_daily_bin1091.fits
.....................!
real 189.60
user 184.22
sys 5.07

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/489510/ft1_filtered_4FGL_J2249.4-1300_daily_bin1091.fits scfile=/scratch/kocevski/489510/ft2_4FGL_J2249.4-1300_daily_bin1091.fits outfile=/scratch/kocevski/489510/cmap_522115201_522374401_4FGL_J2249.4-1300_daily_bin1091.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/489510/ft1_filtered_4FGL_J2249.4-1300_daily_bin1091.fits scfile=/scratch/kocevski/489510/ft2_4FGL_J2249.4-1300_daily_bin1091.fits outfile=/scratch/kocevski/489510/cmap_HighResolution_522115201_522374401_4FGL_J2249.4-1300_daily_bin1091.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/489510/ft1_filtered_4FGL_J2249.4-1300_daily_bin1091.fits evtable="EVENTS" scfile=/scratch/kocevski/489510/ft2_4FGL_J2249.4-1300_daily_bin1091.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/489510/Model_4FGL_J2249.4-1300_daily_bin1091.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/489510/ft1_filtered_4FGL_J2249.4-1300_daily_bin1091.fits.....................!
real 52.33
user 51.05
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6179       1.0000         .10000E-03   10000.    
     3 'Prefactor '    126.23       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.2560       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.0998       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    85.157       1.0000         .10000E-03   10000.    
    11 'norm      '    .10214E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.582       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.2496       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.342       1.0000         .10000E-03   10000.    
    19 'norm      '    12.882       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.0756       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12127E-01   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .88136       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99427       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=   5711.529     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     3015 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.1916       -.31872E-07** at limit **
   2  Prefactor     2.6172        15.060        .20897E-05   -.37621E-03
   3  Prefactor     126.25        92.225        .78778E-06    .72186E-04
   4  Prefactor     9.2565        5.6071        .74719E-08   -.41860E-03
   5  Prefactor     .10000E-03    47.646       -.16933E-06** at limit **
   6  norm          8.1002        4.7748        .10062E-07   -.26796E-04
   7  Prefactor     .10001E-03    62.202       -.20353E-05** at limit **
   8  Prefactor     .10000E-03    3.6249       -.13131E-07** at limit **
   9  norm          .10000E-03    .44252       -.29542E-07** at limit **
  10  Prefactor     85.156        26.045        .26239E-06    .43297E-05
  11  norm          .10000E-03    1.1386       -.80781E-07** at limit **
  12  Prefactor     .10001E-03    59.449        .18746E-05** at limit **
  13  Prefactor     14.578        11.741       -.62642E-07   -.12127E-03
  14  Prefactor     .10000E-03    5.5376       -.13702E-07** at limit **
  15  norm          7.2486        10.890        .51088E-06    .23705E-03
  16  Prefactor     .10000E-03    96.603        .23829E-06** at limit **
  17  Prefactor     .10000E-03    15.188        .55661E-07** at limit **
  18  Prefactor     19.345        15.830        .13578E-06   -.23681E-04
  19  norm          12.880        8.7823       -.99463E-08   -.43502E-04
  20  Prefactor     9.1094        128.22       -.10691E-04   -.16591E-04
  21  Prefactor     .10017E-03    34.190        .41287E-05** at limit **
  22  Normalizat    .88121        .22424       -.16418E-05   -.21733E-03
  23  Prefactor     .99443        .16079        .50101E-06   -.28059E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.61718
  Prefactor  = 126.246
  Prefactor  = 9.25652
  Prefactor  = 0.0001
  norm       = 8.10024
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 85.1564
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 14.5782
  Prefactor  = 0.0001
  norm       = 7.24863
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.3454
  norm       = 12.8802
  Prefactor  = 9.10944
  Prefactor  = 0.000100167
  Normalizat = 0.881205
  Prefactor  = 0.99443
 **********
 **   18 **HESSE 
 **********

 FCN=   5711.529     FROM HESSE     STATUS=OK           380 CALLS     3395 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.6172        21.429        .12604E-02   -1.5384    
   3  Prefactor     126.25        92.788        .35829E-04   -1.3456    
   4  Prefactor     9.2565        5.5932        .63288E-03   -1.5099    
   5  Prefactor     .10000E-03    47.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.1002        4.7716        .11768E-03   -1.5139    
   7  Prefactor     .10001E-03    64.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.6284        .14052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .57532        .96337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     85.156        22.311        .43533E-04   -1.3860    
  11  norm          .10000E-03    1.3053        .13359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    62.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.578        11.753        .10489E-03   -1.4944    
  14  Prefactor     .10000E-03    5.5536        .17368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.2486        11.069        .14897E-03   -1.5169    
  16  Prefactor     .10000E-03    96.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.345        15.836        .91071E-04   -1.4828    
  19  norm          12.880        8.7883        .11160E-03   -1.4990    
  20  Prefactor     9.1094        242.42        .13304E-03   -1.5104    
  21  Prefactor     .10017E-03    55.665        .96094E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .88121        .26287        .30736E-03   -.97124    
  23  Prefactor     .99443        .19100        .22091E-03   -.92915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57192e-09
Minuit parameter uncertainties:
  1  5.71699e-06
  2  14.9848
  3  92.8952
  4  5.59356
  5  6.83601e-05
  6  4.77178
  7  0.00154265
  8  1.41578e-06
  9  1.70387e-06
  10  22.3132
  11  5.0316e-06
  12  0.00147279
  13  11.7546
  14  2.94329e-06
  15  11.0724
  16  0.000261976
  17  9.74092e-06
  18  15.839
  19  8.78916
  20  94.4124
  21  0.00610165
  22  0.263255
  23  0.191127
Done.

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

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  8.516e+01  2.231e+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.944e-01  1.911e-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:  8.812e-01  2.633e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 30.29
Ra Dec: 342.356 -13.001
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 3.12e-07 +/- 8.16e-08
Energy Flux (Fixed Index): 1.01e-04 +/- 2.65e-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) = 5710.50249263
delta logL = 1.02620748967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5710.49057331
delta logL = 1.03812681311

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.289       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7883       1.0000          .0000       10.000    
     3 'Normalizat'    .79885       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0358       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=   5710.491     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      273 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.300        27.272        .67461E-04   -.21908E-04
   2  Index         2.7883        .28588        .13704E-03    .24557E-04
   3  Normalizat    .79900        .25497        .32039E-03   -.21720E-03
   4  Prefactor     1.0357        .19000        .21677E-03    .12115E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.3
  Index      = 2.7883
  Normalizat = 0.798997
  Prefactor  = 1.03573
 **********
 **   18 **HESSE 
 **********

 FCN=   5710.491     FROM HESSE     STATUS=OK            23 CALLS      296 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.300        26.639        .26985E-05   -1.4519    
   2  Index         2.7883        .27924        .54814E-05   -.45821    
   3  Normalizat    .79900        .25505        .12816E-04   -1.0011    
   4  Prefactor     1.0357        .19010        .86709E-05   -.91548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76571e-10
Minuit parameter uncertainties:
  1  26.6483
  2  0.27942
  3  0.255436
  4  0.190219
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/489510': 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) = 5710.49057224
delta logL = 1.0381278761

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  3.530e+01  2.665e+01  1.000e-04  1.000e+04 ( 1.000e-14)
265        Index:  2.788e+00  2.794e-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:  1.036e+00  1.902e-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.990e-01  2.554e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.52
Ra Dec: 342.356 -13.001
Photon Index (Free Index): 2.79 +/- 0.28
Photon Flux (Free Index): 3.93e-07 +/- 1.07e-07
Energy Flux (Free Index): 8.86e-05 +/- 2.24e-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/489510/cmap_HighResolution_522115201_522374401_4FGL_J2249.4-1300_daily_bin1091.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.12e-07', energy_flux2='8.86e-05', photon_flux_error='8.16e-08', dlogl='1.04e+00', energy_flux='1.01e-04', photon_flux2='3.93e-07', job_status='DONE', time_completed='2021-09-28 21:42:30.951984', photon_index_error2='0.28', photon_index2='2.79', ts='30.29', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.24e-05', EG='0.88', time_epoch_completed='1632890550.95', return_code='0', job_id='489510', GAL2='1.04', EG2='0.80', return_code2='0', energy_flux_error='2.65e-05', photon_flux_error2='1.07e-07', ts2='32.52', photon_index='2.41' WHERE bin_id='1091' AND source_name='4FGL J2249.4-1300' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:42:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 489510: <4FGL_J2249.4-1300_daily_bin1091> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2249.4-1300_daily_bin1091 342.356 -13.0006 522115201 522374401 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 :                                   554.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            698 sec.

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

