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


Performing analysis on: 4FGL_J2249.4-1300_daily_bin1481
RA = 342.356, Dec = -13.0006
tmin = 623203201, tmax = 623462401
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='491004', job_status='RUN', time_executed='2021-09-28 21:37:33.127916', time_epoch_executed='1632890253.13' WHERE source_name='4FGL J2249.4-1300' and cadence='daily' and bin_id='1481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491004

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491004/ft1_4FGL_J2249.4-1300_daily_bin1481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491004/ft2_4FGL_J2249.4-1300_daily_bin1481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491004/ft1_4FGL_J2249.4-1300_daily_bin1481.fits outfile=/scratch/kocevski/491004/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin1481.fits ra=342.356 dec=-13.0006 rad=12.0 tmin=623203201.0 tmax=623462401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.89
user 2.69
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/491004/ft1_filtered_4FGL_J2249.4-1300_daily_bin1481.fits" evtable="EVENTS" scfile=/scratch/kocevski/491004/ft2_4FGL_J2249.4-1300_daily_bin1481.fits sctable="SC_DATA" outfile=/scratch/kocevski/491004/ltcube_623203201_623462401_4FGL_J2249.4-1300_daily_bin1481.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/491004/ft2_4FGL_J2249.4-1300_daily_bin1481.fits
.....................!
real 12.46
user 12.06
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491004/ft1_filtered_4FGL_J2249.4-1300_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/491004/ft2_4FGL_J2249.4-1300_daily_bin1481.fits sctable="SC_DATA" expcube=/scratch/kocevski/491004/ltcube_623203201_623462401_4FGL_J2249.4-1300_daily_bin1481.fits outfile=/scratch/kocevski/491004/expmap_623203201_623462401_4FGL_J2249.4-1300_daily_bin1481.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/491004/ltcube_623203201_623462401_4FGL_J2249.4-1300_daily_bin1481.fits
.....................!
real 191.70
user 185.49
sys 5.68

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/491004/ft1_filtered_4FGL_J2249.4-1300_daily_bin1481.fits scfile=/scratch/kocevski/491004/ft2_4FGL_J2249.4-1300_daily_bin1481.fits outfile=/scratch/kocevski/491004/cmap_623203201_623462401_4FGL_J2249.4-1300_daily_bin1481.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/491004/ft1_filtered_4FGL_J2249.4-1300_daily_bin1481.fits scfile=/scratch/kocevski/491004/ft2_4FGL_J2249.4-1300_daily_bin1481.fits outfile=/scratch/kocevski/491004/cmap_HighResolution_623203201_623462401_4FGL_J2249.4-1300_daily_bin1481.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/491004/ft1_filtered_4FGL_J2249.4-1300_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/491004/ft2_4FGL_J2249.4-1300_daily_bin1481.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/491004/Model_4FGL_J2249.4-1300_daily_bin1481.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/491004/ft1_filtered_4FGL_J2249.4-1300_daily_bin1481.fits.....................!
real 32.03
user 30.57
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.771       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4123       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.5380       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5971       1.0000         .10000E-03   10000.    
     9 'norm      '    2.4976       1.0000         .10000E-03   10000.    
    10 'Prefactor '    92.055       1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    125.56       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .79094       1.0000         .10000E-03   10000.    
    15 'norm      '    28.073       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    143.66       1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.967       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .22752E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .67219       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92811       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=   2695.514     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2698 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.771        17.393        .11980E-06    .31525E-04
   2  Prefactor     1.3946        54.968        .10039E-05   -.45422E-04
   3  Prefactor     .10000E-03    67.181        .13696E-05** at limit **
   4  Prefactor     .10000E-03    6.3300       -.76387E-07** at limit **
   5  Prefactor     7.5502        271.99        .40835E-05    .18198E-04
   6  norm          .10000E-03    3.0472       -.29551E-07** at limit **
   7  Prefactor     .10000E-03    90.263        .61100E-05** at limit **
   8  Prefactor     7.5965        18.052        .52269E-06    .10469E-04
   9  norm          2.4978        1.9323        .69585E-07    .90923E-03
  10  Prefactor     91.999        52.378        .25132E-05    .11521E-02
  11  norm          .10001E-03    2.2821       -.46568E-05** at limit **
  12  Prefactor     125.62        114.03        .67092E-05    .61233E-03
  13  Prefactor     .10000E-03    34.621        .49003E-06** at limit **
  14  Prefactor     .79565        18.298       -.20312E-05    .24966E-03
  15  norm          28.101        59.672        .37105E-05    .67448E-04
  16  Prefactor     .10000E-03    116.33       -.15510E-05** at limit **
  17  Prefactor     143.64        68.819       -.13137E-05    .14403E-03
  18  Prefactor     32.966        29.317       -.82232E-07    .45681E-04
  19  norm          .10000E-03    11.656       -.56932E-08** at limit **
  20  Prefactor     .10000E-03    60.614       -.33086E-05** at limit **
  21  Prefactor     .10000E-03    201.57       -.16263E-04** at limit **
  22  Normalizat    .67232        .31650       -.23779E-05    .37047E-03
  23  Prefactor     .92798        .21956        .83719E-06    .50093E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.7708
  Prefactor  = 1.39459
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.55022
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 7.59652
  norm       = 2.49775
  Prefactor  = 91.9993
  norm       = 0.000100008
  Prefactor  = 125.619
  Prefactor  = 0.000100001
  Prefactor  = 0.79565
  norm       = 28.1008
  Prefactor  = 0.0001
  Prefactor  = 143.645
  Prefactor  = 32.966
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Normalizat = 0.67232
  Prefactor  = 0.927983
 **********
 **   18 **HESSE 
 **********

 FCN=   2695.514     FROM HESSE     STATUS=OK           364 CALLS     3062 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.771        17.401        .90078E-04   -1.4818    
   2  Prefactor     1.3946        55.639        .36446E-03   -1.5472    
   3  Prefactor     .10000E-03    67.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.3966        .12749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.5502        268.71        .14607E-03   -1.5158    
   6  norm          .10000E-03    3.0691        .88489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    90.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.5965        18.221        .14550E-03   -1.5157    
   9  norm          2.4978        1.9129        .56154E-04   -1.5392    
  10  Prefactor     91.999        54.051        .41884E-04   -1.3787    
  11  norm          .10001E-03    3.2490        .14400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     125.62        114.85        .35924E-04   -1.3462    
  13  Prefactor     .10000E-03    34.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .79565        53.689        .42047E-02   -1.5530    
  15  norm          28.101        59.716        .75613E-04   -1.4647    
  16  Prefactor     .10000E-03    116.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     143.64        68.591        .16808E-03   -1.3305    
  18  Prefactor     32.966        29.314        .69790E-04   -1.4559    
  19  norm          .10000E-03    11.667        .17312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    60.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    204.99        .40219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .67232        .36504        .33571E-03   -1.0500    
  23  Prefactor     .92798        .25614        .21630E-03   -.95170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.83645e-09
Minuit parameter uncertainties:
  1  17.405
  2  17.6344
  3  0.000219732
  4  8.53992e-07
  5  90.5272
  6  1.43828e-06
  7  0.00112791
  8  18.2344
  9  1.91297
  10  54.0803
  11  0.000314243
  12  115.051
  13  0.000331673
  14  13.0832
  15  59.8429
  16  0.000400811
  17  68.6294
  18  29.3263
  19  8.52875e-06
  20  0.000372334
  21  0.00160375
  22  0.366361
  23  0.256476
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  9.280e-01  2.565e-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.723e-01  3.664e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.41
Ra Dec: 342.356 -13.001
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 3.37e-07 +/- 1.98e-07
Energy Flux (Fixed Index): 1.09e-04 +/- 6.42e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2695.06177603
delta logL = 0.452317499943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2695.05106763
delta logL = 0.46302589483

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.982       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8699       1.0000          .0000       10.000    
     3 'Normalizat'    .57534       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98302       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=   2695.051     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      300 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.970        72.773        .70853E-04    .15548E-03
   2  Index         2.8700        .84765        .14617E-02    .40301E-04
   3  Normalizat    .57533        .36845        .35938E-03   -.22775E-03
   4  Prefactor     .98305        .27171        .21089E-03   -.93926E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.9698
  Index      = 2.87001
  Normalizat = 0.575326
  Prefactor  = 0.983054
 **********
 **   18 **HESSE 
 **********

 FCN=   2695.051     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.970        46.062        .28341E-05   -1.4577    
   2  Index         2.8700        .53720        .58467E-04   -.44007    
   3  Normalizat    .57533        .35120        .14375E-04   -1.0904    
   4  Prefactor     .98305        .26044        .42178E-04   -.93297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32076e-09
Minuit parameter uncertainties:
  1  46.113
  2  0.538475
  3  0.352568
  4  0.260769
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491004': 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) = 2695.05106745
delta logL = 0.46302607858

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  3.197e+01  4.611e+01  1.000e-04  1.000e+04 ( 1.000e-14)
265        Index:  2.870e+00  5.385e-01  0.000e+00  1.000e+01 (-1.000e+00)
266        Scale:  3.479e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  9.831e-01  2.608e-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:  5.753e-01  3.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.42
Ra Dec: 342.356 -13.001
Photon Index (Free Index): 2.87 +/- 0.54
Photon Flux (Free Index): 4.54e-07 +/- 2.03e-07
Energy Flux (Free Index): 9.73e-05 +/- 3.82e-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/491004/cmap_HighResolution_623203201_623462401_4FGL_J2249.4-1300_daily_bin1481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.37e-07', energy_flux2='9.73e-05', photon_flux_error='1.98e-07', dlogl='4.63e-01', energy_flux='1.09e-04', photon_flux2='4.54e-07', job_status='DONE', time_completed='2021-09-28 21:44:36.144281', photon_index_error2='0.54', photon_index2='2.87', ts='9.41', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='3.82e-05', EG='0.67', time_epoch_completed='1632890676.14', return_code='0', job_id='491004', GAL2='0.98', EG2='0.58', return_code2='0', energy_flux_error='6.42e-05', photon_flux_error2='2.03e-07', ts2='11.42', photon_index='2.41' WHERE bin_id='1481' AND source_name='4FGL J2249.4-1300' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:44:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 491004: <4FGL_J2249.4-1300_daily_bin1481> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2249.4-1300_daily_bin1481 342.356 -13.0006 623203201 623462401 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 :                                   414.21 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             271.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   538 sec.
    Turnaround time :                            539 sec.

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

