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


Performing analysis on: 4FGL_J2249.4-1300_daily_bin1587
RA = 342.356, Dec = -13.0006
tmin = 650678401, tmax = 650937601
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='491163', job_status='RUN', time_executed='2021-09-28 21:36:38.110065', time_epoch_executed='1632890198.11' WHERE source_name='4FGL J2249.4-1300' and cadence='daily' and bin_id='1587'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491163

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491163/ft1_4FGL_J2249.4-1300_daily_bin1587.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491163/ft2_4FGL_J2249.4-1300_daily_bin1587.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491163/ft1_4FGL_J2249.4-1300_daily_bin1587.fits outfile=/scratch/kocevski/491163/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin1587.fits ra=342.356 dec=-13.0006 rad=12.0 tmin=650678401.0 tmax=650937601.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/491163/ft2_4FGL_J2249.4-1300_daily_bin1587.fits

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/491163/ft1_filtered_4FGL_J2249.4-1300_daily_bin1587.fits" evtable="EVENTS" scfile=/scratch/kocevski/491163/ft2_4FGL_J2249.4-1300_daily_bin1587.fits sctable="SC_DATA" outfile=/scratch/kocevski/491163/ltcube_650678401_650937601_4FGL_J2249.4-1300_daily_bin1587.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/491163/ft2_4FGL_J2249.4-1300_daily_bin1587.fits
.....................!
real 11.56
user 11.19
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491163/ft1_filtered_4FGL_J2249.4-1300_daily_bin1587.fits evtable="EVENTS" scfile=/scratch/kocevski/491163/ft2_4FGL_J2249.4-1300_daily_bin1587.fits sctable="SC_DATA" expcube=/scratch/kocevski/491163/ltcube_650678401_650937601_4FGL_J2249.4-1300_daily_bin1587.fits outfile=/scratch/kocevski/491163/expmap_650678401_650937601_4FGL_J2249.4-1300_daily_bin1587.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/491163/ltcube_650678401_650937601_4FGL_J2249.4-1300_daily_bin1587.fits
.....................!
real 189.78
user 184.59
sys 4.84

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/491163/ft1_filtered_4FGL_J2249.4-1300_daily_bin1587.fits scfile=/scratch/kocevski/491163/ft2_4FGL_J2249.4-1300_daily_bin1587.fits outfile=/scratch/kocevski/491163/cmap_650678401_650937601_4FGL_J2249.4-1300_daily_bin1587.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=342.356 yref=-13.0006 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491163/ft1_filtered_4FGL_J2249.4-1300_daily_bin1587.fits scfile=/scratch/kocevski/491163/ft2_4FGL_J2249.4-1300_daily_bin1587.fits outfile=/scratch/kocevski/491163/cmap_HighResolution_650678401_650937601_4FGL_J2249.4-1300_daily_bin1587.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/491163/ft1_filtered_4FGL_J2249.4-1300_daily_bin1587.fits evtable="EVENTS" scfile=/scratch/kocevski/491163/ft2_4FGL_J2249.4-1300_daily_bin1587.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/491163/Model_4FGL_J2249.4-1300_daily_bin1587.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/491163/ft1_filtered_4FGL_J2249.4-1300_daily_bin1587.fits.....................!
real 44.52
user 43.14
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.479       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5882       1.0000         .10000E-03   10000.    
     3 'Prefactor '    114.65       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    78.694       1.0000         .10000E-03   10000.    
     6 'norm      '    4.9395       1.0000         .10000E-03   10000.    
     7 'Prefactor '    57.074       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.300       1.0000         .10000E-03   10000.    
     9 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12549E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    3.6805       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.213       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9712       1.0000         .10000E-03   10000.    
    15 'norm      '    20.686       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2788       1.0000         .10000E-03   10000.    
    19 'norm      '    .15703E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .97994       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0571       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=   4670.165     FROM MIGRAD    STATUS=CONVERGED    904 CALLS     2951 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.477        16.773        .12377E-03   -.41792E-04
   2  Prefactor     3.5859        13.478        .10666E-02   -.11689E-03
   3  Prefactor     114.65        116.06        .37573E-04   -.58457E-04
   4  Prefactor     .10000E-03    1.7989        .89245E-03** at limit **
   5  Prefactor     78.723        84.449        .45270E-04   -.13551E-03
   6  norm          4.9393        5.2813        .14560E-03   -.18271E-03
   7  Prefactor     57.053        85.342        .53101E-04   -.12717E-04
   8  Prefactor     14.299        15.863        .10592E-03   -.10197E-04
   9  norm          .10000E-03    1.8555        .12538E-02** at limit **
  10  Prefactor     .10000E-03    74.139        .72176E-01** at limit **
  11  norm          3.6784        2.9477        .55685E-04    .64107E-04
  12  Prefactor     13.175        40.877        .11019E-03   -.94711E-04
  13  Prefactor     .10000E-03    17.480        .18142E-02** at limit **
  14  Prefactor     5.9695        13.857        .16432E-03   -.29749E-04
  15  norm          20.684        13.252        .88064E-04   -.50347E-05
  16  Prefactor     .10000E-03    19.265        .18142E-02** at limit **
  17  Prefactor     .10000E-03    14.732        .18142E-02** at limit **
  18  Prefactor     5.2808        6.8767        .17494E-03   -.21498E-03
  19  norm          .10000E-03    12.302        .26399E-02** at limit **
  20  Prefactor     .10000E-03    80.591        .18142E-02** at limit **
  21  Prefactor     .10000E-03    76.698        .36285E-03** at limit **
  22  Normalizat    .97986        .28691        .29732E-03   -.26764E-03
  23  Prefactor     1.0572        .21940        .22131E-03   -.19557E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4767
  Prefactor  = 3.58595
  Prefactor  = 114.65
  Prefactor  = 0.0001
  Prefactor  = 78.7228
  norm       = 4.93932
  Prefactor  = 57.0527
  Prefactor  = 14.2987
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 3.67844
  Prefactor  = 13.1748
  Prefactor  = 0.0001
  Prefactor  = 5.96949
  norm       = 20.6844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.28076
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.979861
  Prefactor  = 1.05725
 **********
 **   18 **HESSE 
 **********

 FCN=   4670.165     FROM HESSE     STATUS=OK           356 CALLS     3307 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.477        16.773        .49510E-05   -1.5060    
   2  Prefactor     3.5859        13.473        .42666E-04   -1.5329    
   3  Prefactor     114.65        116.06        .75146E-05   -1.3562    
   4  Prefactor     .10000E-03    1.7989        .17849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     78.723        84.438        .90541E-05   -1.3931    
   6  norm          4.9393        5.2806        .58241E-05   -1.5263    
   7  Prefactor     57.053        85.345        .10620E-04   -1.4196    
   8  Prefactor     14.299        15.864        .42368E-05   -1.4952    
   9  norm          .10000E-03    1.8620        .25075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    54.270        .83603E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.6784        2.8486        .22274E-05   -1.5324    
  12  Prefactor     13.175        40.876        .44077E-05   -1.4982    
  13  Prefactor     .10000E-03    17.485        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.9695        13.856        .65729E-05   -1.5219    
  15  norm          20.684        13.252        .35226E-05   -1.4798    
  16  Prefactor     .10000E-03    19.265        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.733        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.2808        6.8733        .69975E-05   -1.5248    
  19  norm          .10000E-03    12.429        .52797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    80.599        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    76.701        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .97986        .28709        .59465E-04   -.93708    
  23  Prefactor     1.0572        .21953        .44262E-04   -.90845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.10631e-10
Minuit parameter uncertainties:
  1  16.7809
  2  13.4846
  3  116.292
  4  6.23413e-06
  5  84.5675
  6  5.2811
  7  85.5287
  8  15.8684
  9  2.96716e-05
  10  0.000792155
  11  2.84867
  12  40.9632
  13  0.000149404
  14  13.8634
  15  13.2537
  16  5.67233e-06
  17  3.56406e-06
  18  6.87431
  19  0.000341075
  20  6.08815e-05
  21  6.27056e-05
  22  0.28754
  23  0.219717
Done.

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

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  1.000e-04  7.922e-04  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.057e+00  2.197e-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.799e-01  2.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 342.356 -13.001
Photon Flux Upper Limit: 1.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/491163/likelihoodResults_650678401_650937601_4FGL_J2249.4-1300_daily_bin1587.txt

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): 102
logL (Free Index) = 4670.16516938
delta logL = -1.29233203552e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4670.16516938
delta logL = -1.29185918922e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96340E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4080       1.0000          .0000       10.000    
     3 'Normalizat'    .97985       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0573       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=   4670.165     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      249 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10096E-03    .18106        .11313    ** at limit **
   2  Index         2.1573        2.6844        .50000       -.32497E-05
   3  Normalizat    .97986        .43875E-03    .67216E-01    .25294E-04
   4  Prefactor     1.0572        .33951E-03    .39503E-01    .40032E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100963
  Index      = 2.15732
  Normalizat = 0.979865
  Prefactor  = 1.05725
 **********
 **   18 **HESSE 
 **********

 FCN=   4670.165     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      292 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10096E-03    .21252        .10397       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1573        2.7172        .50000       -.60473    
   3  Normalizat    .97986        .44453E-03    .29732E-03   -.93708    
   4  Prefactor     1.0572        .34441E-03    .22131E-03   -.90845    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10265e-11
Minuit parameter uncertainties:
  1  0.000904765
  2  2.96821
  3  0.000444533
  4  0.000344406
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491163': 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): 102
logL (Free Index) = 4670.16515643
delta logL = 2.54522092291e-08

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  1.010e-04  9.048e-04  1.000e-04  1.000e+04 ( 1.000e-14)
265        Index:  2.157e+00  2.968e+00  0.000e+00  1.000e+01 (-1.000e+00)
266        Scale:  3.479e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  1.057e+00  3.444e-04  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.799e-01  4.445e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 342.356 -13.001

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/491163/cmap_HighResolution_650678401_650937601_4FGL_J2249.4-1300_daily_bin1587.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', job_status='DONE', photon_flux_upper_limit='1.58e-07', time_completed='2021-09-28 21:45:45.945883', job_id='491163', GAL2='1.06', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632890745.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.55e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1587' AND source_name='4FGL J2249.4-1300' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:45:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 491163: <4FGL_J2249.4-1300_daily_bin1587> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2249.4-1300_daily_bin1587 342.356 -13.0006 650678401 650937601 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 :                                   544.09 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             272.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   593 sec.
    Turnaround time :                            595 sec.

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

