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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin464
RA = 192.46, Dec = 37.1306
tmin = 359596801, tmax = 359856001
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='937107', job_status='RUN', time_executed='2021-09-06 06:37:27.269835', time_epoch_executed='1630935447.27' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='464'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937107

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937107/ft1_4FGL_J1249.8+3707_daily_bin464.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937107/ft2_4FGL_J1249.8+3707_daily_bin464.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937107/ft1_4FGL_J1249.8+3707_daily_bin464.fits outfile=/scratch/kocevski/937107/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin464.fits ra=192.46 dec=37.1306 rad=12.0 tmin=359596801.0 tmax=359856001.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.75
user 3.57
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937107/ft1_filtered_4FGL_J1249.8+3707_daily_bin464.fits evtable="EVENTS" scfile=/scratch/kocevski/937107/ft2_4FGL_J1249.8+3707_daily_bin464.fits sctable="SC_DATA" expcube=/scratch/kocevski/937107/ltcube_359596801_359856001_4FGL_J1249.8+3707_daily_bin464.fits outfile=/scratch/kocevski/937107/expmap_359596801_359856001_4FGL_J1249.8+3707_daily_bin464.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/937107/ltcube_359596801_359856001_4FGL_J1249.8+3707_daily_bin464.fits
.....................!
real 190.63
user 185.86
sys 4.28

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/937107/ft1_filtered_4FGL_J1249.8+3707_daily_bin464.fits scfile=/scratch/kocevski/937107/ft2_4FGL_J1249.8+3707_daily_bin464.fits outfile=/scratch/kocevski/937107/cmap_359596801_359856001_4FGL_J1249.8+3707_daily_bin464.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.71
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    71.897       1.0000         .10000E-03   10000.    
     3 'norm      '    3.7343       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8997       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2427       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    62.838       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9574       1.0000         .10000E-03   10000.    
    12 'norm      '    .30996       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .26265       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.844       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    26.329       1.0000         .10000E-03   10000.    
    18 'norm      '    3.2094       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .61557       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.185       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.935       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .65961       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2196       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=   5497.416     FROM MIGRAD    STATUS=CONVERGED    665 CALLS     3164 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.862        .74800E-06** at limit **
   2  Prefactor     71.901        35.675       -.12928E-05   -.70011E-05
   3  norm          3.7345        2.4813       -.61917E-07   -.20170E-04
   4  Prefactor     5.9000        7.6046        .12766E-05    .44679E-04
   5  Prefactor     5.2430        2.5477       -.41047E-07   -.70708E-05
   6  Prefactor     .10000E-03    1.2659       -.37588E-07** at limit **
   7  Prefactor     .10000E-03    3.7074        .36877E-07** at limit **
   8  Prefactor     .10000E-03    7.5666        .65676E-07** at limit **
   9  Prefactor     .10000E-03    5.0605       -.46590E-07** at limit **
  10  Prefactor     62.838        61.234        .15789E-05    .80508E-04
  11  Prefactor     1.9584        3.5416        .55548E-06    .27416E-04
  12  norm          .31894        3.6998       -.34795E-07   -.30518E-03
  13  Prefactor     .10000E-03    27.908       -.18328E-06** at limit **
  14  Prefactor     .89466E-01    27.339       -.49833E-05    .40466E-04
  15  Prefactor     27.839        18.504       -.13349E-05   -.17451E-03
  16  norm          .10000E-03    1.7289       -.20691E-06** at limit **
  17  norm          26.333        19.644        .82977E-06    .22098E-04
  18  norm          3.2077        4.1982        .31314E-05    .10021E-03
  19  norm          .10000E-03    3.3811       -.67437E-06** at limit **
  20  Prefactor     .63591        5.7739       -.15064E-05   -.65509E-03
  21  Prefactor     .10000E-03    12.519        .58757E-06** at limit **
  22  Prefactor     27.045        65.021        .26775E-05   -.15322E-03
  23  Prefactor     11.933        16.161        .14715E-06   -.53382E-04
  24  Prefactor     .10000E-03    127.04        .34359E-05** at limit **
  25  Normalizat    .65956        .17250        .52513E-05   -.14603E-03
  26  Prefactor     1.2196        .20792       -.23007E-05    .21069E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 71.9006
  norm       = 3.73449
  Prefactor  = 5.90005
  Prefactor  = 5.24296
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.8379
  Prefactor  = 1.9584
  norm       = 0.318945
  Prefactor  = 0.0001
  Prefactor  = 0.0894655
  Prefactor  = 27.8388
  norm       = 0.0001
  norm       = 26.3328
  norm       = 3.20765
  norm       = 0.0001
  Prefactor  = 0.635915
  Prefactor  = 0.000100001
  Prefactor  = 27.0454
  Prefactor  = 11.9328
  Prefactor  = 0.0001
  Normalizat = 0.659561
  Prefactor  = 1.21961
 **********
 **   18 **HESSE 
 **********

 FCN=   5497.416     FROM HESSE     STATUS=OK           470 CALLS     3634 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     71.901        35.686        .47346E-04   -1.4010    
   3  norm          3.7345        2.4896        .88887E-04   -1.5321    
   4  Prefactor     5.9000        7.5825        .16533E-03   -1.5222    
   5  Prefactor     5.2430        2.5556        .76984E-04   -1.5250    
   6  Prefactor     .10000E-03    1.3247        .16271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.7211        .13941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.5711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.0626        .16290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     62.838        61.218        .50621E-04   -1.4121    
  11  Prefactor     1.9584        3.5076        .17914E-03   -1.5428    
  12  norm          .31894        7.6010        .24637E-02   -1.5595    
  13  Prefactor     .10000E-03    27.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .89466E-01    30.104        .92301E-01   -1.5648    
  15  Prefactor     27.839        18.587        .75922E-04   -1.4652    
  16  norm          .10000E-03    1.7297        .95116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          26.333        19.640        .78072E-04   -1.4681    
  18  norm          3.2077        4.4440        .15202E-03   -1.5350    
  19  norm          .10000E-03    3.4338        .13355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .63591        9.2543        .23642E-02   -1.5548    
  21  Prefactor     .10000E-03    12.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     27.045        65.437        .76835E-04   -1.4667    
  23  Prefactor     11.933        16.154        .11596E-03   -1.5017    
  24  Prefactor     .10000E-03    127.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .65956        .19735        .25686E-03   -1.0551    
  26  Prefactor     1.2196        .24136        .25081E-03   -.85730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10821e-09
Minuit parameter uncertainties:
  1  2.9313e-05
  2  35.6961
  3  2.48964
  4  7.58377
  5  2.55561
  6  5.60421e-06
  7  8.83015e-06
  8  1.05468e-05
  9  1.0269e-06
  10  61.2791
  11  3.50793
  12  3.11399
  13  7.2527e-05
  14  3.28209
  15  18.5909
  16  5.0112e-06
  17  19.6452
  18  4.44448
  19  6.91747e-05
  20  4.85229
  21  0.000184266
  22  65.6113
  23  16.1599
  24  0.000219589
  25  0.197564
  26  0.241578
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.027e-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:  1.220e+00  2.416e-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:  6.596e-01  1.976e-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: 2.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/937107/likelihoodResults_359596801_359856001_4FGL_J1249.8+3707_daily_bin464.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) = 5497.41654381
delta logL = -0.000905121585674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5497.4156386
delta logL = 8.97398422239e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7451       1.0000          .0000       10.000    
     3 'Normalizat'    .65959       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2196       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=   5497.416     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      240 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10095E-03    26.791        .17129E-02** at limit **
   2  Index         1.6938        7.2992        .50000        .43431E-04
   3  Normalizat    .65957        .84926E-02    .25686E-03   -.24122E-04
   4  Prefactor     1.2196        .11017E-01    .25081E-03   -.58655E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100952
  Index      = 1.69377
  Normalizat = 0.659566
  Prefactor  = 1.2196
 **********
 **   18 **HESSE 
 **********

 FCN=   5497.416     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10095E-03    120.26        .34259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6938        5.0130        .50000       -.72248    
   3  Normalizat    .65957        .18341E-01    .10274E-04   -1.0551    
   4  Prefactor     1.2196        .23793E-01    .10032E-04   -.85730    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.92411e-08
Minuit parameter uncertainties:
  1  0.0214452
  2  171.361
  3  0.0183407
  4  0.0237929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937107': 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) = 5497.41563765
delta logL = 1.03848469735e-06

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.010e-04  2.145e-02  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.694e+00  1.714e+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:  1.220e+00  2.379e-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:  6.596e-01  1.834e-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/937107/cmap_HighResolution_359596801_359856001_4FGL_J1249.8+3707_daily_bin464.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.89e-03', job_status='DONE', photon_flux_upper_limit='2.57e-08', time_completed='2021-09-06 06:49:38.313192', job_id='937107', GAL2='1.22', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1630936178.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='1.04e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='464' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:49:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 937107: <4FGL_J1249.8+3707_daily_bin464> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin464> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 06:35:27 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:35:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 06:35:28 2021
Terminated at Mon Sep  6 06:49:38 2021
Results reported at Mon Sep  6 06:49:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin464 192.46 37.1306 359596801 359856001 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 :                                   727.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            851 sec.

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

