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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin720
RA = 192.46, Dec = 37.1306
tmin = 425952001, tmax = 426211201
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='938616', job_status='RUN', time_executed='2021-09-06 06:42:46.316719', time_epoch_executed='1630935766.32' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='720'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938616

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938616/ft1_4FGL_J1249.8+3707_daily_bin720.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938616/ft2_4FGL_J1249.8+3707_daily_bin720.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938616/ft1_4FGL_J1249.8+3707_daily_bin720.fits outfile=/scratch/kocevski/938616/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin720.fits ra=192.46 dec=37.1306 rad=12.0 tmin=425952001.0 tmax=426211201.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.61
user 3.40
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/938616/ft2_4FGL_J1249.8+3707_daily_bin720.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/938616/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin720.fits evtable="EVENTS" outfile="/scratch/kocevski/938616/ft1_filtered_4FGL_J1249.8+3707_daily_bin720.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.31
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938616/ft1_filtered_4FGL_J1249.8+3707_daily_bin720.fits evtable="EVENTS" scfile=/scratch/kocevski/938616/ft2_4FGL_J1249.8+3707_daily_bin720.fits sctable="SC_DATA" expcube=/scratch/kocevski/938616/ltcube_425952001_426211201_4FGL_J1249.8+3707_daily_bin720.fits outfile=/scratch/kocevski/938616/expmap_425952001_426211201_4FGL_J1249.8+3707_daily_bin720.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/938616/ltcube_425952001_426211201_4FGL_J1249.8+3707_daily_bin720.fits
.....................!
real 190.20
user 185.40
sys 4.36

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/938616/ft1_filtered_4FGL_J1249.8+3707_daily_bin720.fits scfile=/scratch/kocevski/938616/ft2_4FGL_J1249.8+3707_daily_bin720.fits outfile=/scratch/kocevski/938616/cmap_425952001_426211201_4FGL_J1249.8+3707_daily_bin720.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938616/ft1_filtered_4FGL_J1249.8+3707_daily_bin720.fits scfile=/scratch/kocevski/938616/ft2_4FGL_J1249.8+3707_daily_bin720.fits outfile=/scratch/kocevski/938616/cmap_HighResolution_425952001_426211201_4FGL_J1249.8+3707_daily_bin720.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17601E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.7469       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.865       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.072       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11412E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .41042E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7912       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4221       1.0000         .10000E-03   10000.    
    17 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    14.702       1.0000         .10000E-03   10000.    
    19 'norm      '    .59535       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10795E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .26916E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4288       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86790       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=   6463.618     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     3159 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10366E-03    79.507       -.54140E-05** at limit **
   2  Prefactor     .10000E-03    46.332        .37457E-05** at limit **
   3  norm          6.7468        3.0021        .20354E-07   -.34908E-04
   4  Prefactor     .10000E-03    3.8131        .26177E-07** at limit **
   5  Prefactor     .10000E-03    .84656       -.10541E-07** at limit **
   6  Prefactor     .10000E-03    1.2395        .93559E-09** at limit **
   7  Prefactor     .10000E-03    7.1035       -.32203E-08** at limit **
   8  Prefactor     40.862        23.835       -.45700E-06   -.60722E-04
   9  Prefactor     22.065        18.159       -.34484E-06   -.68645E-04
  10  Prefactor     .10000E-03    50.215       -.20359E-05** at limit **
  11  Prefactor     .10000E-03    2.2944        .13071E-06** at limit **
  12  norm          .10006E-03    5.7767        .21781E-05** at limit **
  13  Prefactor     .10000E-03    15.558       -.23300E-06** at limit **
  14  Prefactor     5.8082        59.320       -.76513E-05   -.12554E-03
  15  Prefactor     .10000E-03    8.8741        .10314E-06** at limit **
  16  norm          1.4145        3.3289        .73469E-06   -.46830E-03
  17  norm          .10000E-03    4.7760        .40065E-08** at limit **
  18  norm          14.695        8.7677       -.28735E-06   -.50838E-03
  19  norm          .61189        48.235       -.44583E-06   -.16297E-03
  20  Prefactor     .10000E-03    1.8859        .19215E-06** at limit **
  21  Prefactor     .10009E-03    15.244        .70138E-06** at limit **
  22  Prefactor     .10000E-03    97.779       -.88180E-05** at limit **
  23  Prefactor     .10000E-03    9.4868        .14226E-06** at limit **
  24  Prefactor     .10000E-03    19.640        .56711E-06** at limit **
  25  Normalizat    1.4288        .18461        .53940E-07   -.15221E-03
  26  Prefactor     .86794        .21889       -.77379E-06   -.67659E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103664
  Prefactor  = 0.000100001
  norm       = 6.74677
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.8615
  Prefactor  = 22.065
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100059
  Prefactor  = 0.0001
  Prefactor  = 5.80821
  Prefactor  = 0.0001
  norm       = 1.4145
  norm       = 0.0001
  norm       = 14.695
  norm       = 0.611894
  Prefactor  = 0.0001
  Prefactor  = 0.000100089
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.42884
  Prefactor  = 0.867936
 **********
 **   18 **HESSE 
 **********

 FCN=   6463.618     FROM HESSE     STATUS=OK           458 CALLS     3617 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10366E-03    44.505        .16787       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    46.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.7468        2.9973        .90090E-04   -1.5188    
   4  Prefactor     .10000E-03    3.8247        .15331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .85123        .72134E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.2621        .87340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.1449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.862        23.852        .62706E-04   -1.4429    
   9  Prefactor     22.065        18.163        .85258E-04   -1.4768    
  10  Prefactor     .10000E-03    50.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.3011        .11898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10006E-03    34.165        .26698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.8082        63.724        .16689E-03   -1.5226    
  15  Prefactor     .10000E-03    8.9156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4145        5.1980        .16498E-02   -1.5470    
  17  norm          .10000E-03    4.7794        .17160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.695        14.500        .10446E-03   -1.4941    
  19  norm          .61189        196.56        .41397E-02   -1.5552    
  20  Prefactor     .10000E-03    1.9081        .10775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10009E-03    40.261        .45559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    97.979        .21435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.5019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4288        .22456        .22918E-03   -.79798    
  26  Prefactor     .86794        .26423        .34156E-03   -.97271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90304e-09
Minuit parameter uncertainties:
  1  0.0255588
  2  0.000396203
  3  2.99733
  4  2.39362e-06
  5  1.43082e-07
  6  1.00108e-06
  7  3.48022e-06
  8  23.8573
  9  18.168
  10  0.000243213
  11  5.96537e-06
  12  0.00284272
  13  1.13094e-05
  14  38.5289
  15  1.36926e-05
  16  5.19968
  17  1.5211e-06
  18  14.5034
  19  22.0051
  20  1.06834e-05
  21  0.00377958
  22  0.00109841
  23  1.14066e-05
  24  4.51268e-05
  25  0.224719
  26  0.264615
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.207e+01  1.817e+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:  8.679e-01  2.646e-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.429e+00  2.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.58
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 2.01e-08 +/- 1.66e-08
Energy Flux (Fixed Index): 2.56e-05 +/- 2.11e-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) = 6463.61462573
delta logL = 0.00318785615127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6463.61270382
delta logL = 0.0051097609221

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.714       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8452       1.0000          .0000       10.000    
     3 'Normalizat'    1.4269       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86874       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=   6463.613     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      290 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.717        23.081        .88004E-04    .21832E-04
   2  Index         1.8452        .68050        .76872E-02    .35957E-03
   3  Normalizat    1.4267        .21530        .22932E-03   -.10877E-03
   4  Prefactor     .86895        .25695        .34136E-03   -.51854E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.7172
  Index      = 1.84523
  Normalizat = 1.42671
  Prefactor  = 0.868953
 **********
 **   18 **HESSE 
 **********

 FCN=   6463.613     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.717        22.086        .35202E-05   -1.4797    
   2  Index         1.8452        .65125        .15374E-02   -.68278    
   3  Normalizat    1.4267        .21527        .45864E-04   -.79859    
   4  Prefactor     .86895        .25711        .13655E-04   -.97235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20871e-11
Minuit parameter uncertainties:
  1  22.0951
  2  0.654345
  3  0.215411
  4  0.25747
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938616': 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) = 6463.61270343
delta logL = 0.00511014932545

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.072e+01  2.210e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.845e+00  6.543e-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:  8.690e-01  2.575e-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.427e+00  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.58
Ra Dec: 192.460 37.131
Photon Index (Free Index): 1.85 +/- 0.65
Photon Flux (Free Index): 2.22e-08 +/- 2.80e-08
Energy Flux (Free Index): 2.33e-05 +/- 2.87e-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/938616/cmap_HighResolution_425952001_426211201_4FGL_J1249.8+3707_daily_bin720.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.01e-08', energy_flux2='2.33e-05', photon_flux_error='1.66e-08', dlogl='5.11e-03', energy_flux='2.56e-05', photon_flux2='2.22e-08', job_status='DONE', time_completed='2021-09-06 06:54:36.162642', photon_index_error2='0.65', photon_index2='1.85', ts='5.58', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='2.87e-05', EG='1.43', time_epoch_completed='1630936476.16', return_code='0', job_id='938616', GAL2='0.87', EG2='1.43', return_code2='0', energy_flux_error='2.11e-05', photon_flux_error2='2.80e-08', ts2='5.58', photon_index='1.78' WHERE bin_id='720' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:54:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 938616: <4FGL_J1249.8+3707_daily_bin720> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin720 192.46 37.1306 425952001 426211201 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 :                                   707.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            852 sec.

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

