/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 = 7256
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1251.3-0201_daily_bin369
RA = 192.836, Dec = -2.0271
tmin = 334972801, tmax = 335232001
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='945471', job_status='RUN', time_executed='2021-09-06 06:58:24.519255', time_epoch_executed='1630936704.52' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='369'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945471

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945471/ft1_4FGL_J1251.3-0201_daily_bin369.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945471/ft2_4FGL_J1251.3-0201_daily_bin369.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945471/ft1_4FGL_J1251.3-0201_daily_bin369.fits outfile=/scratch/kocevski/945471/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin369.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=334972801.0 tmax=335232001.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.38
user 3.16
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/945471/ft1_filtered_4FGL_J1251.3-0201_daily_bin369.fits" evtable="EVENTS" scfile=/scratch/kocevski/945471/ft2_4FGL_J1251.3-0201_daily_bin369.fits sctable="SC_DATA" outfile=/scratch/kocevski/945471/ltcube_334972801_335232001_4FGL_J1251.3-0201_daily_bin369.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/945471/ft2_4FGL_J1251.3-0201_daily_bin369.fits
.....................!
real 14.23
user 13.89
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945471/ft1_filtered_4FGL_J1251.3-0201_daily_bin369.fits evtable="EVENTS" scfile=/scratch/kocevski/945471/ft2_4FGL_J1251.3-0201_daily_bin369.fits sctable="SC_DATA" expcube=/scratch/kocevski/945471/ltcube_334972801_335232001_4FGL_J1251.3-0201_daily_bin369.fits outfile=/scratch/kocevski/945471/expmap_334972801_335232001_4FGL_J1251.3-0201_daily_bin369.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/945471/ltcube_334972801_335232001_4FGL_J1251.3-0201_daily_bin369.fits
.....................!
real 190.00
user 185.52
sys 3.80

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/945471/ft1_filtered_4FGL_J1251.3-0201_daily_bin369.fits scfile=/scratch/kocevski/945471/ft2_4FGL_J1251.3-0201_daily_bin369.fits outfile=/scratch/kocevski/945471/cmap_334972801_335232001_4FGL_J1251.3-0201_daily_bin369.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.62
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/945471/ft1_filtered_4FGL_J1251.3-0201_daily_bin369.fits evtable="EVENTS" scfile=/scratch/kocevski/945471/ft2_4FGL_J1251.3-0201_daily_bin369.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/945471/Model_4FGL_J1251.3-0201_daily_bin369.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/945471/ft1_filtered_4FGL_J1251.3-0201_daily_bin369.fits.....................!
real 67.10
user 65.42
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.274       1.0000         .10000E-03   10000.    
     4 'norm      '    .86446       1.0000         .10000E-03   10000.    
     5 'norm      '    11.282       1.0000         .10000E-03   10000.    
     6 'norm      '    11.213       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .67841       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    22.375       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10764E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    50.472       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4308       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.9725       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .30786E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.1154       1.0000         .10000E-03   10000.    
    22 'norm      '    1.2168       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1255       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0591       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=   8785.734     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2374 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.520        .42725E-06** at limit **
   2  Prefactor     .10000E-03    11.017       -.10202E-05** at limit **
   3  Prefactor     17.282        13.670       -.17687E-05    .49570E-05
   4  norm          .86219        2.5805        .10025E-05   -.89509E-04
   5  norm          11.286        5.4632        .56376E-07   -.53355E-04
   6  norm          11.077        50.135       -.90852E-06    .20068E-05
   7  Prefactor     .10000E-03    50.951       -.36099E-06** at limit **
   8  norm          .67867        .51431        .22501E-07   -.14703E-03
   9  Prefactor     .10000E-03    2.0274        .60889E-08** at limit **
  10  Prefactor     .10000E-03    9.1600       -.28432E-07** at limit **
  11  norm          22.374        3.1736       -.10896E-07   -.33869E-04
  12  Prefactor     .10000E-03    5.3313       -.15617E-07** at limit **
  13  Prefactor     .10000E-03    11.517        .10875E-05** at limit **
  14  Prefactor     .10000E-03    11.758       -.48319E-06** at limit **
  15  norm          50.470        27.929        .80676E-06   -.52666E-04
  16  norm          1.4307        .26168       -.28976E-08    .39294E-04
  17  Prefactor     .10000E-03    31.035       -.14492E-06** at limit **
  18  norm          2.9728        1.9499       -.20874E-06   -.10137E-02
  19  norm          .10000E-03    3.6111       -.79945E-08** at limit **
  20  Prefactor     .10000E-03    8.4073       -.56996E-07** at limit **
  21  Prefactor     4.1152        7.5674       -.55603E-07   -.45431E-04
  22  norm          1.2168        1.0974       -.80469E-08   -.11774E-03
  23  Normalizat    1.1257        .21195        .32315E-06   -.48623E-04
  24  Prefactor     1.0590        .14686       -.94063E-07   -.19377E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.2823
  norm       = 0.862194
  norm       = 11.2858
  norm       = 11.0766
  Prefactor  = 0.0001
  norm       = 0.678671
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.3738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 50.4703
  norm       = 1.43074
  Prefactor  = 0.0001
  norm       = 2.97279
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.11518
  norm       = 1.21677
  Normalizat = 1.12571
  Prefactor  = 1.05897
 **********
 **   18 **HESSE 
 **********

 FCN=   8785.734     FROM HESSE     STATUS=OK           409 CALLS     2783 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.282        13.774        .96366E-04   -1.4876    
   4  norm          .86219        2.6406        .20560E-03   -1.5522    
   5  norm          11.286        5.4676        .11793E-03   -1.5036    
   6  norm          11.077        50.372        .11964E-03   -1.5042    
   7  Prefactor     .10000E-03    50.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .67867        .48808        .52934E-03   -1.5543    
   9  Prefactor     .10000E-03    2.0299        .13033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.4289        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          22.374        3.1741        .58808E-04   -1.4762    
  12  Prefactor     .10000E-03    5.4519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          50.470        27.767        .56449E-04   -1.4286    
  16  norm          1.4307        .26234        .19558E-04   -1.5469    
  17  Prefactor     .10000E-03    31.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.9728        4.5791        .11775E-02   -1.5363    
  19  norm          .10000E-03    3.6160        .17395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.0549        .92435E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.1152        7.5745        .19871E-03   -1.5302    
  22  norm          1.2168        1.0773        .90124E-04   -1.5487    
  23  Normalizat    1.1257        .25556        .33470E-03   -.88931    
  24  Prefactor     1.0590        .17747        .24943E-03   -.90789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36212e-09
Minuit parameter uncertainties:
  1  1.31147e-06
  2  3.20882e-05
  3  13.7763
  4  2.64096
  5  5.4678
  6  47.3077
  7  2.38987e-05
  8  0.488083
  9  5.81406e-08
  10  2.60578e-06
  11  3.17408
  12  7.45182e-06
  13  3.69864e-05
  14  1.45583e-05
  15  27.7739
  16  0.26234
  17  5.45912e-06
  18  4.57966
  19  1.66852e-07
  20  4.1213e-05
  21  7.57625
  22  1.07736
  23  0.255842
  24  0.177564
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  5.047e+01  2.777e+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.059e+00  1.776e-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.126e+00  2.558e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.63
Ra Dec: 192.836 -2.027
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 4.33e-08 +/- 2.38e-08
Energy Flux (Fixed Index): 2.99e-05 +/- 1.65e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8785.41496623
delta logL = 0.318747681982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8785.41301122
delta logL = 0.320702688708

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    49.525       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5170       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0558       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=   8785.413     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      229 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 46.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          49.523        24.387       -.23831E-05    .86662E-03
   2  alpha         1.5169        .34361        .80056E-05    .26711E-03
   3  Normalizat    1.1399        .20540       -.27990E-06   -.11947E-03
   4  Prefactor     1.0560        .14957        .16920E-06   -.12300E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 49.523
  alpha      = 1.51693
  Normalizat = 1.13986
  Prefactor  = 1.05596
 **********
 **   18 **HESSE 
 **********

 FCN=   8785.413     FROM HESSE     STATUS=OK            31 CALLS      260 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          49.523        30.377        .28492E-03   -1.4299    
   2  alpha         1.5169        .53205        .16580E-01   -.40414    
   3  Normalizat    1.1399        .24036        .33293E-03   -.88482    
   4  Prefactor     1.0560        .17536        .24969E-03   -.90887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.92262e-09
Minuit parameter uncertainties:
  1  30.3868
  2  0.53692
  3  0.240589
  4  0.175457
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945471': 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) = 8785.41301055
delta logL = 0.320703360276

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  4.952e+01  3.039e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.517e+00  5.369e-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.056e+00  1.755e-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.140e+00  2.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.25
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 1.52 +/- 0.54
Photon Flux (Free Index): 2.76e-08 +/- 2.29e-08
Energy Flux (Free Index): 4.31e-05 +/- 3.39e-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/945471/cmap_HighResolution_334972801_335232001_4FGL_J1251.3-0201_daily_bin369.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.33e-08', energy_flux2='4.31e-05', photon_flux_error='2.38e-08', dlogl='3.21e-01', energy_flux='2.99e-05', photon_flux2='2.76e-08', job_status='DONE', time_completed='2021-09-06 07:10:48.463757', photon_index_error2='0.54', photon_index2='1.52', ts='8.63', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='3.39e-05', EG='1.13', time_epoch_completed='1630937448.46', return_code='0', job_id='945471', GAL2='1.06', EG2='1.14', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='2.29e-08', ts2='9.25', photon_index='1.95' WHERE bin_id='369' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:10:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 945471: <4FGL_J1251.3-0201_daily_bin369> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin369> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 06:55:56 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:55:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 06:55:58 2021
Terminated at Mon Sep  6 07:10:49 2021
Results reported at Mon Sep  6 07:10:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin369 192.836 -2.0271 334972801 335232001 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 :                                   715.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            893 sec.

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

