/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 18 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 = 7232
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1249.8+3707_daily_bin400
RA = 192.46, Dec = 37.1306
tmin = 343008001, tmax = 343267201
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='935882', job_status='RUN', time_executed='2021-09-06 06:31:54.550226', time_epoch_executed='1630935114.55' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935882

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935882/ft1_4FGL_J1249.8+3707_daily_bin400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935882/ft2_4FGL_J1249.8+3707_daily_bin400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935882/ft1_4FGL_J1249.8+3707_daily_bin400.fits outfile=/scratch/kocevski/935882/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin400.fits ra=192.46 dec=37.1306 rad=12.0 tmin=343008001.0 tmax=343267201.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 3.82
user 3.56
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/935882/ft2_4FGL_J1249.8+3707_daily_bin400.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/935882/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin400.fits evtable="EVENTS" outfile="/scratch/kocevski/935882/ft1_filtered_4FGL_J1249.8+3707_daily_bin400.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.60
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935882/ft1_filtered_4FGL_J1249.8+3707_daily_bin400.fits" evtable="EVENTS" scfile=/scratch/kocevski/935882/ft2_4FGL_J1249.8+3707_daily_bin400.fits sctable="SC_DATA" outfile=/scratch/kocevski/935882/ltcube_343008001_343267201_4FGL_J1249.8+3707_daily_bin400.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/935882/ft2_4FGL_J1249.8+3707_daily_bin400.fits
.....................!
real 12.85
user 12.48
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935882/ft1_filtered_4FGL_J1249.8+3707_daily_bin400.fits evtable="EVENTS" scfile=/scratch/kocevski/935882/ft2_4FGL_J1249.8+3707_daily_bin400.fits sctable="SC_DATA" expcube=/scratch/kocevski/935882/ltcube_343008001_343267201_4FGL_J1249.8+3707_daily_bin400.fits outfile=/scratch/kocevski/935882/expmap_343008001_343267201_4FGL_J1249.8+3707_daily_bin400.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/935882/ltcube_343008001_343267201_4FGL_J1249.8+3707_daily_bin400.fits
.....................!
real 190.41
user 185.48
sys 4.55

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

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

This is gtbin version HEAD
real 0.55
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935882/ft1_filtered_4FGL_J1249.8+3707_daily_bin400.fits scfile=/scratch/kocevski/935882/ft2_4FGL_J1249.8+3707_daily_bin400.fits outfile=/scratch/kocevski/935882/cmap_HighResolution_343008001_343267201_4FGL_J1249.8+3707_daily_bin400.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.51
user 0.36
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.4908       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .28588E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5742       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8965       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.5383       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22073E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .72178E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    51.692       1.0000         .10000E-03   10000.    
    14 'Prefactor '    50.200       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10107E-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      '    .12003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.0320       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    58.141       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11208E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .90264       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2481       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=   6147.438     FROM MIGRAD    STATUS=CONVERGED    657 CALLS     3620 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    77.294       -.22930E-05** at limit **
   2  Prefactor     .10000E-03    25.740       -.16227E-05** at limit **
   3  norm          7.4900        3.3066        .71420E-06    .32367E-02
   4  Prefactor     .10000E-03    5.9813       -.15642E-05** at limit **
   5  Prefactor     .10001E-03    1.1285       -.70429E-06** at limit **
   6  Prefactor     1.5743        2.3140        .23121E-06    .47840E-03
   7  Prefactor     4.8960        6.8047       -.49754E-06   -.27805E-03
   8  Prefactor     9.5310        27.302       -.60331E-06   -.75263E-05
   9  Prefactor     .10000E-03    15.396       -.83644E-06** at limit **
  10  Prefactor     .10037E-03    6165.1       -.38942E-04** at limit **
  11  Prefactor     .10000E-03    3.2863       -.38924E-06** at limit **
  12  norm          .10001E-03    27.365       -.96210E-05** at limit **
  13  Prefactor     51.692        57.488        .38550E-07    .22141E-04
  14  Prefactor     50.199        28.184       -.61618E-06   -.76418E-04
  15  Prefactor     .10000E-03    21.704       -.15553E-05** at limit **
  16  norm          .10000E-03    1.5233       -.49106E-07** at limit **
  17  norm          .10000E-03    6.2394       -.34537E-06** at limit **
  18  norm          .10000E-03    6.1852        .43818E-05** at limit **
  19  norm          6.0402        5.6486        .48977E-06   -.47334E-03
  20  Prefactor     .10000E-03    1.3122        .38950E-06** at limit **
  21  Prefactor     .10000E-03    6.0347        .14419E-06** at limit **
  22  Prefactor     58.128        43.490        .17581E-06    .19645E-04
  23  Prefactor     .10000E-03    6.9793       -.27267E-06** at limit **
  24  Prefactor     .10001E-03    171.86       -.95113E-06** at limit **
  25  Normalizat    .90260        .21029        .27964E-05   -.72225E-05
  26  Prefactor     1.2482        .26100       -.24467E-05    .34283E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  norm       = 7.49002
  Prefactor  = 0.000100002
  Prefactor  = 0.00010001
  Prefactor  = 1.57429
  Prefactor  = 4.89598
  Prefactor  = 9.53095
  Prefactor  = 0.0001
  Prefactor  = 0.000100372
  Prefactor  = 0.0001
  norm       = 0.00010001
  Prefactor  = 51.6924
  Prefactor  = 50.1986
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 6.04019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.1282
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Normalizat = 0.902597
  Prefactor  = 1.24817
 **********
 **   18 **HESSE 
 **********

 FCN=   6147.438     FROM HESSE     STATUS=OK           466 CALLS     4086 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    78.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.4900        3.4587        .89978E-04   -1.5161    
   4  Prefactor     .10000E-03    6.2280        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    1.5917        .29795E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.5743        2.3031        .13586E-03   -1.5457    
   7  Prefactor     4.8960        6.8088        .18177E-03   -1.5265    
   8  Prefactor     9.5310        27.312        .12976E-03   -1.5090    
   9  Prefactor     .10000E-03    15.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10037E-03    42.964        .16792       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.3100        .13896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10001E-03    27.524        .23300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     51.692        57.524        .55782E-04   -1.4269    
  14  Prefactor     50.199        27.403        .56601E-04   -1.4290    
  15  Prefactor     .10000E-03    22.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.5271        .94508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.2541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.2275        .21781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.0402        5.4714        .16348E-03   -1.5216    
  20  Prefactor     .10000E-03    1.3319        .87773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.0491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     58.128        43.516        .26307E-03   -1.4182    
  23  Prefactor     .10000E-03    6.9907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    174.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .90260        .21412        .25334E-03   -.96369    
  26  Prefactor     1.2482        .26521        .27582E-03   -.84862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78913e-09
Minuit parameter uncertainties:
  1  0.000854702
  2  0.000484739
  3  3.45878
  4  0.000198569
  5  0.000257196
  6  2.30324
  7  6.80985
  8  27.3475
  9  0.000175783
  10  0.00800384
  11  4.28067e-05
  12  0.00102922
  13  57.5859
  14  27.4101
  15  0.000420215
  16  3.11529e-06
  17  4.6701e-05
  18  0.000199427
  19  5.47186
  20  2.32987e-05
  21  1.78421e-05
  22  43.5399
  23  4.13866e-05
  24  0.00261046
  25  0.21432
  26  0.265498
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.758e-04  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.248e+00  2.655e-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.026e-01  2.143e-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: 4.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/935882/likelihoodResults_343008001_343267201_4FGL_J1249.8+3707_daily_bin400.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) = 6147.43803046
delta logL = -0.00030816585604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6146.76335612
delta logL = 0.674366168606

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23786       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6353       1.0000          .0000       10.000    
     3 'Normalizat'    .82462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3021       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=   6146.763     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      275 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23779        3.2884        .74815E-02    .69649E-02
   2  Index         3.6356        1.7410        .68065E-01    .63157E-03
   3  Normalizat    .82478        .37609E-01    .43931E-01   -.51230E-04
   4  Prefactor     1.3023        .47479E-01    .61226E-01   -.39839E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.23779
  Index      = 3.63561
  Normalizat = 0.824777
  Prefactor  = 1.30232
 **********
 **   18 **HESSE 
 **********

 FCN=   6146.763     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      310 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23779        9.1428        .33921E-03   -1.5610    
   2  Index         3.6356        3.3501        .34634E-02   -.27638    
   3  Normalizat    .82478        .15024        .26380E-03   -.99156    
   4  Prefactor     1.3023        .18743        .27077E-03   -.83238    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.32101e-10
Minuit parameter uncertainties:
  1  2.94881
  2  3.70606
  3  0.150314
  4  0.187528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935882': 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) = 6146.76334752
delta logL = 0.674374767771

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.378e-01  2.949e+00  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  3.636e+00  3.706e+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.302e+00  1.875e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  8.248e-01  1.503e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.49
Ra Dec: 192.460 37.131
Photon Index (Free Index): 3.64 +/- 3.71
Photon Flux (Free Index): 6.10e-08 +/- 5.34e-08
Energy Flux (Free Index): 9.81e-06 +/- 1.27e-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/935882/cmap_HighResolution_343008001_343267201_4FGL_J1249.8+3707_daily_bin400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.61e-03', comment='SUCCESS', energy_flux2='9.81e-06', dlogl='6.74e-01', photon_flux2='6.10e-08', job_status='DONE', time_completed='2021-09-06 06:45:56.935991', photon_index_error2='3.71', photon_index2='3.64', ts='-0.00', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='4.91e-08', energy_flux_error2='1.27e-05', EG='0.90', time_epoch_completed='1630935956.94', return_code='0', job_id='935882', GAL2='1.30', EG2='0.82', return_code2='102', photon_flux_error2='5.34e-08', ts2='1.49', photon_index='1.78' WHERE bin_id='400' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:45:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 935882: <4FGL_J1249.8+3707_daily_bin400> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin400 192.46 37.1306 343008001 343267201 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 :                                   809.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            895 sec.

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

