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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1007
RA = 192.836, Dec = -2.0271
tmin = 500342401, tmax = 500601601
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='950407', job_status='RUN', time_executed='2021-09-06 07:13:33.725520', time_epoch_executed='1630937613.73' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1007'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950407

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950407/ft1_4FGL_J1251.3-0201_daily_bin1007.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950407/ft2_4FGL_J1251.3-0201_daily_bin1007.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950407/ft1_4FGL_J1251.3-0201_daily_bin1007.fits outfile=/scratch/kocevski/950407/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1007.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=500342401.0 tmax=500601601.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.80
user 4.43
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/950407/ft2_4FGL_J1251.3-0201_daily_bin1007.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/950407/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1007.fits evtable="EVENTS" outfile="/scratch/kocevski/950407/ft1_filtered_4FGL_J1251.3-0201_daily_bin1007.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.08
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950407/ft1_filtered_4FGL_J1251.3-0201_daily_bin1007.fits" evtable="EVENTS" scfile=/scratch/kocevski/950407/ft2_4FGL_J1251.3-0201_daily_bin1007.fits sctable="SC_DATA" outfile=/scratch/kocevski/950407/ltcube_500342401_500601601_4FGL_J1251.3-0201_daily_bin1007.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/950407/ft2_4FGL_J1251.3-0201_daily_bin1007.fits
.....................!
real 12.51
user 11.86
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950407/ft1_filtered_4FGL_J1251.3-0201_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/950407/ft2_4FGL_J1251.3-0201_daily_bin1007.fits sctable="SC_DATA" expcube=/scratch/kocevski/950407/ltcube_500342401_500601601_4FGL_J1251.3-0201_daily_bin1007.fits outfile=/scratch/kocevski/950407/expmap_500342401_500601601_4FGL_J1251.3-0201_daily_bin1007.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/950407/ltcube_500342401_500601601_4FGL_J1251.3-0201_daily_bin1007.fits
.....................!
real 194.67
user 185.27
sys 5.09

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/950407/ft1_filtered_4FGL_J1251.3-0201_daily_bin1007.fits scfile=/scratch/kocevski/950407/ft2_4FGL_J1251.3-0201_daily_bin1007.fits outfile=/scratch/kocevski/950407/cmap_500342401_500601601_4FGL_J1251.3-0201_daily_bin1007.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950407/ft1_filtered_4FGL_J1251.3-0201_daily_bin1007.fits scfile=/scratch/kocevski/950407/ft2_4FGL_J1251.3-0201_daily_bin1007.fits outfile=/scratch/kocevski/950407/cmap_HighResolution_500342401_500601601_4FGL_J1251.3-0201_daily_bin1007.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.80
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950407/ft1_filtered_4FGL_J1251.3-0201_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/950407/ft2_4FGL_J1251.3-0201_daily_bin1007.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950407/Model_4FGL_J1251.3-0201_daily_bin1007.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/950407/ft1_filtered_4FGL_J1251.3-0201_daily_bin1007.fits.....................!
real 61.74
user 56.03
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11961E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .90065       1.0000         .10000E-03   10000.    
     5 'norm      '    6.3811       1.0000         .10000E-03   10000.    
     6 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6560       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5543       1.0000         .10000E-03   10000.    
    11 'norm      '    1.1020       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .64906E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    73.063       1.0000         .10000E-03   10000.    
    15 'norm      '    16.721       1.0000         .10000E-03   10000.    
    16 'norm      '    .49587       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    26.728       1.0000         .10000E-03   10000.    
    19 'norm      '    .16047E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.2809       1.0000         .10000E-03   10000.    
    22 'norm      '    .49611E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0869       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1397       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=   7156.093     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2741 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.643        .15858E-04** at limit **
   2  Prefactor     .10000E-03    12.547       -.12649E-05** at limit **
   3  Prefactor     .10000E-03    6.0095       -.11926E-07** at limit **
   4  norm          .89920        2.1901       -.73364E-06   -.13995E-02
   5  norm          6.3817        3.7194       -.77178E-07    .42188E-03
   6  norm          .10000E-03    33.396       -.25870E-04** at limit **
   7  Prefactor     .10000E-03    72.703       -.28330E-04** at limit **
   8  norm          1.6556        .62904        .55202E-07    .34275E-02
   9  Prefactor     .10000E-03    3.2224       -.77298E-08** at limit **
  10  Prefactor     5.5573        9.8199        .48828E-06   -.12045E-03
  11  norm          1.1016        1.2893       -.26811E-09    .42276E-03
  12  Prefactor     .10000E-03    2.5138        .37874E-07** at limit **
  13  Prefactor     .10010E-03    232.29       -.15721E-03** at limit **
  14  Prefactor     73.052        47.986       -.89100E-05    .42637E-04
  15  norm          16.718        16.498        .40862E-06    .13624E-03
  16  norm          .49597        .24485        .18248E-06   -.10934E-02
  17  Prefactor     .10000E-03    43.282        .37149E-04** at limit **
  18  norm          26.730        11.536       -.17332E-06   -.11867E-03
  19  norm          .10009E-03    5.0573        .17772E-05** at limit **
  20  Prefactor     .10000E-03    8.1457       -.59862E-07** at limit **
  21  Prefactor     8.2860        9.0313       -.80222E-06   -.14757E-03
  22  norm          .73478E-02    .51103       -.37777E-06    .92354E-03
  23  Normalizat    1.0868        .21865        .15286E-05    .56598E-03
  24  Prefactor     1.1396        .15437        .39247E-06    .70588E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.899195
  norm       = 6.38167
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.65562
  Prefactor  = 0.0001
  Prefactor  = 5.55728
  norm       = 1.10157
  Prefactor  = 0.0001
  Prefactor  = 0.000100105
  Prefactor  = 73.0523
  norm       = 16.718
  norm       = 0.495972
  Prefactor  = 0.0001
  norm       = 26.7301
  norm       = 0.00010009
  Prefactor  = 0.0001
  Prefactor  = 8.28596
  norm       = 0.00734782
  Normalizat = 1.08679
  Prefactor  = 1.13962
 **********
 **   18 **HESSE 
 **********

 FCN=   7156.093     FROM HESSE     STATUS=OK           401 CALLS     3142 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    64.686        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.0210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .89920        2.1326        .18754E-03   -1.5518    
   5  norm          6.3817        3.7196        .11699E-03   -1.5203    
   6  norm          .10000E-03    33.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    72.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6556        .62455        .38198E-04   -1.5451    
   9  Prefactor     .10000E-03    3.2306        .14829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5573        9.8090        .17047E-03   -1.5236    
  11  norm          1.1016        1.2527        .99476E-04   -1.5498    
  12  Prefactor     .10000E-03    2.5202        .13097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10010E-03    234.30        .42043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     73.052        48.195        .46969E-04   -1.3996    
  15  norm          16.718        16.499        .97947E-04   -1.4890    
  16  norm          .49597        .24245        .26165E-04   -1.5567    
  17  Prefactor     .10000E-03    43.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          26.730        11.539        .77489E-04   -1.4673    
  19  norm          .10009E-03    21.069        .36875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.1634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.2860        9.0188        .13932E-03   -1.5132    
  22  norm          .73478E-02    .75381        .22454E-01   -1.5691    
  23  Normalizat    1.0868        .26001        .32015E-03   -.90177    
  24  Prefactor     1.1396        .18395        .23000E-03   -.88210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55049e-09
Minuit parameter uncertainties:
  1  0.000475198
  2  1.22223e-06
  3  8.53099e-06
  4  2.13281
  5  3.71977
  6  5.19539e-05
  7  3.12889e-06
  8  0.624555
  9  2.94997e-06
  10  9.8118
  11  1.25276
  12  5.46337e-06
  13  0.00995347
  14  48.2208
  15  16.5037
  16  0.242453
  17  6.54706e-05
  18  11.5401
  19  0.00275834
  20  8.286e-06
  21  9.02029
  22  0.147833
  23  0.260321
  24  0.184055
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.672e+01  1.650e+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:  1.140e+00  1.841e-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.087e+00  2.603e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.63
Ra Dec: 192.836 -2.027
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 1.43e-08 +/- 1.42e-08
Energy Flux (Fixed Index): 9.91e-06 +/- 9.78e-06

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) = 7155.24195736
delta logL = 0.85072222797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7155.18914756
delta logL = 0.903532023023

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.507       1.0000         .10000E-03   10000.    
     2 'alpha     '    .88990       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0959       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1366       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.

 FCN=   7155.189     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      219 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.467        11.267        .29524E-02   -.53465E-03
   2  alpha         .88806        .54354        .50000       -.33070E-04
   3  Normalizat    1.0963        .20810        .72065E-01    .11197E-04
   4  Prefactor     1.1365        .15340        .52081E-01   -.10007E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.4672
  alpha      = 0.888057
  Normalizat = 1.09631
  Prefactor  = 1.13646
 **********
 **   18 **HESSE 
 **********

 FCN=   7155.189     FROM HESSE     STATUS=OK            31 CALLS      250 TOTAL
                     EDM=   .64E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.467        14.779        .59048E-03   -1.5031    
   2  alpha         .88806        .69484        .23483E-02   -.70073    
   3  Normalizat    1.0963        .24757        .31890E-03   -.89870    
   4  Prefactor     1.1365        .18275        .23026E-03   -.88310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.38376e-13
Minuit parameter uncertainties:
  1  14.7833
  2  0.711139
  3  0.247833
  4  0.182855
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950407': 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) = 7155.18914108
delta logL = 0.903538501527

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.147e+01  1.478e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  8.881e-01  7.111e-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.136e+00  1.829e-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.096e+00  2.478e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.44
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 0.89 +/- 0.71
Photon Flux (Free Index): 5.85e-09 +/- 6.33e-09
Energy Flux (Free Index): 3.65e-05 +/- 5.16e-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/950407/cmap_HighResolution_500342401_500601601_4FGL_J1251.3-0201_daily_bin1007.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.43e-08', energy_flux2='3.65e-05', photon_flux_error='1.42e-08', dlogl='9.04e-01', energy_flux='9.91e-06', photon_flux2='5.85e-09', job_status='DONE', time_completed='2021-09-06 07:25:00.947440', photon_index_error2='0.71', photon_index2='0.89', ts='4.63', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='5.16e-05', EG='1.09', time_epoch_completed='1630938300.95', return_code='0', job_id='950407', GAL2='1.14', EG2='1.10', return_code2='0', energy_flux_error='9.78e-06', photon_flux_error2='6.33e-09', ts2='6.44', photon_index='1.95' WHERE bin_id='1007' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:25:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 950407: <4FGL_J1251.3-0201_daily_bin1007> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin1007> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 07:10:46 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:10:47 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:47 2021
Terminated at Mon Sep  6 07:25:01 2021
Results reported at Mon Sep  6 07:25:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1007 192.836 -2.0271 500342401 500601601 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 :                                   666.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            855 sec.

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

