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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin536
RA = 192.46, Dec = 37.1306
tmin = 378259201, tmax = 378518401
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='937210', job_status='RUN', time_executed='2021-09-06 06:37:37.368186', time_epoch_executed='1630935457.37' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='536'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937210

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937210/ft1_4FGL_J1249.8+3707_daily_bin536.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937210/ft2_4FGL_J1249.8+3707_daily_bin536.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937210/ft1_4FGL_J1249.8+3707_daily_bin536.fits outfile=/scratch/kocevski/937210/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin536.fits ra=192.46 dec=37.1306 rad=12.0 tmin=378259201.0 tmax=378518401.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 4.45
user 4.26
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937210/ft1_filtered_4FGL_J1249.8+3707_daily_bin536.fits evtable="EVENTS" scfile=/scratch/kocevski/937210/ft2_4FGL_J1249.8+3707_daily_bin536.fits sctable="SC_DATA" expcube=/scratch/kocevski/937210/ltcube_378259201_378518401_4FGL_J1249.8+3707_daily_bin536.fits outfile=/scratch/kocevski/937210/expmap_378259201_378518401_4FGL_J1249.8+3707_daily_bin536.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/937210/ltcube_378259201_378518401_4FGL_J1249.8+3707_daily_bin536.fits
.....................!
real 190.09
user 185.30
sys 4.47

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/937210/ft1_filtered_4FGL_J1249.8+3707_daily_bin536.fits scfile=/scratch/kocevski/937210/ft2_4FGL_J1249.8+3707_daily_bin536.fits outfile=/scratch/kocevski/937210/cmap_378259201_378518401_4FGL_J1249.8+3707_daily_bin536.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937210/ft1_filtered_4FGL_J1249.8+3707_daily_bin536.fits scfile=/scratch/kocevski/937210/ft2_4FGL_J1249.8+3707_daily_bin536.fits outfile=/scratch/kocevski/937210/cmap_HighResolution_378259201_378518401_4FGL_J1249.8+3707_daily_bin536.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=192.46 yref=37.1306 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.9704       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.3284       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1339       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3135       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.130       1.0000         .10000E-03   10000.    
    10 'Prefactor '    84.423       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    37.564       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .26354       1.0000         .10000E-03   10000.    
    18 'norm      '    6.8041       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.5889       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    31.066       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .82221       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2562       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=   5843.337     FROM MIGRAD    STATUS=CONVERGED   1083 CALLS     3540 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.573        .18142E-02** at limit **
   2  Prefactor     .10000E-03    11.845        .18142E-02** at limit **
   3  norm          6.9704        3.1467        .86945E-04    .37920E-04
   4  Prefactor     7.3287        6.7992        .14816E-03   -.33762E-05
   5  Prefactor     1.1339        1.2349        .84899E-04    .27987E-04
   6  Prefactor     3.3134        2.2811        .91905E-04   -.15450E-03
   7  Prefactor     .10000E-03    4.0292        .14968E-02** at limit **
   8  Prefactor     .10000E-03    8.7410        .18142E-02** at limit **
   9  Prefactor     34.114        27.141        .68593E-04   -.66959E-04
  10  Prefactor     84.423        69.817        .43720E-04    .12014E-04
  11  Prefactor     .10000E-03    3.3042        .13522E-02** at limit **
  12  norm          .10000E-03    1.1564        .80201E-03** at limit **
  13  Prefactor     37.562        45.603        .65393E-04    .32997E-04
  14  Prefactor     .10000E-03    8.2873        .18142E-02** at limit **
  15  Prefactor     .10000E-03    29.810        .36285E-03** at limit **
  16  norm          .10000E-03    1.1324        .79366E-03** at limit **
  17  norm          .19220        11.941        .82122E-01    .25453E-03
  18  norm          6.8050        3.3060        .92945E-04    .10091E-03
  19  norm          .10000E-03    2.2688        .11223E-02** at limit **
  20  Prefactor     .10000E-03    .89213        .70180E-03** at limit **
  21  Prefactor     3.5885        9.0398        .21331E-03   -.13958E-03
  22  Prefactor     .10000E-03    21.063        .18142E-02** at limit **
  23  Prefactor     31.066        20.102        .71887E-04    .29573E-04
  24  Prefactor     .10000E-03    49.755        .18142E-02** at limit **
  25  Normalizat    .82212        .19816        .25128E-03    .60310E-04
  26  Prefactor     1.2563        .25465        .26932E-03    .99791E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.97044
  Prefactor  = 7.32873
  Prefactor  = 1.13393
  Prefactor  = 3.31338
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.1144
  Prefactor  = 84.4229
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 37.5624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.192202
  norm       = 6.80497
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.58848
  Prefactor  = 0.0001
  Prefactor  = 31.0664
  Prefactor  = 0.000100003
  Normalizat = 0.822123
  Prefactor  = 1.25634
 **********
 **   18 **HESSE 
 **********

 FCN=   5843.337     FROM HESSE     STATUS=OK           440 CALLS     3980 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.573        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.846        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.9704        3.1467        .34778E-05   -1.5180    
   4  Prefactor     7.3287        6.7991        .59265E-05   -1.5166    
   5  Prefactor     1.1339        1.2349        .33959E-05   -1.5495    
   6  Prefactor     3.3134        2.2811        .36762E-05   -1.5344    
   7  Prefactor     .10000E-03    4.0295        .29936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.7412        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.114        27.140        .27437E-05   -1.4539    
  10  Prefactor     84.423        69.813        .87440E-05   -1.3868    
  11  Prefactor     .10000E-03    3.3046        .27044E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.1565        .16040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     37.562        45.603        .13079E-04   -1.4481    
  14  Prefactor     .10000E-03    8.2879        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    29.812        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.1325        .15873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .19220        11.524        .84678E-01   -1.5620    
  18  norm          6.8050        3.3058        .37178E-05   -1.5186    
  19  norm          .10000E-03    2.2688        .22446E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .89216        .14036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.5885        9.0389        .85323E-05   -1.5329    
  22  Prefactor     .10000E-03    21.063        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     31.066        20.103        .28755E-05   -1.4593    
  24  Prefactor     .10000E-03    49.760        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .82212        .19835        .10051E-04   -.99253    
  26  Prefactor     1.2563        .25489        .10773E-04   -.84615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66341e-10
Minuit parameter uncertainties:
  1  3.95328e-05
  2  1.1187e-05
  3  3.14676
  4  6.79986
  5  1.2349
  6  2.28115
  7  1.1411e-05
  8  4.68519e-05
  9  27.15
  10  69.8806
  11  2.06002e-05
  12  4.96593e-06
  13  45.6454
  14  1.53943e-05
  15  0.000201248
  16  3.15141e-06
  17  2.97641
  18  3.30589
  19  8.81539e-06
  20  4.16382e-06
  21  9.04231
  22  0.000105698
  23  20.1071
  24  0.000780198
  25  0.198523
  26  0.255142
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  3.411e+01  2.715e+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:  1.256e+00  2.551e-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:  8.221e-01  1.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.32
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 3.11e-08 +/- 2.48e-08
Energy Flux (Fixed Index): 3.95e-05 +/- 3.15e-05

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

Saving results to:
/scratch/kocevski/937210/likelihoodResults_378259201_378518401_4FGL_J1249.8+3707_daily_bin536.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) = 5843.26734023
delta logL = 0.0697504882291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5843.2575407
delta logL = 0.0795500186978

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.145       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9676       1.0000          .0000       10.000    
     3 'Normalizat'    .81600       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2601       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=   5843.258     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      259 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.161        35.106        .79885E-04    .64137E-03
   2  Index         1.9673        .54967        .42472E-02    .46176E-03
   3  Normalizat    .81588        .19516        .25215E-03    .17039E-02
   4  Prefactor     1.2602        .25390        .26895E-03    .20729E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.1609
  Index      = 1.96725
  Normalizat = 0.815877
  Prefactor  = 1.26019
 **********
 **   18 **HESSE 
 **********

 FCN=   5843.258     FROM HESSE     STATUS=OK            23 CALLS      282 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.161        31.549        .15977E-04   -1.4704    
   2  Index         1.9673        .49404        .16989E-03   -.65171    
   3  Normalizat    .81588        .19508        .50429E-04   -.99482    
   4  Prefactor     1.2602        .25386        .53790E-04   -.84499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46949e-09
Minuit parameter uncertainties:
  1  31.5696
  2  0.495318
  3  0.195246
  4  0.254105
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937210': 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) = 5843.25753999
delta logL = 0.0795507349603

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.516e+01  3.157e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.967e+00  4.953e-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:  1.260e+00  2.541e-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:  8.159e-01  1.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.46
Ra Dec: 192.460 37.131
Photon Index (Free Index): 1.97 +/- 0.50
Photon Flux (Free Index): 3.71e-08 +/- 3.09e-08
Energy Flux (Free Index): 2.78e-05 +/- 3.37e-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/937210/cmap_HighResolution_378259201_378518401_4FGL_J1249.8+3707_daily_bin536.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.27e-03', comment='SUCCESS', photon_flux='3.11e-08', energy_flux2='2.78e-05', photon_flux_error='2.48e-08', dlogl='7.96e-02', energy_flux='3.95e-05', photon_flux2='3.71e-08', job_status='DONE', time_completed='2021-09-06 06:50:38.489195', photon_index_error2='0.50', photon_index2='1.97', ts='2.32', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='8.52e-08', energy_flux_error2='3.37e-05', EG='0.82', time_epoch_completed='1630936238.49', return_code='0', job_id='937210', GAL2='1.26', EG2='0.82', return_code2='0', energy_flux_error='3.15e-05', photon_flux_error2='3.09e-08', ts2='2.46', photon_index='1.78' WHERE bin_id='536' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:50:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 937210: <4FGL_J1249.8+3707_daily_bin536> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin536> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 06:35:35 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:35:36 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:35:36 2021
Terminated at Mon Sep  6 06:50:39 2021
Results reported at Mon Sep  6 06:50:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin536 192.46 37.1306 378259201 378518401 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 :                                   778.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

