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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin329
RA = 192.46, Dec = 37.1306
tmin = 324604801, tmax = 324864001
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='935806', job_status='RUN', time_executed='2021-09-06 06:34:43.608993', time_epoch_executed='1630935283.61' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='329'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935806

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935806/ft1_4FGL_J1249.8+3707_daily_bin329.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935806/ft2_4FGL_J1249.8+3707_daily_bin329.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935806/ft1_4FGL_J1249.8+3707_daily_bin329.fits outfile=/scratch/kocevski/935806/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin329.fits ra=192.46 dec=37.1306 rad=12.0 tmin=324604801.0 tmax=324864001.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 9.49
user 9.03
sys 0.36

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/935806/ft2_4FGL_J1249.8+3707_daily_bin329.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/935806/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin329.fits evtable="EVENTS" outfile="/scratch/kocevski/935806/ft1_filtered_4FGL_J1249.8+3707_daily_bin329.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/935806/ft1_filtered_4FGL_J1249.8+3707_daily_bin329.fits" evtable="EVENTS" scfile=/scratch/kocevski/935806/ft2_4FGL_J1249.8+3707_daily_bin329.fits sctable="SC_DATA" outfile=/scratch/kocevski/935806/ltcube_324604801_324864001_4FGL_J1249.8+3707_daily_bin329.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/935806/ft2_4FGL_J1249.8+3707_daily_bin329.fits
.....................!
real 11.96
user 11.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935806/ft1_filtered_4FGL_J1249.8+3707_daily_bin329.fits evtable="EVENTS" scfile=/scratch/kocevski/935806/ft2_4FGL_J1249.8+3707_daily_bin329.fits sctable="SC_DATA" expcube=/scratch/kocevski/935806/ltcube_324604801_324864001_4FGL_J1249.8+3707_daily_bin329.fits outfile=/scratch/kocevski/935806/expmap_324604801_324864001_4FGL_J1249.8+3707_daily_bin329.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/935806/ltcube_324604801_324864001_4FGL_J1249.8+3707_daily_bin329.fits
.....................!
real 190.41
user 185.33
sys 4.61

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1249.8+3707 @ 192.46 37.1306

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/935806/ft1_filtered_4FGL_J1249.8+3707_daily_bin329.fits scfile=/scratch/kocevski/935806/ft2_4FGL_J1249.8+3707_daily_bin329.fits outfile=/scratch/kocevski/935806/cmap_324604801_324864001_4FGL_J1249.8+3707_daily_bin329.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935806/ft1_filtered_4FGL_J1249.8+3707_daily_bin329.fits scfile=/scratch/kocevski/935806/ft2_4FGL_J1249.8+3707_daily_bin329.fits outfile=/scratch/kocevski/935806/cmap_HighResolution_324604801_324864001_4FGL_J1249.8+3707_daily_bin329.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10054E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.150       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9212       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .27224E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.8570       1.0000         .10000E-03   10000.    
    13 'Prefactor '    118.89       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.092       1.0000         .10000E-03   10000.    
    16 'norm      '    7.3439       1.0000         .10000E-03   10000.    
    17 'norm      '    .10715E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1143       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99034       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=   2763.244     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     2641 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.594       -.10265E-04** at limit **
   2  Prefactor     .10000E-03    19.456       -.62100E-06** at limit **
   3  norm          .10000E-03    3.2647        .91774E-07** at limit **
   4  Prefactor     .10000E-03    37.654        .29037E-04** at limit **
   5  Prefactor     17.150        6.6548       -.70428E-07   -.24141E-03
   6  Prefactor     2.9211        2.9034        .24049E-06    .42432E-04
   7  Prefactor     .10000E-03    7.2819        .75183E-07** at limit **
   8  Prefactor     .10005E-03    168.00        .79384E-04** at limit **
   9  Prefactor     .10000E-03    24.163        .51005E-05** at limit **
  10  Prefactor     .10000E-03    62.559        .13543E-05** at limit **
  11  Prefactor     .10000E-03    7.5183       -.13921E-06** at limit **
  12  norm          3.8533        6.6412        .12665E-05   -.78530E-04
  13  Prefactor     119.05        91.398        .87210E-04    .47602E-03
  14  Prefactor     .10000E-03    54.555       -.11474E-04** at limit **
  15  Prefactor     27.080        28.400        .10435E-04    .29624E-04
  16  norm          7.3428        9.5929       -.46885E-05   -.40941E-04
  17  norm          .10326E-03    21.063       -.18125E-04** at limit **
  18  norm          .10000E-03    2.9932        .13874E-06** at limit **
  19  norm          .10000E-03    5.5490        .10029E-06** at limit **
  20  Prefactor     .10000E-03    3.6968        .31775E-06** at limit **
  21  Prefactor     .10000E-03    5.9798        .34299E-07** at limit **
  22  Prefactor     .10000E-03    30.767       -.17898E-04** at limit **
  23  Prefactor     .10000E-03    55.088       -.11600E-04** at limit **
  24  Prefactor     .10000E-03    65.247        .15201E-04** at limit **
  25  Normalizat    1.1145        .26535       -.87392E-05    .20433E-03
  26  Prefactor     .99028        .32365       -.20992E-05    .11634E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.1496
  Prefactor  = 2.92105
  Prefactor  = 0.0001
  Prefactor  = 0.000100048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.85331
  Prefactor  = 119.045
  Prefactor  = 0.0001
  Prefactor  = 27.08
  norm       = 7.34282
  norm       = 0.000103256
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.1145
  Prefactor  = 0.99028
 **********
 **   18 **HESSE 
 **********

 FCN=   2763.244     FROM HESSE     STATUS=OK           444 CALLS     3085 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.2799        .92652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    38.647        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.150        6.6450        .81370E-04   -1.4879    
   6  Prefactor     2.9211        2.9106        .86649E-04   -1.5366    
   7  Prefactor     .10000E-03    7.2853        .13855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10005E-03    171.02        .42860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    62.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.5582        .14071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.8533        6.6195        .17099E-03   -1.5315    
  13  Prefactor     119.05        91.619        .18452E-03   -1.3521    
  14  Prefactor     .10000E-03    54.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     27.080        28.418        .76966E-04   -1.4667    
  16  norm          7.3428        9.5824        .14800E-03   -1.5166    
  17  norm          .10326E-03    488.83        .45818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.0245        .88766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.5773        .12092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.8166        .19713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.9814        .12555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    30.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    55.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    65.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1145        .31317        .23521E-03   -.89288    
  26  Prefactor     .99028        .38089        .30347E-03   -.93054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.38696e-09
Minuit parameter uncertainties:
  1  8.94927e-05
  2  2.49766e-05
  3  1.9171e-05
  4  0.000117235
  5  6.64526
  6  2.91077
  7  1.65464e-05
  8  0.00577515
  9  4.87022e-06
  10  7.48018e-05
  11  2.57264e-05
  12  6.62075
  13  91.7281
  14  0.000256022
  15  28.4325
  16  9.58439
  17  0.080459
  18  2.55611e-05
  19  2.85318e-05
  20  6.83679e-05
  21  1.45768e-05
  22  4.33685e-05
  23  0.000488884
  24  0.000122886
  25  0.31369
  26  0.381927
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  4.870e-06  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:  9.903e-01  3.819e-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.115e+00  3.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/935806/likelihoodResults_324604801_324864001_4FGL_J1249.8+3707_daily_bin329.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) = 2763.24468862
delta logL = -0.00019677137243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2763.24449857
delta logL = -6.72374972055e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32221E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0455       1.0000          .0000       10.000    
     3 'Normalizat'    1.1145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99028       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=   2763.244     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      229 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3688        .10680E-01** at limit **
   2  Index         2.0447        5.5471        .50000        .14490E-04
   3  Normalizat    1.1145        .17553E-02    .37439E-01   -.48375E-04
   4  Prefactor     .99029        .21594E-02    .68604E-01    .64671E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.04468
  Normalizat = 1.1145
  Prefactor  = 0.990286
 **********
 **   18 **HESSE 
 **********

 FCN=   2763.244     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      262 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.697        .21359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0447        7.1485        .50000       -.63238    
   3  Normalizat    1.1145        .10481E-01    .23521E-03   -.89288    
   4  Prefactor     .99029        .12878E-01    .30347E-03   -.93054    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.84124e-07
Minuit parameter uncertainties:
  1  0.000668952
  2  188.602
  3  0.0104815
  4  0.0128781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935806': 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): 102
logL (Free Index) = 2763.2444925
delta logL = -6.59658780933e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  6.690e-04  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.045e+00  1.886e+02  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:  9.903e-01  1.288e-02  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.114e+00  1.048e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/935806/cmap_HighResolution_324604801_324864001_4FGL_J1249.8+3707_daily_bin329.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.14e-03', job_status='DONE', photon_flux_upper_limit='8.34e-08', time_completed='2021-09-06 06:43:41.242092', job_id='935806', GAL2='0.99', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1630935821.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='-6.60e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='329' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:43:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 935806: <4FGL_J1249.8+3707_daily_bin329> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin329 192.46 37.1306 324604801 324864001 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 :                                   531.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             228.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            770 sec.

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

