/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 200 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 = 7393
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1251.3-0201_daily_bin307
RA = 192.836, Dec = -2.0271
tmin = 318902401, tmax = 319161601
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='945394', job_status='RUN', time_executed='2021-09-06 06:59:19.093177', time_epoch_executed='1630936759.09' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945394

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945394/ft1_4FGL_J1251.3-0201_daily_bin307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945394/ft2_4FGL_J1251.3-0201_daily_bin307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945394/ft1_4FGL_J1251.3-0201_daily_bin307.fits outfile=/scratch/kocevski/945394/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin307.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=318902401.0 tmax=319161601.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.38
user 3.18
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/945394/ft1_filtered_4FGL_J1251.3-0201_daily_bin307.fits" evtable="EVENTS" scfile=/scratch/kocevski/945394/ft2_4FGL_J1251.3-0201_daily_bin307.fits sctable="SC_DATA" outfile=/scratch/kocevski/945394/ltcube_318902401_319161601_4FGL_J1251.3-0201_daily_bin307.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/945394/ft2_4FGL_J1251.3-0201_daily_bin307.fits
.....................!
real 11.76
user 11.45
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945394/ft1_filtered_4FGL_J1251.3-0201_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/945394/ft2_4FGL_J1251.3-0201_daily_bin307.fits sctable="SC_DATA" expcube=/scratch/kocevski/945394/ltcube_318902401_319161601_4FGL_J1251.3-0201_daily_bin307.fits outfile=/scratch/kocevski/945394/expmap_318902401_319161601_4FGL_J1251.3-0201_daily_bin307.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/945394/ltcube_318902401_319161601_4FGL_J1251.3-0201_daily_bin307.fits
.....................!
real 190.96
user 185.31
sys 5.28

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/945394/ft1_filtered_4FGL_J1251.3-0201_daily_bin307.fits scfile=/scratch/kocevski/945394/ft2_4FGL_J1251.3-0201_daily_bin307.fits outfile=/scratch/kocevski/945394/cmap_318902401_319161601_4FGL_J1251.3-0201_daily_bin307.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.59
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/945394/ft1_filtered_4FGL_J1251.3-0201_daily_bin307.fits scfile=/scratch/kocevski/945394/ft2_4FGL_J1251.3-0201_daily_bin307.fits outfile=/scratch/kocevski/945394/cmap_HighResolution_318902401_319161601_4FGL_J1251.3-0201_daily_bin307.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.59
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/945394/ft1_filtered_4FGL_J1251.3-0201_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/945394/ft2_4FGL_J1251.3-0201_daily_bin307.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/945394/Model_4FGL_J1251.3-0201_daily_bin307.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/945394/ft1_filtered_4FGL_J1251.3-0201_daily_bin307.fits.....................!
real 56.29
user 53.67
sys 1.96

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10914E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.9083       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9529       1.0000         .10000E-03   10000.    
     6 'norm      '    .11102E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11702E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.6683       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.398       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10727E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.570       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1791       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10907E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.973       1.0000         .10000E-03   10000.    
    19 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.992       1.0000         .10000E-03   10000.    
    21 'Prefactor '    41.304       1.0000         .10000E-03   10000.    
    22 'norm      '    .11957E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1608       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1620       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.

 FCN=   6682.293     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2775 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.082        .90712E-02** at limit **
   2  Prefactor     8.8214        33.469        .33573E-02    .10656E-03
   3  Prefactor     .10000E-03    5.1731        .90712E-02** at limit **
   4  norm          .10000E-03    .62733        .90712E-02** at limit **
   5  norm          1.9624        4.3631        .74233E-02    .89774E-03
   6  norm          .10000E-03    18.417        .90712E-02** at limit **
   7  Prefactor     .10014E-03    52.980        .90712E-02** at limit **
   8  norm          2.6679        .81467        .62374E-02    .33149E-03
   9  Prefactor     .10000E-03    5.3436        .90712E-02** at limit **
  10  Prefactor     .10000E-03    5.8010        .90712E-02** at limit **
  11  norm          10.398        2.5681        .31063E-02    .75482E-04
  12  Prefactor     .10000E-03    3.4452        .90712E-02** at limit **
  13  Prefactor     .10000E-03    14.018        .90712E-02** at limit **
  14  Prefactor     .10000E-03    38.592        .90712E-02** at limit **
  15  norm          10.576        26.265        .30809E-02    .48021E-03
  16  norm          1.1792        .31841        .51316E-02   -.22259E-03
  17  Prefactor     .10016E-03    50.344        .90712E-02** at limit **
  18  norm          11.982        12.315        .28943E-02    .90997E-03
  19  norm          .10000E-03    4.4635        .90712E-02** at limit **
  20  Prefactor     13.997        20.750        .26770E-02    .63554E-03
  21  Prefactor     41.293        15.537        .15593E-02    .30424E-03
  22  norm          .10000E-03    .89556        .24887E-01** at limit **
  23  Normalizat    1.1606        .24829        .77517E-01    .22240E-05
  24  Prefactor     1.1622        .17196        .56656E-01   -.12053E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.82139
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.96239
  norm       = 0.0001
  Prefactor  = 0.000100137
  norm       = 2.66788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 10.5763
  norm       = 1.17917
  Prefactor  = 0.000100155
  norm       = 11.9819
  norm       = 0.0001
  Prefactor  = 13.9967
  Prefactor  = 41.2929
  norm       = 0.0001
  Normalizat = 1.16059
  Prefactor  = 1.16218
 **********
 **   18 **HESSE 
 **********

 FCN=   6682.293     FROM HESSE     STATUS=OK           389 CALLS     3164 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.8214        33.124        .13429E-03   -1.5114    
   3  Prefactor     .10000E-03    5.1925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .62872        .63224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9624        4.2776        .21761E-03   -1.5428    
   6  norm          .10000E-03    18.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10014E-03    52.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.6679        .81266        .36474E-04   -1.5381    
   9  Prefactor     .10000E-03    5.3711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.8186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.398        2.5693        .61716E-04   -1.5063    
  12  Prefactor     .10000E-03    3.4517        .14815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    38.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.576        26.259        .12324E-03   -1.5057    
  16  norm          1.1792        .31811        .22722E-04   -1.5491    
  17  Prefactor     .10016E-03    50.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.982        12.309        .11577E-03   -1.5016    
  19  norm          .10000E-03    4.4665        .16867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.997        20.799        .10708E-03   -1.4960    
  21  Prefactor     41.293        15.541        .62372E-04   -1.4422    
  22  norm          .10000E-03    2.8284        .15006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1606        .29438        .34311E-03   -.87829    
  24  Prefactor     1.1622        .20398        .25052E-03   -.87503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.50454e-09
Minuit parameter uncertainties:
  1  3.3793e-06
  2  33.1933
  3  7.38655e-06
  4  1.21853e-07
  5  4.27822
  6  2.5039e-05
  7  0.00540105
  8  0.812665
  9  1.43284e-06
  10  3.92337e-06
  11  2.56931
  12  4.23844e-07
  13  1.13607e-05
  14  0.000441131
  15  26.2877
  16  0.318113
  17  0.00560343
  18  12.312
  19  3.58991e-06
  20  20.8095
  21  15.5425
  22  1.61624e-06
  23  0.2948
  24  0.204119
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.058e+01  2.629e+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:  1.162e+00  2.041e-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.161e+00  2.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/945394/likelihoodResults_318902401_319161601_4FGL_J1251.3-0201_daily_bin307.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) = 6682.01718613
delta logL = 0.276075900721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6682.0154115
delta logL = 0.277850538534

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.6823       1.0000         .10000E-03   10000.    
     2 'alpha     '    .96059       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1694       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1570       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.

 FCN=   6682.015     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      211 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7046        14.876        .32196E-02    .31518E-04
   2  alpha         .96026        .76017        .50000       -.51681E-04
   3  Normalizat    1.1693        .23254        .77253E-01    .22025E-04
   4  Prefactor     1.1570        .17076        .56746E-01    .63324E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.70458
  alpha      = 0.960261
  Normalizat = 1.1693
  Prefactor  = 1.15698
 **********
 **   18 **HESSE 
 **********

 FCN=   6682.015     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7046        18.577        .12878E-03   -1.5085    
   2  alpha         .96026        .93797        .31621E-02   -.66352    
   3  Normalizat    1.1693        .27380        .34194E-03   -.87557    
   4  Prefactor     1.1570        .20137        .25092E-03   -.87666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88789e-12
Minuit parameter uncertainties:
  1  18.5878
  2  0.977617
  3  0.274134
  4  0.2015
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945394': 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) = 6682.01540959
delta logL = 0.277852441847

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  9.705e+00  1.859e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  9.603e-01  9.776e-01  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.157e+00  2.015e-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.169e+00  2.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.21
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/945394/cmap_HighResolution_318902401_319161601_4FGL_J1251.3-0201_daily_bin307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.19e-05', job_status='DONE', photon_flux_upper_limit='7.52e-08', time_completed='2021-09-06 07:11:28.728553', job_id='945394', GAL2='1.16', fit_tolerance='1e-08', EG2='1.17', EG='1.16', time_epoch_completed='1630937488.73', return_code2='0', ts='0.21', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='2.78e-01', ts2='0.76', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='307' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:11:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 945394: <4FGL_J1251.3-0201_daily_bin307> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin307> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 06:55:49 2021
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:55:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 06:55:49 2021
Terminated at Mon Sep  6 07:11:29 2021
Results reported at Mon Sep  6 07:11:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin307 192.836 -2.0271 318902401 319161601 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 :                                   709.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            940 sec.

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

