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


Performing analysis on: 4FGL_J2249.4-1300_daily_bin1389
RA = 342.356, Dec = -13.0006
tmin = 599356801, tmax = 599616001
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='490868', job_status='RUN', time_executed='2021-09-28 21:39:35.975577', time_epoch_executed='1632890375.98' WHERE source_name='4FGL J2249.4-1300' and cadence='daily' and bin_id='1389'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/490868

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/490868/ft1_4FGL_J2249.4-1300_daily_bin1389.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/490868/ft2_4FGL_J2249.4-1300_daily_bin1389.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/490868/ft1_4FGL_J2249.4-1300_daily_bin1389.fits outfile=/scratch/kocevski/490868/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin1389.fits ra=342.356 dec=-13.0006 rad=12.0 tmin=599356801.0 tmax=599616001.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 2.68
user 2.48
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/490868/ft1_filtered_4FGL_J2249.4-1300_daily_bin1389.fits" evtable="EVENTS" scfile=/scratch/kocevski/490868/ft2_4FGL_J2249.4-1300_daily_bin1389.fits sctable="SC_DATA" outfile=/scratch/kocevski/490868/ltcube_599356801_599616001_4FGL_J2249.4-1300_daily_bin1389.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/490868/ft2_4FGL_J2249.4-1300_daily_bin1389.fits
.....................!
real 12.39
user 12.04
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/490868/ft1_filtered_4FGL_J2249.4-1300_daily_bin1389.fits evtable="EVENTS" scfile=/scratch/kocevski/490868/ft2_4FGL_J2249.4-1300_daily_bin1389.fits sctable="SC_DATA" expcube=/scratch/kocevski/490868/ltcube_599356801_599616001_4FGL_J2249.4-1300_daily_bin1389.fits outfile=/scratch/kocevski/490868/expmap_599356801_599616001_4FGL_J2249.4-1300_daily_bin1389.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/490868/ltcube_599356801_599616001_4FGL_J2249.4-1300_daily_bin1389.fits
.....................!
real 190.79
user 185.88
sys 4.60

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/490868/ft1_filtered_4FGL_J2249.4-1300_daily_bin1389.fits scfile=/scratch/kocevski/490868/ft2_4FGL_J2249.4-1300_daily_bin1389.fits outfile=/scratch/kocevski/490868/cmap_599356801_599616001_4FGL_J2249.4-1300_daily_bin1389.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/490868/ft1_filtered_4FGL_J2249.4-1300_daily_bin1389.fits scfile=/scratch/kocevski/490868/ft2_4FGL_J2249.4-1300_daily_bin1389.fits outfile=/scratch/kocevski/490868/cmap_HighResolution_599356801_599616001_4FGL_J2249.4-1300_daily_bin1389.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/490868/ft1_filtered_4FGL_J2249.4-1300_daily_bin1389.fits evtable="EVENTS" scfile=/scratch/kocevski/490868/ft2_4FGL_J2249.4-1300_daily_bin1389.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/490868/Model_4FGL_J2249.4-1300_daily_bin1389.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/490868/ft1_filtered_4FGL_J2249.4-1300_daily_bin1389.fits.....................!
real 67.30
user 66.02
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.732       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .92597       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2462       1.0000         .10000E-03   10000.    
     9 'norm      '    5.2688       1.0000         .10000E-03   10000.    
    10 'Prefactor '    111.06       1.0000         .10000E-03   10000.    
    11 'norm      '    .60005       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7919       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3599       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4573       1.0000         .10000E-03   10000.    
    15 'norm      '    12.714       1.0000         .10000E-03   10000.    
    16 'Prefactor '    72.776       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2070       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.400       1.0000         .10000E-03   10000.    
    19 'norm      '    .66734E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.192       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0369       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93150       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=   7626.770     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     3044 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.734        14.773       -.16857E-06   -.73591E-05
   2  Prefactor     .10000E-03    8.7514       -.56886E-08** at limit **
   3  Prefactor     .10000E-03    23.909        .37883E-07** at limit **
   4  Prefactor     .10000E-03    1.0518        .18604E-08** at limit **
   5  Prefactor     .10000E-03    77.096        .79466E-06** at limit **
   6  norm          .92568        2.4005        .97752E-07    .89349E-04
   7  Prefactor     .10000E-03    56.832       -.72943E-06** at limit **
   8  Prefactor     3.2454        9.1499       -.21420E-06    .12056E-04
   9  norm          5.2690        1.3928       -.15017E-07   -.11201E-03
  10  Prefactor     111.01        38.911        .74133E-06   -.96044E-04
  11  norm          .60108        1.8885       -.65161E-06   -.23555E-03
  12  Prefactor     1.9647        340.85       -.18119E-05   -.17040E-05
  13  Prefactor     6.3578        7.3513        .13097E-07   -.25796E-04
  14  Prefactor     2.4573        4.7224        .28961E-07    .90096E-05
  15  norm          12.714        11.700        .21778E-09   -.44443E-05
  16  Prefactor     72.480        105.88        .12469E-05   -.40708E-04
  17  Prefactor     2.2063        18.954        .28735E-05    .17024E-03
  18  Prefactor     16.481        20.502        .73255E-06   -.98766E-04
  19  norm          .10006E-03    6.3963        .65515E-06** at limit **
  20  Prefactor     .10000E-03    43.665        .39996E-06** at limit **
  21  Prefactor     10.188        15.807       -.27044E-06    .28155E-04
  22  Normalizat    1.0370        .22046        .24617E-05   -.33903E-04
  23  Prefactor     .93150        .15591       -.18656E-05   -.18894E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.7335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.925678
  Prefactor  = 0.0001
  Prefactor  = 3.24536
  norm       = 5.269
  Prefactor  = 111.01
  norm       = 0.601083
  Prefactor  = 1.96474
  Prefactor  = 6.35783
  Prefactor  = 2.45734
  norm       = 12.7138
  Prefactor  = 72.4801
  Prefactor  = 2.20628
  Prefactor  = 16.4813
  norm       = 0.000100061
  Prefactor  = 0.0001
  Prefactor  = 10.1879
  Normalizat = 1.03698
  Prefactor  = 0.931501
 **********
 **   18 **HESSE 
 **********

 FCN=   7626.770     FROM HESSE     STATUS=OK           376 CALLS     3420 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.734        14.811        .92541E-04   -1.4842    
   2  Prefactor     .10000E-03    8.8836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.0592        .87447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    77.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .92568        2.3670        .20796E-03   -1.5516    
   7  Prefactor     .10000E-03    56.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.2454        9.1505        .22480E-03   -1.5348    
   9  norm          5.2690        1.3918        .49744E-04   -1.5249    
  10  Prefactor     111.01        37.310        .38169E-04   -1.3597    
  11  norm          .60108        1.9070        .14073E-03   -1.5553    
  12  Prefactor     1.9647        277.96        .31244E-03   -1.5428    
  13  Prefactor     6.3578        7.3025        .15916E-03   -1.5204    
  14  Prefactor     2.4573        4.6964        .25601E-03   -1.5394    
  15  norm          12.714        11.703        .11234E-03   -1.4995    
  16  Prefactor     72.480        104.11        .23531E-03   -1.4003    
  17  Prefactor     2.2063        20.513        .13845E-02   -1.5411    
  18  Prefactor     16.481        19.735        .98900E-04   -1.4896    
  19  norm          .10006E-03    20.012        .36704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    43.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.188        15.863        .62755E-03   -1.5069    
  22  Normalizat    1.0370        .24039        .29467E-03   -.91802    
  23  Prefactor     .93150        .16868        .23577E-03   -.95049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26114e-09
Minuit parameter uncertainties:
  1  14.8142
  2  7.26492e-06
  3  4.14242e-07
  4  8.4085e-07
  5  2.69278e-05
  6  2.36728
  7  5.865e-05
  8  9.15447
  9  1.39183
  10  37.3177
  11  1.9072
  12  46.9614
  13  7.30349
  14  4.69713
  15  11.7052
  16  104.373
  17  13.4607
  18  19.7427
  19  0.00220505
  20  3.69374e-05
  21  15.8692
  22  0.240643
  23  0.168773
Done.

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

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  1.110e+02  3.732e+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.315e-01  1.688e-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.037e+00  2.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 56.80
Ra Dec: 342.356 -13.001
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.06e-07 +/- 1.36e-07
Energy Flux (Fixed Index): 1.32e-04 +/- 4.43e-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) = 7625.9040522
delta logL = 0.865775094166

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7625.87686206
delta logL = 0.892965230743

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.389       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6894       1.0000          .0000       10.000    
     3 'Normalizat'    .96748       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96912       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=   7625.877     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      274 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.428        34.694        .53421E-04   -.30360E-03
   2  Index         2.6893        .22797        .11966E-03   -.51838E-03
   3  Normalizat    .96740        .22403        .30311E-03    .34855E-03
   4  Prefactor     .96917        .16773        .23166E-03    .50660E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.4281
  Index      = 2.68929
  Normalizat = 0.967399
  Prefactor  = 0.969172
 **********
 **   18 **HESSE 
 **********

 FCN=   7625.877     FROM HESSE     STATUS=OK            23 CALLS      297 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.428        33.987        .10684E-04   -1.4204    
   2  Index         2.6893        .22332        .47863E-05   -.48041    
   3  Normalizat    .96740        .22405        .12124E-04   -.94131    
   4  Prefactor     .96917        .16779        .46332E-04   -.93764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36033e-10
Minuit parameter uncertainties:
  1  33.9986
  2  0.223419
  3  0.224268
  4  0.167876
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/490868': 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) = 7625.8768597
delta logL = 0.89296759048

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  5.643e+01  3.400e+01  1.000e-04  1.000e+04 ( 1.000e-14)
265        Index:  2.689e+00  2.234e-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.692e-01  1.679e-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.674e-01  2.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 61.19
Ra Dec: 342.356 -13.001
Photon Index (Free Index): 2.69 +/- 0.22
Photon Flux (Free Index): 4.67e-07 +/- 9.30e-08
Energy Flux (Free Index): 1.13e-04 +/- 2.30e-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/490868/cmap_HighResolution_599356801_599616001_4FGL_J2249.4-1300_daily_bin1389.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.06e-07', energy_flux2='1.13e-04', photon_flux_error='1.36e-07', dlogl='8.93e-01', energy_flux='1.32e-04', photon_flux2='4.67e-07', job_status='DONE', time_completed='2021-09-28 21:50:40.825073', photon_index_error2='0.22', photon_index2='2.69', ts='56.80', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.30e-05', EG='1.04', time_epoch_completed='1632891040.83', return_code='0', job_id='490868', GAL2='0.97', EG2='0.97', return_code2='0', energy_flux_error='4.43e-05', photon_flux_error2='9.30e-08', ts2='61.19', photon_index='2.41' WHERE bin_id='1389' AND source_name='4FGL J2249.4-1300' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:50:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 490868: <4FGL_J2249.4-1300_daily_bin1389> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2249.4-1300_daily_bin1389 342.356 -13.0006 599356801 599616001 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 :                                   659.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             246.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            914 sec.

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

