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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1079
RA = 192.836, Dec = -2.0271
tmin = 519004801, tmax = 519264001
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='950494', job_status='RUN', time_executed='2021-09-06 07:11:51.187122', time_epoch_executed='1630937511.19' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1079'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950494

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950494/ft1_4FGL_J1251.3-0201_daily_bin1079.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950494/ft2_4FGL_J1251.3-0201_daily_bin1079.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950494/ft1_4FGL_J1251.3-0201_daily_bin1079.fits outfile=/scratch/kocevski/950494/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1079.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=519004801.0 tmax=519264001.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.59
user 3.33
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950494/ft1_filtered_4FGL_J1251.3-0201_daily_bin1079.fits" evtable="EVENTS" scfile=/scratch/kocevski/950494/ft2_4FGL_J1251.3-0201_daily_bin1079.fits sctable="SC_DATA" outfile=/scratch/kocevski/950494/ltcube_519004801_519264001_4FGL_J1251.3-0201_daily_bin1079.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/950494/ft2_4FGL_J1251.3-0201_daily_bin1079.fits
.....................!
real 12.34
user 11.85
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950494/ft1_filtered_4FGL_J1251.3-0201_daily_bin1079.fits evtable="EVENTS" scfile=/scratch/kocevski/950494/ft2_4FGL_J1251.3-0201_daily_bin1079.fits sctable="SC_DATA" expcube=/scratch/kocevski/950494/ltcube_519004801_519264001_4FGL_J1251.3-0201_daily_bin1079.fits outfile=/scratch/kocevski/950494/expmap_519004801_519264001_4FGL_J1251.3-0201_daily_bin1079.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/950494/ltcube_519004801_519264001_4FGL_J1251.3-0201_daily_bin1079.fits
.....................!
real 190.69
user 185.29
sys 4.53

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/950494/ft1_filtered_4FGL_J1251.3-0201_daily_bin1079.fits scfile=/scratch/kocevski/950494/ft2_4FGL_J1251.3-0201_daily_bin1079.fits outfile=/scratch/kocevski/950494/cmap_519004801_519264001_4FGL_J1251.3-0201_daily_bin1079.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.59
user 0.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950494/ft1_filtered_4FGL_J1251.3-0201_daily_bin1079.fits evtable="EVENTS" scfile=/scratch/kocevski/950494/ft2_4FGL_J1251.3-0201_daily_bin1079.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950494/Model_4FGL_J1251.3-0201_daily_bin1079.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/950494/ft1_filtered_4FGL_J1251.3-0201_daily_bin1079.fits....................!
real 62.16
user 60.10
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.442       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.1563       1.0000         .10000E-03   10000.    
     5 'norm      '    .21860E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    13.983       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13946E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.8545       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.097       1.0000         .10000E-03   10000.    
    10 'Prefactor '    51.181       1.0000         .10000E-03   10000.    
    11 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.085       1.0000         .10000E-03   10000.    
    14 'Prefactor '    39.962       1.0000         .10000E-03   10000.    
    15 'norm      '    17.891       1.0000         .10000E-03   10000.    
    16 'norm      '    1.9945       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.2039       1.0000         .10000E-03   10000.    
    19 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.199       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.1725       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5001       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .70922       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=   7598.424     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2746 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.458        25.013       -.99867E-06   -.60707E-04
   2  Prefactor     .10000E-03    12.774        .87748E-07** at limit **
   3  Prefactor     .10000E-03    3.6153       -.47903E-08** at limit **
   4  norm          8.1555        3.0634        .15557E-07   -.98366E-04
   5  norm          .10005E-03    1.8461        .16984E-05** at limit **
   6  norm          14.090        42.421       -.54794E-05   -.14908E-03
   7  Prefactor     .10000E-03    40.323       -.12482E-05** at limit **
   8  norm          2.8565        .80116       -.31198E-06   -.23153E-02
   9  Prefactor     16.097        10.526        .13466E-06   -.42158E-04
  10  Prefactor     51.187        16.367       -.94829E-07   -.13231E-04
  11  norm          .10000E-03    .71893        .19558E-06** at limit **
  12  Prefactor     .10000E-03    4.3921       -.89372E-07** at limit **
  13  Prefactor     19.050        28.709        .25856E-05    .10871E-04
  14  Prefactor     39.969        43.760        .46276E-06    .27862E-05
  15  norm          17.919        20.101       -.24211E-05   -.57731E-04
  16  norm          1.9944        .36179        .12107E-08    .55755E-05
  17  Prefactor     .10000E-03    28.725        .68470E-06** at limit **
  18  norm          4.2027        8.9315        .32170E-06   -.17434E-04
  19  norm          .10000E-03    3.1778        .27732E-08** at limit **
  20  Prefactor     23.220        22.272       -.16650E-05   -.48131E-04
  21  Prefactor     .10000E-03    17.795       -.10696E-07** at limit **
  22  norm          2.1725        1.4972        .46571E-07   -.19432E-04
  23  Normalizat    1.5000        .23480       -.83872E-06   -.23366E-03
  24  Prefactor     .70932        .15753        .64371E-06   -.25690E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.4581
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.15549
  norm       = 0.000100053
  norm       = 14.0905
  Prefactor  = 0.0001
  norm       = 2.85649
  Prefactor  = 16.0973
  Prefactor  = 51.187
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0499
  Prefactor  = 39.9689
  norm       = 17.9185
  norm       = 1.99438
  Prefactor  = 0.0001
  norm       = 4.20271
  norm       = 0.0001
  Prefactor  = 23.2203
  Prefactor  = 0.0001
  norm       = 2.17247
  Normalizat = 1.50005
  Prefactor  = 0.709316
 **********
 **   18 **HESSE 
 **********

 FCN=   7598.424     FROM HESSE     STATUS=OK           401 CALLS     3147 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.458        24.995        .58215E-04   -1.4329    
   2  Prefactor     .10000E-03    12.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.6191        .16184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.1555        3.0623        .89968E-04   -1.5137    
   5  norm          .10005E-03    10.442        .20010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          14.090        43.090        .10711E-03   -1.4957    
   7  Prefactor     .10000E-03    40.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.8565        .81030        .36440E-04   -1.5370    
   9  Prefactor     16.097        10.523        .99827E-04   -1.4905    
  10  Prefactor     51.187        16.358        .56058E-04   -1.4276    
  11  norm          .10000E-03    5.1293        .14032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.4374        .17832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.050        28.707        .91681E-04   -1.4835    
  14  Prefactor     39.969        44.023        .63407E-04   -1.4443    
  15  norm          17.919        20.097        .94689E-04   -1.4861    
  16  norm          1.9944        .36494        .20384E-04   -1.5426    
  17  Prefactor     .10000E-03    28.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.2027        8.9144        .19655E-03   -1.5298    
  19  norm          .10000E-03    3.1791        .15176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.220        22.338        .83163E-04   -1.4744    
  21  Prefactor     .10000E-03    18.631        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.1725        1.4898        .85275E-04   -1.5413    
  23  Normalizat    1.5000        .28110        .30402E-03   -.77777    
  24  Prefactor     .70932        .18714        .14760E-02   -1.0316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12738e-09
Minuit parameter uncertainties:
  1  25.0001
  2  4.4513e-06
  3  8.1249e-06
  4  3.06236
  5  0.00148378
  6  43.1858
  7  4.30947e-05
  8  0.810299
  9  10.5243
  10  16.3591
  11  3.66433e-05
  12  1.39612e-05
  13  28.7281
  14  44.059
  15  20.1044
  16  0.364938
  17  3.28609e-05
  18  8.9172
  19  1.3709e-08
  20  22.3458
  21  3.98698e-06
  22  1.48981
  23  0.281395
  24  0.187304
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.792e+01  2.010e+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:  7.093e-01  1.873e-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.500e+00  2.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.54
Ra Dec: 192.836 -2.027
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 1.54e-08 +/- 1.72e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 1.19e-05

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

Saving results to:
/scratch/kocevski/950494/likelihoodResults_519004801_519264001_4FGL_J1251.3-0201_daily_bin1079.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) = 7598.21768112
delta logL = 0.206498148033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7598.19499329
delta logL = 0.229185976204

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.918       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6412       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4815       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71586       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=   7598.195     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      240 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.911        19.859        .10736E-03    .82691E-03
   2  alpha         2.6415        1.0923        .19777E-01    .11019E-03
   3  Normalizat    1.4815        .26865        .30544E-03   -.10704E-02
   4  Prefactor     .71585        .18639        .29387E-03   -.13808E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 13.9113
  alpha      = 2.64149
  Normalizat = 1.48151
  Prefactor  = 0.715852
 **********
 **   18 **HESSE 
 **********

 FCN=   7598.195     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.911        18.504        .21472E-04   -1.4962    
   2  alpha         2.6415        1.0213        .79110E-03    .56626E-01
   3  Normalizat    1.4815        .26829        .61088E-04   -.78299    
   4  Prefactor     .71585        .18631        .58774E-04   -1.0291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00755e-09
Minuit parameter uncertainties:
  1  18.5118
  2  1.05222
  3  0.268548
  4  0.186473
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950494': 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) = 7598.19499321
delta logL = 0.229186059278

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.391e+01  1.851e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  2.641e+00  1.052e+00  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.159e-01  1.865e-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.482e+00  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.99
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 2.64 +/- 1.05
Photon Flux (Free Index): 3.37e-08 +/- 4.60e-08
Energy Flux (Free Index): 1.02e-05 +/- 1.03e-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/950494/cmap_HighResolution_519004801_519264001_4FGL_J1251.3-0201_daily_bin1079.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-05', comment='SUCCESS', photon_flux='1.54e-08', energy_flux2='1.02e-05', photon_flux_error='1.72e-08', dlogl='2.29e-01', energy_flux='1.06e-05', photon_flux2='3.37e-08', job_status='DONE', time_completed='2021-09-06 07:24:50.054850', photon_index_error2='1.05', photon_index2='2.64', ts='1.54', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='6.46e-08', energy_flux_error2='1.03e-05', EG='1.50', time_epoch_completed='1630938290.05', return_code='0', job_id='950494', GAL2='0.72', EG2='1.48', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='4.60e-08', ts2='1.99', photon_index='1.95' WHERE bin_id='1079' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:24:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 950494: <4FGL_J1251.3-0201_daily_bin1079> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1079 192.836 -2.0271 519004801 519264001 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 :                                   763.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            835 sec.

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

