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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin280
RA = 193.637, Dec = 22.1808
tmin = 311904001, tmax = 312163201
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='986676', job_status='RUN', time_executed='2021-09-06 09:01:12.031322', time_epoch_executed='1630944072.03' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/986676

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/986676/ft1_4FGL_J1254.5+2210_daily_bin280.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/986676/ft2_4FGL_J1254.5+2210_daily_bin280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/986676/ft1_4FGL_J1254.5+2210_daily_bin280.fits outfile=/scratch/kocevski/986676/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin280.fits ra=193.637 dec=22.1808 rad=12.0 tmin=311904001.0 tmax=312163201.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.48
user 3.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/986676/ft1_filtered_4FGL_J1254.5+2210_daily_bin280.fits" evtable="EVENTS" scfile=/scratch/kocevski/986676/ft2_4FGL_J1254.5+2210_daily_bin280.fits sctable="SC_DATA" outfile=/scratch/kocevski/986676/ltcube_311904001_312163201_4FGL_J1254.5+2210_daily_bin280.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/986676/ft2_4FGL_J1254.5+2210_daily_bin280.fits
.....................!
real 13.07
user 12.64
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/986676/ft1_filtered_4FGL_J1254.5+2210_daily_bin280.fits evtable="EVENTS" scfile=/scratch/kocevski/986676/ft2_4FGL_J1254.5+2210_daily_bin280.fits sctable="SC_DATA" expcube=/scratch/kocevski/986676/ltcube_311904001_312163201_4FGL_J1254.5+2210_daily_bin280.fits outfile=/scratch/kocevski/986676/expmap_311904001_312163201_4FGL_J1254.5+2210_daily_bin280.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/986676/ltcube_311904001_312163201_4FGL_J1254.5+2210_daily_bin280.fits
.....................!
real 192.71
user 187.46
sys 4.78

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/986676/ft1_filtered_4FGL_J1254.5+2210_daily_bin280.fits scfile=/scratch/kocevski/986676/ft2_4FGL_J1254.5+2210_daily_bin280.fits outfile=/scratch/kocevski/986676/cmap_311904001_312163201_4FGL_J1254.5+2210_daily_bin280.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/986676/ft1_filtered_4FGL_J1254.5+2210_daily_bin280.fits scfile=/scratch/kocevski/986676/ft2_4FGL_J1254.5+2210_daily_bin280.fits outfile=/scratch/kocevski/986676/cmap_HighResolution_311904001_312163201_4FGL_J1254.5+2210_daily_bin280.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.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/986676/ft1_filtered_4FGL_J1254.5+2210_daily_bin280.fits', '/scratch/kocevski/986676/ft2_4FGL_J1254.5+2210_daily_bin280.fits', expMap='/scratch/kocevski/986676/expmap_311904001_312163201_4FGL_J1254.5+2210_daily_bin280.fits', expCube='/scratch/kocevski/986676/ltcube_311904001_312163201_4FGL_J1254.5+2210_daily_bin280.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/986676/Model_4FGL_J1254.5+2210_daily_bin280.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/986676/ft1_filtered_4FGL_J1254.5+2210_daily_bin280.fits
Spacecraft file(s): /scratch/kocevski/986676/ft2_4FGL_J1254.5+2210_daily_bin280.fits
Exposure map: /scratch/kocevski/986676/expmap_311904001_312163201_4FGL_J1254.5+2210_daily_bin280.fits
Exposure cube: /scratch/kocevski/986676/ltcube_311904001_312163201_4FGL_J1254.5+2210_daily_bin280.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/986676/Model_4FGL_J1254.5+2210_daily_bin280.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) = 7499.18795603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52687       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.2334       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0552       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.0944       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1199       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6952       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.666       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.672       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.377       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.933       1.0000         .10000E-03   10000.    
    16 'norm      '    7.9732       1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.122       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.6447       1.0000         .10000E-03   10000.    
    20 'norm      '    1.7119       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.2813       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .22734E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    9.0502       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.1455       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4097       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .66709       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=   7499.177     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3774 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52677        2.4618        .68809E-06   -.48965E-03
   2  Prefactor     .10000E-03    2.2015       -.44543E-07** at limit **
   3  norm          8.2333        3.5029        .17218E-06    .21558E-04
   4  Prefactor     .10000E-03    1.0320       -.29895E-07** at limit **
   5  Prefactor     5.0550        2.5410       -.77281E-07   -.72921E-05
   6  Prefactor     .10000E-03    3.2108       -.12034E-06** at limit **
   7  norm          6.0944        .61029        .57432E-08   -.62812E-03
   8  norm          1.1202        3.3035       -.18481E-06   -.12789E-03
   9  Prefactor     .10000E-03    3.8042        .32029E-06** at limit **
  10  Prefactor     5.6947        6.5513       -.57920E-06   -.10792E-04
  11  Prefactor     .10000E-03    75.117        .98373E-06** at limit **
  12  Prefactor     14.682        69.264        .22090E-04    .63447E-05
  13  Prefactor     27.670        59.814       -.19113E-05   -.18353E-05
  14  Prefactor     14.376        7.5705       -.10453E-05   -.16008E-05
  15  Prefactor     13.933        17.801       -.84826E-06   -.77789E-05
  16  norm          7.9728        5.1768        .92257E-06    .13071E-04
  17  Prefactor     27.119        19.398        .30561E-07    .96256E-05
  18  Prefactor     .10000E-03    26.011        .98147E-08** at limit **
  19  norm          2.6444        2.9183       -.15444E-05   -.18719E-04
  20  norm          1.7118        3.6199       -.38461E-06   -.16262E-03
  21  norm          .10000E-03    4.0147       -.35165E-07** at limit **
  22  norm          .10000E-03    15.043        .25188E-06** at limit **
  23  norm          7.2807        7.2082       -.68419E-06   -.15770E-06
  24  Prefactor     .10000E-03    227.33       -.90937E-05** at limit **
  25  norm          9.0491        10.974       -.78569E-06   -.15593E-05
  26  Prefactor     .10000E-03    4.4973       -.90273E-07** at limit **
  27  Prefactor     1.1458        4.5435        .63389E-06   -.39599E-03
  28  Normalizat    1.4098        .20614        .21720E-07    .69910E-05
  29  Prefactor     .66708        .18962        .36950E-06    .42592E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.52677
  Prefactor  = 0.0001
  norm       = 8.23327
  Prefactor  = 0.0001
  Prefactor  = 5.05505
  Prefactor  = 0.0001
  norm       = 6.09441
  norm       = 1.12017
  Prefactor  = 0.0001
  Prefactor  = 5.69466
  Prefactor  = 0.0001
  Prefactor  = 14.6817
  Prefactor  = 27.6701
  Prefactor  = 14.3759
  Prefactor  = 13.9332
  norm       = 7.97276
  Prefactor  = 27.1187
  Prefactor  = 0.0001
  norm       = 2.64435
  norm       = 1.71181
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.28067
  Prefactor  = 0.0001
  norm       = 9.04915
  Prefactor  = 0.0001
  Prefactor  = 1.14585
  Normalizat = 1.40984
  Prefactor  = 0.667075
 **********
 **   18 **HESSE 
 **********

 FCN=   7499.177     FROM HESSE     STATUS=OK           563 CALLS     4337 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52677        4.6603        .25641E-02   -1.5563    
   2  Prefactor     .10000E-03    2.2466        .24993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.2333        3.4961        .10186E-03   -1.5134    
   4  Prefactor     .10000E-03    1.0494        .85697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.0550        2.5399        .93528E-04   -1.5258    
   6  Prefactor     .10000E-03    3.2229        .15137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.0944        .61074        .20125E-04   -1.5214    
   8  norm          1.1202        3.2514        .26116E-03   -1.5496    
   9  Prefactor     .10000E-03    3.8085        .16495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.6947        6.5496        .16832E-03   -1.5231    
  11  Prefactor     .10000E-03    76.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.682        69.375        .10459E-03   -1.4941    
  13  Prefactor     27.670        59.793        .76158E-04   -1.4655    
  14  Prefactor     14.376        7.5813        .52817E-03   -1.4949    
  15  Prefactor     13.933        17.773        .10731E-03   -1.4961    
  16  norm          7.9728        5.1677        .14200E-03   -1.5143    
  17  Prefactor     27.119        19.444        .76925E-04   -1.4666    
  18  Prefactor     .10000E-03    26.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.6444        2.9220        .15040E-03   -1.5383    
  20  norm          1.7118        3.5944        .22640E-03   -1.5446    
  21  norm          .10000E-03    4.0217        .16853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    15.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.2807        7.1932        .14864E-03   -1.5168    
  24  Prefactor     .10000E-03    234.35        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          9.0491        10.961        .13323E-03   -1.5106    
  26  Prefactor     .10000E-03    4.4987        .17936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.1458        73.636        .21669E-02   -1.5494    
  28  Normalizat    1.4098        .24782        .27314E-03   -.80344    
  29  Prefactor     .66708        .22216        .36491E-03   -1.0483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82641e-09
Minuit parameter uncertainties:
  1  3.13367
  2  1.00978e-05
  3  3.49615
  4  2.12711e-06
  5  2.53994
  6  1.18338e-06
  7  0.610741
  8  3.25187
  9  3.35605e-07
  10  6.55037
  11  9.29467e-06
  12  63.9502
  13  59.9228
  14  7.58181
  15  17.7795
  16  5.16797
  17  19.4488
  18  0.000130393
  19  2.92216
  20  3.59486
  21  3.55668e-06
  22  2.87182e-05
  23  7.19401
  24  0.000331196
  25  10.9636
  26  1.61548e-08
  27  18.3942
  28  0.248032
  29  0.222457
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.438e+01  7.582e+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:  6.671e-01  2.225e-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.410e+00  2.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.90
Ra Dec: 193.637 22.181
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 5.64e-08 +/- 2.97e-08
Energy Flux (Fixed Index): 3.17e-05 +/- 1.67e-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) = 7497.94070104
delta logL = 1.236048737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7497.87201744
delta logL = 1.30473233825

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.881       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2184       1.0000          .0000       10.000    
     3 'Normalizat'    1.4455       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66110       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.

 FCN=   7497.872     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      214 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.881        7.7104        .30364E-02    .63816E-04
   2  Index         1.2181        .36403        .21716       -.57603E-04
   3  Normalizat    1.4455        .19602        .61181E-01    .53876E-04
   4  Prefactor     .66109        .18839        .82874E-01   -.16612E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8815
  Index      = 1.21815
  Normalizat = 1.44555
  Prefactor  = 0.661088
 **********
 **   18 **HESSE 
 **********

 FCN=   7497.872     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.881        11.964        .12145E-03   -1.5048    
   2  Index         1.2181        .59921        .90069E-02   -.85775    
   3  Normalizat    1.4455        .22982        .27057E-03   -.79320    
   4  Prefactor     .66109        .22064        .36707E-03   -1.0507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1442e-09
Minuit parameter uncertainties:
  1  11.9666
  2  0.602618
  3  0.229985
  4  0.220932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/986676': 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) = 7497.87201712
delta logL = 1.3047326614

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.088e+01  1.197e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.218e+00  6.026e-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:  6.611e-01  2.209e-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.446e+00  2.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.45
Ra Dec: 193.637 22.181
Photon Index (Free Index): 1.22 +/- 0.60
Photon Flux (Free Index): 1.33e-08 +/- 1.64e-08
Energy Flux (Free Index): 1.05e-04 +/- 1.10e-04

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/986676/cmap_HighResolution_311904001_312163201_4FGL_J1254.5+2210_daily_bin280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.64e-08', energy_flux2='1.05e-04', photon_flux_error='2.97e-08', dlogl='1.30e+00', energy_flux='3.17e-05', photon_flux2='1.33e-08', job_status='DONE', time_completed='2021-09-06 09:14:49.958148', photon_index_error2='0.60', photon_index2='1.22', ts='18.90', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='1.10e-04', EG='1.41', time_epoch_completed='1630944889.96', return_code='0', job_id='986676', GAL2='0.66', EG2='1.45', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='1.64e-08', ts2='21.45', photon_index='2.09' WHERE bin_id='280' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:14:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 986676: <4FGL_J1254.5+2210_daily_bin280> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin280> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 09:00:52 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:00:53 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:00:53 2021
Terminated at Mon Sep  6 09:14:50 2021
Results reported at Mon Sep  6 09:14:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin280 193.637 22.1808 311904001 312163201 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 :                                   812.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             374.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            838 sec.

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

