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 89 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_J1436.9+5638_weekly_bin715
RA = 219.229, Dec = 56.649
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='934962', job_status='RUN', time_executed='2022-04-19 02:32:12.636077', time_epoch_executed='1650360732.64' WHERE source_name='4FGL J1436.9+5638' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934962

Creating custom pfile directory:
/scratch/kocevski/934962/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/934962/ft1_4FGL_J1436.9+5638_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/934962/ft2_4FGL_J1436.9+5638_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934962/ft1_4FGL_J1436.9+5638_weekly_bin715.fits outfile=/scratch/kocevski/934962/ft1_filteredMKT_4FGL_J1436.9+5638_weekly_bin715.fits ra=219.229 dec=56.649 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.57
user 7.27
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/934962/ft2_4FGL_J1436.9+5638_weekly_bin715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934962/ft2_4FGL_J1436.9+5638_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/934962/ft1_filteredMKT_4FGL_J1436.9+5638_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/934962/ft1_filtered_4FGL_J1436.9+5638_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.56
user 0.37
sys 0.17

Number of photons that the gtmktime cut: 1350

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934962/ft1_filtered_4FGL_J1436.9+5638_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/934962/ft2_4FGL_J1436.9+5638_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/934962/ltcube_671414401_672019201_4FGL_J1436.9+5638_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/934962/ft2_4FGL_J1436.9+5638_weekly_bin715.fits
.....................!
real 38.76
user 38.05
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934962/ft1_filtered_4FGL_J1436.9+5638_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934962/ft2_4FGL_J1436.9+5638_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/934962/ltcube_671414401_672019201_4FGL_J1436.9+5638_weekly_bin715.fits outfile=/scratch/kocevski/934962/expmap_671414401_672019201_4FGL_J1436.9+5638_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/934962/ltcube_671414401_672019201_4FGL_J1436.9+5638_weekly_bin715.fits
.....................!
real 193.26
user 186.89
sys 5.81

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 222 point sources and 0 extended sources

Setting source of interest to:
4FGL J1436.9+5638 @ 219.229 56.649

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/934962/ft1_filtered_4FGL_J1436.9+5638_weekly_bin715.fits scfile=/scratch/kocevski/934962/ft2_4FGL_J1436.9+5638_weekly_bin715.fits outfile=/scratch/kocevski/934962/cmap_671414401_672019201_4FGL_J1436.9+5638_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=219.229 yref=56.649 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.59
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934962/ft1_filtered_4FGL_J1436.9+5638_weekly_bin715.fits scfile=/scratch/kocevski/934962/ft2_4FGL_J1436.9+5638_weekly_bin715.fits outfile=/scratch/kocevski/934962/cmap_HighResolution_671414401_672019201_4FGL_J1436.9+5638_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=219.229 yref=56.649 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.60
user 0.44
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934962/ft1_filtered_4FGL_J1436.9+5638_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934962/ft2_4FGL_J1436.9+5638_weekly_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934962/Model_4FGL_J1436.9+5638_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/934962/ft1_filtered_4FGL_J1436.9+5638_weekly_bin715.fits.....................!
real 104.62
user 102.96
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/934962/ft1_filtered_4FGL_J1436.9+5638_weekly_bin715.fits', '/scratch/kocevski/934962/ft2_4FGL_J1436.9+5638_weekly_bin715.fits', expMap='/scratch/kocevski/934962/expmap_671414401_672019201_4FGL_J1436.9+5638_weekly_bin715.fits', expCube='/scratch/kocevski/934962/ltcube_671414401_672019201_4FGL_J1436.9+5638_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/934962/Model_4FGL_J1436.9+5638_weekly_bin715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1436.9+5638'

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  8.188e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
358        Index:  1.896e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  2.649e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/934962/ft1_filtered_4FGL_J1436.9+5638_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/934962/ft2_4FGL_J1436.9+5638_weekly_bin715.fits
Exposure map: /scratch/kocevski/934962/expmap_671414401_672019201_4FGL_J1436.9+5638_weekly_bin715.fits
Exposure cube: /scratch/kocevski/934962/ltcube_671414401_672019201_4FGL_J1436.9+5638_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/934962/Model_4FGL_J1436.9+5638_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) = 14666.8796187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    3.5963       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.080       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.572       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3936       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10334E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.149       1.0000         .10000E-03   10000.    
    10 'Prefactor '    160.60       1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.749       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7709       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.402       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.029       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.0183       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.4146       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.0913       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .95121       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.7400       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.3435       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.2824       1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.043       1.0000         .10000E-03   10000.    
    29 'norm      '    1.9563       1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.5060       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .16473E-02   1.0000         .10000E-03   10000.    
    32 'norm      '    .84422       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .99490       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .91860       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14666.87     FROM MIGRAD    STATUS=CONVERGED    926 CALLS     4886 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5915        .32032E-06** at limit **
   2  norm          3.5971        2.3754        .50269E-07   -.10585E-03
   3  Prefactor     11.080        15.307        .52118E-07   -.11866E-04
   4  Prefactor     .10000E-03    2.5736        .15951E-06** at limit **
   5  Prefactor     33.564        26.958        .12848E-05   -.13927E-04
   6  Prefactor     2.3919        3.6835       -.62676E-07   -.55429E-04
   7  norm          .10000E-03    19.926       -.22029E-07** at limit **
   8  norm          .10000E-03    .94746        .45077E-06** at limit **
   9  Prefactor     14.142        22.976        .10961E-05   -.55532E-05
  10  Prefactor     160.58        262.22        .25036E-05   -.18470E-05
  11  Prefactor     27.747        21.862        .24376E-06   -.10560E-04
  12  Prefactor     .10000E-03    5.5118        .91664E-07** at limit **
  13  Prefactor     .10000E-03    .62425        .22808E-07** at limit **
  14  Prefactor     .10000E-03    5.6132        .21830E-06** at limit **
  15  Prefactor     1.7710        1.5363        .98250E-07   -.55198E-04
  16  Prefactor     .10000E-03    8.7893        .25736E-06** at limit **
  17  Prefactor     12.405        15.229       -.34922E-07   -.26470E-04
  18  Prefactor     .10000E-03    7.2956       -.26865E-06** at limit **
  19  Prefactor     11.029        11.159        .52431E-07   -.12619E-04
  20  Prefactor     7.0204        8.6296        .13975E-05    .14256E-04
  21  Prefactor     7.4151        10.452        .76351E-07   -.13970E-04
  22  Prefactor     .10000E-03    3.2584       -.65728E-07** at limit **
  23  norm          1.0913        .64675        .91109E-08    .36292E-04
  24  Prefactor     .95123        3.3579        .95930E-06   -.42410E-06
  25  Prefactor     5.7403        3.6415        .15191E-06   -.15533E-06
  26  Prefactor     8.3458        4.5872        .12213E-07   -.67244E-04
  27  Prefactor     3.2844        9.2108        .49429E-05   -.21106E-04
  28  Prefactor     10.041        12.797       -.10972E-05   -.16992E-04
  29  norm          1.9568        1.3451       -.22642E-06   -.81210E-03
  30  Prefactor     4.4772        154.90        .14129E-04   -.45915E-05
  31  Prefactor     .10000E-03    2.3379        .92152E-07** at limit **
  32  norm          .85419        3.9362        .36172E-06   -.21634E-03
  33  Normalizat    .99458        .10497        .66992E-07   -.12496E-03
  34  Prefactor     .91889        .11804       -.12521E-05   -.21898E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.59708
  Prefactor  = 11.0801
  Prefactor  = 0.0001
  Prefactor  = 33.5636
  Prefactor  = 2.39192
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 14.1419
  Prefactor  = 160.583
  Prefactor  = 27.7467
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.77103
  Prefactor  = 0.0001
  Prefactor  = 12.4051
  Prefactor  = 0.0001
  Prefactor  = 11.0291
  Prefactor  = 7.0204
  Prefactor  = 7.41511
  Prefactor  = 0.0001
  norm       = 1.09128
  Prefactor  = 0.951226
  Prefactor  = 5.74029
  Prefactor  = 8.34584
  Prefactor  = 3.28442
  Prefactor  = 10.0414
  norm       = 1.95678
  Prefactor  = 4.47717
  Prefactor  = 0.000100004
  norm       = 0.854194
  Normalizat = 0.994583
  Prefactor  = 0.918893
 **********
 **   18 **HESSE 
 **********

 FCN=   14666.87     FROM HESSE     STATUS=OK           756 CALLS     5642 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.5971        2.3741        .14650E-03   -1.5329    
   3  Prefactor     11.080        15.282        .12036E-03   -1.5042    
   4  Prefactor     .10000E-03    2.6764        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.564        26.824        .69159E-04   -1.4549    
   6  Prefactor     2.3919        3.6547        .26470E-03   -1.5399    
   7  norm          .10000E-03    19.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.9689        .21605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.142        22.944        .10648E-03   -1.4956    
  10  Prefactor     160.58        262.34        .31820E-04   -1.3167    
  11  Prefactor     27.747        21.821        .76053E-04   -1.4654    
  12  Prefactor     .10000E-03    5.5177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .62725        .93438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.6550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.7710        1.5018        .12183E-03   -1.5442    
  16  Prefactor     .10000E-03    8.8371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.405        15.073        .11375E-03   -1.5003    
  18  Prefactor     .10000E-03    7.2973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.029        11.157        .12064E-03   -1.5044    
  20  Prefactor     7.0204        8.6254        .75715E-03   -1.5178    
  21  Prefactor     7.4151        10.446        .14729E-03   -1.5163    
  22  Prefactor     .10000E-03    3.2728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.0913        .64915        .72480E-04   -1.5499    
  24  Prefactor     .95123        3.2720        .38932E-03   -1.5513    
  25  Prefactor     5.7403        3.6367        .16765E-03   -1.5229    
  26  Prefactor     8.3458        4.5294        .13879E-03   -1.5130    
  27  Prefactor     3.2844        9.2788        .11175E-02   -1.5345    
  28  Prefactor     10.041        12.803        .12644E-03   -1.5074    
  29  norm          1.9568        1.3429        .11000E-03   -1.5428    
  30  Prefactor     4.4772        154.68        .18967E-03   -1.5285    
  31  Prefactor     .10000E-03    2.3107        .56078E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .85419        9.9428        .41069E-02   -1.5523    
  33  Normalizat    .99458        .12586        .21471E-03   -.93212    
  34  Prefactor     .91889        .14023        .25904E-03   -.95484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04624e-07
Minuit parameter uncertainties:
  1  7.67881e-07
  2  2.37418
  3  15.2875
  4  9.64041e-06
  5  26.8332
  6  3.65503
  7  1.95711e-06
  8  0.000153064
  9  22.9588
  10  264.279
  11  21.8272
  12  2.67806e-06
  13  8.52096e-07
  14  9.18266e-06
  15  1.50179
  16  3.33875e-06
  17  15.0776
  18  1.49265e-06
  19  11.1594
  20  8.62691
  21  10.4481
  22  2.80405e-06
  23  0.649157
  24  3.27261
  25  3.63679
  26  4.52959
  27  9.28291
  28  12.8064
  29  1.34295
  30  52.7805
  31  0.000192093
  32  5.82945
  33  0.125895
  34  0.140283
Done.

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

Extracting fit parameters...

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  1.103e+01  1.116e+01  1.000e-04  1.000e+04 ( 1.000e-14)
358        Index:  1.896e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  2.649e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  9.189e-01  1.403e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  9.946e-01  1.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.79
Ra Dec: 219.229 56.649
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 6.13e-09 +/- 6.20e-09
Energy Flux (Fixed Index): 5.56e-06 +/- 5.63e-06

TS (Fixed Index): 3.79
Ra Dec: 219.229 56.649
Photon Flux Upper Limit: 2.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934962/likelihoodResults_671414401_672019201_4FGL_J1436.9+5638_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) = 14666.7836755
delta logL = 0.0896899186555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14666.7783316
delta logL = 0.0950338083676

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14666.78     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      214 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.287        434.14        .28575E-02   -.20195E-04
   2  Index         1.5606        5.0892        .29154        .91292E-06
   3  Normalizat    .99725        .55586E-01    .46132E-01   -.69977E-06
   4  Prefactor     .91776        .46821E-01    .45231E-01    .18935E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2874
  Index      = 1.56059
  Normalizat = 0.997246
  Prefactor  = 0.917762
 **********
 **   18 **HESSE 
 **********

 FCN=   14666.78     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .32E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.287        12.674        .11430E-03   -1.5007    
   2  Index         1.5606        .73327        .15930E-01   -.75857    
   3  Normalizat    .99725        .11742        .21445E-03   -.93123    
   4  Prefactor     .91776        .13734        .25918E-03   -.95523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18398e-13
Minuit parameter uncertainties:
  1  12.6764
  2  0.738353
  3  0.117453
  4  0.137396
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934962': 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) = 14666.7783315
delta logL = 0.0950339138562

Extracting fit parameters...

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  1.229e+01  1.268e+01  1.000e-04  1.000e+04 ( 1.000e-14)
358        Index:  1.561e+00  7.384e-01  0.000e+00  1.000e+01 (-1.000e+00)
359        Scale:  2.649e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  9.178e-01  1.374e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  9.972e-01  1.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.98
Ra Dec: 219.229 56.649
Photon Index (Free Index): 1.56 +/- 0.74
Photon Flux (Free Index): 3.57e-09 +/- 5.60e-09
Energy Flux (Free Index): 9.21e-06 +/- 1.52e-05

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/934962/cmap_HighResolution_671414401_672019201_4FGL_J1436.9+5638_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.89e-03', comment='SUCCESS', photon_flux='6.13e-09', energy_flux2='9.21e-06', photon_flux_error='6.20e-09', dlogl='9.50e-02', energy_flux='5.56e-06', photon_flux2='3.57e-09', job_status='DONE', time_completed='2022-04-19 03:10:42.638802', photon_index_error2='0.74', photon_index2='1.56', ts='3.79', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='2.55e-08', energy_flux_error2='1.52e-05', EG='0.99', time_epoch_completed='1650363042.64', return_code='0', job_id='934962', GAL2='0.92', EG2='1.00', return_code2='0', energy_flux_error='5.63e-06', photon_flux_error2='5.60e-09', ts2='3.98', photon_index='1.90' WHERE bin_id='715' AND source_name='4FGL J1436.9+5638' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:10:42 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 931203: <4FGL_J1436.9+5638_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1436.9+5638_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:07:07 2022
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:16:45 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:45 2022
Terminated at Tue Apr 19 02:56:02 2022
Results reported at Tue Apr 19 02:56:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1436.9+5638_weekly_bin715 219.229 56.649 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1436.9+5638 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2290.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             320.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   2357 sec.
    Turnaround time :                            10135 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 934962: <4FGL_J1436.9+5638_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1436.9+5638_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:18:22 2022
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:30:35 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:30:35 2022
Terminated at Tue Apr 19 03:10:43 2022
Results reported at Tue Apr 19 03:10:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1436.9+5638_weekly_bin715 219.229 56.649 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1436.9+5638 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2303.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             317.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2408 sec.
    Turnaround time :                            10341 sec.

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

