/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 32 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 = 7430
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1249.8+3707_daily_bin64
RA = 192.46, Dec = 37.1306
tmin = 255916801, tmax = 256176001
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='934370', job_status='RUN', time_executed='2021-09-06 06:26:32.509240', time_epoch_executed='1630934792.51' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='64'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934370

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934370/ft1_4FGL_J1249.8+3707_daily_bin64.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934370/ft2_4FGL_J1249.8+3707_daily_bin64.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934370/ft1_4FGL_J1249.8+3707_daily_bin64.fits outfile=/scratch/kocevski/934370/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin64.fits ra=192.46 dec=37.1306 rad=12.0 tmin=255916801.0 tmax=256176001.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 1.46
user 1.28
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934370/ft2_4FGL_J1249.8+3707_daily_bin64.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/934370/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin64.fits evtable="EVENTS" outfile="/scratch/kocevski/934370/ft1_filtered_4FGL_J1249.8+3707_daily_bin64.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934370/ft1_filtered_4FGL_J1249.8+3707_daily_bin64.fits" evtable="EVENTS" scfile=/scratch/kocevski/934370/ft2_4FGL_J1249.8+3707_daily_bin64.fits sctable="SC_DATA" outfile=/scratch/kocevski/934370/ltcube_255916801_256176001_4FGL_J1249.8+3707_daily_bin64.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/934370/ft2_4FGL_J1249.8+3707_daily_bin64.fits
.....................!
real 12.55
user 11.97
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934370/ft1_filtered_4FGL_J1249.8+3707_daily_bin64.fits evtable="EVENTS" scfile=/scratch/kocevski/934370/ft2_4FGL_J1249.8+3707_daily_bin64.fits sctable="SC_DATA" expcube=/scratch/kocevski/934370/ltcube_255916801_256176001_4FGL_J1249.8+3707_daily_bin64.fits outfile=/scratch/kocevski/934370/expmap_255916801_256176001_4FGL_J1249.8+3707_daily_bin64.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/934370/ltcube_255916801_256176001_4FGL_J1249.8+3707_daily_bin64.fits
.....................!
real 190.45
user 185.38
sys 4.64

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/934370/ft1_filtered_4FGL_J1249.8+3707_daily_bin64.fits scfile=/scratch/kocevski/934370/ft2_4FGL_J1249.8+3707_daily_bin64.fits outfile=/scratch/kocevski/934370/cmap_255916801_256176001_4FGL_J1249.8+3707_daily_bin64.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934370/ft1_filtered_4FGL_J1249.8+3707_daily_bin64.fits scfile=/scratch/kocevski/934370/ft2_4FGL_J1249.8+3707_daily_bin64.fits outfile=/scratch/kocevski/934370/cmap_HighResolution_255916801_256176001_4FGL_J1249.8+3707_daily_bin64.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.60
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/934370/ft1_filtered_4FGL_J1249.8+3707_daily_bin64.fits', '/scratch/kocevski/934370/ft2_4FGL_J1249.8+3707_daily_bin64.fits', expMap='/scratch/kocevski/934370/expmap_255916801_256176001_4FGL_J1249.8+3707_daily_bin64.fits', expCube='/scratch/kocevski/934370/ltcube_255916801_256176001_4FGL_J1249.8+3707_daily_bin64.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/934370/Model_4FGL_J1249.8+3707_daily_bin64.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/934370/ft1_filtered_4FGL_J1249.8+3707_daily_bin64.fits
Spacecraft file(s): /scratch/kocevski/934370/ft2_4FGL_J1249.8+3707_daily_bin64.fits
Exposure map: /scratch/kocevski/934370/expmap_255916801_256176001_4FGL_J1249.8+3707_daily_bin64.fits
Exposure cube: /scratch/kocevski/934370/ltcube_255916801_256176001_4FGL_J1249.8+3707_daily_bin64.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/934370/Model_4FGL_J1249.8+3707_daily_bin64.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) = 8768.20086426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.9065       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11821E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.377       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.240       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.968       1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.403       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .39789E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .16149E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.470       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.637       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.9594       1.0000         .10000E-03   10000.    
    16 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    27.981       1.0000         .10000E-03   10000.    
    19 'norm      '    .22044E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.1020       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.696       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.3706       1.0000         .10000E-03   10000.    
    24 'Prefactor '    84.144       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0714       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90526       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=   8768.176     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     3201 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    75.867       -.58717E-06** at limit **
   2  Prefactor     .10000E-03    11.015       -.19658E-06** at limit **
   3  norm          3.9073        2.3671       -.49249E-07    .89899E-04
   4  Prefactor     .10000E-03    6.7992       -.48380E-06** at limit **
   5  Prefactor     .10000E-03    .98177       -.26382E-07** at limit **
   6  Prefactor     10.376        2.8072       -.39875E-08    .24902E-04
   7  Prefactor     17.241        9.4230       -.23401E-07    .56571E-05
   8  Prefactor     .10000E-03    8.0942       -.62535E-07** at limit **
   9  Prefactor     25.948        19.636        .56357E-06    .89654E-04
  10  Prefactor     40.400        59.339       -.10053E-06    .62384E-05
  11  Prefactor     .10002E-03    8.1013        .57628E-06** at limit **
  12  norm          .10001E-03    5.2785        .13857E-05** at limit **
  13  Prefactor     16.449        43.160       -.33999E-06    .20331E-04
  14  Prefactor     20.625        29.152        .14732E-06    .67460E-04
  15  Prefactor     5.9186        16.368        .20490E-05    .12486E-03
  16  norm          .10000E-03    3.1058       -.36152E-06** at limit **
  17  norm          .10000E-03    3.2701        .82999E-07** at limit **
  18  norm          27.992        5.3804        .20201E-06    .38499E-03
  19  norm          .10000E-03    13.341       -.30733E-05** at limit **
  20  Prefactor     6.1022        2.8418        .33947E-07    .69562E-04
  21  Prefactor     .10000E-03    3.5433        .98003E-07** at limit **
  22  Prefactor     18.667        42.275       -.43654E-06    .37220E-04
  23  Prefactor     1.3690        16.426       -.26331E-05    .91547E-04
  24  Prefactor     84.084        68.106       -.48510E-06    .73918E-04
  25  Normalizat    1.0717        .16116       -.54610E-06    .33126E-03
  26  Prefactor     .90492        .19243        .12275E-05    .20535E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.90727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3759
  Prefactor  = 17.2411
  Prefactor  = 0.0001
  Prefactor  = 25.9484
  Prefactor  = 40.3997
  Prefactor  = 0.000100017
  norm       = 0.000100007
  Prefactor  = 16.4493
  Prefactor  = 20.6252
  Prefactor  = 5.91855
  norm       = 0.0001
  norm       = 0.0001
  norm       = 27.9924
  norm       = 0.000100004
  Prefactor  = 6.10223
  Prefactor  = 0.0001
  Prefactor  = 18.6672
  Prefactor  = 1.36896
  Prefactor  = 84.0839
  Normalizat = 1.07174
  Prefactor  = 0.904918
 **********
 **   18 **HESSE 
 **********

 FCN=   8768.176     FROM HESSE     STATUS=OK           464 CALLS     3665 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    76.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.9073        2.3532        .10626E-03   -1.5313    
   4  Prefactor     .10000E-03    7.0689        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.0141        .18025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.376        2.8058        .76440E-04   -1.5064    
   7  Prefactor     17.241        9.4211        .96461E-04   -1.4877    
   8  Prefactor     .10000E-03    8.1086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.948        19.545        .78611E-04   -1.4689    
  10  Prefactor     40.400        59.115        .63061E-04   -1.4436    
  11  Prefactor     .10002E-03    32.866        .38030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10001E-03    14.787        .25813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.449        43.168        .98690E-04   -1.4897    
  14  Prefactor     20.625        28.107        .88168E-04   -1.4799    
  15  Prefactor     5.9186        16.300        .16449E-03   -1.5221    
  16  norm          .10000E-03    3.2138        .16198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.2698        .16534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          27.992        5.4163        .75736E-04   -1.4649    
  19  norm          .10000E-03    18.114        .34899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.1022        2.8366        .10143E-03   -1.5214    
  21  Prefactor     .10000E-03    3.5485        .17207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     18.667        42.209        .92630E-04   -1.4844    
  23  Prefactor     1.3690        15.784        .37241E-03   -1.5474    
  24  Prefactor     84.084        67.959        .21896E-03   -1.3871    
  25  Normalizat    1.0717        .18568        .24679E-03   -.90664    
  26  Prefactor     .90492        .21854        .32561E-03   -.95969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68068e-09
Minuit parameter uncertainties:
  1  8.42151e-05
  2  1.41706e-05
  3  2.35321
  4  3.00163e-05
  5  1.10113e-06
  6  2.80584
  7  9.4219
  8  3.29982e-06
  9  19.5494
  10  59.2012
  11  0.00149418
  12  0.000661667
  13  43.2505
  14  28.1246
  15  16.3124
  16  2.22667e-05
  17  3.62436e-06
  18  5.41635
  19  0.000558703
  20  2.8367
  21  5.94302e-06
  22  42.2766
  23  9.29952
  24  68.0218
  25  0.185796
  26  0.218747
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.595e+01  1.955e+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:  9.049e-01  2.187e-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.072e+00  1.858e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.57
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 2.37e-08 +/- 1.78e-08
Energy Flux (Fixed Index): 3.01e-05 +/- 2.27e-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) = 8765.4771908
delta logL = 2.69851236624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8765.31343864
delta logL = 2.86226452539

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8423       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9815       1.0000          .0000       10.000    
     3 'Normalizat'    .95833       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98061       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.

 FCN=   8765.313     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      335 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8323        19.163        .51471E-02    .95896E-03
   2  Index         2.9825        1.3776        .57724E-01    .54585E-03
   3  Normalizat    .95817        .63141E-01    .45643E-01    .60122E-04
   4  Prefactor     .98082        .70730E-01    .70872E-01   -.46352E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.83227
  Index      = 2.98246
  Normalizat = 0.958169
  Prefactor  = 0.980822
 **********
 **   18 **HESSE 
 **********

 FCN=   8765.313     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      368 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8323        27.513        .67418E-04   -1.5316    
   2  Index         2.9825        1.8186        .23451E-02   -.41535    
   3  Normalizat    .95817        .21192        .25853E-03   -.94445    
   4  Prefactor     .98082        .24231        .31353E-03   -.93372    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.04652e-10
Minuit parameter uncertainties:
  1  20.5496
  2  1.87024
  3  0.212103
  4  0.242579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934370': 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): 102
logL (Free Index) = 8765.31343645
delta logL = 2.86226671623

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  3.832e+00  2.055e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.982e+00  1.870e+00  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:  9.808e-01  2.426e-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:  9.582e-01  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.48
Ra Dec: 192.460 37.131
Photon Index (Free Index): 2.98 +/- 1.87
Photon Flux (Free Index): 1.17e-07 +/- 8.50e-08
Energy Flux (Free Index): 2.36e-05 +/- 1.21e-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/934370/cmap_HighResolution_255916801_256176001_4FGL_J1249.8+3707_daily_bin64.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.37e-08', energy_flux2='2.36e-05', photon_flux_error='1.78e-08', dlogl='2.86e+00', energy_flux='3.01e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-06 06:40:41.211417', photon_index_error2='1.87', photon_index2='2.98', ts='5.57', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.21e-05', EG='1.07', time_epoch_completed='1630935641.21', return_code='0', job_id='934370', GAL2='0.98', EG2='0.96', return_code2='102', energy_flux_error='2.27e-05', photon_flux_error2='8.50e-08', ts2='11.48', photon_index='1.78' WHERE bin_id='64' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:40:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 934370: <4FGL_J1249.8+3707_daily_bin64> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin64> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 06:25:50 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:25:51 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:25:51 2021
Terminated at Mon Sep  6 06:40:41 2021
Results reported at Mon Sep  6 06:40:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin64 192.46 37.1306 255916801 256176001 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 :                                   845.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            891 sec.

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

