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


Performing analysis on: 4FGL_J1451.4+6355_daily_bin54
RA = 222.855, Dec = 63.9172
tmin = 253324801, tmax = 253584001
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='817500', job_status='RUN', time_executed='2021-09-10 11:11:15.595450', time_epoch_executed='1631297475.6' WHERE source_name='4FGL J1451.4+6355' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/817500

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/817500/ft1_4FGL_J1451.4+6355_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/817500/ft2_4FGL_J1451.4+6355_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/817500/ft1_4FGL_J1451.4+6355_daily_bin54.fits outfile=/scratch/kocevski/817500/ft1_filteredMKT_4FGL_J1451.4+6355_daily_bin54.fits ra=222.855 dec=63.9172 rad=12.0 tmin=253324801.0 tmax=253584001.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.43
user 1.24
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/817500/ft2_4FGL_J1451.4+6355_daily_bin54.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/817500/ft2_4FGL_J1451.4+6355_daily_bin54.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/817500/ft1_filteredMKT_4FGL_J1451.4+6355_daily_bin54.fits evtable="EVENTS" outfile="/scratch/kocevski/817500/ft1_filtered_4FGL_J1451.4+6355_daily_bin54.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.48
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/817500/ft1_filtered_4FGL_J1451.4+6355_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/817500/ft2_4FGL_J1451.4+6355_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/817500/ltcube_253324801_253584001_4FGL_J1451.4+6355_daily_bin54.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/817500/ft2_4FGL_J1451.4+6355_daily_bin54.fits
.....................!
real 12.44
user 12.04
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/817500/ft1_filtered_4FGL_J1451.4+6355_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/817500/ft2_4FGL_J1451.4+6355_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/817500/ltcube_253324801_253584001_4FGL_J1451.4+6355_daily_bin54.fits outfile=/scratch/kocevski/817500/expmap_253324801_253584001_4FGL_J1451.4+6355_daily_bin54.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/817500/ltcube_253324801_253584001_4FGL_J1451.4+6355_daily_bin54.fits
.....................!
real 189.73
user 185.05
sys 4.29

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 219 point sources and 0 extended sources

Setting source of interest to:
4FGL J1451.4+6355 @ 222.855 63.9172

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/817500/ft1_filtered_4FGL_J1451.4+6355_daily_bin54.fits scfile=/scratch/kocevski/817500/ft2_4FGL_J1451.4+6355_daily_bin54.fits outfile=/scratch/kocevski/817500/cmap_253324801_253584001_4FGL_J1451.4+6355_daily_bin54.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=222.855 yref=63.9172 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/817500/ft1_filtered_4FGL_J1451.4+6355_daily_bin54.fits scfile=/scratch/kocevski/817500/ft2_4FGL_J1451.4+6355_daily_bin54.fits outfile=/scratch/kocevski/817500/cmap_HighResolution_253324801_253584001_4FGL_J1451.4+6355_daily_bin54.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=222.855 yref=63.9172 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/817500/ft1_filtered_4FGL_J1451.4+6355_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/817500/ft2_4FGL_J1451.4+6355_daily_bin54.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/817500/Model_4FGL_J1451.4+6355_daily_bin54.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/817500/ft1_filtered_4FGL_J1451.4+6355_daily_bin54.fits.....................!
real 42.76
user 41.42
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/817500/ft1_filtered_4FGL_J1451.4+6355_daily_bin54.fits', '/scratch/kocevski/817500/ft2_4FGL_J1451.4+6355_daily_bin54.fits', expMap='/scratch/kocevski/817500/expmap_253324801_253584001_4FGL_J1451.4+6355_daily_bin54.fits', expCube='/scratch/kocevski/817500/ltcube_253324801_253584001_4FGL_J1451.4+6355_daily_bin54.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/817500/Model_4FGL_J1451.4+6355_daily_bin54.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1451.4+6355'

4FGL J1451.4+6355
   Spectrum: PowerLaw
349    Prefactor:  1.733e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
350        Index:  1.822e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  3.982e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/817500/ft1_filtered_4FGL_J1451.4+6355_daily_bin54.fits
Spacecraft file(s): /scratch/kocevski/817500/ft2_4FGL_J1451.4+6355_daily_bin54.fits
Exposure map: /scratch/kocevski/817500/expmap_253324801_253584001_4FGL_J1451.4+6355_daily_bin54.fits
Exposure cube: /scratch/kocevski/817500/ltcube_253324801_253584001_4FGL_J1451.4+6355_daily_bin54.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/817500/Model_4FGL_J1451.4+6355_daily_bin54.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) = 4390.97164515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9691       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.251       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.5692       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.6806       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24743E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4122       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.902       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.237       1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.614       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10176E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    247.31       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.0900       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3199       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .59669       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4390.947     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     3913 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9058        139.46        .19922E-04   -.66401E-05
   2  Prefactor     .10000E-03    15.070       -.55239E-06** at limit **
   3  Prefactor     .10000E-03    4.3224       -.34484E-06** at limit **
   4  Prefactor     .10000E-03    15.068       -.94452E-06** at limit **
   5  Prefactor     19.271        54.872       -.85239E-05   -.15524E-04
   6  Prefactor     .10000E-03    7.2761       -.68147E-06** at limit **
   7  Prefactor     7.5682        8.6825        .10699E-06   -.15751E-04
   8  norm          .10000E-03    31.347       -.56080E-06** at limit **
   9  norm          1.6838        5.5817        .84625E-05    .18650E-03
  10  Prefactor     .10000E-03    28.043        .38846E-06** at limit **
  11  Prefactor     .10000E-03    7013.6        .10141E-03** at limit **
  12  Prefactor     1.4098        3.5911       -.52891E-07    .10659E-03
  13  Prefactor     .10000E-03    45.124        .17413E-05** at limit **
  14  Prefactor     .10000E-03    33.320       -.90891E-06** at limit **
  15  Prefactor     .10000E-03    37.285       -.14805E-05** at limit **
  16  Prefactor     .10000E-03    13.066       -.10761E-05** at limit **
  17  Prefactor     .10000E-03    9.4477        .67314E-06** at limit **
  18  Prefactor     18.894        40.952        .17467E-05   -.85470E-05
  19  Prefactor     .10000E-03    4.3214       -.15986E-06** at limit **
  20  Prefactor     18.234        12.524        .16654E-06    .18921E-04
  21  Prefactor     46.605        25.379        .42421E-06   -.33105E-04
  22  Prefactor     .10000E-03    17.846        .11351E-05** at limit **
  23  norm          .10000E-03    3.2363       -.10417E-05** at limit **
  24  Prefactor     247.24        149.14        .60012E-05    .82580E-04
  25  Prefactor     .10000E-03    6.4765        .25539E-06** at limit **
  26  norm          .10000E-03    4.2743        .16462E-06** at limit **
  27  Prefactor     1.0844        67.992       -.10307E-04    .22823E-03
  28  Prefactor     .10000E-03    16.153        .40094E-06** at limit **
  29  Normalizat    1.3202        .20981       -.46802E-06    .22524E-03
  30  Prefactor     .59654        .19593       -.22766E-05    .16024E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.9058
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.2706
  Prefactor  = 0.0001
  Prefactor  = 7.56821
  norm       = 0.0001
  norm       = 1.68375
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.40978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.8941
  Prefactor  = 0.0001
  Prefactor  = 18.2338
  Prefactor  = 46.6053
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 247.236
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.08436
  Prefactor  = 0.0001
  Normalizat = 1.32018
  Prefactor  = 0.596535
 **********
 **   18 **HESSE 
 **********

 FCN=   4390.947     FROM HESSE     STATUS=OK           578 CALLS     4491 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9058        140.77        .13383E-03   -1.5111    
   2  Prefactor     .10000E-03    15.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.4411        .26875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.271        55.371        .91285E-04   -1.4830    
   6  Prefactor     .10000E-03    7.3274        .17455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.5682        8.6945        .14577E-03   -1.5158    
   8  norm          .10000E-03    31.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6838        5.6526        .13239E-02   -1.5448    
  10  Prefactor     .10000E-03    28.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7016.5        .20028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.4098        3.5751        .18760E-03   -1.5470    
  13  Prefactor     .10000E-03    45.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    33.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    37.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.4519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.894        41.160        .92124E-04   -1.4838    
  19  Prefactor     .10000E-03    4.3234        .13449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.234        12.646        .93786E-04   -1.4854    
  21  Prefactor     46.605        25.451        .58728E-04   -1.4342    
  22  Prefactor     .10000E-03    17.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.3203        .23271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     247.24        149.35        .12878E-03   -1.2550    
  25  Prefactor     .10000E-03    6.5194        .16468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.2891        .13374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.0844        612.28        .97060E-02   -1.5500    
  28  Prefactor     .10000E-03    16.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.3202        .25493        .20828E-03   -.82966    
  30  Prefactor     .59654        .23209        .30033E-03   -1.0773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4543e-08
Minuit parameter uncertainties:
  1  71.0142
  2  4.59946e-05
  3  3.02139e-05
  4  0.000116569
  5  55.5196
  6  2.67228e-05
  7  8.696
  8  2.67806e-06
  9  5.65443
  10  1.17738e-05
  11  0.00429357
  12  3.5756
  13  4.79476e-05
  14  9.98646e-06
  15  0.000154015
  16  9.84698e-07
  17  3.4802e-06
  18  41.2216
  19  1.2355e-06
  20  12.6483
  21  25.4572
  22  2.85284e-05
  23  7.0512e-05
  24  149.579
  25  2.00973e-05
  26  1.48316e-05
  27  52.0751
  28  3.61916e-06
  29  0.255174
  30  0.232466
Done.

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

Extracting fit parameters...

4FGL J1451.4+6355
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  3.480e-06  1.000e-04  1.000e+04 ( 1.000e-14)
350        Index:  1.822e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  3.982e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  5.965e-01  2.325e-01  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  1.320e+00  2.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 222.855 63.917
Photon Flux Upper Limit: 4.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/817500/likelihoodResults_253324801_253584001_4FGL_J1451.4+6355_daily_bin54.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) = 4390.94755976
delta logL = -0.000499896016663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4390.94705965
delta logL = 2.15653926716e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7897       1.0000          .0000       10.000    
     3 'Normalizat'    1.3202       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59655       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+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=   4390.947     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      251 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10193E-03    76.345        .18142E-02** at limit **
   2  Index         1.7218        9.0553        .50000        .20318E-04
   3  Normalizat    1.3202        .13067E-01    .20827E-03   -.15426E-04
   4  Prefactor     .59654        .13210E-01    .30033E-03   -.38611E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101931
  Index      = 1.72182
  Normalizat = 1.32018
  Prefactor  = 0.596538
 **********
 **   18 **HESSE 
 **********

 FCN=   4390.947     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10193E-03    339.12        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7218        8.1185        .50000       -.71502    
   3  Normalizat    1.3202        .28440E-01    .41655E-04   -.82966    
   4  Prefactor     .59654        .28750E-01    .12013E-04   -1.0773    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.65238e-08
Minuit parameter uncertainties:
  1  0.0514739
  2  485.981
  3  0.0284406
  4  0.0287505
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/817500': 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) = 4390.94705934
delta logL = 5.20250068803e-07

Extracting fit parameters...

4FGL J1451.4+6355
   Spectrum: PowerLaw
349    Prefactor:  1.019e-04  5.147e-02  1.000e-04  1.000e+04 ( 1.000e-14)
350        Index:  1.722e+00  4.860e+02  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  3.982e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  5.965e-01  2.875e-02  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  1.320e+00  2.844e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 222.855 63.917

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/817500/cmap_HighResolution_253324801_253584001_4FGL_J1451.4+6355_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.64e-03', job_status='DONE', photon_flux_upper_limit='4.94e-08', time_completed='2021-09-10 11:24:06.308691', job_id='817500', GAL2='0.60', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1631298246.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='5.20e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='54' AND source_name='4FGL J1451.4+6355' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 11:24:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 817500: <4FGL_J1451.4+6355_daily_bin54> in cluster <slac> Done

Job <4FGL_J1451.4+6355_daily_bin54> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 11:11:04 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 11:11:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 11:11:06 2021
Terminated at Fri Sep 10 11:24:06 2021
Results reported at Fri Sep 10 11:24:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1451.4+6355_daily_bin54 222.855 63.9172 253324801 253584001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1451.4+6355 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   769.12 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             288.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            782 sec.

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

