/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 89 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 = 7420
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1454.1+1622_daily_bin95
RA = 223.544, Dec = 16.3747
tmin = 263952001, tmax = 264211201
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='838130', job_status='RUN', time_executed='2021-09-10 12:13:04.082126', time_epoch_executed='1631301184.08' WHERE source_name='4FGL J1454.1+1622' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/838130

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/838130/ft1_4FGL_J1454.1+1622_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/838130/ft2_4FGL_J1454.1+1622_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/838130/ft1_4FGL_J1454.1+1622_daily_bin95.fits outfile=/scratch/kocevski/838130/ft1_filteredMKT_4FGL_J1454.1+1622_daily_bin95.fits ra=223.544 dec=16.3747 rad=12.0 tmin=263952001.0 tmax=264211201.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.29
user 1.53
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/838130/ft1_filtered_4FGL_J1454.1+1622_daily_bin95.fits" evtable="EVENTS" scfile=/scratch/kocevski/838130/ft2_4FGL_J1454.1+1622_daily_bin95.fits sctable="SC_DATA" outfile=/scratch/kocevski/838130/ltcube_263952001_264211201_4FGL_J1454.1+1622_daily_bin95.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/838130/ft2_4FGL_J1454.1+1622_daily_bin95.fits
.....................!
real 12.65
user 12.20
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/838130/ft1_filtered_4FGL_J1454.1+1622_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/838130/ft2_4FGL_J1454.1+1622_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/838130/ltcube_263952001_264211201_4FGL_J1454.1+1622_daily_bin95.fits outfile=/scratch/kocevski/838130/expmap_263952001_264211201_4FGL_J1454.1+1622_daily_bin95.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/838130/ltcube_263952001_264211201_4FGL_J1454.1+1622_daily_bin95.fits
.....................!
real 190.96
user 184.91
sys 5.51

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/838130/ft1_filtered_4FGL_J1454.1+1622_daily_bin95.fits scfile=/scratch/kocevski/838130/ft2_4FGL_J1454.1+1622_daily_bin95.fits outfile=/scratch/kocevski/838130/cmap_263952001_264211201_4FGL_J1454.1+1622_daily_bin95.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/838130/ft1_filtered_4FGL_J1454.1+1622_daily_bin95.fits scfile=/scratch/kocevski/838130/ft2_4FGL_J1454.1+1622_daily_bin95.fits outfile=/scratch/kocevski/838130/cmap_HighResolution_263952001_264211201_4FGL_J1454.1+1622_daily_bin95.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.82
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85858       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.1379       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10012E-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      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2477       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.071       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.1192       1.0000         .10000E-03   10000.    
    15 'norm      '    3.5080       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    25.324       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .34662E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.187       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .85698       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0757       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=   9984.994     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2529 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84216        9.2971       -.22550E-05   -.12789E-03
   2  Prefactor     .10000E-03    1.8238        .58180E-09** at limit **
   3  norm          8.1380        2.8620       -.49600E-08    .45903E-04
   4  Prefactor     .10000E-03    1.9499        .18887E-08** at limit **
   5  norm          .10000E-03    .98132        .21773E-08** at limit **
   6  Prefactor     .10000E-03    11.569        .64183E-05** at limit **
   7  norm          .10000E-03    5.7626       -.82608E-07** at limit **
   8  norm          .10000E-03    .90548        .11283E-07** at limit **
   9  Prefactor     .10000E-03    8.9936        .43900E-06** at limit **
  10  Prefactor     1.2280        85.834        .32748E-04   -.80278E-04
  11  Prefactor     21.070        15.954       -.35709E-06   -.59030E-04
  12  Prefactor     .10000E-03    11.074       -.61914E-05** at limit **
  13  Prefactor     .10000E-03    21.598        .37411E-05** at limit **
  14  Prefactor     9.1183        6.8074       -.57911E-06   -.11269E-02
  15  norm          3.5079        .32982       -.47767E-07   -.28985E-02
  16  norm          .10000E-03    2.1133       -.33345E-08** at limit **
  17  norm          25.313        36.366       -.10046E-04   -.13138E-03
  18  Prefactor     .10000E-03    17.151       -.88587E-06** at limit **
  19  Prefactor     .10011E-03    6.6500       -.30046E-06** at limit **
  20  Prefactor     21.172        28.806       -.84264E-05   -.15766E-03
  21  Prefactor     .10000E-03    20.873       -.35229E-05** at limit **
  22  Normalizat    .85694        .19307       -.41293E-06   -.86375E-04
  23  Prefactor     1.0757        .12256        .58068E-06   -.20135E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.842161
  Prefactor  = 0.0001
  norm       = 8.13795
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.22803
  Prefactor  = 21.0702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.11832
  norm       = 3.50792
  norm       = 0.0001
  norm       = 25.3134
  Prefactor  = 0.0001
  Prefactor  = 0.000100106
  Prefactor  = 21.1719
  Prefactor  = 0.0001
  Normalizat = 0.856944
  Prefactor  = 1.07568
 **********
 **   18 **HESSE 
 **********

 FCN=   9984.994     FROM HESSE     STATUS=OK           372 CALLS     2901 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .84216        40.920        .59000E-02   -1.5524    
   2  Prefactor     .10000E-03    1.8332        .13177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.1380        2.8628        .97216E-04   -1.5137    
   4  Prefactor     .10000E-03    1.9675        .13622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0131        .19323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.7727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .90794        .92853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.0135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2280        79.619        .40067E-03   -1.5486    
  11  Prefactor     21.070        15.965        .87257E-04   -1.4790    
  12  Prefactor     .10000E-03    11.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.1183        6.8538        .66360E-03   -1.5104    
  15  norm          3.5079        .32957        .16548E-04   -1.5333    
  16  norm          .10000E-03    2.1215        .14186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          25.313        36.530        .79602E-04   -1.4701    
  18  Prefactor     .10000E-03    17.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10011E-03    10.262        .74075E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.172        28.975        .87017E-04   -1.4787    
  21  Prefactor     .10000E-03    20.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .85694        .22866        .35055E-03   -.97990    
  23  Prefactor     1.0757        .14635        .20827E-03   -.90248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57632e-08
Minuit parameter uncertainties:
  1  11.7485
  2  2.0891e-08
  3  2.86285
  4  4.88184e-07
  5  4.16422e-07
  6  0.000120162
  7  2.11356e-05
  8  5.41289e-08
  9  1.06998e-05
  10  19.8029
  11  15.9679
  12  0.00013263
  13  0.0001386
  14  6.85437
  15  0.329566
  16  1.04409e-06
  17  36.5619
  18  4.06092e-06
  19  0.00208688
  20  28.9944
  21  5.62517e-05
  22  0.228922
  23  0.146405
Done.

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

Extracting fit parameters...

4FGL J1454.1+1622
   Spectrum: PowerLaw
220    Prefactor:  1.000e-04  1.326e-04  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.076e+00  1.464e-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.569e-01  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/838130/likelihoodResults_263952001_264211201_4FGL_J1454.1+1622_daily_bin95.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): 102
logL (Free Index) = 9984.99454804
delta logL = -0.000428487233876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9984.99411954
delta logL = 1.01590558188e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4172       1.0000          .0000       10.000    
     3 'Normalizat'    .85694       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0757       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=   9984.994     FROM MIGRAD    STATUS=FAILED        88 CALLS      244 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10164E-03    332.86        .18142E-02** at limit **
   2  Index         2.5230        5.2592        .50000       -.58602E-05
   3  Normalizat    .85694        .24828E-01    .35055E-03   -.46960E-04
   4  Prefactor     1.0757        .16457E-01    .20827E-03   -.17904E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9984.994     FROM SIMPLEX   STATUS=UNCHANGED    142 CALLS      386 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10164E-03    332.86        .54862E-03** at limit **
   2  Index         2.5230        5.2592        .40755E-04   -.58602E-05
   3  Normalizat    .85694        .24828E-01    .14493E-05   -.46960E-04
   4  Prefactor     1.0757        .16457E-01    .59655E-06   -.17904E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9984.994     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      437 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.207        .36285E-02** at limit **
   2  Index         3.1438        7.5770        .50000        .59981E-07
   3  Normalizat    .85694        .75049E-02    .14022E-04    .29285E-03
   4  Prefactor     1.0757        .49749E-02    .83308E-05    .47053E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.14375
  Normalizat = 0.856944
  Prefactor  = 1.07568
 **********
 **   18 **HESSE 
 **********

 FCN=   9984.994     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      466 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    300.71        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1438        8.4133        .50000       -.38035    
   3  Normalizat    .85694        .22168E-01    .28044E-05   -.97990    
   4  Prefactor     1.0757        .14694E-01    .16662E-05   -.90248    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.77476e-11
Minuit parameter uncertainties:
  1  0.000167371
  2  720.715
  3  0.0221682
  4  0.0146939
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/838130': 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): 102
logL (Free Index) = 9984.99411893
delta logL = 6.21635990683e-07

Extracting fit parameters...

4FGL J1454.1+1622
   Spectrum: PowerLaw
220    Prefactor:  1.000e-04  1.674e-04  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  3.144e+00  7.207e+02  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.076e+00  1.469e-02  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.569e-01  2.217e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/838130/cmap_HighResolution_263952001_264211201_4FGL_J1454.1+1622_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-03', job_status='DONE', photon_flux_upper_limit='6.17e-08', time_completed='2021-09-10 12:25:59.607021', job_id='838130', GAL2='1.08', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1631301959.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='6.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='95' AND source_name='4FGL J1454.1+1622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 12:25:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 838130: <4FGL_J1454.1+1622_daily_bin95> in cluster <slac> Done

Job <4FGL_J1454.1+1622_daily_bin95> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Fri Sep 10 12:11:11 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 12:11:13 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:11:13 2021
Terminated at Fri Sep 10 12:26:00 2021
Results reported at Fri Sep 10 12:26:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1454.1+1622_daily_bin95 223.544 16.3747 263952001 264211201 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 :                                   771.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            889 sec.

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

