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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin718
RA = 192.836, Dec = -2.0271
tmin = 425433601, tmax = 425692801
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='948701', job_status='RUN', time_executed='2021-09-06 07:09:30.542203', time_epoch_executed='1630937370.54' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948701

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

Retrieving the FT1 file...

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

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

Retrieving 38 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948701/ft1_4FGL_J1251.3-0201_daily_bin718.fits


Retrieving the FT1 file...

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

Retrieving 38 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948701/ft2_4FGL_J1251.3-0201_daily_bin718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948701/ft1_4FGL_J1251.3-0201_daily_bin718.fits outfile=/scratch/kocevski/948701/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin718.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=425433601.0 tmax=425692801.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.36
user 2.85
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948701/ft1_filtered_4FGL_J1251.3-0201_daily_bin718.fits" evtable="EVENTS" scfile=/scratch/kocevski/948701/ft2_4FGL_J1251.3-0201_daily_bin718.fits sctable="SC_DATA" outfile=/scratch/kocevski/948701/ltcube_425433601_425692801_4FGL_J1251.3-0201_daily_bin718.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/948701/ft2_4FGL_J1251.3-0201_daily_bin718.fits
.....................!
real 10.06
user 9.69
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948701/ft1_filtered_4FGL_J1251.3-0201_daily_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/948701/ft2_4FGL_J1251.3-0201_daily_bin718.fits sctable="SC_DATA" expcube=/scratch/kocevski/948701/ltcube_425433601_425692801_4FGL_J1251.3-0201_daily_bin718.fits outfile=/scratch/kocevski/948701/expmap_425433601_425692801_4FGL_J1251.3-0201_daily_bin718.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/948701/ltcube_425433601_425692801_4FGL_J1251.3-0201_daily_bin718.fits
.....................!
real 194.50
user 185.83
sys 4.87

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/948701/ft1_filtered_4FGL_J1251.3-0201_daily_bin718.fits scfile=/scratch/kocevski/948701/ft2_4FGL_J1251.3-0201_daily_bin718.fits outfile=/scratch/kocevski/948701/cmap_425433601_425692801_4FGL_J1251.3-0201_daily_bin718.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.99
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948701/ft1_filtered_4FGL_J1251.3-0201_daily_bin718.fits scfile=/scratch/kocevski/948701/ft2_4FGL_J1251.3-0201_daily_bin718.fits outfile=/scratch/kocevski/948701/cmap_HighResolution_425433601_425692801_4FGL_J1251.3-0201_daily_bin718.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.61
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/948701/ft1_filtered_4FGL_J1251.3-0201_daily_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/948701/ft2_4FGL_J1251.3-0201_daily_bin718.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/948701/Model_4FGL_J1251.3-0201_daily_bin718.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/948701/ft1_filtered_4FGL_J1251.3-0201_daily_bin718.fits.....................!
real 49.63
user 48.22
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14028E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.856       1.0000         .10000E-03   10000.    
     4 'norm      '    .11218E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .59609       1.0000         .10000E-03   10000.    
     6 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.0810       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3325       1.0000         .10000E-03   10000.    
    11 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.760       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.506       1.0000         .10000E-03   10000.    
    16 'norm      '    .25638       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11134E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    49.393       1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.640       1.0000         .10000E-03   10000.    
    22 'norm      '    1.6728       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2436       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98305       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=   5620.858     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2744 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.533       -.16705E-06** at limit **
   2  Prefactor     .10000E-03    10.921       -.22003E-07** at limit **
   3  Prefactor     15.863        17.159        .16700E-06   -.62465E-04
   4  norm          .10000E-03    2.5156        .24280E-07** at limit **
   5  norm          .59335        4.4015        .85908E-06   -.33823E-03
   6  norm          .10001E-03    68.788        .51490E-05** at limit **
   7  Prefactor     .10001E-03    41.266       -.50075E-05** at limit **
   8  norm          2.0807        .91574       -.58646E-07   -.14657E-02
   9  Prefactor     .10000E-03    4.0489        .32456E-07** at limit **
  10  Prefactor     5.3319        11.937        .53620E-05   -.35131E-03
  11  norm          .10000E-03    1.0972        .14492E-06** at limit **
  12  Prefactor     10.760        12.452        .56949E-06   -.23468E-04
  13  Prefactor     .10001E-03    31.170        .38398E-05** at limit **
  14  Prefactor     .10000E-03    26.904       -.13234E-05** at limit **
  15  norm          10.473        32.815       -.26686E-05   -.12743E-03
  16  norm          .25633        .24988        .40804E-07   -.10852E-03
  17  Prefactor     .10000E-03    137.58       -.37656E-05** at limit **
  18  norm          .10000E-03    4.1595        .27264E-07** at limit **
  19  norm          .10000E-03    13.617        .10388E-06** at limit **
  20  Prefactor     49.387        26.048        .20578E-06   -.20430E-04
  21  Prefactor     24.639        11.080        .76074E-07   -.94836E-05
  22  norm          1.6728        1.4479        .77785E-07   -.39772E-04
  23  Normalizat    1.2439        .25434       -.13207E-05   -.10825E-03
  24  Prefactor     .98283        .16992       -.27592E-06   -.14534E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8634
  norm       = 0.0001
  norm       = 0.593348
  norm       = 0.000100012
  Prefactor  = 0.000100011
  norm       = 2.0807
  Prefactor  = 0.0001
  Prefactor  = 5.33191
  norm       = 0.0001
  Prefactor  = 10.7603
  Prefactor  = 0.000100006
  Prefactor  = 0.000100001
  norm       = 10.4727
  norm       = 0.25633
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 49.3867
  Prefactor  = 24.6394
  norm       = 1.67275
  Normalizat = 1.24391
  Prefactor  = 0.98283
 **********
 **   18 **HESSE 
 **********

 FCN=   5620.858     FROM HESSE     STATUS=OK           403 CALLS     3147 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    61.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.863        17.010        .10058E-03   -1.4911    
   4  norm          .10000E-03    2.5416        .23011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .59335        8.1857        .26141E-02   -1.5554    
   6  norm          .10001E-03    71.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    43.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.0807        .88601        .38886E-04   -1.5419    
   9  Prefactor     .10000E-03    4.0535        .14731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.3319        12.357        .87020E-03   -1.5246    
  11  norm          .10000E-03    1.7288        .15006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.760        12.446        .12214E-03   -1.5052    
  13  Prefactor     .10001E-03    32.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    27.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.473        33.236        .12361E-03   -1.5061    
  16  norm          .25633        .23935        .34326E-03   -1.5607    
  17  Prefactor     .10000E-03    139.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.1743        .14933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    13.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     49.387        26.119        .57059E-04   -1.4301    
  21  Prefactor     24.639        11.085        .80699E-04   -1.4715    
  22  norm          1.6728        1.4383        .80774E-04   -1.5449    
  23  Normalizat    1.2439        .29871        .30136E-03   -.85257    
  24  Prefactor     .98283        .20021        .23969E-03   -.93304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41728e-09
Minuit parameter uncertainties:
  1  3.79468e-05
  2  1.93766e-06
  3  17.0149
  4  3.04192e-06
  5  4.40807
  6  0.00182356
  7  0.00135879
  8  0.886018
  9  9.27732e-07
  10  12.363
  11  5.02348e-06
  12  12.4485
  13  0.000904945
  14  0.000282318
  15  33.2949
  16  0.239354
  17  0.00163962
  18  3.09972e-06
  19  1.28047e-05
  20  26.1252
  21  11.0856
  22  1.43837
  23  0.299124
  24  0.200366
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.047e+01  3.329e+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:  9.828e-01  2.004e-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.244e+00  2.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/948701/likelihoodResults_425433601_425692801_4FGL_J1251.3-0201_daily_bin718.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) = 5619.24082737
delta logL = 1.61696863581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5619.23195727
delta logL = 1.62583873336

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5237       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6995       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0841       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0418       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5619.232     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      268 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5060        138.50        .61797E-03   -.30677E-03
   2  alpha         3.7008        4.3421        .93506E-02   -.32188E-04
   3  Normalizat    1.0840        .33334        .31901E-03    .13343E-03
   4  Prefactor     1.0419        .23501        .23314E-03    .23731E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.50604
  alpha      = 3.70081
  Normalizat = 1.08405
  Prefactor  = 1.04186
 **********
 **   18 **HESSE 
 **********

 FCN=   5619.232     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5060        14.783        .24719E-04   -1.5125    
   2  alpha         3.7008        .89405        .37403E-03    .50102    
   3  Normalizat    1.0840        .29319        .12760E-04   -.90266    
   4  Prefactor     1.0419        .20429        .46628E-04   -.91347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17251e-10
Minuit parameter uncertainties:
  1  14.7893
  2  0.920887
  3  0.293633
  4  0.204441
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948701': 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) = 5619.23195621
delta logL = 1.62583979397

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  8.506e+00  1.479e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  3.701e+00  9.209e-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:  1.042e+00  2.044e-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.084e+00  2.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.60
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 3.70 +/- 0.92
Photon Flux (Free Index): 1.53e-07 +/- 1.02e-07
Energy Flux (Free Index): 2.73e-05 +/- 1.70e-05

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/948701/cmap_HighResolution_425433601_425692801_4FGL_J1251.3-0201_daily_bin718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.78e-05', comment='SUCCESS', energy_flux2='2.73e-05', dlogl='1.63e+00', photon_flux2='1.53e-07', job_status='DONE', time_completed='2021-09-06 07:20:23.280173', photon_index_error2='0.92', photon_index2='3.70', ts='0.13', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='8.37e-08', energy_flux_error2='1.70e-05', EG='1.24', time_epoch_completed='1630938023.28', return_code='0', job_id='948701', GAL2='1.04', EG2='1.08', return_code2='0', photon_flux_error2='1.02e-07', ts2='3.60', photon_index='1.95' WHERE bin_id='718' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:20:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 948701: <4FGL_J1251.3-0201_daily_bin718> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin718 192.836 -2.0271 425433601 425692801 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 :                                   641.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            843 sec.

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

