aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 89 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is 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 = 7460
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1208.9+5441_daily_bin1711
RA = 182.226, Dec = 54.6995
tmin = 682819201, tmax = 683078401
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='115691', job_status='RUN', time_executed='2022-09-16 16:37:01.510777', time_epoch_executed='1663371421.51' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='1711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115691

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115691/ft1_4FGL_J1208.9+5441_daily_bin1711.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115691/ft2_4FGL_J1208.9+5441_daily_bin1711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115691/ft1_4FGL_J1208.9+5441_daily_bin1711.fits outfile=/scratch/kocevski/115691/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin1711.fits ra=182.226 dec=54.6995 rad=12.0 tmin=682819201.0 tmax=683078401.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.64
user 4.36
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/115691/ft2_4FGL_J1208.9+5441_daily_bin1711.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/115691/ft2_4FGL_J1208.9+5441_daily_bin1711.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/115691/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin1711.fits evtable="EVENTS" outfile="/scratch/kocevski/115691/ft1_filtered_4FGL_J1208.9+5441_daily_bin1711.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.61
user 0.36
sys 0.17

Number of photons that the gtmktime cut: 598

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/115691/ft1_filtered_4FGL_J1208.9+5441_daily_bin1711.fits" evtable="EVENTS" scfile=/scratch/kocevski/115691/ft2_4FGL_J1208.9+5441_daily_bin1711.fits sctable="SC_DATA" outfile=/scratch/kocevski/115691/ltcube_682819201_683078401_4FGL_J1208.9+5441_daily_bin1711.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/115691/ft2_4FGL_J1208.9+5441_daily_bin1711.fits
.....................!
real 15.09
user 14.56
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115691/ft1_filtered_4FGL_J1208.9+5441_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/115691/ft2_4FGL_J1208.9+5441_daily_bin1711.fits sctable="SC_DATA" expcube=/scratch/kocevski/115691/ltcube_682819201_683078401_4FGL_J1208.9+5441_daily_bin1711.fits outfile=/scratch/kocevski/115691/expmap_682819201_683078401_4FGL_J1208.9+5441_daily_bin1711.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/115691/ltcube_682819201_683078401_4FGL_J1208.9+5441_daily_bin1711.fits
.....................!
real 193.35
user 186.76
sys 5.39

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

Setting source of interest to:
4FGL J1208.9+5441 @ 182.226 54.6995

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/115691/ft1_filtered_4FGL_J1208.9+5441_daily_bin1711.fits scfile=/scratch/kocevski/115691/ft2_4FGL_J1208.9+5441_daily_bin1711.fits outfile=/scratch/kocevski/115691/cmap_682819201_683078401_4FGL_J1208.9+5441_daily_bin1711.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=182.226 yref=54.6995 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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/115691/ft1_filtered_4FGL_J1208.9+5441_daily_bin1711.fits scfile=/scratch/kocevski/115691/ft2_4FGL_J1208.9+5441_daily_bin1711.fits outfile=/scratch/kocevski/115691/cmap_HighResolution_682819201_683078401_4FGL_J1208.9+5441_daily_bin1711.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=182.226 yref=54.6995 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/115691/ft1_filtered_4FGL_J1208.9+5441_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/115691/ft2_4FGL_J1208.9+5441_daily_bin1711.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/115691/Model_4FGL_J1208.9+5441_daily_bin1711.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/115691/ft1_filtered_4FGL_J1208.9+5441_daily_bin1711.fits.....................!
real 58.04
user 56.58
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/115691/ft1_filtered_4FGL_J1208.9+5441_daily_bin1711.fits', '/scratch/kocevski/115691/ft2_4FGL_J1208.9+5441_daily_bin1711.fits', expMap='/scratch/kocevski/115691/expmap_682819201_683078401_4FGL_J1208.9+5441_daily_bin1711.fits', expCube='/scratch/kocevski/115691/ltcube_682819201_683078401_4FGL_J1208.9+5441_daily_bin1711.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/115691/Model_4FGL_J1208.9+5441_daily_bin1711.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1208.9+5441'

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  2.729e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
377        alpha:  2.511e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
378         beta:  7.229e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
379           Eb:  3.605e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/115691/ft1_filtered_4FGL_J1208.9+5441_daily_bin1711.fits
Spacecraft file(s): /scratch/kocevski/115691/ft2_4FGL_J1208.9+5441_daily_bin1711.fits
Exposure map: /scratch/kocevski/115691/expmap_682819201_683078401_4FGL_J1208.9+5441_daily_bin1711.fits
Exposure cube: /scratch/kocevski/115691/ltcube_682819201_683078401_4FGL_J1208.9+5441_daily_bin1711.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/115691/Model_4FGL_J1208.9+5441_daily_bin1711.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) = 6514.5967542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68960E-01   1.0000          .0000       .10000E+07
     2 'norm      '    1.8644       1.0000          .0000       .10000E+07
     3 'Prefactor '    .23855E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    14.388       1.0000          .0000       .10000E+07
     5 'Prefactor '    .85361E-02   1.0000          .0000       .10000E+07
     6 'norm      '    31.345       1.0000          .0000       .10000E+07
     7 'Prefactor '    13.015       1.0000          .0000       .10000E+07
     8 'Prefactor '    .57549       1.0000          .0000       .10000E+07
     9 'norm      '    .13800E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .37836       1.0000          .0000       .10000E+07
    11 'norm      '    1.2087       1.0000          .0000       .10000E+07
    12 'Prefactor '    .17452E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .33767E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .55208E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .82945E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    .45269E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .20907E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .29992E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    3.7613       1.0000          .0000       .10000E+07
    20 'norm      '    2.5816       1.0000          .0000       .10000E+07
    21 'Prefactor '    .37888E-03   1.0000          .0000       .10000E+07
    22 'norm      '    1.6372       1.0000          .0000       .10000E+07
    23 'Prefactor '    1.2416       1.0000          .0000       .10000E+07
    24 'Prefactor '    .86042E-08   1.0000          .0000       .10000E+07
    25 'norm      '    .96852       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.3598       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .74632       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=   6514.580     FROM MIGRAD    STATUS=CONVERGED    184 CALLS     2396 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44409E-09    45.581        .57181E-06** at limit **
   2  norm          1.8676        1.6764        .11641E-06    .20217E-02
   3  Prefactor     .11102E-09    15.498        .30321E-06** at limit **
   4  Prefactor     14.151        6.4140        .11043E-05   -.70631E-01
   5  Prefactor     .12399E-05    31.082        .85082E-06** at limit **
   6  norm          31.040        7.6164        .75610E-06   -.16174    
   7  Prefactor     13.023        9.4581       -.25736E-06    .61167E-02
   8  Prefactor     .11906E-04    603.70       -.24045E-04** at limit **
   9  norm          .35527E-07    8.5974        .27985E-05** at limit **
  10  Prefactor     .37864        1.9691       -.82728E-07    .23427E-02
  11  norm          1.2210        4.0404       -.35265E-06   -.19803E-02
  12  Prefactor     .11924E-06    4.0959        .16976E-05** at limit **
  13  Prefactor     .50515E-07    3.0264        .78824E-06** at limit **
  14  Prefactor     .51414E-06    28.164       -.24488E-05** at limit **
  15  norm          .55511E-10    1.3698       -.21870E-06** at limit **
  16  Prefactor     .22704E-07    4.7055        .27072E-06** at limit **
  17  norm          .46407E-07    6.0916       -.22499E-05** at limit **
  18  Prefactor     .29976E-07    2.4403       -.60966E-07** at limit **
  19  Prefactor     3.7564        3.4003       -.10080E-06   -.11932E-02
  20  norm          2.5821        1.4944        .40510E-07    .31964E-03
  21  Prefactor     .56233E-07    7.2076       -.42499E-05** at limit **
  22  norm          1.6346        1.3728       -.12067E-06    .62580E-02
  23  Prefactor     .86893        1.8385       -.34860E-06   -.48431E-03
  24  Prefactor     .22204E-09    1.7113        .35251E-07** at limit **
  25  norm          .96269        4.3635        .32620E-05    .12129E-01
  26  Normalizat    1.3608        .18647        .28942E-05   -.53787E-04
  27  Prefactor     .74610        .22167       -.91876E-05   -.13153E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44089e-10
  norm       = 1.86764
  Prefactor  = 1.11022e-10
  Prefactor  = 14.1508
  Prefactor  = 1.2399e-06
  norm       = 31.0402
  Prefactor  = 13.0227
  Prefactor  = 1.19058e-05
  norm       = 3.55271e-08
  Prefactor  = 0.378637
  norm       = 1.22096
  Prefactor  = 1.19238e-07
  Prefactor  = 5.05151e-08
  Prefactor  = 5.14144e-07
  norm       = 5.55112e-11
  Prefactor  = 2.27041e-08
  norm       = 4.64073e-08
  Prefactor  = 2.9976e-08
  Prefactor  = 3.75638
  norm       = 2.58215
  Prefactor  = 5.62328e-08
  norm       = 1.6346
  Prefactor  = 0.868932
  Prefactor  = 2.22045e-10
  norm       = 0.962691
  Normalizat = 1.36081
  Prefactor  = 0.746105
 **********
 **   18 **HESSE 
 **********

 FCN=   6514.580     FROM HESSE     STATUS=OK           552 CALLS     2948 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44409E-09    45.641        .14853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8676        1.7431        .76272E-03   -1.5681    
   3  Prefactor     .11102E-09    15.504        .16795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.151        31.958        .26379E-03   -1.5633    
   5  Prefactor     .12399E-05    32.354        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          31.040        34.009        .17864E-03   -1.5597    
   7  Prefactor     13.023        10.286        .27740E-03   -1.5636    
   8  Prefactor     .11906E-04    31.173        .10375E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .35527E-07    8.9679        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .37864        2.0279        .92038E-03   -1.5696    
  11  norm          1.2210        4.1064        .10293E-02   -1.5686    
  12  Prefactor     .11924E-06    6.8352        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .50515E-07    5.2102        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .51414E-06    28.718        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .55511E-10    1.3596        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .22704E-07    7.4551        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .46407E-07    6.7295        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .29976E-07    5.1072        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.7564        3.4033        .52033E-03   -1.5669    
  20  norm          2.5821        1.4908        .63490E-03   -1.5676    
  21  Prefactor     .56233E-07    8.3410        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.6346        1.3688        .82571E-03   -1.5682    
  23  Prefactor     .86893        24.482        .14385E-01   -1.5689    
  24  Prefactor     .22204E-09    1.7157        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .96269        4.4348        .42648E-03   -1.5688    
  26  Normalizat    1.3608        .16034        .45926E-01   -.81769    
  27  Prefactor     .74610        .19020        .73138E-01   -1.0175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46594e-06
Minuit parameter uncertainties:
  1  0.000276415
  2  1.74314
  3  9.01357e-05
  4  31.9581
  5  0.0126674
  6  34.0097
  7  10.2858
  8  0.0385304
  9  0.00112915
  10  1.75254
  11  4.10641
  12  0.00180539
  13  0.00102587
  14  0.00768532
  15  1.64328e-05
  16  0.000822351
  17  0.0011175
  18  0.000782411
  19  3.40334
  20  1.4908
  21  0.00136984
  22  1.36883
  23  9.22454
  24  3.88032e-05
  25  4.13247
  26  0.160403
  27  0.190369
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  5.551e-11  1.643e-05  0.000e+00  1.000e+06 ( 1.000e-11)
377        alpha:  2.511e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
378         beta:  7.229e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
379           Eb:  3.605e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  7.461e-01  1.904e-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.361e+00  1.604e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 182.226 54.700
Photon Flux Upper Limit: 6.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/115691/likelihoodResults_682819201_683078401_4FGL_J1208.9+5441_daily_bin1711.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) = 6514.58129451
delta logL = -0.00131076342495

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6514.57998507
delta logL = -1.31963042804e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17714E-05   1.0000          .0000       .10000E+07
     2 'alpha     '    1.8761       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74626       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6514.580     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      232 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.3096        .42118E-03** at limit **
   2  alpha         2.6202        1.0387       -.22234E-04     .0000    
   3  Normalizat    1.3608        1.0680       -.21520E-05    .24046E-03
   4  Prefactor     .74610        1.0957        .81453E-05    .13459E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 2.62017
  Normalizat = 1.36081
  Prefactor  = 0.746104
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6514.580     FROM HESSE     STATUS=FAILED         9 CALLS      241 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.3096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3858        1.2234       -.22234E-04    .48088E-01
   3  Normalizat    1.3608        1.0680       -.21520E-05   -.81769    
   4  Prefactor     .74610        1.0957        .81453E-05   -1.0175    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.78219e-11
Minuit parameter uncertainties:
  1  7.16159e-06
  2  1.07129
  3  1.08623
  4  1.13024
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115691': 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) = 6514.57998375
delta logL = 2.72848410532e-12

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  0.000e+00  7.162e-06  0.000e+00  1.000e+06 ( 1.000e-11)
377        alpha:  2.620e+00  1.071e+00  0.000e+00  5.000e+00 ( 1.000e+00)
378         beta:  7.229e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
379           Eb:  3.605e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  7.461e-01  1.130e+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:  1.361e+00  1.086e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 182.226 54.700

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/115691/cmap_HighResolution_682819201_683078401_4FGL_J1208.9+5441_daily_bin1711.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.61e-05', job_status='DONE', photon_flux_upper_limit='6.07e-08', time_completed='2022-09-16 16:50:18.444300', job_id='115691', GAL2='0.75', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1663372218.44', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='2.73e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1711' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:50:18 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 115691: <4FGL_J1208.9+5441_daily_bin1711> in cluster <slac> Done

Job <4FGL_J1208.9+5441_daily_bin1711> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 16 16:35:15 2022
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:35:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 16:35:24 2022
Terminated at Fri Sep 16 16:50:19 2022
Results reported at Fri Sep 16 16:50:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin1711 182.226 54.6995 682819201 683078401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1208.9+5441 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   797.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            904 sec.

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

