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


Performing analysis on: 4FGL_J1249.3-0545_daily_bin979
RA = 192.326, Dec = -5.7621
tmin = 493084801, tmax = 493344001
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='931071', job_status='RUN', time_executed='2021-09-06 06:19:42.377284', time_epoch_executed='1630934382.38' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='979'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931071

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931071/ft1_4FGL_J1249.3-0545_daily_bin979.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931071/ft2_4FGL_J1249.3-0545_daily_bin979.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931071/ft1_4FGL_J1249.3-0545_daily_bin979.fits outfile=/scratch/kocevski/931071/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin979.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=493084801.0 tmax=493344001.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.35
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/931071/ft1_filtered_4FGL_J1249.3-0545_daily_bin979.fits" evtable="EVENTS" scfile=/scratch/kocevski/931071/ft2_4FGL_J1249.3-0545_daily_bin979.fits sctable="SC_DATA" outfile=/scratch/kocevski/931071/ltcube_493084801_493344001_4FGL_J1249.3-0545_daily_bin979.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/931071/ft2_4FGL_J1249.3-0545_daily_bin979.fits
.....................!
real 12.52
user 12.15
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931071/ft1_filtered_4FGL_J1249.3-0545_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/931071/ft2_4FGL_J1249.3-0545_daily_bin979.fits sctable="SC_DATA" expcube=/scratch/kocevski/931071/ltcube_493084801_493344001_4FGL_J1249.3-0545_daily_bin979.fits outfile=/scratch/kocevski/931071/expmap_493084801_493344001_4FGL_J1249.3-0545_daily_bin979.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/931071/ltcube_493084801_493344001_4FGL_J1249.3-0545_daily_bin979.fits
.....................!
real 190.36
user 185.99
sys 3.92

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/931071/ft1_filtered_4FGL_J1249.3-0545_daily_bin979.fits scfile=/scratch/kocevski/931071/ft2_4FGL_J1249.3-0545_daily_bin979.fits outfile=/scratch/kocevski/931071/cmap_493084801_493344001_4FGL_J1249.3-0545_daily_bin979.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/931071/ft1_filtered_4FGL_J1249.3-0545_daily_bin979.fits scfile=/scratch/kocevski/931071/ft2_4FGL_J1249.3-0545_daily_bin979.fits outfile=/scratch/kocevski/931071/cmap_HighResolution_493084801_493344001_4FGL_J1249.3-0545_daily_bin979.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.35
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/931071/ft1_filtered_4FGL_J1249.3-0545_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/931071/ft2_4FGL_J1249.3-0545_daily_bin979.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/931071/Model_4FGL_J1249.3-0545_daily_bin979.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/931071/ft1_filtered_4FGL_J1249.3-0545_daily_bin979.fits.....................!
real 47.41
user 45.84
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.221       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.3835       1.0000         .10000E-03   10000.    
     6 'norm      '    .31945E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0005       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2092       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.849       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.648       1.0000         .10000E-03   10000.    
    12 'norm      '    3.2700       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    71.670       1.0000         .10000E-03   10000.    
    16 'norm      '    21.215       1.0000         .10000E-03   10000.    
    17 'norm      '    .43000       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.4110       1.0000         .10000E-03   10000.    
    19 'norm      '    5.0656       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .24423E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .99057       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3034       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=   5481.986     FROM MIGRAD    STATUS=CONVERGED   1105 CALLS     3629 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.225        22.519        .75415E-04    .34220E-04
   2  Prefactor     .10000E-03    16.612        .18142E-02** at limit **
   3  Prefactor     .10000E-03    73.155        .36285E-03** at limit **
   4  Prefactor     .10000E-03    3.8468        .14173E-02** at limit **
   5  norm          1.3836        2.1653        .13400E-03    .98924E-04
   6  norm          .10000E-03    55.318        .15263    ** at limit **
   7  Prefactor     .10000E-03    2.5927        .11627E-02** at limit **
   8  norm          1.0006        .63300        .42920E-04    .19045E-03
   9  Prefactor     6.2093        2.8520        .81919E-04   -.16237E-04
  10  Prefactor     17.846        11.189        .94800E-04    .35977E-04
  11  Prefactor     20.645        17.618        .88146E-04   -.12253E-04
  12  norm          3.2698        1.7808        .70312E-04    .12935E-04
  13  Prefactor     .10000E-03    11.079        .36285E-03** at limit **
  14  Prefactor     .10000E-03    18.734        .18142E-02** at limit **
  15  Prefactor     71.699        52.418        .23710E-03    .22824E-04
  16  norm          21.226        27.266        .86961E-04    .24578E-04
  17  norm          .42995        .24713        .25825E-04    .11886E-04
  18  Prefactor     6.4034        116.44        .15852E-03   -.47335E-05
  19  norm          5.0645        9.9198        .89325E-03   -.68727E-05
  20  norm          .10000E-03    7.4741        .18142E-02** at limit **
  21  Prefactor     .10000E-03    56.681        .36285E-02** at limit **
  22  Prefactor     .10000E-03    13.558        .18142E-02** at limit **
  23  Prefactor     .10000E-03    4.0609        .14557E-02** at limit **
  24  norm          .10000E-03    4.1775        .12848E-02** at limit **
  25  Normalizat    .99072        .32391        .36209E-03   -.84208E-04
  26  Prefactor     1.3033        .21548        .22397E-03   -.57967E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.2248
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.38361
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.00065
  Prefactor  = 6.20934
  Prefactor  = 17.8463
  Prefactor  = 20.645
  norm       = 3.26985
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.6989
  norm       = 21.2257
  norm       = 0.429949
  Prefactor  = 6.4034
  norm       = 5.06447
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Normalizat = 0.990717
  Prefactor  = 1.30331
 **********
 **   18 **HESSE 
 **********

 FCN=   5481.986     FROM HESSE     STATUS=OK           442 CALLS     4071 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.225        22.518        .30166E-05   -1.4645    
   2  Prefactor     .10000E-03    16.612        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    73.158        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.8469        .28346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3836        2.1652        .53600E-05   -1.5473    
   6  norm          .10000E-03    54.965        .15334       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.5928        .23254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0006        .63299        .17168E-05   -1.5508    
   9  Prefactor     6.2093        2.8520        .32768E-05   -1.5210    
  10  Prefactor     17.846        11.189        .37920E-05   -1.4863    
  11  Prefactor     20.645        17.619        .35258E-05   -1.4799    
  12  norm          3.2698        1.7807        .28125E-05   -1.5346    
  13  Prefactor     .10000E-03    11.080        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.735        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     71.699        52.417        .94840E-05   -1.4012    
  16  norm          21.226        27.269        .34784E-05   -1.4786    
  17  norm          .42995        .24713        .10330E-05   -1.5577    
  18  Prefactor     6.4034        116.51        .63406E-05   -1.5202    
  19  norm          5.0645        9.9170        .35730E-04   -1.5258    
  20  norm          .10000E-03    7.4757        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    57.109        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.559        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.0610        .29115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.2175        .25695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .99072        .32413        .14484E-04   -.93342    
  26  Prefactor     1.3033        .21565        .44795E-04   -.83209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92602e-10
Minuit parameter uncertainties:
  1  22.5246
  2  4.15324e-06
  3  0.000193696
  4  2.47814e-07
  5  2.16535
  6  0.000706415
  7  9.97976e-07
  8  0.632996
  9  2.85208
  10  11.1902
  11  17.6232
  12  1.78077
  13  2.55417e-05
  14  1.50106e-05
  15  52.4513
  16  27.2849
  17  0.247127
  18  54.7513
  19  9.92021
  20  1.52792e-06
  21  0.000236521
  22  1.64263e-05
  23  1.37289e-06
  24  0.000151432
  25  0.324773
  26  0.215799
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.303e+00  2.158e-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:  9.907e-01  3.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.49
Ra Dec: 192.326 -5.762
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 6.25e-08 +/- 4.57e-08
Energy Flux (Fixed Index): 3.76e-05 +/- 2.75e-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) = 5481.52349954
delta logL = 0.462329954114

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5481.51294232
delta logL = 0.472887168426

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.193       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6623       1.0000          .0000       10.000    
     3 'Normalizat'    .94659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3202       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=   5481.513     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      313 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.196        49.917        .78274E-04    .11213E-03
   2  Index         2.6622        .80866        .34532E-02    .10345E-03
   3  Normalizat    .94579        .30995        .36928E-03   -.27646E-04
   4  Prefactor     1.3208        .21432        .22255E-03    .13007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.1962
  Index      = 2.66225
  Normalizat = 0.945793
  Prefactor  = 1.32082
 **********
 **   18 **HESSE 
 **********

 FCN=   5481.513     FROM HESSE     STATUS=OK            25 CALLS      338 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.196        38.029        .31309E-05   -1.4684    
   2  Index         2.6622        .61668        .13813E-03   -.48652    
   3  Normalizat    .94579        .30849        .14771E-04   -.94869    
   4  Prefactor     1.3208        .21384        .44510E-04   -.82690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54968e-10
Minuit parameter uncertainties:
  1  38.0646
  2  0.618695
  3  0.309074
  4  0.213978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931071': 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) = 5481.51293848
delta logL = 0.472891013955

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.458e-01  3.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.48
Ra Dec: 192.326 -5.762
Photon Index (Free Index): 2.66 +/- 0.62
Photon Flux (Free Index): 1.08e-07 +/- 7.58e-08
Energy Flux (Free Index): 2.68e-05 +/- 1.67e-05

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/931071/cmap_HighResolution_493084801_493344001_4FGL_J1249.3-0545_daily_bin979.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.25e-08', energy_flux2='2.68e-05', photon_flux_error='4.57e-08', dlogl='4.73e-01', energy_flux='3.76e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-06 06:31:07.236797', photon_index_error2='0.62', photon_index2='2.66', ts='4.49', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='0.99', time_epoch_completed='1630935067.24', return_code='0', job_id='931071', GAL2='1.32', EG2='0.95', return_code2='0', energy_flux_error='2.75e-05', photon_flux_error2='7.58e-08', ts2='5.48', photon_index='2.06' WHERE bin_id='979' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:31:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 931071: <4FGL_J1249.3-0545_daily_bin979> in cluster <slac> Done

Job <4FGL_J1249.3-0545_daily_bin979> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 06:15:35 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:15:36 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:15:36 2021
Terminated at Mon Sep  6 06:31:08 2021
Results reported at Mon Sep  6 06:31:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin979 192.326 -5.7621 493084801 493344001 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 :                                   684.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             261.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

