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


Performing analysis on: 4FGL_J1451.4+6355_daily_bin53
RA = 222.855, Dec = 63.9172
tmin = 253065601, tmax = 253324801
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='817498', job_status='RUN', time_executed='2021-09-10 11:13:20.994100', time_epoch_executed='1631297600.99' WHERE source_name='4FGL J1451.4+6355' and cadence='daily' and bin_id='53'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/817498

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/817498/ft1_4FGL_J1451.4+6355_daily_bin53.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/817498/ft2_4FGL_J1451.4+6355_daily_bin53.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/817498/ft1_4FGL_J1451.4+6355_daily_bin53.fits outfile=/scratch/kocevski/817498/ft1_filteredMKT_4FGL_J1451.4+6355_daily_bin53.fits ra=222.855 dec=63.9172 rad=12.0 tmin=253065601.0 tmax=253324801.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.25
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/817498/ft2_4FGL_J1451.4+6355_daily_bin53.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/817498/ft1_filteredMKT_4FGL_J1451.4+6355_daily_bin53.fits evtable="EVENTS" outfile="/scratch/kocevski/817498/ft1_filtered_4FGL_J1451.4+6355_daily_bin53.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/817498/ft1_filtered_4FGL_J1451.4+6355_daily_bin53.fits" evtable="EVENTS" scfile=/scratch/kocevski/817498/ft2_4FGL_J1451.4+6355_daily_bin53.fits sctable="SC_DATA" outfile=/scratch/kocevski/817498/ltcube_253065601_253324801_4FGL_J1451.4+6355_daily_bin53.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/817498/ft2_4FGL_J1451.4+6355_daily_bin53.fits
.....................!
real 12.62
user 12.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/817498/ft1_filtered_4FGL_J1451.4+6355_daily_bin53.fits evtable="EVENTS" scfile=/scratch/kocevski/817498/ft2_4FGL_J1451.4+6355_daily_bin53.fits sctable="SC_DATA" expcube=/scratch/kocevski/817498/ltcube_253065601_253324801_4FGL_J1451.4+6355_daily_bin53.fits outfile=/scratch/kocevski/817498/expmap_253065601_253324801_4FGL_J1451.4+6355_daily_bin53.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/817498/ltcube_253065601_253324801_4FGL_J1451.4+6355_daily_bin53.fits
.....................!
real 191.72
user 185.79
sys 5.46

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/817498/ft1_filtered_4FGL_J1451.4+6355_daily_bin53.fits scfile=/scratch/kocevski/817498/ft2_4FGL_J1451.4+6355_daily_bin53.fits outfile=/scratch/kocevski/817498/cmap_253065601_253324801_4FGL_J1451.4+6355_daily_bin53.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.62
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/817498/ft1_filtered_4FGL_J1451.4+6355_daily_bin53.fits scfile=/scratch/kocevski/817498/ft2_4FGL_J1451.4+6355_daily_bin53.fits outfile=/scratch/kocevski/817498/cmap_HighResolution_253065601_253324801_4FGL_J1451.4+6355_daily_bin53.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.340       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15498E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .33351E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.790       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.854       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .34693E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4697       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.253       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.919       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5300       1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.723       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    68.853       1.0000         .10000E-03   10000.    
    23 'norm      '    6.7961       1.0000         .10000E-03   10000.    
    24 'Prefactor '    153.06       1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.550       1.0000         .10000E-03   10000.    
    26 'norm      '    9.0859       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .24299E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.4358       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .88514       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0091       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=   5241.905     FROM MIGRAD    STATUS=CONVERGED    767 CALLS     3964 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.354       -.22437E-05** at limit **
   2  Prefactor     .10000E-03    14.069        .57336E-07** at limit **
   3  Prefactor     .10000E-03    1.1859       -.21623E-08** at limit **
   4  Prefactor     .10000E-03    33.280        .13710E-05** at limit **
   5  Prefactor     33.362        53.198        .30247E-06   -.12817E-04
   6  Prefactor     .10003E-03    5.1338        .12801E-05** at limit **
   7  Prefactor     .10011E-03    8.2812        .88916E-06** at limit **
   8  norm          .10000E-03    51.328        .85719E-07** at limit **
   9  norm          12.790        5.8028        .30962E-07   -.17029E-04
  10  Prefactor     21.857        30.436       -.41228E-06   -.70810E-04
  11  Prefactor     .10002E-03    471.19        .15163E-04** at limit **
  12  Prefactor     4.4698        3.4709        .28067E-07   -.34485E-04
  13  Prefactor     .10000E-03    25.498       -.17247E-05** at limit **
  14  Prefactor     .10000E-03    29.010        .16556E-05** at limit **
  15  Prefactor     24.253        31.153       -.24927E-06   -.70481E-05
  16  Prefactor     .10000E-03    35.300        .22804E-06** at limit **
  17  Prefactor     .10000E-03    9.3114        .21697E-07** at limit **
  18  Prefactor     20.917        31.508        .10233E-05    .45927E-06
  19  Prefactor     1.5340        68.758        .88790E-05    .26632E-05
  20  Prefactor     29.718        18.110       -.15066E-05   -.16001E-03
  21  Prefactor     .10000E-03    16.525       -.48476E-06** at limit **
  22  Prefactor     68.848        46.173        .33382E-06    .15993E-04
  23  norm          6.7951        5.0669        .10862E-05   -.36673E-03
  24  Prefactor     153.06        155.43       -.26018E-05   -.32707E-05
  25  Prefactor     12.554        16.589       -.13434E-05   -.73961E-04
  26  norm          9.0729        17.102        .13511E-05    .10179E-03
  27  Prefactor     .10002E-03    582.90       -.44049E-05** at limit **
  28  Prefactor     8.4358        33.098        .32969E-06    .18969E-07
  29  Normalizat    .88516        .19895       -.89042E-06   -.22372E-03
  30  Prefactor     1.0091        .19948       -.30644E-07   -.22654E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.3619
  Prefactor  = 0.000100028
  Prefactor  = 0.000100114
  norm       = 0.0001
  norm       = 12.79
  Prefactor  = 21.8572
  Prefactor  = 0.00010002
  Prefactor  = 4.46978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.2527
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.917
  Prefactor  = 1.53397
  Prefactor  = 29.7184
  Prefactor  = 0.0001
  Prefactor  = 68.8476
  norm       = 6.79514
  Prefactor  = 153.058
  Prefactor  = 12.554
  norm       = 9.07291
  Prefactor  = 0.000100021
  Prefactor  = 8.4358
  Normalizat = 0.885161
  Prefactor  = 1.00913
 **********
 **   18 **HESSE 
 **********

 FCN=   5241.905     FROM HESSE     STATUS=OK           586 CALLS     4550 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.1901        .76957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    34.200        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.362        53.397        .69399E-04   -1.4552    
   6  Prefactor     .10003E-03    17.580        .30604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10011E-03    73.670        .39437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    51.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.790        5.8032        .11077E-03   -1.4993    
  10  Prefactor     21.857        30.434        .85681E-04   -1.4773    
  11  Prefactor     .10002E-03    479.35        .21327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.4698        3.4655        .10582E-03   -1.5285    
  13  Prefactor     .10000E-03    25.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    29.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.253        31.115        .81338E-04   -1.4723    
  16  Prefactor     .10000E-03    35.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.3205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.917        31.589        .87573E-04   -1.4793    
  19  Prefactor     1.5340        66.212        .34507E-03   -1.5460    
  20  Prefactor     29.718        17.592        .73489E-04   -1.4617    
  21  Prefactor     .10000E-03    16.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     68.848        46.163        .48374E-04   -1.4047    
  23  norm          6.7951        5.0543        .63202E-03   -1.5187    
  24  Prefactor     153.06        155.08        .32582E-04   -1.3227    
  25  Prefactor     12.554        16.755        .11307E-03   -1.4999    
  26  norm          9.0729        17.332        .13296E-03   -1.5105    
  27  Prefactor     .10002E-03    603.50        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     8.4358        33.165        .13802E-03   -1.5127    
  29  Normalizat    .88516        .23301        .25198E-03   -.96984    
  30  Prefactor     1.0091        .23408        .25397E-03   -.92426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26481e-09
Minuit parameter uncertainties:
  1  0.000242395
  2  3.05329e-06
  3  6.2864e-07
  4  0.000109256
  5  53.4737
  6  0.00139477
  7  0.00580453
  8  1.26796e-05
  9  5.80342
  10  30.4553
  11  0.00620605
  12  3.46569
  13  0.000139338
  14  0.000161107
  15  31.1356
  16  3.94589e-05
  17  3.4481e-06
  18  31.6141
  19  20.1794
  20  17.5949
  21  3.85166e-05
  22  46.187
  23  5.0546
  24  155.498
  25  16.761
  26  17.3412
  27  0.00716157
  28  33.2378
  29  0.233278
  30  0.23432
Done.

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

Extracting fit parameters...

4FGL J1451.4+6355
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  3.448e-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.009e+00  2.343e-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.852e-01  2.333e-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.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/817498/likelihoodResults_253065601_253324801_4FGL_J1451.4+6355_daily_bin53.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) = 5241.90562959
delta logL = -0.00051005707428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5241.90511963
delta logL = -9.94541551336e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8119       1.0000          .0000       10.000    
     3 'Normalizat'    .88521       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0091       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=   5241.905     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      201 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    115.66        .90712E-02** at limit **
   2  Index         1.8017        8.7978        .50000        .81968E-05
   3  Normalizat    .88516        .16036E-01    .44712E-01    .10534E-04
   4  Prefactor     1.0091        .17237E-01    .43465E-01    .61952E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.80167
  Normalizat = 0.885161
  Prefactor  = 1.00913
 **********
 **   18 **HESSE 
 **********

 FCN=   5241.905     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      234 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1209.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8017        7.2619        .50000       -.69406    
   3  Normalizat    .88516        .64416E-01    .25198E-03   -.96984    
   4  Prefactor     1.0091        .69250E-01    .25397E-03   -.92426    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.12738e-09
Minuit parameter uncertainties:
  1  9.35121e-05
  2  44.5972
  3  0.0644214
  4  0.0692558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/817498': 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) = 5241.90511949
delta logL = 4.54447217635e-08

Extracting fit parameters...

4FGL J1451.4+6355
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  9.351e-05  1.000e-04  1.000e+04 ( 1.000e-14)
350        Index:  1.802e+00  4.460e+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.009e+00  6.926e-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:  8.852e-01  6.442e-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/817498/cmap_HighResolution_253065601_253324801_4FGL_J1451.4+6355_daily_bin53.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.26e-03', job_status='DONE', photon_flux_upper_limit='4.41e-08', time_completed='2021-09-10 11:27:33.312884', job_id='817498', GAL2='1.01', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1631298453.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='4.54e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='53' AND source_name='4FGL J1451.4+6355' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 11:27:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 817498: <4FGL_J1451.4+6355_daily_bin53> in cluster <slac> Done

Job <4FGL_J1451.4+6355_daily_bin53> 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) <bullet0077>, 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:27:34 2021
Results reported at Fri Sep 10 11:27:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1451.4+6355_daily_bin53 222.855 63.9172 253065601 253324801 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 :                                   852.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             264.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            990 sec.

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

