/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 32 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 = 7396
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1249.8+3707_daily_bin14
RA = 192.46, Dec = 37.1306
tmin = 242956801, tmax = 243216001
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='934296', job_status='RUN', time_executed='2021-09-06 06:26:30.967083', time_epoch_executed='1630934790.97' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='14'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934296

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934296/ft1_4FGL_J1249.8+3707_daily_bin14.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934296/ft2_4FGL_J1249.8+3707_daily_bin14.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934296/ft1_4FGL_J1249.8+3707_daily_bin14.fits outfile=/scratch/kocevski/934296/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin14.fits ra=192.46 dec=37.1306 rad=12.0 tmin=242956801.0 tmax=243216001.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 1.41
user 1.24
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934296/ft1_filtered_4FGL_J1249.8+3707_daily_bin14.fits evtable="EVENTS" scfile=/scratch/kocevski/934296/ft2_4FGL_J1249.8+3707_daily_bin14.fits sctable="SC_DATA" expcube=/scratch/kocevski/934296/ltcube_242956801_243216001_4FGL_J1249.8+3707_daily_bin14.fits outfile=/scratch/kocevski/934296/expmap_242956801_243216001_4FGL_J1249.8+3707_daily_bin14.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/934296/ltcube_242956801_243216001_4FGL_J1249.8+3707_daily_bin14.fits
.....................!
real 191.23
user 186.11
sys 4.79

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/934296/ft1_filtered_4FGL_J1249.8+3707_daily_bin14.fits scfile=/scratch/kocevski/934296/ft2_4FGL_J1249.8+3707_daily_bin14.fits outfile=/scratch/kocevski/934296/cmap_242956801_243216001_4FGL_J1249.8+3707_daily_bin14.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.35
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.817       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.640       1.0000         .10000E-03   10000.    
     3 'norm      '    8.1708       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2001       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0693       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.0087       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.531       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.394       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10491E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.5670       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.910       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7011       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7174       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.8635       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .98783       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1663       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=   8162.685     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     3072 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.816        40.965        .18343E-02    .12658E-03
   2  Prefactor     18.640        19.594        .23192E-02    .13378E-04
   3  norm          8.1708        2.8442        .35064E-02   -.77624E-05
   4  Prefactor     3.2002        3.3297        .56624E-02   -.22048E-03
   5  Prefactor     .10000E-03    .63915        .90712E-02** at limit **
   6  Prefactor     8.0694        2.4939        .35286E-02    .40710E-04
   7  Prefactor     9.0088        7.7188        .33384E-02    .38244E-03
   8  Prefactor     21.532        22.890        .21580E-02    .18939E-04
   9  Prefactor     19.393        15.125        .22737E-02   -.21715E-04
  10  Prefactor     .10000E-03    23.689        .90712E-02** at limit **
  11  Prefactor     .10000E-03    4.5897        .90712E-02** at limit **
  12  norm          .10000E-03    1.7841        .90712E-02** at limit **
  13  Prefactor     .10000E-03    11.300        .90712E-02** at limit **
  14  Prefactor     .10000E-03    84.096        .90712E-02** at limit **
  15  Prefactor     .10000E-03    6.9476        .90712E-02** at limit **
  16  norm          5.5654        5.3206        .42568E-02    .48366E-03
  17  norm          .10000E-03    3.1376        .90712E-02** at limit **
  18  norm          16.909        5.1701        .24349E-02    .21952E-02
  19  norm          .10000E-03    4.2641        .90712E-02** at limit **
  20  Prefactor     1.7020        2.8695        .80628E-02    .84193E-03
  21  Prefactor     1.7145        11.831        .80154E-02    .41421E-03
  22  Prefactor     .10000E-03    16.405        .90712E-02** at limit **
  23  Prefactor     7.8639        16.225        .35748E-02    .52989E-04
  24  Prefactor     .10000E-03    35.674        .90712E-02** at limit **
  25  Normalizat    .98777        .15751        .46014E-01    .47785E-04
  26  Prefactor     1.1664        .19259        .66983E-01    .22525E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.8163
  Prefactor  = 18.6404
  norm       = 8.17076
  Prefactor  = 3.20022
  Prefactor  = 0.0001
  Prefactor  = 8.06936
  Prefactor  = 9.00876
  Prefactor  = 21.5318
  Prefactor  = 19.3929
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.5654
  norm       = 0.0001
  norm       = 16.9091
  norm       = 0.0001
  Prefactor  = 1.70198
  Prefactor  = 1.71446
  Prefactor  = 0.0001
  Prefactor  = 7.86387
  Prefactor  = 0.0001
  Normalizat = 0.987774
  Prefactor  = 1.16636
 **********
 **   18 **HESSE 
 **********

 FCN=   8162.685     FROM HESSE     STATUS=OK           458 CALLS     3530 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.816        40.974        .73374E-04   -1.4615    
   2  Prefactor     18.640        19.599        .92767E-04   -1.4844    
   3  norm          8.1708        2.8404        .86293E-04   -1.5136    
   4  Prefactor     3.2002        3.3346        .16367E-03   -1.5350    
   5  Prefactor     .10000E-03    .64213        .70432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.0694        2.4932        .75859E-04   -1.5140    
   7  Prefactor     9.0088        7.7180        .66768E-03   -1.5108    
   8  Prefactor     21.532        22.907        .86320E-04   -1.4780    
   9  Prefactor     19.393        15.122        .90948E-04   -1.4827    
  10  Prefactor     .10000E-03    23.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.6725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.7979        .11778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    85.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.9642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.5654        5.2957        .17027E-03   -1.5236    
  17  norm          .10000E-03    3.1383        .15630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.909        5.1322        .48698E-03   -1.4885    
  19  norm          .10000E-03    4.2760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7020        2.7865        .17630E-03   -1.5447    
  21  Prefactor     1.7145        11.384        .32062E-03   -1.5446    
  22  Prefactor     .10000E-03    16.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.8639        16.224        .14299E-03   -1.5147    
  24  Prefactor     .10000E-03    35.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .98777        .18683        .25570E-03   -.93441    
  26  Prefactor     1.1664        .22833        .29631E-03   -.87373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13201e-10
Minuit parameter uncertainties:
  1  41.0128
  2  19.606
  3  2.84044
  4  3.33484
  5  1.25843e-06
  6  2.49325
  7  7.71886
  8  22.9162
  9  15.1248
  10  2.10395e-05
  11  2.60831e-06
  12  6.98396e-07
  13  3.35699e-06
  14  7.23802e-05
  15  3.15556e-06
  16  5.29613
  17  2.58939e-07
  18  5.13235
  19  3.56226e-06
  20  2.78675
  21  8.83787
  22  2.49434e-06
  23  16.2326
  24  2.44388e-05
  25  0.18695
  26  0.228521
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.939e+01  1.512e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.780e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.166e+00  2.285e-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.878e-01  1.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.64
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 1.77e-08 +/- 1.38e-08
Energy Flux (Fixed Index): 2.25e-05 +/- 1.75e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8161.42137321
delta logL = 1.26380521588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8161.34709712
delta logL = 1.33808130184

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.930       1.0000         .10000E-03   10000.    
     2 'Index     '    .67107       1.0000          .0000       10.000    
     3 'Normalizat'    .99699       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1690       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=   8161.347     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      217 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 17.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.924        20.125       -.87614E-05    .26510E-03
   2  Index         .67080        .85302       -.72213E-04   -.30171E-04
   3  Normalizat    .99696        .15282       -.36098E-07    .41342E-03
   4  Prefactor     1.1690        .19178        .54757E-06    .27783E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9242
  Index      = 0.6708
  Normalizat = 0.99696
  Prefactor  = 1.16905
 **********
 **   18 **HESSE 
 **********

 FCN=   8161.347     FROM HESSE     STATUS=OK            29 CALLS      246 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.924        18.255        .12118E-03   -1.5047    
   2  Index         .67080        .77825        .17457E-01   -1.0468    
   3  Normalizat    .99696        .18134        .25463E-03   -.93132    
   4  Prefactor     1.1690        .22733        .29619E-03   -.87289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18688e-10
Minuit parameter uncertainties:
  1  18.2642
  2  0.791384
  3  0.181456
  4  0.227524
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934296': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8161.34709704
delta logL = 1.33808138164

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.092e+01  1.826e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  6.708e-01  7.914e-01  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.169e+00  2.275e-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.970e-01  1.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.30
Ra Dec: 192.460 37.131
Photon Index (Free Index): 0.67 +/- 0.79
Photon Flux (Free Index): 3.44e-09 +/- 3.87e-09
Energy Flux (Free Index): 9.51e-05 +/- 1.05e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/934296/cmap_HighResolution_242956801_243216001_4FGL_J1249.8+3707_daily_bin14.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.77e-08', energy_flux2='9.51e-05', photon_flux_error='1.38e-08', dlogl='1.34e+00', energy_flux='2.25e-05', photon_flux2='3.44e-09', job_status='DONE', time_completed='2021-09-06 06:39:32.066710', photon_index_error2='0.79', photon_index2='0.67', ts='13.64', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='1.05e-04', EG='0.99', time_epoch_completed='1630935572.07', return_code='0', job_id='934296', GAL2='1.17', EG2='1.00', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='3.87e-09', ts2='16.30', photon_index='1.78' WHERE bin_id='14' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:39:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 934296: <4FGL_J1249.8+3707_daily_bin14> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin14 192.46 37.1306 242956801 243216001 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 :                                   779.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             368.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            828 sec.

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

