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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1438
RA = 192.836, Dec = -2.0271
tmin = 612057601, tmax = 612316801
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='952038', job_status='RUN', time_executed='2021-09-06 07:18:56.947028', time_epoch_executed='1630937936.95' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952038

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952038/ft1_4FGL_J1251.3-0201_daily_bin1438.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952038/ft2_4FGL_J1251.3-0201_daily_bin1438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952038/ft1_4FGL_J1251.3-0201_daily_bin1438.fits outfile=/scratch/kocevski/952038/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1438.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=612057601.0 tmax=612316801.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 4.60
user 4.28
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/952038/ft2_4FGL_J1251.3-0201_daily_bin1438.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/952038/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1438.fits evtable="EVENTS" outfile="/scratch/kocevski/952038/ft1_filtered_4FGL_J1251.3-0201_daily_bin1438.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/952038/ft1_filtered_4FGL_J1251.3-0201_daily_bin1438.fits" evtable="EVENTS" scfile=/scratch/kocevski/952038/ft2_4FGL_J1251.3-0201_daily_bin1438.fits sctable="SC_DATA" outfile=/scratch/kocevski/952038/ltcube_612057601_612316801_4FGL_J1251.3-0201_daily_bin1438.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/952038/ft2_4FGL_J1251.3-0201_daily_bin1438.fits
.....................!
real 11.86
user 11.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952038/ft1_filtered_4FGL_J1251.3-0201_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/952038/ft2_4FGL_J1251.3-0201_daily_bin1438.fits sctable="SC_DATA" expcube=/scratch/kocevski/952038/ltcube_612057601_612316801_4FGL_J1251.3-0201_daily_bin1438.fits outfile=/scratch/kocevski/952038/expmap_612057601_612316801_4FGL_J1251.3-0201_daily_bin1438.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/952038/ltcube_612057601_612316801_4FGL_J1251.3-0201_daily_bin1438.fits
.....................!
real 191.60
user 185.89
sys 4.90

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/952038/ft1_filtered_4FGL_J1251.3-0201_daily_bin1438.fits scfile=/scratch/kocevski/952038/ft2_4FGL_J1251.3-0201_daily_bin1438.fits outfile=/scratch/kocevski/952038/cmap_612057601_612316801_4FGL_J1251.3-0201_daily_bin1438.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/952038/ft1_filtered_4FGL_J1251.3-0201_daily_bin1438.fits scfile=/scratch/kocevski/952038/ft2_4FGL_J1251.3-0201_daily_bin1438.fits outfile=/scratch/kocevski/952038/cmap_HighResolution_612057601_612316801_4FGL_J1251.3-0201_daily_bin1438.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/952038/ft1_filtered_4FGL_J1251.3-0201_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/952038/ft2_4FGL_J1251.3-0201_daily_bin1438.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/952038/Model_4FGL_J1251.3-0201_daily_bin1438.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/952038/ft1_filtered_4FGL_J1251.3-0201_daily_bin1438.fits.....................!
real 51.32
user 49.78
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.166       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.3960       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.4247       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .72104       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.3284       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .34127       1.0000         .10000E-03   10000.    
    11 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    60.485       1.0000         .10000E-03   10000.    
    15 'norm      '    3.7723       1.0000         .10000E-03   10000.    
    16 'norm      '    4.6936       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    47.105       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.450       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10496E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5694       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .66401       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=   5895.553     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2811 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.162        27.511        .69185E-06    .34443E-04
   2  Prefactor     .10000E-03    10.468        .18299E-06** at limit **
   3  Prefactor     .10000E-03    16.619        .24833E-05** at limit **
   4  norm          2.3949        3.0052       -.62553E-06   -.27863E-04
   5  norm          .10000E-03    1.0109        .48166E-06** at limit **
   6  norm          6.4198        34.863        .35432E-06   -.28612E-06
   7  Prefactor     .10006E-03    189.33        .12399E-04** at limit **
   8  norm          .72105        .62302       -.16009E-06   -.27999E-03
   9  Prefactor     6.3277        7.8252       -.90979E-05    .62610E-04
  10  Prefactor     .28260        155.00        .45611E-04   -.88270E-05
  11  norm          .10000E-03    .84548        .18329E-06** at limit **
  12  Prefactor     .10000E-03    5.6488       -.39923E-06** at limit **
  13  Prefactor     .10000E-03    22.036       -.54003E-06** at limit **
  14  Prefactor     60.496        69.845       -.21307E-05   -.16415E-04
  15  norm          3.7546        34.119       -.53695E-05   -.20892E-04
  16  norm          4.6933        .58538        .11289E-06    .23554E-03
  17  Prefactor     .10000E-03    29.742        .78272E-06** at limit **
  18  norm          47.102        18.379       -.84849E-07   -.27389E-04
  19  norm          .10000E-03    4.1704        .65810E-07** at limit **
  20  Prefactor     13.442        19.649       -.72292E-06   -.24437E-04
  21  Prefactor     .10000E-03    5.7426        .27135E-06** at limit **
  22  norm          .10000E-03    .92158        .10909E-06** at limit **
  23  Normalizat    1.5695        .25688        .43622E-06   -.15196E-03
  24  Prefactor     .66406        .17490       -.50694E-06    .17684E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.1622
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.39489
  norm       = 0.0001
  norm       = 6.41981
  Prefactor  = 0.000100059
  norm       = 0.721045
  Prefactor  = 6.32765
  Prefactor  = 0.282597
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.4957
  norm       = 3.75457
  norm       = 4.69333
  Prefactor  = 0.000100001
  norm       = 47.1017
  norm       = 0.0001
  Prefactor  = 13.4418
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.56949
  Prefactor  = 0.664056
 **********
 **   18 **HESSE 
 **********

 FCN=   5895.553     FROM HESSE     STATUS=OK           401 CALLS     3212 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.162        27.501        .57190E-04   -1.4304    
   2  Prefactor     .10000E-03    10.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.3949        2.9779        .14165E-03   -1.5398    
   5  norm          .10000E-03    1.0148        .75344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.4198        34.824        .15834E-03   -1.5201    
   7  Prefactor     .10006E-03    189.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .72105        .60326        .50357E-03   -1.5538    
   9  Prefactor     6.3277        7.7946        .79780E-03   -1.5205    
  10  Prefactor     .28260        148.63        .44787E-02   -1.5602    
  11  norm          .10000E-03    1.8031        .13600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.6703        .17808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     60.496        70.309        .51590E-04   -1.4151    
  15  norm          3.7546        34.041        .20786E-03   -1.5320    
  16  norm          4.6933        .59180        .18813E-04   -1.5275    
  17  Prefactor     .10000E-03    29.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          47.102        18.371        .58422E-04   -1.4334    
  19  norm          .10000E-03    4.1727        .15314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.442        19.655        .10922E-03   -1.4975    
  21  Prefactor     .10000E-03    5.7643        .17969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.6014        .14271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5695        .30767        .29234E-03   -.75844    
  24  Prefactor     .66406        .20847        .30112E-03   -1.0495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63472e-08
Minuit parameter uncertainties:
  1  27.508
  2  2.84136e-06
  3  0.000268882
  4  2.97804
  5  2.34523e-06
  6  29.9308
  7  0.00673734
  8  0.603264
  9  7.79582
  10  12.9922
  11  6.66225e-05
  12  6.84872e-05
  13  0.000125705
  14  70.4054
  15  22.6273
  16  0.591799
  17  0.000251258
  18  18.3733
  19  1.78966e-06
  20  19.6641
  21  1.04144e-05
  22  4.55238e-05
  23  0.308037
  24  0.20871
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  3.755e+00  2.263e+01  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:  6.641e-01  2.087e-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.569e+00  3.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 192.836 -2.027
Photon Flux Upper Limit: 7.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/952038/likelihoodResults_612057601_612316801_4FGL_J1251.3-0201_daily_bin1438.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) = 5895.43090786
delta logL = 0.122414377837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5895.42409645
delta logL = 0.129225779309

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3889       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4870       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67342       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5895.424     FROM MIGRAD    STATUS=FAILED        84 CALLS      284 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3927        599.51        .21978E-03    .29901E-02
   2  alpha         3.4880        3.8845        .24042E-01    .34035E-03
   3  Normalizat    1.5395        .37733        .29427E-03    .11608E-02
   4  Prefactor     .67402        .23115        .29888E-03    .11404E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5895.424     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      377 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3927        599.51        .34806E-03    .29901E-02
   2  alpha         3.4880        3.8845        .35803E-02    .34035E-03
   3  Normalizat    1.5395        .37733        .16693E-03    .11608E-02
   4  Prefactor     .67402        .23115        .19312E-03    .11404E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5895.424     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      409 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3952        22.199        .87914E-05    .81210E-04
   2  alpha         3.4873        4.0637        .96168E-03    .93983E-05
   3  Normalizat    1.5395        .30681        .58854E-04   -.13244E-03
   4  Prefactor     .67401        .21089        .59777E-04    .57816E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.39516
  alpha      = 3.48734
  Normalizat = 1.53947
  Prefactor  = 0.674009
 **********
 **   18 **HESSE 
 **********

 FCN=   5895.424     FROM HESSE     STATUS=OK            23 CALLS      432 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3952        20.829        .17583E-05   -1.5339    
   2  alpha         3.4873        4.0332        .38467E-04    .40600    
   3  Normalizat    1.5395        .30622        .11771E-04   -.76675    
   4  Prefactor     .67401        .21059        .11955E-04   -1.0455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36483e-10
Minuit parameter uncertainties:
  1  16.8271
  2  3.18812
  3  0.306588
  4  0.210834
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952038': 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) = 5895.42409169
delta logL = 0.129230548859

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  3.395e+00  1.683e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  3.487e+00  3.188e+00  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:  6.740e-01  2.108e-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.539e+00  3.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/952038/cmap_HighResolution_612057601_612316801_4FGL_J1251.3-0201_daily_bin1438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-05', job_status='DONE', photon_flux_upper_limit='7.01e-08', time_completed='2021-09-06 07:31:22.198040', job_id='952038', GAL2='0.67', fit_tolerance='1e-08', EG2='1.54', EG='1.57', time_epoch_completed='1630938682.2', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='1.29e-01', ts2='0.30', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1438' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:31:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 952038: <4FGL_J1251.3-0201_daily_bin1438> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1438 192.836 -2.0271 612057601 612316801 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 :                                   697.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            938 sec.

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

