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


Performing analysis on: 4FGL_J2249.4-1300_daily_bin1140
RA = 342.356, Dec = -13.0006
tmin = 534816001, tmax = 535075201
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='489580', job_status='RUN', time_executed='2021-09-28 21:33:26.345087', time_epoch_executed='1632890006.35' WHERE source_name='4FGL J2249.4-1300' and cadence='daily' and bin_id='1140'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/489580

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/489580/ft1_4FGL_J2249.4-1300_daily_bin1140.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/489580/ft2_4FGL_J2249.4-1300_daily_bin1140.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/489580/ft1_4FGL_J2249.4-1300_daily_bin1140.fits outfile=/scratch/kocevski/489580/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin1140.fits ra=342.356 dec=-13.0006 rad=12.0 tmin=534816001.0 tmax=535075201.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.60
user 3.38
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/489580/ft1_filtered_4FGL_J2249.4-1300_daily_bin1140.fits" evtable="EVENTS" scfile=/scratch/kocevski/489580/ft2_4FGL_J2249.4-1300_daily_bin1140.fits sctable="SC_DATA" outfile=/scratch/kocevski/489580/ltcube_534816001_535075201_4FGL_J2249.4-1300_daily_bin1140.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/489580/ft2_4FGL_J2249.4-1300_daily_bin1140.fits
.....................!
real 15.95
user 15.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/489580/ft1_filtered_4FGL_J2249.4-1300_daily_bin1140.fits evtable="EVENTS" scfile=/scratch/kocevski/489580/ft2_4FGL_J2249.4-1300_daily_bin1140.fits sctable="SC_DATA" expcube=/scratch/kocevski/489580/ltcube_534816001_535075201_4FGL_J2249.4-1300_daily_bin1140.fits outfile=/scratch/kocevski/489580/expmap_534816001_535075201_4FGL_J2249.4-1300_daily_bin1140.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/489580/ltcube_534816001_535075201_4FGL_J2249.4-1300_daily_bin1140.fits
.....................!
real 192.10
user 187.09
sys 4.65

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/489580/ft1_filtered_4FGL_J2249.4-1300_daily_bin1140.fits scfile=/scratch/kocevski/489580/ft2_4FGL_J2249.4-1300_daily_bin1140.fits outfile=/scratch/kocevski/489580/cmap_534816001_535075201_4FGL_J2249.4-1300_daily_bin1140.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/489580/ft1_filtered_4FGL_J2249.4-1300_daily_bin1140.fits scfile=/scratch/kocevski/489580/ft2_4FGL_J2249.4-1300_daily_bin1140.fits outfile=/scratch/kocevski/489580/cmap_HighResolution_534816001_535075201_4FGL_J2249.4-1300_daily_bin1140.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8062       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.041       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .34870E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.8835       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.050       1.0000         .10000E-03   10000.    
     6 'norm      '    .99902       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11565E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .62746E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4557       1.0000         .10000E-03   10000.    
    11 'norm      '    70.860       1.0000         .10000E-03   10000.    
    12 'Prefactor '    62.983       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5602       1.0000         .10000E-03   10000.    
    15 'norm      '    48.419       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .93514E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .97882E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.6597       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .28346E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .29269E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .75169       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96320       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=   8683.876     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2427 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8080        7.1418        .79041E-07    .67506E-04
   2  Prefactor     9.8317        15.188       -.40117E-06   -.22181E-04
   3  Prefactor     .10000E-03    29.190       -.15887E-06** at limit **
   4  Prefactor     9.9237        5.3288        .22156E-06    .53868E-03
   5  Prefactor     24.925        42.229       -.12840E-06    .17285E-04
   6  norm          1.0017        2.5796        .99095E-07    .19694E-03
   7  Prefactor     .10000E-03    52.134        .54177E-06** at limit **
   8  Prefactor     .10013E-03    12.888       -.41561E-05** at limit **
   9  norm          .10000E-03    .41141       -.15822E-06** at limit **
  10  Prefactor     .10000E-03    339.50        .13980E-05** at limit **
  11  norm          71.075        5.4308        .29865E-06    .82786E-03
  12  Prefactor     63.001        87.554       -.64244E-05   -.16750E-03
  13  Prefactor     .10000E-03    3.6315        .83067E-07** at limit **
  14  Prefactor     5.6031        12.076        .12266E-06    .14894E-04
  15  norm          48.440        19.421        .16667E-06    .10241E-03
  16  Prefactor     .10000E-03    24.889        .16795E-06** at limit **
  17  Prefactor     .10000E-03    9.7959       -.11460E-07** at limit **
  18  Prefactor     .10000E-03    11.553        .19962E-05** at limit **
  19  norm          4.6516        6.3516        .93675E-06    .75292E-03
  20  Prefactor     .10000E-03    52.181        .13100E-06** at limit **
  21  Prefactor     .10000E-03    10.439       -.13955E-06** at limit **
  22  Normalizat    .75271        .20350       -.19323E-05    .22819E-03
  23  Prefactor     .96213        .15528        .14554E-05    .46398E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.80797
  Prefactor  = 9.83166
  Prefactor  = 0.0001
  Prefactor  = 9.92371
  Prefactor  = 24.9249
  norm       = 1.00172
  Prefactor  = 0.0001
  Prefactor  = 0.000100129
  norm       = 0.0001
  Prefactor  = 0.000100005
  norm       = 71.0749
  Prefactor  = 63.0005
  Prefactor  = 0.0001
  Prefactor  = 5.6031
  norm       = 48.4397
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.65164
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.752713
  Prefactor  = 0.962133
 **********
 **   18 **HESSE 
 **********

 FCN=   8683.876     FROM HESSE     STATUS=OK           368 CALLS     2795 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8080        7.1395        .14352E-03   -1.5149    
   2  Prefactor     9.8317        15.189        .12645E-03   -1.5081    
   3  Prefactor     .10000E-03    29.217        .19659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.9237        5.3399        .63731E-03   -1.5078    
   5  Prefactor     24.925        42.173        .83431E-04   -1.4709    
   6  norm          1.0017        2.5427        .22958E-03   -1.5508    
   7  Prefactor     .10000E-03    52.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10013E-03    26.570        .41144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .87611        .11511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    340.61        .13050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          71.075        5.5315        .42127E-04   -1.4020    
  12  Prefactor     63.001        90.727        .25282E-03   -1.4119    
  13  Prefactor     .10000E-03    3.6340        .17345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6031        12.055        .17038E-03   -1.5235    
  15  norm          48.440        19.414        .57627E-04   -1.4315    
  16  Prefactor     .10000E-03    24.929        .20806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.8030        .20776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.052        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.6516        6.5424        .93219E-03   -1.5277    
  20  Prefactor     .10000E-03    52.432        .19889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.506        .21400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .75271        .22550        .37790E-03   -1.0185    
  23  Prefactor     .96213        .17682        .26567E-03   -.94003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14444e-09
Minuit parameter uncertainties:
  1  7.14029
  2  15.1952
  3  3.69382e-05
  4  5.34019
  5  42.2234
  6  2.54294
  7  0.000152382
  8  0.00369734
  9  1.64167e-07
  10  0.00253275
  11  5.53151
  12  90.927
  13  1.05782e-05
  14  12.0605
  15  19.4167
  16  3.01544e-05
  17  1.09077e-06
  18  0.000259399
  19  6.54343
  20  4.07624e-05
  21  1.77222e-05
  22  0.22578
  23  0.176928
Done.

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

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  1.000e-04  2.533e-03  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.621e-01  1.769e-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:  7.527e-01  2.258e-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: 2.86e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/489580/likelihoodResults_534816001_535075201_4FGL_J2249.4-1300_daily_bin1140.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) = 8683.87606815
delta logL = -1.38647756103e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8683.87606815
delta logL = -1.38633185998e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96361E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4081       1.0000          .0000       10.000    
     3 'Normalizat'    .75271       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96214       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=   8683.089     FROM MIGRAD    STATUS=CONVERGED    247 CALLS      397 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45738E-02    .42943E-01    .90712E-03    .25721E-01
   2  Index         5.3016        1.4215        .62600E-01    .40897E-03
   3  Normalizat    .67649        .40108E-01    .89017E-01   -.31292E-04
   4  Prefactor     .99890        .31861E-01    .45792E-01   -.60822E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00457383
  Index      = 5.30156
  Normalizat = 0.676487
  Prefactor  = 0.998901
 **********
 **   18 **HESSE 
 **********

 FCN=   8683.089     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      430 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45738E-02    .15470        .48840E-05   -1.5695    
   2  Index         5.3016        3.1284        .34034E-02    .60348E-01
   3  Normalizat    .67649        .17601        .39443E-03   -1.0483    
   4  Prefactor     .99890        .13785        .26067E-03   -.92766    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.22489e-06
Minuit parameter uncertainties:
  1  0.0526166
  2  3.38115
  3  0.17616
  4  0.137898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/489580': 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) = 8683.08883894
delta logL = 0.787215352271

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  4.574e-03  5.262e-02  1.000e-04  1.000e+04 ( 1.000e-14)
265        Index:  5.302e+00  3.381e+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:  9.989e-01  1.379e-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:  6.765e-01  1.762e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.67
Ra Dec: 342.356 -13.001
Photon Index (Free Index): 5.30 +/- 3.38
Photon Flux (Free Index): 1.59e-07 +/- 1.31e-07
Energy Flux (Free Index): 2.07e-05 +/- 1.92e-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/489580/cmap_HighResolution_534816001_535075201_4FGL_J2249.4-1300_daily_bin1140.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.21e-02', comment='SUCCESS', energy_flux2='2.07e-05', dlogl='7.87e-01', photon_flux2='1.59e-07', job_status='DONE', time_completed='2021-09-28 21:47:09.516887', photon_index_error2='3.38', photon_index2='5.30', ts='-0.00', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='2.86e-07', energy_flux_error2='1.92e-05', EG='0.75', time_epoch_completed='1632890829.52', return_code='0', job_id='489580', GAL2='1.00', EG2='0.68', return_code2='102', photon_flux_error2='1.31e-07', ts2='1.67', photon_index='2.41' WHERE bin_id='1140' AND source_name='4FGL J2249.4-1300' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:47:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 489580: <4FGL_J2249.4-1300_daily_bin1140> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2249.4-1300_daily_bin1140 342.356 -13.0006 534816001 535075201 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 :                                   813.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            970 sec.

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

