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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1241
RA = 192.836, Dec = -2.0271
tmin = 560995201, tmax = 561254401
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='950721', job_status='RUN', time_executed='2021-09-06 07:13:55.289611', time_epoch_executed='1630937635.29' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1241'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950721

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950721/ft1_4FGL_J1251.3-0201_daily_bin1241.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950721/ft2_4FGL_J1251.3-0201_daily_bin1241.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950721/ft1_4FGL_J1251.3-0201_daily_bin1241.fits outfile=/scratch/kocevski/950721/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1241.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=560995201.0 tmax=561254401.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.53
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950721/ft1_filtered_4FGL_J1251.3-0201_daily_bin1241.fits" evtable="EVENTS" scfile=/scratch/kocevski/950721/ft2_4FGL_J1251.3-0201_daily_bin1241.fits sctable="SC_DATA" outfile=/scratch/kocevski/950721/ltcube_560995201_561254401_4FGL_J1251.3-0201_daily_bin1241.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/950721/ft2_4FGL_J1251.3-0201_daily_bin1241.fits
.....................!
real 11.89
user 11.45
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950721/ft1_filtered_4FGL_J1251.3-0201_daily_bin1241.fits evtable="EVENTS" scfile=/scratch/kocevski/950721/ft2_4FGL_J1251.3-0201_daily_bin1241.fits sctable="SC_DATA" expcube=/scratch/kocevski/950721/ltcube_560995201_561254401_4FGL_J1251.3-0201_daily_bin1241.fits outfile=/scratch/kocevski/950721/expmap_560995201_561254401_4FGL_J1251.3-0201_daily_bin1241.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/950721/ltcube_560995201_561254401_4FGL_J1251.3-0201_daily_bin1241.fits
.....................!
real 189.91
user 185.08
sys 4.07

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/950721/ft1_filtered_4FGL_J1251.3-0201_daily_bin1241.fits scfile=/scratch/kocevski/950721/ft2_4FGL_J1251.3-0201_daily_bin1241.fits outfile=/scratch/kocevski/950721/cmap_560995201_561254401_4FGL_J1251.3-0201_daily_bin1241.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950721/ft1_filtered_4FGL_J1251.3-0201_daily_bin1241.fits scfile=/scratch/kocevski/950721/ft2_4FGL_J1251.3-0201_daily_bin1241.fits outfile=/scratch/kocevski/950721/cmap_HighResolution_560995201_561254401_4FGL_J1251.3-0201_daily_bin1241.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.61
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950721/ft1_filtered_4FGL_J1251.3-0201_daily_bin1241.fits evtable="EVENTS" scfile=/scratch/kocevski/950721/ft2_4FGL_J1251.3-0201_daily_bin1241.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950721/Model_4FGL_J1251.3-0201_daily_bin1241.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/950721/ft1_filtered_4FGL_J1251.3-0201_daily_bin1241.fits......................!
real 25.04
user 23.65
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    86.172       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10654E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10635E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11139E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.147       1.0000         .10000E-03   10000.    
    11 'norm      '    .10146E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2148       1.0000         .10000E-03   10000.    
    17 'Prefactor '    83.418       1.0000         .10000E-03   10000.    
    18 'norm      '    19.567       1.0000         .10000E-03   10000.    
    19 'norm      '    97.177       1.0000         .10000E-03   10000.    
    20 'Prefactor '    68.451       1.0000         .10000E-03   10000.    
    21 'Prefactor '    63.538       1.0000         .10000E-03   10000.    
    22 'norm      '    .10223E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .10015E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.9910       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1549.887     FROM MIGRAD    STATUS=CONVERGED     99 CALLS     2415 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     86.158        4.3672       -.53322E-05    .43773E-02
   2  Prefactor     .10849E-03    47.547       -.65538E-04** at limit **
   3  Prefactor     .10018E-03    23.327       -.37295E-04** at limit **
   4  norm          .10000E-03    14.452        .38744E-05** at limit **
   5  norm          .10000E-03    11.411        .51998E-06** at limit **
   6  norm          .10728E-03    44.071       -.52925E-04** at limit **
   7  Prefactor     .39060E-02    110.42       -.24256E-03    .25185E-02
   8  norm          .10000E-03    5.7154       -.28121E-06** at limit **
   9  Prefactor     .10000E-03    22.721       -.11057E-04** at limit **
  10  Prefactor     32.137        1.6333       -.22690E-05    .77661E-04
  11  norm          .10012E-03    33.933        .45363E-04** at limit **
  12  Prefactor     .10000E-03    13.158       -.51568E-05** at limit **
  13  Prefactor     .10768E-03    45.155       -.57101E-04** at limit **
  14  Prefactor     .12432E-03    90.432        .18250E-03** at limit **
  15  norm          .10012E-03    23.508       -.36180E-04** at limit **
  16  norm          1.2147        .75172        .42136E-06    .15707E-03
  17  Prefactor     83.416        1.0114       -.11207E-06   -.42702E-03
  18  norm          19.513        10.859       -.26991E-04    .13130E-02
  19  norm          97.174        1.1052       -.48211E-06   -.31760E-03
  20  Prefactor     68.450        1.0252       -.30380E-06    .67691E-04
  21  Prefactor     63.528        2.1528       -.26337E-05    .36692E-03
  22  norm          .10000E-03    6.5181        .17968E-05** at limit **
  23  Normalizat    .10000E-01    6.4815        .14945E-04** at limit **
  24  Prefactor     1.9909        .24354        .58784E-05    .71714E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 86.1579
  Prefactor  = 0.00010849
  Prefactor  = 0.000100179
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.000107277
  Prefactor  = 0.00390598
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 32.1373
  norm       = 0.000100121
  Prefactor  = 0.0001
  Prefactor  = 0.00010768
  Prefactor  = 0.000124321
  norm       = 0.000100124
  norm       = 1.21472
  Prefactor  = 83.4159
  norm       = 19.5126
  norm       = 97.1738
  Prefactor  = 68.4504
  Prefactor  = 63.5282
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.99086
 **********
 **   18 **HESSE 
 **********

 FCN=   1549.887     FROM HESSE     STATUS=OK           447 CALLS     2862 TOTAL
                     EDM=   .38E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     86.158        96.758        .10819E-02   -1.3849    
   2  Prefactor     .10849E-03    148.25        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10018E-03    46.499        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    14.194        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.411        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10728E-03    145.61        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .39060E-02    1175.6        .90712E-02   -1.5696    
   8  norm          .10000E-03    3.1159        .24944E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.701        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     32.137        27.294        .17668E-02   -1.4574    
  11  norm          .10012E-03    32.700        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.151        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10768E-03    146.46        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .12432E-03    99.988        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10012E-03    46.772        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2147        .76541        .57488E-02   -1.5488    
  17  Prefactor     83.416        203.61        .10995E-02   -1.3879    
  18  norm          19.513        40.875        .22636E-02   -1.4824    
  19  norm          97.174        64.557        .10194E-02   -1.3733    
  20  Prefactor     68.450        95.468        .12129E-02   -1.4051    
  21  Prefactor     63.528        43.993        .12586E-02   -1.4112    
  22  norm          .10000E-03    6.4512        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .10000E-01    1.1742        .32094       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.9909        .36922        .51259E-01   -.64579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76604e-06
Minuit parameter uncertainties:
  1  96.9355
  2  0.0711329
  3  0.00576863
  4  5.00208e-05
  5  0.000171698
  6  0.065262
  7  4.31809
  8  6.90968e-05
  9  0.000551627
  10  27.3044
  11  0.00398691
  12  7.73219e-05
  13  0.0672411
  14  0.0987909
  15  0.0048216
  16  0.765411
  17  205.355
  18  40.9341
  19  64.6035
  20  95.6825
  21  44.016
  22  5.46086e-05
  23  2.61773e-06
  24  0.369749
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.001e-04  4.822e-03  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.991e+00  3.697e-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.000e-02  2.618e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.836 -2.027
Photon Flux Upper Limit: 2.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.47e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950721/likelihoodResults_560995201_561254401_4FGL_J1251.3-0201_daily_bin1241.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) = 1549.88674158
delta logL = -0.000101890887436

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1549.88664201
delta logL = -2.31413764595e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9564       1.0000          .0000       5.0000    
     3 'Normalizat'    .10006E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.9909       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=   1549.887     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      290 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1495.8        .17602E-01** at limit **
   2  alpha         1.6876        2.6479        .16821        .11658E-08
   3  Normalizat    .10000E-01    .22388        .16612E-01** at limit **
   4  Prefactor     1.9908        .61766E-01    .22655E-03   -.68296E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.68756
  Normalizat = 0.01
  Prefactor  = 1.99085
 **********
 **   18 **HESSE 
 **********

 FCN=   1549.887     FROM HESSE     STATUS=OK            23 CALLS      313 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    49.139        .26870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6876        3.0820        .67285E-02   -.33098    
   3  Normalizat    .10000E-01    6.4826        .33224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.9908        .23518        .45309E-04   -.64579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6665e-09
Minuit parameter uncertainties:
  1  9.55186e-05
  2  898.302
  3  5.19827e-05
  4  0.235312
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950721': 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) = 1549.88663965
delta logL = 4.40379608335e-08

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  9.552e-05  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.688e+00  8.983e+02  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.991e+00  2.353e-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.000e-02  5.198e-05  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/950721/cmap_HighResolution_560995201_561254401_4FGL_J1251.3-0201_daily_bin1241.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.47e-04', job_status='DONE', photon_flux_upper_limit='2.13e-07', time_completed='2021-09-06 07:22:48.060558', job_id='950721', GAL2='1.99', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630938168.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.99', dlogl='4.40e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1241' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:22:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 950721: <4FGL_J1251.3-0201_daily_bin1241> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin1241> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 07:11:13 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:11:15 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:15 2021
Terminated at Mon Sep  6 07:22:48 2021
Results reported at Mon Sep  6 07:22:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1241 192.836 -2.0271 560995201 561254401 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 :                                   401.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             223.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            695 sec.

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

