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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1280
RA = 192.836, Dec = -2.0271
tmin = 571104001, tmax = 571363201
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='950783', job_status='RUN', time_executed='2021-09-06 07:12:57.349704', time_epoch_executed='1630937577.35' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950783

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950783/ft1_4FGL_J1251.3-0201_daily_bin1280.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950783/ft2_4FGL_J1251.3-0201_daily_bin1280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950783/ft1_4FGL_J1251.3-0201_daily_bin1280.fits outfile=/scratch/kocevski/950783/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1280.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=571104001.0 tmax=571363201.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.01
user 2.77
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950783/ft1_filtered_4FGL_J1251.3-0201_daily_bin1280.fits" evtable="EVENTS" scfile=/scratch/kocevski/950783/ft2_4FGL_J1251.3-0201_daily_bin1280.fits sctable="SC_DATA" outfile=/scratch/kocevski/950783/ltcube_571104001_571363201_4FGL_J1251.3-0201_daily_bin1280.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/950783/ft2_4FGL_J1251.3-0201_daily_bin1280.fits
.....................!
real 12.44
user 12.08
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950783/ft1_filtered_4FGL_J1251.3-0201_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/950783/ft2_4FGL_J1251.3-0201_daily_bin1280.fits sctable="SC_DATA" expcube=/scratch/kocevski/950783/ltcube_571104001_571363201_4FGL_J1251.3-0201_daily_bin1280.fits outfile=/scratch/kocevski/950783/expmap_571104001_571363201_4FGL_J1251.3-0201_daily_bin1280.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/950783/ltcube_571104001_571363201_4FGL_J1251.3-0201_daily_bin1280.fits
.....................!
real 191.90
user 185.79
sys 5.01

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/950783/ft1_filtered_4FGL_J1251.3-0201_daily_bin1280.fits scfile=/scratch/kocevski/950783/ft2_4FGL_J1251.3-0201_daily_bin1280.fits outfile=/scratch/kocevski/950783/cmap_571104001_571363201_4FGL_J1251.3-0201_daily_bin1280.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950783/ft1_filtered_4FGL_J1251.3-0201_daily_bin1280.fits scfile=/scratch/kocevski/950783/ft2_4FGL_J1251.3-0201_daily_bin1280.fits outfile=/scratch/kocevski/950783/cmap_HighResolution_571104001_571363201_4FGL_J1251.3-0201_daily_bin1280.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 1.16
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950783/ft1_filtered_4FGL_J1251.3-0201_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/950783/ft2_4FGL_J1251.3-0201_daily_bin1280.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950783/Model_4FGL_J1251.3-0201_daily_bin1280.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/950783/ft1_filtered_4FGL_J1251.3-0201_daily_bin1280.fits.....................!
real 46.75
user 45.40
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.667       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.328       1.0000         .10000E-03   10000.    
     4 'norm      '    5.8222       1.0000         .10000E-03   10000.    
     5 'norm      '    6.9064       1.0000         .10000E-03   10000.    
     6 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0269       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.335       1.0000         .10000E-03   10000.    
    11 'norm      '    2.0318       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2890       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    82.573       1.0000         .10000E-03   10000.    
    15 'norm      '    35.268       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6907       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.468       1.0000         .10000E-03   10000.    
    18 'norm      '    5.5834       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.6750       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3026       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78346       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=   5400.446     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2734 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.667        22.000       -.44479E-06   -.11817E-04
   2  Prefactor     .10000E-03    27.966        .47233E-05** at limit **
   3  Prefactor     10.297        20.573        .61976E-06    .70722E-05
   4  norm          5.8257        4.7438       -.20990E-06    .18119E-04
   5  norm          6.9058        5.4461       -.18591E-06   -.13226E-03
   6  norm          .10000E-03    21.942       -.38534E-05** at limit **
   7  Prefactor     .10000E-03    80.004        .53158E-05** at limit **
   8  norm          .10000E-03    .21646        .77878E-07** at limit **
   9  Prefactor     2.0266        11.898        .13008E-04    .47003E-03
  10  Prefactor     14.333        16.689        .10022E-05    .64758E-04
  11  norm          2.0318        1.6833        .11352E-06    .19931E-03
  12  Prefactor     4.2881        8.7387       -.63502E-06    .55145E-04
  13  Prefactor     .10000E-03    34.620       -.87980E-05** at limit **
  14  Prefactor     82.578        62.889       -.94850E-06   -.40335E-05
  15  norm          35.270        34.014       -.11500E-06    .22803E-04
  16  norm          1.6907        .39735       -.10470E-08    .35746E-03
  17  Prefactor     26.457        75.759        .47239E-05    .18356E-04
  18  norm          5.5841        8.6038        .17960E-06    .29379E-04
  19  norm          .10000E-03    2.5717       -.20459E-07** at limit **
  20  Prefactor     .10000E-03    8.7924       -.45067E-07** at limit **
  21  Prefactor     .10009E-03    12.699       -.10767E-04** at limit **
  22  norm          2.6751        1.5851        .72128E-08    .24517E-03
  23  Normalizat    1.3029        .25118       -.89378E-06    .24559E-03
  24  Prefactor     .78334        .17211       -.11443E-05    .17596E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.667
  Prefactor  = 0.0001
  Prefactor  = 10.2973
  norm       = 5.8257
  norm       = 6.90584
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.02662
  Prefactor  = 14.3329
  norm       = 2.0318
  Prefactor  = 4.28806
  Prefactor  = 0.0001
  Prefactor  = 82.5785
  norm       = 35.2704
  norm       = 1.69071
  Prefactor  = 26.4569
  norm       = 5.5841
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100085
  norm       = 2.6751
  Normalizat = 1.3029
  Prefactor  = 0.78334
 **********
 **   18 **HESSE 
 **********

 FCN=   5400.446     FROM HESSE     STATUS=OK           403 CALLS     3137 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.667        21.990        .10834E-03   -1.4968    
   2  Prefactor     .10000E-03    28.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.297        20.611        .12468E-03   -1.5066    
   4  norm          5.8257        4.7516        .12058E-03   -1.5225    
   5  norm          6.9058        5.4441        .14440E-03   -1.5182    
   6  norm          .10000E-03    21.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    80.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .22394        .66438E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.0266        14.354        .14531E-02   -1.5423    
  10  Prefactor     14.333        16.696        .52894E-03   -1.4951    
  11  norm          2.0318        1.6798        .83381E-04   -1.5423    
  12  Prefactor     4.2881        8.7222        .19453E-03   -1.5294    
  13  Prefactor     .10000E-03    34.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     82.578        63.419        .44203E-04   -1.3888    
  15  norm          35.270        33.970        .67481E-04   -1.4519    
  16  norm          1.6907        .40194        .19692E-04   -1.5448    
  17  Prefactor     26.457        75.938        .77866E-04   -1.4679    
  18  norm          5.5841        8.5873        .17002E-03   -1.5235    
  19  norm          .10000E-03    2.5719        .11509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.8115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10009E-03    24.773        .35809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.6751        1.5802        .67827E-04   -1.5381    
  23  Normalizat    1.3029        .29370        .29070E-03   -.83480    
  24  Prefactor     .78334        .20162        .25679E-03   -1.0035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76882e-09
Minuit parameter uncertainties:
  1  22.0033
  2  0.000165826
  3  20.6254
  4  4.75186
  5  5.44447
  6  6.50559e-05
  7  0.0002724
  8  1.33865e-06
  9  10.7905
  10  16.7017
  11  1.67985
  12  8.72482
  13  0.000139266
  14  63.4706
  15  33.9888
  16  0.401944
  17  76.2176
  18  8.58923
  19  4.26181e-07
  20  5.9537e-06
  21  0.00291006
  22  1.58019
  23  0.294076
  24  0.201806
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  3.527e+01  3.399e+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:  7.833e-01  2.018e-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.303e+00  2.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.70
Ra Dec: 192.836 -2.027
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 3.03e-08 +/- 2.92e-08
Energy Flux (Fixed Index): 2.09e-05 +/- 2.01e-05

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

Saving results to:
/scratch/kocevski/950783/likelihoodResults_571104001_571363201_4FGL_J1251.3-0201_daily_bin1280.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) = 5400.38757076
delta logL = 0.0585664457867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5400.38097475
delta logL = 0.0651624516977

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    31.616       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2316       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2937       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78687       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=   5400.381     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      249 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          31.643        33.813        .71260E-04    .13468E-03
   2  alpha         2.2307        .80297        .14794E-01    .94210E-04
   3  Normalizat    1.2937        .28126        .29149E-03   -.11802E-03
   4  Prefactor     .78684        .19879        .25623E-03    .12437E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 31.6427
  alpha      = 2.23065
  Normalizat = 1.2937
  Prefactor  = 0.786838
 **********
 **   18 **HESSE 
 **********

 FCN=   5400.381     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          31.643        33.005        .14252E-04   -1.4582    
   2  alpha         2.2307        .78429        .29589E-02   -.10795    
   3  Normalizat    1.2937        .28140        .11659E-04   -.83755    
   4  Prefactor     .78684        .19892        .10249E-04   -1.0022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04164e-10
Minuit parameter uncertainties:
  1  33.0243
  2  0.797926
  3  0.281736
  4  0.199101
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950783': 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) = 5400.380974
delta logL = 0.0651632046374

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  3.164e+01  3.302e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  2.231e+00  7.979e-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:  7.868e-01  1.991e-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.294e+00  2.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.83
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 2.23 +/- 0.80
Photon Flux (Free Index): 3.98e-08 +/- 4.41e-08
Energy Flux (Free Index): 1.84e-05 +/- 1.78e-05

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/950783/cmap_HighResolution_571104001_571363201_4FGL_J1251.3-0201_daily_bin1280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.74e-05', comment='SUCCESS', photon_flux='3.03e-08', energy_flux2='1.84e-05', photon_flux_error='2.92e-08', dlogl='6.52e-02', energy_flux='2.09e-05', photon_flux2='3.98e-08', job_status='DONE', time_completed='2021-09-06 07:23:34.254069', photon_index_error2='0.80', photon_index2='2.23', ts='1.70', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='9.76e-08', energy_flux_error2='1.78e-05', EG='1.30', time_epoch_completed='1630938214.25', return_code='0', job_id='950783', GAL2='0.79', EG2='1.29', return_code2='0', energy_flux_error='2.01e-05', photon_flux_error2='4.41e-08', ts2='1.83', photon_index='1.95' WHERE bin_id='1280' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:23:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 950783: <4FGL_J1251.3-0201_daily_bin1280> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin1280> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 07:11:18 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:11:19 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:11:19 2021
Terminated at Mon Sep  6 07:23:34 2021
Results reported at Mon Sep  6 07:23:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1280 192.836 -2.0271 571104001 571363201 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 :                                   630.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            736 sec.

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

