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 30 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7448
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1436.9+5638_daily_bin1774
RA = 219.229, Dec = 56.649
tmin = 699148801, tmax = 699408001
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='685340', job_status='RUN', time_executed='2023-03-02 00:55:54.802253', time_epoch_executed='1677747354.8' WHERE source_name='4FGL J1436.9+5638' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/685340

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/685340/ft1_4FGL_J1436.9+5638_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/685340/ft2_4FGL_J1436.9+5638_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/685340/ft1_4FGL_J1436.9+5638_daily_bin1774.fits outfile=/scratch/kocevski/685340/ft1_filteredMKT_4FGL_J1436.9+5638_daily_bin1774.fits ra=219.229 dec=56.649 rad=12.0 tmin=699148801.0 tmax=699408001.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 2.80
user 2.59
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/685340/ft2_4FGL_J1436.9+5638_daily_bin1774.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/685340/ft1_filteredMKT_4FGL_J1436.9+5638_daily_bin1774.fits evtable="EVENTS" outfile="/scratch/kocevski/685340/ft1_filtered_4FGL_J1436.9+5638_daily_bin1774.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.50
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 663

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/685340/ft1_filtered_4FGL_J1436.9+5638_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/685340/ft2_4FGL_J1436.9+5638_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/685340/ltcube_699148801_699408001_4FGL_J1436.9+5638_daily_bin1774.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/685340/ft2_4FGL_J1436.9+5638_daily_bin1774.fits
.....................!
real 14.46
user 14.10
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/685340/ft1_filtered_4FGL_J1436.9+5638_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/685340/ft2_4FGL_J1436.9+5638_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/685340/ltcube_699148801_699408001_4FGL_J1436.9+5638_daily_bin1774.fits outfile=/scratch/kocevski/685340/expmap_699148801_699408001_4FGL_J1436.9+5638_daily_bin1774.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/685340/ltcube_699148801_699408001_4FGL_J1436.9+5638_daily_bin1774.fits
.....................!
real 191.11
user 185.91
sys 4.60

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/685340/ft1_filtered_4FGL_J1436.9+5638_daily_bin1774.fits scfile=/scratch/kocevski/685340/ft2_4FGL_J1436.9+5638_daily_bin1774.fits outfile=/scratch/kocevski/685340/cmap_699148801_699408001_4FGL_J1436.9+5638_daily_bin1774.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/685340/ft1_filtered_4FGL_J1436.9+5638_daily_bin1774.fits scfile=/scratch/kocevski/685340/ft2_4FGL_J1436.9+5638_daily_bin1774.fits outfile=/scratch/kocevski/685340/cmap_HighResolution_699148801_699408001_4FGL_J1436.9+5638_daily_bin1774.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.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/685340/ft1_filtered_4FGL_J1436.9+5638_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/685340/ft2_4FGL_J1436.9+5638_daily_bin1774.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/685340/Model_4FGL_J1436.9+5638_daily_bin1774.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/685340/ft1_filtered_4FGL_J1436.9+5638_daily_bin1774.fits.....................!
real 57.57
user 55.46
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/685340/ft1_filtered_4FGL_J1436.9+5638_daily_bin1774.fits', '/scratch/kocevski/685340/ft2_4FGL_J1436.9+5638_daily_bin1774.fits', expMap='/scratch/kocevski/685340/expmap_699148801_699408001_4FGL_J1436.9+5638_daily_bin1774.fits', expCube='/scratch/kocevski/685340/ltcube_699148801_699408001_4FGL_J1436.9+5638_daily_bin1774.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/685340/Model_4FGL_J1436.9+5638_daily_bin1774.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  0.000e+00  1.000e+06 ( 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/685340/ft1_filtered_4FGL_J1436.9+5638_daily_bin1774.fits
Spacecraft file(s): /scratch/kocevski/685340/ft2_4FGL_J1436.9+5638_daily_bin1774.fits
Exposure map: /scratch/kocevski/685340/expmap_699148801_699408001_4FGL_J1436.9+5638_daily_bin1774.fits
Exposure cube: /scratch/kocevski/685340/ltcube_699148801_699408001_4FGL_J1436.9+5638_daily_bin1774.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/685340/Model_4FGL_J1436.9+5638_daily_bin1774.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) = 7280.63137638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7342       1.0000          .0000       .10000E+07
     2 'Prefactor '    10.458       1.0000          .0000       .10000E+07
     3 'Prefactor '    .29735E-04   1.0000          .0000       .10000E+07
     4 'norm      '    2.0786       1.0000          .0000       .10000E+07
     5 'Prefactor '    .56726E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .26979E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .20434E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .42796E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .61928E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .91132       1.0000          .0000       .10000E+07
    11 'Prefactor '    8.2035       1.0000          .0000       .10000E+07
    12 'Prefactor '    .27233E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .20399E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    12.965       1.0000          .0000       .10000E+07
    15 'Prefactor '    .50608E-05   1.0000          .0000       .10000E+07
    16 'norm      '    5.6129       1.0000          .0000       .10000E+07
    17 'Prefactor '    .19118E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .20925E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    11.039       1.0000          .0000       .10000E+07
    20 'Prefactor '    .12585E-02   1.0000          .0000       .10000E+07
    21 'norm      '    .98789       1.0000          .0000       .10000E+07
    22 'Prefactor '    .29645E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    .19736E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .26598E-05   1.0000          .0000       .10000E+07
    25 'Normalizat'    .86856       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2848       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7280.535     FROM MIGRAD    STATUS=CONVERGED    162 CALLS     1771 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7404        5.4208        .18659E-06    .50967E-05
   2  Prefactor     10.595        1.4477       -.33522E-06    .86831E-02
   3  Prefactor     .49960E-09    3.7584        .20099E-06** at limit **
   4  norm          2.0740        2.3677       -.75826E-07   -.49883E-03
   5  Prefactor     .21749E-06    9.0006       -.14179E-05** at limit **
   6  Prefactor     .17463E-04    36.002       -.12220E-05** at limit **
   7  Prefactor     .41861E-06    16.466        .24179E-05** at limit **
   8  Prefactor      .0000        1.4373       -.68260E-07** at limit **
   9  Prefactor     .34200E-06    35.836        .23695E-05** at limit **
  10  Prefactor     .91422        1.3479       -.72771E-07   -.18907E-02
  11  Prefactor     8.1674        2.8347       -.90803E-06   -.27731E-02
  12  Prefactor     .86819E-04    39.120       -.28680E-05** at limit **
  13  Prefactor     .26212E-06    8.3453        .37718E-05** at limit **
  14  Prefactor     12.855        5.6252       -.10489E-05    .99698E-02
  15  Prefactor     .50127E-07    8.0124       -.17555E-05** at limit **
  16  norm          5.6116        1.9826       -.69265E-08   -.18034E-02
  17  Prefactor     .21982E-07    7.4228        .16362E-05** at limit **
  18  Prefactor     .55511E-10    1.8457        .17796E-07** at limit **
  19  Prefactor     11.099        7.5650        .47868E-07    .11772E-03
  20  Prefactor     .21194E-06    10.060       -.19057E-05** at limit **
  21  norm          .98751        2.4486        .58254E-07    .63430E-03
  22  Prefactor     .15314E-03    38.451        .43627E-05** at limit **
  23  Prefactor     .56305E-06    9.8417       -.45971E-05** at limit **
  24  norm          .12212E-08    5.0375        .37500E-06** at limit **
  25  Normalizat    .86862        .18785       -.87108E-05   -.37687E-04
  26  Prefactor     1.2847        .21531        .74723E-05    .52094E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.74038
  Prefactor  = 10.5946
  Prefactor  = 4.996e-10
  norm       = 2.07405
  Prefactor  = 2.17493e-07
  Prefactor  = 1.74626e-05
  Prefactor  = 4.1861e-07
  Prefactor  = 0
  Prefactor  = 3.42004e-07
  Prefactor  = 0.914224
  Prefactor  = 8.16743
  Prefactor  = 8.68193e-05
  Prefactor  = 2.62124e-07
  Prefactor  = 12.8554
  Prefactor  = 5.01266e-08
  norm       = 5.61164
  Prefactor  = 2.19824e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 11.0993
  Prefactor  = 2.11942e-07
  norm       = 0.987507
  Prefactor  = 0.000153136
  Prefactor  = 5.6305e-07
  norm       = 1.22125e-09
  Normalizat = 0.868617
  Prefactor  = 1.28472
 **********
 **   18 **HESSE 
 **********

 FCN=   7280.535     FROM HESSE     STATUS=OK           502 CALLS     2273 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7404        5.4501        .46221E-03   -1.5664    
   2  Prefactor     10.595        48.460        .30959E-03   -1.5643    
   3  Prefactor     .49960E-09    3.7359        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.0740        2.3797        .71603E-03   -1.5679    
   5  Prefactor     .21749E-06    19.182        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .17463E-04    112.32        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .41861E-06    17.108        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        1.4419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .34200E-06    35.825        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .91422        1.3890        .44980E-03   -1.5689    
  11  Prefactor     8.1674        16.817        .34979E-03   -1.5651    
  12  Prefactor     .86819E-04    111.65        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .26212E-06    8.6557        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.855        17.542        .27793E-03   -1.5636    
  15  Prefactor     .50127E-07    8.0469        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.6116        2.0071        .42379E-03   -1.5661    
  17  Prefactor     .21982E-07    7.4468        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .55511E-10    1.8450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.099        7.5489        .30129E-03   -1.5641    
  20  Prefactor     .21194E-06    19.370        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .98751        2.4554        .43336E-03   -1.5688    
  22  Prefactor     .15314E-03    101.30        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .56305E-06    10.528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .12212E-08    5.0412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .86862        .15689        .44498E-01   -.97572    
  26  Prefactor     1.2847        .17814        .55204E-01   -.83762    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60598e-06
Minuit parameter uncertainties:
  1  5.45014
  2  45.3178
  3  8.64433e-05
  4  2.37968
  5  0.00408506
  6  0.0885786
  7  0.00535234
  8  4.83606e-06
  9  0.00700062
  10  1.38897
  11  16.8168
  12  0.196913
  13  0.00301258
  14  17.5423
  15  0.00127023
  16  2.00707
  17  0.000809567
  18  1.82259e-05
  19  7.54892
  20  0.0040524
  21  2.45542
  22  0.249099
  23  0.00486945
  24  0.000156781
  25  0.156976
  26  0.178219
Done.

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

Extracting fit parameters...

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  2.621e-07  3.013e-03  0.000e+00  1.000e+06 ( 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:  1.285e+00  1.782e-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:  8.686e-01  1.570e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/685340/likelihoodResults_699148801_699408001_4FGL_J1436.9+5638_daily_bin1774.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) = 7280.59016587
delta logL = -0.0551346076709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7280.53503138
delta logL = -1.19919604913e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13878E-08   1.0000          .0000       .10000E+07
     2 'Index     '    1.6853       1.0000          .0000       10.000    
     3 'Normalizat'    .86852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2848       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=   7280.535     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      274 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14988E-08    .48171        .42118E-03** at limit **
   2  Index         .37856        5.8763        .50000       -.10914E-08
   3  Normalizat    .86862        .15063E-02    .44498E-01    .54338E-03
   4  Prefactor     1.2847        .17684E-02    .55204E-01    .77904E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.4988e-09
  Index      = 0.378562
  Normalizat = 0.868615
  Prefactor  = 1.28473
 **********
 **   18 **HESSE 
 **********

 FCN=   7280.535     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14988E-08    2.4018        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .37856        6.2769        .50000       -1.1792    
   3  Normalizat    .86862        .33629E-02    .24847E-03   -.97572    
   4  Prefactor     1.2847        .39482E-02    .24409E-03   -.83762    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.7154e-10
Minuit parameter uncertainties:
  1  0.000120881
  2  64420.5
  3  0.00336292
  4  0.00394825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/685340': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7280.53503125
delta logL = 1.45855665323e-08

Extracting fit parameters...

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  1.499e-09  1.209e-04  0.000e+00  1.000e+06 ( 1.000e-14)
358        Index:  3.786e-01  6.442e+04  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:  1.285e+00  3.948e-03  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:  8.686e-01  3.363e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 219.229 56.649

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/685340/cmap_HighResolution_699148801_699408001_4FGL_J1436.9+5638_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.97e-03', job_status='DONE', photon_flux_upper_limit='2.65e-08', time_completed='2023-03-02 01:08:18.528587', job_id='685340', GAL2='1.28', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1677748098.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='1.46e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1774' AND source_name='4FGL J1436.9+5638' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 01:08:18 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 685340: <4FGL_J1436.9+5638_daily_bin1774> in cluster <slac> Done

Job <4FGL_J1436.9+5638_daily_bin1774> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Mar  2 00:55:15 2023
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:55:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:55:16 2023
Terminated at Thu Mar  2 01:08:19 2023
Results reported at Thu Mar  2 01:08:19 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1436.9+5638_daily_bin1774 219.229 56.649 699148801 699408001 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 :                                   744.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            784 sec.

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

