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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin721
RA = 192.46, Dec = 37.1306
tmin = 426211201, tmax = 426470401
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='938617', job_status='RUN', time_executed='2021-09-06 06:42:56.864170', time_epoch_executed='1630935776.86' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='721'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938617

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938617/ft1_4FGL_J1249.8+3707_daily_bin721.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938617/ft2_4FGL_J1249.8+3707_daily_bin721.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938617/ft1_4FGL_J1249.8+3707_daily_bin721.fits outfile=/scratch/kocevski/938617/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin721.fits ra=192.46 dec=37.1306 rad=12.0 tmin=426211201.0 tmax=426470401.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.53
user 3.29
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/938617/ft2_4FGL_J1249.8+3707_daily_bin721.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/938617/ft2_4FGL_J1249.8+3707_daily_bin721.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/938617/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin721.fits evtable="EVENTS" outfile="/scratch/kocevski/938617/ft1_filtered_4FGL_J1249.8+3707_daily_bin721.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938617/ft1_filtered_4FGL_J1249.8+3707_daily_bin721.fits" evtable="EVENTS" scfile=/scratch/kocevski/938617/ft2_4FGL_J1249.8+3707_daily_bin721.fits sctable="SC_DATA" outfile=/scratch/kocevski/938617/ltcube_426211201_426470401_4FGL_J1249.8+3707_daily_bin721.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/938617/ft2_4FGL_J1249.8+3707_daily_bin721.fits
.....................!
real 12.43
user 12.04
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938617/ft1_filtered_4FGL_J1249.8+3707_daily_bin721.fits evtable="EVENTS" scfile=/scratch/kocevski/938617/ft2_4FGL_J1249.8+3707_daily_bin721.fits sctable="SC_DATA" expcube=/scratch/kocevski/938617/ltcube_426211201_426470401_4FGL_J1249.8+3707_daily_bin721.fits outfile=/scratch/kocevski/938617/expmap_426211201_426470401_4FGL_J1249.8+3707_daily_bin721.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/938617/ltcube_426211201_426470401_4FGL_J1249.8+3707_daily_bin721.fits
.....................!
real 189.99
user 184.95
sys 4.69

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 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1249.8+3707 @ 192.46 37.1306

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/938617/ft1_filtered_4FGL_J1249.8+3707_daily_bin721.fits scfile=/scratch/kocevski/938617/ft2_4FGL_J1249.8+3707_daily_bin721.fits outfile=/scratch/kocevski/938617/cmap_426211201_426470401_4FGL_J1249.8+3707_daily_bin721.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.46 yref=37.1306 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938617/ft1_filtered_4FGL_J1249.8+3707_daily_bin721.fits scfile=/scratch/kocevski/938617/ft2_4FGL_J1249.8+3707_daily_bin721.fits outfile=/scratch/kocevski/938617/cmap_HighResolution_426211201_426470401_4FGL_J1249.8+3707_daily_bin721.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.46 yref=37.1306 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.55
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/938617/ft1_filtered_4FGL_J1249.8+3707_daily_bin721.fits evtable="EVENTS" scfile=/scratch/kocevski/938617/ft2_4FGL_J1249.8+3707_daily_bin721.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/938617/Model_4FGL_J1249.8+3707_daily_bin721.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/938617/ft1_filtered_4FGL_J1249.8+3707_daily_bin721.fits.....................!
real 50.97
user 48.90
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/938617/ft1_filtered_4FGL_J1249.8+3707_daily_bin721.fits', '/scratch/kocevski/938617/ft2_4FGL_J1249.8+3707_daily_bin721.fits', expMap='/scratch/kocevski/938617/expmap_426211201_426470401_4FGL_J1249.8+3707_daily_bin721.fits', expCube='/scratch/kocevski/938617/ltcube_426211201_426470401_4FGL_J1249.8+3707_daily_bin721.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/938617/Model_4FGL_J1249.8+3707_daily_bin721.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1249.8+3707'

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.229e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.780e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/938617/ft1_filtered_4FGL_J1249.8+3707_daily_bin721.fits
Spacecraft file(s): /scratch/kocevski/938617/ft2_4FGL_J1249.8+3707_daily_bin721.fits
Exposure map: /scratch/kocevski/938617/expmap_426211201_426470401_4FGL_J1249.8+3707_daily_bin721.fits
Exposure cube: /scratch/kocevski/938617/ltcube_426211201_426470401_4FGL_J1249.8+3707_daily_bin721.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/938617/Model_4FGL_J1249.8+3707_daily_bin721.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) = 5558.34458124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.607       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.310       1.0000         .10000E-03   10000.    
     3 'norm      '    8.2885       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4402       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0430       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.531       1.0000         .10000E-03   10000.    
     9 'Prefactor '    54.977       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11028E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.769       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.808       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .13222E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .39320E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    27.027       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3167       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .44290       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5263       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3247       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .44852       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5558.344     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     3731 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.599        53.782       -.96832E-05   -.47940E-07
   2  Prefactor     22.306        33.816       -.20995E-05    .10551E-04
   3  norm          8.2887        4.1450       -.42942E-07    .12086E-03
   4  Prefactor     4.4384        9.9080       -.13265E-05   -.14709E-03
   5  Prefactor     .10000E-03    1.7101       -.16826E-08** at limit **
   6  Prefactor     7.0428        3.4319       -.54172E-07    .27860E-03
   7  Prefactor     .10014E-03    5.1841       -.12778E-05** at limit **
   8  Prefactor     20.532        24.152       -.11256E-05    .12443E-06
   9  Prefactor     54.976        29.842       -.13957E-05    .99570E-05
  10  Prefactor     .10000E-03    30.140       -.72064E-05** at limit **
  11  Prefactor     .10000E-03    10.846       -.97757E-07** at limit **
  12  norm          .10000E-03    1.4359       -.33696E-08** at limit **
  13  Prefactor     14.760        52.382       -.15680E-04   -.93256E-06
  14  Prefactor     16.787        29.206       -.12024E-05    .68248E-04
  15  Prefactor     .10000E-03    31.439        .36841E-05** at limit **
  16  norm          .10000E-03    4.5030        .13691E-08** at limit **
  17  norm          .10000E-03    7.9740        .19700E-06** at limit **
  18  norm          .10000E-03    3.5977       -.28483E-06** at limit **
  19  norm          27.013        10.504        .44945E-06    .42295E-03
  20  Prefactor     4.3250        6.0133       -.33131E-06   -.56307E-04
  21  Prefactor     .31774        19.872       -.11367E-05    .22945E-04
  22  Prefactor     .10000E-03    34.323        .10024E-04** at limit **
  23  Prefactor     2.5259        9.9922       -.13958E-05   -.16417E-03
  24  Prefactor     .10000E-03    68.022        .31013E-05** at limit **
  25  Normalizat    1.3247        .19029        .12713E-05    .18253E-03
  26  Prefactor     .44855        .21708        .18672E-05    .12877E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.5988
  Prefactor  = 22.3065
  norm       = 8.28868
  Prefactor  = 4.43845
  Prefactor  = 0.0001
  Prefactor  = 7.04279
  Prefactor  = 0.000100144
  Prefactor  = 20.5322
  Prefactor  = 54.9756
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.7602
  Prefactor  = 16.7873
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 27.0129
  Prefactor  = 4.32502
  Prefactor  = 0.317743
  Prefactor  = 0.0001
  Prefactor  = 2.52589
  Prefactor  = 0.0001
  Normalizat = 1.3247
  Prefactor  = 0.448551
 **********
 **   18 **HESSE 
 **********

 FCN=   5558.344     FROM HESSE     STATUS=OK           460 CALLS     4191 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.599        53.717        .76247E-04   -1.4657    
   2  Prefactor     22.306        33.799        .84803E-04   -1.4763    
   3  norm          8.2887        4.1297        .98715E-04   -1.5132    
   4  Prefactor     4.4384        9.9493        .19110E-03   -1.5287    
   5  Prefactor     .10000E-03    1.7274        .94773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.0428        3.4006        .88343E-04   -1.5177    
   7  Prefactor     .10014E-03    40.224        .32265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.532        24.186        .88396E-04   -1.4801    
   9  Prefactor     54.976        29.777        .54098E-04   -1.4224    
  10  Prefactor     .10000E-03    30.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.151        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.4389        .87214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.760        52.396        .10422E-03   -1.4939    
  14  Prefactor     16.787        28.705        .97691E-04   -1.4888    
  15  Prefactor     .10000E-03    31.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.603        .29601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.9886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    9.2152        .22683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          27.013        9.4773        .77059E-04   -1.4668    
  20  Prefactor     4.3250        6.7192        .15850E-03   -1.5292    
  21  Prefactor     .31774        426.12        .50176E-02   -1.5595    
  22  Prefactor     .10000E-03    34.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.5259        10.039        .25700E-03   -1.5390    
  24  Prefactor     .10000E-03    68.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3247        .21518        .20965E-03   -.82832    
  26  Prefactor     .44855        .24025        .39826E-03   -1.1440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0865e-09
Minuit parameter uncertainties:
  1  53.811
  2  33.8278
  3  4.12982
  4  9.95305
  5  1.07898e-07
  6  3.40069
  7  0.00480897
  8  24.1974
  9  29.7846
  10  8.28893e-06
  11  1.40846e-05
  12  3.24082e-07
  13  52.5603
  14  28.7285
  15  2.58768e-05
  16  2.28722e-05
  17  5.75709e-05
  18  8.56695e-05
  19  9.47784
  20  6.72039
  21  23.4372
  22  1.27766e-06
  23  10.0458
  24  6.91489e-05
  25  0.215328
  26  0.240791
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  5.498e+01  2.978e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.780e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  4.486e-01  2.408e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.325e+00  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.47
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 5.01e-08 +/- 2.72e-08
Energy Flux (Fixed Index): 6.37e-05 +/- 3.45e-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) = 5557.92934797
delta logL = 0.414259174467

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5557.92765941
delta logL = 0.41594773075

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.545       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1596       1.0000          .0000       10.000    
     3 'Normalizat'    1.2868       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47100       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+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=   5557.928     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      288 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.559        33.351        .69187E-04    .34829E-03
   2  Index         2.1594        .47449        .32740E-02    .30382E-03
   3  Normalizat    1.2871        .21240        .21213E-03    .15434E-02
   4  Prefactor     .47041        .24016        .38915E-03    .12929E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.5591
  Index      = 2.15941
  Normalizat = 1.28711
  Prefactor  = 0.470405
 **********
 **   18 **HESSE 
 **********

 FCN=   5557.928     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.559        29.868        .13837E-04   -1.4549    
   2  Index         2.1594        .42448        .13096E-03   -.60422    
   3  Normalizat    1.2871        .21103        .42427E-04   -.83952    
   4  Prefactor     .47041        .23943        .77830E-04   -1.1335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.97339e-09
Minuit parameter uncertainties:
  1  29.8814
  2  0.425238
  3  0.211172
  4  0.239945
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938617': 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) = 5557.92765467
delta logL = 0.415952473749

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  3.356e+01  2.988e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.159e+00  4.252e-01  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  4.704e-01  2.399e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.287e+00  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.19
Ra Dec: 192.460 37.131
Photon Index (Free Index): 2.16 +/- 0.43
Photon Flux (Free Index): 8.39e-08 +/- 5.58e-08
Energy Flux (Free Index): 4.07e-05 +/- 2.51e-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/938617/cmap_HighResolution_426211201_426470401_4FGL_J1249.8+3707_daily_bin721.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.01e-08', energy_flux2='4.07e-05', photon_flux_error='2.72e-08', dlogl='4.16e-01', energy_flux='6.37e-05', photon_flux2='8.39e-08', job_status='DONE', time_completed='2021-09-06 06:54:20.041359', photon_index_error2='0.43', photon_index2='2.16', ts='10.47', fit_tolerance='1e-08', GAL='0.45', photon_index_error='0.00', energy_flux_error2='2.51e-05', EG='1.32', time_epoch_completed='1630936460.04', return_code='0', job_id='938617', GAL2='0.47', EG2='1.29', return_code2='0', energy_flux_error='3.45e-05', photon_flux_error2='5.58e-08', ts2='11.19', photon_index='1.78' WHERE bin_id='721' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:54:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 938617: <4FGL_J1249.8+3707_daily_bin721> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin721> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 06:40:24 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:40:26 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:40:26 2021
Terminated at Mon Sep  6 06:54:20 2021
Results reported at Mon Sep  6 06:54:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin721 192.46 37.1306 426211201 426470401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1249.8+3707 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   681.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            836 sec.

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

