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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin905
RA = 192.836, Dec = -2.0271
tmin = 473904001, tmax = 474163201
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='949004', job_status='RUN', time_executed='2021-09-06 07:09:50.860662', time_epoch_executed='1630937390.86' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/949004

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/949004/ft1_4FGL_J1251.3-0201_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/949004/ft2_4FGL_J1251.3-0201_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/949004/ft1_4FGL_J1251.3-0201_daily_bin905.fits outfile=/scratch/kocevski/949004/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin905.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=473904001.0 tmax=474163201.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 6.94
user 4.81
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/949004/ft1_filtered_4FGL_J1251.3-0201_daily_bin905.fits" evtable="EVENTS" scfile=/scratch/kocevski/949004/ft2_4FGL_J1251.3-0201_daily_bin905.fits sctable="SC_DATA" outfile=/scratch/kocevski/949004/ltcube_473904001_474163201_4FGL_J1251.3-0201_daily_bin905.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/949004/ft2_4FGL_J1251.3-0201_daily_bin905.fits
.....................!
real 12.64
user 11.72
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/949004/ft1_filtered_4FGL_J1251.3-0201_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/949004/ft2_4FGL_J1251.3-0201_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/949004/ltcube_473904001_474163201_4FGL_J1251.3-0201_daily_bin905.fits outfile=/scratch/kocevski/949004/expmap_473904001_474163201_4FGL_J1251.3-0201_daily_bin905.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/949004/ltcube_473904001_474163201_4FGL_J1251.3-0201_daily_bin905.fits
.....................!
real 193.41
user 186.51
sys 4.67

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/949004/ft1_filtered_4FGL_J1251.3-0201_daily_bin905.fits scfile=/scratch/kocevski/949004/ft2_4FGL_J1251.3-0201_daily_bin905.fits outfile=/scratch/kocevski/949004/cmap_473904001_474163201_4FGL_J1251.3-0201_daily_bin905.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/949004/ft1_filtered_4FGL_J1251.3-0201_daily_bin905.fits scfile=/scratch/kocevski/949004/ft2_4FGL_J1251.3-0201_daily_bin905.fits outfile=/scratch/kocevski/949004/cmap_HighResolution_473904001_474163201_4FGL_J1251.3-0201_daily_bin905.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.77
user 0.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/949004/ft1_filtered_4FGL_J1251.3-0201_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/949004/ft2_4FGL_J1251.3-0201_daily_bin905.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/949004/Model_4FGL_J1251.3-0201_daily_bin905.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/949004/ft1_filtered_4FGL_J1251.3-0201_daily_bin905.fits.....................!
real 46.42
user 42.94
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .78570       1.0000         .10000E-03   10000.    
     4 'norm      '    1.6726       1.0000         .10000E-03   10000.    
     5 'norm      '    3.7226       1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    101.52       1.0000         .10000E-03   10000.    
     8 'norm      '    3.2069       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    54.071       1.0000         .10000E-03   10000.    
    11 'norm      '    2.3408       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21854E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.850       1.0000         .10000E-03   10000.    
    14 'Prefactor '    63.008       1.0000         .10000E-03   10000.    
    15 'norm      '    2.9570       1.0000         .10000E-03   10000.    
    16 'norm      '    1.9057       1.0000         .10000E-03   10000.    
    17 'Prefactor '    80.532       1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .17930E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10344E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6034       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81561       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=   4925.999     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2852 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.853       -.79700E-07** at limit **
   2  Prefactor     .10000E-03    20.941       -.49971E-07** at limit **
   3  Prefactor     .78636        21.033        .71563E-05    .85896E-04
   4  norm          1.6722        2.7160       -.47270E-06   -.28452E-03
   5  norm          3.7222        4.9361        .27182E-06    .31040E-05
   6  norm          .10000E-03    37.243       -.12789E-06** at limit **
   7  Prefactor     101.48        197.27       -.37769E-06   -.87727E-05
   8  norm          3.2070        1.0226       -.43903E-07   -.12836E-03
   9  Prefactor     .10000E-03    5.2188        .16489E-07** at limit **
  10  Prefactor     54.065        22.459        .15082E-06    .83564E-04
  11  norm          2.3399        2.5606        .24732E-06    .10621E-03
  12  Prefactor     .10004E-03    9.8827       -.18589E-05** at limit **
  13  Prefactor     20.939        50.745       -.21007E-06    .39780E-04
  14  Prefactor     63.083        88.697        .26004E-05    .69691E-04
  15  norm          2.9693        57.266       -.12312E-06   -.59491E-05
  16  norm          1.9057        .51079       -.12364E-06   -.18542E-03
  17  Prefactor     80.572        66.735        .58755E-06    .44131E-04
  18  norm          .10000E-03    4.7458        .64592E-07** at limit **
  19  norm          .10029E-03    11.879        .50410E-06** at limit **
  20  Prefactor     .10000E-03    9.1437       -.37771E-07** at limit **
  21  Prefactor     .10000E-03    5.0593       -.47500E-07** at limit **
  22  norm          .10009E-03    .90677       -.23605E-06** at limit **
  23  Normalizat    1.6035        .30186       -.18492E-05    .77970E-04
  24  Prefactor     .81573        .21001        .11734E-05    .10942E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.786363
  norm       = 1.67217
  norm       = 3.72215
  norm       = 0.0001
  Prefactor  = 101.482
  norm       = 3.20696
  Prefactor  = 0.0001
  Prefactor  = 54.0645
  norm       = 2.33994
  Prefactor  = 0.000100042
  Prefactor  = 20.9385
  Prefactor  = 63.0829
  norm       = 2.96929
  norm       = 1.9057
  Prefactor  = 80.5724
  norm       = 0.0001
  norm       = 0.000100292
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100092
  Normalizat = 1.60345
  Prefactor  = 0.815734
 **********
 **   18 **HESSE 
 **********

 FCN=   4925.999     FROM HESSE     STATUS=OK           409 CALLS     3261 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .78636        21.912        .49546E-03   -1.5531    
   4  norm          1.6722        2.6815        .13744E-03   -1.5449    
   5  norm          3.7222        4.9332        .16387E-03   -1.5322    
   6  norm          .10000E-03    37.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     101.48        197.22        .19952E-03   -1.3690    
   8  norm          3.2070        1.0222        .36018E-04   -1.5350    
   9  Prefactor     .10000E-03    5.2372        .15658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     54.065        22.462        .54548E-04   -1.4236    
  11  norm          2.3399        2.5455        .10863E-03   -1.5402    
  12  Prefactor     .10004E-03    27.230        .38479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.939        50.671        .87718E-04   -1.4792    
  14  Prefactor     63.083        90.071        .50553E-04   -1.4118    
  15  norm          2.9693        57.406        .23616E-03   -1.5363    
  16  norm          1.9057        .51913        .22094E-04   -1.5432    
  17  Prefactor     80.572        66.817        .22377E-03   -1.3910    
  18  norm          .10000E-03    4.7513        .14933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10029E-03    13.967        .79241E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.1643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.0796        .15416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10009E-03    21.184        .12597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.6035        .35853        .30442E-03   -.74911    
  24  Prefactor     .81573        .24883        .29204E-03   -.99151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77139e-09
Minuit parameter uncertainties:
  1  6.91031e-06
  2  1.49045e-05
  3  8.30489
  4  2.68166
  5  4.93369
  6  2.37003e-05
  7  198.517
  8  1.0222
  9  3.74338e-06
  10  22.466
  11  2.54562
  12  0.00214473
  13  50.7753
  14  90.2663
  15  26.1402
  16  0.519127
  17  66.8796
  18  4.52256e-06
  19  0.00403678
  20  1.94485e-06
  21  2.50201e-06
  22  0.00278663
  23  0.359104
  24  0.249176
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  2.969e+00  2.614e+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:  8.157e-01  2.492e-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.603e+00  3.591e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/949004/likelihoodResults_473904001_474163201_4FGL_J1251.3-0201_daily_bin905.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): 102
logL (Free Index) = 4925.90435213
delta logL = 0.0946859941132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4925.86199566
delta logL = 0.137042460454

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .47240       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5215       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5500       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84095       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4925.862     FROM MIGRAD    STATUS=FAILED        96 CALLS      313 TOTAL
                     EDM=   .32E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46963        85.153        .89063E-04   -.18228E-03
   2  alpha         4.5240        4.6616        .50262E-01    .20838E-03
   3  Normalizat    1.5508        .22896        .30824E-03   -.14776E-03
   4  Prefactor     .84023        .16333        .28805E-03   -.52626E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4925.862     FROM SIMPLEX   STATUS=UNCHANGED     97 CALLS      410 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46963        85.153        .16421E-03   -.18228E-03
   2  alpha         4.5240        4.6616        .59268E-02    .20838E-03
   3  Normalizat    1.5508        .22896        .13173E-03   -.14776E-03
   4  Prefactor     .84023        .16333        .10143E-03   -.52626E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4925.862     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      438 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46956        89.095        .35625E-05   -.15509E-03
   2  alpha         4.5241        4.7275        .10052E-01    .29495E-05
   3  Normalizat    1.5508        .33361        .61648E-04    .66536E-04
   4  Prefactor     .84024        .23590        .57610E-04   -.14986E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.469556
  alpha      = 4.52408
  Normalizat = 1.55083
  Prefactor  = 0.840237
 **********
 **   18 **HESSE 
 **********

 FCN=   4925.862     FROM HESSE     STATUS=OK            25 CALLS      463 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .46956        9.4008        .71250E-06   -1.5571    
   2  alpha         4.5241        4.7196        .40210E-03    .94352    
   3  Normalizat    1.5508        .35219        .12330E-04   -.76360    
   4  Prefactor     .84024        .24750        .11522E-04   -.98262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.42472e-10
Minuit parameter uncertainties:
  1  4.2023
  2  4.07263
  3  0.352752
  4  0.247829
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/949004': 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) = 4925.86199103
delta logL = 0.13704709474

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  4.696e-01  4.202e+00  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  4.524e+00  4.073e+00  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  1.558e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.195e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  8.402e-01  2.478e-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.551e+00  3.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 192.836 -2.027

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/949004/cmap_HighResolution_473904001_474163201_4FGL_J1251.3-0201_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-05', job_status='DONE', photon_flux_upper_limit='8.22e-08', time_completed='2021-09-06 07:20:49.054888', job_id='949004', GAL2='0.84', fit_tolerance='1e-08', EG2='1.55', EG='1.60', time_epoch_completed='1630938049.05', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.37e-01', ts2='0.30', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='905' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:20:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 949004: <4FGL_J1251.3-0201_daily_bin905> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin905> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 07:06:41 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:06:42 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:06:42 2021
Terminated at Mon Sep  6 07:20:49 2021
Results reported at Mon Sep  6 07:20:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin905 192.836 -2.0271 473904001 474163201 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 :                                   640.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            848 sec.

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

