aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 14 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 = 17252
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1451.4+6355_weekly_bin715
RA = 222.855, Dec = 63.9172
tmin = 671414401, tmax = 672019201
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='934991', job_status='RUN', time_executed='2022-04-19 02:31:33.386669', time_epoch_executed='1650360693.39' WHERE source_name='4FGL J1451.4+6355' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934991

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934991/ft1_4FGL_J1451.4+6355_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934991/ft2_4FGL_J1451.4+6355_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934991/ft1_4FGL_J1451.4+6355_weekly_bin715.fits outfile=/scratch/kocevski/934991/ft1_filteredMKT_4FGL_J1451.4+6355_weekly_bin715.fits ra=222.855 dec=63.9172 rad=12.0 tmin=671414401.0 tmax=672019201.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.63
user 7.30
sys 0.29

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

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

Number of photons that the gtmktime cut: 1453

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934991/ft1_filtered_4FGL_J1451.4+6355_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934991/ft2_4FGL_J1451.4+6355_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/934991/ltcube_671414401_672019201_4FGL_J1451.4+6355_weekly_bin715.fits outfile=/scratch/kocevski/934991/expmap_671414401_672019201_4FGL_J1451.4+6355_weekly_bin715.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/934991/ltcube_671414401_672019201_4FGL_J1451.4+6355_weekly_bin715.fits
.....................!
real 194.29
user 188.02
sys 5.66

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/934991/ft1_filtered_4FGL_J1451.4+6355_weekly_bin715.fits scfile=/scratch/kocevski/934991/ft2_4FGL_J1451.4+6355_weekly_bin715.fits outfile=/scratch/kocevski/934991/cmap_671414401_672019201_4FGL_J1451.4+6355_weekly_bin715.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.57
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934991/ft1_filtered_4FGL_J1451.4+6355_weekly_bin715.fits scfile=/scratch/kocevski/934991/ft2_4FGL_J1451.4+6355_weekly_bin715.fits outfile=/scratch/kocevski/934991/cmap_HighResolution_671414401_672019201_4FGL_J1451.4+6355_weekly_bin715.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.58
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    6.2542       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.0634       1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.443       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7320       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2931       1.0000         .10000E-03   10000.    
     8 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11154E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.145       1.0000         .10000E-03   10000.    
    11 'Prefactor '    129.82       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7890       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.663       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.268       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.413       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.8977       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9616       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .74842       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.7055       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.6870       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.9410       1.0000         .10000E-03   10000.    
    23 'norm      '    1.8182       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13669E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .13375E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.5889       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0251       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95671       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=   15749.69     FROM MIGRAD    STATUS=CONVERGED    786 CALLS     4107 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.7811        .41544E-07** at limit **
   2  Prefactor     6.2551        14.321       -.10762E-06   -.36593E-04
   3  Prefactor     .10000E-03    1.3910       -.39467E-07** at limit **
   4  Prefactor     8.0632        10.413       -.24090E-06   -.81667E-04
   5  Prefactor     35.437        27.833        .77080E-06    .10593E-03
   6  Prefactor     1.7319        3.1325        .30387E-06   -.27441E-03
   7  Prefactor     1.2924        4.0798        .14149E-05   -.54398E-03
   8  norm          .10000E-03    18.414        .10329E-06** at limit **
   9  norm          .10000E-03    .88724       -.16465E-08** at limit **
  10  Prefactor     10.144        21.893        .23882E-06    .74494E-05
  11  Prefactor     129.80        252.44       -.64053E-05   -.37075E-04
  12  Prefactor     1.7886        1.5419        .39114E-07   -.28313E-03
  13  Prefactor     .10000E-03    7.3547        .42559E-07** at limit **
  14  Prefactor     24.666        23.990       -.79949E-06   -.93874E-04
  15  Prefactor     14.267        15.998        .85867E-07    .14116E-04
  16  Prefactor     10.413        10.673       -.65440E-07   -.88634E-05
  17  Prefactor     5.8978        10.114       -.60336E-08   -.52995E-04
  18  Prefactor     2.9611        12.160       -.12673E-06   -.65169E-04
  19  Prefactor     .74736        2.9102        .24336E-05   -.82408E-03
  20  Prefactor     7.7067        4.4935       -.28955E-06   -.36191E-03
  21  Prefactor     5.6860        9.8367        .79000E-07   -.60622E-04
  22  Prefactor     8.9423        12.347        .10631E-06    .12212E-04
  23  norm          1.8182        1.2724        .13769E-07   -.25895E-03
  24  Prefactor     .10000E-03    219.12       -.23741E-05** at limit **
  25  Prefactor     .10000E-03    1.7633        .99525E-07** at limit **
  26  norm          .10000E-03    1.7796        .21991E-06** at limit **
  27  Prefactor     8.6030        15.987       -.51451E-05   -.51777E-03
  28  Prefactor     .10000E-03    37.252       -.77694E-06** at limit **
  29  Normalizat    1.0252        .10374       -.34830E-06   -.23194E-03
  30  Prefactor     .95668        .10728        .22091E-06   -.25195E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.25508
  Prefactor  = 0.0001
  Prefactor  = 8.06324
  Prefactor  = 35.4367
  Prefactor  = 1.73188
  Prefactor  = 1.29236
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.144
  Prefactor  = 129.797
  Prefactor  = 1.78865
  Prefactor  = 0.0001
  Prefactor  = 24.6657
  Prefactor  = 14.2667
  Prefactor  = 10.4134
  Prefactor  = 5.8978
  Prefactor  = 2.96106
  Prefactor  = 0.747359
  Prefactor  = 7.7067
  Prefactor  = 5.68601
  Prefactor  = 8.94234
  norm       = 1.81819
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100002
  Prefactor  = 8.60301
  Prefactor  = 0.0001
  Normalizat = 1.02518
  Prefactor  = 0.956685
 **********
 **   18 **HESSE 
 **********

 FCN=   15749.69     FROM HESSE     STATUS=OK           602 CALLS     4709 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.7834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.2551        14.264        .16051E-03   -1.5208    
   3  Prefactor     .10000E-03    1.4238        .28806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.0632        10.368        .14119E-03   -1.5140    
   5  Prefactor     35.437        27.681        .67315E-04   -1.4517    
   6  Prefactor     1.7319        3.1047        .28829E-03   -1.5445    
   7  Prefactor     1.2924        4.2313        .38922E-03   -1.5481    
   8  norm          .10000E-03    18.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.0290        .22460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.144        21.867        .12580E-03   -1.5071    
  11  Prefactor     129.80        253.90        .35337E-04   -1.3424    
  12  Prefactor     1.7886        1.5146        .12853E-03   -1.5440    
  13  Prefactor     .10000E-03    7.3857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.666        24.014        .80661E-04   -1.4714    
  15  Prefactor     14.267        15.849        .10604E-03   -1.4952    
  16  Prefactor     10.413        10.673        .12417E-03   -1.5062    
  17  Prefactor     5.8978        10.114        .16536E-03   -1.5222    
  18  Prefactor     2.9611        12.173        .23596E-03   -1.5364    
  19  Prefactor     .74736        3.3876        .44016E-03   -1.5535    
  20  Prefactor     7.7067        4.4733        .14446E-03   -1.5153    
  21  Prefactor     5.6860        9.8146        .16844E-03   -1.5231    
  22  Prefactor     8.9423        12.304        .13404E-03   -1.5110    
  23  norm          1.8182        1.2674        .11459E-03   -1.5438    
  24  Prefactor     .10000E-03    222.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.388        .31394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    5.6455        .31462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.6030        17.270        .13678E-03   -1.5121    
  28  Prefactor     .10000E-03    38.358        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0252        .12233        .21933E-03   -.92191    
  30  Prefactor     .95668        .12657        .24649E-03   -.94188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78852e-09
Minuit parameter uncertainties:
  1  3.55483e-06
  2  14.2722
  3  2.03413e-06
  4  10.3702
  5  27.6906
  6  3.10495
  7  4.23229
  8  1.17712e-05
  9  2.7161e-05
  10  21.8846
  11  256.076
  12  1.51466
  13  5.38292e-07
  14  24.0235
  15  15.8532
  16  10.6746
  17  10.1171
  18  12.0114
  19  3.18236
  20  4.47346
  21  9.8174
  22  12.308
  23  1.2674
  24  0.000479691
  25  0.000164106
  26  0.000197419
  27  17.2796
  28  0.000138849
  29  0.122359
  30  0.126608
Done.

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

Extracting fit parameters...

4FGL J1451.4+6355
   Spectrum: PowerLaw
349    Prefactor:  5.898e+00  1.012e+01  1.000e-04  1.000e+04 ( 1.000e-14)
350        Index:  1.822e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  3.982e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  9.567e-01  1.266e-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.025e+00  1.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/934991/likelihoodResults_671414401_672019201_4FGL_J1451.4+6355_weekly_bin715.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) = 15749.0716468
delta logL = 0.615961978585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15749.0418517
delta logL = 0.645757061315

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6019       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7593       1.0000          .0000       10.000    
     3 'Normalizat'    1.0026       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96915       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   15749.04     FROM MIGRAD    STATUS=FAILED        86 CALLS      342 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6023        56.871        .13021E-03    .53653E-02
   2  Index         2.7593        3.6262        .58420E-02    .12460E-02
   3  Normalizat    1.0026        .11562        .22154E-03    .12819E-02
   4  Prefactor     .96916        .11738        .24504E-03    .11660E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15749.04     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      426 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6023        56.871        .15335E-03    .53653E-02
   2  Index         2.7593        3.6262        .10107E-02    .12460E-02
   3  Normalizat    1.0026        .11562        .11989E-03    .12819E-02
   4  Prefactor     .96916        .11738        .12808E-03    .11660E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15749.04     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      458 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6026        4.3486        .52084E-05   -.52387E-05
   2  Index         2.7593        .95663        .23368E-03   -.23352E-05
   3  Normalizat    1.0026        .11741        .44307E-04   -.12090E-03
   4  Prefactor     .96916        .12632        .49008E-04   -.29415E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.60256
  Index      = 2.75927
  Normalizat = 1.00255
  Prefactor  = 0.969156
 **********
 **   18 **HESSE 
 **********

 FCN=   15749.04     FROM HESSE     STATUS=OK            23 CALLS      481 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6026        4.2012        .10417E-05   -1.5455    
   2  Index         2.7593        .92454        .93472E-05   -.46469    
   3  Normalizat    1.0026        .11733        .88614E-05   -.92945    
   4  Prefactor     .96916        .12626        .98016E-05   -.93765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32272e-11
Minuit parameter uncertainties:
  1  4.20193
  2  0.931264
  3  0.117363
  4  0.126297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934991': 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) = 15749.0418517
delta logL = 0.645757112408

Extracting fit parameters...

4FGL J1451.4+6355
   Spectrum: PowerLaw
349    Prefactor:  1.603e+00  4.202e+00  1.000e-04  1.000e+04 ( 1.000e-14)
350        Index:  2.759e+00  9.313e-01  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  3.982e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  9.692e-01  1.263e-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.003e+00  1.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.71
Ra Dec: 222.855 63.917
Photon Index (Free Index): 2.76 +/- 0.93
Photon Flux (Free Index): 2.37e-08 +/- 2.27e-08
Energy Flux (Free Index): 5.46e-06 +/- 4.88e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/934991/cmap_HighResolution_671414401_672019201_4FGL_J1451.4+6355_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.21e-03', comment='SUCCESS', energy_flux2='5.46e-06', dlogl='6.46e-01', photon_flux2='2.37e-08', job_status='DONE', time_completed='2022-04-19 03:07:33.045305', photon_index_error2='0.93', photon_index2='2.76', ts='0.41', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='2.99e-08', energy_flux_error2='4.88e-06', EG='1.03', time_epoch_completed='1650362853.05', return_code='0', job_id='934991', GAL2='0.97', EG2='1.00', return_code2='0', photon_flux_error2='2.27e-08', ts2='1.71', photon_index='1.82' WHERE bin_id='715' AND source_name='4FGL J1451.4+6355' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:07:33 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 931230: <4FGL_J1451.4+6355_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1451.4+6355_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:07:09 2022
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:16:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:16:57 2022
Terminated at Tue Apr 19 02:55:54 2022
Results reported at Tue Apr 19 02:55:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1451.4+6355_weekly_bin715 222.855 63.9172 671414401 672019201 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 :                                   2142.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             316.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2336 sec.
    Turnaround time :                            10125 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 934991: <4FGL_J1451.4+6355_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1451.4+6355_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:18:25 2022
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:31:04 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:31:04 2022
Terminated at Tue Apr 19 03:07:33 2022
Results reported at Tue Apr 19 03:07:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1451.4+6355_weekly_bin715 222.855 63.9172 671414401 672019201 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 :                                   2153.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             333.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2189 sec.
    Turnaround time :                            10148 sec.

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

