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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin745
RA = 192.836, Dec = -2.0271
tmin = 432432001, tmax = 432691201
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='948743', job_status='RUN', time_executed='2021-09-06 07:06:53.239261', time_epoch_executed='1630937213.24' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948743

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948743/ft1_4FGL_J1251.3-0201_daily_bin745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948743/ft2_4FGL_J1251.3-0201_daily_bin745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948743/ft1_4FGL_J1251.3-0201_daily_bin745.fits outfile=/scratch/kocevski/948743/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin745.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=432432001.0 tmax=432691201.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 5.44
user 4.95
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/948743/ft2_4FGL_J1251.3-0201_daily_bin745.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948743/ft2_4FGL_J1251.3-0201_daily_bin745.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/948743/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin745.fits evtable="EVENTS" outfile="/scratch/kocevski/948743/ft1_filtered_4FGL_J1251.3-0201_daily_bin745.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948743/ft1_filtered_4FGL_J1251.3-0201_daily_bin745.fits" evtable="EVENTS" scfile=/scratch/kocevski/948743/ft2_4FGL_J1251.3-0201_daily_bin745.fits sctable="SC_DATA" outfile=/scratch/kocevski/948743/ltcube_432432001_432691201_4FGL_J1251.3-0201_daily_bin745.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/948743/ft2_4FGL_J1251.3-0201_daily_bin745.fits
.....................!
real 12.07
user 11.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948743/ft1_filtered_4FGL_J1251.3-0201_daily_bin745.fits evtable="EVENTS" scfile=/scratch/kocevski/948743/ft2_4FGL_J1251.3-0201_daily_bin745.fits sctable="SC_DATA" expcube=/scratch/kocevski/948743/ltcube_432432001_432691201_4FGL_J1251.3-0201_daily_bin745.fits outfile=/scratch/kocevski/948743/expmap_432432001_432691201_4FGL_J1251.3-0201_daily_bin745.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/948743/ltcube_432432001_432691201_4FGL_J1251.3-0201_daily_bin745.fits
.....................!
real 191.03
user 185.79
sys 4.67

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 179 point sources and 0 extended sources

Setting source of interest to:
4FGL J1251.3-0201 @ 192.836 -2.0271

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/948743/ft1_filtered_4FGL_J1251.3-0201_daily_bin745.fits scfile=/scratch/kocevski/948743/ft2_4FGL_J1251.3-0201_daily_bin745.fits outfile=/scratch/kocevski/948743/cmap_432432001_432691201_4FGL_J1251.3-0201_daily_bin745.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.836 yref=-2.0271 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.73
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948743/ft1_filtered_4FGL_J1251.3-0201_daily_bin745.fits scfile=/scratch/kocevski/948743/ft2_4FGL_J1251.3-0201_daily_bin745.fits outfile=/scratch/kocevski/948743/cmap_HighResolution_432432001_432691201_4FGL_J1251.3-0201_daily_bin745.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.836 yref=-2.0271 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.71
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/948743/ft1_filtered_4FGL_J1251.3-0201_daily_bin745.fits evtable="EVENTS" scfile=/scratch/kocevski/948743/ft2_4FGL_J1251.3-0201_daily_bin745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/948743/Model_4FGL_J1251.3-0201_daily_bin745.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/948743/ft1_filtered_4FGL_J1251.3-0201_daily_bin745.fits.....................!
real 58.58
user 56.87
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/948743/ft1_filtered_4FGL_J1251.3-0201_daily_bin745.fits', '/scratch/kocevski/948743/ft2_4FGL_J1251.3-0201_daily_bin745.fits', expMap='/scratch/kocevski/948743/expmap_432432001_432691201_4FGL_J1251.3-0201_daily_bin745.fits', expCube='/scratch/kocevski/948743/ltcube_432432001_432691201_4FGL_J1251.3-0201_daily_bin745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/948743/Model_4FGL_J1251.3-0201_daily_bin745.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1251.3-0201'

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  5.916e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.951e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  1.558e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.195e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/948743/ft1_filtered_4FGL_J1251.3-0201_daily_bin745.fits
Spacecraft file(s): /scratch/kocevski/948743/ft2_4FGL_J1251.3-0201_daily_bin745.fits
Exposure map: /scratch/kocevski/948743/expmap_432432001_432691201_4FGL_J1251.3-0201_daily_bin745.fits
Exposure cube: /scratch/kocevski/948743/ltcube_432432001_432691201_4FGL_J1251.3-0201_daily_bin745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/948743/Model_4FGL_J1251.3-0201_daily_bin745.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) = 6775.57049025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.708       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.7836       1.0000         .10000E-03   10000.    
     6 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.0600       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.421       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3812       1.0000         .10000E-03   10000.    
    13 'Prefactor '    81.933       1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.930       1.0000         .10000E-03   10000.    
    15 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.0475       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10721E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.501       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2247       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1620       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6775.555     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2733 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.709        36.330        .16615E-07   -.61449E-05
   2  Prefactor     .10000E-03    13.319        .11003E-06** at limit **
   3  Prefactor     .10000E-03    9.8101       -.13711E-06** at limit **
   4  norm          .10000E-03    1.6899       -.78823E-07** at limit **
   5  norm          5.7836        5.5835        .13470E-06   -.30011E-03
   6  norm          .10000E-03    38.359        .93179E-06** at limit **
   7  Prefactor     .10000E-03    198.36        .13809E-04** at limit **
   8  norm          4.0601        1.1601       -.29870E-06   -.68021E-04
   9  Prefactor     22.427        20.211        .13148E-04    .33645E-04
  10  Prefactor     .10000E-03    6.3847       -.21426E-07** at limit **
  11  norm          .10000E-03    .60953        .13219E-07** at limit **
  12  Prefactor     2.3620        8.8969       -.51576E-05   -.37298E-03
  13  Prefactor     81.950        54.938        .40042E-05    .10035E-04
  14  Prefactor     35.917        53.029       -.39351E-05    .11103E-04
  15  norm          .10000E-03    31.463        .74958E-08** at limit **
  16  norm          3.0479        .51097        .46662E-07    .24480E-03
  17  Prefactor     .10000E-03    395.35       -.28144E-04** at limit **
  18  norm          .10000E-03    5.6354       -.19199E-07** at limit **
  19  norm          .10000E-03    4.6160       -.10505E-06** at limit **
  20  Prefactor     .10000E-03    6.3887       -.10869E-07** at limit **
  21  Prefactor     13.501        11.234       -.11042E-05   -.44823E-04
  22  norm          .10000E-03    .30669        .59476E-08** at limit **
  23  Normalizat    1.2247        .27843       -.17302E-05    .29808E-04
  24  Prefactor     1.1621        .18463       -.66448E-06    .30267E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.7091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.78363
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.06009
  Prefactor  = 22.4273
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.36201
  Prefactor  = 81.9496
  Prefactor  = 35.9167
  norm       = 0.0001
  norm       = 3.04785
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5011
  norm       = 0.0001
  Normalizat = 1.22469
  Prefactor  = 1.16206
 **********
 **   18 **HESSE 
 **********

 FCN=   6775.555     FROM HESSE     STATUS=OK           391 CALLS     3124 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.709        36.406        .66148E-04   -1.4495    
   2  Prefactor     .10000E-03    13.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.8302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.7012        .10445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.7836        5.5773        .16701E-03   -1.5227    
   6  norm          .10000E-03    38.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    198.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.0601        1.1593        .20011E-04   -1.5305    
   9  Prefactor     22.427        20.203        .84593E-04   -1.4760    
  10  Prefactor     .10000E-03    6.4110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .61692        .62721E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3620        8.9974        .26546E-03   -1.5401    
  13  Prefactor     81.950        54.973        .44374E-04   -1.3895    
  14  Prefactor     35.917        53.334        .66858E-04   -1.4509    
  15  norm          .10000E-03    31.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.0479        .51646        .21754E-04   -1.5359    
  17  Prefactor     .10000E-03    400.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.6597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.6270        .17271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.3990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.501        11.259        .10901E-03   -1.4973    
  22  norm          .10000E-03    .30867        .44505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2247        .33580        .37050E-03   -.85843    
  24  Prefactor     1.1621        .22242        .26547E-03   -.87507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.90056e-10
Minuit parameter uncertainties:
  1  36.4279
  2  3.15479e-06
  3  3.68123e-05
  4  1.54715e-05
  5  5.57779
  6  2.46591e-05
  7  6.75872e-05
  8  1.15935
  9  20.2089
  10  7.64401e-06
  11  6.1303e-07
  12  9.00254
  13  55.0076
  14  53.4047
  15  1.37453e-05
  16  0.51646
  17  0.00143893
  18  1.15401e-05
  19  5.93152e-06
  20  6.50135e-06
  21  11.2606
  22  9.4577e-07
  23  0.336391
  24  0.222599
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  1.375e-05  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.951e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  1.558e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.195e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  1.162e+00  2.226e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.225e+00  3.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.836 -2.027
Photon Flux Upper Limit: 6.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.49e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948743/likelihoodResults_432432001_432691201_4FGL_J1251.3-0201_daily_bin745.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) = 6775.55477301
delta logL = -0.000150449820467

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6775.55462265
delta logL = -9.61890691542e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9306       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2247       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1621       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6775.555     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      205 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    38.112        .90712E-02** at limit **
   2  alpha         1.9778        3.4397        .42589       -.75077E-05
   3  Normalizat    1.2247        .25976        .83682E-01    .71108E-04
   4  Prefactor     1.1621        .18289        .60031E-01    .74378E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 1.9778
  Normalizat = 1.2247
  Prefactor  = 1.16206
 **********
 **   18 **HESSE 
 **********

 FCN=   6775.555     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    33.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9778        3.4105        .50000       -.21043    
   3  Normalizat    1.2247        .30949        .37050E-03   -.85843    
   4  Prefactor     1.1621        .21820        .26547E-03   -.87507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49232e-10
Minuit parameter uncertainties:
  1  0.000573882
  2  2.45563
  3  0.309956
  4  0.218374
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948743': 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) = 6775.55462247
delta logL = 8.33706508274e-08

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  5.739e-04  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.978e+00  2.456e+00  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  1.558e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.195e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  1.162e+00  2.184e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.225e+00  3.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.836 -2.027

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/948743/cmap_HighResolution_432432001_432691201_4FGL_J1251.3-0201_daily_bin745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.49e-05', job_status='DONE', photon_flux_upper_limit='6.50e-08', time_completed='2021-09-06 07:18:47.101928', job_id='948743', GAL2='1.16', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630937927.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='8.34e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='745' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:18:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 948743: <4FGL_J1251.3-0201_daily_bin745> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin745> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 07:06:24 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:06:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 07:06:25 2021
Terminated at Mon Sep  6 07:18:47 2021
Results reported at Mon Sep  6 07:18:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin745 192.836 -2.0271 432432001 432691201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1251.3-0201 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   710.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             374.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            743 sec.

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

