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


Performing analysis on: 4FGL_J1249.3-0545_daily_bin374
RA = 192.326, Dec = -5.7621
tmin = 336268801, tmax = 336528001
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='926567', job_status='RUN', time_executed='2021-09-06 06:01:25.265433', time_epoch_executed='1630933285.27' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='374'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/926567

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/926567/ft1_4FGL_J1249.3-0545_daily_bin374.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/926567/ft2_4FGL_J1249.3-0545_daily_bin374.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/926567/ft1_4FGL_J1249.3-0545_daily_bin374.fits outfile=/scratch/kocevski/926567/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin374.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=336268801.0 tmax=336528001.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 7.43
user 6.74
sys 0.49

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/926567/ft2_4FGL_J1249.3-0545_daily_bin374.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/926567/ft2_4FGL_J1249.3-0545_daily_bin374.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/926567/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin374.fits evtable="EVENTS" outfile="/scratch/kocevski/926567/ft1_filtered_4FGL_J1249.3-0545_daily_bin374.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.94
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/926567/ft1_filtered_4FGL_J1249.3-0545_daily_bin374.fits" evtable="EVENTS" scfile=/scratch/kocevski/926567/ft2_4FGL_J1249.3-0545_daily_bin374.fits sctable="SC_DATA" outfile=/scratch/kocevski/926567/ltcube_336268801_336528001_4FGL_J1249.3-0545_daily_bin374.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/926567/ft2_4FGL_J1249.3-0545_daily_bin374.fits
.....................!
real 11.36
user 11.01
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/926567/ft1_filtered_4FGL_J1249.3-0545_daily_bin374.fits evtable="EVENTS" scfile=/scratch/kocevski/926567/ft2_4FGL_J1249.3-0545_daily_bin374.fits sctable="SC_DATA" expcube=/scratch/kocevski/926567/ltcube_336268801_336528001_4FGL_J1249.3-0545_daily_bin374.fits outfile=/scratch/kocevski/926567/expmap_336268801_336528001_4FGL_J1249.3-0545_daily_bin374.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/926567/ltcube_336268801_336528001_4FGL_J1249.3-0545_daily_bin374.fits
.....................!
real 190.34
user 185.86
sys 4.09

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 199 point sources and 0 extended sources

Setting source of interest to:
4FGL J1249.3-0545 @ 192.326 -5.7621

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/926567/ft1_filtered_4FGL_J1249.3-0545_daily_bin374.fits scfile=/scratch/kocevski/926567/ft2_4FGL_J1249.3-0545_daily_bin374.fits outfile=/scratch/kocevski/926567/cmap_336268801_336528001_4FGL_J1249.3-0545_daily_bin374.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=192.326 yref=-5.7621 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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/926567/ft1_filtered_4FGL_J1249.3-0545_daily_bin374.fits scfile=/scratch/kocevski/926567/ft2_4FGL_J1249.3-0545_daily_bin374.fits outfile=/scratch/kocevski/926567/cmap_HighResolution_336268801_336528001_4FGL_J1249.3-0545_daily_bin374.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=192.326 yref=-5.7621 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/926567/ft1_filtered_4FGL_J1249.3-0545_daily_bin374.fits evtable="EVENTS" scfile=/scratch/kocevski/926567/ft2_4FGL_J1249.3-0545_daily_bin374.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/926567/Model_4FGL_J1249.3-0545_daily_bin374.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/926567/ft1_filtered_4FGL_J1249.3-0545_daily_bin374.fits.....................!
real 55.67
user 54.39
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/926567/ft1_filtered_4FGL_J1249.3-0545_daily_bin374.fits', '/scratch/kocevski/926567/ft2_4FGL_J1249.3-0545_daily_bin374.fits', expMap='/scratch/kocevski/926567/expmap_336268801_336528001_4FGL_J1249.3-0545_daily_bin374.fits', expCube='/scratch/kocevski/926567/ltcube_336268801_336528001_4FGL_J1249.3-0545_daily_bin374.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/926567/Model_4FGL_J1249.3-0545_daily_bin374.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1249.3-0545'

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  6.563e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  2.757e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/926567/ft1_filtered_4FGL_J1249.3-0545_daily_bin374.fits
Spacecraft file(s): /scratch/kocevski/926567/ft2_4FGL_J1249.3-0545_daily_bin374.fits
Exposure map: /scratch/kocevski/926567/expmap_336268801_336528001_4FGL_J1249.3-0545_daily_bin374.fits
Exposure cube: /scratch/kocevski/926567/ltcube_336268801_336528001_4FGL_J1249.3-0545_daily_bin374.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/926567/Model_4FGL_J1249.3-0545_daily_bin374.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) = 6674.53817176

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.817       1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.030       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0363       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3019       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    28.453       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .35558       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.562       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.555       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.654       1.0000         .10000E-03   10000.    
    12 'norm      '    6.1051       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.974       1.0000         .10000E-03   10000.    
    15 'Prefactor '    75.784       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4649       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .37435       1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.365       1.0000         .10000E-03   10000.    
    23 'Prefactor '    33.692       1.0000         .10000E-03   10000.    
    24 'norm      '    .10580E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5037       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0152       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6674.525     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3131 TOTAL
                     EDM=   .64E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.824        48.341       -.23992E-06   -.81669E-04
   2  Prefactor     46.031        90.154       -.87891E-06   -.14454E-04
   3  Prefactor     1.0143        51.072        .52265E-05   -.53708E-04
   4  Prefactor     9.3045        10.109        .43942E-06    .11807E-04
   5  norm          .10000E-03    .88862       -.37432E-08** at limit **
   6  norm          28.459        36.765       -.29038E-08   -.22915E-04
   7  Prefactor     .10000E-03    8.3526        .15924E-06** at limit **
   8  norm          .35546        .55430       -.50643E-06    .29507E-04
   9  Prefactor     11.564        3.5218       -.19096E-07   -.73752E-04
  10  Prefactor     23.558        13.522        .44482E-06    .98918E-04
  11  Prefactor     19.660        15.110        .25966E-06    .72631E-04
  12  norm          6.1061        2.2710        .74784E-07    .21959E-03
  13  Prefactor     .10000E-03    3.8078        .18656E-07** at limit **
  14  Prefactor     18.971        27.627        .56427E-06    .35335E-04
  15  Prefactor     75.788        53.669       -.61099E-06   -.14346E-04
  16  norm          .10000E-03    10.407       -.22242E-06** at limit **
  17  norm          1.4649        .35023        .34890E-09   -.93948E-04
  18  Prefactor     .10000E-03    16.621        .30585E-06** at limit **
  19  norm          .10000E-03    4.6707       -.44106E-07** at limit **
  20  norm          .10000E-03    5.0965       -.24305E-07** at limit **
  21  Prefactor     .39131        21.879       -.36070E-05   -.48344E-04
  22  Prefactor     28.375        21.515       -.44875E-06   -.10588E-04
  23  Prefactor     33.699        14.111        .14651E-06    .26021E-04
  24  norm          .10009E-03    .70657       -.15059E-06** at limit **
  25  Normalizat    1.5028        .29520        .11566E-05   -.20291E-04
  26  Prefactor     1.0158        .18285        .22973E-06    .52753E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.8238
  Prefactor  = 46.0308
  Prefactor  = 1.01426
  Prefactor  = 9.30452
  norm       = 0.0001
  norm       = 28.4589
  Prefactor  = 0.0001
  norm       = 0.355461
  Prefactor  = 11.5637
  Prefactor  = 23.5583
  Prefactor  = 19.6599
  norm       = 6.1061
  Prefactor  = 0.0001
  Prefactor  = 18.9708
  Prefactor  = 75.788
  norm       = 0.0001
  norm       = 1.46495
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.391308
  Prefactor  = 28.3748
  Prefactor  = 33.6985
  norm       = 0.000100094
  Normalizat = 1.50278
  Prefactor  = 1.01581
 **********
 **   18 **HESSE 
 **********

 FCN=   6674.525     FROM HESSE     STATUS=OK           474 CALLS     3605 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.824        48.656        .59234E-04   -1.4353    
   2  Prefactor     46.031        90.154        .59098E-04   -1.4350    
   3  Prefactor     1.0143        102.34        .69916E-02   -1.5507    
   4  Prefactor     9.3045        10.125        .13140E-03   -1.5098    
   5  norm          .10000E-03    .88993        .75141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          28.459        36.809        .75107E-04   -1.4641    
   7  Prefactor     .10000E-03    8.6040        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .35546        .55583        .73125E-03   -1.5589    
   9  Prefactor     11.564        3.5213        .81499E-04   -1.5028    
  10  Prefactor     23.558        13.578        .82534E-04   -1.4737    
  11  Prefactor     19.660        15.188        .90346E-04   -1.4821    
  12  norm          6.1061        2.2746        .72208E-04   -1.5214    
  13  Prefactor     .10000E-03    3.8209        .15565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.971        27.691        .91949E-04   -1.4837    
  15  Prefactor     75.788        53.830        .46125E-04   -1.3965    
  16  norm          .10000E-03    10.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4649        .35159        .22149E-04   -1.5466    
  18  Prefactor     .10000E-03    16.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.6831        .17244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.1021        .18013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .39131        31.225        .39467E-02   -1.5583    
  22  Prefactor     28.375        21.599        .75224E-04   -1.4642    
  23  Prefactor     33.699        14.106        .69036E-04   -1.4546    
  24  norm          .10009E-03    1.8371        .24037E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.5028        .35368        .34658E-03   -.77700    
  26  Prefactor     1.0158        .21946        .27352E-03   -.92204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.37788e-08
Minuit parameter uncertainties:
  1  48.698
  2  90.4231
  3  20.411
  4  10.1265
  5  1.57661e-06
  6  36.8387
  7  2.7271e-05
  8  0.555834
  9  3.52141
  10  13.5798
  11  15.191
  12  2.27461
  13  6.85548e-06
  14  27.7093
  15  53.8642
  16  1.40802e-05
  17  0.351592
  18  2.05045e-05
  19  1.17599e-06
  20  3.3158e-06
  21  6.99389
  22  21.6049
  23  14.1073
  24  0.000829873
  25  0.354261
  26  0.219657
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  7.579e+01  5.386e+01  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  2.757e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.016e+00  2.197e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  1.503e+00  3.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.77
Ra Dec: 192.326 -5.762
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 6.61e-08 +/- 4.69e-08
Energy Flux (Fixed Index): 3.98e-05 +/- 2.83e-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) = 6674.50860471
delta logL = 0.0161758272907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6674.49847393
delta logL = 0.0263066113039

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    85.215       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9470       1.0000          .0000       10.000    
     3 'Normalizat'    1.5099       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0137       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+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=   6674.498     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      287 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     85.223        74.109        .43518E-04    .67400E-05
   2  Index         1.9470        .50638        .67667E-02    .53777E-03
   3  Normalizat    1.5102        .32059        .34595E-03   -.37298E-04
   4  Prefactor     1.0135        .21367        .27384E-03   -.36285E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 85.2233
  Index      = 1.94699
  Normalizat = 1.51015
  Prefactor  = 1.01355
 **********
 **   18 **HESSE 
 **********

 FCN=   6674.498     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     85.223        71.830        .87036E-05   -1.3859    
   2  Index         1.9470        .49082        .13533E-02   -.65682    
   3  Normalizat    1.5102        .32075        .13838E-04   -.77493    
   4  Prefactor     1.0135        .21385        .10953E-04   -.92279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5968e-12
Minuit parameter uncertainties:
  1  71.9038
  2  0.492091
  3  0.321181
  4  0.214025
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/926567': 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) = 6674.49847349
delta logL = 0.0263070462197

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  8.522e+01  7.190e+01  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  1.947e+00  4.921e-01  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  2.757e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.014e+00  2.140e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  1.510e+00  3.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.84
Ra Dec: 192.326 -5.762
Photon Index (Free Index): 1.95 +/- 0.49
Photon Flux (Free Index): 5.73e-08 +/- 5.66e-08
Energy Flux (Free Index): 4.53e-05 +/- 4.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/926567/cmap_HighResolution_336268801_336528001_4FGL_J1249.3-0545_daily_bin374.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.61e-08', energy_flux2='4.53e-05', photon_flux_error='4.69e-08', dlogl='2.63e-02', energy_flux='3.98e-05', photon_flux2='5.73e-08', job_status='DONE', time_completed='2021-09-06 06:14:05.503703', photon_index_error2='0.49', photon_index2='1.95', ts='7.77', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='4.28e-05', EG='1.50', time_epoch_completed='1630934045.5', return_code='0', job_id='926567', GAL2='1.01', EG2='1.51', return_code2='0', energy_flux_error='2.83e-05', photon_flux_error2='5.66e-08', ts2='7.84', photon_index='2.06' WHERE bin_id='374' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:14:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 926567: <4FGL_J1249.3-0545_daily_bin374> in cluster <slac> Done

Job <4FGL_J1249.3-0545_daily_bin374> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 06:01:05 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:01:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 06:01:06 2021
Terminated at Mon Sep  6 06:14:06 2021
Results reported at Mon Sep  6 06:14:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin374 192.326 -5.7621 336268801 336528001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1249.3-0545 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   742.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            781 sec.

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

