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


Performing analysis on: 4FGL_J1249.3-0545_daily_bin576
RA = 192.326, Dec = -5.7621
tmin = 388627201, tmax = 388886401
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='928020', job_status='RUN', time_executed='2021-09-06 06:09:22.090487', time_epoch_executed='1630933762.09' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='576'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/928020

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/928020/ft1_4FGL_J1249.3-0545_daily_bin576.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/928020/ft2_4FGL_J1249.3-0545_daily_bin576.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/928020/ft1_4FGL_J1249.3-0545_daily_bin576.fits outfile=/scratch/kocevski/928020/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin576.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=388627201.0 tmax=388886401.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.01
user 3.77
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/928020/ft1_filtered_4FGL_J1249.3-0545_daily_bin576.fits" evtable="EVENTS" scfile=/scratch/kocevski/928020/ft2_4FGL_J1249.3-0545_daily_bin576.fits sctable="SC_DATA" outfile=/scratch/kocevski/928020/ltcube_388627201_388886401_4FGL_J1249.3-0545_daily_bin576.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/928020/ft2_4FGL_J1249.3-0545_daily_bin576.fits
.....................!
real 11.34
user 11.01
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/928020/ft1_filtered_4FGL_J1249.3-0545_daily_bin576.fits evtable="EVENTS" scfile=/scratch/kocevski/928020/ft2_4FGL_J1249.3-0545_daily_bin576.fits sctable="SC_DATA" expcube=/scratch/kocevski/928020/ltcube_388627201_388886401_4FGL_J1249.3-0545_daily_bin576.fits outfile=/scratch/kocevski/928020/expmap_388627201_388886401_4FGL_J1249.3-0545_daily_bin576.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/928020/ltcube_388627201_388886401_4FGL_J1249.3-0545_daily_bin576.fits
.....................!
real 190.29
user 185.55
sys 4.35

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/928020/ft1_filtered_4FGL_J1249.3-0545_daily_bin576.fits scfile=/scratch/kocevski/928020/ft2_4FGL_J1249.3-0545_daily_bin576.fits outfile=/scratch/kocevski/928020/cmap_388627201_388886401_4FGL_J1249.3-0545_daily_bin576.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.54
user 0.35
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/928020/ft1_filtered_4FGL_J1249.3-0545_daily_bin576.fits evtable="EVENTS" scfile=/scratch/kocevski/928020/ft2_4FGL_J1249.3-0545_daily_bin576.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/928020/Model_4FGL_J1249.3-0545_daily_bin576.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/928020/ft1_filtered_4FGL_J1249.3-0545_daily_bin576.fits.....................!
real 49.12
user 47.16
sys 1.64

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6416       1.0000         .10000E-03   10000.    
     2 'Prefactor '    82.007       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.271       1.0000         .10000E-03   10000.    
     8 'norm      '    .79305       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0521       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2393       1.0000         .10000E-03   10000.    
    12 'norm      '    3.7608       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    70.652       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .77101       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    18.568       1.0000         .10000E-03   10000.    
    20 'norm      '    .25620E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .35381E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.7244       1.0000         .10000E-03   10000.    
    24 'norm      '    2.0828       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5268       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .83260       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=   6025.246     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     2661 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6378        26.795       -.57946E-05   -.10665E-03
   2  Prefactor     81.977        61.307        .55209E-05    .34435E-03
   3  Prefactor     .10000E-03    7.4932       -.14437E-06** at limit **
   4  Prefactor     .10000E-03    4.0821       -.35461E-07** at limit **
   5  norm          .10000E-03    .64975       -.13800E-07** at limit **
   6  norm          .10000E-03    13.093       -.11565E-05** at limit **
   7  Prefactor     11.272        8.4449       -.24039E-05    .87152E-03
   8  norm          .79330        .59267       -.11824E-06   -.21760E-03
   9  Prefactor     3.0519        2.1198        .25282E-06    .15506E-03
  10  Prefactor     .10000E-03    3.3349       -.25081E-07** at limit **
  11  Prefactor     3.2409        13.905        .76587E-06    .14987E-03
  12  norm          3.7610        1.8766       -.56251E-08    .55907E-04
  13  Prefactor     .10000E-03    5.1543       -.11532E-06** at limit **
  14  Prefactor     .10000E-03    18.382        .35038E-05** at limit **
  15  Prefactor     70.668        49.342       -.30646E-05   -.18967E-03
  16  norm          .10000E-03    10.017        .47374E-06** at limit **
  17  norm          .77053        .29997        .44263E-07    .14974E-04
  18  Prefactor     .10000E-03    20.016       -.27168E-05** at limit **
  19  norm          18.571        14.861        .59280E-06    .29411E-03
  20  norm          .10001E-03    101.64        .46251E-04** at limit **
  21  Prefactor     .10000E-03    3.7413       -.13958E-08** at limit **
  22  Prefactor     .10000E-03    37.056       -.22519E-04** at limit **
  23  Prefactor     3.7260        7.5683       -.42730E-06    .14466E-03
  24  norm          2.0831        1.4876       -.34122E-07    .25875E-03
  25  Normalizat    1.5262        .26272        .73301E-08    .23379E-03
  26  Prefactor     .83296        .16571        .99901E-06    .12169E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.63782
  Prefactor  = 81.9774
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.2718
  norm       = 0.793295
  Prefactor  = 3.05193
  Prefactor  = 0.0001
  Prefactor  = 3.24087
  norm       = 3.761
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 70.6681
  norm       = 0.0001
  norm       = 0.770533
  Prefactor  = 0.000100001
  norm       = 18.5707
  norm       = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.72602
  norm       = 2.08313
  Normalizat = 1.52622
  Prefactor  = 0.832955
 **********
 **   18 **HESSE 
 **********

 FCN=   6025.246     FROM HESSE     STATUS=OK           462 CALLS     3123 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6378        26.996        .21170E-03   -1.5326    
   2  Prefactor     81.977        62.401        .22177E-03   -1.3895    
   3  Prefactor     .10000E-03    7.4953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.0883        .15316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .65104        .61100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    13.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.272        8.5343        .59665E-03   -1.5036    
   8  norm          .79330        .57589        .48785E-03   -1.5530    
   9  Prefactor     3.0519        2.1209        .89369E-04   -1.5359    
  10  Prefactor     .10000E-03    3.3385        .13843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.2409        13.807        .22505E-03   -1.5348    
  12  norm          3.7610        1.8740        .72539E-04   -1.5320    
  13  Prefactor     .10000E-03    5.1935        .17208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     70.668        49.706        .23879E-03   -1.4025    
  16  norm          .10000E-03    10.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .77053        .30062        .24337E-04   -1.5532    
  18  Prefactor     .10000E-03    20.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          18.571        14.793        .92949E-04   -1.4846    
  20  norm          .10001E-03    110.87        .48418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.7512        .14662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    174.55        .59876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.7260        7.5287        .20924E-03   -1.5322    
  24  norm          2.0831        1.4824        .77061E-04   -1.5419    
  25  Normalizat    1.5262        .30968        .29568E-03   -.77044    
  26  Prefactor     .83296        .19509        .25401E-03   -.98525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32615e-09
Minuit parameter uncertainties:
  1  19.8322
  2  62.4509
  3  7.04949e-06
  4  1.36831e-06
  5  9.59302e-08
  6  0.000105203
  7  8.53527
  8  0.575893
  9  2.12099
  10  2.28786e-06
  11  13.3838
  12  1.87405
  13  1.34511e-06
  14  0.000384987
  15  49.7354
  16  3.96281e-05
  17  0.300621
  18  0.000338625
  19  14.7955
  20  0.00201485
  21  2.72947e-06
  22  0.0010263
  23  7.5306
  24  1.48239
  25  0.31007
  26  0.195256
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  7.067e+01  4.974e+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:  8.330e-01  1.953e-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.526e+00  3.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.34
Ra Dec: 192.326 -5.762
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 6.16e-08 +/- 4.33e-08
Energy Flux (Fixed Index): 3.71e-05 +/- 2.61e-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) = 6025.15701459
delta logL = 0.0893397894797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6025.15406086
delta logL = 0.0922935208046

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    83.212       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8190       1.0000          .0000       10.000    
     3 'Normalizat'    1.5433       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82857       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=   6025.154     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      313 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     83.268        63.939        .22017E-03    .35236E-04
   2  Index         1.8198        .57237        .79678E-02    .26496E-03
   3  Normalizat    1.5432        .29229        .29445E-03    .45483E-04
   4  Prefactor     .82853        .19225        .25471E-03   -.43160E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 83.2682
  Index      = 1.81979
  Normalizat = 1.54319
  Prefactor  = 0.828533
 **********
 **   18 **HESSE 
 **********

 FCN=   6025.154     FROM HESSE     STATUS=OK            25 CALLS      338 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     83.268        63.181        .44034E-04   -1.3880    
   2  Index         1.8198        .56527        .15936E-02   -.68936    
   3  Normalizat    1.5432        .29241        .11778E-04   -.76572    
   4  Prefactor     .82853        .19242        .10189E-04   -.98685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40027e-11
Minuit parameter uncertainties:
  1  63.2319
  2  0.567315
  3  0.292735
  4  0.192581
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/928020': 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) = 6025.15405902
delta logL = 0.0922953604068

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  8.327e+01  6.323e+01  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  1.820e+00  5.673e-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:  8.285e-01  1.926e-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.543e+00  2.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.55
Ra Dec: 192.326 -5.762
Photon Index (Free Index): 1.82 +/- 0.57
Photon Flux (Free Index): 4.23e-08 +/- 5.15e-08
Energy Flux (Free Index): 4.78e-05 +/- 4.81e-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/928020/cmap_HighResolution_388627201_388886401_4FGL_J1249.3-0545_daily_bin576.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.16e-08', energy_flux2='4.78e-05', photon_flux_error='4.33e-08', dlogl='9.23e-02', energy_flux='3.71e-05', photon_flux2='4.23e-08', job_status='DONE', time_completed='2021-09-06 06:19:58.684682', photon_index_error2='0.57', photon_index2='1.82', ts='8.34', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='4.81e-05', EG='1.53', time_epoch_completed='1630934398.68', return_code='0', job_id='928020', GAL2='0.83', EG2='1.54', return_code2='0', energy_flux_error='2.61e-05', photon_flux_error2='5.15e-08', ts2='8.55', photon_index='2.06' WHERE bin_id='576' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:19:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 928020: <4FGL_J1249.3-0545_daily_bin576> in cluster <slac> Done

Job <4FGL_J1249.3-0545_daily_bin576> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 06:05:29 2021
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:05:30 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:30 2021
Terminated at Mon Sep  6 06:19:59 2021
Results reported at Mon Sep  6 06:19:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin576 192.326 -5.7621 388627201 388886401 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 :                                   636.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             252.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            870 sec.

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

