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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1424
RA = 192.836, Dec = -2.0271
tmin = 608428801, tmax = 608688001
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='952016', job_status='RUN', time_executed='2021-09-06 07:19:18.708785', time_epoch_executed='1630937958.71' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952016

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952016/ft1_4FGL_J1251.3-0201_daily_bin1424.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952016/ft2_4FGL_J1251.3-0201_daily_bin1424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952016/ft1_4FGL_J1251.3-0201_daily_bin1424.fits outfile=/scratch/kocevski/952016/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1424.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=608428801.0 tmax=608688001.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 4.94
user 4.71
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/952016/ft2_4FGL_J1251.3-0201_daily_bin1424.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/952016/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1424.fits evtable="EVENTS" outfile="/scratch/kocevski/952016/ft1_filtered_4FGL_J1251.3-0201_daily_bin1424.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.58
user 0.33
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/952016/ft1_filtered_4FGL_J1251.3-0201_daily_bin1424.fits" evtable="EVENTS" scfile=/scratch/kocevski/952016/ft2_4FGL_J1251.3-0201_daily_bin1424.fits sctable="SC_DATA" outfile=/scratch/kocevski/952016/ltcube_608428801_608688001_4FGL_J1251.3-0201_daily_bin1424.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/952016/ft2_4FGL_J1251.3-0201_daily_bin1424.fits
.....................!
real 12.39
user 11.93
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952016/ft1_filtered_4FGL_J1251.3-0201_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/952016/ft2_4FGL_J1251.3-0201_daily_bin1424.fits sctable="SC_DATA" expcube=/scratch/kocevski/952016/ltcube_608428801_608688001_4FGL_J1251.3-0201_daily_bin1424.fits outfile=/scratch/kocevski/952016/expmap_608428801_608688001_4FGL_J1251.3-0201_daily_bin1424.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/952016/ltcube_608428801_608688001_4FGL_J1251.3-0201_daily_bin1424.fits
.....................!
real 191.79
user 185.88
sys 4.78

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/952016/ft1_filtered_4FGL_J1251.3-0201_daily_bin1424.fits scfile=/scratch/kocevski/952016/ft2_4FGL_J1251.3-0201_daily_bin1424.fits outfile=/scratch/kocevski/952016/cmap_608428801_608688001_4FGL_J1251.3-0201_daily_bin1424.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/952016/ft1_filtered_4FGL_J1251.3-0201_daily_bin1424.fits scfile=/scratch/kocevski/952016/ft2_4FGL_J1251.3-0201_daily_bin1424.fits outfile=/scratch/kocevski/952016/cmap_HighResolution_608428801_608688001_4FGL_J1251.3-0201_daily_bin1424.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/952016/ft1_filtered_4FGL_J1251.3-0201_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/952016/ft2_4FGL_J1251.3-0201_daily_bin1424.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/952016/Model_4FGL_J1251.3-0201_daily_bin1424.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/952016/ft1_filtered_4FGL_J1251.3-0201_daily_bin1424.fits.....................!
real 50.60
user 49.25
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.352       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9244       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10429E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10229E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15454E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .37238       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2549       1.0000         .10000E-03   10000.    
    11 'norm      '    .27922       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23820E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7852       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .28397E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    23.720       1.0000         .10000E-03   10000.    
    19 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.2749       1.0000         .10000E-03   10000.    
    22 'norm      '    .14732E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2475       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97333       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=   5773.907     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     2781 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.339        34.764        .20671E-05    .20266E-04
   2  Prefactor     2.9758        78.927       -.13102E-04   -.10702E-04
   3  Prefactor     .10000E-03    4.8467       -.17203E-07** at limit **
   4  norm          .10000E-03    .96044       -.11177E-07** at limit **
   5  norm          .10000E-03    2.9617        .13225E-06** at limit **
   6  norm          .10000E-03    45.748        .98164E-07** at limit **
   7  Prefactor     .10000E-03    171.74       -.41228E-05** at limit **
   8  norm          .37271        .69071        .22999E-07   -.19050E-03
   9  Prefactor     .10000E-03    4.6788        .17244E-08** at limit **
  10  Prefactor     9.2536        8.8155        .48694E-07   -.94930E-04
  11  norm          .27627        1.5246        .66877E-08   -.12546E-03
  12  Prefactor     .10000E-03    4.2675       -.22485E-09** at limit **
  13  Prefactor     .10003E-03    49.677        .42991E-06** at limit **
  14  Prefactor     .10000E-03    29.335        .99613E-09** at limit **
  15  norm          .10000E-03    8.0722        .96747E-09** at limit **
  16  norm          2.7852        .43602       -.10228E-08    .55181E-03
  17  Prefactor     .10074E-03    44.998       -.15901E-05** at limit **
  18  norm          23.719        12.457        .47794E-06    .69514E-04
  19  norm          .10000E-03    7.0032       -.32464E-08** at limit **
  20  Prefactor     .10000E-03    11.452        .70328E-08** at limit **
  21  Prefactor     3.2742        2.6014        .21224E-06   -.84948E-03
  22  norm          .10000E-03    .74334       -.10285E-07** at limit **
  23  Normalizat    1.2477        .24981       -.12790E-06    .25235E-04
  24  Prefactor     .97340        .17113        .43002E-08    .24022E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.3391
  Prefactor  = 2.97581
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.372711
  Prefactor  = 0.0001
  Prefactor  = 9.25356
  norm       = 0.27627
  Prefactor  = 0.0001
  Prefactor  = 0.000100031
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.78517
  Prefactor  = 0.000100741
  norm       = 23.7187
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.27417
  norm       = 0.0001
  Normalizat = 1.24766
  Prefactor  = 0.973399
 **********
 **   18 **HESSE 
 **********

 FCN=   5773.907     FROM HESSE     STATUS=OK           411 CALLS     3192 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.339        34.713        .50417E-04   -1.4115    
   2  Prefactor     2.9758        79.416        .23755E-03   -1.5363    
   3  Prefactor     .10000E-03    4.8559        .16334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .96842        .72703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.0377        .25496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    45.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    171.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .37271        .66625        .74561E-04   -1.5586    
   9  Prefactor     .10000E-03    4.7008        .16051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.2536        8.8561        .65869E-03   -1.5099    
  11  norm          .27627        2.7509        .16859E-02   -1.5603    
  12  Prefactor     .10000E-03    4.2878        .15328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10003E-03    46.467        .14194       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    29.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.0729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7852        .43762        .18682E-04   -1.5374    
  17  Prefactor     .10074E-03    44.595        .16843       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          23.719        12.464        .82246E-04   -1.4734    
  19  norm          .10000E-03    7.0545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.2742        6.7640        .11188E-02   -1.5346    
  22  norm          .10000E-03    5.2677        .12600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2477        .29307        .30824E-03   -.85143    
  24  Prefactor     .97340        .20184        .24721E-03   -.93622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60376e-08
Minuit parameter uncertainties:
  1  34.7246
  2  30.7909
  3  4.73082e-06
  4  1.64945e-06
  5  2.78651e-05
  6  5.12057e-05
  7  1.24407e-05
  8  0.666262
  9  6.7937e-07
  10  8.85734
  11  1.74333
  12  2.8632e-07
  13  0.00241866
  14  3.79293e-07
  15  2.83798e-08
  16  0.43762
  17  0.0115088
  18  12.4649
  19  8.23479e-07
  20  7.40622e-07
  21  6.76554
  22  5.35576e-07
  23  0.293455
  24  0.202
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  2.838e-08  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.734e-01  2.020e-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.248e+00  2.935e-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.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.76e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/952016/likelihoodResults_608428801_608688001_4FGL_J1251.3-0201_daily_bin1424.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) = 5773.90788777
delta logL = -0.000576636582991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5773.90731116
delta logL = -3.14730641549e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9463       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2476       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97344       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=   5772.992     FROM MIGRAD    STATUS=CONVERGED    148 CALLS      293 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49533        14.380        .89120E-02    .13215E-02
   2  alpha         5.0000        3.8421        .50000    ** at limit **
   3  Normalizat    1.0989        .22895        .30824E-02   -.35371E-05
   4  Prefactor     1.0408        .11944        .24721E-02   -.11281E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.49533
  alpha      = 5
  Normalizat = 1.0989
  Prefactor  = 1.04083
 **********
 **   18 **HESSE 
 **********

 FCN=   5772.992     FROM HESSE     STATUS=OK            31 CALLS      324 TOTAL
                     EDM=   .23E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49533        .40530        .40201E-04   -1.5567    
   2  alpha         5.0000        .62412        .42796E-01   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0989        .29691        .12329E-03   -.89787    
   4  Prefactor     1.0408        .20761        .98886E-04   -.91381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30589e-13
Minuit parameter uncertainties:
  1  0.405304
  2  1.14129e-07
  3  0.297357
  4  0.207766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952016': 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) = 5772.99160126
delta logL = 0.915709876446

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  4.953e-01  4.053e-01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  5.000e+00  1.141e-07  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.041e+00  2.078e-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.099e+00  2.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.40e-07 +/- 1.14e-07
Energy Flux (Free Index): 1.97e-05 +/- 1.61e-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/952016/cmap_HighResolution_608428801_608688001_4FGL_J1251.3-0201_daily_bin1424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.76e-05', comment='SUCCESS', energy_flux2='1.97e-05', dlogl='9.16e-01', photon_flux2='1.40e-07', job_status='DONE', time_completed='2021-09-06 07:32:00.151016', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='3.99e-08', energy_flux_error2='1.61e-05', EG='1.25', time_epoch_completed='1630938720.15', return_code='0', job_id='952016', GAL2='1.04', EG2='1.10', return_code2='0', photon_flux_error2='1.14e-07', ts2='2.05', photon_index='1.95' WHERE bin_id='1424' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:32:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 952016: <4FGL_J1251.3-0201_daily_bin1424> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin1424> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 07:15:43 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:15:45 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:45 2021
Terminated at Mon Sep  6 07:32:00 2021
Results reported at Mon Sep  6 07:32:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1424 192.836 -2.0271 608428801 608688001 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 :                                   667.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            977 sec.

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

