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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1128
RA = 192.836, Dec = -2.0271
tmin = 531705601, tmax = 531964801
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='950546', job_status='RUN', time_executed='2021-09-06 07:11:15.603004', time_epoch_executed='1630937475.6' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950546

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950546/ft1_4FGL_J1251.3-0201_daily_bin1128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950546/ft2_4FGL_J1251.3-0201_daily_bin1128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950546/ft1_4FGL_J1251.3-0201_daily_bin1128.fits outfile=/scratch/kocevski/950546/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1128.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=531705601.0 tmax=531964801.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.98
user 3.73
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950546/ft1_filtered_4FGL_J1251.3-0201_daily_bin1128.fits" evtable="EVENTS" scfile=/scratch/kocevski/950546/ft2_4FGL_J1251.3-0201_daily_bin1128.fits sctable="SC_DATA" outfile=/scratch/kocevski/950546/ltcube_531705601_531964801_4FGL_J1251.3-0201_daily_bin1128.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/950546/ft2_4FGL_J1251.3-0201_daily_bin1128.fits
.....................!
real 11.90
user 11.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950546/ft1_filtered_4FGL_J1251.3-0201_daily_bin1128.fits evtable="EVENTS" scfile=/scratch/kocevski/950546/ft2_4FGL_J1251.3-0201_daily_bin1128.fits sctable="SC_DATA" expcube=/scratch/kocevski/950546/ltcube_531705601_531964801_4FGL_J1251.3-0201_daily_bin1128.fits outfile=/scratch/kocevski/950546/expmap_531705601_531964801_4FGL_J1251.3-0201_daily_bin1128.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/950546/ltcube_531705601_531964801_4FGL_J1251.3-0201_daily_bin1128.fits
.....................!
real 190.63
user 185.61
sys 4.70

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/950546/ft1_filtered_4FGL_J1251.3-0201_daily_bin1128.fits scfile=/scratch/kocevski/950546/ft2_4FGL_J1251.3-0201_daily_bin1128.fits outfile=/scratch/kocevski/950546/cmap_531705601_531964801_4FGL_J1251.3-0201_daily_bin1128.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.74
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.043       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.0142       1.0000         .10000E-03   10000.    
     5 'norm      '    .46164       1.0000         .10000E-03   10000.    
     6 'norm      '    4.4475       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0760       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7218       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.243       1.0000         .10000E-03   10000.    
    11 'norm      '    7.5092       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3030       1.0000         .10000E-03   10000.    
    13 'Prefactor '    56.615       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    57.828       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6309       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.4735       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .28135       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0450       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1016       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8980.423     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2728 TOTAL
                     EDM=   .71E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5845         .0000    ** at limit **
   2  Prefactor     19.042        17.489         .0000       -.82049E-04
   3  Prefactor     .10000E-03    3.6387         .0000    ** at limit **
   4  norm          2.0137        1.6102         .0000       -.45268E-04
   5  norm          .46113        1.3572         .0000        .16296E-02
   6  norm          4.4445        18.958         .0000       -.59630E-04
   7  Prefactor     .10001E-03    84.218         .0000    ** at limit **
   8  norm          1.0757        .47152         .0000       -.24757E-03
   9  Prefactor     4.7203        5.6204         .0000       -.14995E-02
  10  Prefactor     24.243        11.336         .0000        .14800E-03
  11  norm          7.5090        1.9121         .0000       -.35789E-04
  12  Prefactor     1.3028        13.341         .0000        .17004E-01
  13  Prefactor     56.608        39.851         .0000        .38985E-02
  14  Prefactor     .10000E-03    21.043         .0000    ** at limit **
  15  norm          57.819        32.950         .0000        .42484E-02
  16  norm          1.6309        .27348         .0000       -.37989E-03
  17  Prefactor     .10000E-03    28.065         .0000    ** at limit **
  18  norm          5.4735        6.8159         .0000        .31907E-03
  19  norm          .10000E-03    11.285         .0000    ** at limit **
  20  Prefactor     .10000E-03    4.1095         .0000    ** at limit **
  21  Prefactor     .10000E-03    7.1720         .0000    ** at limit **
  22  norm          .28165        .85252         .0000        .21677E-02
  23  Normalizat    1.0450        .19733         .0000        .85820E-04
  24  Prefactor     1.1016        .14003         .0000        .11224E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.042
  Prefactor  = 0.0001
  norm       = 2.01375
  norm       = 0.461133
  norm       = 4.44445
  Prefactor  = 0.00010001
  norm       = 1.07569
  Prefactor  = 4.72028
  Prefactor  = 24.2431
  norm       = 7.50902
  Prefactor  = 1.30281
  Prefactor  = 56.6084
  Prefactor  = 0.0001
  norm       = 57.8189
  norm       = 1.63087
  Prefactor  = 0.0001
  norm       = 5.47353
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.281651
  Normalizat = 1.04505
  Prefactor  = 1.10159
 **********
 **   18 **HESSE 
 **********

 FCN=   8980.423     FROM HESSE     STATUS=OK           403 CALLS     3131 TOTAL
                     EDM=   .98E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.042        17.471        .91782E-04   -1.4835    
   3  Prefactor     .10000E-03    3.6579        .17643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.0137        1.6080        .10421E-03   -1.5424    
   5  norm          .46113        1.4748        .17604E-02   -1.5572    
   6  norm          4.4445        18.580        .19094E-03   -1.5286    
   7  Prefactor     .10001E-03    84.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0757        .46037        .39790E-04   -1.5501    
   9  Prefactor     4.7203        5.6014        .18518E-03   -1.5273    
  10  Prefactor     24.243        11.338        .81355E-04   -1.4723    
  11  norm          7.5090        1.9113        .62643E-04   -1.5160    
  12  Prefactor     1.3028        13.021        .19344E-02   -1.5480    
  13  Prefactor     56.608        39.763        .53314E-04   -1.4202    
  14  Prefactor     .10000E-03    21.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          57.819        32.546        .52755E-04   -1.4186    
  16  norm          1.6309        .27391        .19217E-04   -1.5453    
  17  Prefactor     .10000E-03    28.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.4735        6.8076        .17175E-03   -1.5240    
  19  norm          .10000E-03    11.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.1128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.3692        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .28165        1.0698        .14440E-02   -1.5602    
  23  Normalizat    1.0450        .23170        .32663E-03   -.91536    
  24  Prefactor     1.1016        .16579        .23768E-03   -.89416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.75162e-08
Minuit parameter uncertainties:
  1  5.18286e-05
  2  17.4753
  3  5.14792e-05
  4  1.60803
  5  1.47487
  6  18.1841
  7  0.00187518
  8  0.460374
  9  5.60204
  10  11.339
  11  1.91132
  12  8.23955
  13  39.7814
  14  0.000142591
  15  32.5565
  16  0.273913
  17  4.85186e-05
  18  6.80852
  19  9.86672e-06
  20  1.90037e-05
  21  3.61713e-06
  22  1.06984
  23  0.231927
  24  0.165864
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  5.782e+01  3.256e+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.102e+00  1.659e-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.045e+00  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.63
Ra Dec: 192.836 -2.027
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 4.96e-08 +/- 2.79e-08
Energy Flux (Fixed Index): 3.43e-05 +/- 1.93e-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) = 8978.13336661
delta logL = 2.28944774444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8978.12793792
delta logL = 2.29487643089

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    30.515       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9736       1.0000          .0000       5.0000    
     3 'Normalizat'    .95544       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1376       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=   8978.128     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      304 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          30.514        26.461        .72531E-04    .10690E-03
   2  alpha         2.9736        .54504        .82493E-02    .38500E-04
   3  Normalizat    .95541        .22607        .33864E-03   -.54923E-04
   4  Prefactor     1.1376        .16652        .23390E-03   -.15700E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 30.5137
  alpha      = 2.97358
  Normalizat = 0.955415
  Prefactor  = 1.13763
 **********
 **   18 **HESSE 
 **********

 FCN=   8978.128     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          30.514        23.293        .29012E-05   -1.4603    
   2  alpha         2.9736        .48026        .32997E-03    .19058    
   3  Normalizat    .95541        .22542        .13546E-04   -.94539    
   4  Prefactor     1.1376        .16622        .46780E-04   -.88273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15515e-11
Minuit parameter uncertainties:
  1  23.3004
  2  0.483373
  3  0.225639
  4  0.166301
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950546': 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) = 8978.12793783
delta logL = 2.29487652961

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  3.051e+01  2.330e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  2.974e+00  4.834e-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.138e+00  1.663e-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:  9.554e-01  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.33
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 2.97 +/- 0.48
Photon Flux (Free Index): 1.34e-07 +/- 6.20e-08
Energy Flux (Free Index): 3.22e-05 +/- 1.29e-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/950546/cmap_HighResolution_531705601_531964801_4FGL_J1251.3-0201_daily_bin1128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.96e-08', energy_flux2='3.22e-05', photon_flux_error='2.79e-08', dlogl='2.29e+00', energy_flux='3.43e-05', photon_flux2='1.34e-07', job_status='DONE', time_completed='2021-09-06 07:24:07.231561', photon_index_error2='0.48', photon_index2='2.97', ts='6.63', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.29e-05', EG='1.05', time_epoch_completed='1630938247.23', return_code='0', job_id='950546', GAL2='1.14', EG2='0.96', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='6.20e-08', ts2='11.33', photon_index='1.95' WHERE bin_id='1128' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:24:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 950546: <4FGL_J1251.3-0201_daily_bin1128> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin1128> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 07:11:00 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:11:02 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:11:02 2021
Terminated at Mon Sep  6 07:24:08 2021
Results reported at Mon Sep  6 07:24:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1128 192.836 -2.0271 531705601 531964801 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 :                                   767.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            788 sec.

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

