/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 16 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 = 7357
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1249.3-0545_daily_bin803
RA = 192.326, Dec = -5.7621
tmin = 447465601, tmax = 447724801
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='929624', job_status='RUN', time_executed='2021-09-06 06:11:21.288311', time_epoch_executed='1630933881.29' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='803'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929624

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929624/ft1_4FGL_J1249.3-0545_daily_bin803.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929624/ft2_4FGL_J1249.3-0545_daily_bin803.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929624/ft1_4FGL_J1249.3-0545_daily_bin803.fits outfile=/scratch/kocevski/929624/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin803.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=447465601.0 tmax=447724801.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.38
user 3.19
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/929624/ft2_4FGL_J1249.3-0545_daily_bin803.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/929624/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin803.fits evtable="EVENTS" outfile="/scratch/kocevski/929624/ft1_filtered_4FGL_J1249.3-0545_daily_bin803.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.53
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929624/ft1_filtered_4FGL_J1249.3-0545_daily_bin803.fits" evtable="EVENTS" scfile=/scratch/kocevski/929624/ft2_4FGL_J1249.3-0545_daily_bin803.fits sctable="SC_DATA" outfile=/scratch/kocevski/929624/ltcube_447465601_447724801_4FGL_J1249.3-0545_daily_bin803.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/929624/ft2_4FGL_J1249.3-0545_daily_bin803.fits
.....................!
real 11.63
user 11.23
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929624/ft1_filtered_4FGL_J1249.3-0545_daily_bin803.fits evtable="EVENTS" scfile=/scratch/kocevski/929624/ft2_4FGL_J1249.3-0545_daily_bin803.fits sctable="SC_DATA" expcube=/scratch/kocevski/929624/ltcube_447465601_447724801_4FGL_J1249.3-0545_daily_bin803.fits outfile=/scratch/kocevski/929624/expmap_447465601_447724801_4FGL_J1249.3-0545_daily_bin803.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/929624/ltcube_447465601_447724801_4FGL_J1249.3-0545_daily_bin803.fits
.....................!
real 189.12
user 184.87
sys 3.89

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/929624/ft1_filtered_4FGL_J1249.3-0545_daily_bin803.fits scfile=/scratch/kocevski/929624/ft2_4FGL_J1249.3-0545_daily_bin803.fits outfile=/scratch/kocevski/929624/cmap_447465601_447724801_4FGL_J1249.3-0545_daily_bin803.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929624/ft1_filtered_4FGL_J1249.3-0545_daily_bin803.fits scfile=/scratch/kocevski/929624/ft2_4FGL_J1249.3-0545_daily_bin803.fits outfile=/scratch/kocevski/929624/cmap_HighResolution_447465601_447724801_4FGL_J1249.3-0545_daily_bin803.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929624/ft1_filtered_4FGL_J1249.3-0545_daily_bin803.fits evtable="EVENTS" scfile=/scratch/kocevski/929624/ft2_4FGL_J1249.3-0545_daily_bin803.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929624/Model_4FGL_J1249.3-0545_daily_bin803.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/929624/ft1_filtered_4FGL_J1249.3-0545_daily_bin803.fits.....................!
real 53.90
user 52.13
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/929624/ft1_filtered_4FGL_J1249.3-0545_daily_bin803.fits', '/scratch/kocevski/929624/ft2_4FGL_J1249.3-0545_daily_bin803.fits', expMap='/scratch/kocevski/929624/expmap_447465601_447724801_4FGL_J1249.3-0545_daily_bin803.fits', expCube='/scratch/kocevski/929624/ltcube_447465601_447724801_4FGL_J1249.3-0545_daily_bin803.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/929624/Model_4FGL_J1249.3-0545_daily_bin803.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/929624/ft1_filtered_4FGL_J1249.3-0545_daily_bin803.fits
Spacecraft file(s): /scratch/kocevski/929624/ft2_4FGL_J1249.3-0545_daily_bin803.fits
Exposure map: /scratch/kocevski/929624/expmap_447465601_447724801_4FGL_J1249.3-0545_daily_bin803.fits
Exposure cube: /scratch/kocevski/929624/ltcube_447465601_447724801_4FGL_J1249.3-0545_daily_bin803.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/929624/Model_4FGL_J1249.3-0545_daily_bin803.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) = 6143.24355959

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8296       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .31111       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.991       1.0000         .10000E-03   10000.    
     8 'norm      '    1.5766       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.0732       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .56056E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    26.134       1.0000         .10000E-03   10000.    
    17 'norm      '    1.2255       1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.420       1.0000         .10000E-03   10000.    
    19 'norm      '    1.4395       1.0000         .10000E-03   10000.    
    20 'norm      '    1.2105       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.5543       1.0000         .10000E-03   10000.    
    22 'Prefactor '    43.654       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .12220E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.6836       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .82684       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6143.237     FROM MIGRAD    STATUS=CONVERGED     67 CALLS     2557 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8227        2.0617       -.98537E-05    .18609E-02
   2  Prefactor     .10005E-03    3.5606        .37283E-05** at limit **
   3  Prefactor     .10004E-03    9.3657       -.29638E-04** at limit **
   4  Prefactor     .10000E-03    5.6878        .30662E-05** at limit **
   5  norm          .31319        3.1155       -.44471E-05   -.16804E-03
   6  norm          .10005E-03    9.1752       -.28845E-04** at limit **
   7  Prefactor     14.991        1.0672       -.19681E-06    .56131E-04
   8  norm          1.5767        .61822       -.11155E-06   -.25244E-02
   9  Prefactor     7.0730        2.9999       -.10890E-05    .64216E-04
  10  Prefactor     .10000E-03    3.7575       -.18262E-05** at limit **
  11  Prefactor     .10001E-03    5.1446       -.12133E-04** at limit **
  12  norm          .64278E-02    .34031        .45460E-05   -.22620E-03
  13  Prefactor     .10000E-03    3.1744        .10642E-05** at limit **
  14  Prefactor     .10012E-03    4.6691        .12986E-04** at limit **
  15  Prefactor     .10003E-03    4.2476       -.57765E-05** at limit **
  16  norm          26.133        1.0033       -.11479E-06    .35737E-03
  17  norm          1.2253        .33040       -.81207E-07   -.36913E-02
  18  Prefactor     39.414        2.0152       -.21025E-05    .11144E-01
  19  norm          1.4436        1.1123        .14331E-05   -.90123E-04
  20  norm          1.2100        1.1328       -.30228E-06   -.31638E-04
  21  Prefactor     4.5581        1.1452        .19068E-05   -.73887E-03
  22  Prefactor     43.655        1.0009        .44530E-07   -.15502E-03
  23  Prefactor     .10002E-03    5.8242        .27873E-04** at limit **
  24  norm          .10001E-03    4.5443        .23088E-04** at limit **
  25  Normalizat    1.6833        .31125        .77162E-06   -.10049E-03
  26  Prefactor     .82697        .20257        .14812E-05   -.12180E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.82272
  Prefactor  = 0.000100051
  Prefactor  = 0.000100044
  Prefactor  = 0.0001
  norm       = 0.313186
  norm       = 0.000100048
  Prefactor  = 14.9907
  norm       = 1.57669
  Prefactor  = 7.07298
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 0.00642775
  Prefactor  = 0.0001
  Prefactor  = 0.000100125
  Prefactor  = 0.000100027
  norm       = 26.1334
  norm       = 1.22535
  Prefactor  = 39.4144
  norm       = 1.4436
  norm       = 1.21001
  Prefactor  = 4.55805
  Prefactor  = 43.6548
  Prefactor  = 0.000100024
  norm       = 0.000100011
  Normalizat = 1.6833
  Prefactor  = 0.826968
 **********
 **   18 **HESSE 
 **********

 FCN=   6143.237     FROM HESSE     STATUS=OK           526 CALLS     3083 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8227        68.055        .77142E-02   -1.5438    
   2  Prefactor     .10005E-03    18.449        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10004E-03    10.418        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.6646        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .31319        1.7248        .36122E-01   -1.5596    
   6  norm          .10005E-03    21.297        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.991        10.509        .25862E-02   -1.4933    
   8  norm          1.5767        .62637        .83274E-02   -1.5457    
   9  Prefactor     7.0730        3.2812        .37709E-02   -1.5176    
  10  Prefactor     .10000E-03    3.7445        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    19.562        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .64278E-02    .66856        .34548E-01   -1.5692    
  13  Prefactor     .10000E-03    3.1699        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10012E-03    12.387        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10003E-03    19.316        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          26.133        28.417        .19591E-02   -1.4685    
  17  norm          1.2253        .33468        .50155E-02   -1.5487    
  18  Prefactor     39.414        68.073        .15960E-02   -1.4452    
  19  norm          1.4436        22.514        .89906E-02   -1.5468    
  20  norm          1.2100        11.388        .10281E-01   -1.5488    
  21  Prefactor     4.5581        15.956        .47158E-02   -1.5281    
  22  Prefactor     43.655        24.813        .15169E-02   -1.4386    
  23  Prefactor     .10002E-03    14.450        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10001E-03    .73431        .50011E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.6833        .27353        .67333E-01   -.72750    
  26  Prefactor     .82697        .17266        .44066E-01   -.98742    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01345e-06
Minuit parameter uncertainties:
  1  22.3019
  2  0.00193801
  3  0.00135282
  4  4.30401e-05
  5  1.46975
  6  0.00203198
  7  10.5103
  8  0.626372
  9  3.28125
  10  4.65094e-07
  11  0.000807595
  12  0.130085
  13  3.88701e-05
  14  0.0024863
  15  0.00145369
  16  28.4319
  17  0.334676
  18  68.2079
  19  11.4066
  20  7.42584
  21  15.9704
  22  24.8192
  23  0.0011799
  24  0.000180364
  25  0.273775
  26  0.172778
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  1.454e-03  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:  8.270e-01  1.728e-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.683e+00  2.738e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.326 -5.762
Photon Flux Upper Limit: 7.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929624/likelihoodResults_447465601_447724801_4FGL_J1249.3-0545_daily_bin803.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) = 6143.23729297
delta logL = -0.000245788506618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6143.23704795
delta logL = -7.66501216276e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3665       1.0000          .0000       10.000    
     3 'Normalizat'    1.6833       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82697       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.

 FCN=   6143.237     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      233 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3195        .90712E-02** at limit **
   2  Index         2.3436        8.8047        .50000        .12436E-04
   3  Normalizat    1.6833        .34162E-02    .67333E-01    .51867E-05
   4  Prefactor     .82697        .22630E-02    .44067E-01    .39798E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.34362
  Normalizat = 1.6833
  Prefactor  = 0.826969
 **********
 **   18 **HESSE 
 **********

 FCN=   6143.237     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    73.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3436        6.0857        .50000       -.56011    
   3  Normalizat    1.6833        .14110E-01    .29783E-03   -.72750    
   4  Prefactor     .82697        .93493E-02    .26723E-03   -.98742    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.76271e-07
Minuit parameter uncertainties:
  1  0.000486678
  2  184.348
  3  0.0141098
  4  0.00934934
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929624': 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) = 6143.2370478
delta logL = -6.16189026914e-07

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  4.867e-04  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  2.344e+00  1.843e+02  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:  8.270e-01  9.349e-03  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.683e+00  1.411e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.326 -5.762

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/929624/cmap_HighResolution_447465601_447724801_4FGL_J1249.3-0545_daily_bin803.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.87e-03', job_status='DONE', photon_flux_upper_limit='7.79e-08', time_completed='2021-09-06 06:23:29.884215', job_id='929624', GAL2='0.83', fit_tolerance='1e-08', EG2='1.68', EG='1.68', time_epoch_completed='1630934609.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-6.16e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='803' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:23:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 929624: <4FGL_J1249.3-0545_daily_bin803> in cluster <slac> Done

Job <4FGL_J1249.3-0545_daily_bin803> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 06:10:48 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:10:49 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:10:49 2021
Terminated at Mon Sep  6 06:23:30 2021
Results reported at Mon Sep  6 06:23:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin803 192.326 -5.7621 447465601 447724801 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 :                                   724.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            762 sec.

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

