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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1067
RA = 192.836, Dec = -2.0271
tmin = 515894401, tmax = 516153601
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='950482', job_status='RUN', time_executed='2021-09-06 07:11:14.401116', time_epoch_executed='1630937474.4' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1067'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950482

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950482/ft1_4FGL_J1251.3-0201_daily_bin1067.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950482/ft2_4FGL_J1251.3-0201_daily_bin1067.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950482/ft1_4FGL_J1251.3-0201_daily_bin1067.fits outfile=/scratch/kocevski/950482/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1067.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=515894401.0 tmax=516153601.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.81
user 3.51
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/950482/ft2_4FGL_J1251.3-0201_daily_bin1067.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/950482/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1067.fits evtable="EVENTS" outfile="/scratch/kocevski/950482/ft1_filtered_4FGL_J1251.3-0201_daily_bin1067.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/950482/ft1_filtered_4FGL_J1251.3-0201_daily_bin1067.fits" evtable="EVENTS" scfile=/scratch/kocevski/950482/ft2_4FGL_J1251.3-0201_daily_bin1067.fits sctable="SC_DATA" outfile=/scratch/kocevski/950482/ltcube_515894401_516153601_4FGL_J1251.3-0201_daily_bin1067.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/950482/ft2_4FGL_J1251.3-0201_daily_bin1067.fits
.....................!
real 12.19
user 11.72
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950482/ft1_filtered_4FGL_J1251.3-0201_daily_bin1067.fits evtable="EVENTS" scfile=/scratch/kocevski/950482/ft2_4FGL_J1251.3-0201_daily_bin1067.fits sctable="SC_DATA" expcube=/scratch/kocevski/950482/ltcube_515894401_516153601_4FGL_J1251.3-0201_daily_bin1067.fits outfile=/scratch/kocevski/950482/expmap_515894401_516153601_4FGL_J1251.3-0201_daily_bin1067.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/950482/ltcube_515894401_516153601_4FGL_J1251.3-0201_daily_bin1067.fits
.....................!
real 191.95
user 185.67
sys 5.41

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/950482/ft1_filtered_4FGL_J1251.3-0201_daily_bin1067.fits scfile=/scratch/kocevski/950482/ft2_4FGL_J1251.3-0201_daily_bin1067.fits outfile=/scratch/kocevski/950482/cmap_515894401_516153601_4FGL_J1251.3-0201_daily_bin1067.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.60
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950482/ft1_filtered_4FGL_J1251.3-0201_daily_bin1067.fits scfile=/scratch/kocevski/950482/ft2_4FGL_J1251.3-0201_daily_bin1067.fits outfile=/scratch/kocevski/950482/cmap_HighResolution_515894401_516153601_4FGL_J1251.3-0201_daily_bin1067.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.66
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950482/ft1_filtered_4FGL_J1251.3-0201_daily_bin1067.fits evtable="EVENTS" scfile=/scratch/kocevski/950482/ft2_4FGL_J1251.3-0201_daily_bin1067.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950482/Model_4FGL_J1251.3-0201_daily_bin1067.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/950482/ft1_filtered_4FGL_J1251.3-0201_daily_bin1067.fits.....................!
real 71.08
user 68.71
sys 1.40

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.369       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11029E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14580E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.2605       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    29.256       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .91935       1.0000         .10000E-03   10000.    
     8 'norm      '    11.410       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1733       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7127       1.0000         .10000E-03   10000.    
    11 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    49.873       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13990E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10150E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.3420       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15135E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    27.310       1.0000         .10000E-03   10000.    
    19 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.268       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.7690       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3011       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0050       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=   8349.331     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     2799 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.358        28.175        .28003E-05   -.11536E-05
   2  Prefactor     .10000E-03    12.170        .10009E-06** at limit **
   3  Prefactor     .10000E-03    38.675       -.29732E-06** at limit **
   4  norm          5.2661        3.3974       -.13285E-06   -.20179E-03
   5  norm          .10000E-03    1.3083        .19385E-07** at limit **
   6  norm          29.312        36.724        .37835E-05    .21962E-05
   7  Prefactor     .10050E-03    100.82        .33586E-06** at limit **
   8  norm          11.410        1.2214       -.72947E-07    .61006E-03
   9  Prefactor     6.1734        6.2674       -.99695E-07    .12966E-04
  10  Prefactor     6.7205        12.086       -.52675E-07   -.83734E-04
  11  norm          .10000E-03    .87089       -.18067E-06** at limit **
  12  Prefactor     .10000E-03    1.9357       -.66169E-07** at limit **
  13  Prefactor     49.855        40.857        .11946E-04    .88506E-05
  14  Prefactor     .10000E-03    42.371        .10059E-05** at limit **
  15  norm          .10000E-03    11.571        .22619E-07** at limit **
  16  norm          4.3421        .49307        .32627E-08   -.94510E-04
  17  Prefactor     .10000E-03    48.107       -.20902E-06** at limit **
  18  norm          27.318        17.612        .61934E-07   -.16292E-04
  19  norm          .10000E-03    4.8676        .59220E-08** at limit **
  20  Prefactor     19.276        27.398        .13935E-05   -.14934E-04
  21  Prefactor     .10000E-03    7.6485       -.81404E-09** at limit **
  22  norm          7.7682        2.7151        .17615E-07   -.21766E-03
  23  Normalizat    1.3012        .26662       -.12178E-05    .41977E-04
  24  Prefactor     1.0050        .17886       -.23221E-08   -.90510E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.3578
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.26612
  norm       = 0.0001
  norm       = 29.3124
  Prefactor  = 0.000100504
  norm       = 11.4101
  Prefactor  = 6.17338
  Prefactor  = 6.72054
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.8553
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.34211
  Prefactor  = 0.0001
  norm       = 27.3178
  norm       = 0.0001
  Prefactor  = 19.2759
  Prefactor  = 0.0001
  norm       = 7.76825
  Normalizat = 1.30119
  Prefactor  = 1.00502
 **********
 **   18 **HESSE 
 **********

 FCN=   8349.331     FROM HESSE     STATUS=OK           405 CALLS     3204 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.358        28.173        .63882E-04   -1.4452    
   2  Prefactor     .10000E-03    12.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    39.237        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.2661        3.3797        .12882E-03   -1.5249    
   5  norm          .10000E-03    1.3238        .10198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          29.312        36.733        .74071E-04   -1.4625    
   7  Prefactor     .10050E-03    100.64        .50000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.410        1.2225        .30200E-04   -1.5032    
   9  Prefactor     6.1734        6.2684        .16158E-03   -1.5211    
  10  Prefactor     6.7205        12.086        .15487E-03   -1.5189    
  11  norm          .10000E-03    2.8226        .16170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.9379        .12415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     49.855        40.804        .56785E-04   -1.4295    
  14  Prefactor     .10000E-03    42.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.3421        .49448        .20509E-04   -1.5291    
  17  Prefactor     .10000E-03    48.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          27.318        17.603        .76660E-04   -1.4662    
  19  norm          .10000E-03    4.8719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.276        27.515        .91244E-04   -1.4830    
  21  Prefactor     .10000E-03    7.7015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.7682        2.7195        .84023E-04   -1.5150    
  23  Normalizat    1.3012        .32014        .38480E-03   -.83531    
  24  Prefactor     1.0050        .21475        .30727E-03   -.92562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.32625e-11
Minuit parameter uncertainties:
  1  28.1822
  2  4.33815e-07
  3  3.50891e-05
  4  3.37977
  5  2.48642e-06
  6  36.7614
  7  0.014272
  8  1.2225
  9  6.26907
  10  12.0904
  11  1.97915e-05
  12  2.0906e-06
  13  40.8265
  14  2.5305e-06
  15  7.67528e-06
  16  0.494481
  17  6.08343e-06
  18  17.6066
  19  1.13129e-06
  20  27.5328
  21  6.53042e-06
  22  2.7195
  23  0.320626
  24  0.214929
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  7.675e-06  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.005e+00  2.149e-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.301e+00  3.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/950482/likelihoodResults_515894401_516153601_4FGL_J1251.3-0201_daily_bin1067.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) = 8349.33190109
delta logL = -0.000409345433582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8349.33149174
delta logL = 3.70164343622e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9455       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3012       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0050       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=   8349.331     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      235 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10028E-03    558.34        .18142E-02** at limit **
   2  alpha         1.8967        2.9578        .50000        .11642E-05
   3  Normalizat    1.3012        .47515E-01    .38480E-03    .66342E-03
   4  Prefactor     1.0050        .34063E-01    .30727E-03    .96989E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100283
  alpha      = 1.89671
  Normalizat = 1.30119
  Prefactor  = 1.00502
 **********
 **   18 **HESSE 
 **********

 FCN=   8349.331     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10028E-03    1860.8        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8967        2.9699        .50000       -.24372    
   3  Normalizat    1.3012        .11570        .76960E-04   -.83531    
   4  Prefactor     1.0050        .82947E-01    .61453E-04   -.92562    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.39227e-08
Minuit parameter uncertainties:
  1  0.0474692
  2  3857.69
  3  0.115721
  4  0.0829575
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950482': 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): 102
logL (Free Index) = 8349.33149172
delta logL = 2.34413164435e-08

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.003e-04  4.747e-02  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.897e+00  3.858e+03  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.005e+00  8.296e-02  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.301e+00  1.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/950482/cmap_HighResolution_515894401_516153601_4FGL_J1251.3-0201_daily_bin1067.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.93e-05', job_status='DONE', photon_flux_upper_limit='4.24e-08', time_completed='2021-09-06 07:25:41.853727', job_id='950482', GAL2='1.01', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1630938341.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.34e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1067' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:25:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 950482: <4FGL_J1251.3-0201_daily_bin1067> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1067 192.836 -2.0271 515894401 516153601 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 :                                   859.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             364.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            890 sec.

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

