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


Performing analysis on: 4FGL_J1454.1+1622_daily_bin1500
RA = 223.544, Dec = 16.3747
tmin = 628128001, tmax = 628387201
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='846705', job_status='RUN', time_executed='2021-09-10 12:40:37.777756', time_epoch_executed='1631302837.78' WHERE source_name='4FGL J1454.1+1622' and cadence='daily' and bin_id='1500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846705

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846705/ft1_4FGL_J1454.1+1622_daily_bin1500.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846705/ft2_4FGL_J1454.1+1622_daily_bin1500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846705/ft1_4FGL_J1454.1+1622_daily_bin1500.fits outfile=/scratch/kocevski/846705/ft1_filteredMKT_4FGL_J1454.1+1622_daily_bin1500.fits ra=223.544 dec=16.3747 rad=12.0 tmin=628128001.0 tmax=628387201.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 5.22
user 4.92
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846705/ft1_filtered_4FGL_J1454.1+1622_daily_bin1500.fits" evtable="EVENTS" scfile=/scratch/kocevski/846705/ft2_4FGL_J1454.1+1622_daily_bin1500.fits sctable="SC_DATA" outfile=/scratch/kocevski/846705/ltcube_628128001_628387201_4FGL_J1454.1+1622_daily_bin1500.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/846705/ft2_4FGL_J1454.1+1622_daily_bin1500.fits
.....................!
real 11.64
user 11.24
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846705/ft1_filtered_4FGL_J1454.1+1622_daily_bin1500.fits evtable="EVENTS" scfile=/scratch/kocevski/846705/ft2_4FGL_J1454.1+1622_daily_bin1500.fits sctable="SC_DATA" expcube=/scratch/kocevski/846705/ltcube_628128001_628387201_4FGL_J1454.1+1622_daily_bin1500.fits outfile=/scratch/kocevski/846705/expmap_628128001_628387201_4FGL_J1454.1+1622_daily_bin1500.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/846705/ltcube_628128001_628387201_4FGL_J1454.1+1622_daily_bin1500.fits
.....................!
real 191.92
user 186.92
sys 4.35

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/846705/ft1_filtered_4FGL_J1454.1+1622_daily_bin1500.fits scfile=/scratch/kocevski/846705/ft2_4FGL_J1454.1+1622_daily_bin1500.fits outfile=/scratch/kocevski/846705/cmap_628128001_628387201_4FGL_J1454.1+1622_daily_bin1500.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/846705/ft1_filtered_4FGL_J1454.1+1622_daily_bin1500.fits scfile=/scratch/kocevski/846705/ft2_4FGL_J1454.1+1622_daily_bin1500.fits outfile=/scratch/kocevski/846705/cmap_HighResolution_628128001_628387201_4FGL_J1454.1+1622_daily_bin1500.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/846705/ft1_filtered_4FGL_J1454.1+1622_daily_bin1500.fits evtable="EVENTS" scfile=/scratch/kocevski/846705/ft2_4FGL_J1454.1+1622_daily_bin1500.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/846705/Model_4FGL_J1454.1+1622_daily_bin1500.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/846705/ft1_filtered_4FGL_J1454.1+1622_daily_bin1500.fits.....................!
real 53.36
user 51.92
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/846705/ft1_filtered_4FGL_J1454.1+1622_daily_bin1500.fits', '/scratch/kocevski/846705/ft2_4FGL_J1454.1+1622_daily_bin1500.fits', expMap='/scratch/kocevski/846705/expmap_628128001_628387201_4FGL_J1454.1+1622_daily_bin1500.fits', expCube='/scratch/kocevski/846705/ltcube_628128001_628387201_4FGL_J1454.1+1622_daily_bin1500.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/846705/Model_4FGL_J1454.1+1622_daily_bin1500.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/846705/ft1_filtered_4FGL_J1454.1+1622_daily_bin1500.fits
Spacecraft file(s): /scratch/kocevski/846705/ft2_4FGL_J1454.1+1622_daily_bin1500.fits
Exposure map: /scratch/kocevski/846705/expmap_628128001_628387201_4FGL_J1454.1+1622_daily_bin1500.fits
Exposure cube: /scratch/kocevski/846705/ltcube_628128001_628387201_4FGL_J1454.1+1622_daily_bin1500.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/846705/Model_4FGL_J1454.1+1622_daily_bin1500.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) = 6728.01463254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.943       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.8397       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3915       1.0000         .10000E-03   10000.    
     5 'norm      '    4.4430       1.0000         .10000E-03   10000.    
     6 'Prefactor '    59.922       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.5635       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.592       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    49.623       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3547       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9925       1.0000         .10000E-03   10000.    
    16 'norm      '    14.749       1.0000         .10000E-03   10000.    
    17 'norm      '    50.585       1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.733       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8016       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4102       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1928       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .69712       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6727.997     FROM MIGRAD    STATUS=CONVERGED     77 CALLS     2126 TOTAL
                     EDM=   .67E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.944        1.0238        .25727E-07   -.32868E-03
   2  Prefactor     .10000E-03    3.7573        .86947E-06** at limit **
   3  norm          2.8397        2.1116       -.20561E-06   -.58153E-04
   4  Prefactor     3.3910        6.9835       -.12030E-04   -.38417E-03
   5  norm          4.4439        3.4623        .44359E-06   -.34392E-04
   6  Prefactor     59.917        1.3624       -.26843E-06    .29017E-02
   7  norm          .10000E-03    7.2584       -.61121E-07** at limit **
   8  norm          5.5636        3.7318        .25222E-05    .10886E-03
   9  Prefactor     .10021E-03    18.768        .24143E-05** at limit **
  10  Prefactor     14.587        1.1581       -.19769E-06    .45870E-03
  11  Prefactor     .10000E-03    23.245       -.35078E-05** at limit **
  12  Prefactor     49.625        1.1959        .21049E-06   -.17771E-02
  13  Prefactor     .10024E-03    18.224        .74148E-05** at limit **
  14  Prefactor     1.3576        3.9578       -.86996E-06   -.37845E-04
  15  norm          1.9924        .31342       -.54445E-07   -.37969E-03
  16  norm          14.748        1.0025        .45723E-07    .24590E-04
  17  norm          50.587        1.1330        .18629E-06   -.16721E-02
  18  Prefactor     35.735        1.0354        .11802E-06   -.55535E-03
  19  Prefactor     4.8005        1.2341        .10034E-05   -.10823E-03
  20  Prefactor     6.4121        1.0579        .33561E-06   -.23417E-03
  21  Prefactor     .10000E-03    66.799       -.97400E-05** at limit **
  22  Normalizat    1.1928        .24691        .62793E-05   -.10157E-04
  23  Prefactor     .69715        .15352       -.18273E-05   -.35990E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.9444
  Prefactor  = 0.0001
  norm       = 2.83968
  Prefactor  = 3.39098
  norm       = 4.44391
  Prefactor  = 59.9173
  norm       = 0.0001
  norm       = 5.56359
  Prefactor  = 0.000100208
  Prefactor  = 14.5874
  Prefactor  = 0.000100001
  Prefactor  = 49.6252
  Prefactor  = 0.000100236
  Prefactor  = 1.35765
  norm       = 1.99244
  norm       = 14.7484
  norm       = 50.5872
  Prefactor  = 35.7346
  Prefactor  = 4.80045
  Prefactor  = 6.41208
  Prefactor  = 0.000100001
  Normalizat = 1.1928
  Prefactor  = 0.697152
 **********
 **   18 **HESSE 
 **********

 FCN=   6727.997     FROM HESSE     STATUS=OK           424 CALLS     2550 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.944        29.927        .26817E-02   -1.4961    
   2  Prefactor     .10000E-03    3.7534        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.8397        2.1147        .60326E-02   -1.5371    
   4  Prefactor     3.3910        7.1134        .54925E-02   -1.5340    
   5  norm          4.4439        3.4833        .47760E-02   -1.5286    
   6  Prefactor     59.917        36.199        .12958E-02   -1.4158    
   7  norm          .10000E-03    7.2587        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.5636        3.7344        .42582E-02   -1.5236    
   9  Prefactor     .10021E-03    34.239        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.587        22.785        .26213E-02   -1.4944    
  11  Prefactor     .10000E-03    23.125        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     49.625        32.186        .14232E-02   -1.4298    
  13  Prefactor     .10024E-03    37.385        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.3576        4.0159        .93903E-02   -1.5475    
  15  norm          1.9924        .31645        .39329E-02   -1.5426    
  16  norm          14.748        9.7854        .26073E-02   -1.4940    
  17  norm          50.587        47.122        .14097E-02   -1.4284    
  18  Prefactor     35.735        37.110        .16760E-02   -1.4512    
  19  Prefactor     4.8005        9.2788        .45899E-02   -1.5270    
  20  Prefactor     6.4121        31.084        .39631E-02   -1.5201    
  21  Prefactor     .10000E-03    67.238        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1928        .21403        .64093E-01   -.86826    
  23  Prefactor     .69715        .13038        .42363E-01   -1.0364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08887e-07
Minuit parameter uncertainties:
  1  29.9593
  2  9.91429e-06
  3  2.11475
  4  7.11519
  5  3.48347
  6  36.2128
  7  1.47522e-05
  8  3.73458
  9  0.0053449
  10  22.7981
  11  0.000279104
  12  32.1976
  13  0.00594947
  14  4.01669
  15  0.316451
  16  9.78646
  17  47.1566
  18  37.134
  19  9.2816
  20  28.2594
  21  0.000509357
  22  0.214186
  23  0.130433
Done.

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

Extracting fit parameters...

4FGL J1454.1+1622
   Spectrum: PowerLaw
220    Prefactor:  4.963e+01  3.220e+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:  6.972e-01  1.304e-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.193e+00  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.29
Ra Dec: 223.544 16.375
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 7.44e-08 +/- 4.82e-08
Energy Flux (Fixed Index): 2.41e-05 +/- 1.56e-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) = 6727.98904989
delta logL = 0.00801176169625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6727.98207061
delta logL = 0.0149910457621

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.005       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5268       1.0000          .0000       10.000    
     3 'Normalizat'    1.1843       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70102       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=   6727.982     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      273 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.990        44.499        .59764E-04    .12772E-03
   2  Index         2.5277        .76276        .71512E-02    .29038E-04
   3  Normalizat    1.1836        .24774        .28443E-03    .17930E-03
   4  Prefactor     .70147        .15508        .22822E-03    .51907E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.9896
  Index      = 2.52771
  Normalizat = 1.18356
  Prefactor  = 0.701474
 **********
 **   18 **HESSE 
 **********

 FCN=   6727.982     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.990        41.009        .11953E-04   -1.4365    
   2  Index         2.5277        .70241        .28605E-03   -.51721    
   3  Normalizat    1.1836        .24706        .11377E-04   -.87112    
   4  Prefactor     .70147        .15477        .91287E-05   -1.0347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69941e-10
Minuit parameter uncertainties:
  1  41.0349
  2  0.705507
  3  0.247304
  4  0.154866
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846705': 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) = 6727.98206563
delta logL = 0.0149960287617

Extracting fit parameters...

4FGL J1454.1+1622
   Spectrum: PowerLaw
220    Prefactor:  4.499e+01  4.103e+01  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.528e+00  7.055e-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.015e-01  1.549e-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.184e+00  2.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.28
Ra Dec: 223.544 16.375
Photon Index (Free Index): 2.53 +/- 0.71
Photon Flux (Free Index): 8.11e-08 +/- 6.34e-08
Energy Flux (Free Index): 2.28e-05 +/- 1.60e-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/846705/cmap_HighResolution_628128001_628387201_4FGL_J1454.1+1622_daily_bin1500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.44e-08', energy_flux2='2.28e-05', photon_flux_error='4.82e-08', dlogl='1.50e-02', energy_flux='2.41e-05', photon_flux2='8.11e-08', job_status='DONE', time_completed='2021-09-10 12:49:47.840261', photon_index_error2='0.71', photon_index2='2.53', ts='4.29', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='1.19', time_epoch_completed='1631303387.84', return_code='0', job_id='846705', GAL2='0.70', EG2='1.18', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='6.34e-08', ts2='4.28', photon_index='2.41' WHERE bin_id='1500' AND source_name='4FGL J1454.1+1622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 12:49:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 846705: <4FGL_J1454.1+1622_daily_bin1500> in cluster <slac> Done

Job <4FGL_J1454.1+1622_daily_bin1500> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 12:37:22 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 12:37:23 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:37:23 2021
Terminated at Fri Sep 10 12:49:48 2021
Results reported at Fri Sep 10 12:49:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1454.1+1622_daily_bin1500 223.544 16.3747 628128001 628387201 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 :                                   541.13 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             229.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            746 sec.

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

