/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 109 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 = 7417
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1249.8+3707_daily_bin140
RA = 192.46, Dec = 37.1306
tmin = 275616001, tmax = 275875201
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='934467', job_status='RUN', time_executed='2021-09-06 06:28:20.035794', time_epoch_executed='1630934900.04' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='140'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934467

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934467/ft1_4FGL_J1249.8+3707_daily_bin140.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934467/ft2_4FGL_J1249.8+3707_daily_bin140.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934467/ft1_4FGL_J1249.8+3707_daily_bin140.fits outfile=/scratch/kocevski/934467/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin140.fits ra=192.46 dec=37.1306 rad=12.0 tmin=275616001.0 tmax=275875201.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 4.18
user 3.96
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934467/ft2_4FGL_J1249.8+3707_daily_bin140.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/934467/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin140.fits evtable="EVENTS" outfile="/scratch/kocevski/934467/ft1_filtered_4FGL_J1249.8+3707_daily_bin140.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.60
user 0.32
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934467/ft1_filtered_4FGL_J1249.8+3707_daily_bin140.fits evtable="EVENTS" scfile=/scratch/kocevski/934467/ft2_4FGL_J1249.8+3707_daily_bin140.fits sctable="SC_DATA" expcube=/scratch/kocevski/934467/ltcube_275616001_275875201_4FGL_J1249.8+3707_daily_bin140.fits outfile=/scratch/kocevski/934467/expmap_275616001_275875201_4FGL_J1249.8+3707_daily_bin140.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/934467/ltcube_275616001_275875201_4FGL_J1249.8+3707_daily_bin140.fits
.....................!
real 195.08
user 186.21
sys 4.83

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/934467/ft1_filtered_4FGL_J1249.8+3707_daily_bin140.fits scfile=/scratch/kocevski/934467/ft2_4FGL_J1249.8+3707_daily_bin140.fits outfile=/scratch/kocevski/934467/cmap_275616001_275875201_4FGL_J1249.8+3707_daily_bin140.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934467/ft1_filtered_4FGL_J1249.8+3707_daily_bin140.fits scfile=/scratch/kocevski/934467/ft2_4FGL_J1249.8+3707_daily_bin140.fits outfile=/scratch/kocevski/934467/cmap_HighResolution_275616001_275875201_4FGL_J1249.8+3707_daily_bin140.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.206       1.0000         .10000E-03   10000.    
     3 'norm      '    .10471E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9620       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2893       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.069       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.965       1.0000         .10000E-03   10000.    
    10 'Prefactor '    114.60       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1893       1.0000         .10000E-03   10000.    
    12 'norm      '    .15759E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.111       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0832       1.0000         .10000E-03   10000.    
    16 'norm      '    .21395E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    25.111       1.0000         .10000E-03   10000.    
    18 'norm      '    3.8897       1.0000         .10000E-03   10000.    
    19 'norm      '    .10943E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.542       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1927       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90964       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=   5993.087     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     3155 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.422       -.13146E-05** at limit **
   2  Prefactor     25.211        29.427        .32921E-06   -.99908E-05
   3  norm          .10000E-03    1.9361        .33360E-06** at limit **
   4  Prefactor     .10000E-03    3.3097       -.23893E-06** at limit **
   5  Prefactor     1.9622        1.7798        .13044E-06    .31260E-03
   6  Prefactor     4.2899        2.9850        .23859E-06    .36974E-03
   7  Prefactor     28.070        12.484        .60325E-07    .35551E-04
   8  Prefactor     .10000E-03    7.5708       -.51416E-06** at limit **
   9  Prefactor     12.965        13.589        .71575E-08   -.32939E-04
  10  Prefactor     114.56        71.915        .14393E-05    .15466E-03
  11  Prefactor     9.1900        5.9320       -.18567E-06   -.34491E-03
  12  norm          .10065E-03    3.9600       -.18962E-05** at limit **
  13  Prefactor     .10000E-03    17.680       -.40789E-07** at limit **
  14  Prefactor     11.109        12.890       -.60794E-06   -.18180E-03
  15  Prefactor     1.0941        23.419        .40351E-05   -.49429E-04
  16  norm          .10001E-03    4.6295        .13962E-05** at limit **
  17  norm          25.114        17.259        .23468E-06    .89804E-05
  18  norm          3.8916        3.0625       -.32761E-06   -.91146E-03
  19  norm          .10000E-03    5.1952        .64426E-06** at limit **
  20  Prefactor     .10000E-03    1.5380        .14606E-05** at limit **
  21  Prefactor     .10000E-03    4.4457        .89018E-06** at limit **
  22  Prefactor     29.496        61.145        .46959E-05    .84869E-04
  23  Prefactor     .10000E-03    10.449        .34779E-06** at limit **
  24  Prefactor     .10000E-03    87.267        .84026E-06** at limit **
  25  Normalizat    1.1923        .18063       -.18547E-05   -.38058E-03
  26  Prefactor     .90997        .22081        .81489E-06   -.28830E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 25.2111
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.96217
  Prefactor  = 4.28993
  Prefactor  = 28.0696
  Prefactor  = 0.0001
  Prefactor  = 12.9652
  Prefactor  = 114.559
  Prefactor  = 9.19001
  norm       = 0.000100649
  Prefactor  = 0.0001
  Prefactor  = 11.1088
  Prefactor  = 1.09411
  norm       = 0.000100008
  norm       = 25.1138
  norm       = 3.89157
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.4962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.19228
  Prefactor  = 0.909974
 **********
 **   18 **HESSE 
 **********

 FCN=   5993.087     FROM HESSE     STATUS=OK           462 CALLS     3617 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.211        29.444        .79789E-04   -1.4703    
   3  norm          .10000E-03    6.7056        .18994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.3188        .13752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.9622        1.7561        .92918E-04   -1.5428    
   6  Prefactor     4.2899        2.9069        .10281E-03   -1.5294    
   7  Prefactor     28.070        12.481        .75619E-04   -1.4648    
   8  Prefactor     .10000E-03    7.5918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.965        13.589        .11125E-03   -1.4988    
  10  Prefactor     114.56        72.574        .18791E-03   -1.3563    
  11  Prefactor     9.1900        5.9246        .13221E-03   -1.5102    
  12  norm          .10065E-03    2.9682        .41324E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.109        12.918        .12019E-03   -1.5041    
  15  Prefactor     1.0941        28.156        .23102E-02   -1.5499    
  16  norm          .10001E-03    6.9443        .25758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          25.114        17.267        .79939E-04   -1.4705    
  18  norm          3.8916        2.7793        .10506E-03   -1.5313    
  19  norm          .10000E-03    12.979        .30154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.6051        .18807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.4749        .15976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     29.496        61.245        .73713E-04   -1.4621    
  23  Prefactor     .10000E-03    10.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    87.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1923        .21346        .22677E-03   -.86842    
  26  Prefactor     .90997        .26118        .31741E-03   -.95793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72953e-09
Minuit parameter uncertainties:
  1  0.000309906
  2  29.4614
  3  2.69212e-05
  4  1.33446e-05
  5  1.75619
  6  2.90695
  7  12.4826
  8  5.15331e-05
  9  13.592
  10  72.6299
  11  5.92502
  12  0.00277563
  13  8.62327e-07
  14  12.9208
  15  11.106
  16  0.00048317
  17  17.2701
  18  2.77938
  19  0.000309052
  20  5.46032e-05
  21  6.36162e-05
  22  61.3756
  23  4.86165e-05
  24  0.000321711
  25  0.213613
  26  0.261537
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.297e+01  1.359e+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:  9.100e-01  2.615e-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.192e+00  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.82
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 1.18e-08 +/- 1.24e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.58e-05

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

Saving results to:
/scratch/kocevski/934467/likelihoodResults_275616001_275875201_4FGL_J1249.8+3707_daily_bin140.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) = 5993.01116781
delta logL = 0.0754499749892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5993.00590402
delta logL = 0.0807137602314

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6564       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0837       1.0000          .0000       10.000    
     3 'Normalizat'    1.1868       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91272       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=   5993.006     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      283 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6568        15.638        .13624E-03    .19136E-03
   2  Index         2.0839        .85393        .58747E-02    .67279E-04
   3  Normalizat    1.1868        .21030        .22720E-03    .11202E-03
   4  Prefactor     .91278        .26085        .31693E-03    .84549E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.65683
  Index      = 2.08393
  Normalizat = 1.18676
  Prefactor  = 0.91278
 **********
 **   18 **HESSE 
 **********

 FCN=   5993.006     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6568        14.104        .27248E-04   -1.5119    
   2  Index         2.0839        .77108        .23499E-03   -.62268    
   3  Normalizat    1.1868        .21028        .45441E-04   -.87013    
   4  Prefactor     .91278        .26101        .12677E-04   -.95696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89633e-11
Minuit parameter uncertainties:
  1  14.109
  2  0.775789
  3  0.21043
  4  0.261364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934467': 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) = 5993.00590378
delta logL = 0.0807140037086

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  8.657e+00  1.411e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.084e+00  7.758e-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:  9.128e-01  2.614e-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.187e+00  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.98
Ra Dec: 192.460 37.131
Photon Index (Free Index): 2.08 +/- 0.78
Photon Flux (Free Index): 1.75e-08 +/- 2.31e-08
Energy Flux (Free Index): 9.95e-06 +/- 1.30e-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/934467/cmap_HighResolution_275616001_275875201_4FGL_J1249.8+3707_daily_bin140.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-03', comment='SUCCESS', photon_flux='1.18e-08', energy_flux2='9.95e-06', photon_flux_error='1.24e-08', dlogl='8.07e-02', energy_flux='1.50e-05', photon_flux2='1.75e-08', job_status='DONE', time_completed='2021-09-06 06:41:09.537716', photon_index_error2='0.78', photon_index2='2.08', ts='2.82', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='5.06e-08', energy_flux_error2='1.30e-05', EG='1.19', time_epoch_completed='1630935669.54', return_code='0', job_id='934467', GAL2='0.91', EG2='1.19', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='2.31e-08', ts2='2.98', photon_index='1.78' WHERE bin_id='140' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:41:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 934467: <4FGL_J1249.8+3707_daily_bin140> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin140> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 06:25:59 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:26:00 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:26:00 2021
Terminated at Mon Sep  6 06:41:10 2021
Results reported at Mon Sep  6 06:41:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin140 192.46 37.1306 275616001 275875201 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 :                                   762.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

