/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 37 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7451
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1249.3-0545_daily_bin1229
RA = 192.326, Dec = -5.7621
tmin = 557884801, tmax = 558144001
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='932544', job_status='RUN', time_executed='2021-09-06 06:21:30.003900', time_epoch_executed='1630934490.0' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/932544

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/932544/ft1_4FGL_J1249.3-0545_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/932544/ft2_4FGL_J1249.3-0545_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/932544/ft1_4FGL_J1249.3-0545_daily_bin1229.fits outfile=/scratch/kocevski/932544/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin1229.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=557884801.0 tmax=558144001.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 4.04
user 3.78
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/932544/ft2_4FGL_J1249.3-0545_daily_bin1229.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/932544/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin1229.fits evtable="EVENTS" outfile="/scratch/kocevski/932544/ft1_filtered_4FGL_J1249.3-0545_daily_bin1229.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/932544/ft1_filtered_4FGL_J1249.3-0545_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/932544/ft2_4FGL_J1249.3-0545_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/932544/ltcube_557884801_558144001_4FGL_J1249.3-0545_daily_bin1229.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/932544/ft2_4FGL_J1249.3-0545_daily_bin1229.fits
.....................!
real 11.92
user 11.53
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/932544/ft1_filtered_4FGL_J1249.3-0545_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/932544/ft2_4FGL_J1249.3-0545_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/932544/ltcube_557884801_558144001_4FGL_J1249.3-0545_daily_bin1229.fits outfile=/scratch/kocevski/932544/expmap_557884801_558144001_4FGL_J1249.3-0545_daily_bin1229.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/932544/ltcube_557884801_558144001_4FGL_J1249.3-0545_daily_bin1229.fits
.....................!
real 191.89
user 185.09
sys 5.61

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/932544/ft1_filtered_4FGL_J1249.3-0545_daily_bin1229.fits scfile=/scratch/kocevski/932544/ft2_4FGL_J1249.3-0545_daily_bin1229.fits outfile=/scratch/kocevski/932544/cmap_557884801_558144001_4FGL_J1249.3-0545_daily_bin1229.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.62
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/932544/ft1_filtered_4FGL_J1249.3-0545_daily_bin1229.fits scfile=/scratch/kocevski/932544/ft2_4FGL_J1249.3-0545_daily_bin1229.fits outfile=/scratch/kocevski/932544/cmap_HighResolution_557884801_558144001_4FGL_J1249.3-0545_daily_bin1229.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.65
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.274       1.0000         .10000E-03   10000.    
     5 'norm      '    4.4451       1.0000         .10000E-03   10000.    
     6 'norm      '    5.1580       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .11221E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.739       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .55852E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.0056       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8903       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .27966       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    87.119       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .87815       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    17.460       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.9555       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .22919       1.0000         .10000E-03   10000.    
    24 'norm      '    .69806       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.6195       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .61873       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=   7249.019     FROM MIGRAD    STATUS=CONVERGED    663 CALLS     3177 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.7133        .31648E-08** at limit **
   2  Prefactor     .10000E-03    40.271        .23982E-06** at limit **
   3  Prefactor     .10000E-03    12.285       -.15992E-06** at limit **
   4  Prefactor     28.285        21.143       -.81605E-08   -.33077E-04
   5  norm          4.4459        4.0796        .12735E-06    .20378E-03
   6  norm          4.8768        282.38        .12262E-04    .52528E-04
   7  Prefactor     .10000E-03    2.6552        .30272E-07** at limit **
   8  norm          .10000E-03    .32421       -.65056E-06** at limit **
   9  Prefactor     10.738        2.5020        .49771E-08   -.19342E-04
  10  Prefactor     .10000E-03    5.4992        .23364E-06** at limit **
  11  Prefactor     9.0063        11.795        .21689E-06   -.11394E-04
  12  norm          2.8926        2.6403        .30026E-06    .67830E-03
  13  Prefactor     .27820        5.2986       -.34887E-06    .15627E-03
  14  Prefactor     .10000E-03    32.238       -.18715E-07** at limit **
  15  Prefactor     87.133        53.664       -.58274E-06   -.11895E-03
  16  norm          .10000E-03    8.9818       -.21075E-07** at limit **
  17  norm          .87797        .29294        .23096E-07   -.17773E-03
  18  Prefactor     .10000E-03    59.443        .22195E-06** at limit **
  19  norm          17.457        11.670       -.13727E-06   -.10856E-03
  20  norm          .10000E-03    2.8654        .82030E-08** at limit **
  21  Prefactor     3.9539        5.9592        .23514E-06   -.12611E-03
  22  Prefactor     .10000E-03    11.076        .62743E-07** at limit **
  23  Prefactor     .26533        7.9779        .15714E-05   -.58857E-03
  24  norm          .69809        1.2189        .43747E-06    .20492E-03
  25  Normalizat    1.6193        .22946        .33345E-06   -.99850E-04
  26  Prefactor     .61881        .13263       -.90280E-06   -.67874E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.2853
  norm       = 4.44595
  norm       = 4.8768
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.7381
  Prefactor  = 0.0001
  Prefactor  = 9.00627
  norm       = 2.89264
  Prefactor  = 0.278202
  Prefactor  = 0.0001
  Prefactor  = 87.1332
  norm       = 0.0001
  norm       = 0.877973
  Prefactor  = 0.0001
  norm       = 17.4574
  norm       = 0.0001
  Prefactor  = 3.95389
  Prefactor  = 0.0001
  Prefactor  = 0.265327
  norm       = 0.69809
  Normalizat = 1.61934
  Prefactor  = 0.618805
 **********
 **   18 **HESSE 
 **********

 FCN=   7249.019     FROM HESSE     STATUS=OK           466 CALLS     3643 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.7212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    40.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     28.285        21.086        .75344E-04   -1.4644    
   5  norm          4.4459        4.0665        .14268E-03   -1.5286    
   6  norm          4.8768        311.63        .17701E-03   -1.5266    
   7  Prefactor     .10000E-03    2.6755        .13533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .39168        .87279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.738        2.5007        .62552E-04   -1.5052    
  10  Prefactor     .10000E-03    26.731        .38524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.0063        11.849        .13356E-03   -1.5108    
  12  norm          2.8926        2.6508        .12634E-03   -1.5368    
  13  Prefactor     .27820        29.912        .37295E-02   -1.5602    
  14  Prefactor     .10000E-03    32.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     87.133        53.912        .43044E-04   -1.3838    
  16  norm          .10000E-03    8.9847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .87797        .29406        .23529E-04   -1.5521    
  18  Prefactor     .10000E-03    59.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          17.457        11.688        .95851E-04   -1.4872    
  20  norm          .10000E-03    2.8678        .14075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.9539        5.9502        .20282E-03   -1.5310    
  22  Prefactor     .10000E-03    11.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .26533        69.867        .40282E-02   -1.5605    
  24  norm          .69809        1.1259        .11793E-02   -1.5541    
  25  Normalizat    1.6193        .27659        .27480E-03   -.74478    
  26  Prefactor     .61881        .15670        .26331E-03   -1.0680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.50831e-09
Minuit parameter uncertainties:
  1  1.95391e-06
  2  9.19243e-05
  3  3.79599e-06
  4  21.0913
  5  4.06678
  6  78.397
  7  1.23221e-06
  8  9.06375e-07
  9  2.50074
  10  6.51319e-05
  11  11.8518
  12  2.65091
  13  5.77134
  14  1.75607e-05
  15  53.9425
  16  1.88972e-06
  17  0.294056
  18  8.84839e-05
  19  11.6893
  20  1.15507e-06
  21  5.95107
  22  5.91577e-07
  23  8.61959
  24  1.12589
  25  0.276847
  26  0.156808
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  8.713e+01  5.394e+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:  6.188e-01  1.568e-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.619e+00  2.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.19
Ra Dec: 192.326 -5.762
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 7.60e-08 +/- 4.70e-08
Energy Flux (Fixed Index): 4.57e-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) = 7247.87390634
delta logL = 1.14514493438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7247.85219773
delta logL = 1.16685355032

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.326       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8356       1.0000          .0000       10.000    
     3 'Normalizat'    1.5009       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66183       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7247.852     FROM MIGRAD    STATUS=FAILED        91 CALLS      296 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.314        69.638        .73984E-04   -.23818E-04
   2  Index         2.8358        1.0250        .26806E-02    .10547E-02
   3  Normalizat    1.5009        .27519        .28239E-03    .55283E-03
   4  Prefactor     .66182        .16289        .25472E-03    .21695E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7247.852     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      375 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.314        69.638        .28916E-03   -1.4625    
   2  Index         2.8358        1.0250        .45952E-03   -.44765    
   3  Normalizat    1.5009        .27519        .36229E-03   -.77753    
   4  Prefactor     .66182        .16289        .31479E-03   -1.0504    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7247.852     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      404 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.313        39.029        .29594E-05   -.13061E-03
   2  Index         2.8358        .57620        .53612E-03    .39591E-04
   3  Normalizat    1.5009        .26040        .56479E-04    .26490E-03
   4  Prefactor     .66182        .15779        .10189E-04    .10154E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.3129
  Index      = 2.83579
  Normalizat = 1.50088
  Prefactor  = 0.661825
 **********
 **   18 **HESSE 
 **********

 FCN=   7247.852     FROM HESSE     STATUS=OK            23 CALLS      427 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.313        36.264        .59187E-06   -1.4625    
   2  Index         2.8358        .53538        .21445E-04   -.44764    
   3  Normalizat    1.5009        .25943        .11296E-04   -.77754    
   4  Prefactor     .66182        .15746        .20378E-05   -1.0504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02356e-10
Minuit parameter uncertainties:
  1  36.2912
  2  0.536647
  3  0.259655
  4  0.157561
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/932544': 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) = 7247.85219766
delta logL = 1.16685361481

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  2.931e+01  3.629e+01  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  2.836e+00  5.366e-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:  6.618e-01  1.576e-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.501e+00  2.597e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.85
Ra Dec: 192.326 -5.762
Photon Index (Free Index): 2.84 +/- 0.54
Photon Flux (Free Index): 1.94e-07 +/- 1.00e-07
Energy Flux (Free Index): 4.25e-05 +/- 1.73e-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/932544/cmap_HighResolution_557884801_558144001_4FGL_J1249.3-0545_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.60e-08', energy_flux2='4.25e-05', photon_flux_error='4.70e-08', dlogl='1.17e+00', energy_flux='4.57e-05', photon_flux2='1.94e-07', job_status='DONE', time_completed='2021-09-06 06:34:33.296395', photon_index_error2='0.54', photon_index2='2.84', ts='7.19', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='1.73e-05', EG='1.62', time_epoch_completed='1630935273.3', return_code='0', job_id='932544', GAL2='0.66', EG2='1.50', return_code2='0', energy_flux_error='2.83e-05', photon_flux_error2='1.00e-07', ts2='9.85', photon_index='2.06' WHERE bin_id='1229' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:34:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 932544: <4FGL_J1249.3-0545_daily_bin1229> in cluster <slac> Done

Job <4FGL_J1249.3-0545_daily_bin1229> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 06:20:31 2021
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:20:33 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:20:33 2021
Terminated at Mon Sep  6 06:34:33 2021
Results reported at Mon Sep  6 06:34:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin1229 192.326 -5.7621 557884801 558144001 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 :                                   776.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             296.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            842 sec.

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

