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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1030
RA = 192.836, Dec = -2.0271
tmin = 506304001, tmax = 506563201
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='950443', job_status='RUN', time_executed='2021-09-06 07:12:33.644662', time_epoch_executed='1630937553.64' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1030'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950443

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950443/ft1_4FGL_J1251.3-0201_daily_bin1030.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950443/ft2_4FGL_J1251.3-0201_daily_bin1030.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950443/ft1_4FGL_J1251.3-0201_daily_bin1030.fits outfile=/scratch/kocevski/950443/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1030.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=506304001.0 tmax=506563201.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.73
user 3.32
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950443/ft1_filtered_4FGL_J1251.3-0201_daily_bin1030.fits" evtable="EVENTS" scfile=/scratch/kocevski/950443/ft2_4FGL_J1251.3-0201_daily_bin1030.fits sctable="SC_DATA" outfile=/scratch/kocevski/950443/ltcube_506304001_506563201_4FGL_J1251.3-0201_daily_bin1030.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/950443/ft2_4FGL_J1251.3-0201_daily_bin1030.fits
.....................!
real 12.44
user 11.98
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950443/ft1_filtered_4FGL_J1251.3-0201_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/950443/ft2_4FGL_J1251.3-0201_daily_bin1030.fits sctable="SC_DATA" expcube=/scratch/kocevski/950443/ltcube_506304001_506563201_4FGL_J1251.3-0201_daily_bin1030.fits outfile=/scratch/kocevski/950443/expmap_506304001_506563201_4FGL_J1251.3-0201_daily_bin1030.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/950443/ltcube_506304001_506563201_4FGL_J1251.3-0201_daily_bin1030.fits
.....................!
real 191.06
user 185.08
sys 5.35

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/950443/ft1_filtered_4FGL_J1251.3-0201_daily_bin1030.fits scfile=/scratch/kocevski/950443/ft2_4FGL_J1251.3-0201_daily_bin1030.fits outfile=/scratch/kocevski/950443/cmap_506304001_506563201_4FGL_J1251.3-0201_daily_bin1030.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.64
user 0.37
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950443/ft1_filtered_4FGL_J1251.3-0201_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/950443/ft2_4FGL_J1251.3-0201_daily_bin1030.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950443/Model_4FGL_J1251.3-0201_daily_bin1030.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/950443/ft1_filtered_4FGL_J1251.3-0201_daily_bin1030.fits.....................!
real 59.36
user 57.21
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3662       1.0000         .10000E-03   10000.    
     4 'norm      '    .11523E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    38.202       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.9343       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.1718       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2204       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.724       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.6781       1.0000         .10000E-03   10000.    
    15 'norm      '    55.736       1.0000         .10000E-03   10000.    
    16 'norm      '    3.6095       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    60.297       1.0000         .10000E-03   10000.    
    19 'norm      '    2.7012       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.2920       1.0000         .10000E-03   10000.    
    22 'norm      '    .18399       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.8988       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .68974       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=   7154.782     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2725 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.318        .35585E-06** at limit **
   2  Prefactor     .10000E-03    12.363       -.14376E-06** at limit **
   3  Prefactor     3.4144        15.666       -.34172E-05   -.33465E-03
   4  norm          .10000E-03    2.0681        .15625E-05** at limit **
   5  norm          .10000E-03    3.3455       -.56746E-07** at limit **
   6  norm          38.199        42.601        .15408E-06   -.46577E-04
   7  Prefactor     .10000E-03    41.722        .50521E-06** at limit **
   8  norm          3.9341        .94025        .26182E-07   -.97048E-03
   9  Prefactor     .10000E-03    2.9897       -.81688E-08** at limit **
  10  Prefactor     8.1719        11.888        .93849E-07    .18013E-04
  11  norm          1.2204        1.7010        .29763E-07   -.12625E-03
  12  Prefactor     .10000E-03    5.1659       -.20013E-06** at limit **
  13  Prefactor     27.722        48.595        .20042E-06   -.31544E-04
  14  Prefactor     6.6682        204.38        .44596E-06   -.27090E-04
  15  norm          55.728        38.642        .25608E-06   -.16938E-03
  16  norm          3.6094        .51795        .85769E-08    .39454E-03
  17  Prefactor     .10000E-03    38.925       -.61522E-06** at limit **
  18  norm          60.294        20.551       -.33410E-07    .13147E-04
  19  norm          2.7016        11.650        .42423E-05   -.30631E-03
  20  Prefactor     .10000E-03    15.633       -.80922E-07** at limit **
  21  Prefactor     5.2920        9.9041       -.62320E-07    .13036E-06
  22  norm          .18298        .91305        .86511E-07   -.20048E-03
  23  Normalizat    1.8988        .26376        .25636E-06   -.22276E-03
  24  Prefactor     .68975        .18126       -.74374E-06   -.18871E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.41438
  norm       = 0.0001
  norm       = 0.0001
  norm       = 38.1993
  Prefactor  = 0.000100002
  norm       = 3.9341
  Prefactor  = 0.0001
  Prefactor  = 8.17188
  norm       = 1.22036
  Prefactor  = 0.0001
  Prefactor  = 27.7215
  Prefactor  = 6.66819
  norm       = 55.7279
  norm       = 3.60939
  Prefactor  = 0.000100003
  norm       = 60.2943
  norm       = 2.70161
  Prefactor  = 0.0001
  Prefactor  = 5.29202
  norm       = 0.182978
  Normalizat = 1.89879
  Prefactor  = 0.689752
 **********
 **   18 **HESSE 
 **********

 FCN=   7154.782     FROM HESSE     STATUS=OK           401 CALLS     3126 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.4144        16.744        .22056E-03   -1.5338    
   4  norm          .10000E-03    3.5694        .21839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.4104        .30098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          38.199        42.669        .64846E-04   -1.4471    
   7  Prefactor     .10000E-03    41.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.9341        .94742        .35485E-04   -1.5311    
   9  Prefactor     .10000E-03    2.9932        .14283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.1719        11.912        .14025E-03   -1.5136    
  11  norm          1.2204        1.6683        .12245E-03   -1.5487    
  12  Prefactor     .10000E-03    5.1849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     27.722        48.669        .76086E-04   -1.4654    
  14  Prefactor     6.6682        208.52        .15528E-03   -1.5191    
  15  norm          55.728        38.546        .53731E-04   -1.4214    
  16  norm          3.6094        .52515        .20179E-04   -1.5328    
  17  Prefactor     .10000E-03    38.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          60.294        20.542        .51670E-04   -1.4153    
  19  norm          2.7016        11.848        .12393E-02   -1.5379    
  20  Prefactor     .10000E-03    15.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.2920        9.8928        .17472E-03   -1.5248    
  22  norm          .18298        4.1455        .15256E-02   -1.5622    
  23  Normalizat    1.8988        .31178        .30828E-03   -.67112    
  24  Prefactor     .68975        .21109        .33609E-03   -1.0393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75388e-08
Minuit parameter uncertainties:
  1  0.000131873
  2  9.63096e-05
  3  15.1287
  4  4.92867e-05
  5  4.19464e-06
  6  42.7032
  7  0.000631691
  8  0.947422
  9  3.05277e-07
  10  11.9153
  11  1.6684
  12  1.68219e-05
  13  48.7392
  14  74.8642
  15  38.5635
  16  0.525152
  17  0.000696586
  18  20.5447
  19  11.3186
  20  4.7716e-05
  21  9.89582
  22  1.74155
  23  0.312109
  24  0.211336
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  5.573e+01  3.856e+01  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.898e-01  2.113e-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.899e+00  3.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.12
Ra Dec: 192.836 -2.027
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 4.78e-08 +/- 3.31e-08
Energy Flux (Fixed Index): 3.30e-05 +/- 2.29e-05

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) = 7153.52572423
delta logL = 1.25668859534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7153.52136967
delta logL = 1.26104315702

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    34.793       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9125       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8155       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72045       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=   7153.521     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      292 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          34.802        32.469        .67938E-04   -.85048E-03
   2  alpha         2.9127        .60970        .92557E-02   -.21919E-03
   3  Normalizat    1.8162        .29516        .31248E-03    .43023E-03
   4  Prefactor     .71986        .20514        .32892E-03    .70600E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 34.802
  alpha      = 2.91269
  Normalizat = 1.81621
  Prefactor  = 0.719862
 **********
 **   18 **HESSE 
 **********

 FCN=   7153.521     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          34.802        29.354        .13588E-04   -1.4527    
   2  alpha         2.9127        .55178        .37023E-03    .16584    
   3  Normalizat    1.8162        .29474        .62496E-04   -.69241    
   4  Prefactor     .71986        .20498        .65785E-04   -1.0275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07065e-09
Minuit parameter uncertainties:
  1  29.3663
  2  0.556497
  3  0.295025
  4  0.205196
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950443': 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) = 7153.52136444
delta logL = 1.26104838179

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  3.480e+01  2.937e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  2.913e+00  5.565e-01  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:  7.199e-01  2.052e-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.816e+00  2.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.64
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 2.91 +/- 0.56
Photon Flux (Free Index): 1.36e-07 +/- 8.16e-08
Energy Flux (Free Index): 3.41e-05 +/- 1.70e-05

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/950443/cmap_HighResolution_506304001_506563201_4FGL_J1251.3-0201_daily_bin1030.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.78e-08', energy_flux2='3.41e-05', photon_flux_error='3.31e-08', dlogl='1.26e+00', energy_flux='3.30e-05', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-09-06 07:24:43.187523', photon_index_error2='0.56', photon_index2='2.91', ts='5.12', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='1.70e-05', EG='1.90', time_epoch_completed='1630938283.19', return_code='0', job_id='950443', GAL2='0.72', EG2='1.82', return_code2='0', energy_flux_error='2.29e-05', photon_flux_error2='8.16e-08', ts2='7.64', photon_index='1.95' WHERE bin_id='1030' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:24:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 950443: <4FGL_J1251.3-0201_daily_bin1030> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin1030> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 07:10:49 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:10:51 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:10:51 2021
Terminated at Mon Sep  6 07:24:43 2021
Results reported at Mon Sep  6 07:24:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1030 192.836 -2.0271 506304001 506563201 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 :                                   682.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             254.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            834 sec.

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

