/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 214 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1454.1+1622_daily_bin55
RA = 223.544, Dec = 16.3747
tmin = 253584001, tmax = 253843201
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='837010', job_status='RUN', time_executed='2021-09-10 12:11:43.712840', time_epoch_executed='1631301103.71' WHERE source_name='4FGL J1454.1+1622' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/837010

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/837010/ft1_4FGL_J1454.1+1622_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/837010/ft2_4FGL_J1454.1+1622_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/837010/ft1_4FGL_J1454.1+1622_daily_bin55.fits outfile=/scratch/kocevski/837010/ft1_filteredMKT_4FGL_J1454.1+1622_daily_bin55.fits ra=223.544 dec=16.3747 rad=12.0 tmin=253584001.0 tmax=253843201.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 1.49
user 1.24
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/837010/ft1_filtered_4FGL_J1454.1+1622_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/837010/ft2_4FGL_J1454.1+1622_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/837010/ltcube_253584001_253843201_4FGL_J1454.1+1622_daily_bin55.fits outfile=/scratch/kocevski/837010/expmap_253584001_253843201_4FGL_J1454.1+1622_daily_bin55.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/837010/ltcube_253584001_253843201_4FGL_J1454.1+1622_daily_bin55.fits
.....................!
real 190.40
user 185.28
sys 4.21

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/837010/ft1_filtered_4FGL_J1454.1+1622_daily_bin55.fits scfile=/scratch/kocevski/837010/ft2_4FGL_J1454.1+1622_daily_bin55.fits outfile=/scratch/kocevski/837010/cmap_253584001_253843201_4FGL_J1454.1+1622_daily_bin55.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/837010/ft1_filtered_4FGL_J1454.1+1622_daily_bin55.fits scfile=/scratch/kocevski/837010/ft2_4FGL_J1454.1+1622_daily_bin55.fits outfile=/scratch/kocevski/837010/cmap_HighResolution_253584001_253843201_4FGL_J1454.1+1622_daily_bin55.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.196       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.6076       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15921E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10498E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.933       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7276       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.978       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8333       1.0000         .10000E-03   10000.    
    16 'norm      '    11.920       1.0000         .10000E-03   10000.    
    17 'norm      '    33.786       1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.034       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.972       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.152       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .84832       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0546       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=   7057.762     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2505 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.198        26.019        .24223E-05   -.12738E-03
   2  Prefactor     .10000E-03    5.1118       -.10220E-05** at limit **
   3  norm          6.6074        3.2176        .19436E-06   -.18749E-03
   4  Prefactor     .10024E-03    4.0948        .38209E-05** at limit **
   5  norm          .10000E-03    1.6087        .41524E-06** at limit **
   6  Prefactor     .10000E-03    23.716       -.22709E-04** at limit **
   7  norm          .10000E-03    13.128       -.12250E-04** at limit **
   8  norm          .10000E-03    3.3556       -.97100E-07** at limit **
   9  Prefactor     .10000E-03    7.8432        .31424E-05** at limit **
  10  Prefactor     .10000E-03    13.162       -.12098E-04** at limit **
  11  Prefactor     23.934        17.688        .10830E-05   -.15293E-03
  12  Prefactor     3.7274        24.018       -.93361E-06   -.10746E-03
  13  Prefactor     .10000E-03    16.685        .13529E-04** at limit **
  14  Prefactor     17.977        10.735       -.37150E-06   -.97818E-04
  15  norm          2.8333        .34867        .48893E-07   -.40508E-04
  16  norm          11.920        9.3063        .18410E-06    .13224E-04
  17  norm          33.785        41.659       -.14157E-05   -.33272E-05
  18  Prefactor     27.058        46.307        .40342E-04   -.26072E-04
  19  Prefactor     11.972        10.495       -.58456E-07   -.53064E-04
  20  Prefactor     11.150        22.741       -.45557E-05   -.49089E-04
  21  Prefactor     .10000E-03    17.017        .14542E-04** at limit **
  22  Normalizat    .84820        .21790       -.59083E-05   -.33482E-03
  23  Prefactor     1.0547        .14206        .12562E-06   -.61423E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.1976
  Prefactor  = 0.0001
  norm       = 6.60741
  Prefactor  = 0.000100239
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.9341
  Prefactor  = 3.72742
  Prefactor  = 0.0001
  Prefactor  = 17.9775
  norm       = 2.83334
  norm       = 11.9198
  norm       = 33.7846
  Prefactor  = 27.0582
  Prefactor  = 11.9723
  Prefactor  = 11.1502
  Prefactor  = 0.0001
  Normalizat = 0.848195
  Prefactor  = 1.05471
 **********
 **   18 **HESSE 
 **********

 FCN=   7057.762     FROM HESSE     STATUS=OK           372 CALLS     2877 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.198        26.016        .93892E-04   -1.4855    
   2  Prefactor     .10000E-03    5.1700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.6074        3.2171        .10182E-03   -1.5194    
   4  Prefactor     .10024E-03    16.580        .32068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.6344        .20601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    13.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.4802        .30046E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.8529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.934        17.680        .81880E-04   -1.4729    
  12  Prefactor     3.7274        23.917        .20915E-03   -1.5322    
  13  Prefactor     .10000E-03    16.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.977        10.734        .94461E-04   -1.4860    
  15  norm          2.8333        .34912        .16480E-04   -1.5371    
  16  norm          11.920        9.3183        .11603E-03   -1.5017    
  17  norm          33.785        41.671        .68941E-04   -1.4545    
  18  Prefactor     27.058        46.352        .77049E-04   -1.4667    
  19  Prefactor     11.972        10.493        .11578E-03   -1.5016    
  20  Prefactor     11.150        22.741        .11997E-03   -1.5040    
  21  Prefactor     .10000E-03    17.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .84820        .25443        .33927E-03   -.98305    
  23  Prefactor     1.0547        .16794        .20651E-03   -.90927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43536e-08
Minuit parameter uncertainties:
  1  26.0318
  2  1.09142e-05
  3  3.21715
  4  0.00398523
  5  1.65893e-05
  6  0.000141037
  7  9.72455e-05
  8  1.99185e-05
  9  4.53823e-07
  10  5.02049e-05
  11  17.6836
  12  18.8944
  13  9.7976e-06
  14  10.7355
  15  0.349115
  16  9.31947
  17  41.707
  18  46.4139
  19  10.4941
  20  22.7585
  21  2.03338e-05
  22  0.254786
  23  0.168027
Done.

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

Extracting fit parameters...

4FGL J1454.1+1622
   Spectrum: PowerLaw
220    Prefactor:  3.727e+00  1.889e+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.055e+00  1.680e-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:  8.482e-01  2.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/837010/likelihoodResults_253584001_253843201_4FGL_J1454.1+1622_daily_bin55.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) = 7057.76167054
delta logL = 0.000434037721789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7057.76143501
delta logL = 0.00066956351111

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5784       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4863       1.0000          .0000       10.000    
     3 'Normalizat'    .84764       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0548       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=   7057.761     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      274 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5736        25.674        .21363E-03   -.94139E-04
   2  Index         2.4869        2.1286        .10235E-01   -.28432E-04
   3  Normalizat    .84771        .24662        .33936E-03   -.93098E-03
   4  Prefactor     1.0549        .16662        .20649E-03   -.15074E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.57362
  Index      = 2.48688
  Normalizat = 0.847713
  Prefactor  = 1.05488
 **********
 **   18 **HESSE 
 **********

 FCN=   7057.761     FROM HESSE     STATUS=OK            23 CALLS      297 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5736        24.242        .85453E-05   -1.5330    
   2  Index         2.4869        2.0737        .40940E-03   -.52663    
   3  Normalizat    .84771        .24682        .67872E-04   -.98323    
   4  Prefactor     1.0549        .16674        .41299E-04   -.90922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65551e-09
Minuit parameter uncertainties:
  1  18.6259
  2  2.16283
  3  0.247149
  4  0.16682
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/837010': 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) = 7057.76143424
delta logL = 0.00067033419873

Extracting fit parameters...

4FGL J1454.1+1622
   Spectrum: PowerLaw
220    Prefactor:  3.574e+00  1.863e+01  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.487e+00  2.163e+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.055e+00  1.668e-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:  8.477e-01  2.471e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
Ra Dec: 223.544 16.375

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/837010/cmap_HighResolution_253584001_253843201_4FGL_J1454.1+1622_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.90e-03', job_status='DONE', photon_flux_upper_limit='8.92e-08', time_completed='2021-09-10 12:22:02.262210', job_id='837010', GAL2='1.05', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1631301722.26', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='6.70e-04', ts2='0.05', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='55' AND source_name='4FGL J1454.1+1622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 12:22:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 837010: <4FGL_J1454.1+1622_daily_bin55> in cluster <slac> Done

Job <4FGL_J1454.1+1622_daily_bin55> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Sep 10 12:07:51 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 12:07:51 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:07:51 2021
Terminated at Fri Sep 10 12:22:04 2021
Results reported at Fri Sep 10 12:22:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1454.1+1622_daily_bin55 223.544 16.3747 253584001 253843201 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 :                                   617.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             220.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            853 sec.

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

