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


Performing analysis on: 4FGL_J1249.3-0545_daily_bin633
RA = 192.326, Dec = -5.7621
tmin = 403401601, tmax = 403660801
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='929378', job_status='RUN', time_executed='2021-09-06 06:10:46.206045', time_epoch_executed='1630933846.21' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='633'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929378

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929378/ft1_4FGL_J1249.3-0545_daily_bin633.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929378/ft2_4FGL_J1249.3-0545_daily_bin633.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929378/ft1_4FGL_J1249.3-0545_daily_bin633.fits outfile=/scratch/kocevski/929378/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin633.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=403401601.0 tmax=403660801.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.97
user 3.72
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/929378/ft2_4FGL_J1249.3-0545_daily_bin633.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/929378/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin633.fits evtable="EVENTS" outfile="/scratch/kocevski/929378/ft1_filtered_4FGL_J1249.3-0545_daily_bin633.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/929378/ft1_filtered_4FGL_J1249.3-0545_daily_bin633.fits" evtable="EVENTS" scfile=/scratch/kocevski/929378/ft2_4FGL_J1249.3-0545_daily_bin633.fits sctable="SC_DATA" outfile=/scratch/kocevski/929378/ltcube_403401601_403660801_4FGL_J1249.3-0545_daily_bin633.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/929378/ft2_4FGL_J1249.3-0545_daily_bin633.fits
.....................!
real 12.32
user 11.82
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929378/ft1_filtered_4FGL_J1249.3-0545_daily_bin633.fits evtable="EVENTS" scfile=/scratch/kocevski/929378/ft2_4FGL_J1249.3-0545_daily_bin633.fits sctable="SC_DATA" expcube=/scratch/kocevski/929378/ltcube_403401601_403660801_4FGL_J1249.3-0545_daily_bin633.fits outfile=/scratch/kocevski/929378/expmap_403401601_403660801_4FGL_J1249.3-0545_daily_bin633.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/929378/ltcube_403401601_403660801_4FGL_J1249.3-0545_daily_bin633.fits
.....................!
real 191.66
user 185.26
sys 5.79

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/929378/ft1_filtered_4FGL_J1249.3-0545_daily_bin633.fits scfile=/scratch/kocevski/929378/ft2_4FGL_J1249.3-0545_daily_bin633.fits outfile=/scratch/kocevski/929378/cmap_403401601_403660801_4FGL_J1249.3-0545_daily_bin633.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.66
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929378/ft1_filtered_4FGL_J1249.3-0545_daily_bin633.fits scfile=/scratch/kocevski/929378/ft2_4FGL_J1249.3-0545_daily_bin633.fits outfile=/scratch/kocevski/929378/cmap_HighResolution_403401601_403660801_4FGL_J1249.3-0545_daily_bin633.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.62
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929378/ft1_filtered_4FGL_J1249.3-0545_daily_bin633.fits evtable="EVENTS" scfile=/scratch/kocevski/929378/ft2_4FGL_J1249.3-0545_daily_bin633.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929378/Model_4FGL_J1249.3-0545_daily_bin633.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/929378/ft1_filtered_4FGL_J1249.3-0545_daily_bin633.fits.....................!
real 78.94
user 76.85
sys 1.45

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10562E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.508       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7461       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    25.717       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4313       1.0000         .10000E-03   10000.    
     8 'norm      '    1.7209       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7475       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1192       1.0000         .10000E-03   10000.    
    12 'norm      '    5.1017       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1344       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    39.005       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.0775       1.0000         .10000E-03   10000.    
    18 'Prefactor '    105.27       1.0000         .10000E-03   10000.    
    19 'norm      '    .10229E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.9651       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.389       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    48.489       1.0000         .10000E-03   10000.    
    24 'norm      '    3.8143       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3662       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95412       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=   10273.97     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2627 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.179       -.61787E-05** at limit **
   2  Prefactor     .10000E-03    10.161       -.69379E-05** at limit **
   3  Prefactor     10.508        13.272       -.29811E-06    .35633E-05
   4  Prefactor     3.7461        4.9690        .27326E-06   -.64347E-04
   5  norm          .10000E-03    .65092       -.16669E-07** at limit **
   6  norm          25.716        30.061       -.10166E-05   -.21568E-05
   7  Prefactor     5.4311        3.7083       -.15578E-05   -.14541E-03
   8  norm          1.7209        .58473       -.11597E-07   -.62237E-03
   9  Prefactor     5.7475        2.0035        .16898E-06   -.82650E-05
  10  Prefactor     .10000E-03    2.4691       -.34915E-07** at limit **
  11  Prefactor     9.1177        8.9299       -.25563E-06   -.88244E-04
  12  norm          5.1014        1.9159       -.33385E-06   -.42358E-02
  13  Prefactor     5.1341        4.6063       -.44279E-06   -.54263E-04
  14  Prefactor     .10000E-03    12.427        .14882E-04** at limit **
  15  Prefactor     39.000        32.073       -.69127E-05    .26760E-04
  16  norm          .10000E-03    5.9259       -.68265E-06** at limit **
  17  norm          1.0775        .25425        .10269E-06   -.64266E-03
  18  Prefactor     105.26        58.556       -.62932E-05    .96095E-04
  19  norm          .10000E-03    9.1691       -.88995E-05** at limit **
  20  norm          6.9660        13.002        .64926E-06   -.38651E-04
  21  Prefactor     12.389        6.9954        .13399E-07   -.17031E-04
  22  Prefactor     .10000E-03    7.6978        .67449E-05** at limit **
  23  Prefactor     48.488        11.888       -.46185E-06    .65006E-04
  24  norm          3.8141        1.5449       -.32460E-07   -.11183E-03
  25  Normalizat    1.3664        .20725        .16300E-05    .44643E-04
  26  Prefactor     .95401        .13324        .13455E-06    .17237E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.508
  Prefactor  = 3.74613
  norm       = 0.0001
  norm       = 25.7159
  Prefactor  = 5.43113
  norm       = 1.7209
  Prefactor  = 5.74754
  Prefactor  = 0.0001
  Prefactor  = 9.11769
  norm       = 5.10143
  Prefactor  = 5.13414
  Prefactor  = 0.0001
  Prefactor  = 38.9999
  norm       = 0.0001
  norm       = 1.07747
  Prefactor  = 105.26
  norm       = 0.0001
  norm       = 6.96598
  Prefactor  = 12.3893
  Prefactor  = 0.0001
  Prefactor  = 48.4877
  norm       = 3.81406
  Normalizat = 1.36643
  Prefactor  = 0.954013
 **********
 **   18 **HESSE 
 **********

 FCN=   10273.97     FROM HESSE     STATUS=OK           460 CALLS     3087 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.759        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.508        13.277        .12360E-03   -1.5060    
   4  Prefactor     3.7461        4.9583        .20861E-03   -1.5321    
   5  norm          .10000E-03    .65968        .79783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          25.716        30.092        .78994E-04   -1.4693    
   7  Prefactor     5.4311        3.7144        .15336E-03   -1.5242    
   8  norm          1.7209        .58423        .42117E-04   -1.5446    
   9  Prefactor     5.7475        2.0057        .80383E-04   -1.5228    
  10  Prefactor     .10000E-03    2.4738        .15553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.1177        8.9445        .13272E-03   -1.5104    
  12  norm          5.1014        1.9450        .41681E-03   -1.5256    
  13  Prefactor     5.1341        4.6080        .17743E-03   -1.5255    
  14  Prefactor     .10000E-03    12.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     39.000        32.173        .64177E-04   -1.4458    
  16  norm          .10000E-03    5.9275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.0775        .25529        .22727E-04   -1.5500    
  18  Prefactor     105.26        58.415        .19597E-03   -1.3652    
  19  norm          .10000E-03    9.1835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.9660        13.015        .15201E-03   -1.5180    
  21  Prefactor     12.389        6.9956        .11380E-03   -1.5004    
  22  Prefactor     .10000E-03    7.7035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     48.488        11.915        .57586E-04   -1.4314    
  24  norm          3.8141        1.5461        .76755E-04   -1.5317    
  25  Normalizat    1.3664        .24422        .32521E-03   -.81605    
  26  Prefactor     .95401        .15614        .25676E-03   -.94278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45925e-09
Minuit parameter uncertainties:
  1  4.28803e-05
  2  4.80275e-07
  3  13.2804
  4  4.95884
  5  1.34032e-06
  6  30.1099
  7  3.71452
  8  0.584237
  9  2.00571
  10  7.49371e-07
  11  8.9458
  12  1.94506
  13  4.60829
  14  5.01163e-06
  15  32.1874
  16  2.51988e-06
  17  0.255287
  18  58.4468
  19  9.00146e-05
  20  13.0201
  21  6.99608
  22  5.5571e-06
  23  11.9155
  24  1.54613
  25  0.244431
  26  0.156211
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  3.900e+01  3.219e+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.540e-01  1.562e-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.366e+00  2.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.94
Ra Dec: 192.326 -5.762
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 3.40e-08 +/- 2.80e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 1.69e-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) = 10273.9682067
delta logL = 0.000427217180913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10273.9679864
delta logL = 0.000647475837468

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.741       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0356       1.0000          .0000       10.000    
     3 'Normalizat'    1.3675       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95385       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10273.97     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      283 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.795        40.669        .63583E-04    .18953E-04
   2  Index         2.0373        .61291        .89635E-02    .45609E-04
   3  Normalizat    1.3674        .22635        .32512E-03    .16784E-05
   4  Prefactor     .95372        .15238        .25680E-03   -.16026E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.7945
  Index      = 2.03729
  Normalizat = 1.36737
  Prefactor  = 0.953723
 **********
 **   18 **HESSE 
 **********

 FCN=   10273.97     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.795        38.526        .12717E-04   -1.4445    
   2  Index         2.0373        .58055        .35854E-03   -.63421    
   3  Normalizat    1.3674        .22628        .13005E-04   -.81577    
   4  Prefactor     .95372        .15247        .10272E-04   -.94288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.37574e-12
Minuit parameter uncertainties:
  1  38.5498
  2  0.582579
  3  0.226442
  4  0.152539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929378': 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) = 10273.9679741
delta logL = 0.000659835219267

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  3.979e+01  3.855e+01  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  2.037e+00  5.826e-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.537e-01  1.525e-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.367e+00  2.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.96
Ra Dec: 192.326 -5.762
Photon Index (Free Index): 2.04 +/- 0.58
Photon Flux (Free Index): 3.30e-08 +/- 3.81e-08
Energy Flux (Free Index): 2.09e-05 +/- 2.01e-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/929378/cmap_HighResolution_403401601_403660801_4FGL_J1249.3-0545_daily_bin633.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.40e-08', energy_flux2='2.09e-05', photon_flux_error='2.80e-08', dlogl='6.60e-04', energy_flux='2.05e-05', photon_flux2='3.30e-08', job_status='DONE', time_completed='2021-09-06 06:25:48.098914', photon_index_error2='0.58', photon_index2='2.04', ts='5.94', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='2.01e-05', EG='1.37', time_epoch_completed='1630934748.1', return_code='0', job_id='929378', GAL2='0.95', EG2='1.37', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='3.81e-08', ts2='5.96', photon_index='2.06' WHERE bin_id='633' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:25:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 929378: <4FGL_J1249.3-0545_daily_bin633> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin633 192.326 -5.7621 403401601 403660801 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 :                                   897.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             345.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            915 sec.

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

