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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1487
RA = 192.836, Dec = -2.0271
tmin = 624758401, tmax = 625017601
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='952114', job_status='RUN', time_executed='2021-09-06 07:16:10.405945', time_epoch_executed='1630937770.41' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1487'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952114

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952114/ft1_4FGL_J1251.3-0201_daily_bin1487.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952114/ft2_4FGL_J1251.3-0201_daily_bin1487.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952114/ft1_4FGL_J1251.3-0201_daily_bin1487.fits outfile=/scratch/kocevski/952114/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1487.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=624758401.0 tmax=625017601.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.77
user 3.26
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/952114/ft1_filtered_4FGL_J1251.3-0201_daily_bin1487.fits" evtable="EVENTS" scfile=/scratch/kocevski/952114/ft2_4FGL_J1251.3-0201_daily_bin1487.fits sctable="SC_DATA" outfile=/scratch/kocevski/952114/ltcube_624758401_625017601_4FGL_J1251.3-0201_daily_bin1487.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/952114/ft2_4FGL_J1251.3-0201_daily_bin1487.fits
.....................!
real 14.30
user 12.84
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952114/ft1_filtered_4FGL_J1251.3-0201_daily_bin1487.fits evtable="EVENTS" scfile=/scratch/kocevski/952114/ft2_4FGL_J1251.3-0201_daily_bin1487.fits sctable="SC_DATA" expcube=/scratch/kocevski/952114/ltcube_624758401_625017601_4FGL_J1251.3-0201_daily_bin1487.fits outfile=/scratch/kocevski/952114/expmap_624758401_625017601_4FGL_J1251.3-0201_daily_bin1487.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/952114/ltcube_624758401_625017601_4FGL_J1251.3-0201_daily_bin1487.fits
.....................!
real 190.94
user 184.10
sys 4.49

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/952114/ft1_filtered_4FGL_J1251.3-0201_daily_bin1487.fits scfile=/scratch/kocevski/952114/ft2_4FGL_J1251.3-0201_daily_bin1487.fits outfile=/scratch/kocevski/952114/cmap_624758401_625017601_4FGL_J1251.3-0201_daily_bin1487.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/952114/ft1_filtered_4FGL_J1251.3-0201_daily_bin1487.fits scfile=/scratch/kocevski/952114/ft2_4FGL_J1251.3-0201_daily_bin1487.fits outfile=/scratch/kocevski/952114/cmap_HighResolution_624758401_625017601_4FGL_J1251.3-0201_daily_bin1487.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/952114/ft1_filtered_4FGL_J1251.3-0201_daily_bin1487.fits evtable="EVENTS" scfile=/scratch/kocevski/952114/ft2_4FGL_J1251.3-0201_daily_bin1487.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/952114/Model_4FGL_J1251.3-0201_daily_bin1487.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/952114/ft1_filtered_4FGL_J1251.3-0201_daily_bin1487.fits.....................!
real 55.81
user 54.45
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.989       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10830E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .11287E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10200E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.2071       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.442       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.883       1.0000         .10000E-03   10000.    
    11 'norm      '    3.7441       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.5677       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    21.964       1.0000         .10000E-03   10000.    
    19 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.732       1.0000         .10000E-03   10000.    
    22 'norm      '    4.9986       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3085       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0601       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=   6803.724     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2348 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.977        23.973        .95287E-06    .22257E-04
   2  Prefactor     .10000E-03    16.082       -.26817E-05** at limit **
   3  Prefactor     .10000E-03    23.251       -.11986E-05** at limit **
   4  norm          .10000E-03    2.0764       -.59828E-07** at limit **
   5  norm          .10001E-03    2.0664       -.22657E-06** at limit **
   6  norm          .10000E-03    37.338        .99163E-05** at limit **
   7  Prefactor     .10000E-03    129.64        .76628E-04** at limit **
   8  norm          2.2073        .79079       -.12901E-07    .41805E-04
   9  Prefactor     15.440        12.207        .86864E-08    .72163E-05
  10  Prefactor     12.885        12.722       -.11147E-06   -.19931E-04
  11  norm          3.7444        1.7532       -.10068E-07   -.99981E-04
  12  Prefactor     .10000E-03    4.4604       -.34955E-07** at limit **
  13  Prefactor     .10000E-03    16.806        .35998E-05** at limit **
  14  Prefactor     .10000E-03    54.611       -.18838E-04** at limit **
  15  norm          .10000E-03    7.8702       -.25676E-06** at limit **
  16  norm          1.5677        .34315        .23402E-07    .33508E-02
  17  Prefactor     .10000E-03    186.57       -.91045E-04** at limit **
  18  norm          21.960        12.984        .32650E-06    .28765E-03
  19  norm          .10000E-03    6.4671       -.94873E-07** at limit **
  20  Prefactor     .10000E-03    7.8905        .24307E-06** at limit **
  21  Prefactor     21.734        13.968       -.42409E-06   -.44257E-03
  22  norm          4.9991        2.2133       -.30202E-07   -.95690E-04
  23  Normalizat    1.3082        .24973        .13398E-06    .17238E-03
  24  Prefactor     1.0602        .17415        .13876E-06    .18777E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.977
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.20728
  Prefactor  = 15.4398
  Prefactor  = 12.8846
  norm       = 3.74443
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.56771
  Prefactor  = 0.000100001
  norm       = 21.9599
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.734
  norm       = 4.99907
  Normalizat = 1.3082
  Prefactor  = 1.06017
 **********
 **   18 **HESSE 
 **********

 FCN=   6803.724     FROM HESSE     STATUS=OK           393 CALLS     2741 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.977        23.837        .73163E-04   -1.4612    
   2  Prefactor     .10000E-03    16.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.6256        .22687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    23.222        .21310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    37.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    129.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.2073        .75324        .38475E-04   -1.5411    
   9  Prefactor     15.440        12.188        .10192E-03   -1.4922    
  10  Prefactor     12.885        12.723        .11160E-03   -1.4990    
  11  norm          3.7444        1.7511        .71558E-04   -1.5321    
  12  Prefactor     .10000E-03    4.4863        .17008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    54.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.8724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.5677        .34339        .21502E-04   -1.5458    
  17  Prefactor     .10000E-03    187.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          21.960        12.984        .85466E-04   -1.4770    
  19  norm          .10000E-03    6.4987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.9070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.734        13.977        .42961E-03   -1.4775    
  22  norm          4.9991        2.2117        .78208E-04   -1.5261    
  23  Normalizat    1.3082        .29612        .32962E-03   -.83322    
  24  Prefactor     1.0602        .20738        .26217E-03   -.90750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.27362e-10
Minuit parameter uncertainties:
  1  23.8441
  2  1.32364e-06
  3  1.93878e-05
  4  1.71941e-05
  5  0.000729374
  6  9.92707e-06
  7  5.97158e-05
  8  0.75324
  9  12.1899
  10  12.7258
  11  1.75108
  12  1.20583e-07
  13  2.47445e-06
  14  1.24154e-05
  15  3.26013e-07
  16  0.343395
  17  0.000961153
  18  12.9858
  19  1.30506e-06
  20  2.84475e-08
  21  13.9789
  22  2.21175
  23  0.296508
  24  0.207534
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  3.260e-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:  1.060e+00  2.075e-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.308e+00  2.965e-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: 3.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/952114/likelihoodResults_624758401_625017601_4FGL_J1251.3-0201_daily_bin1487.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) = 6803.72494089
delta logL = -0.000594441773501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6803.72434644
delta logL = 6.81302481098e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9450       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3082       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0602       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=   6803.724     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      246 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1632.6        .18142E-02** at limit **
   2  alpha         1.7244        3.4736        .17005       -.22062E-08
   3  Normalizat    1.3082        .15622        .32962E-03    .60357E-05
   4  Prefactor     1.0602        .11396        .26217E-03    .88461E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.72443
  Normalizat = 1.3082
  Prefactor  = 1.06017
 **********
 **   18 **HESSE 
 **********

 FCN=   6803.724     FROM HESSE     STATUS=OK            23 CALLS      269 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.0804        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7244        3.3482        .68020E-02   -.31543    
   3  Normalizat    1.3082        .28148        .13185E-04   -.83322    
   4  Prefactor     1.0602        .20539        .10487E-04   -.90750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.76811e-12
Minuit parameter uncertainties:
  1  4.44296e-05
  2  391.597
  3  0.281812
  4  0.20554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952114': 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) = 6803.72434628
delta logL = 1.62707692652e-07

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  4.443e-05  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.724e+00  3.916e+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:  1.060e+00  2.055e-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.308e+00  2.818e-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/952114/cmap_HighResolution_624758401_625017601_4FGL_J1251.3-0201_daily_bin1487.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.58e-05', job_status='DONE', photon_flux_upper_limit='3.73e-08', time_completed='2021-09-06 07:28:10.306805', job_id='952114', GAL2='1.06', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630938490.31', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.63e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1487' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:28:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 952114: <4FGL_J1251.3-0201_daily_bin1487> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin1487> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 07:15:52 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:15:54 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:15:54 2021
Terminated at Mon Sep  6 07:28:11 2021
Results reported at Mon Sep  6 07:28:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1487 192.836 -2.0271 624758401 625017601 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 :                                 1256 MB
    Average Memory :                             373.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            739 sec.

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

