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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin932
RA = 192.46, Dec = 37.1306
tmin = 480902401, tmax = 481161601
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='938926', job_status='RUN', time_executed='2021-09-06 06:44:01.149452', time_epoch_executed='1630935841.15' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='932'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938926

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938926/ft1_4FGL_J1249.8+3707_daily_bin932.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938926/ft2_4FGL_J1249.8+3707_daily_bin932.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938926/ft1_4FGL_J1249.8+3707_daily_bin932.fits outfile=/scratch/kocevski/938926/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin932.fits ra=192.46 dec=37.1306 rad=12.0 tmin=480902401.0 tmax=481161601.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.67
user 3.44
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938926/ft1_filtered_4FGL_J1249.8+3707_daily_bin932.fits" evtable="EVENTS" scfile=/scratch/kocevski/938926/ft2_4FGL_J1249.8+3707_daily_bin932.fits sctable="SC_DATA" outfile=/scratch/kocevski/938926/ltcube_480902401_481161601_4FGL_J1249.8+3707_daily_bin932.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/938926/ft2_4FGL_J1249.8+3707_daily_bin932.fits
.....................!
real 11.76
user 11.44
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938926/ft1_filtered_4FGL_J1249.8+3707_daily_bin932.fits evtable="EVENTS" scfile=/scratch/kocevski/938926/ft2_4FGL_J1249.8+3707_daily_bin932.fits sctable="SC_DATA" expcube=/scratch/kocevski/938926/ltcube_480902401_481161601_4FGL_J1249.8+3707_daily_bin932.fits outfile=/scratch/kocevski/938926/expmap_480902401_481161601_4FGL_J1249.8+3707_daily_bin932.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/938926/ltcube_480902401_481161601_4FGL_J1249.8+3707_daily_bin932.fits
.....................!
real 189.52
user 185.14
sys 3.98

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/938926/ft1_filtered_4FGL_J1249.8+3707_daily_bin932.fits scfile=/scratch/kocevski/938926/ft2_4FGL_J1249.8+3707_daily_bin932.fits outfile=/scratch/kocevski/938926/cmap_480902401_481161601_4FGL_J1249.8+3707_daily_bin932.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.78
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938926/ft1_filtered_4FGL_J1249.8+3707_daily_bin932.fits scfile=/scratch/kocevski/938926/ft2_4FGL_J1249.8+3707_daily_bin932.fits outfile=/scratch/kocevski/938926/cmap_HighResolution_480902401_481161601_4FGL_J1249.8+3707_daily_bin932.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.61
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20388E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.3938       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5368       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.7132       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.230       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.718       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.422       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6067       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8541       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.0730       1.0000         .10000E-03   10000.    
    19 'norm      '    8.8477       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .58643       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3463       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0165       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0036       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=   5644.232     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3076 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    128.26       -.76488E-06** at limit **
   2  Prefactor     .10000E-03    12.407        .75622E-07** at limit **
   3  norm          3.3940        2.5244       -.13413E-09   -.48843E-05
   4  Prefactor     .10000E-03    5.0984        .71152E-07** at limit **
   5  Prefactor     1.5368        1.8849        .37118E-07   -.88808E-04
   6  Prefactor     .10000E-03    .54509        .15407E-10** at limit **
   7  Prefactor     9.7137        10.225        .43667E-07   -.45128E-05
   8  Prefactor     27.236        27.901        .64299E-07    .13109E-04
   9  Prefactor     .10000E-03    4.6655        .76213E-08** at limit **
  10  Prefactor     37.635        99.884       -.16038E-05   -.50968E-04
  11  Prefactor     .10000E-03    1.5385        .10693E-07** at limit **
  12  norm          14.420        7.3612        .88274E-08    .10775E-03
  13  Prefactor     3.5993        175.01        .68460E-06   -.69336E-05
  14  Prefactor     .10000E-03    22.020       -.86496E-07** at limit **
  15  Prefactor     4.8522        10.564        .41829E-06   -.19445E-04
  16  norm          .10000E-03    2.0903        .14540E-06** at limit **
  17  norm          .10000E-03    7.9944       -.36944E-07** at limit **
  18  norm          1.0811        15.295        .94313E-06   -.17196E-03
  19  norm          8.8390        10.304       -.40733E-06   -.66699E-04
  20  Prefactor     .59755        5.5312       -.44743E-05   -.44029E-03
  21  Prefactor     1.2933        50.931        .14513E-04   -.13255E-03
  22  Prefactor     .10000E-03    81.096        .78374E-06** at limit **
  23  Prefactor     .10000E-03    15.534       -.34014E-06** at limit **
  24  Prefactor     .10000E-03    18.977        .34280E-06** at limit **
  25  Normalizat    1.0163        .18097       -.26928E-06    .11537E-03
  26  Prefactor     1.0037        .21559       -.34008E-07    .62507E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.39395
  Prefactor  = 0.0001
  Prefactor  = 1.53681
  Prefactor  = 0.0001
  Prefactor  = 9.71369
  Prefactor  = 27.2364
  Prefactor  = 0.0001
  Prefactor  = 37.6351
  Prefactor  = 0.0001
  norm       = 14.4204
  Prefactor  = 3.59932
  Prefactor  = 0.0001
  Prefactor  = 4.8522
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.08106
  norm       = 8.83898
  Prefactor  = 0.597548
  Prefactor  = 1.29329
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01632
  Prefactor  = 1.0037
 **********
 **   18 **HESSE 
 **********

 FCN=   5644.232     FROM HESSE     STATUS=OK           454 CALLS     3530 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    129.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.3940        2.5275        .95699E-04   -1.5339    
   4  Prefactor     .10000E-03    5.1428        .16563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5368        1.8701        .10606E-03   -1.5460    
   6  Prefactor     .10000E-03    .54678        .54148E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.7137        10.215        .12858E-03   -1.5085    
   8  Prefactor     27.236        27.947        .76771E-04   -1.4664    
   9  Prefactor     .10000E-03    4.6659        .15849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     37.635        99.211        .65260E-04   -1.4480    
  11  Prefactor     .10000E-03    1.5394        .90997E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.420        7.2035        .10547E-03   -1.4948    
  13  Prefactor     3.5993        175.21        .21276E-03   -1.5329    
  14  Prefactor     .10000E-03    22.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.8522        10.546        .18258E-03   -1.5267    
  16  norm          .10000E-03    2.1056        .10606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.0014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0811        10.192        .30157E-03   -1.5500    
  19  norm          8.8390        8.6622        .13475E-03   -1.5113    
  20  Prefactor     .59755        5.8992        .28920E-03   -1.5553    
  21  Prefactor     1.2933        49.528        .37735E-03   -1.5481    
  22  Prefactor     .10000E-03    81.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0163        .21543        .23401E-03   -.92486    
  26  Prefactor     1.0037        .25791        .28827E-03   -.92606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.79245e-10
Minuit parameter uncertainties:
  1  0.000842037
  2  2.94993e-06
  3  2.52761
  4  6.89313e-06
  5  1.8702
  6  1.62007e-07
  7  10.2164
  8  27.9603
  9  4.05547e-07
  10  99.6506
  11  2.11928e-08
  12  7.2039
  13  50.3819
  14  0.000109141
  15  10.5501
  16  6.27375e-07
  17  6.84501e-06
  18  6.63998
  19  8.66341
  20  3.75518
  21  16.0205
  22  0.000805564
  23  5.28079e-05
  24  0.000128905
  25  0.215618
  26  0.258232
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  4.055e-07  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:  1.004e+00  2.582e-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.016e+00  2.156e-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: 2.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938926/likelihoodResults_480902401_481161601_4FGL_J1249.8+3707_daily_bin932.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) = 5644.23311901
delta logL = -0.000987601582892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5644.23213384
delta logL = -2.43026715907e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10736E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7452       1.0000          .0000       10.000    
     3 'Normalizat'    1.0167       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0032       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=   5644.232     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      243 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10125E-03    30.498        .16599E-02** at limit **
   2  Index         1.6904        6.5499        .50000        .45028E-04
   3  Normalizat    1.0163        .10383E-01    .23400E-03    .20891E-05
   4  Prefactor     1.0037        .12773E-01    .28827E-03   -.51664E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101246
  Index      = 1.69037
  Normalizat = 1.01632
  Prefactor  = 1.0037
 **********
 **   18 **HESSE 
 **********

 FCN=   5644.232     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10125E-03    133.48        .33197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6904        5.7659        .50000       -.72338    
   3  Normalizat    1.0163        .22230E-01    .93602E-05   -.92486    
   4  Prefactor     1.0037        .27346E-01    .11531E-04   -.92606    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.20314e-08
Minuit parameter uncertainties:
  1  0.0258477
  2  216.058
  3  0.0222298
  4  0.0273463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938926': 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) = 5644.23213033
delta logL = 1.08062795334e-06

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.012e-04  2.585e-02  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.690e+00  2.161e+02  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:  1.004e+00  2.735e-02  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.016e+00  2.223e-02  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/938926/cmap_HighResolution_480902401_481161601_4FGL_J1249.8+3707_daily_bin932.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.84e-03', job_status='DONE', photon_flux_upper_limit='2.50e-08', time_completed='2021-09-06 06:55:54.255518', job_id='938926', GAL2='1.00', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630936554.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='932' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:55:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 938926: <4FGL_J1249.8+3707_daily_bin932> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin932 192.46 37.1306 480902401 481161601 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 :                                   708.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            912 sec.

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

