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


Performing analysis on: 4FGL_J1454.1+1622_daily_bin313
RA = 223.544, Dec = 16.3747
tmin = 320457601, tmax = 320716801
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='839814', job_status='RUN', time_executed='2021-09-10 12:17:07.778728', time_epoch_executed='1631301427.78' WHERE source_name='4FGL J1454.1+1622' and cadence='daily' and bin_id='313'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839814

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839814/ft1_4FGL_J1454.1+1622_daily_bin313.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839814/ft2_4FGL_J1454.1+1622_daily_bin313.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839814/ft1_4FGL_J1454.1+1622_daily_bin313.fits outfile=/scratch/kocevski/839814/ft1_filteredMKT_4FGL_J1454.1+1622_daily_bin313.fits ra=223.544 dec=16.3747 rad=12.0 tmin=320457601.0 tmax=320716801.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.16
user 3.58
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/839814/ft1_filtered_4FGL_J1454.1+1622_daily_bin313.fits" evtable="EVENTS" scfile=/scratch/kocevski/839814/ft2_4FGL_J1454.1+1622_daily_bin313.fits sctable="SC_DATA" outfile=/scratch/kocevski/839814/ltcube_320457601_320716801_4FGL_J1454.1+1622_daily_bin313.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/839814/ft2_4FGL_J1454.1+1622_daily_bin313.fits
.....................!
real 12.15
user 11.60
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839814/ft1_filtered_4FGL_J1454.1+1622_daily_bin313.fits evtable="EVENTS" scfile=/scratch/kocevski/839814/ft2_4FGL_J1454.1+1622_daily_bin313.fits sctable="SC_DATA" expcube=/scratch/kocevski/839814/ltcube_320457601_320716801_4FGL_J1454.1+1622_daily_bin313.fits outfile=/scratch/kocevski/839814/expmap_320457601_320716801_4FGL_J1454.1+1622_daily_bin313.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/839814/ltcube_320457601_320716801_4FGL_J1454.1+1622_daily_bin313.fits
.....................!
real 192.72
user 185.48
sys 4.68

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/839814/ft1_filtered_4FGL_J1454.1+1622_daily_bin313.fits scfile=/scratch/kocevski/839814/ft2_4FGL_J1454.1+1622_daily_bin313.fits outfile=/scratch/kocevski/839814/cmap_320457601_320716801_4FGL_J1454.1+1622_daily_bin313.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.64
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.6719       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7315       1.0000         .10000E-03   10000.    
     5 'norm      '    .68428       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.3198       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .72902       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10513E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.597       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8403       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.050       1.0000         .10000E-03   10000.    
    15 'norm      '    .66807       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .48365       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .67846E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2300       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89072       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7866.295     FROM MIGRAD    STATUS=FAILED       950 CALLS     2982 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.973        .18142E-02** at limit **
   2  Prefactor     .10000E-03    1.9256        .12011E-02** at limit **
   3  norm          7.6722        3.0006        .93080E-04   -.33222E-04
   4  Prefactor     9.7308        8.2402        .64229E-03   -.32289E-03
   5  norm          .68599        1.1110        .15121E-02   -.29971E-03
   6  Prefactor     .10000E-03    13.392        .18142E-02** at limit **
   7  norm          .10000E-03    11.718        .18142E-02** at limit **
   8  norm          4.3225        5.0244        .96910E-03   -.31291E-03
   9  Prefactor     .10000E-03    23.795        .18142E-02** at limit **
  10  Prefactor     .74806        125.93        .63232E-02    .88910E-03
  11  Prefactor     .10000E-03    18.384        .18142E-02** at limit **
  12  Prefactor     32.612        27.573        .70184E-04   -.19778E-03
  13  Prefactor     7.8116        48.937        .14320E-03   -.70417E-04
  14  Prefactor     18.053        11.546        .94273E-04   -.14724E-03
  15  norm          .66809        .20038        .20631E-04   -.29954E-02
  16  norm          .10000E-03    1.7818        .11554E-02** at limit **
  17  norm          .10000E-03    11.839        .18142E-02** at limit **
  18  Prefactor     .50582        28.189        .13948        .76483E-04
  19  Prefactor     .10000E-03    7.3933        .18142E-02** at limit **
  20  Prefactor     .10240E-03    35.285        .12727    ** at limit **
  21  Prefactor     .10000E-03    28.798        .18142E-02** at limit **
  22  Normalizat    1.2296        .25857        .28910E-03   -.41515E-03
  23  Prefactor     .89084        .15438        .21339E-03   -.13917E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7866.295     FROM SIMPLEX   STATUS=UNCHANGED   1083 CALLS     4065 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.973        .51682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.9256        .17762E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.6722        3.0006        .67917E-06   -1.5154    
   4  Prefactor     9.7308        8.2402        .67633E-06   -1.5084    
   5  norm          .68599        1.1110        .69581E-06   -1.5542    
   6  Prefactor     .10000E-03    13.392        .50768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    11.718        .36590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.3225        5.0244        .68539E-06   -1.5292    
   9  Prefactor     .10000E-03    23.795        .30921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .74806        125.93        .82836E-06   -1.5535    
  11  Prefactor     .10000E-03    18.384        .56169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.612        27.573        .65844E-06   -1.4565    
  13  Prefactor     7.8116        48.937        .75498E-06   -1.5149    
  14  Prefactor     18.053        11.546        .67261E-06   -1.4858    
  15  norm          .66809        .20038        .69576E-06   -1.5545    
  16  norm          .10000E-03    1.7818        .13492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.839        .25858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .50582        28.189        .69795E-06   -1.5566    
  19  Prefactor     .10000E-03    7.3933        .21870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10240E-03    35.285        .64354E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    28.798        .46796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2296        .25857        .38355E-06   -.85693    
  23  Prefactor     .89084        .15438        .43164E-06   -.96462    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7866.295     FROM MIGRAD    STATUS=CONVERGED    379 CALLS     4444 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.976        .36285E-03** at limit **
   2  Prefactor     .10000E-03    1.9257        .24021E-03** at limit **
   3  norm          7.6722        3.0003        .37232E-05    .12214E-05
   4  Prefactor     9.7309        8.2330        .25691E-04    .24338E-04
   5  norm          .68600        1.1098        .60484E-04    .37404E-04
   6  Prefactor     .10000E-03    13.393        .36285E-03** at limit **
   7  norm          .10000E-03    11.724        .36285E-03** at limit **
   8  norm          4.3225        5.0220        .38764E-04    .22289E-04
   9  Prefactor     .10000E-03    23.799        .36285E-03** at limit **
  10  Prefactor     .74831        126.74        .12646E-02    .40903E-05
  11  Prefactor     .10000E-03    18.389        .36285E-03** at limit **
  12  Prefactor     32.612        27.567        .14037E-04    .18628E-04
  13  Prefactor     7.8118        48.885        .57282E-05    .79388E-05
  14  Prefactor     18.053        11.542        .37709E-05   -.78386E-05
  15  norm          .66809        .20019        .82526E-06    .38038E-03
  16  norm          .10000E-03    1.7818        .23108E-03** at limit **
  17  norm          .10000E-03    11.839        .36285E-03** at limit **
  18  Prefactor     .50590        27.584        .14191        .88788E-04
  19  Prefactor     .10000E-03    7.3957        .36285E-03** at limit **
  20  Prefactor     .10218E-03    36.149        .12534    ** at limit **
  21  Prefactor     .10000E-03    28.800        .36285E-03** at limit **
  22  Normalizat    1.2296        .25812        .57819E-04    .77352E-04
  23  Prefactor     .89085        .15454        .42677E-04    .15275E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.67216
  Prefactor  = 9.73093
  norm       = 0.685999
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.32252
  Prefactor  = 0.0001
  Prefactor  = 0.748314
  Prefactor  = 0.0001
  Prefactor  = 32.6121
  Prefactor  = 7.81179
  Prefactor  = 18.0528
  norm       = 0.668091
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.505897
  Prefactor  = 0.0001
  Prefactor  = 0.000102176
  Prefactor  = 0.0001
  Normalizat = 1.22958
  Prefactor  = 0.89085
 **********
 **   18 **HESSE 
 **********

 FCN=   7866.295     FROM HESSE     STATUS=OK           368 CALLS     4812 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.976        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.9257        .48042E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.6722        3.0004        .74464E-06   -1.5154    
   4  Prefactor     9.7309        8.2349        .10277E-05   -1.5084    
   5  norm          .68600        1.1098        .24194E-05   -1.5542    
   6  Prefactor     .10000E-03    13.394        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    11.725        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.3225        5.0220        .15506E-05   -1.5292    
   9  Prefactor     .10000E-03    23.799        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .74831        126.25        .50586E-04   -1.5535    
  11  Prefactor     .10000E-03    18.389        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.612        27.549        .28073E-05   -1.4565    
  13  Prefactor     7.8118        48.562        .11456E-05   -1.5149    
  14  Prefactor     18.053        11.547        .75418E-06   -1.4858    
  15  norm          .66809        .20014        .37061E-06   -1.5545    
  16  norm          .10000E-03    1.7818        .46216E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.839        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .50590        27.694        .14143       -1.5566    
  19  Prefactor     .10000E-03    7.3958        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10218E-03    35.745        .12617       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    28.800        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2296        .25804        .11564E-04   -.85694    
  23  Prefactor     .89085        .15457        .85354E-05   -.96462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78161e-10
Minuit parameter uncertainties:
  1  7.93399e-06
  2  3.48241e-07
  3  3.00046
  4  8.23585
  5  1.10982
  6  2.54637e-06
  7  4.45061e-06
  8  5.02244
  9  2.94783e-05
  10  19.48
  11  1.45038e-05
  12  27.5599
  13  39.0008
  14  11.5489
  15  0.200139
  16  2.21196e-07
  17  1.67749e-06
  18  7.48896
  19  2.24612e-06
  20  0.0176495
  21  3.83283e-06
  22  0.258306
  23  0.154647
Done.

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

Extracting fit parameters...

4FGL J1454.1+1622
   Spectrum: PowerLaw
220    Prefactor:  3.261e+01  2.756e+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:  8.909e-01  1.546e-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.230e+00  2.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.91
Ra Dec: 223.544 16.375
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.89e-08 +/- 4.13e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.34e-05

TS (Fixed Index): 2.91
Ra Dec: 223.544 16.375
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/839814/likelihoodResults_320457601_320716801_4FGL_J1454.1+1622_daily_bin313.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) = 7866.2379619
delta logL = 0.0566128936407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7866.21688604
delta logL = 0.0776887550692

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.284       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7792       1.0000          .0000       10.000    
     3 'Normalizat'    1.1986       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90270       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.

 FCN=   7866.217     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      236 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.239        425.70        .19174E-02    .24343E-03
   2  Index         2.7798        6.3882        .13495        .17000E-03
   3  Normalizat    1.1985        .10856        .66050E-01    .11341E-04
   4  Prefactor     .90277        .48340E-01    .45039E-01    .86185E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.2389
  Index      = 2.7798
  Normalizat = 1.1985
  Prefactor  = 0.902772
 **********
 **   18 **HESSE 
 **********

 FCN=   7866.217     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.239        35.542        .38348E-03   -1.4664    
   2  Index         2.7798        1.1386        .84405E-02   -.46010    
   3  Normalizat    1.1985        .25701        .29220E-03   -.86649    
   4  Prefactor     .90277        .15803        .21211E-03   -.96044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13474e-11
Minuit parameter uncertainties:
  1  35.57
  2  1.15123
  3  0.257277
  4  0.158107
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839814': 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) = 7866.21688433
delta logL = 0.0776904640788

Extracting fit parameters...

4FGL J1454.1+1622
   Spectrum: PowerLaw
220    Prefactor:  2.724e+01  3.557e+01  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.780e+00  1.151e+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:  9.028e-01  1.581e-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.199e+00  2.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.09
Ra Dec: 223.544 16.375
Photon Index (Free Index): 2.78 +/- 1.15
Photon Flux (Free Index): 7.38e-08 +/- 7.96e-08
Energy Flux (Free Index): 1.67e-05 +/- 1.19e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/839814/cmap_HighResolution_320457601_320716801_4FGL_J1454.1+1622_daily_bin313.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='4.89e-08', energy_flux2='1.67e-05', photon_flux_error='4.13e-08', dlogl='7.77e-02', energy_flux='1.58e-05', photon_flux2='7.38e-08', job_status='DONE', time_completed='2021-09-10 12:30:24.593513', photon_index_error2='1.15', photon_index2='2.78', ts='2.91', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.19e-05', EG='1.23', time_epoch_completed='1631302224.59', return_code='0', job_id='839814', GAL2='0.90', EG2='1.20', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='7.96e-08', ts2='3.09', photon_index='2.41' WHERE bin_id='313' AND source_name='4FGL J1454.1+1622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 12:30:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 839814: <4FGL_J1454.1+1622_daily_bin313> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1454.1+1622_daily_bin313 223.544 16.3747 320457601 320716801 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 :                                   791.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            833 sec.

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

