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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1131
RA = 192.836, Dec = -2.0271
tmin = 532483201, tmax = 532742401
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='950549', job_status='RUN', time_executed='2021-09-06 07:13:08.543030', time_epoch_executed='1630937588.54' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950549

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950549/ft1_4FGL_J1251.3-0201_daily_bin1131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950549/ft2_4FGL_J1251.3-0201_daily_bin1131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950549/ft1_4FGL_J1251.3-0201_daily_bin1131.fits outfile=/scratch/kocevski/950549/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1131.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=532483201.0 tmax=532742401.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.79
user 3.27
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950549/ft1_filtered_4FGL_J1251.3-0201_daily_bin1131.fits" evtable="EVENTS" scfile=/scratch/kocevski/950549/ft2_4FGL_J1251.3-0201_daily_bin1131.fits sctable="SC_DATA" outfile=/scratch/kocevski/950549/ltcube_532483201_532742401_4FGL_J1251.3-0201_daily_bin1131.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/950549/ft2_4FGL_J1251.3-0201_daily_bin1131.fits
.....................!
real 12.29
user 11.49
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950549/ft1_filtered_4FGL_J1251.3-0201_daily_bin1131.fits evtable="EVENTS" scfile=/scratch/kocevski/950549/ft2_4FGL_J1251.3-0201_daily_bin1131.fits sctable="SC_DATA" expcube=/scratch/kocevski/950549/ltcube_532483201_532742401_4FGL_J1251.3-0201_daily_bin1131.fits outfile=/scratch/kocevski/950549/expmap_532483201_532742401_4FGL_J1251.3-0201_daily_bin1131.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/950549/ltcube_532483201_532742401_4FGL_J1251.3-0201_daily_bin1131.fits
.....................!
real 192.48
user 185.83
sys 4.99

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/950549/ft1_filtered_4FGL_J1251.3-0201_daily_bin1131.fits scfile=/scratch/kocevski/950549/ft2_4FGL_J1251.3-0201_daily_bin1131.fits outfile=/scratch/kocevski/950549/cmap_532483201_532742401_4FGL_J1251.3-0201_daily_bin1131.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.85
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950549/ft1_filtered_4FGL_J1251.3-0201_daily_bin1131.fits scfile=/scratch/kocevski/950549/ft2_4FGL_J1251.3-0201_daily_bin1131.fits outfile=/scratch/kocevski/950549/cmap_HighResolution_532483201_532742401_4FGL_J1251.3-0201_daily_bin1131.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.83
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    9.5584       1.0000         .10000E-03   10000.    
     4 'norm      '    1.5789       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3337       1.0000         .10000E-03   10000.    
     6 'norm      '    23.772       1.0000         .10000E-03   10000.    
     7 'Prefactor '    90.927       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.031       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3019       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.7404       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    30.042       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7571       1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.431       1.0000         .10000E-03   10000.    
    18 'norm      '    6.2206       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.5818       1.0000         .10000E-03   10000.    
    22 'norm      '    .37549E-01   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4103       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90757       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=   8667.459     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2791 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2731        .34579E-05** at limit **
   2  Prefactor     .10000E-03    18.666       -.68661E-05** at limit **
   3  Prefactor     9.5587        13.179        .29909E-06   -.70038E-04
   4  norm          1.5789        2.7380       -.36653E-06   -.96289E-03
   5  norm          2.3337        3.7019       -.53526E-06   -.96793E-03
   6  norm          23.772        37.396        .81211E-06    .32269E-05
   7  Prefactor     90.930        127.78        .29260E-05    .40741E-05
   8  norm          .10000E-03    .19119        .36999E-07** at limit **
   9  Prefactor     .10000E-03    8.2667       -.24809E-05** at limit **
  10  Prefactor     14.031        10.766       -.85254E-07   -.37464E-04
  11  norm          1.3019        1.1335       -.18736E-06   -.20090E-02
  12  Prefactor     8.7404        5.8730       -.21149E-06   -.55017E-03
  13  Prefactor     .10000E-03    5.8846        .11395E-06** at limit **
  14  Prefactor     .10000E-03    41.327       -.36656E-04** at limit **
  15  norm          30.042        18.279        .17652E-06    .11630E-04
  16  norm          1.7571        .29871        .58051E-08    .27322E-02
  17  Prefactor     41.433        66.005        .27493E-05   -.24289E-04
  18  norm          6.2207        9.5011       -.53914E-06   -.20942E-03
  19  norm          .10000E-03    3.9274       -.41357E-07** at limit **
  20  Prefactor     .10000E-03    33.401        .36356E-04** at limit **
  21  Prefactor     4.5814        8.3631       -.41271E-06   -.21211E-03
  22  norm          .39232E-01    .56227       -.93635E-07   -.27905E-03
  23  Normalizat    1.4103        .20205        .15352E-06   -.17511E-03
  24  Prefactor     .90758        .13956       -.61312E-07   -.15892E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.55868
  norm       = 1.5789
  norm       = 2.33369
  norm       = 23.7719
  Prefactor  = 90.9299
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0311
  norm       = 1.30191
  Prefactor  = 8.74044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 30.0421
  norm       = 1.75712
  Prefactor  = 41.4329
  norm       = 6.22067
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 4.58141
  norm       = 0.0392317
  Normalizat = 1.41026
  Prefactor  = 0.907584
 **********
 **   18 **HESSE 
 **********

 FCN=   8667.459     FROM HESSE     STATUS=OK           401 CALLS     3192 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.5587        12.895        .12962E-03   -1.5090    
   4  norm          1.5789        2.6559        .16014E-03   -1.5457    
   5  norm          2.3337        3.6394        .18232E-03   -1.5402    
   6  norm          23.772        36.857        .82157E-04   -1.4732    
   7  Prefactor     90.930        127.77        .42141E-04   -1.3798    
   8  norm          .10000E-03    .32415        .76564E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.3775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.031        10.776        .10693E-03   -1.4959    
  11  norm          1.3019        1.1371        .19357E-03   -1.5480    
  12  Prefactor     8.7404        5.8797        .67791E-03   -1.5117    
  13  Prefactor     .10000E-03    5.8855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    41.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          30.042        18.280        .73099E-04   -1.4611    
  16  norm          1.7571        .29996        .19599E-04   -1.5443    
  17  Prefactor     41.433        66.017        .62277E-04   -1.4420    
  18  norm          6.2207        9.4806        .16095E-03   -1.5209    
  19  norm          .10000E-03    3.9419        .18018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    33.345        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.5814        8.3554        .18805E-03   -1.5280    
  22  norm          .39232E-01    12.271        .13270E-02   -1.5668    
  23  Normalizat    1.4103        .23665        .29134E-03   -.80332    
  24  Prefactor     .90758        .16292        .25521E-03   -.95877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8084e-09
Minuit parameter uncertainties:
  1  5.15797e-07
  2  2.15763e-05
  3  12.8989
  4  2.65612
  5  3.63972
  6  36.8923
  7  128.164
  8  2.43829e-06
  9  1.64917e-05
  10  10.7774
  11  1.13714
  12  5.88005
  13  3.44834e-07
  14  0.000101777
  15  18.2839
  16  0.299958
  17  66.1334
  18  9.48284
  19  5.80932e-07
  20  0.000567289
  21  8.35748
  22  1.3862
  23  0.236831
  24  0.163005
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  3.004e+01  1.828e+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.076e-01  1.630e-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.410e+00  2.368e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.39
Ra Dec: 192.836 -2.027
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 2.58e-08 +/- 1.57e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.08e-05

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) = 8666.00718353
delta logL = 1.45226603941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8665.89845867
delta logL = 1.5609908994

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.442       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0116       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4201       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90683       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=   8665.898     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      215 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.401        14.520        .21138E-02   -.24496E-03
   2  alpha         1.0110        .39027        .40237       -.34684E-04
   3  Normalizat    1.4202        .18999        .65686E-01    .74279E-05
   4  Prefactor     .90688        .13788        .45092E-01    .16739E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 22.4005
  alpha      = 1.01103
  Normalizat = 1.42015
  Prefactor  = 0.906877
 **********
 **   18 **HESSE 
 **********

 FCN=   8665.898     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .29E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.401        18.329        .42276E-03   -1.4761    
   2  alpha         1.0110        .50196        .17392E-02   -.63800    
   3  Normalizat    1.4202        .22107        .29056E-03   -.80048    
   4  Prefactor     .90688        .16055        .25537E-03   -.95901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9453e-14
Minuit parameter uncertainties:
  1  18.3334
  2  0.507335
  3  0.22122
  4  0.160629
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950549': 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) = 8665.89845552
delta logL = 1.56099405208

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  2.240e+01  1.833e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.011e+00  5.073e-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.069e-01  1.606e-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.420e+00  2.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.52
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 1.01 +/- 0.51
Photon Flux (Free Index): 1.09e-08 +/- 8.15e-09
Energy Flux (Free Index): 5.22e-05 +/- 5.02e-05

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/950549/cmap_HighResolution_532483201_532742401_4FGL_J1251.3-0201_daily_bin1131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.58e-08', energy_flux2='5.22e-05', photon_flux_error='1.57e-08', dlogl='1.56e+00', energy_flux='1.78e-05', photon_flux2='1.09e-08', job_status='DONE', time_completed='2021-09-06 07:26:58.825273', photon_index_error2='0.51', photon_index2='1.01', ts='15.39', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='5.02e-05', EG='1.41', time_epoch_completed='1630938418.83', return_code='0', job_id='950549', GAL2='0.91', EG2='1.42', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='8.15e-09', ts2='18.52', photon_index='1.95' WHERE bin_id='1131' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:26:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 950549: <4FGL_J1251.3-0201_daily_bin1131> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin1131> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 07:11:01 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:11:02 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:02 2021
Terminated at Mon Sep  6 07:26:59 2021
Results reported at Mon Sep  6 07:26:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1131 192.836 -2.0271 532483201 532742401 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 :                                   738.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            958 sec.

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

