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


Performing analysis on: 4FGL_J1249.3-0545_daily_bin797
RA = 192.326, Dec = -5.7621
tmin = 445910401, tmax = 446169601
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='929616', job_status='RUN', time_executed='2021-09-06 06:13:22.820764', time_epoch_executed='1630934002.82' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='797'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929616

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929616/ft1_4FGL_J1249.3-0545_daily_bin797.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929616/ft2_4FGL_J1249.3-0545_daily_bin797.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929616/ft1_4FGL_J1249.3-0545_daily_bin797.fits outfile=/scratch/kocevski/929616/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin797.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=445910401.0 tmax=446169601.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.95
user 3.72
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/929616/ft2_4FGL_J1249.3-0545_daily_bin797.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/929616/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin797.fits evtable="EVENTS" outfile="/scratch/kocevski/929616/ft1_filtered_4FGL_J1249.3-0545_daily_bin797.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.36
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929616/ft1_filtered_4FGL_J1249.3-0545_daily_bin797.fits" evtable="EVENTS" scfile=/scratch/kocevski/929616/ft2_4FGL_J1249.3-0545_daily_bin797.fits sctable="SC_DATA" outfile=/scratch/kocevski/929616/ltcube_445910401_446169601_4FGL_J1249.3-0545_daily_bin797.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/929616/ft2_4FGL_J1249.3-0545_daily_bin797.fits
.....................!
real 11.57
user 11.23
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929616/ft1_filtered_4FGL_J1249.3-0545_daily_bin797.fits evtable="EVENTS" scfile=/scratch/kocevski/929616/ft2_4FGL_J1249.3-0545_daily_bin797.fits sctable="SC_DATA" expcube=/scratch/kocevski/929616/ltcube_445910401_446169601_4FGL_J1249.3-0545_daily_bin797.fits outfile=/scratch/kocevski/929616/expmap_445910401_446169601_4FGL_J1249.3-0545_daily_bin797.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/929616/ltcube_445910401_446169601_4FGL_J1249.3-0545_daily_bin797.fits
.....................!
real 189.53
user 185.21
sys 4.02

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/929616/ft1_filtered_4FGL_J1249.3-0545_daily_bin797.fits scfile=/scratch/kocevski/929616/ft2_4FGL_J1249.3-0545_daily_bin797.fits outfile=/scratch/kocevski/929616/cmap_445910401_446169601_4FGL_J1249.3-0545_daily_bin797.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929616/ft1_filtered_4FGL_J1249.3-0545_daily_bin797.fits scfile=/scratch/kocevski/929616/ft2_4FGL_J1249.3-0545_daily_bin797.fits outfile=/scratch/kocevski/929616/cmap_HighResolution_445910401_446169601_4FGL_J1249.3-0545_daily_bin797.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9970       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.232       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.268       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .31173E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3554       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5736       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2295       1.0000         .10000E-03   10000.    
    12 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18201E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.624       1.0000         .10000E-03   10000.    
    16 'norm      '    .10438E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3373       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    12.007       1.0000         .10000E-03   10000.    
    20 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.771       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.0310       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1477       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97279       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=   7531.994     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     2717 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9733        37.175        .23450E-04   -.11609E-03
   2  Prefactor     .10000E-03    13.337        .34197E-06** at limit **
   3  Prefactor     32.243        24.487       -.82787E-06   -.74918E-04
   4  Prefactor     .10000E-03    8.4090       -.31597E-06** at limit **
   5  norm          .10000E-03    1.1856        .21665E-07** at limit **
   6  norm          10.259        52.760       -.17107E-04   -.19238E-04
   7  Prefactor     .10000E-03    2.7283       -.34307E-06** at limit **
   8  norm          1.3557        .63126        .16130E-06   -.26296E-02
   9  Prefactor     5.5720        1.9751        .32313E-07    .27690E-03
  10  Prefactor     .10000E-03    4.3596        .25616E-06** at limit **
  11  Prefactor     7.2267        7.5505        .46354E-06   -.90695E-04
  12  norm          .10000E-03    .81091        .95374E-07** at limit **
  13  Prefactor     .10000E-03    3.6968        .15566E-06** at limit **
  14  Prefactor     .10000E-03    119.52        .10061E-03** at limit **
  15  Prefactor     28.616        29.814       -.25906E-05    .26032E-04
  16  norm          .10000E-03    39.838       -.32836E-05** at limit **
  17  norm          1.3375        .29880        .69956E-07    .29961E-02
  18  Prefactor     .10000E-03    155.04       -.13723E-03** at limit **
  19  norm          12.007        11.357        .10584E-05    .39096E-03
  20  norm          .10000E-03    7.5192       -.10706E-05** at limit **
  21  Prefactor     19.772        10.939        .52235E-06    .78223E-05
  22  Prefactor     .10000E-03    7.4747        .11867E-05** at limit **
  23  Prefactor     4.0273        9.7529       -.26171E-05   -.17107E-03
  24  norm          .10000E-03    .59085        .10566E-06** at limit **
  25  Normalizat    1.1476        .22280       -.25859E-05   -.13435E-03
  26  Prefactor     .97289        .14090        .82078E-06   -.33566E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.97332
  Prefactor  = 0.0001
  Prefactor  = 32.2425
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.2585
  Prefactor  = 0.000100001
  norm       = 1.3557
  Prefactor  = 5.57199
  Prefactor  = 0.0001
  Prefactor  = 7.22671
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 28.6157
  norm       = 0.0001
  norm       = 1.3375
  Prefactor  = 0.000100002
  norm       = 12.0073
  norm       = 0.0001
  Prefactor  = 19.7717
  Prefactor  = 0.0001
  Prefactor  = 4.02731
  norm       = 0.0001
  Normalizat = 1.1476
  Prefactor  = 0.97289
 **********
 **   18 **HESSE 
 **********

 FCN=   7531.994     FROM HESSE     STATUS=OK           458 CALLS     3175 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9733        37.083        .29311E-03   -1.5427    
   2  Prefactor     .10000E-03    13.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.243        24.374        .70578E-04   -1.4572    
   4  Prefactor     .10000E-03    8.4517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.9220        .18212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.259        53.177        .12504E-03   -1.5067    
   7  Prefactor     .10000E-03    6.5951        .27542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3557        .62573        .41985E-04   -1.5475    
   9  Prefactor     5.5720        1.9600        .69999E-04   -1.5236    
  10  Prefactor     .10000E-03    4.3729        .17694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.2267        7.5383        .14918E-03   -1.5170    
  12  norm          .10000E-03    3.1016        .14892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.7084        .16292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    120.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.616        29.896        .74883E-04   -1.4638    
  16  norm          .10000E-03    40.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3375        .30015        .20796E-04   -1.5477    
  18  Prefactor     .10000E-03    155.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          12.007        11.357        .11561E-03   -1.5015    
  20  norm          .10000E-03    7.5540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.772        10.927        .90078E-04   -1.4818    
  22  Prefactor     .10000E-03    7.4877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.0273        9.7359        .20085E-03   -1.5307    
  24  norm          .10000E-03    1.3600        .12944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1476        .26434        .31562E-03   -.88238    
  26  Prefactor     .97289        .16786        .22776E-03   -.93639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.56589e-10
Minuit parameter uncertainties:
  1  17.1205
  2  5.03361e-05
  3  24.3811
  4  7.26097e-07
  5  7.37296e-06
  6  46.7781
  7  0.000132122
  8  0.625733
  9  1.96004
  10  1.36093e-06
  11  7.5393
  12  8.5472e-06
  13  1.92592e-07
  14  0.00145936
  15  29.9114
  16  2.72024e-05
  17  0.300149
  18  0.000977139
  19  11.3592
  20  2.02222e-05
  21  10.9281
  22  8.78699e-06
  23  9.7397
  24  9.82891e-06
  25  0.264647
  26  0.167947
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  2.862e+01  2.991e+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.729e-01  1.679e-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.148e+00  2.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.39
Ra Dec: 192.326 -5.762
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 2.49e-08 +/- 2.61e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.57e-05

TS (Fixed Index): 2.39
Ra Dec: 192.326 -5.762
Photon Flux Upper Limit: 9.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929616/likelihoodResults_445910401_446169601_4FGL_J1249.3-0545_daily_bin797.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) = 7531.89857113
delta logL = 0.0957848939661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7531.89546288
delta logL = 0.0988931453658

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.853       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6772       1.0000          .0000       10.000    
     3 'Normalizat'    1.1575       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96962       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=   7531.895     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      299 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.853        40.167        .66019E-04   -.37954E-04
   2  Index         1.6772        .80414        .99551E-02   -.25658E-04
   3  Normalizat    1.1575        .24503        .31454E-03    .46336E-04
   4  Prefactor     .96962        .16503        .22814E-03    .66475E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.8534
  Index      = 1.6772
  Normalizat = 1.15749
  Prefactor  = 0.969622
 **********
 **   18 **HESSE 
 **********

 FCN=   7531.895     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.853        39.852        .13204E-04   -1.4493    
   2  Index         1.6772        .79794        .39820E-03   -.72691    
   3  Normalizat    1.1575        .24522        .12582E-04   -.87927    
   4  Prefactor     .96962        .16519        .91257E-05   -.93749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14032e-11
Minuit parameter uncertainties:
  1  39.8804
  2  0.804135
  3  0.245464
  4  0.165275
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929616': 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) = 7531.89546287
delta logL = 0.098893146529

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  3.685e+01  3.988e+01  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  1.677e+00  8.041e-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.696e-01  1.653e-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.157e+00  2.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.59
Ra Dec: 192.326 -5.762
Photon Index (Free Index): 1.68 +/- 0.80
Photon Flux (Free Index): 1.41e-08 +/- 2.39e-08
Energy Flux (Free Index): 2.47e-05 +/- 4.09e-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/929616/cmap_HighResolution_445910401_446169601_4FGL_J1249.3-0545_daily_bin797.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.33e-03', comment='SUCCESS', photon_flux='2.49e-08', energy_flux2='2.47e-05', photon_flux_error='2.61e-08', dlogl='9.89e-02', energy_flux='1.50e-05', photon_flux2='1.41e-08', job_status='DONE', time_completed='2021-09-06 06:27:03.984425', photon_index_error2='0.80', photon_index2='1.68', ts='2.39', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='9.72e-08', energy_flux_error2='4.09e-05', EG='1.15', time_epoch_completed='1630934823.98', return_code='0', job_id='929616', GAL2='0.97', EG2='1.16', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='2.39e-08', ts2='2.59', photon_index='2.06' WHERE bin_id='797' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:27:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 929616: <4FGL_J1249.3-0545_daily_bin797> in cluster <slac> Done

Job <4FGL_J1249.3-0545_daily_bin797> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 06:10:48 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:10:49 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:10:49 2021
Terminated at Mon Sep  6 06:27:04 2021
Results reported at Mon Sep  6 06:27:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin797 192.326 -5.7621 445910401 446169601 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 :                                   820.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            976 sec.

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

