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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1397
RA = 192.836, Dec = -2.0271
tmin = 601430401, tmax = 601689601
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='951975', job_status='RUN', time_executed='2021-09-06 07:16:23.575377', time_epoch_executed='1630937783.58' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1397'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/951975

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/951975/ft1_4FGL_J1251.3-0201_daily_bin1397.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/951975/ft2_4FGL_J1251.3-0201_daily_bin1397.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/951975/ft1_4FGL_J1251.3-0201_daily_bin1397.fits outfile=/scratch/kocevski/951975/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1397.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=601430401.0 tmax=601689601.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.71
user 3.36
sys 0.22

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/951975/ft1_filtered_4FGL_J1251.3-0201_daily_bin1397.fits evtable="EVENTS" scfile=/scratch/kocevski/951975/ft2_4FGL_J1251.3-0201_daily_bin1397.fits sctable="SC_DATA" expcube=/scratch/kocevski/951975/ltcube_601430401_601689601_4FGL_J1251.3-0201_daily_bin1397.fits outfile=/scratch/kocevski/951975/expmap_601430401_601689601_4FGL_J1251.3-0201_daily_bin1397.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/951975/ltcube_601430401_601689601_4FGL_J1251.3-0201_daily_bin1397.fits
.....................!
real 191.45
user 185.37
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/951975/ft1_filtered_4FGL_J1251.3-0201_daily_bin1397.fits scfile=/scratch/kocevski/951975/ft2_4FGL_J1251.3-0201_daily_bin1397.fits outfile=/scratch/kocevski/951975/cmap_601430401_601689601_4FGL_J1251.3-0201_daily_bin1397.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.65
user 0.35
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/951975/ft1_filtered_4FGL_J1251.3-0201_daily_bin1397.fits evtable="EVENTS" scfile=/scratch/kocevski/951975/ft2_4FGL_J1251.3-0201_daily_bin1397.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/951975/Model_4FGL_J1251.3-0201_daily_bin1397.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/951975/ft1_filtered_4FGL_J1251.3-0201_daily_bin1397.fits.....................!
real 66.34
user 64.79
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.803       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.535       1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.4431       1.0000         .10000E-03   10000.    
     6 'norm      '    .20634E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13977E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6314       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.455       1.0000         .10000E-03   10000.    
    11 'norm      '    .11951E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11169E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10192E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.6378       1.0000         .10000E-03   10000.    
    17 'Prefactor '    86.061       1.0000         .10000E-03   10000.    
    18 'norm      '    .10725E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .13204E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11096E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .39611E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3085       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1281       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=   8641.877     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2802 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.811        16.117        .52910E-07    .13800E-04
   2  Prefactor     .10000E-03    9.5394       -.21387E-06** at limit **
   3  Prefactor     23.554        14.879        .67424E-07    .28958E-04
   4  norm          .10000E-03    .83920        .53258E-08** at limit **
   5  norm          5.4316        4.1077        .35558E-05   -.52511E-03
   6  norm          .10000E-03    33.715       -.74256E-06** at limit **
   7  Prefactor     .10003E-03    366.51       -.90085E-05** at limit **
   8  norm          1.6321        .71962       -.33542E-06   -.96004E-04
   9  Prefactor     .10000E-03    4.5148       -.46179E-08** at limit **
  10  Prefactor     12.471        11.375        .24628E-06   -.18235E-04
  11  norm          .10000E-03    .60778       -.10477E-06** at limit **
  12  Prefactor     .10000E-03    3.2806        .66809E-07** at limit **
  13  Prefactor     .10000E-03    16.735        .40284E-06** at limit **
  14  Prefactor     .10000E-03    11.950       -.18874E-06** at limit **
  15  norm          .10000E-03    10.147        .16811E-06** at limit **
  16  norm          2.6378        .35525       -.30811E-07    .47742E-03
  17  Prefactor     86.183        57.605        .75902E-05    .63877E-03
  18  norm          .10000E-03    7.0652        .97989E-06** at limit **
  19  norm          .10000E-03    18.614       -.22254E-06** at limit **
  20  Prefactor     .10000E-03    59.924        .57568E-06** at limit **
  21  Prefactor     .88015E-01    4.5612       -.10773E-05    .64782E-03
  22  norm          .10000E-03    .91644        .15495E-06** at limit **
  23  Normalizat    1.3082        .22963       -.24871E-05    .14959E-03
  24  Prefactor     1.1279        .15848        .71702E-06   -.45634E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.8114
  Prefactor  = 0.0001
  Prefactor  = 23.5544
  norm       = 0.0001
  norm       = 5.43162
  norm       = 0.0001
  Prefactor  = 0.000100028
  norm       = 1.63209
  Prefactor  = 0.0001
  Prefactor  = 12.4709
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.63784
  Prefactor  = 86.1826
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0880153
  norm       = 0.0001
  Normalizat = 1.30825
  Prefactor  = 1.1279
 **********
 **   18 **HESSE 
 **********

 FCN=   8641.877     FROM HESSE     STATUS=OK           403 CALLS     3205 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.811        16.113        .94923E-04   -1.4864    
   2  Prefactor     .10000E-03    9.5427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.554        14.830        .82569E-04   -1.4737    
   4  norm          .10000E-03    .84076        .82986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.4316        4.1965        .73882E-03   -1.5242    
   6  norm          .10000E-03    33.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    369.94        .20525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6321        .71278        .44643E-04   -1.5452    
   9  Prefactor     .10000E-03    4.5310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.471        11.371        .11350E-03   -1.5002    
  11  norm          .10000E-03    3.6607        .13827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.2999        .16442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6378        .35654        .19270E-04   -1.5383    
  17  Prefactor     86.183        60.875        .21653E-03   -1.3849    
  18  norm          .10000E-03    7.1767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    19.417        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    61.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .88015E-01    7.7734        .62523E-01   -1.5649    
  22  norm          .10000E-03    2.0346        .17119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3082        .27833        .33194E-03   -.83321    
  24  Prefactor     1.1279        .19372        .25735E-03   -.88580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9371e-09
Minuit parameter uncertainties:
  1  16.1168
  2  3.0129e-05
  3  14.8328
  4  9.59632e-07
  5  4.19677
  6  0.000242668
  7  0.00642768
  8  0.712779
  9  4.12186e-06
  10  11.3725
  11  3.16974e-05
  12  5.70097e-06
  13  6.82298e-05
  14  2.16431e-05
  15  1.16301e-05
  16  0.356545
  17  60.9196
  18  4.37817e-05
  19  2.63038e-06
  20  0.000102128
  21  1.65358
  22  1.14394e-05
  23  0.278645
  24  0.193843
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  1.163e-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.128e+00  1.938e-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.308e+00  2.786e-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.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/951975/likelihoodResults_601430401_601689601_4FGL_J1251.3-0201_daily_bin1397.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) = 8641.87719456
delta logL = -0.000467517696961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8641.87672753
delta logL = -4.93999323226e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10943E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9464       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3082       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1279       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=   8641.877     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      247 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1750.1        .18142E-02** at limit **
   2  alpha         1.8400        3.2897        .17002       -.13373E-08
   3  Normalizat    1.3082        .10696        .33194E-03    .74662E-05
   4  Prefactor     1.1279        .78154E-01    .25735E-03    .10426E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.84005
  Normalizat = 1.30824
  Prefactor  = 1.1279
 **********
 **   18 **HESSE 
 **********

 FCN=   8641.877     FROM HESSE     STATUS=OK            27 CALLS      274 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.439        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8400        3.3746        .68008E-01   -.26715    
   3  Normalizat    1.3082        .26139        .13278E-04   -.83321    
   4  Prefactor     1.1279        .19104        .10294E-04   -.88580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.68397e-12
Minuit parameter uncertainties:
  1  5.55837e-05
  2  366.11
  3  0.261651
  4  0.191161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/951975': 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) = 8641.87672699
delta logL = 4.62314346805e-08

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  5.558e-05  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.840e+00  3.661e+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.128e+00  1.912e-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.308e+00  2.617e-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/951975/cmap_HighResolution_601430401_601689601_4FGL_J1251.3-0201_daily_bin1397.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.82e-05', job_status='DONE', photon_flux_upper_limit='4.09e-08', time_completed='2021-09-06 07:30:50.306095', job_id='951975', GAL2='1.13', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630938650.31', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='4.62e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1397' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:30:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 951975: <4FGL_J1251.3-0201_daily_bin1397> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin1397> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 07:15:39 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:15:41 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:41 2021
Terminated at Mon Sep  6 07:30:51 2021
Results reported at Mon Sep  6 07:30:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1397 192.836 -2.0271 601430401 601689601 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 :                                   847.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            912 sec.

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

