/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 52 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 = 7511
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1329
RA = 192.836, Dec = -2.0271
tmin = 583804801, tmax = 584064001
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='951867', job_status='RUN', time_executed='2021-09-06 07:16:44.991047', time_epoch_executed='1630937804.99' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1329'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/951867

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/951867/ft1_4FGL_J1251.3-0201_daily_bin1329.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/951867/ft2_4FGL_J1251.3-0201_daily_bin1329.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/951867/ft1_4FGL_J1251.3-0201_daily_bin1329.fits outfile=/scratch/kocevski/951867/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1329.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=583804801.0 tmax=584064001.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 9.79
user 3.25
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/951867/ft1_filtered_4FGL_J1251.3-0201_daily_bin1329.fits" evtable="EVENTS" scfile=/scratch/kocevski/951867/ft2_4FGL_J1251.3-0201_daily_bin1329.fits sctable="SC_DATA" outfile=/scratch/kocevski/951867/ltcube_583804801_584064001_4FGL_J1251.3-0201_daily_bin1329.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/951867/ft2_4FGL_J1251.3-0201_daily_bin1329.fits
.....................!
real 12.67
user 11.30
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/951867/ft1_filtered_4FGL_J1251.3-0201_daily_bin1329.fits evtable="EVENTS" scfile=/scratch/kocevski/951867/ft2_4FGL_J1251.3-0201_daily_bin1329.fits sctable="SC_DATA" expcube=/scratch/kocevski/951867/ltcube_583804801_584064001_4FGL_J1251.3-0201_daily_bin1329.fits outfile=/scratch/kocevski/951867/expmap_583804801_584064001_4FGL_J1251.3-0201_daily_bin1329.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/951867/ltcube_583804801_584064001_4FGL_J1251.3-0201_daily_bin1329.fits
.....................!
real 198.08
user 185.34
sys 5.30

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/951867/ft1_filtered_4FGL_J1251.3-0201_daily_bin1329.fits scfile=/scratch/kocevski/951867/ft2_4FGL_J1251.3-0201_daily_bin1329.fits outfile=/scratch/kocevski/951867/cmap_583804801_584064001_4FGL_J1251.3-0201_daily_bin1329.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/951867/ft1_filtered_4FGL_J1251.3-0201_daily_bin1329.fits scfile=/scratch/kocevski/951867/ft2_4FGL_J1251.3-0201_daily_bin1329.fits outfile=/scratch/kocevski/951867/cmap_HighResolution_583804801_584064001_4FGL_J1251.3-0201_daily_bin1329.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=192.836 yref=-2.0271 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/951867/ft1_filtered_4FGL_J1251.3-0201_daily_bin1329.fits evtable="EVENTS" scfile=/scratch/kocevski/951867/ft2_4FGL_J1251.3-0201_daily_bin1329.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/951867/Model_4FGL_J1251.3-0201_daily_bin1329.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/951867/ft1_filtered_4FGL_J1251.3-0201_daily_bin1329.fits.....................!
real 56.40
user 54.10
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.4930       1.0000         .10000E-03   10000.    
     5 'norm      '    6.0993       1.0000         .10000E-03   10000.    
     6 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.673       1.0000         .10000E-03   10000.    
     8 'norm      '    .63679       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.168       1.0000         .10000E-03   10000.    
    11 'norm      '    3.1786       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4072       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9659       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    32.992       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.238       1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.495       1.0000         .10000E-03   10000.    
    22 'norm      '    .28438E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0088       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2681       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=   6657.345     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2734 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5892       -.84311E-06** at limit **
   2  Prefactor     .10000E-03    42.114        .11547E-04** at limit **
   3  Prefactor     .10000E-03    4.8876        .20243E-06** at limit **
   4  norm          3.4933        2.6413        .40160E-07   -.15615E-03
   5  norm          6.0989        3.9255       -.12565E-06   -.32481E-03
   6  norm          .10000E-03    19.010       -.13156E-04** at limit **
   7  Prefactor     29.634        85.188       -.65279E-04   -.46241E-06
   8  norm          .63677        .47800       -.40229E-07   -.95539E-03
   9  Prefactor     .10000E-03    2.7332       -.53452E-07** at limit **
  10  Prefactor     38.167        18.686        .27594E-06   -.72687E-05
  11  norm          3.1785        2.0287       -.15562E-06   -.56162E-03
  12  Prefactor     .10000E-03    2.7971       -.90703E-07** at limit **
  13  Prefactor     5.4300        59.131        .51530E-04   -.86264E-05
  14  Prefactor     .10000E-03    61.869       -.22286E-04** at limit **
  15  norm          .10000E-03    8.4380       -.14610E-05** at limit **
  16  norm          2.9659        .44819        .55723E-08    .51067E-04
  17  Prefactor     .10000E-03    52.491        .12281E-04** at limit **
  18  norm          32.992        16.021        .13989E-06   -.19076E-03
  19  norm          .10000E-03    6.5622        .13069E-05** at limit **
  20  Prefactor     27.236        20.632       -.26748E-06   -.82918E-04
  21  Prefactor     27.494        13.881        .11903E-06   -.17177E-03
  22  norm          .10127E-03    .71203        .90122E-06** at limit **
  23  Normalizat    1.0089        .26155       -.16682E-05   -.20425E-03
  24  Prefactor     1.2680        .18534       -.54098E-06   -.25941E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.49328
  norm       = 6.09895
  norm       = 0.0001
  Prefactor  = 29.6337
  norm       = 0.636765
  Prefactor  = 0.0001
  Prefactor  = 38.1669
  norm       = 3.17845
  Prefactor  = 0.0001
  Prefactor  = 5.43004
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.96587
  Prefactor  = 0.0001
  norm       = 32.9917
  norm       = 0.0001
  Prefactor  = 27.2357
  Prefactor  = 27.4936
  norm       = 0.000101274
  Normalizat = 1.00895
  Prefactor  = 1.26799
 **********
 **   18 **HESSE 
 **********

 FCN=   6657.345     FROM HESSE     STATUS=OK           397 CALLS     3131 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    42.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.8978        .17609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.4933        2.6377        .11136E-03   -1.5334    
   5  norm          6.0989        3.9171        .11982E-03   -1.5214    
   6  norm          .10000E-03    19.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.634        85.213        .73551E-04   -1.4619    
   8  norm          .63677        .45959        .45429E-03   -1.5548    
   9  Prefactor     .10000E-03    2.7359        .13173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     38.167        18.688        .64876E-04   -1.4472    
  11  norm          3.1785        2.0221        .86917E-04   -1.5351    
  12  Prefactor     .10000E-03    2.8043        .13326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.4300        58.818        .17281E-03   -1.5242    
  14  Prefactor     .10000E-03    62.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.4405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9659        .44890        .20103E-04   -1.5364    
  17  Prefactor     .10000E-03    52.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          32.992        16.003        .69763E-04   -1.4559    
  19  norm          .10000E-03    6.5851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.236        20.664        .76760E-04   -1.4664    
  21  Prefactor     27.494        13.871        .76402E-04   -1.4659    
  22  norm          .10127E-03    19.050        .13171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0089        .30694        .37325E-03   -.92731    
  24  Prefactor     1.2680        .21886        .25211E-03   -.84264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13645e-08
Minuit parameter uncertainties:
  1  1.66827e-06
  2  9.22219e-05
  3  4.10486e-06
  4  2.6378
  5  3.91727
  6  3.02388e-05
  7  85.5663
  8  0.459589
  9  3.23266e-06
  10  18.6908
  11  2.0221
  12  1.03518e-05
  13  35.7873
  14  6.91501e-05
  15  1.39645e-05
  16  0.448898
  17  1.26064e-05
  18  16.0053
  19  1.36622e-06
  20  20.6696
  21  13.8727
  22  0.00985527
  23  0.307484
  24  0.219022
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  1.396e-05  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.268e+00  2.190e-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.009e+00  3.075e-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.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/951867/likelihoodResults_583804801_584064001_4FGL_J1251.3-0201_daily_bin1329.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): 0
logL (Free Index) = 6657.34556417
delta logL = -0.000532568838025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6657.34503161
delta logL = -3.03498381982e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9472       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2680       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=   6657.345     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      245 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1716.3        .18142E-02** at limit **
   2  alpha         1.7990        4.1003        .17000       -.14712E-07
   3  Normalizat    1.0089        .15895        .37325E-03    .60918E-06
   4  Prefactor     1.2680        .11943        .25211E-03    .90189E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.79895
  Normalizat = 1.00895
  Prefactor  = 1.26799
 **********
 **   18 **HESSE 
 **********

 FCN=   6657.345     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.5351        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7990        3.7915        .68002E-02   -.28423    
   3  Normalizat    1.0089        .28786        .14930E-04   -.92731    
   4  Prefactor     1.2680        .21643        .10084E-04   -.84264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03991e-11
Minuit parameter uncertainties:
  1  8.25291e-05
  2  416.001
  3  0.288306
  4  0.216579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/951867': 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) = 6657.34503154
delta logL = 6.51525624562e-08

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  8.253e-05  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.799e+00  4.160e+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.268e+00  2.166e-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.009e+00  2.883e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/951867/cmap_HighResolution_583804801_584064001_4FGL_J1251.3-0201_daily_bin1329.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.79e-05', job_status='DONE', photon_flux_upper_limit='4.04e-08', time_completed='2021-09-06 07:29:55.508076', job_id='951867', GAL2='1.27', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1630938595.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='6.52e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1329' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:29:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 951867: <4FGL_J1251.3-0201_daily_bin1329> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin1329> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 07:15:31 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:15:32 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:15:32 2021
Terminated at Mon Sep  6 07:29:56 2021
Results reported at Mon Sep  6 07:29:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1329 192.836 -2.0271 583804801 584064001 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 :                                   718.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            865 sec.

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

