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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin797
RA = 192.46, Dec = 37.1306
tmin = 445910401, tmax = 446169601
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='938724', job_status='RUN', time_executed='2021-09-06 06:44:12.663665', time_epoch_executed='1630935852.66' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='797'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938724

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938724/ft1_4FGL_J1249.8+3707_daily_bin797.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938724/ft2_4FGL_J1249.8+3707_daily_bin797.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938724/ft1_4FGL_J1249.8+3707_daily_bin797.fits outfile=/scratch/kocevski/938724/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin797.fits ra=192.46 dec=37.1306 rad=12.0 tmin=445910401.0 tmax=446169601.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.93
user 3.72
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/938724/ft2_4FGL_J1249.8+3707_daily_bin797.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/938724/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin797.fits evtable="EVENTS" outfile="/scratch/kocevski/938724/ft1_filtered_4FGL_J1249.8+3707_daily_bin797.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.57
user 0.30
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938724/ft1_filtered_4FGL_J1249.8+3707_daily_bin797.fits" evtable="EVENTS" scfile=/scratch/kocevski/938724/ft2_4FGL_J1249.8+3707_daily_bin797.fits sctable="SC_DATA" outfile=/scratch/kocevski/938724/ltcube_445910401_446169601_4FGL_J1249.8+3707_daily_bin797.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/938724/ft2_4FGL_J1249.8+3707_daily_bin797.fits
.....................!
real 12.48
user 12.12
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938724/ft1_filtered_4FGL_J1249.8+3707_daily_bin797.fits evtable="EVENTS" scfile=/scratch/kocevski/938724/ft2_4FGL_J1249.8+3707_daily_bin797.fits sctable="SC_DATA" expcube=/scratch/kocevski/938724/ltcube_445910401_446169601_4FGL_J1249.8+3707_daily_bin797.fits outfile=/scratch/kocevski/938724/expmap_445910401_446169601_4FGL_J1249.8+3707_daily_bin797.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/938724/ltcube_445910401_446169601_4FGL_J1249.8+3707_daily_bin797.fits
.....................!
real 192.39
user 186.32
sys 5.71

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/938724/ft1_filtered_4FGL_J1249.8+3707_daily_bin797.fits scfile=/scratch/kocevski/938724/ft2_4FGL_J1249.8+3707_daily_bin797.fits outfile=/scratch/kocevski/938724/cmap_445910401_446169601_4FGL_J1249.8+3707_daily_bin797.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.64
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938724/ft1_filtered_4FGL_J1249.8+3707_daily_bin797.fits scfile=/scratch/kocevski/938724/ft2_4FGL_J1249.8+3707_daily_bin797.fits outfile=/scratch/kocevski/938724/cmap_HighResolution_445910401_446169601_4FGL_J1249.8+3707_daily_bin797.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.66
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.487       1.0000         .10000E-03   10000.    
     3 'norm      '    5.2924       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .78054       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27976       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.2917       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.6552       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.787       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    51.686       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13232E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.3573       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10447E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    15.412       1.0000         .10000E-03   10000.    
    18 'norm      '    4.6124       1.0000         .10000E-03   10000.    
    19 'norm      '    3.0550       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.1628       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .25660E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .93326       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93246       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=   5519.526     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     3083 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.150       -.22221E-05** at limit **
   2  Prefactor     28.493        25.296        .35503E-06    .73826E-04
   3  norm          5.2942        3.8554       -.10913E-06    .15009E-03
   4  Prefactor     .78034        6.1292        .20357E-05   -.19270E-03
   5  Prefactor     .27794        2.8211       -.66481E-07    .21788E-04
   6  Prefactor     6.2920        2.8749       -.61308E-07    .49520E-04
   7  Prefactor     7.6557        7.3186       -.59622E-07    .60393E-05
   8  Prefactor     20.789        18.929        .18331E-06    .13173E-04
   9  Prefactor     .10000E-03    16.501        .90554E-06** at limit **
  10  Prefactor     51.698        72.896        .20756E-05    .48962E-04
  11  Prefactor     .10000E-03    3.6830        .44879E-06** at limit **
  12  norm          5.3585        4.7072       -.36931E-06   -.52211E-03
  13  Prefactor     .10000E-03    56.995       -.66269E-06** at limit **
  14  Prefactor     .10000E-03    16.876        .24610E-07** at limit **
  15  Prefactor     .10000E-03    7.4471       -.45661E-06** at limit **
  16  norm          .10000E-03    3.3177        .35487E-06** at limit **
  17  norm          15.412        15.202        .14302E-06    .65086E-05
  18  norm          4.6147        5.4069       -.35139E-06   -.82343E-04
  19  norm          3.0536        7.4773        .61175E-06   -.43802E-04
  20  Prefactor     .10000E-03    1.4294       -.15117E-06** at limit **
  21  Prefactor     5.1619        9.5413        .36123E-05   -.29803E-03
  22  Prefactor     .10000E-03    23.491       -.10779E-05** at limit **
  23  Prefactor     .10000E-03    26.326        .26744E-05** at limit **
  24  Prefactor     .10003E-03    152.68       -.98369E-05** at limit **
  25  Normalizat    .93315        .16950       -.58021E-06   -.69285E-04
  26  Prefactor     .93246        .21329       -.25722E-06   -.80252E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 28.493
  norm       = 5.2942
  Prefactor  = 0.780338
  Prefactor  = 0.277938
  Prefactor  = 6.29202
  Prefactor  = 7.65567
  Prefactor  = 20.789
  Prefactor  = 0.0001
  Prefactor  = 51.6976
  Prefactor  = 0.000100001
  norm       = 5.35852
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.4123
  norm       = 4.61472
  norm       = 3.05364
  Prefactor  = 0.0001
  Prefactor  = 5.16191
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100029
  Normalizat = 0.933155
  Prefactor  = 0.932456
 **********
 **   18 **HESSE 
 **********

 FCN=   5519.526     FROM HESSE     STATUS=OK           462 CALLS     3545 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.493        25.328        .75062E-04   -1.4640    
   3  norm          5.2942        3.9873        .97752E-04   -1.5248    
   4  Prefactor     .78034        6.2610        .35995E-03   -1.5531    
   5  Prefactor     .27794        5.8695        .19382E-02   -1.5603    
   6  Prefactor     6.2920        2.8538        .80187E-04   -1.5206    
   7  Prefactor     7.6557        7.3164        .14494E-03   -1.5155    
   8  Prefactor     20.789        18.935        .87851E-04   -1.4796    
   9  Prefactor     .10000E-03    16.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     51.698        73.325        .55785E-04   -1.4269    
  11  Prefactor     .10000E-03    8.3190        .27458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.3585        4.7651        .14268E-03   -1.5245    
  13  Prefactor     .10000E-03    57.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.4834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.8588        .26011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          15.412        15.200        .10202E-03   -1.4923    
  18  norm          4.6147        5.5434        .12674E-03   -1.5278    
  19  norm          3.0536        7.6568        .22392E-03   -1.5358    
  20  Prefactor     .10000E-03    1.4618        .86695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.1619        9.7079        .88465E-03   -1.5254    
  22  Prefactor     .10000E-03    23.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    27.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10003E-03    160.40        .21454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .93315        .20026        .22553E-03   -.95305    
  26  Prefactor     .93246        .25171        .28471E-03   -.95016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02751e-09
Minuit parameter uncertainties:
  1  0.000371715
  2  25.3379
  3  3.98752
  4  4.42107
  5  2.55432
  6  2.85381
  7  7.31727
  8  18.9403
  9  0.000126244
  10  73.453
  11  0.000131849
  12  4.76541
  13  0.000183009
  14  0.000100519
  15  5.25586e-05
  16  0.000110081
  17  15.2039
  18  5.54404
  19  7.65929
  20  9.1138e-06
  21  9.71083
  22  0.000200605
  23  0.000470318
  24  0.00434959
  25  0.200421
  26  0.252023
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.262e-04  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.325e-01  2.520e-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.332e-01  2.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.460 37.131
Photon Flux Upper Limit: 3.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938724/likelihoodResults_445910401_446169601_4FGL_J1249.8+3707_daily_bin797.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): 102
logL (Free Index) = 5519.52613083
delta logL = -0.000284410381028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5519.52584638
delta logL = 3.72601789422e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9231       1.0000          .0000       10.000    
     3 'Normalizat'    .93315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93245       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=   5519.526     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      224 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9397        .90712E-02** at limit **
   2  Index         1.9220        8.6809        .50000        .55097E-06
   3  Normalizat    .93315        .13686E-02    .45324E-01   -.43181E-04
   4  Prefactor     .93246        .17365E-02    .45417E-01   -.81358E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.92204
  Normalizat = 0.933155
  Prefactor  = 0.932455
 **********
 **   18 **HESSE 
 **********

 FCN=   5519.526     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      257 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9220        5.5312        .50000       -.66314    
   3  Normalizat    .93315        .60755E-02    .22553E-03   -.95305    
   4  Prefactor     .93246        .77089E-02    .28471E-03   -.95016    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.7728e-10
Minuit parameter uncertainties:
  1  0.000186297
  2  80.1949
  3  0.00607549
  4  0.00770894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938724': 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) = 5519.52584636
delta logL = 6.16355464444e-08

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.863e-04  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.922e+00  8.019e+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:  9.325e-01  7.709e-03  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.332e-01  6.075e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.460 37.131

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/938724/cmap_HighResolution_445910401_446169601_4FGL_J1249.8+3707_daily_bin797.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-03', job_status='DONE', photon_flux_upper_limit='3.74e-08', time_completed='2021-09-06 06:56:10.800430', job_id='938724', GAL2='0.93', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630936570.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='6.16e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='797' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:56:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 938724: <4FGL_J1249.8+3707_daily_bin797> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin797 192.46 37.1306 445910401 446169601 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 :                                   716.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            940 sec.

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

