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


Performing analysis on: 4FGL_J1436.9+5638_daily_bin1770
RA = 219.229, Dec = 56.649
tmin = 698112001, tmax = 698371201
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='488978', job_status='RUN', time_executed='2023-02-18 01:04:09.177731', time_epoch_executed='1676711049.18' WHERE source_name='4FGL J1436.9+5638' and cadence='daily' and bin_id='1770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/488978

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/488978/ft1_4FGL_J1436.9+5638_daily_bin1770.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/488978/ft2_4FGL_J1436.9+5638_daily_bin1770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/488978/ft1_4FGL_J1436.9+5638_daily_bin1770.fits outfile=/scratch/kocevski/488978/ft1_filteredMKT_4FGL_J1436.9+5638_daily_bin1770.fits ra=219.229 dec=56.649 rad=12.0 tmin=698112001.0 tmax=698371201.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 4.33
user 4.11
sys 0.20

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

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

Number of photons that the gtmktime cut: 449

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/488978/ft1_filtered_4FGL_J1436.9+5638_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/488978/ft2_4FGL_J1436.9+5638_daily_bin1770.fits sctable="SC_DATA" expcube=/scratch/kocevski/488978/ltcube_698112001_698371201_4FGL_J1436.9+5638_daily_bin1770.fits outfile=/scratch/kocevski/488978/expmap_698112001_698371201_4FGL_J1436.9+5638_daily_bin1770.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/488978/ltcube_698112001_698371201_4FGL_J1436.9+5638_daily_bin1770.fits
.....................!
real 191.05
user 186.45
sys 4.25

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/488978/ft1_filtered_4FGL_J1436.9+5638_daily_bin1770.fits scfile=/scratch/kocevski/488978/ft2_4FGL_J1436.9+5638_daily_bin1770.fits outfile=/scratch/kocevski/488978/cmap_698112001_698371201_4FGL_J1436.9+5638_daily_bin1770.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/488978/ft1_filtered_4FGL_J1436.9+5638_daily_bin1770.fits scfile=/scratch/kocevski/488978/ft2_4FGL_J1436.9+5638_daily_bin1770.fits outfile=/scratch/kocevski/488978/cmap_HighResolution_698112001_698371201_4FGL_J1436.9+5638_daily_bin1770.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0085       1.0000          .0000       .10000E+07
     2 'Prefactor '    58.936       1.0000          .0000       .10000E+07
     3 'Prefactor '    .97771E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .13117E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .52587E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .21185E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    25.937       1.0000          .0000       .10000E+07
     8 'Prefactor '    8.3277       1.0000          .0000       .10000E+07
     9 'Prefactor '    .88984E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .14522E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    13.982       1.0000          .0000       .10000E+07
    12 'Prefactor '    .29838E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .21180E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .10125E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .27385E-04   1.0000          .0000       .10000E+07
    16 'norm      '    .72869       1.0000          .0000       .10000E+07
    17 'Prefactor '    .23518E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    2.6201       1.0000          .0000       .10000E+07
    19 'Prefactor '    .64730E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .22858E-03   1.0000          .0000       .10000E+07
    21 'norm      '    1.4050       1.0000          .0000       .10000E+07
    22 'Prefactor '    47.368       1.0000          .0000       .10000E+07
    23 'Prefactor '    5.4798       1.0000          .0000       .10000E+07
    24 'norm      '    .50682E-07   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.1856       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .67038       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=   4942.252     FROM MIGRAD    STATUS=CONVERGED    231 CALLS     2489 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0138        6.2221       -.20248E-06   -.20003E-02
   2  Prefactor     51.685        97.832       -.16468E-04   -.45730E-03
   3  Prefactor     .48495E-02    11.511        .76322E-05** at limit **
   4  norm          .55511E-10    3.6806       -.27533E-05** at limit **
   5  Prefactor     .12768E-08    12.818        .17551E-06** at limit **
   6  Prefactor      .0000        83.667       -.54688E-05** at limit **
   7  Prefactor     25.828        40.803        .15105E-04   -.57428E-02
   8  Prefactor     8.3552        5.6565       -.57225E-06    .25207E-02
   9  Prefactor     .27756E-09    13.018       -.10877E-05** at limit **
  10  Prefactor      .0000        2.0546        .35440E-06** at limit **
  11  Prefactor     12.551        31.299       -.45772E-05   -.12394E-02
  12  Prefactor     .59397E-08    31.675       -.10829E-05** at limit **
  13  Prefactor     .17202E-05    8.0910       -.39754E-05** at limit **
  14  Prefactor      .0000        4.2431       -.14281E-05** at limit **
  15  Prefactor     .55511E-10    6.1500        .26313E-05** at limit **
  16  norm          .72785        .73001        .17518E-06   -.55028E-03
  17  Prefactor     .69944E-08    24.747        .17151E-05** at limit **
  18  Prefactor     2.5554        6.5439       -.44738E-06    .33664E-03
  19  Prefactor     .11546E-07    15.322        .85357E-06** at limit **
  20  Prefactor     .18044E-05    8.6829        .84841E-07** at limit **
  21  norm          1.4499        2.1835        .13008E-06    .24077E-02
  22  Prefactor     37.663        89.622        .44753E-05    .35960E-02
  23  Prefactor     5.4552        4.7065       -.34758E-06    .28800E-03
  24  norm          .11102E-09    2.8015        .15946E-05** at limit **
  25  Normalizat    1.1937        .20894       -.30932E-04    .14114E-03
  26  Prefactor     .66703        .22094        .26819E-04   -.36884E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.01382
  Prefactor  = 51.6851
  Prefactor  = 0.00484946
  norm       = 5.55112e-11
  Prefactor  = 1.27676e-09
  Prefactor  = 0
  Prefactor  = 25.8279
  Prefactor  = 8.35518
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  Prefactor  = 12.5506
  Prefactor  = 5.93969e-09
  Prefactor  = 1.72024e-06
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 0.72785
  Prefactor  = 6.99441e-09
  Prefactor  = 2.55537
  Prefactor  = 1.15463e-08
  Prefactor  = 1.80439e-06
  norm       = 1.44986
  Prefactor  = 37.6632
  Prefactor  = 5.45517
  norm       = 1.11022e-10
  Normalizat = 1.1937
  Prefactor  = 0.667028
 **********
 **   18 **HESSE 
 **********

 FCN=   4942.252     FROM HESSE     STATUS=OK           512 CALLS     3001 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0138        6.2492        .73026E-03   -1.5680    
   2  Prefactor     51.685        98.093        .13027E-03   -1.5564    
   3  Prefactor     .48495E-02    4.0362        .50707E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .55511E-10    3.6935        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .12768E-08    12.812        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        82.207        .16960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.828        41.232        .19639E-03   -1.5606    
   8  Prefactor     8.3552        5.6624        .34716E-03   -1.5650    
   9  Prefactor     .27756E-09    13.010        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.0539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.551        31.069        .26761E-03   -1.5637    
  12  Prefactor     .59397E-08    31.622        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .17202E-05    16.254        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        4.2473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    6.1525        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .72785        .72204        .58409E-03   -1.5691    
  17  Prefactor     .69944E-08    24.499        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.5554        6.5686        .62983E-03   -1.5676    
  19  Prefactor     .11546E-07    15.134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .18044E-05    16.321        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4499        2.2329        .91440E-03   -1.5684    
  22  Prefactor     37.663        89.911        .14531E-03   -1.5585    
  23  Prefactor     5.4552        4.7154        .42899E-03   -1.5661    
  24  norm          .11102E-09    2.8026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1937        .17775        .35253E-01   -.86798    
  26  Prefactor     .66703        .18865        .64021E-01   -1.0483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.23221e-07
Minuit parameter uncertainties:
  1  6.24918
  2  98.0963
  3  0.279811
  4  2.44848e-05
  5  0.00025701
  6  6.10066e-05
  7  41.2323
  8  5.66237
  9  0.00012478
  10  1.50175e-05
  11  31.0692
  12  0.000865518
  13  0.0105756
  14  1.45055e-06
  15  4.05252e-05
  16  0.722035
  17  0.000827183
  18  6.56866
  19  0.000836312
  20  0.0108535
  21  2.23286
  22  89.9143
  23  4.71539
  24  3.89568e-05
  25  0.17784
  26  0.188833
Done.

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

Extracting fit parameters...

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  1.720e-06  1.058e-02  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:  6.670e-01  1.888e-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:  1.194e+00  1.778e-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: 4.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/488978/likelihoodResults_698112001_698371201_4FGL_J1436.9+5638_daily_bin1770.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): 102
logL (Free Index) = 4941.33932811
delta logL = 0.91266927955

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4942.25201341
delta logL = -1.60236313604e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60856E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.6545       1.0000          .0000       10.000    
     3 'Normalizat'    1.1947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66591       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=   4942.252     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      323 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23315E-08    387.23        .42118E-03** at limit **
   2  Index         1.3421        8.0472        .50000       -.11369E-09
   3  Normalizat    1.1937        .16595        .35022E-01   -.88167E-04
   4  Prefactor     .66703        .18578        .64021E-01   -.77981E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.33147e-09
  Index      = 1.34209
  Normalizat = 1.1937
  Prefactor  = 0.66703
 **********
 **   18 **HESSE 
 **********

 FCN=   4942.252     FROM HESSE     STATUS=OK            31 CALLS      354 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23315E-08    16.458        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3421        5.5798        .50000       -.82064    
   3  Normalizat    1.1937        .19275        .19535E-03   -.86798    
   4  Prefactor     .66703        .21540        .28324E-03   -1.0483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76112e-10
Minuit parameter uncertainties:
  1  0.000394019
  2  3.48087
  3  0.192866
  4  0.215667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/488978': 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) = 4942.25199733
delta logL = 5.28916643816e-08

Extracting fit parameters...

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  2.331e-09  3.940e-04  0.000e+00  1.000e+06 ( 1.000e-14)
358        Index:  1.342e+00  3.481e+00  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:  6.670e-01  2.157e-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:  1.194e+00  1.929e-01  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/488978/cmap_HighResolution_698112001_698371201_4FGL_J1436.9+5638_daily_bin1770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-03', job_status='DONE', photon_flux_upper_limit='4.20e-08', time_completed='2023-02-18 01:15:19.717669', job_id='488978', GAL2='0.67', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1676711719.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='5.29e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1770' AND source_name='4FGL J1436.9+5638' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 18 01:15:19 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 488978: <4FGL_J1436.9+5638_daily_bin1770> in cluster <slac> Done

Job <4FGL_J1436.9+5638_daily_bin1770> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Feb 18 01:00:17 2023
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 01:00:18 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 01:00:18 2023
Terminated at Sat Feb 18 01:15:20 2023
Results reported at Sat Feb 18 01:15:20 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1436.9+5638_daily_bin1770 219.229 56.649 698112001 698371201 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 :                                   672.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             222.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            903 sec.

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

