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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1423
RA = 192.836, Dec = -2.0271
tmin = 608169601, tmax = 608428801
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='952014', job_status='RUN', time_executed='2021-09-06 07:17:03.683048', time_epoch_executed='1630937823.68' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952014

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952014/ft1_4FGL_J1251.3-0201_daily_bin1423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952014/ft2_4FGL_J1251.3-0201_daily_bin1423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952014/ft1_4FGL_J1251.3-0201_daily_bin1423.fits outfile=/scratch/kocevski/952014/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1423.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=608169601.0 tmax=608428801.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.97
user 3.42
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/952014/ft2_4FGL_J1251.3-0201_daily_bin1423.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/952014/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1423.fits evtable="EVENTS" outfile="/scratch/kocevski/952014/ft1_filtered_4FGL_J1251.3-0201_daily_bin1423.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 1.03
user 0.35
sys 0.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/952014/ft1_filtered_4FGL_J1251.3-0201_daily_bin1423.fits" evtable="EVENTS" scfile=/scratch/kocevski/952014/ft2_4FGL_J1251.3-0201_daily_bin1423.fits sctable="SC_DATA" outfile=/scratch/kocevski/952014/ltcube_608169601_608428801_4FGL_J1251.3-0201_daily_bin1423.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/952014/ft2_4FGL_J1251.3-0201_daily_bin1423.fits
.....................!
real 12.25
user 11.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952014/ft1_filtered_4FGL_J1251.3-0201_daily_bin1423.fits evtable="EVENTS" scfile=/scratch/kocevski/952014/ft2_4FGL_J1251.3-0201_daily_bin1423.fits sctable="SC_DATA" expcube=/scratch/kocevski/952014/ltcube_608169601_608428801_4FGL_J1251.3-0201_daily_bin1423.fits outfile=/scratch/kocevski/952014/expmap_608169601_608428801_4FGL_J1251.3-0201_daily_bin1423.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/952014/ltcube_608169601_608428801_4FGL_J1251.3-0201_daily_bin1423.fits
.....................!
real 196.88
user 184.90
sys 4.95

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/952014/ft1_filtered_4FGL_J1251.3-0201_daily_bin1423.fits scfile=/scratch/kocevski/952014/ft2_4FGL_J1251.3-0201_daily_bin1423.fits outfile=/scratch/kocevski/952014/cmap_608169601_608428801_4FGL_J1251.3-0201_daily_bin1423.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.57
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/952014/ft1_filtered_4FGL_J1251.3-0201_daily_bin1423.fits evtable="EVENTS" scfile=/scratch/kocevski/952014/ft2_4FGL_J1251.3-0201_daily_bin1423.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/952014/Model_4FGL_J1251.3-0201_daily_bin1423.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/952014/ft1_filtered_4FGL_J1251.3-0201_daily_bin1423.fits.....................!
real 60.08
user 57.94
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.713       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10577E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.376       1.0000         .10000E-03   10000.    
     4 'norm      '    .27637       1.0000         .10000E-03   10000.    
     5 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    83.057       1.0000         .10000E-03   10000.    
     8 'norm      '    .79392       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .85466       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.8722       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3555       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8875       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .96347       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0898       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10481E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.834       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.593       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5632       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97285       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=   7193.516     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     3163 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.704        29.741        .48084E-06    .52463E-05
   2  Prefactor     .10000E-03    20.494       -.16301E-06** at limit **
   3  Prefactor     16.375        13.234       -.81405E-07    .11833E-04
   4  norm          .27724        2.0513       -.29813E-07   -.12228E-03
   5  norm          .10000E-03    2.9521       -.83302E-07** at limit **
   6  norm          .10000E-03    30.615       -.13754E-06** at limit **
   7  Prefactor     83.066        85.606        .68051E-05    .90524E-05
   8  norm          .79400        .54940        .10078E-07   -.10032E-04
   9  Prefactor     .85637        5.3171        .22967E-07   -.13718E-03
  10  Prefactor     5.8709        8.7820        .78690E-07   -.25425E-03
  11  norm          1.3550        1.9263       -.26423E-07   -.11387E-03
  12  Prefactor     4.8856        6.3208        .96070E-07   -.40811E-03
  13  Prefactor     .10000E-03    20.185        .21106E-07** at limit **
  14  Prefactor     .10000E-03    14.101        .73351E-07** at limit **
  15  norm          .96578        20.376       -.46649E-06    .20774E-04
  16  norm          2.0898        .37420        .49332E-09    .13033E-03
  17  Prefactor     .10000E-03    40.372       -.38480E-07** at limit **
  18  norm          11.830        12.199        .31252E-07   -.84588E-04
  19  norm          .10000E-03    14.972        .18212E-07** at limit **
  20  Prefactor     .10000E-03    8.6016        .58885E-07** at limit **
  21  Prefactor     10.591        12.205        .52767E-07   -.14216E-03
  22  norm          .10000E-03    .93973        .12044E-07** at limit **
  23  Normalizat    1.5632        .24616       -.15923E-06    .32926E-04
  24  Prefactor     .97292        .16845        .12593E-06    .17337E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.7044
  Prefactor  = 0.0001
  Prefactor  = 16.375
  norm       = 0.277243
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 83.0661
  norm       = 0.793997
  Prefactor  = 0.85637
  Prefactor  = 5.87089
  norm       = 1.35498
  Prefactor  = 4.88557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.965784
  norm       = 2.08983
  Prefactor  = 0.0001
  norm       = 11.8302
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5912
  norm       = 0.0001
  Normalizat = 1.56322
  Prefactor  = 0.972921
 **********
 **   18 **HESSE 
 **********

 FCN=   7193.516     FROM HESSE     STATUS=OK           413 CALLS     3576 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.704        29.659        .74768E-04   -1.4636    
   2  Prefactor     .10000E-03    186.83        .74654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.375        12.883        .98974E-04   -1.4898    
   4  norm          .27724        3.9816        .21323E-02   -1.5603    
   5  norm          .10000E-03    3.0425        .28398E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    30.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     83.066        85.655        .44075E-04   -1.3883    
   8  norm          .79400        .52782        .48846E-03   -1.5530    
   9  Prefactor     .85637        5.4567        .38866E-03   -1.5523    
  10  Prefactor     5.8709        9.9743        .82861E-03   -1.5223    
  11  norm          1.3550        1.9177        .13163E-03   -1.5475    
  12  Prefactor     4.8856        8.8615        .90972E-03   -1.5266    
  13  Prefactor     .10000E-03    20.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .96578        116.62        .72654E-02   -1.5511    
  16  norm          2.0898        .37510        .20694E-04   -1.5419    
  17  Prefactor     .10000E-03    40.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.830        12.364        .58224E-03   -1.5020    
  19  norm          .10000E-03    15.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.6303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.591        12.747        .61553E-03   -1.5057    
  22  norm          .10000E-03    .98454        .16032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5632        .29282        .31063E-03   -.76017    
  24  Prefactor     .97292        .19925        .27047E-03   -.93638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64974e-08
Minuit parameter uncertainties:
  1  29.6741
  2  0.000122053
  3  12.8849
  4  2.10108
  5  6.10494e-06
  6  9.16615e-06
  7  85.7824
  8  0.527822
  9  4.32371
  10  9.9771
  11  1.91774
  12  8.86387
  13  3.27507e-07
  14  3.53569e-07
  15  21.2665
  16  0.375103
  17  2.18061e-07
  18  12.3665
  19  1.6867e-06
  20  1.46751e-07
  21  12.75
  22  1.44538e-07
  23  0.293145
  24  0.1994
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  9.658e-01  2.127e+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:  9.729e-01  1.994e-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.563e+00  2.931e-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: 6.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.18e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/952014/likelihoodResults_608169601_608428801_4FGL_J1251.3-0201_daily_bin1423.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) = 7193.22909721
delta logL = 0.287336088024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7193.22682653
delta logL = 0.289606765451

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9806       1.0000         .10000E-03   10000.    
     2 'alpha     '    .74182       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5653       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96830       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=   7193.227     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      242 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8418        8.3126        .45050E-02    .14388E-02
   2  alpha         .73328        .81872        .50000       -.45715E-04
   3  Normalizat    1.5651        .23484        .70165E-01    .67229E-05
   4  Prefactor     .96886        .16744        .45870E-01    .14222E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.84181
  alpha      = 0.733284
  Normalizat = 1.56506
  Prefactor  = 0.968856
 **********
 **   18 **HESSE 
 **********

 FCN=   7193.227     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8418        10.574        .90099E-03   -1.5268    
   2  alpha         .73328        .94725        .39838E-01   -.78480    
   3  Normalizat    1.5651        .27547        .31041E-03   -.75966    
   4  Prefactor     .96886        .19651        .27087E-03   -.93775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34218e-08
Minuit parameter uncertainties:
  1  10.5776
  2  0.99961
  3  0.275737
  4  0.196658
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952014': 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) = 7193.22674785
delta logL = 0.289685438655

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  4.842e+00  1.058e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  7.333e-01  9.996e-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:  9.689e-01  1.967e-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.565e+00  2.757e-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/952014/cmap_HighResolution_608169601_608428801_4FGL_J1251.3-0201_daily_bin1423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-05', job_status='DONE', photon_flux_upper_limit='6.06e-08', time_completed='2021-09-06 07:30:53.974524', job_id='952014', GAL2='0.97', fit_tolerance='1e-08', EG2='1.57', EG='1.56', time_epoch_completed='1630938653.97', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.90e-01', ts2='0.58', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1423' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:30:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 952014: <4FGL_J1251.3-0201_daily_bin1423> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1423 192.836 -2.0271 608169601 608428801 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 :                                   778.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

