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


Performing analysis on: 4FGL_J1454.1+1622_daily_bin338
RA = 223.544, Dec = 16.3747
tmin = 326937601, tmax = 327196801
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='839855', job_status='RUN', time_executed='2021-09-10 12:18:01.498077', time_epoch_executed='1631301481.5' WHERE source_name='4FGL J1454.1+1622' and cadence='daily' and bin_id='338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839855

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839855/ft1_4FGL_J1454.1+1622_daily_bin338.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839855/ft2_4FGL_J1454.1+1622_daily_bin338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839855/ft1_4FGL_J1454.1+1622_daily_bin338.fits outfile=/scratch/kocevski/839855/ft1_filteredMKT_4FGL_J1454.1+1622_daily_bin338.fits ra=223.544 dec=16.3747 rad=12.0 tmin=326937601.0 tmax=327196801.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 4.59
user 3.09
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/839855/ft2_4FGL_J1454.1+1622_daily_bin338.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/839855/ft1_filteredMKT_4FGL_J1454.1+1622_daily_bin338.fits evtable="EVENTS" outfile="/scratch/kocevski/839855/ft1_filtered_4FGL_J1454.1+1622_daily_bin338.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 1.33
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/839855/ft1_filtered_4FGL_J1454.1+1622_daily_bin338.fits" evtable="EVENTS" scfile=/scratch/kocevski/839855/ft2_4FGL_J1454.1+1622_daily_bin338.fits sctable="SC_DATA" outfile=/scratch/kocevski/839855/ltcube_326937601_327196801_4FGL_J1454.1+1622_daily_bin338.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/839855/ft2_4FGL_J1454.1+1622_daily_bin338.fits
.....................!
real 12.37
user 11.50
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839855/ft1_filtered_4FGL_J1454.1+1622_daily_bin338.fits evtable="EVENTS" scfile=/scratch/kocevski/839855/ft2_4FGL_J1454.1+1622_daily_bin338.fits sctable="SC_DATA" expcube=/scratch/kocevski/839855/ltcube_326937601_327196801_4FGL_J1454.1+1622_daily_bin338.fits outfile=/scratch/kocevski/839855/expmap_326937601_327196801_4FGL_J1454.1+1622_daily_bin338.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/839855/ltcube_326937601_327196801_4FGL_J1454.1+1622_daily_bin338.fits
.....................!
real 190.35
user 184.86
sys 4.92

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/839855/ft1_filtered_4FGL_J1454.1+1622_daily_bin338.fits scfile=/scratch/kocevski/839855/ft2_4FGL_J1454.1+1622_daily_bin338.fits outfile=/scratch/kocevski/839855/cmap_326937601_327196801_4FGL_J1454.1+1622_daily_bin338.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839855/ft1_filtered_4FGL_J1454.1+1622_daily_bin338.fits scfile=/scratch/kocevski/839855/ft2_4FGL_J1454.1+1622_daily_bin338.fits outfile=/scratch/kocevski/839855/cmap_HighResolution_326937601_327196801_4FGL_J1454.1+1622_daily_bin338.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    14.392       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.2938       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.1396       1.0000         .10000E-03   10000.    
     8 'norm      '    6.0241       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10406E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9571       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .82221E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.268       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10624E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8390       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4167       1.0000         .10000E-03   10000.    
    16 'norm      '    3.7845       1.0000         .10000E-03   10000.    
    17 'norm      '    44.328       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.9577       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.2636       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2386       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .74267       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.

 FCN=   6587.965     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2556 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.318       -.37669E-07** at limit **
   2  Prefactor     .10000E-03    1.6793        .14313E-07** at limit **
   3  norm          14.392        4.1140       -.12884E-08   -.19290E-04
   4  Prefactor     .10000E-03    3.2532        .68107E-08** at limit **
   5  norm          6.2938        3.2496        .13000E-07   -.47688E-04
   6  Prefactor     .10000E-03    14.603       -.23920E-06** at limit **
   7  norm          5.1321        11.215        .21308E-05   -.50708E-03
   8  norm          6.0243        4.0641        .24769E-08   -.32929E-04
   9  Prefactor     .10000E-03    29.877        .51095E-08** at limit **
  10  Prefactor     8.9555        13.882        .40310E-06   -.19209E-03
  11  Prefactor     .10000E-03    6.4687        .34717E-07** at limit **
  12  Prefactor     23.262        20.773        .30050E-06    .26596E-04
  13  Prefactor     .10000E-03    40.162        .67295E-06** at limit **
  14  Prefactor     1.8339        6.0004        .40999E-06   -.19129E-03
  15  norm          1.4167        .26599       -.23554E-08   -.60335E-04
  16  norm          3.7845        5.3926        .30904E-07   -.42807E-04
  17  norm          44.314        51.545       -.58390E-05   -.20858E-03
  18  Prefactor     7.9571        54.601       -.39827E-06   -.10919E-04
  19  Prefactor     .10000E-03    2.6648        .21783E-08** at limit **
  20  Prefactor     .10000E-03    41.258       -.59921E-06** at limit **
  21  Prefactor     5.2623        35.914       -.15548E-06   -.11218E-04
  22  Normalizat    1.2388        .20198       -.38364E-06    .76224E-05
  23  Prefactor     .74262        .12978        .22122E-06   -.45220E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.392
  Prefactor  = 0.0001
  norm       = 6.29379
  Prefactor  = 0.0001
  norm       = 5.13212
  norm       = 6.02425
  Prefactor  = 0.0001
  Prefactor  = 8.95545
  Prefactor  = 0.000100003
  Prefactor  = 23.2619
  Prefactor  = 0.0001
  Prefactor  = 1.83389
  norm       = 1.41668
  norm       = 3.78453
  norm       = 44.3136
  Prefactor  = 7.95714
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.26226
  Normalizat = 1.23878
  Prefactor  = 0.742618
 **********
 **   18 **HESSE 
 **********

 FCN=   6587.965     FROM HESSE     STATUS=OK           380 CALLS     2936 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.6814        .10272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          14.392        4.1167        .84987E-04   -1.4949    
   4  Prefactor     .10000E-03    3.3030        .14289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.2938        3.2539        .10068E-03   -1.5206    
   6  Prefactor     .10000E-03    14.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.1321        14.133        .88667E-03   -1.5255    
   8  norm          6.0243        4.0641        .13030E-03   -1.5217    
   9  Prefactor     .10000E-03    30.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.9555        14.062        .66961E-03   -1.5109    
  11  Prefactor     .10000E-03    8.1325        .73793E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.262        20.771        .83041E-04   -1.4743    
  13  Prefactor     .10000E-03    40.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8339        6.0734        .30763E-03   -1.5437    
  15  norm          1.4167        .26653        .17302E-04   -1.5470    
  16  norm          3.7845        5.3884        .20751E-03   -1.5319    
  17  norm          44.314        54.742        .60216E-04   -1.4376    
  18  Prefactor     7.9571        55.081        .14214E-03   -1.5144    
  19  Prefactor     .10000E-03    2.6686        .12940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    41.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.2623        35.994        .17520E-03   -1.5249    
  22  Normalizat    1.2388        .24191        .26769E-03   -.85413    
  23  Prefactor     .74262        .15524        .22100E-03   -1.0188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46481e-09
Minuit parameter uncertainties:
  1  1.19681e-05
  2  3.69263e-07
  3  4.11674
  4  1.18866e-07
  5  3.25401
  6  2.35989e-05
  7  14.1427
  8  4.06424
  9  1.07652e-05
  10  14.067
  11  0.000287878
  12  20.7773
  13  0.000106621
  14  6.07546
  15  0.266531
  16  5.3891
  17  54.8043
  18  41.9256
  19  7.70645e-08
  20  8.9184e-05
  21  27.5488
  22  0.242129
  23  0.155328
Done.

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

Extracting fit parameters...

4FGL J1454.1+1622
   Spectrum: PowerLaw
220    Prefactor:  2.326e+01  2.078e+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.426e-01  1.553e-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.239e+00  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.41
Ra Dec: 223.544 16.375
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 3.49e-08 +/- 3.11e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 1.01e-05

TS (Fixed Index): 2.41
Ra Dec: 223.544 16.375
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/839855/likelihoodResults_326937601_327196801_4FGL_J1454.1+1622_daily_bin338.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) = 6587.60560353
delta logL = 0.359745695654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6587.54492023
delta logL = 0.420428988959

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.687       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8344       1.0000          .0000       10.000    
     3 'Normalizat'    1.2569       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73443       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=   6587.545     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      269 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.708        26.605        .35591E-03   -.12458E-05
   2  Index         1.8350        .55414        .90424E-02   -.29533E-05
   3  Normalizat    1.2570        .23256        .26600E-03   -.27952E-04
   4  Prefactor     .73447        .15331        .22200E-03    .39278E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.7076
  Index      = 1.83499
  Normalizat = 1.25697
  Prefactor  = 0.734466
 **********
 **   18 **HESSE 
 **********

 FCN=   6587.545     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.708        26.654        .14236E-04   -1.4581    
   2  Index         1.8350        .55520        .36170E-03   -.68543    
   3  Normalizat    1.2570        .23279        .10640E-04   -.84860    
   4  Prefactor     .73447        .15347        .88802E-05   -1.0219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73315e-11
Minuit parameter uncertainties:
  1  26.6637
  2  0.557126
  3  0.232984
  4  0.153563
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839855': 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) = 6587.54491856
delta logL = 0.420430665439

Extracting fit parameters...

4FGL J1454.1+1622
   Spectrum: PowerLaw
220    Prefactor:  3.171e+01  2.666e+01  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  1.835e+00  5.571e-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.345e-01  1.536e-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.257e+00  2.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.25
Ra Dec: 223.544 16.375
Photon Index (Free Index): 1.83 +/- 0.56
Photon Flux (Free Index): 2.23e-08 +/- 2.37e-08
Energy Flux (Free Index): 2.41e-05 +/- 3.11e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/839855/cmap_HighResolution_326937601_327196801_4FGL_J1454.1+1622_daily_bin338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.61e-03', comment='SUCCESS', photon_flux='3.49e-08', energy_flux2='2.41e-05', photon_flux_error='3.11e-08', dlogl='4.20e-01', energy_flux='1.13e-05', photon_flux2='2.23e-08', job_status='DONE', time_completed='2021-09-10 12:28:14.892825', photon_index_error2='0.56', photon_index2='1.83', ts='2.41', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='3.11e-05', EG='1.24', time_epoch_completed='1631302094.89', return_code='0', job_id='839855', GAL2='0.73', EG2='1.26', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='2.37e-08', ts2='3.25', photon_index='2.41' WHERE bin_id='338' AND source_name='4FGL J1454.1+1622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 12:28:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 839855: <4FGL_J1454.1+1622_daily_bin338> in cluster <slac> Done

Job <4FGL_J1454.1+1622_daily_bin338> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 12:16:36 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 12:16:37 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:16:37 2021
Terminated at Fri Sep 10 12:28:15 2021
Results reported at Fri Sep 10 12:28:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1454.1+1622_daily_bin338 223.544 16.3747 326937601 327196801 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 :                                   609.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            699 sec.

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

