/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 223 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_bin564
RA = 192.46, Dec = 37.1306
tmin = 385516801, tmax = 385776001
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='937251', job_status='RUN', time_executed='2021-09-06 06:39:32.919934', time_epoch_executed='1630935572.92' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='564'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937251

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937251/ft1_4FGL_J1249.8+3707_daily_bin564.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937251/ft2_4FGL_J1249.8+3707_daily_bin564.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937251/ft1_4FGL_J1249.8+3707_daily_bin564.fits outfile=/scratch/kocevski/937251/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin564.fits ra=192.46 dec=37.1306 rad=12.0 tmin=385516801.0 tmax=385776001.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.53
user 4.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/937251/ft1_filtered_4FGL_J1249.8+3707_daily_bin564.fits" evtable="EVENTS" scfile=/scratch/kocevski/937251/ft2_4FGL_J1249.8+3707_daily_bin564.fits sctable="SC_DATA" outfile=/scratch/kocevski/937251/ltcube_385516801_385776001_4FGL_J1249.8+3707_daily_bin564.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/937251/ft2_4FGL_J1249.8+3707_daily_bin564.fits
.....................!
real 11.71
user 11.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937251/ft1_filtered_4FGL_J1249.8+3707_daily_bin564.fits evtable="EVENTS" scfile=/scratch/kocevski/937251/ft2_4FGL_J1249.8+3707_daily_bin564.fits sctable="SC_DATA" expcube=/scratch/kocevski/937251/ltcube_385516801_385776001_4FGL_J1249.8+3707_daily_bin564.fits outfile=/scratch/kocevski/937251/expmap_385516801_385776001_4FGL_J1249.8+3707_daily_bin564.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/937251/ltcube_385516801_385776001_4FGL_J1249.8+3707_daily_bin564.fits
.....................!
real 190.78
user 186.37
sys 4.00

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/937251/ft1_filtered_4FGL_J1249.8+3707_daily_bin564.fits scfile=/scratch/kocevski/937251/ft2_4FGL_J1249.8+3707_daily_bin564.fits outfile=/scratch/kocevski/937251/cmap_385516801_385776001_4FGL_J1249.8+3707_daily_bin564.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=192.46 yref=37.1306 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937251/ft1_filtered_4FGL_J1249.8+3707_daily_bin564.fits scfile=/scratch/kocevski/937251/ft2_4FGL_J1249.8+3707_daily_bin564.fits outfile=/scratch/kocevski/937251/cmap_HighResolution_385516801_385776001_4FGL_J1249.8+3707_daily_bin564.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5392       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .54574E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6884       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4996       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3868       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.561       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.5093       1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.663       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.7421       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.6045       1.0000         .10000E-03   10000.    
    19 'norm      '    5.1587       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .55822E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    37.190       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.5914       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1839       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .80987       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=   5508.458     FROM MIGRAD    STATUS=CONVERGED    653 CALLS     3156 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5040        213.92        .69860E-05   -.69965E-05
   2  Prefactor     .10000E-03    17.727        .75308E-06** at limit **
   3  norm          .10000E-03    1.9447        .32814E-07** at limit **
   4  Prefactor     .10002E-03    8.7385        .20141E-05** at limit **
   5  Prefactor     2.6883        1.8396        .88322E-07   -.54631E-05
   6  Prefactor     5.4993        2.5186        .16015E-06   -.77208E-04
   7  Prefactor     1.3865        6.4642       -.20919E-05   -.83971E-03
   8  Prefactor     24.544        26.730        .21345E-04   -.11824E-04
   9  Prefactor     6.5062        19.740        .42228E-05   -.37530E-04
  10  Prefactor     42.732        64.020        .90357E-05   -.14098E-05
  11  Prefactor     .10000E-03    5.5210        .34806E-07** at limit **
  12  norm          .10000E-03    3.6555       -.12492E-06** at limit **
  13  Prefactor     .10000E-03    18.916       -.74165E-06** at limit **
  14  Prefactor     .10000E-03    14.396       -.68520E-07** at limit **
  15  Prefactor     7.7410        13.047       -.11066E-05   -.55261E-04
  16  norm          .10000E-03    1.8036        .13994E-07** at limit **
  17  norm          .10000E-03    4.3668        .64537E-08** at limit **
  18  norm          1.6053        4.5053        .60480E-06   -.54777E-03
  19  norm          5.1622        8.8779       -.10102E-05   -.85193E-04
  20  Prefactor     .10000E-03    .79372       -.61216E-07** at limit **
  21  Prefactor     .10939E-03    6.3923       -.70700E-06** at limit **
  22  Prefactor     37.211        50.791        .25990E-04    .19237E-04
  23  Prefactor     1.5944        53.822       -.15665E-04   -.72805E-04
  24  Prefactor     .10000E-03    76.766       -.27811E-05** at limit **
  25  Normalizat    1.1840        .18194       -.29527E-05   -.52033E-04
  26  Prefactor     .80988        .21625       -.13372E-05   -.18424E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.50398
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 2.68831
  Prefactor  = 5.49935
  Prefactor  = 1.38655
  Prefactor  = 24.5444
  Prefactor  = 6.5062
  Prefactor  = 42.7317
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.74103
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.6053
  norm       = 5.16225
  Prefactor  = 0.0001
  Prefactor  = 0.000109391
  Prefactor  = 37.2111
  Prefactor  = 1.59439
  Prefactor  = 0.0001
  Normalizat = 1.18399
  Prefactor  = 0.80988
 **********
 **   18 **HESSE 
 **********

 FCN=   5508.458     FROM HESSE     STATUS=OK           470 CALLS     3626 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5040        213.84        .21486E-03   -1.5334    
   2  Prefactor     .10000E-03    17.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.9911        .20098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    59.506        .41586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.6883        1.8309        .80298E-04   -1.5380    
   6  Prefactor     5.4993        2.5143        .76559E-04   -1.5239    
   7  Prefactor     1.3865        6.5010        .36649E-03   -1.5472    
   8  Prefactor     24.544        26.550        .80828E-04   -1.4717    
   9  Prefactor     6.5062        19.714        .15730E-03   -1.5198    
  10  Prefactor     42.732        63.057        .61375E-04   -1.4400    
  11  Prefactor     .10000E-03    5.5586        .16993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.7689        .26883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.7410        13.032        .14412E-03   -1.5151    
  16  norm          .10000E-03    1.8108        .97310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.3691        .15147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.6053        4.9625        .16128E-03   -1.5455    
  19  norm          5.1622        9.9013        .17700E-03   -1.5254    
  20  Prefactor     .10000E-03    .79547        .64547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10939E-03    9.4716        .65656E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     37.211        50.689        .65720E-04   -1.4487    
  23  Prefactor     1.5944        54.776        .33635E-03   -1.5455    
  24  Prefactor     .10000E-03    76.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1840        .21090        .21866E-03   -.87099    
  26  Prefactor     .80988        .25112        .31185E-03   -.99365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77936e-09
Minuit parameter uncertainties:
  1  54.9526
  2  2.38707e-05
  3  5.15735e-06
  4  0.00218684
  5  1.83089
  6  2.51432
  7  6.00549
  8  26.5629
  9  19.7333
  10  63.1556
  11  5.54794e-06
  12  3.9326e-05
  13  2.094e-05
  14  1.67185e-05
  15  13.0371
  16  1.39278e-06
  17  1.73303e-06
  18  4.96381
  19  9.90444
  20  5.38379e-06
  21  0.0188652
  22  50.748
  23  18.7086
  24  6.41738e-05
  25  0.211053
  26  0.251474
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  6.506e+00  1.973e+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:  8.099e-01  2.515e-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.184e+00  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/937251/likelihoodResults_385516801_385776001_4FGL_J1249.8+3707_daily_bin564.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) = 5508.43813507
delta logL = 0.0200731681352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5507.45092475
delta logL = 1.00728349392

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 'Index     '    5.9670       1.0000          .0000       10.000    
     3 'Normalizat'    1.0860       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89701       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=   5507.451     FROM MIGRAD    STATUS=CONVERGED    124 CALLS      419 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .29400E-02    .31368E-03** at limit **
   2  Index         5.9670        1.6197        .72352E-01    .40182E-03
   3  Normalizat    1.0861        .44423E-01    .38600E-01    .12108E-03
   4  Prefactor     .89700        .52557E-01    .67335E-01    .14419E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 5.96703
  Normalizat = 1.08606
  Prefactor  = 0.896999
 **********
 **   18 **HESSE 
 **********

 FCN=   5507.451     FROM HESSE     STATUS=OK            33 CALLS      452 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .11763E-02    .87516E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.9670        .23563        .27137E-02    .19463    
   3  Normalizat    1.0861        .21424        .22680E-03   -.90201    
   4  Prefactor     .89700        .25332        .29787E-03   -.96246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33212e-10
Minuit parameter uncertainties:
  1  2.3959e-09
  2  0.235717
  3  0.214407
  4  0.253654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937251': 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) = 5507.45092354
delta logL = 1.00728469794

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.396e-09  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  5.967e+00  2.357e-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:  8.970e-01  2.537e-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.086e+00  2.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.29
Ra Dec: 192.460 37.131
Photon Index (Free Index): 5.97 +/- 0.24
Photon Flux (Free Index): 7.50e-08 +/- 6.11e-08
Energy Flux (Free Index): 9.35e-06 +/- 7.54e-06

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/937251/cmap_HighResolution_385516801_385776001_4FGL_J1249.8+3707_daily_bin564.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.20e-03', comment='SUCCESS', energy_flux2='9.35e-06', dlogl='1.01e+00', photon_flux2='7.50e-08', job_status='DONE', time_completed='2021-09-06 06:51:52.155480', photon_index_error2='0.24', photon_index2='5.97', ts='0.13', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='5.71e-08', energy_flux_error2='7.54e-06', EG='1.18', time_epoch_completed='1630936312.16', return_code='0', job_id='937251', GAL2='0.90', EG2='1.09', return_code2='0', photon_flux_error2='6.11e-08', ts2='2.29', photon_index='1.78' WHERE bin_id='564' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:51:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 937251: <4FGL_J1249.8+3707_daily_bin564> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin564 192.46 37.1306 385516801 385776001 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 :                                   737.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             231.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            975 sec.

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

