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


Performing analysis on: 4FGL_J1436.9+5638_daily_bin1749
RA = 219.229, Dec = 56.649
tmin = 692668801, tmax = 692928001
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='954337', job_status='RUN', time_executed='2022-12-17 00:52:40.566327', time_epoch_executed='1671267160.57' WHERE source_name='4FGL J1436.9+5638' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/954337

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/954337/ft1_4FGL_J1436.9+5638_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/954337/ft2_4FGL_J1436.9+5638_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/954337/ft1_4FGL_J1436.9+5638_daily_bin1749.fits outfile=/scratch/kocevski/954337/ft1_filteredMKT_4FGL_J1436.9+5638_daily_bin1749.fits ra=219.229 dec=56.649 rad=12.0 tmin=692668801.0 tmax=692928001.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 3.69
user 3.45
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/954337/ft2_4FGL_J1436.9+5638_daily_bin1749.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/954337/ft1_filteredMKT_4FGL_J1436.9+5638_daily_bin1749.fits evtable="EVENTS" outfile="/scratch/kocevski/954337/ft1_filtered_4FGL_J1436.9+5638_daily_bin1749.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 617

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/954337/ft1_filtered_4FGL_J1436.9+5638_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/954337/ft2_4FGL_J1436.9+5638_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/954337/ltcube_692668801_692928001_4FGL_J1436.9+5638_daily_bin1749.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/954337/ft2_4FGL_J1436.9+5638_daily_bin1749.fits
.....................!
real 12.05
user 11.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/954337/ft1_filtered_4FGL_J1436.9+5638_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/954337/ft2_4FGL_J1436.9+5638_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/954337/ltcube_692668801_692928001_4FGL_J1436.9+5638_daily_bin1749.fits outfile=/scratch/kocevski/954337/expmap_692668801_692928001_4FGL_J1436.9+5638_daily_bin1749.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/954337/ltcube_692668801_692928001_4FGL_J1436.9+5638_daily_bin1749.fits
.....................!
real 191.60
user 186.56
sys 4.71

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/954337/ft1_filtered_4FGL_J1436.9+5638_daily_bin1749.fits scfile=/scratch/kocevski/954337/ft2_4FGL_J1436.9+5638_daily_bin1749.fits outfile=/scratch/kocevski/954337/cmap_692668801_692928001_4FGL_J1436.9+5638_daily_bin1749.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/954337/ft1_filtered_4FGL_J1436.9+5638_daily_bin1749.fits scfile=/scratch/kocevski/954337/ft2_4FGL_J1436.9+5638_daily_bin1749.fits outfile=/scratch/kocevski/954337/cmap_HighResolution_692668801_692928001_4FGL_J1436.9+5638_daily_bin1749.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/954337/ft1_filtered_4FGL_J1436.9+5638_daily_bin1749.fits', '/scratch/kocevski/954337/ft2_4FGL_J1436.9+5638_daily_bin1749.fits', expMap='/scratch/kocevski/954337/expmap_692668801_692928001_4FGL_J1436.9+5638_daily_bin1749.fits', expCube='/scratch/kocevski/954337/ltcube_692668801_692928001_4FGL_J1436.9+5638_daily_bin1749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/954337/Model_4FGL_J1436.9+5638_daily_bin1749.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/954337/ft1_filtered_4FGL_J1436.9+5638_daily_bin1749.fits
Spacecraft file(s): /scratch/kocevski/954337/ft2_4FGL_J1436.9+5638_daily_bin1749.fits
Exposure map: /scratch/kocevski/954337/expmap_692668801_692928001_4FGL_J1436.9+5638_daily_bin1749.fits
Exposure cube: /scratch/kocevski/954337/ltcube_692668801_692928001_4FGL_J1436.9+5638_daily_bin1749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/954337/Model_4FGL_J1436.9+5638_daily_bin1749.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) = 6700.12263462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .38858E-09   1.0000          .0000       .10000E+07
     2 'Prefactor '    .30376E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.4189       1.0000          .0000       .10000E+07
     4 'norm      '    5.7150       1.0000          .0000       .10000E+07
     5 'Prefactor '    35.800       1.0000          .0000       .10000E+07
     6 'Prefactor '    .46724E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .11554E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .30255E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .23309E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .65025       1.0000          .0000       .10000E+07
    11 'Prefactor '    18.314       1.0000          .0000       .10000E+07
    12 'Prefactor '    26.856       1.0000          .0000       .10000E+07
    13 'Prefactor '    23.642       1.0000          .0000       .10000E+07
    14 'Prefactor '    12.545       1.0000          .0000       .10000E+07
    15 'Prefactor '    .31371E-02   1.0000          .0000       .10000E+07
    16 'norm      '    1.9650       1.0000          .0000       .10000E+07
    17 'Prefactor '    .37963E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    1.0825       1.0000          .0000       .10000E+07
    19 'Prefactor '    5.0015       1.0000          .0000       .10000E+07
    20 'Prefactor '    15.821       1.0000          .0000       .10000E+07
    21 'norm      '    3.1448       1.0000          .0000       .10000E+07
    22 'Prefactor '    .82601E-06   1.0000          .0000       .10000E+07
    23 'Prefactor '    .12934E-07   1.0000          .0000       .10000E+07
    24 'norm      '    8.7568       1.0000          .0000       .10000E+07
    25 'Normalizat'    .91546       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1284       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=   6700.098     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     2232 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.6435        .21888E-07** at limit **
   2  Prefactor     .87186E-06    20.654       -.14635E-06** at limit **
   3  Prefactor     1.4048        5.0802       -.14364E-06   -.31575E-02
   4  norm          5.7157        3.2293       -.43895E-07   -.92134E-02
   5  Prefactor     36.119        2.1602        .45365E-08   -.28267E-01
   6  Prefactor     .49063E-04    31.254       -.17449E-06** at limit **
   7  Prefactor     .20872E-07    12.345        .95524E-07** at limit **
   8  Prefactor      .0000        3.3228       -.25104E-08** at limit **
   9  Prefactor     .11102E-09    6.8382        .14151E-06** at limit **
  10  Prefactor     .64550        1.6671       -.12942E-07   -.23425E-02
  11  Prefactor     18.493        1.8782        .43107E-09    .11892E-01
  12  Prefactor     27.036        2.7997        .81611E-08   -.76105E-01
  13  Prefactor     23.627        1.0777       -.55853E-09   -.17350E-02
  14  Prefactor     12.569        1.3762        .81560E-09   -.18270E-01
  15  Prefactor     .67613E-06    17.087       -.11306E-06** at limit **
  16  norm          1.9652        1.3036        .11809E-07    .50780E-02
  17  Prefactor      .0000        5.6697       -.69381E-07** at limit **
  18  Prefactor     1.0783        12.403        .34935E-06    .24680E-02
  19  Prefactor     4.9738        6.6876        .83300E-08   -.64392E-03
  20  Prefactor     15.817        1.0524        .13622E-09    .81157E-02
  21  norm          3.1461        2.5788        .25687E-07    .35181E-02
  22  Prefactor     .49805E-04    28.156       -.13435E-06** at limit **
  23  Prefactor     .55511E-10    2.1182       -.36332E-07** at limit **
  24  norm          8.7582        8.5910        .16035E-08    .61944E-02
  25  Normalizat    .91534        .18587       -.85806E-06   -.27927E-03
  26  Prefactor     1.1283        .21589        .11635E-06   -.18010E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 8.71858e-07
  Prefactor  = 1.40481
  norm       = 5.71569
  Prefactor  = 36.1187
  Prefactor  = 4.90627e-05
  Prefactor  = 2.08722e-08
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 0.645503
  Prefactor  = 18.4935
  Prefactor  = 27.0359
  Prefactor  = 23.6272
  Prefactor  = 12.5688
  Prefactor  = 6.76126e-07
  norm       = 1.9652
  Prefactor  = 0
  Prefactor  = 1.07829
  Prefactor  = 4.97379
  Prefactor  = 15.8165
  norm       = 3.14608
  Prefactor  = 4.98048e-05
  Prefactor  = 5.55112e-11
  norm       = 8.75819
  Normalizat = 0.915344
  Prefactor  = 1.12835
 **********
 **   18 **HESSE 
 **********

 FCN=   6700.098     FROM HESSE     STATUS=OK           518 CALLS     2750 TOTAL
                     EDM=   .40E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.6492        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .87186E-06    21.133        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.4048        5.1921        .90807E-03   -1.5684    
   4  norm          5.7157        3.2311        .41993E-03   -1.5660    
   5  Prefactor     36.119        39.063        .16715E-03   -1.5588    
   6  Prefactor     .49063E-04    60.030        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .20872E-07    12.388        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        3.3158        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11102E-09    6.8360        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .64550        1.8984        .64842E-03   -1.5692    
  11  Prefactor     18.493        25.059        .23376E-03   -1.5622    
  12  Prefactor     27.036        43.025        .19300E-03   -1.5604    
  13  Prefactor     23.627        20.448        .20571E-03   -1.5611    
  14  Prefactor     12.569        15.334        .28256E-03   -1.5637    
  15  Prefactor     .67613E-06    17.442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.9652        1.3130        .73957E-03   -1.5680    
  17  Prefactor      .0000        5.6792        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.0783        3.9902        .83238E-02   -1.5687    
  19  Prefactor     4.9738        6.7015        .44942E-03   -1.5663    
  20  Prefactor     15.817        15.662        .25154E-03   -1.5628    
  21  norm          3.1461        2.5871        .57137E-03   -1.5672    
  22  Prefactor     .49805E-04    54.941        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .55511E-10    2.1217        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.7582        8.5989        .33849E-03   -1.5649    
  25  Normalizat    .91534        .15621        .45099E-01   -.95923    
  26  Prefactor     1.1283        .17936        .56766E-01   -.88566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97422e-06
Minuit parameter uncertainties:
  1  7.79105e-06
  2  0.00858488
  3  5.19213
  4  3.2311
  5  39.0632
  6  0.108541
  7  0.0010165
  8  2.94443e-06
  9  5.19194e-05
  10  1.89844
  11  25.0591
  12  43.0252
  13  20.4483
  14  15.3342
  15  0.00686805
  16  1.31297
  17  2.45666e-05
  18  3.99024
  19  6.70152
  20  15.6622
  21  2.58715
  22  0.104621
  23  1.83327e-05
  24  8.59892
  25  0.156286
  26  0.179458
Done.

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

Extracting fit parameters...

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  2.363e+01  2.045e+01  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.128e+00  1.795e-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.153e-01  1.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.92
Ra Dec: 219.229 56.649
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 1.31e-08 +/- 1.14e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 1.03e-05

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) = 6699.48099832
delta logL = 0.61680108266

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6699.44541299
delta logL = 0.652386411394

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.960       1.0000          .0000       .10000E+07
     2 'Index     '    1.2964       1.0000          .0000       10.000    
     3 'Normalizat'    .92054       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1260       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6699.445     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      249 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.976        30.226        .68648E-05    .48954E-03
   2  Index         1.2968        .50056        .96348E-02   -.15743E-04
   3  Normalizat    .92056        .17850        .23157E-03   -.11203E-03
   4  Prefactor     1.1261        .21291        .25125E-03   -.28506E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.9757
  Index      = 1.29682
  Normalizat = 0.920563
  Prefactor  = 1.12606
 **********
 **   18 **HESSE 
 **********

 FCN=   6699.445     FROM HESSE     STATUS=OK            23 CALLS      272 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.976        30.356        .13730E-05   -1.5591    
   2  Index         1.2968        .50280        .38539E-03   -.83402    
   3  Normalizat    .92056        .17870        .92630E-05   -.95741    
   4  Prefactor     1.1261        .21314        .10050E-04   -.88638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88017e-11
Minuit parameter uncertainties:
  1  30.3562
  2  0.504695
  3  0.178812
  4  0.213305
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/954337': 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) = 6699.44541249
delta logL = 0.652386914039

Extracting fit parameters...

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  3.398e+01  3.036e+01  0.000e+00  1.000e+06 ( 1.000e-14)
358        Index:  1.297e+00  5.047e-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:  1.126e+00  2.133e-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.206e-01  1.788e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.23
Ra Dec: 219.229 56.649
Photon Index (Free Index): 1.30 +/- 0.50
Photon Flux (Free Index): 6.99e-09 +/- 7.49e-09
Energy Flux (Free Index): 4.32e-05 +/- 5.76e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/954337/cmap_HighResolution_692668801_692928001_4FGL_J1436.9+5638_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.31e-08', energy_flux2='4.32e-05', photon_flux_error='1.14e-08', dlogl='6.52e-01', energy_flux='1.19e-05', photon_flux2='6.99e-09', job_status='DONE', time_completed='2022-12-17 01:04:08.096018', photon_index_error2='0.50', photon_index2='1.30', ts='5.92', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='5.76e-05', EG='0.92', time_epoch_completed='1671267848.1', return_code='0', job_id='954337', GAL2='1.13', EG2='0.92', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='7.49e-09', ts2='7.23', photon_index='1.90' WHERE bin_id='1749' AND source_name='4FGL J1436.9+5638' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 01:04:08 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 954337: <4FGL_J1436.9+5638_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1436.9+5638_daily_bin1749> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Dec 17 00:50:21 2022
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 00:50:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 00:50:22 2022
Terminated at Sat Dec 17 01:04:08 2022
Results reported at Sat Dec 17 01:04:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1436.9+5638_daily_bin1749 219.229 56.649 692668801 692928001 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 :                                   690.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             273.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            827 sec.

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

