/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 148 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 = 7378
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1249.3-0545_daily_bin370
RA = 192.326, Dec = -5.7621
tmin = 335232001, tmax = 335491201
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='926560', job_status='RUN', time_executed='2021-09-06 06:03:54.137650', time_epoch_executed='1630933434.14' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='370'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/926560

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/926560/ft1_4FGL_J1249.3-0545_daily_bin370.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/926560/ft2_4FGL_J1249.3-0545_daily_bin370.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/926560/ft1_4FGL_J1249.3-0545_daily_bin370.fits outfile=/scratch/kocevski/926560/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin370.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=335232001.0 tmax=335491201.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.64
user 3.49
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/926560/ft1_filtered_4FGL_J1249.3-0545_daily_bin370.fits" evtable="EVENTS" scfile=/scratch/kocevski/926560/ft2_4FGL_J1249.3-0545_daily_bin370.fits sctable="SC_DATA" outfile=/scratch/kocevski/926560/ltcube_335232001_335491201_4FGL_J1249.3-0545_daily_bin370.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/926560/ft2_4FGL_J1249.3-0545_daily_bin370.fits
.....................!
real 12.43
user 11.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/926560/ft1_filtered_4FGL_J1249.3-0545_daily_bin370.fits evtable="EVENTS" scfile=/scratch/kocevski/926560/ft2_4FGL_J1249.3-0545_daily_bin370.fits sctable="SC_DATA" expcube=/scratch/kocevski/926560/ltcube_335232001_335491201_4FGL_J1249.3-0545_daily_bin370.fits outfile=/scratch/kocevski/926560/expmap_335232001_335491201_4FGL_J1249.3-0545_daily_bin370.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/926560/ltcube_335232001_335491201_4FGL_J1249.3-0545_daily_bin370.fits
.....................!
real 193.41
user 187.41
sys 4.90

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/926560/ft1_filtered_4FGL_J1249.3-0545_daily_bin370.fits scfile=/scratch/kocevski/926560/ft2_4FGL_J1249.3-0545_daily_bin370.fits outfile=/scratch/kocevski/926560/cmap_335232001_335491201_4FGL_J1249.3-0545_daily_bin370.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/926560/ft1_filtered_4FGL_J1249.3-0545_daily_bin370.fits scfile=/scratch/kocevski/926560/ft2_4FGL_J1249.3-0545_daily_bin370.fits outfile=/scratch/kocevski/926560/cmap_HighResolution_335232001_335491201_4FGL_J1249.3-0545_daily_bin370.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/926560/ft1_filtered_4FGL_J1249.3-0545_daily_bin370.fits evtable="EVENTS" scfile=/scratch/kocevski/926560/ft2_4FGL_J1249.3-0545_daily_bin370.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/926560/Model_4FGL_J1249.3-0545_daily_bin370.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/926560/ft1_filtered_4FGL_J1249.3-0545_daily_bin370.fits.....................!
real 64.34
user 62.83
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4674       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12530E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.915       1.0000         .10000E-03   10000.    
     5 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    38.775       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2710       1.0000         .10000E-03   10000.    
     8 'norm      '    .34049       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6109       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2976       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.104       1.0000         .10000E-03   10000.    
    12 'norm      '    14.820       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    90.089       1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.363       1.0000         .10000E-03   10000.    
    16 'norm      '    61.688       1.0000         .10000E-03   10000.    
    17 'norm      '    1.5921       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .81169E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .85906       1.0000         .10000E-03   10000.    
    24 'norm      '    .10470E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0592       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95053       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=   8256.706     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     2788 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4646        13.586       -.13299E-06    .77266E-04
   2  Prefactor     .10000E-03    95.073       -.69253E-06** at limit **
   3  Prefactor     .10000E-03    26.232       -.52877E-06** at limit **
   4  Prefactor     11.925        11.292        .78246E-06    .25962E-03
   5  norm          .10000E-03    1.6740       -.12681E-06** at limit **
   6  norm          38.796        38.572       -.85510E-06   -.68673E-04
   7  Prefactor     5.2716        4.1636       -.24691E-07    .46491E-04
   8  norm          .33958        .46432       -.40007E-06    .22451E-03
   9  Prefactor     4.6111        1.7913       -.71984E-08   -.53486E-04
  10  Prefactor     3.2992        5.3993        .21396E-06    .17348E-03
  11  Prefactor     28.106        12.198       -.17364E-07    .79551E-04
  12  norm          14.822        2.8259        .15748E-06    .59313E-03
  13  Prefactor     .10000E-03    7.0596        .79493E-06** at limit **
  14  Prefactor     90.103        48.230       -.33261E-06   -.30462E-04
  15  Prefactor     41.363        32.930        .35170E-07    .28401E-05
  16  norm          61.695        31.198       -.17289E-06   -.88053E-04
  17  norm          1.5921        .28479        .49350E-08    .13271E-02
  18  Prefactor     .10000E-03    20.441        .36017E-06** at limit **
  19  norm          .10000E-03    2.2958       -.18373E-07** at limit **
  20  norm          .10000E-03    6.9709       -.89694E-06** at limit **
  21  Prefactor     .10000E-03    6.3886        .21623E-07** at limit **
  22  Prefactor     .10127E-03    50.551       -.12542E-04** at limit **
  23  Prefactor     .88362        9.9494        .56429E-05    .66280E-03
  24  norm          .10000E-03    .52833        .49415E-07** at limit **
  25  Normalizat    1.0593        .22451       -.25599E-06    .47825E-03
  26  Prefactor     .95037        .13679        .58265E-06    .71276E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.46458
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9246
  norm       = 0.0001
  norm       = 38.796
  Prefactor  = 5.27163
  norm       = 0.339576
  Prefactor  = 4.61106
  Prefactor  = 3.29922
  Prefactor  = 28.1056
  norm       = 14.8216
  Prefactor  = 0.0001
  Prefactor  = 90.1032
  Prefactor  = 41.363
  norm       = 61.6945
  norm       = 1.59214
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010127
  Prefactor  = 0.883621
  norm       = 0.000100002
  Normalizat = 1.0593
  Prefactor  = 0.950366
 **********
 **   18 **HESSE 
 **********

 FCN=   8256.706     FROM HESSE     STATUS=OK           458 CALLS     3246 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4646        13.565        .15781E-03   -1.5199    
   2  Prefactor     .10000E-03    96.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.925        11.259        .11605E-03   -1.5017    
   5  norm          .10000E-03    1.7235        .22819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          38.796        38.639        .64367E-04   -1.4461    
   7  Prefactor     5.2716        4.1627        .15730E-03   -1.5249    
   8  norm          .33958        .46631        .69532E-03   -1.5591    
   9  Prefactor     4.6111        1.7930        .72929E-04   -1.5278    
  10  Prefactor     3.2992        5.3821        .22295E-03   -1.5345    
  11  Prefactor     28.106        12.192        .75572E-04   -1.4647    
  12  norm          14.822        2.8321        .63528E-04   -1.4938    
  13  Prefactor     .10000E-03    7.1600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     90.103        48.372        .42335E-04   -1.3807    
  15  Prefactor     41.363        33.022        .62328E-04   -1.4421    
  16  norm          61.695        31.225        .51088E-04   -1.4135    
  17  norm          1.5921        .28632        .19272E-04   -1.5456    
  18  Prefactor     .10000E-03    20.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.2982        .13446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.0597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.4571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10127E-03    151.03        .62962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .88362        12.102        .32781E-02   -1.5520    
  24  norm          .10000E-03    12.430        .12611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0593        .25729        .33295E-03   -.91070    
  26  Prefactor     .95037        .16127        .23485E-03   -.94403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07244e-08
Minuit parameter uncertainties:
  1  13.5711
  2  7.99852e-05
  3  0.000108572
  4  11.2609
  5  1.66786e-05
  6  38.6643
  7  4.16296
  8  0.466317
  9  1.79298
  10  5.38289
  11  12.1928
  12  2.83212
  13  4.69179e-05
  14  48.3935
  15  33.0369
  16  31.233
  17  0.286316
  18  2.54864e-05
  19  1.48128e-06
  20  3.34242e-05
  21  1.98642e-05
  22  0.0277699
  23  6.54155
  24  0.000300246
  25  0.257595
  26  0.161354
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  4.136e+01  3.304e+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:  9.504e-01  1.614e-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.059e+00  2.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.77
Ra Dec: 192.326 -5.762
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 3.61e-08 +/- 2.88e-08
Energy Flux (Fixed Index): 2.17e-05 +/- 1.73e-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) = 8256.00769928
delta logL = 0.698365908238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8256.00765086
delta logL = 0.698414333026

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.212       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4521       1.0000          .0000       10.000    
     3 'Normalizat'    1.0752       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94588       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=   8256.008     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      245 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.052        117.98        .13035E-02    .34887E-06
   2  Index         1.4518        1.0362        .20417        .54544E-05
   3  Normalizat    1.0752        .20600        .74788E-01    .20208E-04
   4  Prefactor     .94588        .13630        .45587E-01    .10468E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.0519
  Index      = 1.4518
  Normalizat = 1.07523
  Prefactor  = 0.945882
 **********
 **   18 **HESSE 
 **********

 FCN=   8256.008     FROM HESSE     STATUS=OK            31 CALLS      276 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.052        49.212        .52139E-04   -1.4170    
   2  Index         1.4518        .49911        .10782E-01   -.78899    
   3  Normalizat    1.0752        .23537        .33099E-03   -.90551    
   4  Prefactor     .94588        .15921        .23544E-03   -.94556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55188e-11
Minuit parameter uncertainties:
  1  49.2455
  2  0.500796
  3  0.235598
  4  0.159292
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/926560': 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) = 8256.00764566
delta logL = 0.698419529936

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  5.905e+01  4.925e+01  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  1.452e+00  5.008e-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:  9.459e-01  1.593e-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.075e+00  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.19
Ra Dec: 192.326 -5.762
Photon Index (Free Index): 1.45 +/- 0.50
Photon Flux (Free Index): 1.54e-08 +/- 1.81e-08
Energy Flux (Free Index): 5.73e-05 +/- 6.77e-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/926560/cmap_HighResolution_335232001_335491201_4FGL_J1249.3-0545_daily_bin370.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.61e-08', energy_flux2='5.73e-05', photon_flux_error='2.88e-08', dlogl='6.98e-01', energy_flux='2.17e-05', photon_flux2='1.54e-08', job_status='DONE', time_completed='2021-09-06 06:17:09.964148', photon_index_error2='0.50', photon_index2='1.45', ts='6.77', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='6.77e-05', EG='1.06', time_epoch_completed='1630934229.96', return_code='0', job_id='926560', GAL2='0.95', EG2='1.08', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='1.81e-08', ts2='8.19', photon_index='2.06' WHERE bin_id='370' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:17:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 926560: <4FGL_J1249.3-0545_daily_bin370> in cluster <slac> Done

Job <4FGL_J1249.3-0545_daily_bin370> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 06:01:05 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:01:06 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:01:06 2021
Terminated at Mon Sep  6 06:17:10 2021
Results reported at Mon Sep  6 06:17:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin370 192.326 -5.7621 335232001 335491201 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 :                                   789.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            965 sec.

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

