/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 178 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1251.3-0201_daily_bin324
RA = 192.836, Dec = -2.0271
tmin = 323308801, tmax = 323568001
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='945421', job_status='RUN', time_executed='2021-09-06 06:58:58.866760', time_epoch_executed='1630936738.87' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945421

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945421/ft1_4FGL_J1251.3-0201_daily_bin324.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945421/ft2_4FGL_J1251.3-0201_daily_bin324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945421/ft1_4FGL_J1251.3-0201_daily_bin324.fits outfile=/scratch/kocevski/945421/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin324.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=323308801.0 tmax=323568001.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.39
user 3.11
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/945421/ft2_4FGL_J1251.3-0201_daily_bin324.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/945421/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin324.fits evtable="EVENTS" outfile="/scratch/kocevski/945421/ft1_filtered_4FGL_J1251.3-0201_daily_bin324.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/945421/ft1_filtered_4FGL_J1251.3-0201_daily_bin324.fits" evtable="EVENTS" scfile=/scratch/kocevski/945421/ft2_4FGL_J1251.3-0201_daily_bin324.fits sctable="SC_DATA" outfile=/scratch/kocevski/945421/ltcube_323308801_323568001_4FGL_J1251.3-0201_daily_bin324.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/945421/ft2_4FGL_J1251.3-0201_daily_bin324.fits
.....................!
real 12.31
user 11.93
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945421/ft1_filtered_4FGL_J1251.3-0201_daily_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/945421/ft2_4FGL_J1251.3-0201_daily_bin324.fits sctable="SC_DATA" expcube=/scratch/kocevski/945421/ltcube_323308801_323568001_4FGL_J1251.3-0201_daily_bin324.fits outfile=/scratch/kocevski/945421/expmap_323308801_323568001_4FGL_J1251.3-0201_daily_bin324.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/945421/ltcube_323308801_323568001_4FGL_J1251.3-0201_daily_bin324.fits
.....................!
real 191.64
user 185.51
sys 5.36

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/945421/ft1_filtered_4FGL_J1251.3-0201_daily_bin324.fits scfile=/scratch/kocevski/945421/ft2_4FGL_J1251.3-0201_daily_bin324.fits outfile=/scratch/kocevski/945421/cmap_323308801_323568001_4FGL_J1251.3-0201_daily_bin324.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.71
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/945421/ft1_filtered_4FGL_J1251.3-0201_daily_bin324.fits scfile=/scratch/kocevski/945421/ft2_4FGL_J1251.3-0201_daily_bin324.fits outfile=/scratch/kocevski/945421/cmap_HighResolution_323308801_323568001_4FGL_J1251.3-0201_daily_bin324.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.66
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/945421/ft1_filtered_4FGL_J1251.3-0201_daily_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/945421/ft2_4FGL_J1251.3-0201_daily_bin324.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/945421/Model_4FGL_J1251.3-0201_daily_bin324.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/945421/ft1_filtered_4FGL_J1251.3-0201_daily_bin324.fits.....................!
real 55.38
user 52.89
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.8852       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.1372       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.922       1.0000         .10000E-03   10000.    
    11 'norm      '    8.7332       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.710       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.0917       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.723       1.0000         .10000E-03   10000.    
    18 'norm      '    .18152       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    54.413       1.0000         .10000E-03   10000.    
    22 'norm      '    .11326E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5825       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .60970       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=   6168.059     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2763 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.223        .27100E-05** at limit **
   2  Prefactor     .10000E-03    11.691       -.63445E-05** at limit **
   3  Prefactor     .10000E-03    6.4638        .25113E-07** at limit **
   4  norm          .10000E-03    1.0884       -.17853E-07** at limit **
   5  norm          4.8848        4.1130        .81342E-06   -.43104E-03
   6  norm          .10000E-03    32.009        .13453E-04** at limit **
   7  Prefactor     .10000E-03    44.933       -.79280E-05** at limit **
   8  norm          3.1371        .81850       -.17297E-06   -.51845E-04
   9  Prefactor     .10000E-03    18.409       -.67669E-05** at limit **
  10  Prefactor     25.919        16.032       -.64869E-06   -.78562E-05
  11  norm          8.7328        2.3450       -.18762E-06   -.74166E-04
  12  Prefactor     .10000E-03    2.9574       -.30963E-07** at limit **
  13  Prefactor     24.723        46.477        .19631E-04    .11376E-04
  14  Prefactor     .10000E-03    25.725       -.39283E-05** at limit **
  15  norm          .10000E-03    11.972        .52326E-06** at limit **
  16  norm          2.0917        .39801        .28808E-06   -.18085E-02
  17  Prefactor     10.678        120.51       -.12128E-03   -.19243E-04
  18  norm          .17125        5.6541        .24041E-05   -.36628E-03
  19  norm          .10000E-03    3.7999       -.26869E-08** at limit **
  20  Prefactor     .10000E-03    12.280        .73691E-05** at limit **
  21  Prefactor     54.414        16.227        .13223E-06   -.65147E-04
  22  norm          .10000E-03    1.1461        .36992E-07** at limit **
  23  Normalizat    1.5827        .24120        .45057E-06   -.40565E-04
  24  Prefactor     .60962        .16011        .13294E-05   -.49864E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.88478
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.13707
  Prefactor  = 0.0001
  Prefactor  = 25.9187
  norm       = 8.73282
  Prefactor  = 0.0001
  Prefactor  = 24.7233
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.09171
  Prefactor  = 10.6784
  norm       = 0.171249
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.4142
  norm       = 0.0001
  Normalizat = 1.58272
  Prefactor  = 0.609617
 **********
 **   18 **HESSE 
 **********

 FCN=   6168.059     FROM HESSE     STATUS=OK           395 CALLS     3158 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.4888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.1052        .79987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.8848        4.1094        .13470E-03   -1.5266    
   6  norm          .10000E-03    32.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    44.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.1371        .82064        .32944E-04   -1.5354    
   9  Prefactor     .10000E-03    19.080        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.919        16.037        .78681E-04   -1.4689    
  11  norm          8.7328        2.3463        .59416E-04   -1.5117    
  12  Prefactor     .10000E-03    2.9608        .13189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.723        46.522        .80584E-04   -1.4713    
  14  Prefactor     .10000E-03    25.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0917        .39912        .20105E-04   -1.5419    
  17  Prefactor     10.678        121.23        .12235E-03   -1.5054    
  18  norm          .17125        44.494        .35862E-02   -1.5625    
  19  norm          .10000E-03    3.8020        .14952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     54.414        16.202        .54377E-04   -1.4231    
  22  norm          .10000E-03    2.3577        .16168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5827        .28049        .28600E-03   -.75480    
  24  Prefactor     .60962        .18515        .30322E-03   -1.0718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65704e-09
Minuit parameter uncertainties:
  1  1.8849e-05
  2  1.14031e-05
  3  9.15876e-06
  4  2.26874e-06
  5  4.1096
  6  5.64072e-05
  7  1.02849e-05
  8  0.820647
  9  2.21132e-05
  10  16.0394
  11  2.34632
  12  5.86388e-06
  13  46.5906
  14  2.03682e-05
  15  2.16328e-05
  16  0.399125
  17  72.1445
  18  5.52323
  19  5.47196e-07
  20  2.92397e-05
  21  16.2037
  22  4.43554e-06
  23  0.280768
  24  0.185333
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  2.163e-05  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.951e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  1.558e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.195e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  6.096e-01  1.853e-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.583e+00  2.808e-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: 5.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/945421/likelihoodResults_323308801_323568001_4FGL_J1251.3-0201_daily_bin324.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) = 6168.05910684
delta logL = -0.000394061134102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6168.05871276
delta logL = 1.75023160409e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9621       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5827       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60960       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=   6167.768     FROM MIGRAD    STATUS=CONVERGED    140 CALLS      294 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24008        12.826        .11230E-01    .15150E-02
   2  alpha         5.0000        2.5944        .50000    ** at limit **
   3  Normalizat    1.5124        .94650E-01    .28600E-03    .12263E-03
   4  Prefactor     .63865        .58194E-01    .30322E-03    .16591E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.240083
  alpha      = 5
  Normalizat = 1.51241
  Prefactor  = 0.638651
 **********
 **   18 **HESSE 
 **********

 FCN=   6167.768     FROM HESSE     STATUS=OK            31 CALLS      325 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24008        .36826        .49965E-04   -1.5610    
   2  alpha         5.0000        3.4866        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.5124        .28395        .57200E-04   -.77430    
   4  Prefactor     .63865        .18943        .12129E-04   -1.0598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46863e-10
Minuit parameter uncertainties:
  1  0.368268
  2  7.83613e-05
  3  0.284249
  4  0.189617
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945421': 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) = 6167.76843249
delta logL = 0.29028029116

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  2.401e-01  3.683e-01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  5.000e+00  7.836e-05  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  1.558e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.195e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  6.387e-01  1.896e-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.512e+00  2.842e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/945421/cmap_HighResolution_323308801_323568001_4FGL_J1251.3-0201_daily_bin324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-05', job_status='DONE', photon_flux_upper_limit='5.15e-08', time_completed='2021-09-06 07:11:06.581576', job_id='945421', GAL2='0.64', fit_tolerance='1e-08', EG2='1.51', EG='1.58', time_epoch_completed='1630937466.58', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='2.90e-01', ts2='0.63', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='324' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:11:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 945421: <4FGL_J1251.3-0201_daily_bin324> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin324> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 06:55:50 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:55:51 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:51 2021
Terminated at Mon Sep  6 07:11:07 2021
Results reported at Mon Sep  6 07:11:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin324 192.836 -2.0271 323308801 323568001 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.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

