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


Performing analysis on: 4FGL_J1249.3-0545_daily_bin438
RA = 192.326, Dec = -5.7621
tmin = 352857601, tmax = 353116801
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='927792', job_status='RUN', time_executed='2021-09-06 06:07:58.478066', time_epoch_executed='1630933678.48' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/927792

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/927792/ft1_4FGL_J1249.3-0545_daily_bin438.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/927792/ft2_4FGL_J1249.3-0545_daily_bin438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/927792/ft1_4FGL_J1249.3-0545_daily_bin438.fits outfile=/scratch/kocevski/927792/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin438.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=352857601.0 tmax=353116801.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.39
user 3.17
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/927792/ft1_filtered_4FGL_J1249.3-0545_daily_bin438.fits" evtable="EVENTS" scfile=/scratch/kocevski/927792/ft2_4FGL_J1249.3-0545_daily_bin438.fits sctable="SC_DATA" outfile=/scratch/kocevski/927792/ltcube_352857601_353116801_4FGL_J1249.3-0545_daily_bin438.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/927792/ft2_4FGL_J1249.3-0545_daily_bin438.fits
.....................!
real 12.01
user 11.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/927792/ft1_filtered_4FGL_J1249.3-0545_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/927792/ft2_4FGL_J1249.3-0545_daily_bin438.fits sctable="SC_DATA" expcube=/scratch/kocevski/927792/ltcube_352857601_353116801_4FGL_J1249.3-0545_daily_bin438.fits outfile=/scratch/kocevski/927792/expmap_352857601_353116801_4FGL_J1249.3-0545_daily_bin438.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/927792/ltcube_352857601_353116801_4FGL_J1249.3-0545_daily_bin438.fits
.....................!
real 190.36
user 184.91
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/927792/ft1_filtered_4FGL_J1249.3-0545_daily_bin438.fits scfile=/scratch/kocevski/927792/ft2_4FGL_J1249.3-0545_daily_bin438.fits outfile=/scratch/kocevski/927792/cmap_352857601_353116801_4FGL_J1249.3-0545_daily_bin438.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.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/927792/ft1_filtered_4FGL_J1249.3-0545_daily_bin438.fits scfile=/scratch/kocevski/927792/ft2_4FGL_J1249.3-0545_daily_bin438.fits outfile=/scratch/kocevski/927792/cmap_HighResolution_352857601_353116801_4FGL_J1249.3-0545_daily_bin438.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.64
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/927792/ft1_filtered_4FGL_J1249.3-0545_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/927792/ft2_4FGL_J1249.3-0545_daily_bin438.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/927792/Model_4FGL_J1249.3-0545_daily_bin438.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/927792/ft1_filtered_4FGL_J1249.3-0545_daily_bin438.fits......................!
real 29.17
user 27.65
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10619E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.7986       1.0000         .10000E-03   10000.    
     6 'norm      '    .66104E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .27807       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8907       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1519       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.130       1.0000         .10000E-03   10000.    
    16 'norm      '    34.349       1.0000         .10000E-03   10000.    
    17 'norm      '    .19171       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .28434E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    16.270       1.0000         .10000E-03   10000.    
    20 'norm      '    .10278E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    32.011       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.210       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0644       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90023       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=   2570.501     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3092 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    65.769       -.84418E-06** at limit **
   2  Prefactor     .10000E-03    30.903       -.29385E-07** at limit **
   3  Prefactor     .10000E-03    27.631       -.13475E-06** at limit **
   4  Prefactor     .10000E-03    8.3316       -.84834E-07** at limit **
   5  norm          1.7978        2.5694        .56184E-07   -.16898E-04
   6  norm          .10000E-03    442.92        .12849E-05** at limit **
   7  Prefactor     .10000E-03    3.2075       -.53762E-07** at limit **
   8  norm          .27756        .61944        .16342E-06    .71619E-04
   9  Prefactor     4.8910        2.9513       -.63811E-08    .13367E-04
  10  Prefactor     2.1526        19.998        .14698E-05   -.29038E-04
  11  Prefactor     .10000E-03    29.655       -.41048E-06** at limit **
  12  norm          .10000E-03    1.5445       -.23958E-06** at limit **
  13  Prefactor     .10000E-03    44.944        .17988E-05** at limit **
  14  Prefactor     .10000E-03    30.276       -.22302E-06** at limit **
  15  Prefactor     10.271        155.74       -.83626E-05    .10043E-04
  16  norm          34.303        58.049       -.11767E-05   -.58084E-04
  17  norm          .19154        .30481        .68738E-06    .14159E-02
  18  Prefactor     .10000E-03    241.88        .44562E-06** at limit **
  19  norm          16.273        21.991        .87548E-07   -.74647E-04
  20  norm          .10000E-03    10.217       -.72984E-07** at limit **
  21  Prefactor     .10000E-03    3.6359       -.29425E-07** at limit **
  22  Prefactor     31.994        34.075        .59732E-06    .90196E-06
  23  Prefactor     12.212        11.388        .11609E-06   -.37324E-04
  24  norm          .10000E-03    .78677       -.27081E-07** at limit **
  25  Normalizat    1.0641        .33612       -.49903E-05    .18881E-04
  26  Prefactor     .90045        .21662        .27948E-05   -.18909E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.79776
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.277564
  Prefactor  = 4.89105
  Prefactor  = 2.15261
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2712
  norm       = 34.3028
  norm       = 0.191544
  Prefactor  = 0.000100001
  norm       = 16.273
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.9941
  Prefactor  = 12.2118
  norm       = 0.0001
  Normalizat = 1.06409
  Prefactor  = 0.900451
 **********
 **   18 **HESSE 
 **********

 FCN=   2570.501     FROM HESSE     STATUS=OK           456 CALLS     3548 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    66.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    30.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.3429        .14290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.7978        2.5487        .94364E-04   -1.5440    
   6  norm          .10000E-03    462.03        .37582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.2186        .88663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .27756        .58369        .55923E-03   -1.5603    
   9  Prefactor     4.8910        2.9532        .65825E-04   -1.5266    
  10  Prefactor     2.1526        19.691        .28087E-03   -1.5415    
  11  Prefactor     .10000E-03    30.640        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.4218        .12188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    45.813        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    30.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.271        155.04        .12589E-03   -1.5067    
  16  norm          34.303        58.090        .68375E-04   -1.4536    
  17  norm          .19154        .30829        .33701E-03   -1.5620    
  18  Prefactor     .10000E-03    242.14        .21412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          16.273        22.013        .99294E-04   -1.4901    
  20  norm          .10000E-03    10.223        .15829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.6379        .94421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     31.994        34.114        .70820E-04   -1.4576    
  23  Prefactor     12.212        11.396        .11464E-03   -1.5009    
  24  norm          .10000E-03    .79772        .43898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0641        .38057        .27626E-03   -.90913    
  26  Prefactor     .90045        .24778        .20705E-03   -.96125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28951e-10
Minuit parameter uncertainties:
  1  0.000154359
  2  2.42518e-05
  3  2.34914e-05
  4  4.19383e-06
  5  2.5489
  6  0.000409792
  7  1.88726e-06
  8  0.5837
  9  2.95332
  10  13.0264
  11  6.09998e-05
  12  2.71619e-05
  13  8.01923e-05
  14  6.26316e-06
  15  80.0608
  16  58.1864
  17  0.30829
  18  0.000785252
  19  22.0238
  20  2.90764e-06
  21  5.01221e-08
  22  34.1349
  23  11.3977
  24  1.0864e-06
  25  0.381548
  26  0.248087
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  1.027e+01  8.006e+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.005e-01  2.481e-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.064e+00  3.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 192.326 -5.762
Photon Flux Upper Limit: 1.78e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.34e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/927792/likelihoodResults_352857601_353116801_4FGL_J1249.3-0545_daily_bin438.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): 102
logL (Free Index) = 2570.01315402
delta logL = 0.487833294493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2569.92862528
delta logL = 0.572362028845

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95118E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    4.5821       1.0000          .0000       10.000    
     3 'Normalizat'    .93083       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95953       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=   2569.929     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      279 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93728E-01    2.0290        .33945E-02    .59224E-03
   2  Index         4.5885        2.4212        .72033E-01    .75080E-04
   3  Normalizat    .93069        .79359E-01    .66227E-01   -.23688E-05
   4  Prefactor     .95940        .55193E-01    .45759E-01   -.56272E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0937278
  Index      = 4.58852
  Normalizat = 0.930686
  Prefactor  = 0.959395
 **********
 **   18 **HESSE 
 **********

 FCN=   2569.929     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      312 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93728E-01    4.6404        .15339E-04   -1.5647    
   2  Index         4.5885        3.9965        .27305E-02   -.82388E-01
   3  Normalizat    .93069        .31592        .29295E-03   -.95390    
   4  Prefactor     .95940        .21507        .20122E-03   -.94095    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.45472e-07
Minuit parameter uncertainties:
  1  1.31839
  2  4.6376
  3  0.316554
  4  0.215266
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/927792': 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): 102
logL (Free Index) = 2569.92861164
delta logL = 0.572375668832

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  9.373e-02  1.318e+00  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  4.589e+00  4.638e+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:  9.594e-01  2.153e-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.307e-01  3.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 192.326 -5.762
Photon Index (Free Index): 4.59 +/- 4.64
Photon Flux (Free Index): 1.07e-07 +/- 1.09e-07
Energy Flux (Free Index): 1.48e-05 +/- 1.64e-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/927792/cmap_HighResolution_352857601_353116801_4FGL_J1249.3-0545_daily_bin438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-02', comment='SUCCESS', energy_flux2='1.48e-05', dlogl='5.72e-01', photon_flux2='1.07e-07', job_status='DONE', time_completed='2021-09-06 06:16:30.481901', photon_index_error2='4.64', photon_index2='4.59', ts='0.02', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.78e-07', energy_flux_error2='1.64e-05', EG='1.06', time_epoch_completed='1630934190.48', return_code='0', job_id='927792', GAL2='0.96', EG2='0.93', return_code2='102', photon_flux_error2='1.09e-07', ts2='1.29', photon_index='2.06' WHERE bin_id='438' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:16:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 927792: <4FGL_J1249.3-0545_daily_bin438> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin438 192.326 -5.7621 352857601 353116801 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 :                                   511.24 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             257.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   672 sec.
    Turnaround time :                            674 sec.

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

