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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin737
RA = 192.46, Dec = 37.1306
tmin = 430358401, tmax = 430617601
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='938640', job_status='RUN', time_executed='2021-09-06 06:42:54.866108', time_epoch_executed='1630935774.87' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='737'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938640

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938640/ft1_4FGL_J1249.8+3707_daily_bin737.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938640/ft2_4FGL_J1249.8+3707_daily_bin737.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938640/ft1_4FGL_J1249.8+3707_daily_bin737.fits outfile=/scratch/kocevski/938640/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin737.fits ra=192.46 dec=37.1306 rad=12.0 tmin=430358401.0 tmax=430617601.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 5.97
user 5.69
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/938640/ft2_4FGL_J1249.8+3707_daily_bin737.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/938640/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin737.fits evtable="EVENTS" outfile="/scratch/kocevski/938640/ft1_filtered_4FGL_J1249.8+3707_daily_bin737.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.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938640/ft1_filtered_4FGL_J1249.8+3707_daily_bin737.fits" evtable="EVENTS" scfile=/scratch/kocevski/938640/ft2_4FGL_J1249.8+3707_daily_bin737.fits sctable="SC_DATA" outfile=/scratch/kocevski/938640/ltcube_430358401_430617601_4FGL_J1249.8+3707_daily_bin737.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/938640/ft2_4FGL_J1249.8+3707_daily_bin737.fits
.....................!
real 13.40
user 13.03
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938640/ft1_filtered_4FGL_J1249.8+3707_daily_bin737.fits evtable="EVENTS" scfile=/scratch/kocevski/938640/ft2_4FGL_J1249.8+3707_daily_bin737.fits sctable="SC_DATA" expcube=/scratch/kocevski/938640/ltcube_430358401_430617601_4FGL_J1249.8+3707_daily_bin737.fits outfile=/scratch/kocevski/938640/expmap_430358401_430617601_4FGL_J1249.8+3707_daily_bin737.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/938640/ltcube_430358401_430617601_4FGL_J1249.8+3707_daily_bin737.fits
.....................!
real 191.18
user 185.90
sys 4.88

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/938640/ft1_filtered_4FGL_J1249.8+3707_daily_bin737.fits scfile=/scratch/kocevski/938640/ft2_4FGL_J1249.8+3707_daily_bin737.fits outfile=/scratch/kocevski/938640/cmap_430358401_430617601_4FGL_J1249.8+3707_daily_bin737.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.62
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938640/ft1_filtered_4FGL_J1249.8+3707_daily_bin737.fits scfile=/scratch/kocevski/938640/ft2_4FGL_J1249.8+3707_daily_bin737.fits outfile=/scratch/kocevski/938640/cmap_HighResolution_430358401_430617601_4FGL_J1249.8+3707_daily_bin737.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.64
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.902       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.789       1.0000         .10000E-03   10000.    
     3 'norm      '    16.186       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10140E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21178       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.923       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.472       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10503E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10650E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8541       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.2063       1.0000         .10000E-03   10000.    
    19 'norm      '    15.673       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6255       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5901       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .33529       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=   5102.177     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     3132 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.896        92.407        .10437E-07    .40949E-05
   2  Prefactor     11.756        40.010        .20406E-05    .10100E-04
   3  norm          16.187        5.5372        .80108E-07    .56478E-03
   4  Prefactor     .10024E-03    9.7184       -.41312E-05** at limit **
   5  Prefactor     .10000E-03    4.4529       -.20466E-06** at limit **
   6  Prefactor     .20980        2.0499       -.23747E-06    .66232E-04
   7  Prefactor     .10000E-03    17.027       -.21352E-06** at limit **
   8  Prefactor     27.921        26.492       -.89640E-07    .16158E-04
   9  Prefactor     15.496        32.807        .19151E-05   -.24098E-04
  10  Prefactor     .10000E-03    76.908       -.67110E-06** at limit **
  11  Prefactor     .10003E-03    16.729        .67424E-05** at limit **
  12  norm          .10001E-03    5.2411        .35447E-05** at limit **
  13  Prefactor     .10000E-03    13.432        .10179E-06** at limit **
  14  Prefactor     3.8935        86.245        .50115E-05    .72532E-04
  15  Prefactor     .10000E-03    6.3900       -.20661E-07** at limit **
  16  norm          .10000E-03    1.5725       -.34610E-07** at limit **
  17  norm          .10000E-03    4.3345       -.23957E-07** at limit **
  18  norm          5.2022        8.9511        .56944E-06    .47585E-03
  19  norm          15.678        13.899       -.13687E-06    .22939E-03
  20  Prefactor     1.6253        1.7132       -.75654E-07   -.19154E-03
  21  Prefactor     .10000E-03    9.0568       -.38790E-06** at limit **
  22  Prefactor     .10000E-03    20.603        .11826E-06** at limit **
  23  Prefactor     .10000E-03    25.249       -.18692E-06** at limit **
  24  Prefactor     .10000E-03    14.478       -.14309E-06** at limit **
  25  Normalizat    1.5904        .21847        .11731E-05    .56682E-03
  26  Prefactor     .33501        .25125       -.12564E-05    .16315E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.8959
  Prefactor  = 11.7557
  norm       = 16.1872
  Prefactor  = 0.000100237
  Prefactor  = 0.0001
  Prefactor  = 0.209803
  Prefactor  = 0.0001
  Prefactor  = 27.9208
  Prefactor  = 15.4958
  Prefactor  = 0.000100001
  Prefactor  = 0.000100034
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 3.89351
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.20218
  norm       = 15.6778
  Prefactor  = 1.6253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.59036
  Prefactor  = 0.335006
 **********
 **   18 **HESSE 
 **********

 FCN=   5102.177     FROM HESSE     STATUS=OK           458 CALLS     3590 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.896        92.279        .59179E-04   -1.4352    
   2  Prefactor     11.756        39.969        .11667E-03   -1.5022    
   3  norm          16.187        5.6679        .90128E-04   -1.4903    
   4  Prefactor     .10024E-03    81.278        .34289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.5801        .29166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .20980        16.710        .18618E-02   -1.5616    
   7  Prefactor     .10000E-03    17.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.921        26.523        .75816E-04   -1.4651    
   9  Prefactor     15.496        31.489        .10182E-03   -1.4920    
  10  Prefactor     .10000E-03    77.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10003E-03    28.462        .32510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10001E-03    6.9270        .25299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.8935        83.559        .20556E-03   -1.5313    
  15  Prefactor     .10000E-03    6.3991        .17637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.5786        .87497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.3363        .14524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.2022        9.0296        .15779E-03   -1.5252    
  19  norm          15.678        14.088        .10117E-03   -1.4916    
  20  Prefactor     1.6253        1.7218        .92936E-04   -1.5453    
  21  Prefactor     .10000E-03    9.1155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.5904        .23179        .20188E-03   -.75270    
  26  Prefactor     .33501        .25696        .47178E-03   -1.2027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.58181e-09
Minuit parameter uncertainties:
  1  92.5685
  2  40.0599
  3  5.66806
  4  0.00879171
  5  4.21222e-05
  6  3.74492
  7  5.88e-05
  8  26.5345
  9  31.5229
  10  0.00057509
  11  0.00197856
  12  0.000463236
  13  3.90905e-05
  14  36.1313
  15  9.03021e-06
  16  1.21004e-06
  17  2.16346e-07
  18  9.03201
  19  14.0906
  20  1.72188
  21  0.000120629
  22  9.75212e-05
  23  0.000284855
  24  2.80598e-05
  25  0.231942
  26  0.257837
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.550e+01  3.152e+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:  3.350e-01  2.578e-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.590e+00  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/938640/likelihoodResults_430358401_430617601_4FGL_J1249.8+3707_daily_bin737.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) = 5100.78869465
delta logL = 1.38820353447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5100.73756036
delta logL = 1.43933782864

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6300       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9805       1.0000          .0000       10.000    
     3 'Normalizat'    1.4906       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .38886       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=   5100.738     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      306 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6277        63.541        .80079E-04   -.16752E-03
   2  Index         2.9806        2.6641        .26275E-02   -.11831E-03
   3  Normalizat    1.4906        .26226        .20703E-03    .10073E-02
   4  Prefactor     .38900        .29182        .43866E-03    .26759E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.62774
  Index      = 2.98064
  Normalizat = 1.49055
  Prefactor  = 0.389001
 **********
 **   18 **HESSE 
 **********

 FCN=   5100.738     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6277        8.4491        .32032E-05   -1.5327    
   2  Index         2.9806        .78640        .10510E-03   -.41575    
   3  Normalizat    1.4906        .23325        .41406E-04   -.78044    
   4  Prefactor     .38900        .25988        .17546E-04   -1.1737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17302e-09
Minuit parameter uncertainties:
  1  8.45184
  2  0.790324
  3  0.233422
  4  0.260672
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938640': 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) = 5100.73755996
delta logL = 1.43933822257

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  3.628e+00  8.452e+00  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.981e+00  7.903e-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:  3.890e-01  2.607e-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.491e+00  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.23
Ra Dec: 192.460 37.131
Photon Index (Free Index): 2.98 +/- 0.79
Photon Flux (Free Index): 1.10e-07 +/- 7.69e-08
Energy Flux (Free Index): 2.22e-05 +/- 1.45e-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/938640/cmap_HighResolution_430358401_430617601_4FGL_J1249.8+3707_daily_bin737.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.11e-03', comment='SUCCESS', energy_flux2='2.22e-05', dlogl='1.44e+00', photon_flux2='1.10e-07', job_status='DONE', time_completed='2021-09-06 06:54:43.119251', photon_index_error2='0.79', photon_index2='2.98', ts='0.31', fit_tolerance='1e-08', GAL='0.34', photon_index_error='0.00', photon_flux_upper_limit='8.31e-08', energy_flux_error2='1.45e-05', EG='1.59', time_epoch_completed='1630936483.12', return_code='0', job_id='938640', GAL2='0.39', EG2='1.49', return_code2='0', photon_flux_error2='7.69e-08', ts2='3.23', photon_index='1.78' WHERE bin_id='737' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:54:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 938640: <4FGL_J1249.8+3707_daily_bin737> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin737 192.46 37.1306 430358401 430617601 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 :                                   705.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            858 sec.

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

