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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin783
RA = 192.46, Dec = 37.1306
tmin = 442281601, tmax = 442540801
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='938705', job_status='RUN', time_executed='2021-09-06 06:40:56.274610', time_epoch_executed='1630935656.27' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='783'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938705

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938705/ft1_4FGL_J1249.8+3707_daily_bin783.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938705/ft2_4FGL_J1249.8+3707_daily_bin783.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938705/ft1_4FGL_J1249.8+3707_daily_bin783.fits outfile=/scratch/kocevski/938705/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin783.fits ra=192.46 dec=37.1306 rad=12.0 tmin=442281601.0 tmax=442540801.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.56
user 3.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938705/ft1_filtered_4FGL_J1249.8+3707_daily_bin783.fits" evtable="EVENTS" scfile=/scratch/kocevski/938705/ft2_4FGL_J1249.8+3707_daily_bin783.fits sctable="SC_DATA" outfile=/scratch/kocevski/938705/ltcube_442281601_442540801_4FGL_J1249.8+3707_daily_bin783.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/938705/ft2_4FGL_J1249.8+3707_daily_bin783.fits
.....................!
real 12.95
user 12.26
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938705/ft1_filtered_4FGL_J1249.8+3707_daily_bin783.fits evtable="EVENTS" scfile=/scratch/kocevski/938705/ft2_4FGL_J1249.8+3707_daily_bin783.fits sctable="SC_DATA" expcube=/scratch/kocevski/938705/ltcube_442281601_442540801_4FGL_J1249.8+3707_daily_bin783.fits outfile=/scratch/kocevski/938705/expmap_442281601_442540801_4FGL_J1249.8+3707_daily_bin783.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/938705/ltcube_442281601_442540801_4FGL_J1249.8+3707_daily_bin783.fits
.....................!
real 195.62
user 188.75
sys 4.72

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/938705/ft1_filtered_4FGL_J1249.8+3707_daily_bin783.fits scfile=/scratch/kocevski/938705/ft2_4FGL_J1249.8+3707_daily_bin783.fits outfile=/scratch/kocevski/938705/cmap_442281601_442540801_4FGL_J1249.8+3707_daily_bin783.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/938705/ft1_filtered_4FGL_J1249.8+3707_daily_bin783.fits scfile=/scratch/kocevski/938705/ft2_4FGL_J1249.8+3707_daily_bin783.fits outfile=/scratch/kocevski/938705/cmap_HighResolution_442281601_442540801_4FGL_J1249.8+3707_daily_bin783.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0247       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.103       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.126       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16437       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .34089E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7061       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6945       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.3098       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.485       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.786       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9449       1.0000         .10000E-03   10000.    
    16 'norm      '    7.8163       1.0000         .10000E-03   10000.    
    17 'norm      '    7.9125       1.0000         .10000E-03   10000.    
    18 'norm      '    4.0284       1.0000         .10000E-03   10000.    
    19 'norm      '    11.417       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .25332E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .19734E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    50.894       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2399       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .73220       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=   5820.701     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     3105 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0296        62.449       -.47980E-06    .24144E-05
   2  Prefactor     .10000E-03    25.756        .22873E-05** at limit **
   3  norm          10.100        3.9595       -.85611E-07   -.36390E-03
   4  Prefactor     13.126        8.2459       -.50267E-08   -.57865E-04
   5  Prefactor     .16502        2.1064       -.17607E-06   -.11747E-03
   6  Prefactor     .10000E-03    1.4457        .24936E-06** at limit **
   7  Prefactor     4.6945        10.621       -.24999E-07   -.63379E-04
   8  Prefactor     8.6586        25.751        .77924E-06   -.81395E-05
   9  Prefactor     7.3152        18.691        .39078E-06   -.20495E-06
  10  Prefactor     .10000E-03    51.657       -.14219E-05** at limit **
  11  Prefactor     .10000E-03    2.8824       -.12342E-06** at limit **
  12  norm          11.486        5.7055       -.10018E-06    .23248E-03
  13  Prefactor     21.772        38.731        .13648E-05   -.17570E-04
  14  Prefactor     .10000E-03    20.799       -.21891E-05** at limit **
  15  Prefactor     2.9478        24.766        .78876E-07   -.41593E-05
  16  norm          7.8139        5.8792        .40183E-06    .39170E-04
  17  norm          7.9131        9.8433        .82864E-07   -.52903E-05
  18  norm          4.0285        5.8083        .27626E-05    .96583E-04
  19  norm          11.417        10.322       -.21349E-05    .62046E-04
  20  Prefactor     .10000E-03    1.7802       -.74290E-06** at limit **
  21  Prefactor     .10000E-03    16.812        .86484E-06** at limit **
  22  Prefactor     .10000E-03    123.08        .14120E-05** at limit **
  23  Prefactor     .10000E-03    10.954        .39007E-07** at limit **
  24  Prefactor     50.877        58.663        .19158E-05   -.24009E-04
  25  Normalizat    1.2400        .17910       -.43251E-06    .11075E-04
  26  Prefactor     .73202        .21353       -.60852E-06   -.57131E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.02965
  Prefactor  = 0.0001
  norm       = 10.0995
  Prefactor  = 13.1265
  Prefactor  = 0.165021
  Prefactor  = 0.0001
  Prefactor  = 4.69448
  Prefactor  = 8.65863
  Prefactor  = 7.31517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.4862
  Prefactor  = 21.7718
  Prefactor  = 0.0001
  Prefactor  = 2.94783
  norm       = 7.81394
  norm       = 7.91311
  norm       = 4.02853
  norm       = 11.4172
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.877
  Normalizat = 1.23996
  Prefactor  = 0.732018
 **********
 **   18 **HESSE 
 **********

 FCN=   5820.701     FROM HESSE     STATUS=OK           466 CALLS     3571 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0296        62.424        .13342E-03   -1.5107    
   2  Prefactor     .10000E-03    25.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.100        4.0144        .80389E-04   -1.5072    
   4  Prefactor     13.126        8.2563        .11056E-03   -1.4983    
   5  Prefactor     .16502        5.1722        .18744E-02   -1.5627    
   6  Prefactor     .10000E-03    4.6521        .16996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.6945        10.367        .18549E-03   -1.5275    
   8  Prefactor     8.6586        25.742        .13594E-03   -1.5119    
   9  Prefactor     7.3152        18.692        .14835E-03   -1.5167    
  10  Prefactor     .10000E-03    51.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.8872        .12632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.486        5.7086        .11821E-03   -1.5030    
  13  Prefactor     21.772        38.723        .85815E-04   -1.4774    
  14  Prefactor     .10000E-03    20.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9478        24.196        .23667E-03   -1.5365    
  16  norm          7.8139        5.7982        .14268E-03   -1.5149    
  17  norm          7.9131        9.8411        .71272E-03   -1.5145    
  18  norm          4.0285        5.8544        .74209E-03   -1.5307    
  19  norm          11.417        10.302        .11856E-03   -1.5032    
  20  Prefactor     .10000E-03    5.6524        .18950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    123.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     50.877        58.741        .56215E-04   -1.4280    
  25  Normalizat    1.2400        .21060        .21816E-03   -.85377    
  26  Prefactor     .73202        .25082        .33821E-03   -1.0229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.06719e-08
Minuit parameter uncertainties:
  1  47.5541
  2  8.52478e-05
  3  4.01452
  4  8.25705
  5  1.84734
  6  3.88077e-06
  7  10.3713
  8  25.7749
  9  18.7066
  10  0.000126553
  11  8.86806e-06
  12  5.70884
  13  38.7681
  14  9.64771e-05
  15  16.9
  16  5.79857
  17  9.84311
  18  5.85527
  19  10.3039
  20  1.71457e-05
  21  2.8962e-05
  22  0.000189642
  23  1.07121e-05
  24  58.8076
  25  0.210749
  26  0.251208
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  7.315e+00  1.871e+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:  7.320e-01  2.512e-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.240e+00  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 192.460 37.131
Photon Flux Upper Limit: 5.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938705/likelihoodResults_442281601_442540801_4FGL_J1249.8+3707_daily_bin783.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): 0
logL (Free Index) = 5820.69257663
delta logL = 0.00840372431594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5820.69055426
delta logL = 0.0104260959888

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1473       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9102       1.0000          .0000       10.000    
     3 'Normalizat'    1.2392       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73219       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=   5820.691     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      262 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1487        20.645        .16192E-03   -.92608E-04
   2  Index         1.9103        1.0298        .10446E-01   -.59860E-04
   3  Normalizat    1.2391        .20194        .21822E-03    .22132E-03
   4  Prefactor     .73220        .24917        .33816E-03    .20551E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.14865
  Index      = 1.91026
  Normalizat = 1.23914
  Prefactor  = 0.732197
 **********
 **   18 **HESSE 
 **********

 FCN=   5820.691     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1487        18.288        .64769E-05   -1.5212    
   2  Index         1.9103        .91544        .41785E-03   -.66613    
   3  Normalizat    1.2391        .20195        .43644E-04   -.85402    
   4  Prefactor     .73220        .24914        .13527E-04   -1.0228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43819e-10
Minuit parameter uncertainties:
  1  18.305
  2  0.923922
  3  0.20208
  4  0.249519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938705': 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) = 5820.6905542
delta logL = 0.0104261564602

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  6.149e+00  1.831e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.910e+00  9.239e-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:  7.322e-01  2.495e-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.239e+00  2.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/938705/cmap_HighResolution_442281601_442540801_4FGL_J1249.8+3707_daily_bin783.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.85e-03', job_status='DONE', photon_flux_upper_limit='5.24e-08', time_completed='2021-09-06 06:53:34.420432', job_id='938705', GAL2='0.73', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630936414.42', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.04e-02', ts2='0.21', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='783' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:53:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 938705: <4FGL_J1249.8+3707_daily_bin783> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin783 192.46 37.1306 442281601 442540801 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.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            785 sec.

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

