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


Performing analysis on: 4FGL_J1451.4+6355_daily_bin1012
RA = 222.855, Dec = 63.9172
tmin = 501638401, tmax = 501897601
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='821375', job_status='RUN', time_executed='2021-09-10 11:24:02.347228', time_epoch_executed='1631298242.35' WHERE source_name='4FGL J1451.4+6355' and cadence='daily' and bin_id='1012'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/821375

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/821375/ft1_4FGL_J1451.4+6355_daily_bin1012.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/821375/ft2_4FGL_J1451.4+6355_daily_bin1012.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/821375/ft1_4FGL_J1451.4+6355_daily_bin1012.fits outfile=/scratch/kocevski/821375/ft1_filteredMKT_4FGL_J1451.4+6355_daily_bin1012.fits ra=222.855 dec=63.9172 rad=12.0 tmin=501638401.0 tmax=501897601.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.88
user 3.33
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/821375/ft1_filtered_4FGL_J1451.4+6355_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/821375/ft2_4FGL_J1451.4+6355_daily_bin1012.fits sctable="SC_DATA" expcube=/scratch/kocevski/821375/ltcube_501638401_501897601_4FGL_J1451.4+6355_daily_bin1012.fits outfile=/scratch/kocevski/821375/expmap_501638401_501897601_4FGL_J1451.4+6355_daily_bin1012.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/821375/ltcube_501638401_501897601_4FGL_J1451.4+6355_daily_bin1012.fits
.....................!
real 192.43
user 185.90
sys 5.11

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/821375/ft1_filtered_4FGL_J1451.4+6355_daily_bin1012.fits scfile=/scratch/kocevski/821375/ft2_4FGL_J1451.4+6355_daily_bin1012.fits outfile=/scratch/kocevski/821375/cmap_501638401_501897601_4FGL_J1451.4+6355_daily_bin1012.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/821375/ft1_filtered_4FGL_J1451.4+6355_daily_bin1012.fits scfile=/scratch/kocevski/821375/ft2_4FGL_J1451.4+6355_daily_bin1012.fits outfile=/scratch/kocevski/821375/cmap_HighResolution_501638401_501897601_4FGL_J1451.4+6355_daily_bin1012.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.55
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/821375/ft1_filtered_4FGL_J1451.4+6355_daily_bin1012.fits', '/scratch/kocevski/821375/ft2_4FGL_J1451.4+6355_daily_bin1012.fits', expMap='/scratch/kocevski/821375/expmap_501638401_501897601_4FGL_J1451.4+6355_daily_bin1012.fits', expCube='/scratch/kocevski/821375/ltcube_501638401_501897601_4FGL_J1451.4+6355_daily_bin1012.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/821375/Model_4FGL_J1451.4+6355_daily_bin1012.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/821375/ft1_filtered_4FGL_J1451.4+6355_daily_bin1012.fits
Spacecraft file(s): /scratch/kocevski/821375/ft2_4FGL_J1451.4+6355_daily_bin1012.fits
Exposure map: /scratch/kocevski/821375/expmap_501638401_501897601_4FGL_J1451.4+6355_daily_bin1012.fits
Exposure cube: /scratch/kocevski/821375/ltcube_501638401_501897601_4FGL_J1451.4+6355_daily_bin1012.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/821375/Model_4FGL_J1451.4+6355_daily_bin1012.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) = 5967.90653748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4998       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.2973       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.934       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10413E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.2041       1.0000         .10000E-03   10000.    
    10 'Prefactor '    58.745       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4497       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .87336       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.157       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    70.139       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.659       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.725       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.8552       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2463       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    47.852       1.0000         .10000E-03   10000.    
    23 'norm      '    17.088       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    32.880       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10834E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .81004       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .94162       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=   5967.899     FROM MIGRAD    STATUS=CONVERGED    804 CALLS     3930 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6195        155.95        .70465E-04   -.31736E-04
   2  Prefactor     .10000E-03    22.567       -.15903E-05** at limit **
   3  Prefactor     8.2963        5.7406       -.78865E-06   -.22458E-03
   4  Prefactor     .10000E-03    13.996       -.10581E-05** at limit **
   5  Prefactor     14.945        28.835       -.22179E-06   -.17129E-04
   6  Prefactor     .10000E-03    6.1479       -.33241E-06** at limit **
   7  Prefactor     .10000E-03    14.701       -.75472E-06** at limit **
   8  norm          .10000E-03    70.948       -.15950E-05** at limit **
   9  norm          9.2037        5.0843        .11080E-06   -.11644E-03
  10  Prefactor     58.751        46.863        .21424E-05   -.33158E-04
  11  Prefactor     .10703E-03    9880.6        .26797E-04** at limit **
  12  Prefactor     .87372        2.5140        .65018E-06    .87367E-04
  13  Prefactor     .10000E-03    21.957        .47512E-06** at limit **
  14  Prefactor     42.185        40.044        .12951E-04   -.57528E-04
  15  Prefactor     .10000E-03    17.983       -.24154E-06** at limit **
  16  Prefactor     70.141        43.030        .68634E-06   -.50976E-04
  17  Prefactor     21.659        14.911        .53470E-06   -.32132E-04
  18  Prefactor     12.725        13.432        .76927E-06   -.16380E-04
  19  Prefactor     6.8554        12.631        .87982E-05   -.21824E-03
  20  Prefactor     1.2463        10.682        .54047E-05   -.29027E-03
  21  Prefactor     .10000E-03    5.0991       -.51920E-07** at limit **
  22  Prefactor     47.854        28.347        .10409E-05   -.18477E-04
  23  norm          17.088        4.4967        .43288E-06   -.18460E-03
  24  Prefactor     .10000E-03    60.077        .85989E-06** at limit **
  25  Prefactor     .10000E-03    2.9822        .53565E-07** at limit **
  26  norm          .10000E-03    8.2623       -.10028E-06** at limit **
  27  Prefactor     32.887        39.449        .69519E-05   -.35916E-04
  28  Prefactor     .10000E-03    168.75        .45956E-05** at limit **
  29  Normalizat    .81008        .16741       -.60987E-05   -.23518E-03
  30  Prefactor     .94155        .16944       -.25557E-05   -.39328E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.61948
  Prefactor  = 0.0001
  Prefactor  = 8.29626
  Prefactor  = 0.0001
  Prefactor  = 14.9449
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 9.20368
  Prefactor  = 58.7506
  Prefactor  = 0.000107031
  Prefactor  = 0.87372
  Prefactor  = 0.0001
  Prefactor  = 42.1851
  Prefactor  = 0.0001
  Prefactor  = 70.1411
  Prefactor  = 21.6588
  Prefactor  = 12.7252
  Prefactor  = 6.85536
  Prefactor  = 1.2463
  Prefactor  = 0.0001
  Prefactor  = 47.8545
  norm       = 17.0879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.887
  Prefactor  = 0.000100005
  Normalizat = 0.810082
  Prefactor  = 0.941554
 **********
 **   18 **HESSE 
 **********

 FCN=   5967.899     FROM HESSE     STATUS=OK           592 CALLS     4522 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6195        157.13        .13002E-03   -1.5088    
   2  Prefactor     .10000E-03    22.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.2963        5.7525        .13843E-03   -1.5132    
   4  Prefactor     .10000E-03    14.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.945        28.839        .10364E-03   -1.4935    
   6  Prefactor     .10000E-03    6.1613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.304        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    71.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.2037        5.0721        .12350E-03   -1.5101    
  10  Prefactor     58.751        46.858        .52345E-04   -1.4173    
  11  Prefactor     .10703E-03    619.29        .50000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .87372        2.4835        .19673E-03   -1.5521    
  13  Prefactor     .10000E-03    22.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     42.185        40.055        .30870E-03   -1.4408    
  15  Prefactor     .10000E-03    18.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     70.141        42.973        .47931E-04   -1.4031    
  17  Prefactor     21.659        14.917        .86065E-04   -1.4777    
  18  Prefactor     12.725        13.436        .11229E-03   -1.4994    
  19  Prefactor     6.8554        13.084        .15324E-03   -1.5184    
  20  Prefactor     1.2463        12.267        .20053E-02   -1.5485    
  21  Prefactor     .10000E-03    5.1077        .17033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     47.854        28.345        .57966E-04   -1.4323    
  23  norm          17.088        4.4996        .40172E-03   -1.4881    
  24  Prefactor     .10000E-03    60.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.9970        .13027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    8.5196        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     32.887        39.425        .69882E-04   -1.4560    
  28  Prefactor     .10000E-03    171.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .81008        .19699        .23770E-03   -.99696    
  30  Prefactor     .94155        .20026        .23865E-03   -.94704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.06447e-10
Minuit parameter uncertainties:
  1  77.999
  2  0.000137505
  3  5.75285
  4  0.000100256
  5  28.8655
  6  4.15383e-06
  7  0.000217608
  8  8.05797e-05
  9  5.07233
  10  46.8878
  11  0.133378
  12  2.48374
  13  2.22595e-05
  14  40.0809
  15  2.24429e-05
  16  42.9919
  17  14.9198
  18  13.4392
  19  13.0892
  20  7.82187
  21  2.51375e-05
  22  28.3525
  23  4.49971
  24  0.000128186
  25  4.81584e-06
  26  8.91717e-06
  27  39.4565
  28  0.00180806
  29  0.197164
  30  0.200418
Done.

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

Extracting fit parameters...

4FGL J1451.4+6355
   Spectrum: PowerLaw
349    Prefactor:  2.166e+01  1.492e+01  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:  9.416e-01  2.004e-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:  8.101e-01  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.40
Ra Dec: 222.855 63.917
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 2.16e-08 +/- 1.49e-08
Energy Flux (Fixed Index): 2.42e-05 +/- 1.67e-05

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) = 5967.12152105
delta logL = 0.777512052292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5967.12143251
delta logL = 0.777600585321

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.380       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1962       1.0000          .0000       10.000    
     3 'Normalizat'    .82522       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93345       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=   5967.121     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      296 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.380        21.836        .72692E-04   -.16059E-03
   2  Index         1.1962        .46568        .93483E-02   -.72832E-04
   3  Normalizat    .82520        .18286        .23564E-03    .40962E-04
   4  Prefactor     .93347        .19769        .23954E-03    .33839E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.3802
  Index      = 1.19624
  Normalizat = 0.825201
  Prefactor  = 0.93347
 **********
 **   18 **HESSE 
 **********

 FCN=   5967.121     FROM HESSE     STATUS=OK            23 CALLS      319 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.380        21.886        .14538E-04   -1.4605    
   2  Index         1.1962        .46676        .37393E-03   -.86447    
   3  Normalizat    .82520        .18305        .94254E-05   -.99141    
   4  Prefactor     .93347        .19789        .95816E-05   -.94981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71554e-10
Minuit parameter uncertainties:
  1  21.8917
  2  0.468383
  3  0.183185
  4  0.198046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/821375': 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) = 5967.12143251
delta logL = 0.77760059075

Extracting fit parameters...

4FGL J1451.4+6355
   Spectrum: PowerLaw
349    Prefactor:  3.038e+01  2.189e+01  1.000e-04  1.000e+04 ( 1.000e-14)
350        Index:  1.196e+00  4.684e-01  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:  9.335e-01  1.980e-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:  8.252e-01  1.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.95
Ra Dec: 222.855 63.917
Photon Index (Free Index): 1.20 +/- 0.47
Photon Flux (Free Index): 9.43e-09 +/- 8.46e-09
Energy Flux (Free Index): 7.97e-05 +/- 8.92e-05

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/821375/cmap_HighResolution_501638401_501897601_4FGL_J1451.4+6355_daily_bin1012.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.16e-08', energy_flux2='7.97e-05', photon_flux_error='1.49e-08', dlogl='7.78e-01', energy_flux='2.42e-05', photon_flux2='9.43e-09', job_status='DONE', time_completed='2021-09-10 11:37:58.703956', photon_index_error2='0.47', photon_index2='1.20', ts='13.40', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='8.92e-05', EG='0.81', time_epoch_completed='1631299078.7', return_code='0', job_id='821375', GAL2='0.93', EG2='0.83', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='8.46e-09', ts2='14.95', photon_index='1.82' WHERE bin_id='1012' AND source_name='4FGL J1451.4+6355' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 11:37:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 821375: <4FGL_J1451.4+6355_daily_bin1012> in cluster <slac> Done

Job <4FGL_J1451.4+6355_daily_bin1012> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 11:21:28 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 11:21:29 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:21:29 2021
Terminated at Fri Sep 10 11:37:59 2021
Results reported at Fri Sep 10 11:37:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1451.4+6355_daily_bin1012 222.855 63.9172 501638401 501897601 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 :                                   830.37 sec.
    Max Memory :                                 1066 MB
    Average Memory :                             300.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            991 sec.

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

