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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin430
RA = 192.836, Dec = -2.0271
tmin = 350784001, tmax = 351043201
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='946763', job_status='RUN', time_executed='2021-09-06 07:03:27.241407', time_epoch_executed='1630937007.24' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/946763

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/946763/ft1_4FGL_J1251.3-0201_daily_bin430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/946763/ft2_4FGL_J1251.3-0201_daily_bin430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/946763/ft1_4FGL_J1251.3-0201_daily_bin430.fits outfile=/scratch/kocevski/946763/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin430.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=350784001.0 tmax=351043201.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.39
user 3.15
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/946763/ft2_4FGL_J1251.3-0201_daily_bin430.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/946763/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin430.fits evtable="EVENTS" outfile="/scratch/kocevski/946763/ft1_filtered_4FGL_J1251.3-0201_daily_bin430.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.59
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/946763/ft1_filtered_4FGL_J1251.3-0201_daily_bin430.fits" evtable="EVENTS" scfile=/scratch/kocevski/946763/ft2_4FGL_J1251.3-0201_daily_bin430.fits sctable="SC_DATA" outfile=/scratch/kocevski/946763/ltcube_350784001_351043201_4FGL_J1251.3-0201_daily_bin430.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/946763/ft2_4FGL_J1251.3-0201_daily_bin430.fits
.....................!
real 12.73
user 11.97
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/946763/ft1_filtered_4FGL_J1251.3-0201_daily_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/946763/ft2_4FGL_J1251.3-0201_daily_bin430.fits sctable="SC_DATA" expcube=/scratch/kocevski/946763/ltcube_350784001_351043201_4FGL_J1251.3-0201_daily_bin430.fits outfile=/scratch/kocevski/946763/expmap_350784001_351043201_4FGL_J1251.3-0201_daily_bin430.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/946763/ltcube_350784001_351043201_4FGL_J1251.3-0201_daily_bin430.fits
.....................!
real 194.90
user 185.83
sys 4.85

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/946763/ft1_filtered_4FGL_J1251.3-0201_daily_bin430.fits scfile=/scratch/kocevski/946763/ft2_4FGL_J1251.3-0201_daily_bin430.fits outfile=/scratch/kocevski/946763/cmap_350784001_351043201_4FGL_J1251.3-0201_daily_bin430.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/946763/ft1_filtered_4FGL_J1251.3-0201_daily_bin430.fits scfile=/scratch/kocevski/946763/ft2_4FGL_J1251.3-0201_daily_bin430.fits outfile=/scratch/kocevski/946763/cmap_HighResolution_350784001_351043201_4FGL_J1251.3-0201_daily_bin430.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.58
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/946763/ft1_filtered_4FGL_J1251.3-0201_daily_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/946763/ft2_4FGL_J1251.3-0201_daily_bin430.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/946763/Model_4FGL_J1251.3-0201_daily_bin430.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/946763/ft1_filtered_4FGL_J1251.3-0201_daily_bin430.fits.....................!
real 49.62
user 47.45
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11865E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10246E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    6.1708       1.0000         .10000E-03   10000.    
     5 'norm      '    1.2037       1.0000         .10000E-03   10000.    
     6 'norm      '    .64263E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    110.15       1.0000         .10000E-03   10000.    
     8 'norm      '    1.9135       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7373       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.198       1.0000         .10000E-03   10000.    
    11 'norm      '    7.0361       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4212       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4601       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .58919E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .19613E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .89819       1.0000         .10000E-03   10000.    
    17 'Prefactor '    70.175       1.0000         .10000E-03   10000.    
    18 'norm      '    .17014E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.3234       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12559E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.2313       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1879       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79069       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=   5947.511     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     2461 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    18.243        .10393E-06** at limit **
   2  Prefactor     .10000E-03    14.988        .56285E-08** at limit **
   3  Prefactor     .10000E-03    8.2833       -.98238E-09** at limit **
   4  norm          6.1472        2.9140       -.19693E-08    .25869E-04
   5  norm          1.2135        3.4356       -.45786E-07   -.36913E-04
   6  norm          .10000E-03    60.648        .91770E-08** at limit **
   7  Prefactor     100.40        97.941        .32556E-08   -.12763E-05
   8  norm          1.9120        .67416        .29354E-08    .63907E-04
   9  Prefactor     6.7932        6.6611        .20525E-07   -.12046E-05
  10  Prefactor     10.959        10.702       -.20755E-07    .23802E-03
  11  norm          7.0350        2.1449       -.45380E-09    .34789E-04
  12  Prefactor     3.3532        1.9252       -.35877E-06   -.27439E-03
  13  Prefactor     6.8968        17.389       -.99798E-07   -.24584E-04
  14  Prefactor     .10000E-03    11.846        .41936E-10** at limit **
  15  norm          .10000E-03    16.217        .30426E-07** at limit **
  16  norm          .90178        .28925        .46350E-09    .94515E-04
  17  Prefactor     65.020        72.872       -.62117E-08   -.27020E-05
  18  norm          .10002E-03    18.696       -.10336E-06** at limit **
  19  norm          5.4332        9.2977        .14527E-07   -.44857E-03
  20  Prefactor     .10000E-03    23.246        .13140E-07** at limit **
  21  Prefactor     .10000E-03    2.8954       -.10429E-08** at limit **
  22  norm          1.2297        1.4177       -.82674E-08   -.16081E-04
  23  Normalizat    1.1902        .22335        .34553E-07   -.57543E-05
  24  Prefactor     .79083        .15806        .44218E-07   -.64105E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.1472
  norm       = 1.21345
  norm       = 0.0001
  Prefactor  = 100.395
  norm       = 1.91198
  Prefactor  = 6.79316
  Prefactor  = 10.9587
  norm       = 7.03504
  Prefactor  = 3.35324
  Prefactor  = 6.89679
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.901775
  Prefactor  = 65.0201
  norm       = 0.000100019
  norm       = 5.43316
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.22965
  Normalizat = 1.19015
  Prefactor  = 0.790828
 **********
 **   18 **HESSE 
 **********

 FCN=   5947.511     FROM HESSE     STATUS=OK           399 CALLS     2860 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    18.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.3444        .20746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.1472        2.9113        .87498E-04   -1.5212    
   5  norm          1.2135        3.4225        .21421E-03   -1.5488    
   6  norm          .10000E-03    60.737        .18835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     100.40        97.893        .38324E-04   -1.3701    
   8  norm          1.9120        .66589        .33119E-04   -1.5431    
   9  Prefactor     6.7932        6.6802        .15459E-03   -1.5187    
  10  Prefactor     10.959        10.709        .11972E-03   -1.5046    
  11  norm          7.0350        2.1465        .58973E-04   -1.5177    
  12  Prefactor     3.3532        6.8706        .10935E-02   -1.5342    
  13  Prefactor     6.8968        17.578        .78952E-03   -1.5183    
  14  Prefactor     .10000E-03    11.849        .21074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    16.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .90178        .28923        .21748E-04   -1.5518    
  17  Prefactor     65.020        72.871        .47919E-04   -1.4094    
  18  norm          .10002E-03    19.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.4332        9.3007        .17419E-03   -1.5242    
  20  Prefactor     .10000E-03    23.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.9023        .12815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.2297        1.3932        .94398E-04   -1.5486    
  23  Normalizat    1.1902        .26485        .28089E-03   -.86908    
  24  Prefactor     .79083        .18757        .24578E-03   -1.0007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66281e-09
Minuit parameter uncertainties:
  1  0.00122699
  2  4.85037e-05
  3  1.46119e-06
  4  2.91135
  5  3.42307
  6  6.3573e-06
  7  98.0508
  8  0.665893
  9  6.68092
  10  10.7107
  11  2.14649
  12  6.87223
  13  17.5911
  14  8.44761e-06
  15  0.000233251
  16  0.289234
  17  72.9715
  18  0.00119834
  19  9.30313
  20  0.000229068
  21  1.78229e-06
  22  1.39323
  23  0.265153
  24  0.187722
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  2.333e-04  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:  7.908e-01  1.877e-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.190e+00  2.652e-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.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.35e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/946763/likelihoodResults_350784001_351043201_4FGL_J1251.3-0201_daily_bin430.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) = 5947.51126664
delta logL = -0.000292910313874

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5947.5109758
delta logL = -2.06724234886e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0309       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1902       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79083       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=   5947.511     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      280 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    84.574        .18142E-01** at limit **
   2  alpha         2.1812        3.4340        .50000        .90722E-08
   3  Normalizat    1.1902        .12233E-01    .28089E-03    .12516E-02
   4  Prefactor     .79083        .89628E-02    .24578E-03    .13730E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.18122
  Normalizat = 1.19016
  Prefactor  = 0.79083
 **********
 **   18 **HESSE 
 **********

 FCN=   5947.511     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    578.12        .30592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1812        3.7371        .50000       -.12786    
   3  Normalizat    1.1902        .33061E-01    .56179E-04   -.86908    
   4  Prefactor     .79083        .24224E-01    .49157E-04   -1.0007    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.98337e-10
Minuit parameter uncertainties:
  1  0.000234342
  2  2334.07
  3  0.0330614
  4  0.0242241
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/946763': 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) = 5947.51097364
delta logL = 9.46211002884e-08

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  2.343e-04  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  2.181e+00  2.334e+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:  7.908e-01  2.422e-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.190e+00  3.306e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/946763/cmap_HighResolution_350784001_351043201_4FGL_J1251.3-0201_daily_bin430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.35e-05', job_status='DONE', photon_flux_upper_limit='4.84e-08', time_completed='2021-09-06 07:14:38.995577', job_id='946763', GAL2='0.79', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630937679.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='9.46e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='430' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:14:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 946763: <4FGL_J1251.3-0201_daily_bin430> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin430> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 07:00:26 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:00:28 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:00:28 2021
Terminated at Mon Sep  6 07:14:40 2021
Results reported at Mon Sep  6 07:14:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin430 192.836 -2.0271 350784001 351043201 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 :                                   652.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             279.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            854 sec.

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

