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


Performing analysis on: 4FGL_J1451.4+6355_daily_bin2
RA = 222.855, Dec = 63.9172
tmin = 239846401, tmax = 240105601
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='816446', job_status='RUN', time_executed='2021-09-10 11:08:46.978201', time_epoch_executed='1631297326.98' WHERE source_name='4FGL J1451.4+6355' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/816446

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/816446/ft1_4FGL_J1451.4+6355_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/816446/ft2_4FGL_J1451.4+6355_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/816446/ft1_4FGL_J1451.4+6355_daily_bin2.fits outfile=/scratch/kocevski/816446/ft1_filteredMKT_4FGL_J1451.4+6355_daily_bin2.fits ra=222.855 dec=63.9172 rad=12.0 tmin=239846401.0 tmax=240105601.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.50
user 1.27
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/816446/ft2_4FGL_J1451.4+6355_daily_bin2.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/816446/ft1_filteredMKT_4FGL_J1451.4+6355_daily_bin2.fits evtable="EVENTS" outfile="/scratch/kocevski/816446/ft1_filtered_4FGL_J1451.4+6355_daily_bin2.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.49
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/816446/ft1_filtered_4FGL_J1451.4+6355_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/816446/ft2_4FGL_J1451.4+6355_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/816446/ltcube_239846401_240105601_4FGL_J1451.4+6355_daily_bin2.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/816446/ft2_4FGL_J1451.4+6355_daily_bin2.fits
.....................!
real 12.76
user 12.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/816446/ft1_filtered_4FGL_J1451.4+6355_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/816446/ft2_4FGL_J1451.4+6355_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/816446/ltcube_239846401_240105601_4FGL_J1451.4+6355_daily_bin2.fits outfile=/scratch/kocevski/816446/expmap_239846401_240105601_4FGL_J1451.4+6355_daily_bin2.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/816446/ltcube_239846401_240105601_4FGL_J1451.4+6355_daily_bin2.fits
.....................!
real 190.04
user 185.32
sys 4.34

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/816446/ft1_filtered_4FGL_J1451.4+6355_daily_bin2.fits scfile=/scratch/kocevski/816446/ft2_4FGL_J1451.4+6355_daily_bin2.fits outfile=/scratch/kocevski/816446/cmap_239846401_240105601_4FGL_J1451.4+6355_daily_bin2.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/816446/ft1_filtered_4FGL_J1451.4+6355_daily_bin2.fits scfile=/scratch/kocevski/816446/ft2_4FGL_J1451.4+6355_daily_bin2.fits outfile=/scratch/kocevski/816446/cmap_HighResolution_239846401_240105601_4FGL_J1451.4+6355_daily_bin2.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   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 '    112.30       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    122.70       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    71.764       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.960       1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.001       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.437       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2950       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.426       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.5972       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    18.552       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.520       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1917       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .62811       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=   4823.682     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3867 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.325       -.50402E-06** at limit **
   2  Prefactor     .10000E-03    11.094       -.11294E-05** at limit **
   3  Prefactor     .10000E-03    4.1045       -.37974E-07** at limit **
   4  Prefactor     .10000E-03    6.0310        .28071E-06** at limit **
   5  Prefactor     112.30        70.808       -.14063E-05    .63891E-06
   6  Prefactor     .10000E-03    8.5153        .30865E-06** at limit **
   7  Prefactor     .10000E-03    3.9597       -.12593E-06** at limit **
   8  norm          .10000E-03    36.073        .16022E-05** at limit **
   9  norm          .10000E-03    2.4567        .22029E-06** at limit **
  10  Prefactor     122.70        66.879       -.35225E-05    .30338E-05
  11  Prefactor     .10000E-03    301.56       -.78020E-05** at limit **
  12  Prefactor     .10000E-03    1.8821        .85437E-07** at limit **
  13  Prefactor     .10000E-03    10.041        .85505E-06** at limit **
  14  Prefactor     71.764        66.599       -.25817E-06    .23686E-05
  15  Prefactor     12.966        24.824       -.56882E-05   -.12579E-04
  16  Prefactor     27.001        36.491       -.79153E-06    .14291E-05
  17  Prefactor     .10000E-03    11.251       -.44284E-06** at limit **
  18  Prefactor     27.442        31.006       -.26182E-05    .29101E-05
  19  Prefactor     3.2993        11.760       -.34446E-05   -.16282E-03
  20  Prefactor     .10000E-03    11.602        .10816E-05** at limit **
  21  Prefactor     19.433        19.276       -.20022E-05   -.91283E-05
  22  Prefactor     .10000E-03    12.180        .59327E-06** at limit **
  23  norm          1.5979        2.9653       -.62618E-06   -.64307E-03
  24  Prefactor     .10000E-03    61.660        .21657E-04** at limit **
  25  Prefactor     .10000E-03    2.5717       -.82746E-07** at limit **
  26  norm          18.554        9.7338       -.28469E-06    .17678E-03
  27  Prefactor     .10000E-03    57.468       -.22115E-04** at limit **
  28  Prefactor     15.485        38.514       -.97675E-06   -.22641E-05
  29  Normalizat    1.1913        .19104        .15933E-05    .25942E-05
  30  Prefactor     .62840        .18875        .96630E-06    .58918E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 112.301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 122.696
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.7639
  Prefactor  = 12.9657
  Prefactor  = 27.0014
  Prefactor  = 0.0001
  Prefactor  = 27.4419
  Prefactor  = 3.29931
  Prefactor  = 0.0001
  Prefactor  = 19.4332
  Prefactor  = 0.0001
  norm       = 1.59787
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.5544
  Prefactor  = 0.0001
  Prefactor  = 15.4848
  Normalizat = 1.19131
  Prefactor  = 0.628403
 **********
 **   18 **HESSE 
 **********

 FCN=   4823.682     FROM HESSE     STATUS=OK           576 CALLS     4443 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.2242        .27453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.0385        .16658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     112.30        71.040        .37959E-04   -1.3585    
   6  Prefactor     .10000E-03    8.5813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.9807        .13497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    36.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.4719        .10626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     122.70        66.872        .36334E-04   -1.3488    
  11  Prefactor     .10000E-03    301.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.9154        .18535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     71.764        66.615        .47390E-04   -1.4012    
  15  Prefactor     12.966        24.786        .11127E-03   -1.4988    
  16  Prefactor     27.001        36.474        .77096E-04   -1.4668    
  17  Prefactor     .10000E-03    11.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.442        31.032        .76483E-04   -1.4660    
  19  Prefactor     3.2993        11.851        .22305E-03   -1.5345    
  20  Prefactor     .10000E-03    11.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.433        19.327        .90872E-04   -1.4826    
  22  Prefactor     .10000E-03    12.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.5979        2.9665        .15687E-03   -1.5455    
  24  Prefactor     .10000E-03    61.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.5729        .10875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          18.554        9.7369        .92988E-04   -1.4846    
  27  Prefactor     .10000E-03    57.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     15.485        38.599        .10167E-03   -1.4921    
  29  Normalizat    1.1913        .22267        .20911E-03   -.86872    
  30  Prefactor     .62840        .21848        .28532E-03   -1.0640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56168e-10
Minuit parameter uncertainties:
  1  2.50319e-06
  2  2.97971e-06
  3  5.84225e-07
  4  2.28831e-06
  5  71.0944
  6  8.97574e-06
  7  4.28267e-06
  8  6.13784e-07
  9  2.20813e-06
  10  66.9131
  11  2.3787e-05
  12  2.72741e-05
  13  1.43259e-05
  14  66.6839
  15  24.8057
  16  36.5038
  17  3.48752e-06
  18  31.0507
  19  11.8593
  20  6.51031e-05
  21  19.3328
  22  9.18586e-06
  23  2.96677
  24  9.07998e-06
  25  3.10224e-07
  26  9.73771
  27  9.87823e-05
  28  38.6608
  29  0.222846
  30  0.218779
Done.

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

Extracting fit parameters...

4FGL J1451.4+6355
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  3.488e-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:  6.284e-01  2.188e-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.191e+00  2.228e-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.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/816446/likelihoodResults_239846401_240105601_4FGL_J1451.4+6355_daily_bin2.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) = 4823.68233645
delta logL = -0.000421882872615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4823.68191456
delta logL = 1.01135810837e-09

Fit tolerance = 1e-08

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

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

 FCN=   4823.682     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      210 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    101.49        .90712E-02** at limit **
   2  Index         1.8299        7.9102        .50000       -.27795E-05
   3  Normalizat    1.1913        .13511E-01    .35108E-01    .24915E-04
   4  Prefactor     .62840        .13863E-01    .64485E-01    .25456E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.82988
  Normalizat = 1.19131
  Prefactor  = 0.628402
 **********
 **   18 **HESSE 
 **********

 FCN=   4823.682     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      243 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    624.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8299        5.7520        .50000       -.68675    
   3  Normalizat    1.1913        .35735E-01    .20911E-03   -.86872    
   4  Prefactor     .62840        .36603E-01    .28532E-03   -1.0640    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.94583e-10
Minuit parameter uncertainties:
  1  2.9498e-05
  2  29.1163
  3  0.0357358
  4  0.0366047
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/816446': 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) = 4823.68191456
delta logL = 4.91763785249e-09

Extracting fit parameters...

4FGL J1451.4+6355
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  2.950e-05  1.000e-04  1.000e+04 ( 1.000e-14)
350        Index:  1.830e+00  2.912e+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:  6.284e-01  3.660e-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.191e+00  3.574e-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/816446/cmap_HighResolution_239846401_240105601_4FGL_J1451.4+6355_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.25e-03', job_status='DONE', photon_flux_upper_limit='4.40e-08', time_completed='2021-09-10 11:22:06.209799', job_id='816446', GAL2='0.63', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1631298126.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='4.92e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='2' AND source_name='4FGL J1451.4+6355' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 11:22:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 816446: <4FGL_J1451.4+6355_daily_bin2> in cluster <slac> Done

Job <4FGL_J1451.4+6355_daily_bin2> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 11:06:49 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 11:06:50 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:06:50 2021
Terminated at Fri Sep 10 11:22:06 2021
Results reported at Fri Sep 10 11:22:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1451.4+6355_daily_bin2 222.855 63.9172 239846401 240105601 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 :                                   798.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             314.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            917 sec.

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

