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


Performing analysis on: 4FGL_J2249.4-1300_daily_bin1531
RA = 342.356, Dec = -13.0006
tmin = 636163201, tmax = 636422401
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='491078', job_status='RUN', time_executed='2021-09-28 21:39:53.996892', time_epoch_executed='1632890394.0' WHERE source_name='4FGL J2249.4-1300' and cadence='daily' and bin_id='1531'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491078

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491078/ft1_4FGL_J2249.4-1300_daily_bin1531.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491078/ft2_4FGL_J2249.4-1300_daily_bin1531.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491078/ft1_4FGL_J2249.4-1300_daily_bin1531.fits outfile=/scratch/kocevski/491078/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin1531.fits ra=342.356 dec=-13.0006 rad=12.0 tmin=636163201.0 tmax=636422401.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.67
user 3.45
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/491078/ft2_4FGL_J2249.4-1300_daily_bin1531.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/491078/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin1531.fits evtable="EVENTS" outfile="/scratch/kocevski/491078/ft1_filtered_4FGL_J2249.4-1300_daily_bin1531.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/491078/ft1_filtered_4FGL_J2249.4-1300_daily_bin1531.fits" evtable="EVENTS" scfile=/scratch/kocevski/491078/ft2_4FGL_J2249.4-1300_daily_bin1531.fits sctable="SC_DATA" outfile=/scratch/kocevski/491078/ltcube_636163201_636422401_4FGL_J2249.4-1300_daily_bin1531.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/491078/ft2_4FGL_J2249.4-1300_daily_bin1531.fits
.....................!
real 11.91
user 11.55
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491078/ft1_filtered_4FGL_J2249.4-1300_daily_bin1531.fits evtable="EVENTS" scfile=/scratch/kocevski/491078/ft2_4FGL_J2249.4-1300_daily_bin1531.fits sctable="SC_DATA" expcube=/scratch/kocevski/491078/ltcube_636163201_636422401_4FGL_J2249.4-1300_daily_bin1531.fits outfile=/scratch/kocevski/491078/expmap_636163201_636422401_4FGL_J2249.4-1300_daily_bin1531.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/491078/ltcube_636163201_636422401_4FGL_J2249.4-1300_daily_bin1531.fits
.....................!
real 189.82
user 184.76
sys 4.74

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/491078/ft1_filtered_4FGL_J2249.4-1300_daily_bin1531.fits scfile=/scratch/kocevski/491078/ft2_4FGL_J2249.4-1300_daily_bin1531.fits outfile=/scratch/kocevski/491078/cmap_636163201_636422401_4FGL_J2249.4-1300_daily_bin1531.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491078/ft1_filtered_4FGL_J2249.4-1300_daily_bin1531.fits scfile=/scratch/kocevski/491078/ft2_4FGL_J2249.4-1300_daily_bin1531.fits outfile=/scratch/kocevski/491078/cmap_HighResolution_636163201_636422401_4FGL_J2249.4-1300_daily_bin1531.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=342.356 yref=-13.0006 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/491078/ft1_filtered_4FGL_J2249.4-1300_daily_bin1531.fits evtable="EVENTS" scfile=/scratch/kocevski/491078/ft2_4FGL_J2249.4-1300_daily_bin1531.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/491078/Model_4FGL_J2249.4-1300_daily_bin1531.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/491078/ft1_filtered_4FGL_J2249.4-1300_daily_bin1531.fits.....................!
real 58.84
user 57.50
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.4675       1.0000         .10000E-03   10000.    
     7 'Prefactor '    48.838       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.575       1.0000         .10000E-03   10000.    
     9 'norm      '    .57211       1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.376       1.0000         .10000E-03   10000.    
    11 'norm      '    .51615       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.342       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1101       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.906       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.5398       1.0000         .10000E-03   10000.    
    19 'norm      '    .76544E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1307       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.4393       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6603.327     FROM MIGRAD    STATUS=CONVERGED    103 CALLS     2798 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.594       -.19150E-04** at limit **
   2  Prefactor     .10000E-03    8.4914        .59852E-07** at limit **
   3  Prefactor     .10001E-03    254.20       -.23429E-03** at limit **
   4  Prefactor     .10000E-03    6.1408        .50070E-07** at limit **
   5  Prefactor     .10000E-03    49.415       -.81271E-04** at limit **
   6  norm          6.4677        5.6704        .25339E-05   -.20393E-03
   7  Prefactor     48.839        1.1065        .68521E-06   -.49589E-03
   8  Prefactor     14.576        1.0110        .11686E-06    .44487E-04
   9  norm          .57202        1.0510       -.13367E-06   -.27458E-03
  10  Prefactor     35.389        2.2719        .24015E-05   -.16593E-03
  11  norm          .51610        1.1974        .24113E-06    .18472E-03
  12  Prefactor     21.336        2.1365       -.41494E-05    .10671E-02
  13  Prefactor     7.1101        1.0045       -.19852E-07   -.29241E-04
  14  Prefactor     .10000E-03    6.8220        .47980E-06** at limit **
  15  norm          .10000E-03    15.364        .12483E-04** at limit **
  16  Prefactor     30.910        1.3963        .17009E-05   -.68463E-03
  17  Prefactor     .10000E-03    13.103       -.28512E-05** at limit **
  18  Prefactor     9.5350        1.2800        .10889E-06   -.56862E-03
  19  norm          .85410E-01    2.5002       -.90711E-05    .30772E-03
  20  Prefactor     .10002E-03    90.981        .13718E-03** at limit **
  21  Prefactor     .10000E-03    32.223        .41366E-04** at limit **
  22  Normalizat    1.1305        .26761       -.16107E-05   -.19222E-03
  23  Prefactor     1.4393        .20919       -.33628E-06   -.22845E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 6.46765
  Prefactor  = 48.8394
  Prefactor  = 14.576
  norm       = 0.572022
  Prefactor  = 35.3894
  norm       = 0.516101
  Prefactor  = 21.3358
  Prefactor  = 7.11005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.9098
  Prefactor  = 0.0001
  Prefactor  = 9.53497
  norm       = 0.0854096
  Prefactor  = 0.000100016
  Prefactor  = 0.000100001
  Normalizat = 1.1305
  Prefactor  = 1.43933
 **********
 **   18 **HESSE 
 **********

 FCN=   6603.327     FROM HESSE     STATUS=OK           424 CALLS     3222 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.309        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.4705        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    255.75        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.9765        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    49.367        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.4677        5.9693        .39453E-02   -1.5199    
   7  Prefactor     48.839        141.41        .14345E-02   -1.4309    
   8  Prefactor     14.576        16.971        .26228E-02   -1.4944    
   9  norm          .57202        1.0899        .11562E-01   -1.5557    
  10  Prefactor     35.389        41.478        .16845E-02   -1.4517    
  11  norm          .51610        2.6410        .11337E-01   -1.5564    
  12  Prefactor     21.336        47.179        .21676E-02   -1.4784    
  13  Prefactor     7.1101        9.2584        .37610E-02   -1.5175    
  14  Prefactor     .10000E-03    6.8007        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    15.229        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.910        63.561        .18018E-02   -1.4595    
  17  Prefactor     .10000E-03    13.095        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.5350        11.889        .32437E-02   -1.5090    
  19  norm          .85410E-01    5.8987        .65177E-01   -1.5650    
  20  Prefactor     .10002E-03    91.907        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    31.962        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1305        .23876        .75775E-01   -.88779    
  23  Prefactor     1.4393        .17898        .52888E-01   -.79253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.86712e-08
Minuit parameter uncertainties:
  1  0.000152178
  2  4.49753e-06
  3  0.00336741
  4  2.90453e-06
  5  0.000327794
  6  5.9698
  7  142.399
  8  16.9764
  9  1.08993
  10  41.5118
  11  2.3349
  12  47.2615
  13  9.26022
  14  1.11614e-05
  15  5.92086e-05
  16  63.7007
  17  3.31047e-05
  18  11.8919
  19  1.41889
  20  0.00240414
  21  0.000383549
  22  0.238986
  23  0.179055
Done.

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

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  3.539e+01  4.151e+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.439e+00  1.791e-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.130e+00  2.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.93
Ra Dec: 342.356 -13.001
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.30e-07 +/- 1.52e-07
Energy Flux (Fixed Index): 4.20e-05 +/- 4.93e-05

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

Saving results to:
/scratch/kocevski/491078/likelihoodResults_636163201_636422401_4FGL_J2249.4-1300_daily_bin1531.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) = 6601.68989765
delta logL = 1.63697578278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6601.39541584
delta logL = 1.93145758758

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26876E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    4.8926       1.0000          .0000       10.000    
     3 'Normalizat'    .97520       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5410       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=   6601.395     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      335 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26298E-01    .15600        .91566E-03    .53263E-02
   2  Index         4.8991        1.3535        .44593E-01    .33571E-03
   3  Normalizat    .97614        .87970E-01    .80567E-01   -.24055E-04
   4  Prefactor     1.5403        .67482E-01    .51483E-01   -.11491E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0262984
  Index      = 4.89914
  Normalizat = 0.97614
  Prefactor  = 1.54031
 **********
 **   18 **HESSE 
 **********

 FCN=   6601.395     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      366 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26298E-01    .23788        .54166E-05   -1.5676    
   2  Index         4.8991        1.7692        .18780E-02   -.20174E-01
   3  Normalizat    .97614        .24743        .35662E-03   -.93834    
   4  Prefactor     1.5403        .18935        .22759E-03   -.76417    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04563e-10
Minuit parameter uncertainties:
  1  0.157889
  2  1.80841
  3  0.247724
  4  0.189435
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491078': 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) = 6601.39540123
delta logL = 1.93147219461

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  2.630e-02  1.579e-01  1.000e-04  1.000e+04 ( 1.000e-14)
265        Index:  4.899e+00  1.808e+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.540e+00  1.894e-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.761e-01  2.477e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.45
Ra Dec: 342.356 -13.001
Photon Index (Free Index): 4.90 +/- 1.81
Photon Flux (Free Index): 2.42e-07 +/- 1.04e-07
Energy Flux (Free Index): 3.24e-05 +/- 1.52e-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/491078/cmap_HighResolution_636163201_636422401_4FGL_J2249.4-1300_daily_bin1531.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-02', comment='SUCCESS', photon_flux='1.30e-07', energy_flux2='3.24e-05', photon_flux_error='1.52e-07', dlogl='1.93e+00', energy_flux='4.20e-05', photon_flux2='2.42e-07', job_status='DONE', time_completed='2021-09-28 21:50:44.308549', photon_index_error2='1.81', photon_index2='4.90', ts='3.93', fit_tolerance='1e-08', GAL='1.44', photon_index_error='0.00', photon_flux_upper_limit='2.69e-07', energy_flux_error2='1.52e-05', EG='1.13', time_epoch_completed='1632891044.31', return_code='0', job_id='491078', GAL2='1.54', EG2='0.98', return_code2='102', energy_flux_error='4.93e-05', photon_flux_error2='1.04e-07', ts2='8.45', photon_index='2.41' WHERE bin_id='1531' AND source_name='4FGL J2249.4-1300' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:50:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 491078: <4FGL_J2249.4-1300_daily_bin1531> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2249.4-1300_daily_bin1531 342.356 -13.0006 636163201 636422401 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 :                                   649.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             237.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            902 sec.

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

