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


Performing analysis on: 4FGL_J2249.4-1300_daily_bin1291
RA = 342.356, Dec = -13.0006
tmin = 573955201, tmax = 574214401
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='490721', job_status='RUN', time_executed='2021-09-28 21:36:19.994378', time_epoch_executed='1632890179.99' WHERE source_name='4FGL J2249.4-1300' and cadence='daily' and bin_id='1291'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/490721

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/490721/ft1_4FGL_J2249.4-1300_daily_bin1291.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/490721/ft2_4FGL_J2249.4-1300_daily_bin1291.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/490721/ft1_4FGL_J2249.4-1300_daily_bin1291.fits outfile=/scratch/kocevski/490721/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin1291.fits ra=342.356 dec=-13.0006 rad=12.0 tmin=573955201.0 tmax=574214401.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.69
user 3.47
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/490721/ft1_filtered_4FGL_J2249.4-1300_daily_bin1291.fits" evtable="EVENTS" scfile=/scratch/kocevski/490721/ft2_4FGL_J2249.4-1300_daily_bin1291.fits sctable="SC_DATA" outfile=/scratch/kocevski/490721/ltcube_573955201_574214401_4FGL_J2249.4-1300_daily_bin1291.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/490721/ft2_4FGL_J2249.4-1300_daily_bin1291.fits
.....................!
real 12.12
user 11.78
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/490721/ft1_filtered_4FGL_J2249.4-1300_daily_bin1291.fits evtable="EVENTS" scfile=/scratch/kocevski/490721/ft2_4FGL_J2249.4-1300_daily_bin1291.fits sctable="SC_DATA" expcube=/scratch/kocevski/490721/ltcube_573955201_574214401_4FGL_J2249.4-1300_daily_bin1291.fits outfile=/scratch/kocevski/490721/expmap_573955201_574214401_4FGL_J2249.4-1300_daily_bin1291.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/490721/ltcube_573955201_574214401_4FGL_J2249.4-1300_daily_bin1291.fits
.....................!
real 190.92
user 185.98
sys 4.56

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/490721/ft1_filtered_4FGL_J2249.4-1300_daily_bin1291.fits scfile=/scratch/kocevski/490721/ft2_4FGL_J2249.4-1300_daily_bin1291.fits outfile=/scratch/kocevski/490721/cmap_573955201_574214401_4FGL_J2249.4-1300_daily_bin1291.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.37
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .66735       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.102       1.0000         .10000E-03   10000.    
     9 'norm      '    1.8604       1.0000         .10000E-03   10000.    
    10 'Prefactor '    58.432       1.0000         .10000E-03   10000.    
    11 'norm      '    2.8380       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0834       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    21.282       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.7380       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.4747       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.4306       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.305       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .90185       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0667       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=   5147.797     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     3158 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.604        .24839E-06** at limit **
   2  Prefactor     .10000E-03    7.9023       -.59251E-07** at limit **
   3  Prefactor     .10000E-03    45.447       -.18177E-06** at limit **
   4  Prefactor     .67641        4.4181        .82078E-06   -.17677E-03
   5  Prefactor     .10000E-03    102.87       -.58318E-06** at limit **
   6  norm          .10000E-03    1.6186        .46458E-07** at limit **
   7  Prefactor     .10000E-03    70.390        .94134E-06** at limit **
   8  Prefactor     15.103        16.753        .25112E-06   -.55350E-05
   9  norm          1.8603        1.4051        .58411E-07   -.31055E-04
  10  Prefactor     58.443        46.711        .52859E-06    .80337E-05
  11  norm          2.8370        3.6206       -.13817E-06   -.57694E-04
  12  Prefactor     .10000E-03    25.275        .44342E-06** at limit **
  13  Prefactor     6.0831        10.582        .31711E-05   -.25200E-05
  14  Prefactor     .10000E-03    6.8296        .11072E-06** at limit **
  15  norm          21.283        16.903        .14495E-06   -.99173E-05
  16  Prefactor     5.7003        115.32        .85259E-06   -.24595E-04
  17  Prefactor     9.4752        26.228        .26265E-05   -.15543E-05
  18  Prefactor     .10000E-03    11.576       -.23710E-05** at limit **
  19  norm          5.4298        7.3726        .13457E-06    .68737E-04
  20  Prefactor     .10000E-03    29.677       -.19342E-06** at limit **
  21  Prefactor     15.307        18.823       -.45426E-07   -.47193E-05
  22  Normalizat    .90169        .23459       -.47232E-06   -.73892E-04
  23  Prefactor     1.0668        .17591       -.93332E-06   -.68524E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.676411
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 15.1028
  norm       = 1.86032
  Prefactor  = 58.4427
  norm       = 2.83697
  Prefactor  = 0.0001
  Prefactor  = 6.08306
  Prefactor  = 0.0001
  norm       = 21.2827
  Prefactor  = 5.70029
  Prefactor  = 9.47518
  Prefactor  = 0.0001
  norm       = 5.42977
  Prefactor  = 0.0001
  Prefactor  = 15.3065
  Normalizat = 0.901686
  Prefactor  = 1.06677
 **********
 **   18 **HESSE 
 **********

 FCN=   5147.797     FROM HESSE     STATUS=OK           372 CALLS     3530 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.9187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    45.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .67641        8.4616        .27656E-02   -1.5543    
   5  Prefactor     .10000E-03    102.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.6306        .89088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    70.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.103        16.793        .10307E-03   -1.4931    
   9  norm          1.8603        1.3926        .68313E-04   -1.5435    
  10  Prefactor     58.443        49.006        .52484E-04   -1.4178    
  11  norm          2.8370        3.7788        .72832E-04   -1.5371    
  12  Prefactor     .10000E-03    25.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.0831        10.584        .81391E-03   -1.5215    
  14  Prefactor     .10000E-03    6.8518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          21.283        16.907        .86823E-04   -1.4785    
  16  Prefactor     5.7003        114.07        .16768E-03   -1.5230    
  17  Prefactor     9.4752        26.226        .65097E-03   -1.5092    
  18  Prefactor     .10000E-03    11.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.4298        7.3249        .17243E-03   -1.5242    
  20  Prefactor     .10000E-03    29.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.307        18.847        .10238E-03   -1.4925    
  22  Normalizat    .90169        .27872        .30566E-03   -.96401    
  23  Prefactor     1.0668        .20845        .21685E-03   -.90536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23739e-08
Minuit parameter uncertainties:
  1  8.40288e-07
  2  4.99474e-06
  3  0.000174969
  4  4.78525
  5  0.000673468
  6  6.58219e-07
  7  0.000737549
  8  16.7986
  9  1.39267
  10  49.0396
  11  3.77912
  12  0.000127714
  13  10.5869
  14  2.85853e-06
  15  16.9108
  16  51.1105
  17  26.2577
  18  3.66045e-06
  19  7.32607
  20  0.000112161
  21  18.8548
  22  0.279166
  23  0.208612
Done.

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

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  5.844e+01  4.904e+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:  1.067e+00  2.086e-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.017e-01  2.792e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.71
Ra Dec: 342.356 -13.001
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 2.14e-07 +/- 1.79e-07
Energy Flux (Fixed Index): 6.94e-05 +/- 5.82e-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) = 5147.59365304
delta logL = 0.203645259158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5147.58930681
delta logL = 0.207991493718

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.969       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6485       1.0000          .0000       10.000    
     3 'Normalizat'    .87005       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0844       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=   5147.589     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      266 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.921        182.13        .17447E-02    .49490E-03
   2  Index         2.6490        1.5822        .46836E-01    .19242E-03
   3  Normalizat    .86968        .12051        .70147E-01    .97022E-05
   4  Prefactor     1.0849        .82436E-01    .38213E-01   -.18766E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.9212
  Index      = 2.64896
  Normalizat = 0.869681
  Prefactor  = 1.08495
 **********
 **   18 **HESSE 
 **********

 FCN=   5147.589     FROM HESSE     STATUS=OK            33 CALLS      299 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.921        53.075        .34894E-03   -1.4560    
   2  Index         2.6490        .58489        .19838E-02   -.48953    
   3  Normalizat    .86968        .27488        .31038E-03   -.97534    
   4  Prefactor     1.0849        .20787        .21523E-03   -.89949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32405e-08
Minuit parameter uncertainties:
  1  53.1517
  2  0.586617
  3  0.275325
  4  0.208021
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/490721': 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) = 5147.5892991
delta logL = 0.20799919783

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  3.292e+01  5.315e+01  1.000e-04  1.000e+04 ( 1.000e-14)
265        Index:  2.649e+00  5.866e-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.085e+00  2.080e-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.697e-01  2.753e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.95
Ra Dec: 342.356 -13.001
Photon Index (Free Index): 2.65 +/- 0.59
Photon Flux (Free Index): 2.42e-07 +/- 1.00e-07
Energy Flux (Free Index): 6.08e-05 +/- 3.13e-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/490721/cmap_HighResolution_573955201_574214401_4FGL_J2249.4-1300_daily_bin1291.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.14e-07', energy_flux2='6.08e-05', photon_flux_error='1.79e-07', dlogl='2.08e-01', energy_flux='6.94e-05', photon_flux2='2.42e-07', job_status='DONE', time_completed='2021-09-28 21:45:26.911617', photon_index_error2='0.59', photon_index2='2.65', ts='8.71', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='3.13e-05', EG='0.90', time_epoch_completed='1632890726.91', return_code='0', job_id='490721', GAL2='1.08', EG2='0.87', return_code2='0', energy_flux_error='5.82e-05', photon_flux_error2='1.00e-07', ts2='9.95', photon_index='2.41' WHERE bin_id='1291' AND source_name='4FGL J2249.4-1300' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:45:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 490721: <4FGL_J2249.4-1300_daily_bin1291> in cluster <slac> Done

Job <4FGL_J2249.4-1300_daily_bin1291> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 21:35:16 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:35:17 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:35:17 2021
Terminated at Tue Sep 28 21:45:27 2021
Results reported at Tue Sep 28 21:45:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2249.4-1300_daily_bin1291 342.356 -13.0006 573955201 574214401 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 :                                   541.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             269.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            611 sec.

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

