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


Performing analysis on: 4FGL_J1451.4+6355_daily_bin61
RA = 222.855, Dec = 63.9172
tmin = 255139201, tmax = 255398401
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='817514', job_status='RUN', time_executed='2021-09-10 11:14:22.311906', time_epoch_executed='1631297662.31' WHERE source_name='4FGL J1451.4+6355' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/817514

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/817514/ft1_4FGL_J1451.4+6355_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/817514/ft2_4FGL_J1451.4+6355_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/817514/ft1_4FGL_J1451.4+6355_daily_bin61.fits outfile=/scratch/kocevski/817514/ft1_filteredMKT_4FGL_J1451.4+6355_daily_bin61.fits ra=222.855 dec=63.9172 rad=12.0 tmin=255139201.0 tmax=255398401.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 7.54
user 7.28
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/817514/ft2_4FGL_J1451.4+6355_daily_bin61.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/817514/ft1_filteredMKT_4FGL_J1451.4+6355_daily_bin61.fits evtable="EVENTS" outfile="/scratch/kocevski/817514/ft1_filtered_4FGL_J1451.4+6355_daily_bin61.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.31
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/817514/ft1_filtered_4FGL_J1451.4+6355_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/817514/ft2_4FGL_J1451.4+6355_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/817514/ltcube_255139201_255398401_4FGL_J1451.4+6355_daily_bin61.fits outfile=/scratch/kocevski/817514/expmap_255139201_255398401_4FGL_J1451.4+6355_daily_bin61.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/817514/ltcube_255139201_255398401_4FGL_J1451.4+6355_daily_bin61.fits
.....................!
real 191.23
user 185.41
sys 5.07

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/817514/ft1_filtered_4FGL_J1451.4+6355_daily_bin61.fits scfile=/scratch/kocevski/817514/ft2_4FGL_J1451.4+6355_daily_bin61.fits outfile=/scratch/kocevski/817514/cmap_255139201_255398401_4FGL_J1451.4+6355_daily_bin61.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.58
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    29.335       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4894       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    82.879       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.521       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.071       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.3302       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11690E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6180       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2737       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0004       1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.673       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11799E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.380       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.585       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.2176       1.0000         .10000E-03   10000.    
    24 'Prefactor '    106.14       1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.895       1.0000         .10000E-03   10000.    
    26 'norm      '    10.564       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .77645       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .75024       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=   4191.291     FROM MIGRAD    STATUS=CONVERGED    766 CALLS     3952 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.117        .18271E-06** at limit **
   2  Prefactor     29.326        28.094        .16293E-06   -.71091E-05
   3  Prefactor     1.4754        6.3378       -.22340E-05   -.32351E-04
   4  Prefactor     .10000E-03    13.744        .44399E-07** at limit **
   5  Prefactor     82.853        55.611       -.57015E-07   -.40266E-05
   6  Prefactor     19.544        16.295        .16220E-05    .13315E-04
   7  Prefactor     12.065        10.598        .54266E-07   -.12495E-04
   8  norm          .10000E-03    32.187        .20284E-06** at limit **
   9  norm          3.3296        3.3411       -.10485E-07    .20114E-04
  10  Prefactor     .10000E-03    26.420       -.89106E-07** at limit **
  11  Prefactor     .10000E-03    271.02       -.22041E-05** at limit **
  12  Prefactor     5.6205        3.8611       -.74348E-07    .91034E-04
  13  Prefactor     1.1498        80.680       -.93606E-06    .10262E-04
  14  Prefactor     .10000E-03    28.695        .16577E-06** at limit **
  15  Prefactor     .10000E-03    39.848       -.20930E-06** at limit **
  16  Prefactor     .10000E-03    14.611        .15367E-06** at limit **
  17  Prefactor     2.9983        13.523        .65073E-06   -.11523E-04
  18  Prefactor     31.659        34.945       -.21088E-06    .44447E-06
  19  Prefactor     .10000E-03    208.66        .34765E-05** at limit **
  20  Prefactor     20.390        11.762        .36308E-06    .23049E-04
  21  Prefactor     16.578        16.076       -.10722E-06    .78061E-05
  22  Prefactor     .10000E-03    14.587       -.18561E-06** at limit **
  23  norm          3.2175        2.3182       -.60024E-07    .69646E-04
  24  Prefactor     106.07        104.06       -.10154E-05   -.36684E-05
  25  Prefactor     14.893        10.991       -.52310E-07    .18842E-05
  26  norm          10.561        10.339        .49198E-07   -.54930E-05
  27  Prefactor     .10000E-03    11.583       -.11018E-06** at limit **
  28  Prefactor     .10000E-03    22.114       -.28407E-06** at limit **
  29  Normalizat    .77714        .19492       -.46720E-06    .74333E-04
  30  Prefactor     .74977        .18948        .11691E-05   -.31409E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 29.3261
  Prefactor  = 1.47538
  Prefactor  = 0.0001
  Prefactor  = 82.8526
  Prefactor  = 19.5437
  Prefactor  = 12.0655
  norm       = 0.0001
  norm       = 3.32956
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.62051
  Prefactor  = 1.14982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.99829
  Prefactor  = 31.6585
  Prefactor  = 0.0001
  Prefactor  = 20.3901
  Prefactor  = 16.578
  Prefactor  = 0.0001
  norm       = 3.21745
  Prefactor  = 106.074
  Prefactor  = 14.8931
  norm       = 10.5606
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.777137
  Prefactor  = 0.749773
 **********
 **   18 **HESSE 
 **********

 FCN=   4191.291     FROM HESSE     STATUS=OK           600 CALLS     4552 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.326        28.089        .73972E-04   -1.4624    
   3  Prefactor     1.4754        6.3613        .23840E-03   -1.5465    
   4  Prefactor     .10000E-03    13.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     82.853        56.012        .44122E-04   -1.3885    
   6  Prefactor     19.544        16.176        .90652E-04   -1.4824    
   7  Prefactor     12.065        10.613        .57649E-03   -1.5013    
   8  norm          .10000E-03    32.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.3296        3.3421        .11398E-03   -1.5343    
  10  Prefactor     .10000E-03    26.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    271.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.6205        3.8345        .96672E-04   -1.5234    
  13  Prefactor     1.1498        81.102        .39394E-03   -1.5494    
  14  Prefactor     .10000E-03    28.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    40.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.9983        13.579        .11717E-02   -1.5362    
  18  Prefactor     31.659        35.031        .71196E-04   -1.4582    
  19  Prefactor     .10000E-03    15.781        .58435E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.390        11.853        .88721E-04   -1.4805    
  21  Prefactor     16.578        16.113        .98348E-04   -1.4893    
  22  Prefactor     .10000E-03    14.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.2175        2.3193        .80712E-04   -1.5349    
  24  Prefactor     106.07        104.68        .19517E-03   -1.3644    
  25  Prefactor     14.893        10.992        .51890E-03   -1.4936    
  26  norm          10.561        10.354        .61637E-03   -1.5058    
  27  Prefactor     .10000E-03    11.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    22.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .77714        .22729        .22666E-03   -1.0092    
  30  Prefactor     .74977        .21490        .24235E-03   -1.0161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.96207e-11
Minuit parameter uncertainties:
  1  2.21297e-06
  2  28.1014
  3  6.12802
  4  1.19828e-05
  5  56.0473
  6  16.1799
  7  10.6144
  8  6.16654e-06
  9  3.34232
  10  9.48943e-06
  11  0.000192604
  12  3.83468
  13  19.34
  14  2.65694e-06
  15  4.00045e-06
  16  1.27218e-05
  17  12.7659
  18  35.0536
  19  4.02869e-05
  20  11.8548
  21  16.1168
  22  4.65969e-06
  23  2.31932
  24  104.866
  25  10.9931
  26  10.3559
  27  4.0403e-06
  28  1.00701e-05
  29  0.227566
  30  0.215141
Done.

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

Extracting fit parameters...

4FGL J1451.4+6355
   Spectrum: PowerLaw
349    Prefactor:  2.998e+00  1.277e+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:  7.498e-01  2.151e-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:  7.771e-01  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/817514/likelihoodResults_255139201_255398401_4FGL_J1451.4+6355_daily_bin61.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): 0
logL (Free Index) = 4191.26700854
delta logL = 0.0242549215973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4191.2574356
delta logL = 0.0338278637682

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5649       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3191       1.0000          .0000       10.000    
     3 'Normalizat'    .77418       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75098       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4191.257     FROM MIGRAD    STATUS=FAILED        96 CALLS      263 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5653        780.13        .12181E-02   -.56561E-03
   2  Index         2.3205        8.8190        .12659E-01    .26899E-04
   3  Normalizat    .77388        .17474        .22711E-03    .66578E-05
   4  Prefactor     .75105        .17993        .24215E-03    .61034E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4191.257     FROM SIMPLEX   STATUS=UNCHANGED    100 CALLS      363 TOTAL
                     EDM=   .82E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5653        780.13        .25737E-03   -.56561E-03
   2  Index         2.3205        8.8190        .16598E-02    .26899E-04
   3  Normalizat    .77388        .17474        .12486E-03    .66578E-05
   4  Prefactor     .75105        .17993        .10335E-03    .61034E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4191.257     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      395 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5656        12.475        .48722E-04   -.23800E-03
   2  Index         2.3204        2.0344        .50636E-03   -.33633E-04
   3  Normalizat    .77389        .19942        .90843E-05    .18021E-04
   4  Prefactor     .75105        .21047        .96860E-05    .25587E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.56562
  Index      = 2.3204
  Normalizat = 0.773885
  Prefactor  = 0.751051
 **********
 **   18 **HESSE 
 **********

 FCN=   4191.257     FROM HESSE     STATUS=OK            23 CALLS      418 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5656        11.897        .19489E-05   -1.5458    
   2  Index         2.3204        1.9902        .20254E-04   -.56560    
   3  Normalizat    .77389        .19968        .18169E-05   -1.0104    
   4  Prefactor     .75105        .21072        .19372E-05   -1.0156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.57021e-11
Minuit parameter uncertainties:
  1  8.63384
  2  2.07241
  3  0.199865
  4  0.21095
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/817514': 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) = 4191.25743227
delta logL = 0.0338311913665

Extracting fit parameters...

4FGL J1451.4+6355
   Spectrum: PowerLaw
349    Prefactor:  1.566e+00  8.634e+00  1.000e-04  1.000e+04 ( 1.000e-14)
350        Index:  2.320e+00  2.072e+00  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:  7.511e-01  2.109e-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:  7.739e-01  1.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/817514/cmap_HighResolution_255139201_255398401_4FGL_J1451.4+6355_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.65e-03', job_status='DONE', photon_flux_upper_limit='4.94e-08', time_completed='2021-09-10 11:27:34.199304', job_id='817514', GAL2='0.75', fit_tolerance='1e-08', EG2='0.77', EG='0.78', time_epoch_completed='1631298454.2', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='3.38e-02', ts2='0.14', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='61' AND source_name='4FGL J1451.4+6355' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 11:27:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 817514: <4FGL_J1451.4+6355_daily_bin61> in cluster <slac> Done

Job <4FGL_J1451.4+6355_daily_bin61> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 11:11:05 2021
Job was executed on host(s) <bullet0043>, 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_bin61 222.855 63.9172 255139201 255398401 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 :                                   790.13 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             293.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            989 sec.

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

