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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1375
RA = 192.836, Dec = -2.0271
tmin = 595728001, tmax = 595987201
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='951941', job_status='RUN', time_executed='2021-09-06 07:16:12.512374', time_epoch_executed='1630937772.51' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/951941

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/951941/ft1_4FGL_J1251.3-0201_daily_bin1375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/951941/ft2_4FGL_J1251.3-0201_daily_bin1375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/951941/ft1_4FGL_J1251.3-0201_daily_bin1375.fits outfile=/scratch/kocevski/951941/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1375.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=595728001.0 tmax=595987201.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 2.55
user 2.37
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/951941/ft1_filtered_4FGL_J1251.3-0201_daily_bin1375.fits" evtable="EVENTS" scfile=/scratch/kocevski/951941/ft2_4FGL_J1251.3-0201_daily_bin1375.fits sctable="SC_DATA" outfile=/scratch/kocevski/951941/ltcube_595728001_595987201_4FGL_J1251.3-0201_daily_bin1375.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/951941/ft2_4FGL_J1251.3-0201_daily_bin1375.fits
.....................!
real 12.41
user 12.06
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/951941/ft1_filtered_4FGL_J1251.3-0201_daily_bin1375.fits evtable="EVENTS" scfile=/scratch/kocevski/951941/ft2_4FGL_J1251.3-0201_daily_bin1375.fits sctable="SC_DATA" expcube=/scratch/kocevski/951941/ltcube_595728001_595987201_4FGL_J1251.3-0201_daily_bin1375.fits outfile=/scratch/kocevski/951941/expmap_595728001_595987201_4FGL_J1251.3-0201_daily_bin1375.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/951941/ltcube_595728001_595987201_4FGL_J1251.3-0201_daily_bin1375.fits
.....................!
real 191.57
user 185.44
sys 5.45

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/951941/ft1_filtered_4FGL_J1251.3-0201_daily_bin1375.fits scfile=/scratch/kocevski/951941/ft2_4FGL_J1251.3-0201_daily_bin1375.fits outfile=/scratch/kocevski/951941/cmap_595728001_595987201_4FGL_J1251.3-0201_daily_bin1375.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/951941/ft1_filtered_4FGL_J1251.3-0201_daily_bin1375.fits scfile=/scratch/kocevski/951941/ft2_4FGL_J1251.3-0201_daily_bin1375.fits outfile=/scratch/kocevski/951941/cmap_HighResolution_595728001_595987201_4FGL_J1251.3-0201_daily_bin1375.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.55
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/951941/ft1_filtered_4FGL_J1251.3-0201_daily_bin1375.fits evtable="EVENTS" scfile=/scratch/kocevski/951941/ft2_4FGL_J1251.3-0201_daily_bin1375.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/951941/Model_4FGL_J1251.3-0201_daily_bin1375.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/951941/ft1_filtered_4FGL_J1251.3-0201_daily_bin1375.fits.....................!
real 56.30
user 54.89
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.7272       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5376       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4947       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.424       1.0000         .10000E-03   10000.    
    11 'norm      '    .91486       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.653       1.0000         .10000E-03   10000.    
    14 'Prefactor '    169.33       1.0000         .10000E-03   10000.    
    15 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.0800       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10157E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.059       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10832E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2909       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88341       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=   6998.462     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2810 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2380       -.26285E-07** at limit **
   2  Prefactor     .10000E-03    7.8938       -.31494E-06** at limit **
   3  Prefactor     .10000E-03    6.7341       -.55551E-06** at limit **
   4  norm          2.7273        1.8217       -.27175E-07   -.34234E-03
   5  norm          .10000E-03    2.0411       -.99482E-06** at limit **
   6  norm          .10000E-03    75.717        .14084E-06** at limit **
   7  Prefactor     .10000E-03    43.401       -.10197E-05** at limit **
   8  norm          1.5373        .56466        .82307E-07   -.32023E-02
   9  Prefactor     1.4966        6.7507       -.38244E-05    .38600E-03
  10  Prefactor     12.424        11.055       -.12219E-06    .17273E-04
  11  norm          .91389        1.0476       -.55534E-06   -.32191E-02
  12  Prefactor     .10000E-03    4.2461       -.21937E-06** at limit **
  13  Prefactor     11.654        25.296        .22020E-07    .70029E-05
  14  Prefactor     169.35        82.866        .74800E-07    .56096E-05
  15  norm          .10000E-03    15.349       -.78928E-07** at limit **
  16  norm          2.0798        .44801       -.17933E-07    .39729E-02
  17  Prefactor     .10000E-03    46.585        .57227E-06** at limit **
  18  norm          .10003E-03    107.11       -.16443E-04** at limit **
  19  norm          .10000E-03    5.9073       -.65937E-07** at limit **
  20  Prefactor     20.056        22.267       -.30313E-06    .66615E-04
  21  Prefactor     .10000E-03    4.6695       -.35920E-07** at limit **
  22  norm          .10000E-03    1.0518       -.76095E-06** at limit **
  23  Normalizat    1.2911        .22279        .14036E-05    .12422E-03
  24  Prefactor     .88333        .15438       -.21563E-06    .22990E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.72728
  norm       = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.000100002
  norm       = 1.53728
  Prefactor  = 1.49658
  Prefactor  = 12.4238
  norm       = 0.913895
  Prefactor  = 0.0001
  Prefactor  = 11.6544
  Prefactor  = 169.349
  norm       = 0.0001
  norm       = 2.07978
  Prefactor  = 0.000100001
  norm       = 0.00010003
  norm       = 0.0001
  Prefactor  = 20.0559
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.29109
  Prefactor  = 0.883326
 **********
 **   18 **HESSE 
 **********

 FCN=   6998.462     FROM HESSE     STATUS=OK           401 CALLS     3211 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.9091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.8149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.7273        1.8255        .89370E-04   -1.5378    
   5  norm          .10000E-03    2.2002        .23713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    76.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    43.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5373        .56709        .35243E-04   -1.5460    
   9  Prefactor     1.4966        7.0056        .17525E-02   -1.5463    
  10  Prefactor     12.424        11.054        .11365E-03   -1.5003    
  11  norm          .91389        1.0096        .93709E-03   -1.5517    
  12  Prefactor     .10000E-03    4.2768        .16842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.654        25.281        .11735E-03   -1.5025    
  14  Prefactor     169.35        83.951        .15502E-03   -1.3098    
  15  norm          .10000E-03    15.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0798        .45197        .22015E-04   -1.5420    
  17  Prefactor     .10000E-03    46.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10003E-03    105.55        .55726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.9117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.056        22.229        .89428E-04   -1.4812    
  21  Prefactor     .10000E-03    4.6750        .17655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.5700        .16163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2911        .26308        .30170E-03   -.83833    
  24  Prefactor     .88333        .18050        .25636E-03   -.96726    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08556e-09
Minuit parameter uncertainties:
  1  1.57636e-06
  2  6.65334e-05
  3  8.8163e-05
  4  1.82557
  5  0.000106123
  6  0.000447642
  7  0.000536129
  8  0.567088
  9  6.47694
  10  11.0558
  11  1.00966
  12  4.99197e-05
  13  25.3046
  14  84.01
  15  3.87145e-05
  16  0.451969
  17  0.000335705
  18  0.00354441
  19  8.06747e-06
  20  22.2381
  21  3.5079e-06
  22  3.4968e-05
  23  0.263349
  24  0.180625
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  3.871e-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:  8.833e-01  1.806e-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.291e+00  2.633e-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.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/951941/likelihoodResults_595728001_595987201_4FGL_J1251.3-0201_daily_bin1375.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) = 6998.46239772
delta logL = -0.000309327617288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6998.38229326
delta logL = 0.0797951285313

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12574       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2557       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89851       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=   6998.382     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      317 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12601        .37605        .58639E-03    .11393E-01
   2  alpha         5.0000        4.9041        .50000    ** at limit **
   3  Normalizat    1.2557        .26646        .30506E-03   -.33131E-04
   4  Prefactor     .89856        .18393        .25435E-03   -.10414E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.126013
  alpha      = 5
  Normalizat = 1.25566
  Prefactor  = 0.898558
 **********
 **   18 **HESSE 
 **********

 FCN=   6998.382     FROM HESSE     STATUS=OK            31 CALLS      348 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12601        .35124        .11728E-03   -1.5637    
   2  alpha         5.0000        4.8056        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2557        .26765        .12202E-04   -.84900    
   4  Prefactor     .89856        .18439        .10174E-04   -.96192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16276e-11
Minuit parameter uncertainties:
  1  0.35125
  2  8.7067e-05
  3  0.26794
  4  0.184517
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/951941': 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) = 6998.38229258
delta logL = 0.079795808465

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.260e-01  3.512e-01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  5.000e+00  8.707e-05  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:  8.986e-01  1.845e-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.256e+00  2.679e-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 -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/951941/cmap_HighResolution_595728001_595987201_4FGL_J1251.3-0201_daily_bin1375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.21e-05', job_status='DONE', photon_flux_upper_limit='4.65e-08', time_completed='2021-09-06 07:28:40.026714', job_id='951941', GAL2='0.90', fit_tolerance='1e-08', EG2='1.26', EG='1.29', time_epoch_completed='1630938520.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='7.98e-02', ts2='0.17', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1375' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:28:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 951941: <4FGL_J1251.3-0201_daily_bin1375> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin1375> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 07:15:36 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:15:37 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:37 2021
Terminated at Mon Sep  6 07:28:40 2021
Results reported at Mon Sep  6 07:28:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1375 192.836 -2.0271 595728001 595987201 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 :                                   732.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            784 sec.

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

