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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin868
RA = 192.46, Dec = 37.1306
tmin = 464313601, tmax = 464572801
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='938825', job_status='RUN', time_executed='2021-09-06 06:40:56.161395', time_epoch_executed='1630935656.16' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='868'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938825

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938825/ft1_4FGL_J1249.8+3707_daily_bin868.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938825/ft2_4FGL_J1249.8+3707_daily_bin868.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938825/ft1_4FGL_J1249.8+3707_daily_bin868.fits outfile=/scratch/kocevski/938825/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin868.fits ra=192.46 dec=37.1306 rad=12.0 tmin=464313601.0 tmax=464572801.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.38
user 3.17
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938825/ft1_filtered_4FGL_J1249.8+3707_daily_bin868.fits" evtable="EVENTS" scfile=/scratch/kocevski/938825/ft2_4FGL_J1249.8+3707_daily_bin868.fits sctable="SC_DATA" outfile=/scratch/kocevski/938825/ltcube_464313601_464572801_4FGL_J1249.8+3707_daily_bin868.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/938825/ft2_4FGL_J1249.8+3707_daily_bin868.fits
.....................!
real 11.75
user 11.10
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938825/ft1_filtered_4FGL_J1249.8+3707_daily_bin868.fits evtable="EVENTS" scfile=/scratch/kocevski/938825/ft2_4FGL_J1249.8+3707_daily_bin868.fits sctable="SC_DATA" expcube=/scratch/kocevski/938825/ltcube_464313601_464572801_4FGL_J1249.8+3707_daily_bin868.fits outfile=/scratch/kocevski/938825/expmap_464313601_464572801_4FGL_J1249.8+3707_daily_bin868.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/938825/ltcube_464313601_464572801_4FGL_J1249.8+3707_daily_bin868.fits
.....................!
real 192.77
user 187.12
sys 5.17

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/938825/ft1_filtered_4FGL_J1249.8+3707_daily_bin868.fits scfile=/scratch/kocevski/938825/ft2_4FGL_J1249.8+3707_daily_bin868.fits outfile=/scratch/kocevski/938825/cmap_464313601_464572801_4FGL_J1249.8+3707_daily_bin868.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938825/ft1_filtered_4FGL_J1249.8+3707_daily_bin868.fits scfile=/scratch/kocevski/938825/ft2_4FGL_J1249.8+3707_daily_bin868.fits outfile=/scratch/kocevski/938825/cmap_HighResolution_464313601_464572801_4FGL_J1249.8+3707_daily_bin868.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.117       1.0000         .10000E-03   10000.    
     3 'norm      '    5.6054       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11800E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4956       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1368       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .53342       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.194       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.341       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.730       1.0000         .10000E-03   10000.    
    16 'norm      '    3.5933       1.0000         .10000E-03   10000.    
    17 'norm      '    14.029       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8545       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.997       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.877       1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.229       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1689       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .79374       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=   6017.933     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3077 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.196        .11349E-06** at limit **
   2  Prefactor     49.119        33.735       -.19635E-04    .16121E-04
   3  norm          5.6053        3.1146        .19192E-06    .16403E-03
   4  Prefactor     .10000E-03    12.504        .43079E-06** at limit **
   5  Prefactor     1.4956        1.4157        .44335E-07    .41496E-03
   6  Prefactor     5.1366        3.1814       -.92401E-07    .14897E-03
   7  Prefactor     .52876        6.6173       -.16379E-05   -.49672E-04
   8  Prefactor     .10000E-03    6.0054       -.76593E-07** at limit **
   9  Prefactor     .10000E-03    7.6040        .60317E-07** at limit **
  10  Prefactor     21.047        67.866       -.41603E-04    .13215E-04
  11  Prefactor     .10000E-03    2.0912        .16935E-07** at limit **
  12  norm          .10000E-03    1.0115        .13537E-06** at limit **
  13  Prefactor     11.338        44.093       -.21403E-04   -.53414E-06
  14  Prefactor     .10000E-03    4.6678        .19932E-07** at limit **
  15  Prefactor     11.732        11.002       -.16919E-05    .21843E-04
  16  norm          3.5934        3.1045       -.17518E-07    .69040E-04
  17  norm          14.029        10.774        .39746E-06    .37057E-04
  18  norm          .10000E-03    .69766        .26408E-07** at limit **
  19  norm          .10000E-03    1.3654        .13643E-06** at limit **
  20  Prefactor     2.8566        3.6212       -.24712E-05   -.69513E-03
  21  Prefactor     15.998        12.796        .33145E-05    .31805E-04
  22  Prefactor     15.765        59.974        .22696E-04    .13098E-04
  23  Prefactor     22.228        18.559       -.40305E-05    .66583E-05
  24  Prefactor     .10000E-03    20.631       -.31748E-06** at limit **
  25  Normalizat    1.1687        .17173        .40330E-05    .21451E-04
  26  Prefactor     .79398        .20758        .11626E-05    .15960E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 49.1194
  norm       = 5.60533
  Prefactor  = 0.000100001
  Prefactor  = 1.49563
  Prefactor  = 5.13663
  Prefactor  = 0.52876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.0471
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.338
  Prefactor  = 0.0001
  Prefactor  = 11.7317
  norm       = 3.59337
  norm       = 14.029
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.85665
  Prefactor  = 15.9984
  Prefactor  = 15.7654
  Prefactor  = 22.2284
  Prefactor  = 0.0001
  Normalizat = 1.1687
  Prefactor  = 0.79398
 **********
 **   18 **HESSE 
 **********

 FCN=   6017.933     FROM HESSE     STATUS=OK           464 CALLS     3541 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     49.119        33.695        .57219E-04   -1.4305    
   3  norm          5.6053        3.1105        .96450E-04   -1.5234    
   4  Prefactor     .10000E-03    13.027        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.4956        1.4342        .86560E-04   -1.5463    
   6  Prefactor     5.1366        3.1509        .10042E-03   -1.5255    
   7  Prefactor     .52876        20.000        .37876E-02   -1.5563    
   8  Prefactor     .10000E-03    6.0083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.6130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.047        67.778        .87004E-04   -1.4790    
  11  Prefactor     .10000E-03    2.0975        .10953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.0135        .76180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.338        44.111        .11896E-03   -1.5034    
  14  Prefactor     .10000E-03    4.6696        .16369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.732        11.002        .11697E-03   -1.5023    
  16  norm          3.5934        3.1006        .12302E-03   -1.5329    
  17  norm          14.029        10.772        .10694E-03   -1.4959    
  18  norm          .10000E-03    .69894        .63267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.3664        .88523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.8566        3.6018        .14235E-03   -1.5370    
  21  Prefactor     15.998        12.772        .10014E-03   -1.4908    
  22  Prefactor     15.765        59.886        .10052E-03   -1.4914    
  23  Prefactor     22.228        18.558        .84957E-04   -1.4765    
  24  Prefactor     .10000E-03    20.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1687        .19831        .21701E-03   -.87576    
  26  Prefactor     .79398        .23932        .31899E-03   -.99951    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04872e-08
Minuit parameter uncertainties:
  1  1.0451e-05
  2  33.7083
  3  3.11054
  4  0.000172644
  5  1.43421
  6  3.15102
  7  6.50566
  8  5.1562e-06
  9  6.5799e-06
  10  68.0279
  11  9.32611e-07
  12  1.35998e-05
  13  44.2382
  14  6.65399e-06
  15  11.004
  16  3.10072
  17  10.773
  18  2.16914e-07
  19  1.27327e-07
  20  3.60202
  21  12.7741
  22  60.1154
  23  18.5623
  24  4.242e-05
  25  0.19844
  26  0.239631
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  6.580e-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:  7.940e-01  2.396e-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.169e+00  1.984e-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: 3.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938825/likelihoodResults_464313601_464572801_4FGL_J1249.8+3707_daily_bin868.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) = 6017.93408675
delta logL = -0.000623249457021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6017.93346349
delta logL = 1.20580807561e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7628       1.0000          .0000       10.000    
     3 'Normalizat'    1.1687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79395       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=   6017.933     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      242 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10076E-03    61.076        .18142E-02** at limit **
   2  Index         1.7197        5.1838        .50000        .14449E-04
   3  Normalizat    1.1687        .11470E-01    .21701E-03    .93775E-05
   4  Prefactor     .79398        .14225E-01    .31899E-03   -.34214E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100761
  Index      = 1.71974
  Normalizat = 1.1687
  Prefactor  = 0.793977
 **********
 **   18 **HESSE 
 **********

 FCN=   6017.933     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10076E-03    307.21        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7197        5.8124        .50000       -.71558    
   3  Normalizat    1.1687        .26787E-01    .86803E-05   -.87576    
   4  Prefactor     .79398        .33205E-01    .12760E-04   -.99951    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.52881e-08
Minuit parameter uncertainties:
  1  0.0307328
  2  549.296
  3  0.0267869
  4  0.0332059
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938825': 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) = 6017.9334633
delta logL = 2.03165654966e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.008e-04  3.073e-02  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.720e+00  5.493e+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:  7.940e-01  3.321e-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.169e+00  2.679e-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/938825/cmap_HighResolution_464313601_464572801_4FGL_J1249.8+3707_daily_bin868.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.45e-03', job_status='DONE', photon_flux_upper_limit='3.34e-08', time_completed='2021-09-06 06:53:31.386101', job_id='938825', GAL2='0.79', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1630936411.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='868' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:53:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 938825: <4FGL_J1249.8+3707_daily_bin868> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin868 192.46 37.1306 464313601 464572801 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 :                                   750.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            775 sec.

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

