/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 238 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 = 7436
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1454.1+1622_daily_bin1322
RA = 223.544, Dec = 16.3747
tmin = 581990401, tmax = 582249601
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='846419', job_status='RUN', time_executed='2021-09-10 12:41:12.559003', time_epoch_executed='1631302872.56' WHERE source_name='4FGL J1454.1+1622' and cadence='daily' and bin_id='1322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846419

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846419/ft1_4FGL_J1454.1+1622_daily_bin1322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846419/ft2_4FGL_J1454.1+1622_daily_bin1322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846419/ft1_4FGL_J1454.1+1622_daily_bin1322.fits outfile=/scratch/kocevski/846419/ft1_filteredMKT_4FGL_J1454.1+1622_daily_bin1322.fits ra=223.544 dec=16.3747 rad=12.0 tmin=581990401.0 tmax=582249601.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 2.45
user 2.18
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/846419/ft2_4FGL_J1454.1+1622_daily_bin1322.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/846419/ft1_filteredMKT_4FGL_J1454.1+1622_daily_bin1322.fits evtable="EVENTS" outfile="/scratch/kocevski/846419/ft1_filtered_4FGL_J1454.1+1622_daily_bin1322.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.57
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846419/ft1_filtered_4FGL_J1454.1+1622_daily_bin1322.fits" evtable="EVENTS" scfile=/scratch/kocevski/846419/ft2_4FGL_J1454.1+1622_daily_bin1322.fits sctable="SC_DATA" outfile=/scratch/kocevski/846419/ltcube_581990401_582249601_4FGL_J1454.1+1622_daily_bin1322.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/846419/ft2_4FGL_J1454.1+1622_daily_bin1322.fits
.....................!
real 15.33
user 14.89
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846419/ft1_filtered_4FGL_J1454.1+1622_daily_bin1322.fits evtable="EVENTS" scfile=/scratch/kocevski/846419/ft2_4FGL_J1454.1+1622_daily_bin1322.fits sctable="SC_DATA" expcube=/scratch/kocevski/846419/ltcube_581990401_582249601_4FGL_J1454.1+1622_daily_bin1322.fits outfile=/scratch/kocevski/846419/expmap_581990401_582249601_4FGL_J1454.1+1622_daily_bin1322.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/846419/ltcube_581990401_582249601_4FGL_J1454.1+1622_daily_bin1322.fits
.....................!
real 193.29
user 187.00
sys 5.84

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/846419/ft1_filtered_4FGL_J1454.1+1622_daily_bin1322.fits scfile=/scratch/kocevski/846419/ft2_4FGL_J1454.1+1622_daily_bin1322.fits outfile=/scratch/kocevski/846419/cmap_581990401_582249601_4FGL_J1454.1+1622_daily_bin1322.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/846419/ft1_filtered_4FGL_J1454.1+1622_daily_bin1322.fits scfile=/scratch/kocevski/846419/ft2_4FGL_J1454.1+1622_daily_bin1322.fits outfile=/scratch/kocevski/846419/cmap_HighResolution_581990401_582249601_4FGL_J1454.1+1622_daily_bin1322.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    194.12       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.1561       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9129       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .16036       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.973       1.0000         .10000E-03   10000.    
    15 'norm      '    .22903       1.0000         .10000E-03   10000.    
    16 'norm      '    4.2681       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    61.538       1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.081       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0126       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0799       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=   7959.472     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2524 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     194.13        47.616        .53524E-05   -.13710E-04
   2  Prefactor     .10000E-03    2.2804       -.42006E-07** at limit **
   3  norm          4.1560        2.0743        .70393E-07   -.47027E-04
   4  Prefactor     .10000E-03    1.7480        .10496E-07** at limit **
   5  norm          1.9135        2.4144       -.30891E-07   -.82530E-03
   6  Prefactor     .10000E-03    67.325       -.57922E-06** at limit **
   7  norm          .10000E-03    14.958        .13939E-05** at limit **
   8  norm          .17592        2.3085        .11516E-05   -.11542E-02
   9  Prefactor     .10000E-03    10.341        .19357E-05** at limit **
  10  Prefactor     .10000E-03    8.7980       -.19695E-06** at limit **
  11  Prefactor     .10000E-03    15.274       -.19938E-06** at limit **
  12  Prefactor     .10000E-03    11.754       -.23848E-05** at limit **
  13  Prefactor     .10000E-03    13.548        .26059E-05** at limit **
  14  Prefactor     10.973        8.8253        .13424E-06   -.15607E-03
  15  norm          .22907        .16037        .13650E-07   -.10264E-02
  16  norm          4.2683        4.2822        .24205E-06    .22931E-03
  17  norm          .10000E-03    12.070       -.18262E-05** at limit **
  18  Prefactor     .10000E-03    39.134        .17916E-05** at limit **
  19  Prefactor     .10000E-03    4.4885        .81187E-07** at limit **
  20  Prefactor     61.547        39.074        .61201E-05   -.20104E-04
  21  Prefactor     44.088        37.812        .59977E-05   -.10089E-04
  22  Normalizat    1.0126        .20971       -.28473E-05   -.21639E-03
  23  Prefactor     1.0797        .13307       -.33259E-06   -.36920E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 194.135
  Prefactor  = 0.0001
  norm       = 4.15601
  Prefactor  = 0.0001
  norm       = 1.91348
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.175917
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9726
  norm       = 0.229073
  norm       = 4.26828
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.5467
  Prefactor  = 44.0883
  Normalizat = 1.01264
  Prefactor  = 1.07971
 **********
 **   18 **HESSE 
 **********

 FCN=   7959.472     FROM HESSE     STATUS=OK           368 CALLS     2892 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     194.13        47.454        .14496E-03   -1.2912    
   2  Prefactor     .10000E-03    2.2867        .13156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.1560        2.0762        .88147E-04   -1.5300    
   4  Prefactor     .10000E-03    1.7558        .11517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9135        2.4011        .14926E-03   -1.5431    
   6  Prefactor     .10000E-03    67.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    15.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .17592        24.514        .25177E-02   -1.5624    
   9  Prefactor     .10000E-03    10.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.8102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.973        8.8239        .12095E-03   -1.5045    
  15  norm          .22907        .15744        .28727E-04   -1.5612    
  16  norm          4.2683        4.2929        .18072E-03   -1.5295    
  17  norm          .10000E-03    12.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    39.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.5770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     61.547        38.959        .51150E-04   -1.4137    
  21  Prefactor     44.088        37.736        .60384E-04   -1.4379    
  22  Normalizat    1.0126        .24766        .32323E-03   -.92608    
  23  Prefactor     1.0797        .15882        .20543E-03   -.90118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15343e-08
Minuit parameter uncertainties:
  1  47.4637
  2  7.26952e-06
  3  2.07625
  4  7.05333e-07
  5  2.40124
  6  0.000119113
  7  1.93186e-05
  8  4.15387
  9  1.32764e-05
  10  7.97963e-06
  11  4.03355e-05
  12  1.58024e-05
  13  5.51003e-06
  14  8.82498
  15  0.157443
  16  4.29326
  17  7.4534e-07
  18  4.46935e-06
  19  1.09011e-05
  20  38.9748
  21  37.7568
  22  0.247943
  23  0.158893
Done.

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

Extracting fit parameters...

4FGL J1454.1+1622
   Spectrum: PowerLaw
220    Prefactor:  1.000e-04  1.580e-05  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.080e+00  1.589e-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.013e+00  2.479e-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.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/846419/likelihoodResults_581990401_582249601_4FGL_J1454.1+1622_daily_bin1322.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) = 7959.47268927
delta logL = -0.000404406434427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7959.47228493
delta logL = -6.47260094411e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3821       1.0000          .0000       10.000    
     3 'Normalizat'    1.0126       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0797       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=   7959.472     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      246 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10246E-03    11.963        .18142E-01** at limit **
   2  Index         2.3040        8.6269        .50000        .14375E-04
   3  Normalizat    1.0126        .47934E-02    .32323E-03    .22581E-04
   4  Prefactor     1.0797        .31544E-02    .20543E-03    .35750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102458
  Index      = 2.30401
  Normalizat = 1.01264
  Prefactor  = 1.07971
 **********
 **   18 **HESSE 
 **********

 FCN=   7959.472     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10246E-03    78.968        .31262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3040        8.5785        .50000       -.56948    
   3  Normalizat    1.0126        .12313E-01    .12929E-04   -.92608    
   4  Prefactor     1.0797        .81028E-02    .82171E-05   -.90118    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.37971e-09
Minuit parameter uncertainties:
  1  0.0279033
  2  310.455
  3  0.0123129
  4  0.00810279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846419': 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) = 7959.47228454
delta logL = 3.15936631523e-07

Extracting fit parameters...

4FGL J1454.1+1622
   Spectrum: PowerLaw
220    Prefactor:  1.025e-04  2.790e-02  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.304e+00  3.105e+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.080e+00  8.103e-03  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.013e+00  1.231e-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/846419/cmap_HighResolution_581990401_582249601_4FGL_J1454.1+1622_daily_bin1322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-03', job_status='DONE', photon_flux_upper_limit='6.14e-08', time_completed='2021-09-10 12:52:13.305157', job_id='846419', GAL2='1.08', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1631303533.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='3.16e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1322' AND source_name='4FGL J1454.1+1622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 12:52:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 846419: <4FGL_J1454.1+1622_daily_bin1322> in cluster <slac> Done

Job <4FGL_J1454.1+1622_daily_bin1322> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 12:37:00 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 12:37:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 12:37:01 2021
Terminated at Fri Sep 10 12:52:14 2021
Results reported at Fri Sep 10 12:52:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1454.1+1622_daily_bin1322 223.544 16.3747 581990401 582249601 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 :                                   655.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

