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


Performing analysis on: 4FGL_J1249.3-0545_daily_bin606
RA = 192.326, Dec = -5.7621
tmin = 396403201, tmax = 396662401
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='928067', job_status='RUN', time_executed='2021-09-06 06:06:48.375210', time_epoch_executed='1630933608.38' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/928067

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/928067/ft1_4FGL_J1249.3-0545_daily_bin606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/928067/ft2_4FGL_J1249.3-0545_daily_bin606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/928067/ft1_4FGL_J1249.3-0545_daily_bin606.fits outfile=/scratch/kocevski/928067/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin606.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=396403201.0 tmax=396662401.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.58
user 4.34
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/928067/ft1_filtered_4FGL_J1249.3-0545_daily_bin606.fits" evtable="EVENTS" scfile=/scratch/kocevski/928067/ft2_4FGL_J1249.3-0545_daily_bin606.fits sctable="SC_DATA" outfile=/scratch/kocevski/928067/ltcube_396403201_396662401_4FGL_J1249.3-0545_daily_bin606.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/928067/ft2_4FGL_J1249.3-0545_daily_bin606.fits
.....................!
real 12.27
user 11.91
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/928067/ft1_filtered_4FGL_J1249.3-0545_daily_bin606.fits evtable="EVENTS" scfile=/scratch/kocevski/928067/ft2_4FGL_J1249.3-0545_daily_bin606.fits sctable="SC_DATA" expcube=/scratch/kocevski/928067/ltcube_396403201_396662401_4FGL_J1249.3-0545_daily_bin606.fits outfile=/scratch/kocevski/928067/expmap_396403201_396662401_4FGL_J1249.3-0545_daily_bin606.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/928067/ltcube_396403201_396662401_4FGL_J1249.3-0545_daily_bin606.fits
.....................!
real 190.71
user 185.16
sys 5.04

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/928067/ft1_filtered_4FGL_J1249.3-0545_daily_bin606.fits scfile=/scratch/kocevski/928067/ft2_4FGL_J1249.3-0545_daily_bin606.fits outfile=/scratch/kocevski/928067/cmap_396403201_396662401_4FGL_J1249.3-0545_daily_bin606.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/928067/ft1_filtered_4FGL_J1249.3-0545_daily_bin606.fits scfile=/scratch/kocevski/928067/ft2_4FGL_J1249.3-0545_daily_bin606.fits outfile=/scratch/kocevski/928067/cmap_HighResolution_396403201_396662401_4FGL_J1249.3-0545_daily_bin606.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/928067/ft1_filtered_4FGL_J1249.3-0545_daily_bin606.fits evtable="EVENTS" scfile=/scratch/kocevski/928067/ft2_4FGL_J1249.3-0545_daily_bin606.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/928067/Model_4FGL_J1249.3-0545_daily_bin606.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/928067/ft1_filtered_4FGL_J1249.3-0545_daily_bin606.fits.....................!
real 52.23
user 50.90
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10086E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8045       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7225       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.7528       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1189       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11487E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.012       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.2173       1.0000         .10000E-03   10000.    
    18 'Prefactor '    54.889       1.0000         .10000E-03   10000.    
    19 'norm      '    7.4715       1.0000         .10000E-03   10000.    
    20 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2661       1.0000         .10000E-03   10000.    
    22 'Prefactor '    41.131       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.5028       1.0000         .10000E-03   10000.    
    24 'norm      '    16.714       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4901       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .70567       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=   6300.156     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3150 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.549       -.15284E-05** at limit **
   2  Prefactor     .10000E-03    168.22        .27323E-05** at limit **
   3  Prefactor     .10000E-03    10.425        .71217E-06** at limit **
   4  Prefactor     .10000E-03    15.057        .13710E-05** at limit **
   5  norm          .10000E-03    1.4051       -.27438E-06** at limit **
   6  norm          .10000E-03    30.027        .29221E-05** at limit **
   7  Prefactor     .10000E-03    3.5041        .32325E-07** at limit **
   8  norm          1.8043        .67256       -.31140E-07   -.13489E-02
   9  Prefactor     5.7229        2.7247        .32216E-07   -.22746E-04
  10  Prefactor     .10000E-03    6.2578        .70792E-08** at limit **
  11  Prefactor     .10000E-03    7.3123       -.10662E-07** at limit **
  12  norm          5.7527        1.9727        .18835E-07   -.62543E-04
  13  Prefactor     6.1182        7.8321        .11259E-05   -.50345E-05
  14  Prefactor     .10000E-03    59.784       -.15747E-05** at limit **
  15  Prefactor     21.005        45.809        .84934E-06    .84245E-05
  16  norm          .10000E-03    9.2179       -.30396E-06** at limit **
  17  norm          2.2172        .40291        .54944E-08    .76177E-03
  18  Prefactor     54.885        63.609        .41589E-06    .12698E-04
  19  norm          7.4676        13.132        .34256E-06    .53295E-04
  20  norm          .10000E-03    23.444       -.13453E-05** at limit **
  21  Prefactor     2.2648        8.9926        .70338E-05   -.27213E-04
  22  Prefactor     41.129        21.713        .60489E-07    .19311E-05
  23  Prefactor     7.5011        9.4159        .66409E-06    .70624E-04
  24  norm          16.714        3.1613        .19105E-07    .16798E-03
  25  Normalizat    1.4904        .25668       -.70306E-06    .73784E-05
  26  Prefactor     .70555        .16247       -.52400E-06    .28296E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.80435
  Prefactor  = 5.72294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.7527
  Prefactor  = 6.1182
  Prefactor  = 0.0001
  Prefactor  = 21.0047
  norm       = 0.0001
  norm       = 2.21722
  Prefactor  = 54.8854
  norm       = 7.4676
  norm       = 0.000100001
  Prefactor  = 2.2648
  Prefactor  = 41.1295
  Prefactor  = 7.50111
  norm       = 16.7137
  Normalizat = 1.49036
  Prefactor  = 0.705548
 **********
 **   18 **HESSE 
 **********

 FCN=   6300.156     FROM HESSE     STATUS=OK           454 CALLS     3604 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    171.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.6156        .18193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    30.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.5411        .14482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8043        .67488        .37445E-04   -1.5439    
   9  Prefactor     5.7229        2.7269        .87095E-04   -1.5229    
  10  Prefactor     .10000E-03    6.2907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.3557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.7527        1.9746        .62936E-04   -1.5228    
  13  Prefactor     6.1182        7.8306        .81151E-03   -1.5213    
  14  Prefactor     .10000E-03    60.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.005        46.003        .87380E-04   -1.4791    
  16  norm          .10000E-03    9.2213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2172        .40605        .19778E-04   -1.5410    
  18  Prefactor     54.885        63.630        .54142E-04   -1.4225    
  19  norm          7.4676        13.108        .14672E-03   -1.5161    
  20  norm          .10000E-03    23.996        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.2648        9.0076        .13642E-02   -1.5407    
  22  Prefactor     41.129        21.750        .62503E-04   -1.4424    
  23  Prefactor     7.5011        9.3966        .73208E-03   -1.5160    
  24  norm          16.714        3.1658        .58886E-04   -1.4890    
  25  Normalizat    1.4904        .30955        .31242E-03   -.78050    
  26  Prefactor     .70555        .19456        .28358E-03   -1.0331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18054e-10
Minuit parameter uncertainties:
  1  5.01182e-05
  2  0.000249213
  3  2.22457e-05
  4  2.03652e-05
  5  5.09487e-06
  6  0.000174892
  7  2.29757e-06
  8  0.674887
  9  2.72692
  10  3.66681e-06
  11  4.95007e-06
  12  1.97467
  13  7.83187
  14  3.48468e-05
  15  46.0809
  16  9.92708e-06
  17  0.406053
  18  63.7088
  19  13.1129
  20  0.000232149
  21  9.01295
  22  21.7539
  23  9.39847
  24  3.16584
  25  0.30994
  26  0.19475
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  2.100e+01  4.608e+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:  7.055e-01  1.948e-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.490e+00  3.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.27
Ra Dec: 192.326 -5.762
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/928067/likelihoodResults_396403201_396662401_4FGL_J1249.3-0545_daily_bin606.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): 0
logL (Free Index) = 6300.15484645
delta logL = 0.0012886846589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6300.15433028
delta logL = 0.00180485944111

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.711       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0058       1.0000          .0000       10.000    
     3 'Normalizat'    1.4911       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70525       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=   6300.154     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      253 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.711        6010.5        .21013E-02   -.20814E-04
   2  Index         2.0058        5.7068        .17482        .79850E-04
   3  Normalizat    1.4912        .84191E-01    .70602E-01    .55557E-05
   4  Prefactor     .70518        .50531E-01    .64116E-01    .19288E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.7106
  Index      = 2.00577
  Normalizat = 1.49119
  Prefactor  = 0.705176
 **********
 **   18 **HESSE 
 **********

 FCN=   6300.154     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.711        58.059        .84051E-04   -1.4754    
   2  Index         2.0058        .91618        .10613E-01   -.64206    
   3  Normalizat    1.4912        .28980        .31235E-03   -.78026    
   4  Prefactor     .70518        .18985        .28365E-03   -1.0332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63431e-11
Minuit parameter uncertainties:
  1  58.204
  2  0.924365
  3  0.290123
  4  0.190022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/928067': 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) = 6300.15433019
delta logL = 0.0018049449618

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  2.271e+01  5.820e+01  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  2.006e+00  9.244e-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:  7.052e-01  1.900e-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.491e+00  2.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
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/928067/cmap_HighResolution_396403201_396662401_4FGL_J1249.3-0545_daily_bin606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.12e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-09-06 06:20:15.739635', job_id='928067', GAL2='0.71', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1630934415.74', return_code2='0', ts='0.27', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='1.80e-03', ts2='0.28', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='606' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:20:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 928067: <4FGL_J1249.3-0545_daily_bin606> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin606 192.326 -5.7621 396403201 396662401 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 :                                   800.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             305.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            884 sec.

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

