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


Performing analysis on: 4FGL_J1249.3-0545_daily_bin1232
RA = 192.326, Dec = -5.7621
tmin = 558662401, tmax = 558921601
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='932549', job_status='RUN', time_executed='2021-09-06 06:21:52.794390', time_epoch_executed='1630934512.79' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='1232'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/932549

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/932549/ft1_4FGL_J1249.3-0545_daily_bin1232.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/932549/ft2_4FGL_J1249.3-0545_daily_bin1232.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/932549/ft1_4FGL_J1249.3-0545_daily_bin1232.fits outfile=/scratch/kocevski/932549/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin1232.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=558662401.0 tmax=558921601.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.57
user 3.29
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/932549/ft1_filtered_4FGL_J1249.3-0545_daily_bin1232.fits" evtable="EVENTS" scfile=/scratch/kocevski/932549/ft2_4FGL_J1249.3-0545_daily_bin1232.fits sctable="SC_DATA" outfile=/scratch/kocevski/932549/ltcube_558662401_558921601_4FGL_J1249.3-0545_daily_bin1232.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/932549/ft2_4FGL_J1249.3-0545_daily_bin1232.fits
.....................!
real 12.15
user 11.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/932549/ft1_filtered_4FGL_J1249.3-0545_daily_bin1232.fits evtable="EVENTS" scfile=/scratch/kocevski/932549/ft2_4FGL_J1249.3-0545_daily_bin1232.fits sctable="SC_DATA" expcube=/scratch/kocevski/932549/ltcube_558662401_558921601_4FGL_J1249.3-0545_daily_bin1232.fits outfile=/scratch/kocevski/932549/expmap_558662401_558921601_4FGL_J1249.3-0545_daily_bin1232.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/932549/ltcube_558662401_558921601_4FGL_J1249.3-0545_daily_bin1232.fits
.....................!
real 190.08
user 185.20
sys 4.28

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/932549/ft1_filtered_4FGL_J1249.3-0545_daily_bin1232.fits scfile=/scratch/kocevski/932549/ft2_4FGL_J1249.3-0545_daily_bin1232.fits outfile=/scratch/kocevski/932549/cmap_558662401_558921601_4FGL_J1249.3-0545_daily_bin1232.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/932549/ft1_filtered_4FGL_J1249.3-0545_daily_bin1232.fits scfile=/scratch/kocevski/932549/ft2_4FGL_J1249.3-0545_daily_bin1232.fits outfile=/scratch/kocevski/932549/cmap_HighResolution_558662401_558921601_4FGL_J1249.3-0545_daily_bin1232.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/932549/ft1_filtered_4FGL_J1249.3-0545_daily_bin1232.fits evtable="EVENTS" scfile=/scratch/kocevski/932549/ft2_4FGL_J1249.3-0545_daily_bin1232.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/932549/Model_4FGL_J1249.3-0545_daily_bin1232.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/932549/ft1_filtered_4FGL_J1249.3-0545_daily_bin1232.fits........................!
real 18.40
user 16.79
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/932549/ft1_filtered_4FGL_J1249.3-0545_daily_bin1232.fits', '/scratch/kocevski/932549/ft2_4FGL_J1249.3-0545_daily_bin1232.fits', expMap='/scratch/kocevski/932549/expmap_558662401_558921601_4FGL_J1249.3-0545_daily_bin1232.fits', expCube='/scratch/kocevski/932549/ltcube_558662401_558921601_4FGL_J1249.3-0545_daily_bin1232.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/932549/Model_4FGL_J1249.3-0545_daily_bin1232.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/932549/ft1_filtered_4FGL_J1249.3-0545_daily_bin1232.fits
Spacecraft file(s): /scratch/kocevski/932549/ft2_4FGL_J1249.3-0545_daily_bin1232.fits
Exposure map: /scratch/kocevski/932549/expmap_558662401_558921601_4FGL_J1249.3-0545_daily_bin1232.fits
Exposure cube: /scratch/kocevski/932549/ltcube_558662401_558921601_4FGL_J1249.3-0545_daily_bin1232.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/932549/Model_4FGL_J1249.3-0545_daily_bin1232.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 612.613842054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 609.169212959

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    195.73       1.0000         .10000E-03   10000.    
     2 'Prefactor '    44.221       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12122       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10627E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .22137E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .69936E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    3.0107       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7742       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .34537E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5980       1.0000         .10000E-03   10000.    
    12 'norm      '    .39292E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.840       1.0000         .10000E-03   10000.    
    14 'Prefactor '    132.20       1.0000         .10000E-03   10000.    
    15 'Prefactor '    241.70       1.0000         .10000E-03   10000.    
    16 'norm      '    .36429       1.0000         .10000E-03   10000.    
    17 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16216       1.0000         .10000E-03   10000.    
    19 'norm      '    .10098       1.0000         .10000E-03   10000.    
    20 'norm      '    .18686E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9408       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10877       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.9237       1.0000         .10000E-03   10000.    
    24 'norm      '    .15216E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .71310       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .76247       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=   609.0935     FROM MIGRAD    STATUS=CONVERGED    284 CALLS      660 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     162.52        166.98        .22909E-06   -.45963E-03
   2  Prefactor     174.23        377.09       -.82359E-05    .37012E-03
   3  Prefactor     .10000E-03    366.87        .12909E-05** at limit **
   4  Prefactor     .10000E-03    11.191       -.54603E-07** at limit **
   5  norm          .10000E-03    2.3656       -.23292E-07** at limit **
   6  norm          .10000E-03    36.922        .92415E-06** at limit **
   7  Prefactor     .10000E-03    517.58        .60378E-05** at limit **
   8  norm          3.0054        1.7878        .25004E-07    .14412E-04
   9  Prefactor     6.7742        1.0027         .0000         .0000    
  10  Prefactor     .10000E-03    26.249       -.73793E-06** at limit **
  11  Prefactor     .10001E-03    819.48        .51402E-05** at limit **
  12  norm          .10000E-03    124.15       -.53514E-05** at limit **
  13  Prefactor     28.235        45.264        .16760E-05   -.20019E-04
  14  Prefactor     134.69        171.90       -.20076E-05   -.13604E-02
  15  Prefactor     234.09        32.996        .36744E-07    .11493E-01
  16  norm          .10000E-03    211.42        .61270E-05** at limit **
  17  norm          .10000E-03    .92718       -.18789E-07** at limit **
  18  Prefactor     .10000E-03    211.01        .33585E-05** at limit **
  19  norm          .10000E-03    42.644       -.44989E-06** at limit **
  20  norm          .10000E-03    255.36        .36467E-05** at limit **
  21  Prefactor     1.9408        1.0378         .0000         .0000    
  22  Prefactor     .10000E-03    101.62        .26244E-05** at limit **
  23  Prefactor     4.9237        1.0052         .0000         .0000    
  24  norm          .10000E-03    14.896        .27456E-06** at limit **
  25  Normalizat    .74471        .87884        .67218E-05    .17940E-05
  26  Prefactor     .73480        .60251       -.31712E-05    .19098E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 162.516
  Prefactor  = 174.23
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.00536
  Prefactor  = 6.77416
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.0001
  Prefactor  = 28.2348
  Prefactor  = 134.69
  Prefactor  = 234.092
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.94084
  Prefactor  = 0.0001
  Prefactor  = 4.92373
  norm       = 0.0001
  Normalizat = 0.744706
  Prefactor  = 0.734797
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   609.0935     FROM HESSE     STATUS=FAILED        43 CALLS      703 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     162.52        145.04        .72188E-03   -1.3151    
   2  Prefactor     174.23        328.61        .15072E-02   -1.3060    
   3  Prefactor     .10000E-03    347.84        .96119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.264        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.3757        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    36.750        .91332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    519.15        .93669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.0054        1.5746        .49492E-02   -1.5361    
   9  Prefactor     515.17        508.36         .0000       -1.5187    
  10  Prefactor     .10000E-03    .28434       -.73793E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    .17582        .51402E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .23806       -.53514E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     28.235        1.0072        .16760E-05   -1.4645    
  14  Prefactor     134.69        1.0092       -.20076E-05   -1.3382    
  15  Prefactor     234.09        .98452        .36744E-07   -1.2636    
  16  norm          .10000E-03    .28641        .61270E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .20571       -.18789E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .24027        .33585E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .22638       -.44989E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .20776        .36467E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.9408        1.0378         .0000       -1.5429    
  22  Prefactor     .10000E-03    .22815        .26244E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.9237        1.0052         .0000       -1.5264    
  24  norm          .10000E-03    .20571        .27456E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .74471        1.0744        .67218E-05   -1.0215    
  26  Prefactor     .73480        1.0931       -.31712E-05   -1.0218    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.16041e-11
Minuit parameter uncertainties:
  1  145.355
  2  332.164
  3  0.000629653
  4  3.50365e-07
  5  4.03373e-08
  6  2.52514e-06
  7  0.000921808
  8  1.57464
  9  1.00275
  10  2.10051e-07
  11  7.80251e-05
  12  4.80764e-06
  13  1.00721
  14  1.00924
  15  0.984521
  16  2.59639e-06
  17  7.43687e-09
  18  1.12376e-06
  19  1.18548e-07
  20  1.82916e-05
  21  1.03778
  22  2.0289e-06
  23  1.00525
  24  1.42685e-08
  25  1.10735
  26  1.12788
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 609.093509954

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  2.341e+02  9.845e-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.348e-01  1.128e+00  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:  7.447e-01  1.107e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.24
Ra Dec: 192.326 -5.762
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 2.04e-07 +/- 8.58e-10
Energy Flux (Fixed Index): 1.23e-04 +/- 5.16e-07

TS (Fixed Index): 1.24
Ra Dec: 192.326 -5.762
Photon Flux Upper Limit: 1.21e-06 ph cm-2 s-1
Energy Flux Upper Limit: 9.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/932549/likelihoodResults_558662401_558921601_4FGL_J1249.3-0545_daily_bin1232.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) = 609.089818759
delta logL = 0.00369119490313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 609.083159238
delta logL = 0.0103507156969

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    180.51       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2304       1.0000          .0000       10.000    
     3 'Normalizat'    .74133       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73577       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=   609.0832     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      248 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     180.43        447.70        .15022E-03    .21894E-03
   2  Index         2.2306        1.2859        .37453E-02    .25012E-03
   3  Normalizat    .74018        .80080        .37368E-03   -.43437E-04
   4  Prefactor     .73647        .57295        .26340E-03   -.82572E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 180.426
  Index      = 2.23063
  Normalizat = 0.740185
  Prefactor  = 0.736469
 **********
 **   18 **HESSE 
 **********

 FCN=   609.0832     FROM HESSE     STATUS=OK            23 CALLS      271 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     180.43        421.99        .30044E-04   -1.3013    
   2  Index         2.2306        1.2116        .14981E-03   -.58701    
   3  Normalizat    .74018        .80120        .14947E-04   -1.0233    
   4  Prefactor     .73647        .57331        .52681E-04   -1.0211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93239e-09
Minuit parameter uncertainties:
  1  429.4
  2  1.22942
  3  0.814457
  4  0.578012
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/932549': 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) = 609.083158231
delta logL = 0.0103517223165

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  1.804e+02  4.294e+02  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  2.231e+00  1.229e+00  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.365e-01  5.780e-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:  7.402e-01  8.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.25
Ra Dec: 192.326 -5.762
Photon Index (Free Index): 2.23 +/- 1.23
Photon Flux (Free Index): 2.40e-07 +/- 4.15e-07
Energy Flux (Free Index): 1.02e-04 +/- 1.73e-04

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/932549/cmap_HighResolution_558662401_558921601_4FGL_J1249.3-0545_daily_bin1232.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.15e-02', comment='SUCCESS', photon_flux='2.04e-07', energy_flux2='1.02e-04', photon_flux_error='8.58e-10', dlogl='1.04e-02', energy_flux='1.23e-04', photon_flux2='2.40e-07', job_status='DONE', time_completed='2021-09-06 06:27:34.715812', photon_index_error2='1.23', photon_index2='2.23', ts='1.24', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.21e-06', energy_flux_error2='1.73e-04', EG='0.74', time_epoch_completed='1630934854.72', return_code='101', job_id='932549', GAL2='0.74', EG2='0.74', return_code2='0', energy_flux_error='5.16e-07', photon_flux_error2='4.15e-07', ts2='1.25', photon_index='2.06' WHERE bin_id='1232' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:27:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 932549: <4FGL_J1249.3-0545_daily_bin1232> in cluster <slac> Done

Job <4FGL_J1249.3-0545_daily_bin1232> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 06:20:32 2021
Job was executed on host(s) <bullet0216>, 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:27:35 2021
Results reported at Mon Sep  6 06:27:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin1232 192.326 -5.7621 558662401 558921601 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 :                                   336.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             485.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   422 sec.
    Turnaround time :                            423 sec.

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

