/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 66 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 = 7375
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1454.1+1622_daily_bin1331
RA = 223.544, Dec = 16.3747
tmin = 584323201, tmax = 584582401
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='846430', job_status='RUN', time_executed='2021-09-10 12:38:49.094873', time_epoch_executed='1631302729.09' WHERE source_name='4FGL J1454.1+1622' and cadence='daily' and bin_id='1331'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846430

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846430/ft1_4FGL_J1454.1+1622_daily_bin1331.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846430/ft2_4FGL_J1454.1+1622_daily_bin1331.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846430/ft1_4FGL_J1454.1+1622_daily_bin1331.fits outfile=/scratch/kocevski/846430/ft1_filteredMKT_4FGL_J1454.1+1622_daily_bin1331.fits ra=223.544 dec=16.3747 rad=12.0 tmin=584323201.0 tmax=584582401.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.76
user 3.25
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/846430/ft2_4FGL_J1454.1+1622_daily_bin1331.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/846430/ft1_filteredMKT_4FGL_J1454.1+1622_daily_bin1331.fits evtable="EVENTS" outfile="/scratch/kocevski/846430/ft1_filtered_4FGL_J1454.1+1622_daily_bin1331.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.95
user 0.32
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846430/ft1_filtered_4FGL_J1454.1+1622_daily_bin1331.fits" evtable="EVENTS" scfile=/scratch/kocevski/846430/ft2_4FGL_J1454.1+1622_daily_bin1331.fits sctable="SC_DATA" outfile=/scratch/kocevski/846430/ltcube_584323201_584582401_4FGL_J1454.1+1622_daily_bin1331.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/846430/ft2_4FGL_J1454.1+1622_daily_bin1331.fits
.....................!
real 12.60
user 11.54
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846430/ft1_filtered_4FGL_J1454.1+1622_daily_bin1331.fits evtable="EVENTS" scfile=/scratch/kocevski/846430/ft2_4FGL_J1454.1+1622_daily_bin1331.fits sctable="SC_DATA" expcube=/scratch/kocevski/846430/ltcube_584323201_584582401_4FGL_J1454.1+1622_daily_bin1331.fits outfile=/scratch/kocevski/846430/expmap_584323201_584582401_4FGL_J1454.1+1622_daily_bin1331.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/846430/ltcube_584323201_584582401_4FGL_J1454.1+1622_daily_bin1331.fits
.....................!
real 191.68
user 184.69
sys 4.70

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/846430/ft1_filtered_4FGL_J1454.1+1622_daily_bin1331.fits scfile=/scratch/kocevski/846430/ft2_4FGL_J1454.1+1622_daily_bin1331.fits outfile=/scratch/kocevski/846430/cmap_584323201_584582401_4FGL_J1454.1+1622_daily_bin1331.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.89
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.105       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .82772       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0388       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3007       1.0000         .10000E-03   10000.    
     5 'norm      '    3.5914       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.1340       1.0000         .10000E-03   10000.    
     8 'norm      '    3.4799       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11780E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3628       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.574       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.429       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20530E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .13590       1.0000         .10000E-03   10000.    
    16 'norm      '    .58892       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.398       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5719       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0695       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0481       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=   9701.090     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2598 TOTAL
                     EDM=   .51E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.103        28.393         .0000        .11240E-02
   2  Prefactor     .82979        3.2963         .0000        .90112E-03
   3  norm          2.0388        1.3867         .0000       -.61535E-03
   4  Prefactor     5.2995        5.7656         .0000        .91233E-02
   5  norm          3.5917        2.3150         .0000        .24621E-03
   6  Prefactor     .10000E-03    13.116         .0000    ** at limit **
   7  norm          1.1359        12.367         .0000        .18156E-01
   8  norm          3.4801        3.0394         .0000        .17862E-03
   9  Prefactor     .10000E-03    46.408         .0000    ** at limit **
  10  Prefactor     .10000E-03    5.1307         .0000    ** at limit **
  11  Prefactor     4.3650        9.3415         .0000        .15830E-03
  12  Prefactor     11.576        17.512         .0000       -.29507E-03
  13  Prefactor     13.429        23.523         .0000        .11098E-03
  14  Prefactor     .10006E-03    2.9992         .0000    ** at limit **
  15  norm          .13587        .10793         .0000       -.23147E-03
  16  norm          .58832        5.7226         .0000        .60557E-01
  17  norm          .10000E-03    9.0265         .0000    ** at limit **
  18  Prefactor     17.399        32.345         .0000       -.24361E-03
  19  Prefactor     2.5725        5.9012         .0000        .10581E-02
  20  Prefactor     .10009E-03    20.643         .0000    ** at limit **
  21  Prefactor     .10002E-03    16.155         .0000    ** at limit **
  22  Normalizat    1.0694        .17474         .0000        .47982E-04
  23  Prefactor     1.0482        .11407         .0000        .12506E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.1033
  Prefactor  = 0.829791
  norm       = 2.03879
  Prefactor  = 5.29955
  norm       = 3.59174
  Prefactor  = 0.000100002
  norm       = 1.1359
  norm       = 3.48007
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.36503
  Prefactor  = 11.5764
  Prefactor  = 13.4288
  Prefactor  = 0.000100061
  norm       = 0.135869
  norm       = 0.588321
  norm       = 0.0001
  Prefactor  = 17.3989
  Prefactor  = 2.57248
  Prefactor  = 0.000100092
  Prefactor  = 0.00010002
  Normalizat = 1.06935
  Prefactor  = 1.04823
 **********
 **   18 **HESSE 
 **********

 FCN=   9701.090     FROM HESSE     STATUS=OK           376 CALLS     2974 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.103        28.273        .48996E-04   -1.4068    
   2  Prefactor     .82979        10.759        .31900E-02   -1.5526    
   3  norm          2.0388        1.3958        .93170E-04   -1.5422    
   4  Prefactor     5.2995        5.6883        .87285E-03   -1.5248    
   5  norm          3.5917        2.3096        .11551E-03   -1.5329    
   6  Prefactor     .10000E-03    13.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1359        12.321        .21899E-02   -1.5495    
   8  norm          3.4801        3.0394        .15531E-03   -1.5335    
   9  Prefactor     .10000E-03    47.753        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.1413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.3650        9.3111        .19284E-03   -1.5290    
  12  Prefactor     11.576        17.475        .11776E-03   -1.5027    
  13  Prefactor     13.429        23.499        .10931E-03   -1.4975    
  14  Prefactor     .10006E-03    25.431        .32821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .13587        .10517        .27587E-04   -1.5634    
  16  norm          .58832        5.7757        .22824E-02   -1.5555    
  17  norm          .10000E-03    9.0265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.399        32.371        .96021E-04   -1.4873    
  19  Prefactor     2.5725        5.8859        .25451E-03   -1.5387    
  20  Prefactor     .10009E-03    20.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    16.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0694        .20955        .29147E-03   -.90742    
  23  Prefactor     1.0482        .13768        .19753E-03   -.91139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56004e-08
Minuit parameter uncertainties:
  1  28.2788
  2  5.97693
  3  1.39585
  4  5.68889
  5  2.30965
  6  0.00029682
  7  7.48381
  8  3.03955
  9  0.000504822
  10  3.13576e-06
  11  9.3142
  12  17.4824
  13  23.5153
  14  0.00249145
  15  0.105167
  16  3.68686
  17  1.7937e-05
  18  32.4034
  19  5.88727
  20  0.00276545
  21  0.00114448
  22  0.20971
  23  0.13773
Done.

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

Extracting fit parameters...

4FGL J1454.1+1622
   Spectrum: PowerLaw
220    Prefactor:  1.158e+01  1.748e+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:  1.048e+00  1.377e-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.069e+00  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.61
Ra Dec: 223.544 16.375
Photon Flux Upper Limit: 8.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/846430/likelihoodResults_584323201_584582401_4FGL_J1454.1+1622_daily_bin1331.txt

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) = 9700.81840415
delta logL = 0.271486162252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9700.80784762
delta logL = 0.282042693208

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3004       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2309       1.0000          .0000       10.000    
     3 'Normalizat'    1.0443       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0579       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=   9700.808     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      292 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2976        17.292        .15992E-03    .99527E-06
   2  Index         3.2312        1.6062        .74043E-02    .32419E-04
   3  Normalizat    1.0443        .20746        .29450E-03    .31238E-03
   4  Prefactor     1.0578        .13776        .19670E-03    .30651E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.29758
  Index      = 3.23119
  Normalizat = 1.04431
  Prefactor  = 1.05783
 **********
 **   18 **HESSE 
 **********

 FCN=   9700.808     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2976        12.481        .63967E-05   -1.5206    
   2  Index         3.2312        1.1689        .29617E-03   -.36159    
   3  Normalizat    1.0443        .20695        .11780E-04   -.91560    
   4  Prefactor     1.0578        .13750        .39340E-04   -.90826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27621e-10
Minuit parameter uncertainties:
  1  12.4866
  2  1.18142
  3  0.20711
  4  0.137545
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846430': 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) = 9700.80784657
delta logL = 0.282043741227

Extracting fit parameters...

4FGL J1454.1+1622
   Spectrum: PowerLaw
220    Prefactor:  6.298e+00  1.249e+01  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  3.231e+00  1.181e+00  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:  1.058e+00  1.375e-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.044e+00  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.20
Ra Dec: 223.544 16.375
Photon Index (Free Index): 3.23 +/- 1.18
Photon Flux (Free Index): 3.71e-08 +/- 4.20e-08
Energy Flux (Free Index): 6.72e-06 +/- 7.08e-06

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/846430/cmap_HighResolution_584323201_584582401_4FGL_J1454.1+1622_daily_bin1331.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', comment='SUCCESS', energy_flux2='6.72e-06', dlogl='2.82e-01', photon_flux2='3.71e-08', job_status='DONE', time_completed='2021-09-10 12:51:37.878446', photon_index_error2='1.18', photon_index2='3.23', ts='0.61', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='8.02e-08', energy_flux_error2='7.08e-06', EG='1.07', time_epoch_completed='1631303497.88', return_code='0', job_id='846430', GAL2='1.06', EG2='1.04', return_code2='0', photon_flux_error2='4.20e-08', ts2='1.20', photon_index='2.41' WHERE bin_id='1331' AND source_name='4FGL J1454.1+1622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 12:51:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 846430: <4FGL_J1454.1+1622_daily_bin1331> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1454.1+1622_daily_bin1331 223.544 16.3747 584323201 584582401 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 :                                   758.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            877 sec.

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

