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


Performing analysis on: 4FGL_J1249.3-0545_daily_bin1029
RA = 192.326, Dec = -5.7621
tmin = 506044801, tmax = 506304001
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='931154', job_status='RUN', time_executed='2021-09-06 06:16:44.430661', time_epoch_executed='1630934204.43' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931154

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931154/ft1_4FGL_J1249.3-0545_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931154/ft2_4FGL_J1249.3-0545_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931154/ft1_4FGL_J1249.3-0545_daily_bin1029.fits outfile=/scratch/kocevski/931154/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin1029.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=506044801.0 tmax=506304001.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.55
user 3.28
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/931154/ft1_filtered_4FGL_J1249.3-0545_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/931154/ft2_4FGL_J1249.3-0545_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/931154/ltcube_506044801_506304001_4FGL_J1249.3-0545_daily_bin1029.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/931154/ft2_4FGL_J1249.3-0545_daily_bin1029.fits
.....................!
real 10.13
user 9.81
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931154/ft1_filtered_4FGL_J1249.3-0545_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/931154/ft2_4FGL_J1249.3-0545_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/931154/ltcube_506044801_506304001_4FGL_J1249.3-0545_daily_bin1029.fits outfile=/scratch/kocevski/931154/expmap_506044801_506304001_4FGL_J1249.3-0545_daily_bin1029.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/931154/ltcube_506044801_506304001_4FGL_J1249.3-0545_daily_bin1029.fits
.....................!
real 158.05
user 152.55
sys 4.11

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/931154/ft1_filtered_4FGL_J1249.3-0545_daily_bin1029.fits scfile=/scratch/kocevski/931154/ft2_4FGL_J1249.3-0545_daily_bin1029.fits outfile=/scratch/kocevski/931154/cmap_506044801_506304001_4FGL_J1249.3-0545_daily_bin1029.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.47
user 0.32
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/931154/ft1_filtered_4FGL_J1249.3-0545_daily_bin1029.fits scfile=/scratch/kocevski/931154/ft2_4FGL_J1249.3-0545_daily_bin1029.fits outfile=/scratch/kocevski/931154/cmap_HighResolution_506044801_506304001_4FGL_J1249.3-0545_daily_bin1029.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.47
user 0.32
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/931154/ft1_filtered_4FGL_J1249.3-0545_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/931154/ft2_4FGL_J1249.3-0545_daily_bin1029.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/931154/Model_4FGL_J1249.3-0545_daily_bin1029.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/931154/ft1_filtered_4FGL_J1249.3-0545_daily_bin1029.fits.....................!
real 45.56
user 44.26
sys 1.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43312       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    62.206       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .94384       1.0000         .10000E-03   10000.    
     5 'norm      '    1.8781       1.0000         .10000E-03   10000.    
     6 'norm      '    10.291       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6981       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8909       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.145       1.0000         .10000E-03   10000.    
    12 'norm      '    .10643E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    66.322       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.3366       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    21.442       1.0000         .10000E-03   10000.    
    20 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.597       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.3423       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1802       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0508       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=   6601.343     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     3112 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41803        13.732       -.14119E-05    .30417E-03
   2  Prefactor     .10000E-03    77.807       -.11287E-04** at limit **
   3  Prefactor     62.178        37.793       -.15216E-04   -.41788E-03
   4  Prefactor     .88144        18.561        .60441E-05   -.37511E-03
   5  norm          1.8781        2.7411       -.19211E-06   -.20150E-02
   6  norm          10.272        36.572       -.31753E-04   -.33208E-04
   7  Prefactor     .10000E-03    2.6982        .15950E-06** at limit **
   8  norm          1.6982        .76110        .27642E-06   -.39925E-02
   9  Prefactor     4.8907        2.5165       -.29124E-07   -.13827E-04
  10  Prefactor     .10000E-03    3.7769        .32069E-05** at limit **
  11  Prefactor     26.150        16.974       -.60717E-06   -.17066E-04
  12  norm          .10000E-03    1.0882       -.94730E-07** at limit **
  13  Prefactor     .10000E-03    2.6622       -.12131E-06** at limit **
  14  Prefactor     .10000E-03    43.785        .38881E-04** at limit **
  15  Prefactor     66.326        53.250        .30302E-05   -.17601E-04
  16  norm          .10000E-03    7.7325        .41886E-07** at limit **
  17  norm          3.3367        .47449       -.49643E-07    .55781E-03
  18  Prefactor     .10000E-03    39.655       -.28585E-04** at limit **
  19  norm          21.446        14.302        .70157E-06    .53389E-04
  20  norm          .10000E-03    6.6376       -.11452E-06** at limit **
  21  Prefactor     .10000E-03    3.6778       -.21721E-05** at limit **
  22  Prefactor     25.608        22.671        .12601E-05    .67131E-05
  23  Prefactor     .10000E-03    3.9715       -.11527E-05** at limit **
  24  norm          1.3423        1.8395       -.38611E-06   -.89571E-03
  25  Normalizat    1.1794        .27609        .12441E-05   -.35057E-03
  26  Prefactor     1.0513        .16987        .64826E-06   -.28252E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.418035
  Prefactor  = 0.0001
  Prefactor  = 62.1779
  Prefactor  = 0.881438
  norm       = 1.8781
  norm       = 10.2723
  Prefactor  = 0.0001
  norm       = 1.69824
  Prefactor  = 4.89066
  Prefactor  = 0.0001
  Prefactor  = 26.1499
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 66.3259
  norm       = 0.0001
  norm       = 3.3367
  Prefactor  = 0.0001
  norm       = 21.4455
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.6081
  Prefactor  = 0.0001
  norm       = 1.34234
  Normalizat = 1.17939
  Prefactor  = 1.05125
 **********
 **   18 **HESSE 
 **********

 FCN=   6601.343     FROM HESSE     STATUS=OK           458 CALLS     3570 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41803        153.81        .57672E-02   -1.5579    
   2  Prefactor     .10000E-03    78.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     62.178        38.182        .50876E-04   -1.4129    
   4  Prefactor     .88144        106.09        .51544E-02   -1.5520    
   5  norm          1.8781        2.8889        .13297E-03   -1.5434    
   6  norm          10.272        36.557        .12490E-03   -1.5067    
   7  Prefactor     .10000E-03    2.7090        .13028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6982        .75419        .41705E-04   -1.5447    
   9  Prefactor     4.8907        2.5192        .89042E-04   -1.5266    
  10  Prefactor     .10000E-03    3.7800        .15415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.150        16.990        .78346E-04   -1.4685    
  12  norm          .10000E-03    1.7137        .16162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.6657        .12946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    43.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     66.326        53.436        .49282E-04   -1.4077    
  16  norm          .10000E-03    7.7339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.3367        .47784        .19526E-04   -1.5343    
  18  Prefactor     .10000E-03    39.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          21.446        14.313        .86500E-04   -1.4781    
  20  norm          .10000E-03    6.6649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.6818        .15216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     25.608        22.753        .79178E-04   -1.4695    
  23  Prefactor     .10000E-03    3.9795        .15811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.3423        1.8159        .12277E-03   -1.5476    
  25  Normalizat    1.1794        .31848        .35824E-03   -.87242    
  26  Prefactor     1.0513        .19705        .25082E-03   -.91040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01837e-08
Minuit parameter uncertainties:
  1  16.0768
  2  0.000187019
  3  38.1975
  4  19.3747
  5  2.88908
  6  36.6368
  7  1.23039e-06
  8  0.754192
  9  2.51922
  10  6.67894e-06
  11  16.9936
  12  1.31379e-05
  13  4.55888e-06
  14  0.000145059
  15  53.4747
  16  3.37818e-06
  17  0.477843
  18  1.497e-05
  19  14.3158
  20  4.96477e-06
  21  2.23109e-06
  22  22.761
  23  3.62088e-06
  24  1.81602
  25  0.319004
  26  0.19719
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  6.633e+01  5.347e+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:  1.051e+00  1.972e-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.179e+00  3.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.76
Ra Dec: 192.326 -5.762
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 5.78e-08 +/- 4.66e-08
Energy Flux (Fixed Index): 3.48e-05 +/- 2.81e-05

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

Saving results to:
/scratch/kocevski/931154/likelihoodResults_506044801_506304001_4FGL_J1249.3-0545_daily_bin1029.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) = 6601.07744248
delta logL = 0.265244817614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6601.07710597
delta logL = 0.265581329277

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    95.046       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6769       1.0000          .0000       10.000    
     3 'Normalizat'    1.1972       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0446       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=   6601.077     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      299 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     94.899        75.913        .20613E-03   -.16546E-04
   2  Index         1.6756        .49144        .85182E-02    .13891E-04
   3  Normalizat    1.1973        .28602        .35612E-03    .12323E-04
   4  Prefactor     1.0446        .19128        .25152E-03   -.20340E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 94.899
  Index      = 1.67561
  Normalizat = 1.19729
  Prefactor  = 1.04465
 **********
 **   18 **HESSE 
 **********

 FCN=   6601.077     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     94.899        75.154        .82453E-05   -1.3757    
   2  Index         1.6756        .48653        .34073E-03   -.72733    
   3  Normalizat    1.1973        .28621        .14245E-04   -.86687    
   4  Prefactor     1.0446        .19143        .10061E-04   -.91256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.12203e-12
Minuit parameter uncertainties:
  1  75.2298
  2  0.487914
  3  0.286587
  4  0.191559
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931154': 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) = 6601.07709866
delta logL = 0.265588633911

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  9.490e+01  7.523e+01  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  1.676e+00  4.879e-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:  1.045e+00  1.916e-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.197e+00  2.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.34
Ra Dec: 192.326 -5.762
Photon Index (Free Index): 1.68 +/- 0.49
Photon Flux (Free Index): 3.61e-08 +/- 3.80e-08
Energy Flux (Free Index): 6.37e-05 +/- 7.31e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/931154/cmap_HighResolution_506044801_506304001_4FGL_J1249.3-0545_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', comment='SUCCESS', photon_flux='5.78e-08', energy_flux2='6.37e-05', photon_flux_error='4.66e-08', dlogl='2.66e-01', energy_flux='3.48e-05', photon_flux2='3.61e-08', job_status='DONE', time_completed='2021-09-06 06:28:08.195047', photon_index_error2='0.49', photon_index2='1.68', ts='2.76', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.63e-07', energy_flux_error2='7.31e-05', EG='1.18', time_epoch_completed='1630934888.2', return_code='0', job_id='931154', GAL2='1.04', EG2='1.20', return_code2='0', energy_flux_error='2.81e-05', photon_flux_error2='3.80e-08', ts2='3.34', photon_index='2.06' WHERE bin_id='1029' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:28:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 931154: <4FGL_J1249.3-0545_daily_bin1029> in cluster <slac> Done

Job <4FGL_J1249.3-0545_daily_bin1029> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 06:15:40 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:15:41 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:15:41 2021
Terminated at Mon Sep  6 06:28:09 2021
Results reported at Mon Sep  6 06:28:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin1029 192.326 -5.7621 506044801 506304001 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 :                                   676.22 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             340.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            749 sec.

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

