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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin674
RA = 192.836, Dec = -2.0271
tmin = 414028801, tmax = 414288001
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='948634', job_status='RUN', time_executed='2021-09-06 07:09:35.937157', time_epoch_executed='1630937375.94' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948634

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948634/ft1_4FGL_J1251.3-0201_daily_bin674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948634/ft2_4FGL_J1251.3-0201_daily_bin674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948634/ft1_4FGL_J1251.3-0201_daily_bin674.fits outfile=/scratch/kocevski/948634/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin674.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=414028801.0 tmax=414288001.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.53
user 4.93
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948634/ft2_4FGL_J1251.3-0201_daily_bin674.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/948634/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin674.fits evtable="EVENTS" outfile="/scratch/kocevski/948634/ft1_filtered_4FGL_J1251.3-0201_daily_bin674.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 1.61
user 0.34
sys 0.21

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948634/ft1_filtered_4FGL_J1251.3-0201_daily_bin674.fits" evtable="EVENTS" scfile=/scratch/kocevski/948634/ft2_4FGL_J1251.3-0201_daily_bin674.fits sctable="SC_DATA" outfile=/scratch/kocevski/948634/ltcube_414028801_414288001_4FGL_J1251.3-0201_daily_bin674.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/948634/ft2_4FGL_J1251.3-0201_daily_bin674.fits
.....................!
real 12.37
user 11.77
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948634/ft1_filtered_4FGL_J1251.3-0201_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/948634/ft2_4FGL_J1251.3-0201_daily_bin674.fits sctable="SC_DATA" expcube=/scratch/kocevski/948634/ltcube_414028801_414288001_4FGL_J1251.3-0201_daily_bin674.fits outfile=/scratch/kocevski/948634/expmap_414028801_414288001_4FGL_J1251.3-0201_daily_bin674.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/948634/ltcube_414028801_414288001_4FGL_J1251.3-0201_daily_bin674.fits
.....................!
real 192.26
user 185.47
sys 5.73

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/948634/ft1_filtered_4FGL_J1251.3-0201_daily_bin674.fits scfile=/scratch/kocevski/948634/ft2_4FGL_J1251.3-0201_daily_bin674.fits outfile=/scratch/kocevski/948634/cmap_414028801_414288001_4FGL_J1251.3-0201_daily_bin674.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.62
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948634/ft1_filtered_4FGL_J1251.3-0201_daily_bin674.fits scfile=/scratch/kocevski/948634/ft2_4FGL_J1251.3-0201_daily_bin674.fits outfile=/scratch/kocevski/948634/cmap_HighResolution_414028801_414288001_4FGL_J1251.3-0201_daily_bin674.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.81
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/948634/ft1_filtered_4FGL_J1251.3-0201_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/948634/ft2_4FGL_J1251.3-0201_daily_bin674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/948634/Model_4FGL_J1251.3-0201_daily_bin674.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/948634/ft1_filtered_4FGL_J1251.3-0201_daily_bin674.fits.....................!
real 54.93
user 52.46
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.296       1.0000         .10000E-03   10000.    
     4 'norm      '    4.0030       1.0000         .10000E-03   10000.    
     5 'norm      '    .27954E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    154.03       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6471       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.945       1.0000         .10000E-03   10000.    
    11 'norm      '    5.2119       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.297       1.0000         .10000E-03   10000.    
    15 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.0058       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    55.788       1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.880       1.0000         .10000E-03   10000.    
    22 'norm      '    1.6272       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3842       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .63156       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=   6117.336     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2746 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.353        .66248E-06** at limit **
   2  Prefactor     .10000E-03    20.514        .78391E-06** at limit **
   3  Prefactor     13.304        24.639        .42459E-06    .11980E-03
   4  norm          4.0008        5.6217        .70380E-07    .11992E-03
   5  norm          .10000E-03    23.552        .41270E-05** at limit **
   6  norm          154.16        79.561        .20172E-06   -.10875E-05
   7  Prefactor     .10000E-03    95.302       -.75180E-06** at limit **
   8  norm          1.6480        .89759       -.16155E-06   -.22638E-04
   9  Prefactor     .10000E-03    4.6927        .12932E-05** at limit **
  10  Prefactor     17.946        14.473       -.30384E-06   -.66246E-05
  11  norm          5.2123        2.1912       -.16326E-08    .28747E-03
  12  Prefactor     .10000E-03    3.5010        .73702E-06** at limit **
  13  Prefactor     .10000E-03    10.677        .63804E-06** at limit **
  14  Prefactor     46.293        62.310        .17872E-06    .19108E-04
  15  norm          .10000E-03    8.5743        .20497E-06** at limit **
  16  norm          3.0057        .48475        .41099E-08    .99746E-03
  17  Prefactor     .10000E-03    46.791        .22156E-05** at limit **
  18  norm          .10000E-03    25.717        .30200E-05** at limit **
  19  norm          .10000E-03    3.1941        .89026E-07** at limit **
  20  Prefactor     55.784        26.556        .14780E-06    .14236E-03
  21  Prefactor     46.874        15.816       -.91328E-07    .10206E-03
  22  norm          1.6270        1.3511        .68023E-07    .27144E-03
  23  Normalizat    1.3846        .30819        .59420E-05   -.50613E-05
  24  Prefactor     .63143        .19246       -.51241E-05    .12292E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3044
  norm       = 4.00085
  norm       = 0.0001
  norm       = 154.162
  Prefactor  = 0.0001
  norm       = 1.64799
  Prefactor  = 0.0001
  Prefactor  = 17.9458
  norm       = 5.21233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.293
  norm       = 0.0001
  norm       = 3.00573
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 55.7843
  Prefactor  = 46.8744
  norm       = 1.62704
  Normalizat = 1.38455
  Prefactor  = 0.631425
 **********
 **   18 **HESSE 
 **********

 FCN=   6117.336     FROM HESSE     STATUS=OK           397 CALLS     3143 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.304        24.740        .10985E-03   -1.4978    
   4  norm          4.0008        5.6076        .15310E-03   -1.5308    
   5  norm          .10000E-03    23.385        .23548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          154.16        79.723        .16241E-03   -1.3218    
   7  Prefactor     .10000E-03    95.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6480        .89545        .46990E-04   -1.5451    
   9  Prefactor     .10000E-03    4.7867        .16697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.946        14.473        .94547E-04   -1.4860    
  11  norm          5.2123        2.1922        .71699E-04   -1.5251    
  12  Prefactor     .10000E-03    3.5322        .14340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     46.293        62.797        .58927E-04   -1.4346    
  15  norm          .10000E-03    8.5770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.0057        .49026        .19613E-04   -1.5361    
  17  Prefactor     .10000E-03    47.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    26.505        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.1952        .13652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     55.784        26.783        .53706E-04   -1.4213    
  21  Prefactor     46.874        15.841        .58562E-04   -1.4338    
  22  norm          1.6270        1.3533        .79387E-04   -1.5453    
  23  Normalizat    1.3846        .31733        .31433E-03   -.81077    
  24  Prefactor     .63143        .19856        .30049E-03   -1.0628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86134e-10
Minuit parameter uncertainties:
  1  5.88898e-05
  2  6.0127e-05
  3  24.7591
  4  5.60829
  5  5.7328e-05
  6  79.7783
  7  0.000127319
  8  0.89546
  9  6.84301e-05
  10  14.4754
  11  2.19222
  12  3.13734e-05
  13  4.8247e-05
  14  62.8864
  15  1.35634e-05
  16  0.490257
  17  0.000286051
  18  0.000361141
  19  3.9035e-06
  20  26.7891
  21  15.8419
  22  1.35332
  23  0.317783
  24  0.198777
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  1.356e-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:  6.314e-01  1.988e-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.385e+00  3.178e-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: 4.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948634/likelihoodResults_414028801_414288001_4FGL_J1251.3-0201_daily_bin674.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) = 6117.33690546
delta logL = -0.000538087891982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6117.33636738
delta logL = -8.03993316367e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9419       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3845       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63146       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=   6117.336     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      240 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    157.49        .18142E-01** at limit **
   2  alpha         1.3770        2.5876        .50000       -.19827E-07
   3  Normalizat    1.3846        .26159E-01    .31434E-03    .58410E-04
   4  Prefactor     .63142        .17661E-01    .30049E-03    .64885E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 1.37705
  Normalizat = 1.38455
  Prefactor  = 0.631423
 **********
 **   18 **HESSE 
 **********

 FCN=   6117.336     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    965.77        .23623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3770        3.8770        .50000       -.46585    
   3  Normalizat    1.3846        .74477E-01    .12573E-04   -.81076    
   4  Prefactor     .63142        .50282E-01    .12020E-04   -1.0628    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.95074e-08
Minuit parameter uncertainties:
  1  0.00312047
  2  4049.4
  3  0.0744829
  4  0.0502853
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948634': 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): 102
logL (Free Index) = 6117.33636677
delta logL = 6.08821210335e-07

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  3.120e-03  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.377e+00  4.049e+03  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:  6.314e-01  5.029e-02  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.385e+00  7.448e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/948634/cmap_HighResolution_414028801_414288001_4FGL_J1251.3-0201_daily_bin674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.90e-05', job_status='DONE', photon_flux_upper_limit='4.21e-08', time_completed='2021-09-06 07:21:16.621047', job_id='948634', GAL2='0.63', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1630938076.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='6.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='674' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:21:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 948634: <4FGL_J1251.3-0201_daily_bin674> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin674> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 07:06:16 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:06:17 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:17 2021
Terminated at Mon Sep  6 07:21:17 2021
Results reported at Mon Sep  6 07:21:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin674 192.836 -2.0271 414028801 414288001 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 :                                   687.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             251.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

