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


Performing analysis on: 4FGL_J1454.1+1622_daily_bin807
RA = 223.544, Dec = 16.3747
tmin = 448502401, tmax = 448761601
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='842945', job_status='RUN', time_executed='2021-09-10 12:27:33.141914', time_epoch_executed='1631302053.14' WHERE source_name='4FGL J1454.1+1622' and cadence='daily' and bin_id='807'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/842945

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/842945/ft1_4FGL_J1454.1+1622_daily_bin807.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/842945/ft2_4FGL_J1454.1+1622_daily_bin807.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/842945/ft1_4FGL_J1454.1+1622_daily_bin807.fits outfile=/scratch/kocevski/842945/ft1_filteredMKT_4FGL_J1454.1+1622_daily_bin807.fits ra=223.544 dec=16.3747 rad=12.0 tmin=448502401.0 tmax=448761601.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 6.45
user 5.78
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/842945/ft2_4FGL_J1454.1+1622_daily_bin807.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/842945/ft2_4FGL_J1454.1+1622_daily_bin807.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/842945/ft1_filteredMKT_4FGL_J1454.1+1622_daily_bin807.fits evtable="EVENTS" outfile="/scratch/kocevski/842945/ft1_filtered_4FGL_J1454.1+1622_daily_bin807.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.69
user 0.37
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/842945/ft1_filtered_4FGL_J1454.1+1622_daily_bin807.fits" evtable="EVENTS" scfile=/scratch/kocevski/842945/ft2_4FGL_J1454.1+1622_daily_bin807.fits sctable="SC_DATA" outfile=/scratch/kocevski/842945/ltcube_448502401_448761601_4FGL_J1454.1+1622_daily_bin807.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/842945/ft2_4FGL_J1454.1+1622_daily_bin807.fits
.....................!
real 14.84
user 14.46
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/842945/ft1_filtered_4FGL_J1454.1+1622_daily_bin807.fits evtable="EVENTS" scfile=/scratch/kocevski/842945/ft2_4FGL_J1454.1+1622_daily_bin807.fits sctable="SC_DATA" expcube=/scratch/kocevski/842945/ltcube_448502401_448761601_4FGL_J1454.1+1622_daily_bin807.fits outfile=/scratch/kocevski/842945/expmap_448502401_448761601_4FGL_J1454.1+1622_daily_bin807.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/842945/ltcube_448502401_448761601_4FGL_J1454.1+1622_daily_bin807.fits
.....................!
real 195.34
user 185.65
sys 4.18

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

Setting source of interest to:
4FGL J1454.1+1622 @ 223.544 16.3747

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/842945/ft1_filtered_4FGL_J1454.1+1622_daily_bin807.fits scfile=/scratch/kocevski/842945/ft2_4FGL_J1454.1+1622_daily_bin807.fits outfile=/scratch/kocevski/842945/cmap_448502401_448761601_4FGL_J1454.1+1622_daily_bin807.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=223.544 yref=16.3747 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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/842945/ft1_filtered_4FGL_J1454.1+1622_daily_bin807.fits scfile=/scratch/kocevski/842945/ft2_4FGL_J1454.1+1622_daily_bin807.fits outfile=/scratch/kocevski/842945/cmap_HighResolution_448502401_448761601_4FGL_J1454.1+1622_daily_bin807.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=223.544 yref=16.3747 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/842945/ft1_filtered_4FGL_J1454.1+1622_daily_bin807.fits evtable="EVENTS" scfile=/scratch/kocevski/842945/ft2_4FGL_J1454.1+1622_daily_bin807.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/842945/Model_4FGL_J1454.1+1622_daily_bin807.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/842945/ft1_filtered_4FGL_J1454.1+1622_daily_bin807.fits.....................!
real 69.23
user 67.92
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/842945/ft1_filtered_4FGL_J1454.1+1622_daily_bin807.fits', '/scratch/kocevski/842945/ft2_4FGL_J1454.1+1622_daily_bin807.fits', expMap='/scratch/kocevski/842945/expmap_448502401_448761601_4FGL_J1454.1+1622_daily_bin807.fits', expCube='/scratch/kocevski/842945/ltcube_448502401_448761601_4FGL_J1454.1+1622_daily_bin807.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/842945/Model_4FGL_J1454.1+1622_daily_bin807.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1454.1+1622'

4FGL J1454.1+1622
   Spectrum: PowerLaw
220    Prefactor:  7.482e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.409e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
222        Scale:  9.226e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/842945/ft1_filtered_4FGL_J1454.1+1622_daily_bin807.fits
Spacecraft file(s): /scratch/kocevski/842945/ft2_4FGL_J1454.1+1622_daily_bin807.fits
Exposure map: /scratch/kocevski/842945/expmap_448502401_448761601_4FGL_J1454.1+1622_daily_bin807.fits
Exposure cube: /scratch/kocevski/842945/ltcube_448502401_448761601_4FGL_J1454.1+1622_daily_bin807.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/842945/Model_4FGL_J1454.1+1622_daily_bin807.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) = 9509.63889019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.816       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.467       1.0000         .10000E-03   10000.    
     3 'norm      '    3.9205       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0086       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3983       1.0000         .10000E-03   10000.    
     6 'Prefactor '    41.920       1.0000         .10000E-03   10000.    
     7 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    51.458       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.2139       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.904       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1274       1.0000         .10000E-03   10000.    
    12 'Prefactor '    61.319       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .54170       1.0000         .10000E-03   10000.    
    15 'norm      '    .27343       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    51.268       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.9497       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4334       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .71254       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9509.628     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2532 TOTAL
                     EDM=   .29E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.817        28.740         .0000       -.39933E-03
   2  Prefactor     13.467        10.325         .0000       -.89202E-03
   3  norm          3.9205        2.6341         .0000        .16217E-03
   4  Prefactor     5.0096        9.9486         .0000       -.51776E-03
   5  norm          2.3982        2.1980         .0000        .82736E-03
   6  Prefactor     41.918        26.528         .0000        .10975E-02
   7  norm          .10000E-03    5.5586         .0000    ** at limit **
   8  norm          51.459        9.6058         .0000       -.15938E-02
   9  Prefactor     8.2131        19.572         .0000        .16168E-03
  10  Prefactor     12.904        11.600         .0000       -.13706E-03
  11  Prefactor     5.1294        19.776         .0000       -.30407E-03
  12  Prefactor     61.320        31.425         .0000       -.84227E-03
  13  Prefactor     .10000E-03    10.150         .0000    ** at limit **
  14  Prefactor     .54165        9.7880         .0000        .38126E-01
  15  norm          .27342        .13778         .0000       -.10056E-02
  16  norm          .10000E-03    2.8237         .0000    ** at limit **
  17  norm          .10000E-03    45.552         .0000    ** at limit **
  18  Prefactor     .10000E-03    27.623         .0000    ** at limit **
  19  Prefactor     .10000E-03    2.6774         .0000    ** at limit **
  20  Prefactor     51.270        30.043         .0000       -.20929E-02
  21  Prefactor     8.9507        24.955         .0000       -.38156E-03
  22  Normalizat    1.4332        .20017         .0000       -.13657E-02
  23  Prefactor     .71269        .11485         .0000       -.14697E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.817
  Prefactor  = 13.4673
  norm       = 3.92049
  Prefactor  = 5.0096
  norm       = 2.39818
  Prefactor  = 41.9184
  norm       = 0.000100001
  norm       = 51.4595
  Prefactor  = 8.21308
  Prefactor  = 12.904
  Prefactor  = 5.12944
  Prefactor  = 61.3201
  Prefactor  = 0.0001
  Prefactor  = 0.541653
  norm       = 0.273422
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.2696
  Prefactor  = 8.95071
  Normalizat = 1.43319
  Prefactor  = 0.712688
 **********
 **   18 **HESSE 
 **********

 FCN=   9509.628     FROM HESSE     STATUS=OK           358 CALLS     2890 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.817        28.733        .10405E-03   -1.4938    
   2  Prefactor     13.467        10.265        .10915E-03   -1.4974    
   3  norm          3.9205        2.6348        .12615E-03   -1.5312    
   4  Prefactor     5.0096        9.9393        .17968E-03   -1.5260    
   5  norm          2.3982        2.1879        .13330E-03   -1.5398    
   6  Prefactor     41.918        26.529        .61914E-04   -1.4412    
   7  norm          .10000E-03    5.5670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          51.459        9.6158        .55908E-04   -1.4272    
   9  Prefactor     8.2131        19.528        .13989E-03   -1.5135    
  10  Prefactor     12.904        11.602        .11151E-03   -1.4989    
  11  Prefactor     5.1294        19.637        .17755E-03   -1.5255    
  12  Prefactor     61.320        31.256        .51240E-04   -1.4140    
  13  Prefactor     .10000E-03    10.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .54165        10.121        .22880E-02   -1.5561    
  15  norm          .27342        .13428        .24272E-04   -1.5603    
  16  norm          .10000E-03    2.8666        .15999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    46.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.6802        .15583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     51.270        30.207        .56011E-04   -1.4275    
  21  Prefactor     8.9507        24.948        .13398E-03   -1.5110    
  22  Normalizat    1.4332        .24375        .28540E-03   -.79673    
  23  Prefactor     .71269        .13822        .23530E-03   -1.0303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3178e-08
Minuit parameter uncertainties:
  1  28.7599
  2  10.2667
  3  2.63485
  4  9.94258
  5  2.18798
  6  26.5367
  7  0.000118446
  8  9.61613
  9  19.5433
  10  11.6036
  11  19.6613
  12  31.2641
  13  7.47136e-05
  14  4.68324
  15  0.134282
  16  1.50159e-05
  17  8.72324e-05
  18  2.11706e-05
  19  9.29961e-07
  20  30.2157
  21  24.9771
  22  0.243945
  23  0.138287
Done.

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

Extracting fit parameters...

4FGL J1454.1+1622
   Spectrum: PowerLaw
220    Prefactor:  6.132e+01  3.126e+01  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.409e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
222        Scale:  9.226e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
478    Prefactor:  7.127e-01  1.383e-01  0.000e+00  1.000e+01 ( 1.000e+00)
479        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
480        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
477   Normalization:  1.433e+00  2.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.70
Ra Dec: 223.544 16.375
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 9.20e-08 +/- 4.68e-08
Energy Flux (Fixed Index): 2.98e-05 +/- 1.52e-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) = 9509.46447762
delta logL = 0.163154952859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9509.45230786
delta logL = 0.175324717089

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.137       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6581       1.0000          .0000       10.000    
     3 'Normalizat'    1.4083       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72220       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4810E+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=   9509.452     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      296 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.149        32.157        .56082E-04    .54327E-04
   2  Index         2.6584        .45070        .53853E-02    .59965E-03
   3  Normalizat    1.4082        .23117        .28740E-03   -.62421E-04
   4  Prefactor     .72217        .13763        .23386E-03   -.11463E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.1488
  Index      = 2.65842
  Normalizat = 1.40823
  Prefactor  = 0.722174
 **********
 **   18 **HESSE 
 **********

 FCN=   9509.452     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.149        30.849        .22433E-05   -1.4276    
   2  Index         2.6584        .43206        .10771E-02   -.48738    
   3  Normalizat    1.4082        .23124        .11496E-04   -.80391    
   4  Prefactor     .72217        .13771        .93542E-05   -1.0266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95101e-11
Minuit parameter uncertainties:
  1  30.8588
  2  0.43275
  3  0.231416
  4  0.137771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/842945': 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) = 9509.45230639
delta logL = 0.175326184768

Extracting fit parameters...

4FGL J1454.1+1622
   Spectrum: PowerLaw
220    Prefactor:  5.115e+01  3.086e+01  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.658e+00  4.328e-01  0.000e+00  1.000e+01 (-1.000e+00)
222        Scale:  9.226e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
478    Prefactor:  7.222e-01  1.378e-01  0.000e+00  1.000e+01 ( 1.000e+00)
479        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
480        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
477   Normalization:  1.408e+00  2.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.05
Ra Dec: 223.544 16.375
Photon Index (Free Index): 2.66 +/- 0.43
Photon Flux (Free Index): 1.14e-07 +/- 6.02e-08
Energy Flux (Free Index): 2.83e-05 +/- 1.27e-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/842945/cmap_HighResolution_448502401_448761601_4FGL_J1454.1+1622_daily_bin807.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.20e-08', energy_flux2='2.83e-05', photon_flux_error='4.68e-08', dlogl='1.75e-01', energy_flux='2.98e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-10 12:38:52.279272', photon_index_error2='0.43', photon_index2='2.66', ts='9.70', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='1.27e-05', EG='1.43', time_epoch_completed='1631302732.28', return_code='0', job_id='842945', GAL2='0.72', EG2='1.41', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='6.02e-08', ts2='10.05', photon_index='2.41' WHERE bin_id='807' AND source_name='4FGL J1454.1+1622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 12:38:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 842945: <4FGL_J1454.1+1622_daily_bin807> in cluster <slac> Done

Job <4FGL_J1454.1+1622_daily_bin807> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 12:27:11 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 12:27:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 12:27:12 2021
Terminated at Fri Sep 10 12:38:53 2021
Results reported at Fri Sep 10 12:38:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1454.1+1622_daily_bin807 223.544 16.3747 448502401 448761601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1454.1+1622 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   672.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            702 sec.

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

