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


Performing analysis on: 4FGL_J1436.9+5638_daily_bin1766
RA = 219.229, Dec = 56.649
tmin = 697075201, tmax = 697334401
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='852270', job_status='RUN', time_executed='2023-02-06 01:00:34.678986', time_epoch_executed='1675674034.68' WHERE source_name='4FGL J1436.9+5638' and cadence='daily' and bin_id='1766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/852270

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/852270/ft1_4FGL_J1436.9+5638_daily_bin1766.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/852270/ft2_4FGL_J1436.9+5638_daily_bin1766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/852270/ft1_4FGL_J1436.9+5638_daily_bin1766.fits outfile=/scratch/kocevski/852270/ft1_filteredMKT_4FGL_J1436.9+5638_daily_bin1766.fits ra=219.229 dec=56.649 rad=12.0 tmin=697075201.0 tmax=697334401.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.77
user 3.48
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/852270/ft2_4FGL_J1436.9+5638_daily_bin1766.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/852270/ft1_filteredMKT_4FGL_J1436.9+5638_daily_bin1766.fits evtable="EVENTS" outfile="/scratch/kocevski/852270/ft1_filtered_4FGL_J1436.9+5638_daily_bin1766.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.52
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 549

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/852270/ft1_filtered_4FGL_J1436.9+5638_daily_bin1766.fits" evtable="EVENTS" scfile=/scratch/kocevski/852270/ft2_4FGL_J1436.9+5638_daily_bin1766.fits sctable="SC_DATA" outfile=/scratch/kocevski/852270/ltcube_697075201_697334401_4FGL_J1436.9+5638_daily_bin1766.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/852270/ft2_4FGL_J1436.9+5638_daily_bin1766.fits
.....................!
real 16.86
user 16.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/852270/ft1_filtered_4FGL_J1436.9+5638_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/852270/ft2_4FGL_J1436.9+5638_daily_bin1766.fits sctable="SC_DATA" expcube=/scratch/kocevski/852270/ltcube_697075201_697334401_4FGL_J1436.9+5638_daily_bin1766.fits outfile=/scratch/kocevski/852270/expmap_697075201_697334401_4FGL_J1436.9+5638_daily_bin1766.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/852270/ltcube_697075201_697334401_4FGL_J1436.9+5638_daily_bin1766.fits
.....................!
real 195.70
user 190.08
sys 4.64

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/852270/ft1_filtered_4FGL_J1436.9+5638_daily_bin1766.fits scfile=/scratch/kocevski/852270/ft2_4FGL_J1436.9+5638_daily_bin1766.fits outfile=/scratch/kocevski/852270/cmap_697075201_697334401_4FGL_J1436.9+5638_daily_bin1766.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.55
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23480E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .22238E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .13116E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .14589E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .32054E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .74165E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .14856E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .54706E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .78398E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .73769       1.0000          .0000       .10000E+07
    11 'Prefactor '    11.038       1.0000          .0000       .10000E+07
    12 'Prefactor '    .10060E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .45028E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .11652E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    14.116       1.0000          .0000       .10000E+07
    16 'norm      '    4.4891       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.2891       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.2554       1.0000          .0000       .10000E+07
    19 'Prefactor '    2.6344       1.0000          .0000       .10000E+07
    20 'Prefactor '    11.449       1.0000          .0000       .10000E+07
    21 'norm      '    .37289E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    .26634       1.0000          .0000       .10000E+07
    23 'Prefactor '    1.4226       1.0000          .0000       .10000E+07
    24 'norm      '    .11702E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    .85226       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98109       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=   6009.393     FROM MIGRAD    STATUS=CONVERGED    190 CALLS     1772 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.5321       -.48354E-07** at limit **
   2  Prefactor     .30531E-08    91.409       -.39306E-06** at limit **
   3  Prefactor      .0000        2.2071       -.44713E-07** at limit **
   4  norm           .0000        3.1571       -.41282E-07** at limit **
   5  Prefactor     .27256E-07    4.8976       -.67927E-07** at limit **
   6  Prefactor     .16098E-08    20.337       -.10304E-06** at limit **
   7  Prefactor     .53291E-08    62.995       -.24609E-06** at limit **
   8  Prefactor      .0000        1.2668        .42518E-07** at limit **
   9  Prefactor     .34250E-07    5.1457       -.66525E-07** at limit **
  10  Prefactor     .75860        2.3234        .21694E-07    .12465E-02
  11  Prefactor     10.756        5.3982        .79392E-08   -.18628E-01
  12  Prefactor     .48406E-07    11.875       -.63233E-07** at limit **
  13  Prefactor     .16875E-07    9.6783       -.61885E-07** at limit **
  14  Prefactor      .0000        3.0983       -.55795E-07** at limit **
  15  Prefactor     14.202        14.479       -.31155E-07   -.95685E-02
  16  norm          4.4896        1.6174       -.46991E-08    .67172E-04
  17  Prefactor     6.2895        8.5210       -.12444E-08    .98297E-03
  18  Prefactor     1.2540        4.0967       -.16879E-06    .21891E-03
  19  Prefactor     2.6214        5.9952        .33986E-07   -.23153E-03
  20  Prefactor     11.398        2.7745       -.82670E-08    .17850E-01
  21  norm           .0000        1.6692        .19215E-07** at limit **
  22  Prefactor     .55511E-10    50.553       -.19333E-07** at limit **
  23  Prefactor     1.4162        4.1721       -.32982E-07    .86946E-04
  24  norm           .0000        3.4555       -.98066E-07** at limit **
  25  Normalizat    .85239        .17264       -.23885E-05    .15274E-04
  26  Prefactor     .98107        .20124        .17035E-05    .67567E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 3.05311e-09
  Prefactor  = 0
  norm       = 0
  Prefactor  = 2.7256e-08
  Prefactor  = 1.60982e-09
  Prefactor  = 5.32907e-09
  Prefactor  = 0
  Prefactor  = 3.42504e-08
  Prefactor  = 0.758599
  Prefactor  = 10.7564
  Prefactor  = 4.84057e-08
  Prefactor  = 1.68754e-08
  Prefactor  = 0
  Prefactor  = 14.2017
  norm       = 4.48963
  Prefactor  = 6.28952
  Prefactor  = 1.25398
  Prefactor  = 2.62137
  Prefactor  = 11.3981
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 1.41622
  norm       = 0
  Normalizat = 0.852388
  Prefactor  = 0.981072
 **********
 **   18 **HESSE 
 **********

 FCN=   6009.393     FROM HESSE     STATUS=OK           500 CALLS     2272 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.5301        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .30531E-08    91.365        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        2.2035        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        3.1443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .27256E-07    15.474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .16098E-08    20.522        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .53291E-08    63.060        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        1.2708        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .34250E-07    16.462        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .75860        2.6137        .57700E-03   -1.5691    
  11  Prefactor     10.756        17.317        .30130E-03   -1.5642    
  12  Prefactor     .48406E-07    16.996        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .16875E-07    15.102        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        3.1031        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.202        14.959        .26633E-03   -1.5633    
  16  norm          4.4896        1.6195        .47497E-03   -1.5666    
  17  Prefactor     6.2895        8.6185        .40003E-03   -1.5658    
  18  Prefactor     1.2540        4.1401        .99645E-03   -1.5686    
  19  Prefactor     2.6214        6.0725        .62797E-03   -1.5676    
  20  Prefactor     11.398        28.791        .29583E-03   -1.5640    
  21  norm           .0000        1.6645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .55511E-10    50.521        .10697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.4162        4.2243        .90640E-03   -1.5684    
  24  norm           .0000        3.4643        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .85239        .14424        .44289E-01   -.98154    
  26  Prefactor     .98107        .16861        .46030E-01   -.93363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03907e-07
Minuit parameter uncertainties:
  1  9.71376e-07
  2  0.00105439
  3  1.61557e-06
  4  8.7077e-08
  5  0.00129909
  6  0.000360747
  7  0.00115703
  8  3.39385e-07
  9  0.00150166
  10  2.61372
  11  17.3175
  12  0.00181458
  13  0.00100926
  14  1.67481e-06
  15  14.959
  16  1.61945
  17  8.6185
  18  4.14011
  19  6.07251
  20  28.7911
  21  1.45113e-07
  22  7.7677e-05
  23  4.2243
  24  5.55838e-07
  25  0.144303
  26  0.168703
Done.

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

Extracting fit parameters...

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  1.688e-08  1.009e-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:  9.811e-01  1.687e-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.524e-01  1.443e-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: 3.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/852270/likelihoodResults_697075201_697334401_4FGL_J1436.9+5638_daily_bin1766.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) = 6009.42462971
delta logL = -0.0317728251721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6009.39285689
delta logL = -3.13684722641e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36027E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.8401       1.0000          .0000       10.000    
     3 'Normalizat'    .85238       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98108       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=   6009.393     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      242 TOTAL
                     EDM=   .72E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        16.006       -.55975E-06** at limit **
   2  Index         1.6426        5.6563       -.38042E-05     .0000    
   3  Normalizat    .85239        .16809       -.99744E-06   -.34838E-04
   4  Prefactor     .98107        .19932        .23536E-05   -.37024E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.64264
  Normalizat = 0.852388
  Prefactor  = 0.981072
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6009.393     FROM HESSE     STATUS=FAILED        11 CALLS      253 TOTAL
                     EDM=   .72E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        16.092        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .26111        1.5014       -.38042E-05   -.73619    
   3  Normalizat    .85239        1.1897       -.99744E-06   -.98154    
   4  Prefactor     .98107        1.3214        .23536E-05   -.93363    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.22029e-13
Minuit parameter uncertainties:
  1  2.62352e-06
  2  0.992954
  3  1.22947
  4  1.36921
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/852270': 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): 101
logL (Free Index) = 6009.39285689
delta logL = 5.58429746889e-10

Extracting fit parameters...

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  0.000e+00  2.624e-06  0.000e+00  1.000e+06 ( 1.000e-14)
358        Index:  1.643e+00  9.930e-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.811e-01  1.369e+00  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.524e-01  1.229e+00  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/852270/cmap_HighResolution_697075201_697334401_4FGL_J1436.9+5638_daily_bin1766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.57e-03', job_status='DONE', photon_flux_upper_limit='3.46e-08', time_completed='2023-02-06 01:12:04.925859', job_id='852270', GAL2='0.98', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1675674724.93', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.58e-10', ts2='0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1766' AND source_name='4FGL J1436.9+5638' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb  6 01:12:04 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 852270: <4FGL_J1436.9+5638_daily_bin1766> in cluster <slac> Done

Job <4FGL_J1436.9+5638_daily_bin1766> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Feb  6 01:00:15 2023
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb  6 01:00:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb  6 01:00:21 2023
Terminated at Mon Feb  6 01:12:05 2023
Results reported at Mon Feb  6 01:12:05 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1436.9+5638_daily_bin1766 219.229 56.649 697075201 697334401 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.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             357.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            710 sec.

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

