/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 135 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 = 7392
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1249.8+3707_daily_bin372
RA = 192.46, Dec = 37.1306
tmin = 335750401, tmax = 336009601
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='935849', job_status='RUN', time_executed='2021-09-06 06:33:24.551303', time_epoch_executed='1630935204.55' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='372'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935849

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935849/ft1_4FGL_J1249.8+3707_daily_bin372.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935849/ft2_4FGL_J1249.8+3707_daily_bin372.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935849/ft1_4FGL_J1249.8+3707_daily_bin372.fits outfile=/scratch/kocevski/935849/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin372.fits ra=192.46 dec=37.1306 rad=12.0 tmin=335750401.0 tmax=336009601.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 6.80
user 6.52
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935849/ft1_filtered_4FGL_J1249.8+3707_daily_bin372.fits evtable="EVENTS" scfile=/scratch/kocevski/935849/ft2_4FGL_J1249.8+3707_daily_bin372.fits sctable="SC_DATA" expcube=/scratch/kocevski/935849/ltcube_335750401_336009601_4FGL_J1249.8+3707_daily_bin372.fits outfile=/scratch/kocevski/935849/expmap_335750401_336009601_4FGL_J1249.8+3707_daily_bin372.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/935849/ltcube_335750401_336009601_4FGL_J1249.8+3707_daily_bin372.fits
.....................!
real 191.05
user 184.98
sys 5.63

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/935849/ft1_filtered_4FGL_J1249.8+3707_daily_bin372.fits scfile=/scratch/kocevski/935849/ft2_4FGL_J1249.8+3707_daily_bin372.fits outfile=/scratch/kocevski/935849/cmap_335750401_336009601_4FGL_J1249.8+3707_daily_bin372.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935849/ft1_filtered_4FGL_J1249.8+3707_daily_bin372.fits scfile=/scratch/kocevski/935849/ft2_4FGL_J1249.8+3707_daily_bin372.fits outfile=/scratch/kocevski/935849/cmap_HighResolution_335750401_336009601_4FGL_J1249.8+3707_daily_bin372.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    85.784       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.1065       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .61443       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1795       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8704       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.491       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.794       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6913       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.9262       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.9204       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.0072       1.0000         .10000E-03   10000.    
    19 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .79940       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .93616       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1109       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=   5453.534     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3076 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     85.789        70.027        .26908E-06    .76367E-05
   2  Prefactor     .10000E-03    17.581       -.15741E-06** at limit **
   3  norm          2.1065        2.0429        .15957E-07   -.26040E-04
   4  Prefactor     .61475        7.3830        .66668E-06   -.12995E-03
   5  Prefactor     4.1794        2.3132       -.18102E-07   -.26096E-04
   6  Prefactor     1.8706        1.9848        .57253E-07   -.24098E-04
   7  Prefactor     14.491        10.641        .55402E-07   -.13512E-04
   8  Prefactor     12.793        21.502        .17914E-06   -.25015E-05
   9  Prefactor     6.6886        18.556        .41000E-05   -.39794E-04
  10  Prefactor     .10000E-03    67.638        .89588E-06** at limit **
  11  Prefactor     .10000E-03    2.5135       -.96542E-07** at limit **
  12  norm          3.9261        4.4063        .18001E-06   -.20832E-04
  13  Prefactor     .10000E-03    81.776       -.11728E-05** at limit **
  14  Prefactor     .10000E-03    10.108       -.58980E-07** at limit **
  15  Prefactor     .10000E-03    4.0035        .49928E-08** at limit **
  16  norm          3.9208        4.1949        .10931E-07    .33387E-05
  17  norm          .10000E-03    5.7168        .16564E-07** at limit **
  18  norm          5.0089        4.0022        .10082E-06   -.11422E-03
  19  norm          .10000E-03    8.0313       -.17776E-06** at limit **
  20  Prefactor     .10000E-03    1.6841       -.30758E-07** at limit **
  21  Prefactor     .79867        10.054        .58293E-06   -.97945E-04
  22  Prefactor     .10000E-03    14.531        .13268E-06** at limit **
  23  Prefactor     .10000E-03    5.6745       -.22447E-07** at limit **
  24  Prefactor     .10000E-03    23.662        .18488E-08** at limit **
  25  Normalizat    .93614        .17243       -.61482E-06   -.84175E-04
  26  Prefactor     1.1108        .21480       -.33584E-06   -.70295E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 85.7885
  Prefactor  = 0.0001
  norm       = 2.10647
  Prefactor  = 0.614751
  Prefactor  = 4.1794
  Prefactor  = 1.8706
  Prefactor  = 14.4908
  Prefactor  = 12.7928
  Prefactor  = 6.6886
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 3.92614
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.92084
  norm       = 0.0001
  norm       = 5.00889
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.79867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.936139
  Prefactor  = 1.1108
 **********
 **   18 **HESSE 
 **********

 FCN=   5453.534     FROM HESSE     STATUS=OK           460 CALLS     3536 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     85.789        70.072        .43375E-04   -1.3853    
   2  Prefactor     .10000E-03    17.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.1065        2.0392        .99501E-04   -1.5418    
   4  Prefactor     .61475        19.422        .37329E-02   -1.5551    
   5  Prefactor     4.1794        2.3201        .79827E-04   -1.5299    
   6  Prefactor     1.8706        1.9738        .10264E-03   -1.5434    
   7  Prefactor     14.491        10.627        .10522E-03   -1.4946    
   8  Prefactor     12.793        21.503        .11199E-03   -1.4992    
   9  Prefactor     6.6886        18.597        .77561E-03   -1.5191    
  10  Prefactor     .10000E-03    67.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.5323        .11442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.9261        4.3917        .15668E-03   -1.5312    
  13  Prefactor     .10000E-03    82.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.0056        .14430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.9208        4.1865        .15100E-03   -1.5312    
  17  norm          .10000E-03    5.7235        .17245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.0089        3.9360        .12141E-03   -1.5260    
  19  norm          .10000E-03    8.2168        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.7061        .93247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .79867        30.042        .42985E-02   -1.5529    
  22  Prefactor     .10000E-03    14.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.6804        .17181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    23.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .93614        .20398        .23311E-03   -.95202    
  26  Prefactor     1.1108        .25654        .27535E-03   -.89122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.59889e-08
Minuit parameter uncertainties:
  1  70.1397
  2  5.08842e-05
  3  2.03926
  4  6.91264
  5  2.32017
  6  1.97388
  7  10.6282
  8  21.5163
  9  18.6136
  10  0.000659786
  11  7.91941e-06
  12  4.3921
  13  0.000787192
  14  1.9077e-05
  15  1.77902e-07
  16  4.18677
  17  6.34644e-06
  18  3.9362
  19  3.09699e-06
  20  8.2678e-07
  21  9.8013
  22  5.32594e-05
  23  3.32058e-06
  24  1.3327e-06
  25  0.20415
  26  0.256824
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  6.689e+00  1.861e+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.111e+00  2.568e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  9.361e-01  2.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/935849/likelihoodResults_335750401_336009601_4FGL_J1249.8+3707_daily_bin372.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) = 5453.29441701
delta logL = 0.239626996169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5453.28158468
delta logL = 0.252459333435

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1128       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5247       1.0000          .0000       10.000    
     3 'Normalizat'    .92035       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1168       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=   5453.282     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      270 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1104        146.87        .57455E-02    .45076E-03
   2  Index         2.5250        3.2020        .10861        .15231E-03
   3  Normalizat    .92038        .52974E-01    .45161E-01    .13301E-04
   4  Prefactor     1.1168        .61432E-01    .62085E-01   -.11129E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1104
  Index      = 2.52496
  Normalizat = 0.920378
  Prefactor  = 1.11675
 **********
 **   18 **HESSE 
 **********

 FCN=   5453.282     FROM HESSE     STATUS=OK            33 CALLS      303 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1104        21.798        .17848E-03   -1.5355    
   2  Index         2.5250        1.8259        .60713E-02   -.51784    
   3  Normalizat    .92038        .20407        .23487E-03   -.95748    
   4  Prefactor     1.1168        .25800        .27459E-03   -.88933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13718e-10
Minuit parameter uncertainties:
  1  16.4766
  2  1.88446
  3  0.204238
  4  0.258288
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935849': 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) = 5453.28158462
delta logL = 0.252459383683

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  3.110e+00  1.648e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.525e+00  1.884e+00  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.117e+00  2.583e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  9.204e-01  2.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
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/935849/cmap_HighResolution_335750401_336009601_4FGL_J1249.8+3707_daily_bin372.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.99e-03', job_status='DONE', photon_flux_upper_limit='5.43e-08', time_completed='2021-09-06 06:45:40.220372', job_id='935849', GAL2='1.12', fit_tolerance='1e-08', EG2='0.92', EG='0.94', time_epoch_completed='1630935940.22', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.52e-01', ts2='0.66', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='372' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:45:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 935849: <4FGL_J1249.8+3707_daily_bin372> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin372> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 06:30:58 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:31:00 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:31:00 2021
Terminated at Mon Sep  6 06:45:41 2021
Results reported at Mon Sep  6 06:45:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin372 192.46 37.1306 335750401 336009601 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 :                                   731.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            883 sec.

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

