/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 111 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7420
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1451.4+6355_daily_bin17
RA = 222.855, Dec = 63.9172
tmin = 243734401, tmax = 243993601
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='816470', job_status='RUN', time_executed='2021-09-10 11:08:52.136245', time_epoch_executed='1631297332.14' WHERE source_name='4FGL J1451.4+6355' and cadence='daily' and bin_id='17'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/816470

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/816470/ft1_4FGL_J1451.4+6355_daily_bin17.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/816470/ft2_4FGL_J1451.4+6355_daily_bin17.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/816470/ft1_4FGL_J1451.4+6355_daily_bin17.fits outfile=/scratch/kocevski/816470/ft1_filteredMKT_4FGL_J1451.4+6355_daily_bin17.fits ra=222.855 dec=63.9172 rad=12.0 tmin=243734401.0 tmax=243993601.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.38
user 1.21
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/816470/ft1_filtered_4FGL_J1451.4+6355_daily_bin17.fits" evtable="EVENTS" scfile=/scratch/kocevski/816470/ft2_4FGL_J1451.4+6355_daily_bin17.fits sctable="SC_DATA" outfile=/scratch/kocevski/816470/ltcube_243734401_243993601_4FGL_J1451.4+6355_daily_bin17.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/816470/ft2_4FGL_J1451.4+6355_daily_bin17.fits
.....................!
real 12.67
user 12.32
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/816470/ft1_filtered_4FGL_J1451.4+6355_daily_bin17.fits evtable="EVENTS" scfile=/scratch/kocevski/816470/ft2_4FGL_J1451.4+6355_daily_bin17.fits sctable="SC_DATA" expcube=/scratch/kocevski/816470/ltcube_243734401_243993601_4FGL_J1451.4+6355_daily_bin17.fits outfile=/scratch/kocevski/816470/expmap_243734401_243993601_4FGL_J1451.4+6355_daily_bin17.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/816470/ltcube_243734401_243993601_4FGL_J1451.4+6355_daily_bin17.fits
.....................!
real 189.33
user 185.10
sys 3.86

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/816470/ft1_filtered_4FGL_J1451.4+6355_daily_bin17.fits scfile=/scratch/kocevski/816470/ft2_4FGL_J1451.4+6355_daily_bin17.fits outfile=/scratch/kocevski/816470/cmap_243734401_243993601_4FGL_J1451.4+6355_daily_bin17.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/816470/ft1_filtered_4FGL_J1451.4+6355_daily_bin17.fits scfile=/scratch/kocevski/816470/ft2_4FGL_J1451.4+6355_daily_bin17.fits outfile=/scratch/kocevski/816470/cmap_HighResolution_243734401_243993601_4FGL_J1451.4+6355_daily_bin17.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.932       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .60731       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0379       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   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      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .32106E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    72.782       1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.661       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6650       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.359       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.9140       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.1101       1.0000         .10000E-03   10000.    
    26 'norm      '    13.740       1.0000         .10000E-03   10000.    
    27 'Prefactor '    35.518       1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.5384       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .94438       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0140       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=   5187.794     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     3890 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.930        60.990       -.39168E-06   -.14970E-04
   2  Prefactor     .10000E-03    9.0720        .28467E-07** at limit **
   3  Prefactor     .60485        3.0982        .43857E-07   -.19751E-04
   4  Prefactor     3.0389        12.119        .49347E-06   -.24997E-04
   5  Prefactor     .10000E-03    17.352       -.10961E-06** at limit **
   6  Prefactor     .10000E-03    6.9798       -.26197E-07** at limit **
   7  Prefactor     .10000E-03    3.1512        .39705E-08** at limit **
   8  norm          .10000E-03    24.671        .82785E-06** at limit **
   9  norm          .10000E-03    .98473        .22203E-08** at limit **
  10  Prefactor     .10000E-03    92.042        .94544E-06** at limit **
  11  Prefactor     .10014E-03    240.40       -.18181E-04** at limit **
  12  Prefactor     .10000E-03    1.6902       -.33665E-07** at limit **
  13  Prefactor     .10000E-03    33.037       -.13491E-05** at limit **
  14  Prefactor     72.776        59.645       -.92187E-06   -.82167E-04
  15  Prefactor     34.656        29.008       -.50283E-06   -.57847E-04
  16  Prefactor     3.6639        59.180        .91725E-05   -.95030E-04
  17  Prefactor     .10000E-03    8.0379       -.22518E-07** at limit **
  18  Prefactor     37.358        36.117       -.14471E-07   -.30686E-04
  19  Prefactor     .10000E-03    3.4373       -.12088E-07** at limit **
  20  Prefactor     .10000E-03    2.8724       -.39213E-08** at limit **
  21  Prefactor     .10000E-03    34.840        .87296E-06** at limit **
  22  Prefactor     .10000E-03    26.714       -.50310E-06** at limit **
  23  norm          3.9140        2.6411       -.10563E-07    .54772E-05
  24  Prefactor     .10000E-03    34.579       -.16987E-06** at limit **
  25  Prefactor     8.1099        11.889        .18819E-05   -.31586E-03
  26  norm          13.739        13.124       -.53468E-06   -.75932E-04
  27  Prefactor     35.523        63.058        .11810E-05    .43592E-04
  28  Prefactor     8.5382        78.500        .31517E-06   -.29692E-05
  29  Normalizat    .94456        .18270       -.28839E-06   -.13265E-04
  30  Prefactor     1.0139        .19066       -.25450E-06   -.12464E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.9304
  Prefactor  = 0.0001
  Prefactor  = 0.604848
  Prefactor  = 3.03888
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100141
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 72.7761
  Prefactor  = 34.6558
  Prefactor  = 3.6639
  Prefactor  = 0.0001
  Prefactor  = 37.3576
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.91396
  Prefactor  = 0.0001
  Prefactor  = 8.10994
  norm       = 13.7395
  Prefactor  = 35.5228
  Prefactor  = 8.5382
  Normalizat = 0.944562
  Prefactor  = 1.01386
 **********
 **   18 **HESSE 
 **********

 FCN=   5187.794     FROM HESSE     STATUS=OK           582 CALLS     4472 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.930        60.771        .58529E-04   -1.4337    
   2  Prefactor     .10000E-03    9.0726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .60485        10.415        .22396E-02   -1.5552    
   4  Prefactor     3.0389        12.073        .23280E-03   -1.5359    
   5  Prefactor     .10000E-03    17.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.9977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.1594        .12486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    24.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .98638        .69799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    92.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10014E-03    277.75        .21361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.7276        .18223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     72.776        59.940        .23530E-03   -1.4000    
  15  Prefactor     34.656        28.974        .68068E-04   -1.4530    
  16  Prefactor     3.6639        63.784        .10550E-02   -1.5325    
  17  Prefactor     .10000E-03    8.0431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     37.358        36.213        .65572E-04   -1.4485    
  19  Prefactor     .10000E-03    3.4414        .13041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.8796        .11920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    35.928        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    26.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.9140        2.6429        .93389E-04   -1.5312    
  24  Prefactor     .10000E-03    34.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.1099        12.141        .70392E-03   -1.5138    
  26  norm          13.739        13.123        .54028E-03   -1.4966    
  27  Prefactor     35.523        63.178        .67244E-04   -1.4515    
  28  Prefactor     8.5382        78.867        .13719E-03   -1.5123    
  29  Normalizat    .94456        .21766        .23055E-03   -.94912    
  30  Prefactor     1.0139        .22713        .24260E-03   -.92269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.366e-08
Minuit parameter uncertainties:
  1  60.8514
  2  4.42336e-06
  3  5.0203
  4  12.0828
  5  1.83889e-05
  6  6.43212e-06
  7  1.685e-06
  8  0.000170086
  9  2.33036e-07
  10  0.000398
  11  0.0125575
  12  2.91718e-06
  13  0.000298973
  14  59.9896
  15  28.9856
  16  30.6122
  17  3.01987e-06
  18  36.2343
  19  6.74496e-07
  20  4.13278e-07
  21  0.000182285
  22  0.000111124
  23  2.64294
  24  4.68232e-05
  25  12.145
  26  13.1258
  27  63.2973
  28  51.9897
  29  0.217867
  30  0.22734
Done.

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

Extracting fit parameters...

4FGL J1451.4+6355
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  3.020e-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:  1.014e+00  2.273e-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:  9.446e-01  2.179e-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.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/816470/likelihoodResults_243734401_243993601_4FGL_J1451.4+6355_daily_bin17.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) = 5187.79410582
delta logL = -0.00059141908514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5187.79351438
delta logL = 1.47410901263e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8071       1.0000          .0000       10.000    
     3 'Normalizat'    .94455       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0139       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=   5187.794     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      202 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    159.24        .90712E-02** at limit **
   2  Index         1.7920        8.8939        .50000        .13752E-04
   3  Normalizat    .94457        .19252E-01    .45468E-01    .39458E-03
   4  Prefactor     1.0139        .21018E-01    .42812E-01    .14949E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.792
  Normalizat = 0.944565
  Prefactor  = 1.01386
 **********
 **   18 **HESSE 
 **********

 FCN=   5187.794     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      231 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    452.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7920        5.7489        .50000       -.69658    
   3  Normalizat    .94457        .34096E-01    .23055E-03   -.94911    
   4  Prefactor     1.0139        .37230E-01    .24260E-03   -.92269    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.49856e-10
Minuit parameter uncertainties:
  1  0.00197406
  2  28.7723
  3  0.0340971
  4  0.0372311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/816470': 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) = 5187.79351429
delta logL = 1.12672751129e-07

Extracting fit parameters...

4FGL J1451.4+6355
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  1.974e-03  1.000e-04  1.000e+04 ( 1.000e-14)
350        Index:  1.792e+00  2.877e+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:  1.014e+00  3.723e-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:  9.446e-01  3.410e-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/816470/cmap_HighResolution_243734401_243993601_4FGL_J1451.4+6355_daily_bin17.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.01e-03', job_status='DONE', photon_flux_upper_limit='4.08e-08', time_completed='2021-09-10 11:22:44.335800', job_id='816470', GAL2='1.01', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1631298164.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.13e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='17' AND source_name='4FGL J1451.4+6355' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 11:22:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 816470: <4FGL_J1451.4+6355_daily_bin17> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1451.4+6355_daily_bin17 222.855 63.9172 243734401 243993601 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 :                                   832.21 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             294.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            954 sec.

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

