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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin889
RA = 192.46, Dec = 37.1306
tmin = 469756801, tmax = 470016001
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='938855', job_status='RUN', time_executed='2021-09-06 06:44:07.403372', time_epoch_executed='1630935847.4' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='889'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938855

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938855/ft1_4FGL_J1249.8+3707_daily_bin889.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938855/ft2_4FGL_J1249.8+3707_daily_bin889.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938855/ft1_4FGL_J1249.8+3707_daily_bin889.fits outfile=/scratch/kocevski/938855/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin889.fits ra=192.46 dec=37.1306 rad=12.0 tmin=469756801.0 tmax=470016001.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 2.80
user 2.45
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/938855/ft2_4FGL_J1249.8+3707_daily_bin889.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/938855/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin889.fits evtable="EVENTS" outfile="/scratch/kocevski/938855/ft1_filtered_4FGL_J1249.8+3707_daily_bin889.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.43
user 0.26
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938855/ft1_filtered_4FGL_J1249.8+3707_daily_bin889.fits evtable="EVENTS" scfile=/scratch/kocevski/938855/ft2_4FGL_J1249.8+3707_daily_bin889.fits sctable="SC_DATA" expcube=/scratch/kocevski/938855/ltcube_469756801_470016001_4FGL_J1249.8+3707_daily_bin889.fits outfile=/scratch/kocevski/938855/expmap_469756801_470016001_4FGL_J1249.8+3707_daily_bin889.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/938855/ltcube_469756801_470016001_4FGL_J1249.8+3707_daily_bin889.fits
.....................!
real 150.57
user 145.68
sys 4.61

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/938855/ft1_filtered_4FGL_J1249.8+3707_daily_bin889.fits scfile=/scratch/kocevski/938855/ft2_4FGL_J1249.8+3707_daily_bin889.fits outfile=/scratch/kocevski/938855/cmap_469756801_470016001_4FGL_J1249.8+3707_daily_bin889.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.55
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938855/ft1_filtered_4FGL_J1249.8+3707_daily_bin889.fits scfile=/scratch/kocevski/938855/ft2_4FGL_J1249.8+3707_daily_bin889.fits outfile=/scratch/kocevski/938855/cmap_HighResolution_469756801_470016001_4FGL_J1249.8+3707_daily_bin889.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.47
user 0.32
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9651       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.7987       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6952       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9772       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.336       1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.839       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11162E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11683E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.645       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11132E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    23.610       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.9912       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2856       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.9595       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .35399E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2788       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .77988       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=   5896.397     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2642 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9646        23.420       -.97413E-06   -.20897E-04
   2  Prefactor     .10000E-03    20.045       -.23783E-05** at limit **
   3  norm          5.7988        3.0411       -.70362E-06   -.24257E-03
   4  Prefactor     .10000E-03    3.9676        .65914E-06** at limit **
   5  Prefactor     2.6952        2.2141        .40007E-06    .18052E-04
   6  Prefactor     2.9773        1.9699        .92651E-08    .33530E-04
   7  Prefactor     .10000E-03    3.7644       -.52750E-06** at limit **
   8  Prefactor     21.334        23.911       -.21140E-05   -.54750E-04
   9  Prefactor     30.834        21.936       -.27609E-05   -.65581E-04
  10  Prefactor     .10000E-03    22.199        .13709E-04** at limit **
  11  Prefactor     .10000E-03    5.5624       -.23972E-06** at limit **
  12  norm          .10018E-03    2.9242       -.26579E-05** at limit **
  13  Prefactor     18.645        27.367       -.41249E-06   -.51194E-05
  14  Prefactor     .10000E-03    10.938        .99173E-05** at limit **
  15  Prefactor     .10000E-03    32.474       -.19728E-05** at limit **
  16  norm          .10000E-03    1.8995        .96824E-08** at limit **
  17  norm          23.610        15.398       -.13411E-06    .51408E-05
  18  norm          .10000E-03    3.0685        .10942E-06** at limit **
  19  norm          4.9894        4.7881        .26309E-06    .30383E-03
  20  Prefactor     6.2855        3.2901       -.81116E-07    .33331E-03
  21  Prefactor     7.9593        8.4820        .31254E-07    .10894E-03
  22  Prefactor     .10000E-03    20.052       -.26722E-05** at limit **
  23  Prefactor     .10000E-03    9.9345       -.54256E-06** at limit **
  24  Prefactor     .10000E-03    33.831       -.54641E-05** at limit **
  25  Normalizat    1.2788        .17320        .62968E-06    .47151E-03
  26  Prefactor     .77997        .21136        .55254E-06    .29363E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.96464
  Prefactor  = 0.0001
  norm       = 5.79879
  Prefactor  = 0.0001
  Prefactor  = 2.69517
  Prefactor  = 2.97726
  Prefactor  = 0.0001
  Prefactor  = 21.3345
  Prefactor  = 30.8339
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.000100179
  Prefactor  = 18.6451
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 23.6104
  norm       = 0.0001
  norm       = 4.98942
  Prefactor  = 6.28546
  Prefactor  = 7.95925
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Normalizat = 1.27878
  Prefactor  = 0.779973
 **********
 **   18 **HESSE 
 **********

 FCN=   5896.397     FROM HESSE     STATUS=OK           454 CALLS     3096 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9646        23.419        .12694E-03   -1.5077    
   2  Prefactor     .10000E-03    20.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.7988        3.0531        .88250E-04   -1.5226    
   4  Prefactor     .10000E-03    3.9994        .14933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.6952        2.2241        .94324E-04   -1.5380    
   6  Prefactor     2.9773        1.9692        .84453E-04   -1.5363    
   7  Prefactor     .10000E-03    3.7734        .14550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.334        23.944        .86714E-04   -1.4784    
   9  Prefactor     30.834        21.923        .72150E-04   -1.4597    
  10  Prefactor     .10000E-03    22.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.6307        .17659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10018E-03    11.948        .23377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.645        27.364        .92755E-04   -1.4844    
  14  Prefactor     .10000E-03    11.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    33.496        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.9088        .10333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          23.610        15.397        .82436E-04   -1.4736    
  18  norm          .10000E-03    3.1230        .26138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.9894        4.7692        .15912E-03   -1.5261    
  20  Prefactor     6.2855        3.2924        .95879E-04   -1.5206    
  21  Prefactor     7.9593        8.4758        .14212E-03   -1.5144    
  22  Prefactor     .10000E-03    20.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    47.231        .46927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    33.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2788        .20458        .21569E-03   -.84202    
  26  Prefactor     .77997        .24931        .33102E-03   -1.0047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53107e-08
Minuit parameter uncertainties:
  1  23.4411
  2  8.27108e-05
  3  3.05318
  4  6.41392e-06
  5  2.22415
  6  1.96927
  7  8.19786e-06
  8  23.9548
  9  21.929
  10  0.000478089
  11  3.14839e-05
  12  0.00292185
  13  27.3828
  14  0.00026472
  15  1.08936e-05
  16  1.73611e-06
  17  15.3997
  18  5.77746e-06
  19  4.76957
  20  3.29245
  21  8.47703
  22  8.70002e-05
  23  0.000913284
  24  0.00023638
  25  0.204705
  26  0.249668
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  3.083e+01  2.193e+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:  7.800e-01  2.497e-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.279e+00  2.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.69
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 2.81e-08 +/- 2.00e-08
Energy Flux (Fixed Index): 3.57e-05 +/- 2.54e-05

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

Saving results to:
/scratch/kocevski/938855/likelihoodResults_469756801_470016001_4FGL_J1249.8+3707_daily_bin889.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5896.20848918
delta logL = 0.188927002422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5896.14117927
delta logL = 0.256236915779

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.183       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4676       1.0000          .0000       10.000    
     3 'Normalizat'    1.2839       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78020       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=   5896.141     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      292 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.209        31.600        .30861E-03    .12562E-04
   2  Index         1.4675        .43570        .74566E-02    .29218E-03
   3  Normalizat    1.2841        .20098        .21526E-03   -.74774E-04
   4  Prefactor     .77991        .24859        .33114E-03    .74433E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.2089
  Index      = 1.4675
  Normalizat = 1.28414
  Prefactor  = 0.779909
 **********
 **   18 **HESSE 
 **********

 FCN=   5896.141     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.209        31.339        .12344E-04   -1.4408    
   2  Index         1.4675        .43220        .14913E-02   -.78454    
   3  Normalizat    1.2841        .20114        .43052E-04   -.84041    
   4  Prefactor     .77991        .24881        .13245E-04   -1.0047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2405e-10
Minuit parameter uncertainties:
  1  31.3511
  2  0.433279
  3  0.201263
  4  0.249167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938855': 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) = 5896.14117815
delta logL = 0.256238034737

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  4.221e+01  3.135e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.468e+00  4.333e-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:  7.799e-01  2.492e-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.284e+00  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.19
Ra Dec: 192.460 37.131
Photon Index (Free Index): 1.47 +/- 0.43
Photon Flux (Free Index): 1.95e-08 +/- 1.89e-08
Energy Flux (Free Index): 6.89e-05 +/- 7.52e-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/938855/cmap_HighResolution_469756801_470016001_4FGL_J1249.8+3707_daily_bin889.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-03', comment='SUCCESS', photon_flux='2.81e-08', energy_flux2='6.89e-05', photon_flux_error='2.00e-08', dlogl='2.56e-01', energy_flux='3.57e-05', photon_flux2='1.95e-08', job_status='DONE', time_completed='2021-09-06 06:53:48.906394', photon_index_error2='0.43', photon_index2='1.47', ts='3.69', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='7.53e-08', energy_flux_error2='7.52e-05', EG='1.28', time_epoch_completed='1630936428.91', return_code='0', job_id='938855', GAL2='0.78', EG2='1.28', return_code2='0', energy_flux_error='2.54e-05', photon_flux_error2='1.89e-08', ts2='4.19', photon_index='1.78' WHERE bin_id='889' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:53:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 938855: <4FGL_J1249.8+3707_daily_bin889> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin889> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 06:40:40 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:40:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 06:40:41 2021
Terminated at Mon Sep  6 06:53:49 2021
Results reported at Mon Sep  6 06:53:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin889 192.46 37.1306 469756801 470016001 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 :                                   577.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             237.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            789 sec.

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

