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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin315
RA = 192.836, Dec = -2.0271
tmin = 320976001, tmax = 321235201
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='945407', job_status='RUN', time_executed='2021-09-06 06:58:25.657305', time_epoch_executed='1630936705.66' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945407

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945407/ft1_4FGL_J1251.3-0201_daily_bin315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945407/ft2_4FGL_J1251.3-0201_daily_bin315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945407/ft1_4FGL_J1251.3-0201_daily_bin315.fits outfile=/scratch/kocevski/945407/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin315.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=320976001.0 tmax=321235201.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.50
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/945407/ft1_filtered_4FGL_J1251.3-0201_daily_bin315.fits" evtable="EVENTS" scfile=/scratch/kocevski/945407/ft2_4FGL_J1251.3-0201_daily_bin315.fits sctable="SC_DATA" outfile=/scratch/kocevski/945407/ltcube_320976001_321235201_4FGL_J1251.3-0201_daily_bin315.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/945407/ft2_4FGL_J1251.3-0201_daily_bin315.fits
.....................!
real 11.83
user 11.44
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945407/ft1_filtered_4FGL_J1251.3-0201_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/945407/ft2_4FGL_J1251.3-0201_daily_bin315.fits sctable="SC_DATA" expcube=/scratch/kocevski/945407/ltcube_320976001_321235201_4FGL_J1251.3-0201_daily_bin315.fits outfile=/scratch/kocevski/945407/expmap_320976001_321235201_4FGL_J1251.3-0201_daily_bin315.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/945407/ltcube_320976001_321235201_4FGL_J1251.3-0201_daily_bin315.fits
.....................!
real 190.74
user 186.09
sys 4.27

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/945407/ft1_filtered_4FGL_J1251.3-0201_daily_bin315.fits scfile=/scratch/kocevski/945407/ft2_4FGL_J1251.3-0201_daily_bin315.fits outfile=/scratch/kocevski/945407/cmap_320976001_321235201_4FGL_J1251.3-0201_daily_bin315.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.85
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/945407/ft1_filtered_4FGL_J1251.3-0201_daily_bin315.fits scfile=/scratch/kocevski/945407/ft2_4FGL_J1251.3-0201_daily_bin315.fits outfile=/scratch/kocevski/945407/cmap_HighResolution_320976001_321235201_4FGL_J1251.3-0201_daily_bin315.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.58
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/945407/ft1_filtered_4FGL_J1251.3-0201_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/945407/ft2_4FGL_J1251.3-0201_daily_bin315.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/945407/Model_4FGL_J1251.3-0201_daily_bin315.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/945407/ft1_filtered_4FGL_J1251.3-0201_daily_bin315.fits.....................!
real 59.88
user 57.48
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/945407/ft1_filtered_4FGL_J1251.3-0201_daily_bin315.fits', '/scratch/kocevski/945407/ft2_4FGL_J1251.3-0201_daily_bin315.fits', expMap='/scratch/kocevski/945407/expmap_320976001_321235201_4FGL_J1251.3-0201_daily_bin315.fits', expCube='/scratch/kocevski/945407/ltcube_320976001_321235201_4FGL_J1251.3-0201_daily_bin315.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/945407/Model_4FGL_J1251.3-0201_daily_bin315.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/945407/ft1_filtered_4FGL_J1251.3-0201_daily_bin315.fits
Spacecraft file(s): /scratch/kocevski/945407/ft2_4FGL_J1251.3-0201_daily_bin315.fits
Exposure map: /scratch/kocevski/945407/expmap_320976001_321235201_4FGL_J1251.3-0201_daily_bin315.fits
Exposure cube: /scratch/kocevski/945407/ltcube_320976001_321235201_4FGL_J1251.3-0201_daily_bin315.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/945407/Model_4FGL_J1251.3-0201_daily_bin315.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) = 7338.66539713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.745       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.8747       1.0000         .10000E-03   10000.    
     6 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    62.980       1.0000         .10000E-03   10000.    
     8 'norm      '    .49014       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7200       1.0000         .10000E-03   10000.    
    11 'norm      '    4.2979       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0830       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16221E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2077       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.5736       1.0000         .10000E-03   10000.    
    19 'norm      '    4.2155       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.4587       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.9528       1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1876       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .80360       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=   7338.641     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2723 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.745        15.565        .25040E-06   -.97838E-05
   2  Prefactor     .10000E-03    37.450        .19014E-05** at limit **
   3  Prefactor     .10000E-03    4.0687        .30726E-07** at limit **
   4  norm          .10000E-03    .79576        .20786E-07** at limit **
   5  norm          6.8750        3.2271        .11945E-06   -.11211E-03
   6  norm          .10000E-03    16.016        .20593E-06** at limit **
   7  Prefactor     62.988        112.18        .82197E-06    .12084E-04
   8  norm          .49026        .40047        .63786E-07   -.32059E-05
   9  Prefactor     .10000E-03    2.3955        .54357E-08** at limit **
  10  Prefactor     6.7200        7.7587        .30625E-06   -.15820E-04
  11  norm          4.2980        1.7962        .50534E-07   -.99505E-04
  12  Prefactor     1.0830        3.4367        .11924E-05   -.15779E-04
  13  Prefactor     .10000E-03    14.422       -.10763E-06** at limit **
  14  Prefactor     .10001E-03    124.90       -.69812E-05** at limit **
  15  norm          .10000E-03    4.7382       -.56436E-08** at limit **
  16  norm          1.2073        .24163       -.40537E-07    .92562E-03
  17  Prefactor     .10000E-03    30.577       -.10720E-05** at limit **
  18  norm          8.5750        7.8454       -.80254E-07   -.81854E-06
  19  norm          4.2159        5.4220        .10176E-06    .11509E-03
  20  Prefactor     5.4590        14.897        .65579E-05   -.13680E-03
  21  Prefactor     5.9531        8.2613        .44629E-06   -.71986E-05
  22  norm          .10000E-03    .39502        .59278E-09** at limit **
  23  Normalizat    1.1876        .19518       -.12191E-05    .21061E-04
  24  Prefactor     .80349        .13235       -.23087E-06   -.49052E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.745
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.87503
  norm       = 0.0001
  Prefactor  = 62.9875
  norm       = 0.490261
  Prefactor  = 0.0001
  Prefactor  = 6.72004
  norm       = 4.29798
  Prefactor  = 1.083
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  norm       = 0.0001
  norm       = 1.20725
  Prefactor  = 0.000100003
  norm       = 8.57498
  norm       = 4.2159
  Prefactor  = 5.459
  Prefactor  = 5.95313
  norm       = 0.0001
  Normalizat = 1.18762
  Prefactor  = 0.803494
 **********
 **   18 **HESSE 
 **********

 FCN=   7338.641     FROM HESSE     STATUS=OK           403 CALLS     3126 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.745        15.578        .11689E-03   -1.5022    
   2  Prefactor     .10000E-03    38.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.1007        .16871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .81007        .74589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.8750        3.2114        .98325E-04   -1.5184    
   6  norm          .10000E-03    16.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     62.988        112.20        .50564E-04   -1.4119    
   8  norm          .49026        .37992        .45266E-03   -1.5568    
   9  Prefactor     .10000E-03    2.4217        .12948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.7200        7.7588        .15479E-03   -1.5189    
  11  norm          4.2980        1.7948        .69907E-04   -1.5293    
  12  Prefactor     1.0830        3.3817        .27576E-03   -1.5500    
  13  Prefactor     .10000E-03    14.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    130.31        .40816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.7387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2073        .24213        .17877E-04   -1.5488    
  17  Prefactor     .10000E-03    30.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.5750        7.8404        .13690E-03   -1.5122    
  19  norm          4.2159        5.4207        .19627E-03   -1.5297    
  20  Prefactor     5.4590        14.970        .85991E-03   -1.5241    
  21  Prefactor     5.9531        8.2903        .16458E-03   -1.5220    
  22  norm          .10000E-03    .55745        .10447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1876        .23100        .26980E-03   -.86986    
  24  Prefactor     .80349        .15678        .23271E-03   -.99600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11139e-09
Minuit parameter uncertainties:
  1  15.5835
  2  0.000876658
  3  3.5714e-06
  4  1.07037e-06
  5  3.21148
  6  8.09873e-05
  7  112.579
  8  0.379921
  9  1.10648e-06
  10  7.75996
  11  1.7948
  12  3.3823
  13  4.01313e-05
  14  0.00279962
  15  3.63366e-07
  16  0.242131
  17  0.000582337
  18  7.84139
  19  5.42136
  20  14.9803
  21  8.29188
  22  1.87732e-07
  23  0.231196
  24  0.156865
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  3.634e-07  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:  8.035e-01  1.569e-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.188e+00  2.312e-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: 2.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.64e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/945407/likelihoodResults_320976001_321235201_4FGL_J1251.3-0201_daily_bin315.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): 102
logL (Free Index) = 7338.64212468
delta logL = -0.000963619649156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7338.64116104
delta logL = 1.98297129828e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9419       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1876       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80351       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7338.641     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      236 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    177.34        .18142E-01** at limit **
   2  alpha         1.5792        3.8760        .17011       -.93562E-08
   3  Normalizat    1.1876        .28528E-01    .26980E-03   -.28569E-04
   4  Prefactor     .80349        .20772E-01    .23271E-03   -.39668E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.57917
  Normalizat = 1.18762
  Prefactor  = 0.803494
 **********
 **   18 **HESSE 
 **********

 FCN=   7338.641     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.1051        .18875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5792        2.5952        .68046E-02   -.37722    
   3  Normalizat    1.1876        .21246        .10792E-04   -.86986    
   4  Prefactor     .80349        .15473        .93086E-05   -.99600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88063e-12
Minuit parameter uncertainties:
  1  5.11036e-06
  2  297.426
  3  0.212614
  4  0.154812
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945407': 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) = 7338.64116033
delta logL = 7.2848979471e-07

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  5.110e-06  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.579e+00  2.974e+02  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:  8.035e-01  1.548e-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.188e+00  2.126e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/945407/cmap_HighResolution_320976001_321235201_4FGL_J1251.3-0201_daily_bin315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-05', job_status='DONE', photon_flux_upper_limit='2.37e-08', time_completed='2021-09-06 07:11:11.942168', job_id='945407', GAL2='0.80', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630937471.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='7.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='315' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:11:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 945407: <4FGL_J1251.3-0201_daily_bin315> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin315> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 06:55:49 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:55:50 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:55:50 2021
Terminated at Mon Sep  6 07:11:12 2021
Results reported at Mon Sep  6 07:11:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin315 192.836 -2.0271 320976001 321235201 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 :                                   753.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            923 sec.

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

