/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 37 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 = 7375
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2249.4-1300_daily_bin180
RA = 342.356, Dec = -13.0006
tmin = 285984001, tmax = 286243201
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='485297', job_status='RUN', time_executed='2021-09-28 21:16:32.695276', time_epoch_executed='1632888992.7' WHERE source_name='4FGL J2249.4-1300' and cadence='daily' and bin_id='180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/485297

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/485297/ft1_4FGL_J2249.4-1300_daily_bin180.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/485297/ft2_4FGL_J2249.4-1300_daily_bin180.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/485297/ft1_4FGL_J2249.4-1300_daily_bin180.fits outfile=/scratch/kocevski/485297/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin180.fits ra=342.356 dec=-13.0006 rad=12.0 tmin=285984001.0 tmax=286243201.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.41
user 3.19
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/485297/ft1_filtered_4FGL_J2249.4-1300_daily_bin180.fits" evtable="EVENTS" scfile=/scratch/kocevski/485297/ft2_4FGL_J2249.4-1300_daily_bin180.fits sctable="SC_DATA" outfile=/scratch/kocevski/485297/ltcube_285984001_286243201_4FGL_J2249.4-1300_daily_bin180.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/485297/ft2_4FGL_J2249.4-1300_daily_bin180.fits
.....................!
real 11.68
user 11.16
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/485297/ft1_filtered_4FGL_J2249.4-1300_daily_bin180.fits evtable="EVENTS" scfile=/scratch/kocevski/485297/ft2_4FGL_J2249.4-1300_daily_bin180.fits sctable="SC_DATA" expcube=/scratch/kocevski/485297/ltcube_285984001_286243201_4FGL_J2249.4-1300_daily_bin180.fits outfile=/scratch/kocevski/485297/expmap_285984001_286243201_4FGL_J2249.4-1300_daily_bin180.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/485297/ltcube_285984001_286243201_4FGL_J2249.4-1300_daily_bin180.fits
.....................!
real 190.54
user 185.77
sys 4.46

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/485297/ft1_filtered_4FGL_J2249.4-1300_daily_bin180.fits scfile=/scratch/kocevski/485297/ft2_4FGL_J2249.4-1300_daily_bin180.fits outfile=/scratch/kocevski/485297/cmap_285984001_286243201_4FGL_J2249.4-1300_daily_bin180.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/485297/ft1_filtered_4FGL_J2249.4-1300_daily_bin180.fits scfile=/scratch/kocevski/485297/ft2_4FGL_J2249.4-1300_daily_bin180.fits outfile=/scratch/kocevski/485297/cmap_HighResolution_285984001_286243201_4FGL_J2249.4-1300_daily_bin180.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.662       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1407       1.0000         .10000E-03   10000.    
     3 'Prefactor '    71.921       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.402       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6882       1.0000         .10000E-03   10000.    
     6 'norm      '    2.2669       1.0000         .10000E-03   10000.    
     7 'Prefactor '    90.301       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9769       1.0000         .10000E-03   10000.    
     9 'norm      '    1.0677       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4262       1.0000         .10000E-03   10000.    
    11 'norm      '    .13517E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2459       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8654       1.0000         .10000E-03   10000.    
    15 'norm      '    4.4574       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.3718       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.330       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11070E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .81673       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0225       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6941.539     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     3034 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.662        13.829         .0000        .25203E-03
   2  Prefactor     8.1408        15.439         .0000        .17321E-03
   3  Prefactor     71.921        87.692         .0000        .52606E-03
   4  Prefactor     12.402        5.4873         .0000        .12893E-02
   5  Prefactor     6.6883        35.897         .0000        .31111E-03
   6  norm          2.2664        3.8207         .0000        .63495E-03
   7  Prefactor     90.301        73.801         .0000        .25047E-04
   8  Prefactor     5.9769        9.5363         .0000        .11819E-03
   9  norm          1.0676        .63327         .0000       -.11306E-03
  10  Prefactor     3.4288        4.6356         .0000       -.91127E-03
  11  norm          .10000E-03    .40732         .0000    ** at limit **
  12  Prefactor     .10000E-03    3.9208         .0000    ** at limit **
  13  Prefactor     8.2459        8.8132         .0000        .20545E-02
  14  Prefactor     1.8655        5.6863         .0000        .18258E-01
  15  norm          4.4575        11.728         .0000        .12188E-03
  16  Prefactor     .10000E-03    25.026         .0000    ** at limit **
  17  Prefactor     9.3711        19.019         .0000        .10884E-03
  18  Prefactor     .10000E-03    4.5035         .0000    ** at limit **
  19  norm          .10000E-03    1.6208         .0000    ** at limit **
  20  Prefactor     20.329        34.244         .0000        .11238E-03
  21  Prefactor     .10000E-03    21.551         .0000    ** at limit **
  22  Normalizat    .81674        .17225         .0000       -.36998E-04
  23  Prefactor     1.0225        .13712         .0000       -.25917E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.6621
  Prefactor  = 8.14082
  Prefactor  = 71.9205
  Prefactor  = 12.4021
  Prefactor  = 6.68826
  norm       = 2.26636
  Prefactor  = 90.3012
  Prefactor  = 5.97692
  norm       = 1.06761
  Prefactor  = 3.42882
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 8.24593
  Prefactor  = 1.86549
  norm       = 4.45755
  Prefactor  = 0.000100001
  Prefactor  = 9.3711
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.329
  Prefactor  = 0.0001
  Normalizat = 0.816736
  Prefactor  = 1.02245
 **********
 **   18 **HESSE 
 **********

 FCN=   6941.539     FROM HESSE     STATUS=OK           380 CALLS     3414 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.662        13.835        .86058E-04   -1.4777    
   2  Prefactor     8.1408        15.398        .14052E-03   -1.5137    
   3  Prefactor     71.921        87.150        .47338E-04   -1.4010    
   4  Prefactor     12.402        5.4687        .11375E-03   -1.5003    
   5  Prefactor     6.6883        35.885        .77580E-03   -1.5191    
   6  norm          2.2664        3.7614        .18741E-03   -1.5407    
   7  Prefactor     90.301        73.649        .42285E-04   -1.3805    
   8  Prefactor     5.9769        9.5461        .16424E-03   -1.5219    
   9  norm          1.0676        .62492        .49168E-04   -1.5501    
  10  Prefactor     3.4288        4.7226        .17968E-03   -1.5338    
  11  norm          .10000E-03    .42265        .16619E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.9226        .16111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.2459        8.8170        .69806E-03   -1.5134    
  14  Prefactor     1.8655        5.6695        .15251E-02   -1.5435    
  15  norm          4.4575        11.718        .19072E-03   -1.5286    
  16  Prefactor     .10000E-03    25.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.3711        19.007        .13091E-03   -1.5096    
  18  Prefactor     .10000E-03    4.6130        .17261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.6310        .10357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.329        34.166        .88831E-04   -1.4806    
  21  Prefactor     .10000E-03    21.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .81674        .19815        .27537E-03   -.99451    
  23  Prefactor     1.0225        .15899        .20305E-03   -.91985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63552e-09
Minuit parameter uncertainties:
  1  13.8374
  2  15.4051
  3  87.3056
  4  5.46889
  5  31.0131
  6  3.76177
  7  73.7237
  8  9.54852
  9  0.624919
  10  4.72312
  11  6.97506e-05
  12  8.01972e-05
  13  8.81841
  14  5.6711
  15  11.7241
  16  0.000231702
  17  19.0193
  18  7.96003e-05
  19  2.45392e-05
  20  34.1989
  21  5.20296e-06
  22  0.198327
  23  0.159063
Done.

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

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  3.429e+00  4.723e+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

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  1.022e+00  1.591e-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.167e-01  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.77
Ra Dec: 342.356 -13.001
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.26e-08 +/- 1.73e-08
Energy Flux (Fixed Index): 4.07e-06 +/- 5.61e-06

TS (Fixed Index): 1.77
Ra Dec: 342.356 -13.001
Photon Flux Upper Limit: 6.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/485297/likelihoodResults_285984001_286243201_4FGL_J2249.4-1300_daily_bin180.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): 0
logL (Free Index) = 6940.68122446
delta logL = 0.857352628756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6940.67325214
delta logL = 0.865324944682

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.468       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4238       1.0000          .0000       10.000    
     3 'Normalizat'    .82479       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0187       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=   6940.673     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      317 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.470        17.181        .10184E-03    .11275E-04
   2  Index         1.4237        .65073        .12166E-01    .16552E-03
   3  Normalizat    .82483        .18973        .27411E-03   -.12442E-04
   4  Prefactor     1.0187        .15579        .20332E-03   -.16775E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.4699
  Index      = 1.4237
  Normalizat = 0.824834
  Prefactor  = 1.01867
 **********
 **   18 **HESSE 
 **********

 FCN=   6940.673     FROM HESSE     STATUS=OK            25 CALLS      342 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.470        17.032        .40735E-05   -1.4921    
   2  Index         1.4237        .64552        .24332E-02   -.79700    
   3  Normalizat    .82483        .18991        .10965E-04   -.99154    
   4  Prefactor     1.0187        .15594        .81328E-05   -.92110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0088e-12
Minuit parameter uncertainties:
  1  17.0374
  2  0.649244
  3  0.19006
  4  0.156007
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/485297': 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) = 6940.67325208
delta logL = 0.865325012339

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  1.547e+01  1.704e+01  1.000e-04  1.000e+04 ( 1.000e-14)
265        Index:  1.424e+00  6.492e-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.019e+00  1.560e-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.248e-01  1.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.50
Ra Dec: 342.356 -13.001
Photon Index (Free Index): 1.42 +/- 0.65
Photon Flux (Free Index): 5.41e-09 +/- 7.11e-09
Energy Flux (Free Index): 2.21e-05 +/- 3.89e-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/485297/cmap_HighResolution_285984001_286243201_4FGL_J2249.4-1300_daily_bin180.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-03', comment='SUCCESS', photon_flux='1.26e-08', energy_flux2='2.21e-05', photon_flux_error='1.73e-08', dlogl='8.65e-01', energy_flux='4.07e-06', photon_flux2='5.41e-09', job_status='DONE', time_completed='2021-09-28 21:27:58.987596', photon_index_error2='0.65', photon_index2='1.42', ts='1.77', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='6.23e-08', energy_flux_error2='3.89e-05', EG='0.82', time_epoch_completed='1632889678.99', return_code='0', job_id='485297', GAL2='1.02', EG2='0.82', return_code2='0', energy_flux_error='5.61e-06', photon_flux_error2='7.11e-09', ts2='3.50', photon_index='2.41' WHERE bin_id='180' AND source_name='4FGL J2249.4-1300' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:27:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 485297: <4FGL_J2249.4-1300_daily_bin180> in cluster <slac> Done

Job <4FGL_J2249.4-1300_daily_bin180> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 21:15:47 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:15:49 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:15:49 2021
Terminated at Tue Sep 28 21:27:59 2021
Results reported at Tue Sep 28 21:27:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2249.4-1300_daily_bin180 342.356 -13.0006 285984001 286243201 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 :                                   682.21 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             340.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            732 sec.

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

