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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1017
RA = 193.637, Dec = 22.1808
tmin = 502934401, tmax = 503193601
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='991155', job_status='RUN', time_executed='2021-09-06 09:17:26.671022', time_epoch_executed='1630945046.67' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1017'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991155

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991155/ft1_4FGL_J1254.5+2210_daily_bin1017.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991155/ft2_4FGL_J1254.5+2210_daily_bin1017.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991155/ft1_4FGL_J1254.5+2210_daily_bin1017.fits outfile=/scratch/kocevski/991155/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1017.fits ra=193.637 dec=22.1808 rad=12.0 tmin=502934401.0 tmax=503193601.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.34
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/991155/ft2_4FGL_J1254.5+2210_daily_bin1017.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/991155/ft2_4FGL_J1254.5+2210_daily_bin1017.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/991155/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1017.fits evtable="EVENTS" outfile="/scratch/kocevski/991155/ft1_filtered_4FGL_J1254.5+2210_daily_bin1017.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.55
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/991155/ft1_filtered_4FGL_J1254.5+2210_daily_bin1017.fits" evtable="EVENTS" scfile=/scratch/kocevski/991155/ft2_4FGL_J1254.5+2210_daily_bin1017.fits sctable="SC_DATA" outfile=/scratch/kocevski/991155/ltcube_502934401_503193601_4FGL_J1254.5+2210_daily_bin1017.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/991155/ft2_4FGL_J1254.5+2210_daily_bin1017.fits
.....................!
real 12.14
user 11.78
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991155/ft1_filtered_4FGL_J1254.5+2210_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/991155/ft2_4FGL_J1254.5+2210_daily_bin1017.fits sctable="SC_DATA" expcube=/scratch/kocevski/991155/ltcube_502934401_503193601_4FGL_J1254.5+2210_daily_bin1017.fits outfile=/scratch/kocevski/991155/expmap_502934401_503193601_4FGL_J1254.5+2210_daily_bin1017.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/991155/ltcube_502934401_503193601_4FGL_J1254.5+2210_daily_bin1017.fits
.....................!
real 189.82
user 185.19
sys 4.23

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 178 point sources and 0 extended sources

Setting source of interest to:
4FGL J1254.5+2210 @ 193.637 22.1808

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/991155/ft1_filtered_4FGL_J1254.5+2210_daily_bin1017.fits scfile=/scratch/kocevski/991155/ft2_4FGL_J1254.5+2210_daily_bin1017.fits outfile=/scratch/kocevski/991155/cmap_502934401_503193601_4FGL_J1254.5+2210_daily_bin1017.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=193.637 yref=22.1808 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.61
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991155/ft1_filtered_4FGL_J1254.5+2210_daily_bin1017.fits scfile=/scratch/kocevski/991155/ft2_4FGL_J1254.5+2210_daily_bin1017.fits outfile=/scratch/kocevski/991155/cmap_HighResolution_502934401_503193601_4FGL_J1254.5+2210_daily_bin1017.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=193.637 yref=22.1808 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/991155/ft1_filtered_4FGL_J1254.5+2210_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/991155/ft2_4FGL_J1254.5+2210_daily_bin1017.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/991155/Model_4FGL_J1254.5+2210_daily_bin1017.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/991155/ft1_filtered_4FGL_J1254.5+2210_daily_bin1017.fits.....................!
real 50.67
user 49.26
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/991155/ft1_filtered_4FGL_J1254.5+2210_daily_bin1017.fits', '/scratch/kocevski/991155/ft2_4FGL_J1254.5+2210_daily_bin1017.fits', expMap='/scratch/kocevski/991155/expmap_502934401_503193601_4FGL_J1254.5+2210_daily_bin1017.fits', expCube='/scratch/kocevski/991155/ltcube_502934401_503193601_4FGL_J1254.5+2210_daily_bin1017.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/991155/Model_4FGL_J1254.5+2210_daily_bin1017.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1254.5+2210'

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.787e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/991155/ft1_filtered_4FGL_J1254.5+2210_daily_bin1017.fits
Spacecraft file(s): /scratch/kocevski/991155/ft2_4FGL_J1254.5+2210_daily_bin1017.fits
Exposure map: /scratch/kocevski/991155/expmap_502934401_503193601_4FGL_J1254.5+2210_daily_bin1017.fits
Exposure cube: /scratch/kocevski/991155/ltcube_502934401_503193601_4FGL_J1254.5+2210_daily_bin1017.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/991155/Model_4FGL_J1254.5+2210_daily_bin1017.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) = 5827.70764188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10259E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    21.456       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3033       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3315       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6308       1.0000         .10000E-03   10000.    
     7 'norm      '    .27017       1.0000         .10000E-03   10000.    
     8 'norm      '    7.1539       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.146       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.295       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.336       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.8096       1.0000         .10000E-03   10000.    
    16 'norm      '    8.1319       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.479       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.558       1.0000         .10000E-03   10000.    
    20 'norm      '    3.4289       1.0000         .10000E-03   10000.    
    21 'norm      '    .11244E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.0078       1.0000         .10000E-03   10000.    
    23 'norm      '    8.5785       1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.862       1.0000         .10000E-03   10000.    
    25 'norm      '    30.966       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.5905       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0039       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .71225       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5827.697     FROM MIGRAD    STATUS=CONVERGED    710 CALLS     3680 TOTAL
                     EDM=   .93E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7158        .41012E-07** at limit **
   2  Prefactor     .10000E-03    1.9299        .11993E-06** at limit **
   3  norm          21.456        5.2318       -.30312E-08   -.81363E-05
   4  Prefactor     2.3033        2.0774        .17124E-07   -.82362E-05
   5  Prefactor     1.3314        1.7676        .94693E-07   -.91716E-05
   6  Prefactor     1.6315        4.2280        .29291E-06   -.15648E-03
   7  norm          .27014        .16981        .19145E-08   -.48077E-04
   8  norm          7.1530        5.0752       -.14435E-06   -.12351E-03
   9  Prefactor     17.147        13.709        .11735E-06   -.40992E-05
  10  Prefactor     .10000E-03    5.8907       -.62204E-07** at limit **
  11  Prefactor     30.293        30.011       -.36829E-06   -.35299E-04
  12  Prefactor     .10000E-03    24.544        .36521E-05** at limit **
  13  Prefactor     .10000E-03    18.822       -.13227E-05** at limit **
  14  Prefactor     11.336        8.1017        .45871E-06   -.86914E-04
  15  Prefactor     7.8104        11.866        .27169E-05   -.16197E-03
  16  norm          8.1324        4.4152        .59592E-07   -.17738E-04
  17  Prefactor     22.479        15.736       -.40433E-06   -.19073E-04
  18  Prefactor     .10000E-03    7.0252       -.60439E-07** at limit **
  19  norm          10.558        4.9662        .92503E-08    .18809E-05
  20  norm          3.4275        3.2167        .11132E-06   -.40504E-04
  21  norm          .10000E-03    6.8232        .79867E-07** at limit **
  22  norm          9.0080        13.339        .68773E-06   -.40416E-04
  23  norm          8.5788        7.5885        .23402E-07   -.99224E-05
  24  Prefactor     18.864        28.497        .40679E-06    .13286E-04
  25  norm          30.967        12.349        .30988E-07    .55537E-06
  26  Prefactor     .10000E-03    32.933       -.30293E-05** at limit **
  27  Prefactor     5.5881        15.464       -.54177E-07    .12730E-04
  28  Normalizat    1.0040        .18116       -.32638E-06   -.10387E-04
  29  Prefactor     .71212        .17907       -.52993E-06   -.86117E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.4556
  Prefactor  = 2.30328
  Prefactor  = 1.33143
  Prefactor  = 1.63152
  norm       = 0.270138
  norm       = 7.15302
  Prefactor  = 17.147
  Prefactor  = 0.0001
  Prefactor  = 30.2929
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 11.3357
  Prefactor  = 7.81037
  norm       = 8.13242
  Prefactor  = 22.4788
  Prefactor  = 0.0001
  norm       = 10.5579
  norm       = 3.42755
  norm       = 0.0001
  norm       = 9.00798
  norm       = 8.57875
  Prefactor  = 18.8642
  norm       = 30.9666
  Prefactor  = 0.000100001
  Prefactor  = 5.5881
  Normalizat = 1.00401
  Prefactor  = 0.712124
 **********
 **   18 **HESSE 
 **********

 FCN=   5827.697     FROM HESSE     STATUS=OK           567 CALLS     4247 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7652        .19484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.6739        .20396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          21.456        5.2275        .79727E-04   -1.4781    
   4  Prefactor     2.3033        2.0751        .97989E-04   -1.5404    
   5  Prefactor     1.3314        1.7355        .11081E-03   -1.5477    
   6  Prefactor     1.6315        4.2026        .23614E-03   -1.5453    
   7  norm          .27014        .17074        .23900E-04   -1.5604    
   8  norm          7.1530        5.0570        .13224E-03   -1.5173    
   9  Prefactor     17.147        13.720        .96724E-04   -1.4880    
  10  Prefactor     .10000E-03    5.9321        .18090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.293        30.047        .72793E-04   -1.4607    
  12  Prefactor     .10000E-03    26.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.336        8.1213        .59495E-03   -1.5034    
  15  Prefactor     7.8104        12.116        .71744E-03   -1.5149    
  16  norm          8.1324        4.4144        .11399E-03   -1.5138    
  17  Prefactor     22.479        15.743        .84484E-04   -1.4759    
  18  Prefactor     .10000E-03    7.0271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.558        4.9704        .11091E-03   -1.5058    
  20  norm          3.4275        3.1759        .12589E-03   -1.5338    
  21  norm          .10000E-03    6.8893        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.0080        13.348        .66771E-03   -1.5108    
  23  norm          8.5788        7.5820        .13686E-03   -1.5122    
  24  Prefactor     18.864        28.514        .92220E-04   -1.4839    
  25  norm          30.967        12.354        .72002E-04   -1.4594    
  26  Prefactor     .10000E-03    34.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.5881        15.449        .16991E-03   -1.5235    
  28  Normalizat    1.0040        .21103        .24332E-03   -.92896    
  29  Prefactor     .71212        .20712        .28964E-03   -1.0305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05843e-10
Minuit parameter uncertainties:
  1  1.56938e-06
  2  7.79559e-06
  3  5.22759
  4  2.07514
  5  1.73555
  6  4.20336
  7  0.170742
  8  5.05725
  9  13.7228
  10  1.36645e-06
  11  30.0617
  12  0.000461104
  13  0.000157521
  14  8.1221
  15  12.1201
  16  4.41461
  17  15.7463
  18  4.53407e-06
  19  4.97062
  20  3.1761
  21  8.11763e-07
  22  13.3526
  23  7.58284
  24  28.5342
  25  12.3548
  26  0.000340041
  27  15.4602
  28  0.211202
  29  0.207348
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.134e+01  8.122e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  7.121e-01  2.073e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  1.004e+00  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.48
Ra Dec: 193.637 22.181
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 4.44e-08 +/- 3.18e-08
Energy Flux (Fixed Index): 2.50e-05 +/- 1.79e-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) = 5827.67461813
delta logL = 0.0222392106589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5827.65694648
delta logL = 0.0399108610691

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4669       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3132       1.0000          .0000       10.000    
     3 'Normalizat'    .98449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72398       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+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=   5827.657     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      261 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4699        11.747        .13025E-03    .13896E-03
   2  Index         2.3144        .92165        .62444E-02    .53187E-04
   3  Normalizat    .98394        .21844        .24542E-03   -.31083E-04
   4  Prefactor     .72441        .21178        .28736E-03   -.30107E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.4699
  Index      = 2.31444
  Normalizat = 0.983936
  Prefactor  = 0.724409
 **********
 **   18 **HESSE 
 **********

 FCN=   5827.657     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4699        9.8798        .52099E-05   -1.5092    
   2  Index         2.3144        .77468        .24978E-03   -.56701    
   3  Normalizat    .98394        .21395        .98167E-05   -.93571    
   4  Prefactor     .72441        .20967        .11494E-04   -1.0258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28964e-11
Minuit parameter uncertainties:
  1  9.88151
  2  0.779103
  3  0.214138
  4  0.209895
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991155': 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) = 5827.65694041
delta logL = 0.0399169259599

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  9.470e+00  9.882e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.314e+00  7.791e-01  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  7.244e-01  2.099e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  9.839e-01  2.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.53
Ra Dec: 193.637 22.181
Photon Index (Free Index): 2.31 +/- 0.78
Photon Flux (Free Index): 5.92e-08 +/- 6.31e-08
Energy Flux (Free Index): 2.19e-05 +/- 1.61e-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/991155/cmap_HighResolution_502934401_503193601_4FGL_J1254.5+2210_daily_bin1017.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.44e-08', energy_flux2='2.19e-05', photon_flux_error='3.18e-08', dlogl='3.99e-02', energy_flux='2.50e-05', photon_flux2='5.92e-08', job_status='DONE', time_completed='2021-09-06 09:29:01.041001', photon_index_error2='0.78', photon_index2='2.31', ts='8.48', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='1.61e-05', EG='1.00', time_epoch_completed='1630945741.04', return_code='0', job_id='991155', GAL2='0.72', EG2='0.98', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='6.31e-08', ts2='8.53', photon_index='2.09' WHERE bin_id='1017' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:29:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 991155: <4FGL_J1254.5+2210_daily_bin1017> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1017> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 09:15:31 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:15:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 09:15:32 2021
Terminated at Mon Sep  6 09:29:03 2021
Results reported at Mon Sep  6 09:29:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1017 193.637 22.1808 502934401 503193601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1254.5+2210 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   684.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            812 sec.

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

