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


Performing analysis on: 4FGL_J1208.4+6121_daily_bin1718
RA = 182.114, Dec = 61.3559
tmin = 684633601, tmax = 684892801
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='115685', job_status='RUN', time_executed='2022-09-16 16:38:51.490013', time_epoch_executed='1663371531.49' WHERE source_name='4FGL J1208.4+6121' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115685

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115685/ft1_4FGL_J1208.4+6121_daily_bin1718.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115685/ft2_4FGL_J1208.4+6121_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115685/ft1_4FGL_J1208.4+6121_daily_bin1718.fits outfile=/scratch/kocevski/115685/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin1718.fits ra=182.114 dec=61.3559 rad=12.0 tmin=684633601.0 tmax=684892801.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.25
user 3.03
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/115685/ft2_4FGL_J1208.4+6121_daily_bin1718.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/115685/ft2_4FGL_J1208.4+6121_daily_bin1718.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/115685/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin1718.fits evtable="EVENTS" outfile="/scratch/kocevski/115685/ft1_filtered_4FGL_J1208.4+6121_daily_bin1718.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 435

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/115685/ft1_filtered_4FGL_J1208.4+6121_daily_bin1718.fits" evtable="EVENTS" scfile=/scratch/kocevski/115685/ft2_4FGL_J1208.4+6121_daily_bin1718.fits sctable="SC_DATA" outfile=/scratch/kocevski/115685/ltcube_684633601_684892801_4FGL_J1208.4+6121_daily_bin1718.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/115685/ft2_4FGL_J1208.4+6121_daily_bin1718.fits
.....................!
real 15.26
user 14.80
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115685/ft1_filtered_4FGL_J1208.4+6121_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/115685/ft2_4FGL_J1208.4+6121_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/115685/ltcube_684633601_684892801_4FGL_J1208.4+6121_daily_bin1718.fits outfile=/scratch/kocevski/115685/expmap_684633601_684892801_4FGL_J1208.4+6121_daily_bin1718.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/115685/ltcube_684633601_684892801_4FGL_J1208.4+6121_daily_bin1718.fits
.....................!
real 191.71
user 186.20
sys 4.93

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 J1208.4+6121 @ 182.114 61.3559

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/115685/ft1_filtered_4FGL_J1208.4+6121_daily_bin1718.fits scfile=/scratch/kocevski/115685/ft2_4FGL_J1208.4+6121_daily_bin1718.fits outfile=/scratch/kocevski/115685/cmap_684633601_684892801_4FGL_J1208.4+6121_daily_bin1718.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.114 yref=61.3559 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/115685/ft1_filtered_4FGL_J1208.4+6121_daily_bin1718.fits scfile=/scratch/kocevski/115685/ft2_4FGL_J1208.4+6121_daily_bin1718.fits outfile=/scratch/kocevski/115685/cmap_HighResolution_684633601_684892801_4FGL_J1208.4+6121_daily_bin1718.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.114 yref=61.3559 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/115685/ft1_filtered_4FGL_J1208.4+6121_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/115685/ft2_4FGL_J1208.4+6121_daily_bin1718.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/115685/Model_4FGL_J1208.4+6121_daily_bin1718.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/115685/ft1_filtered_4FGL_J1208.4+6121_daily_bin1718.fits.....................!
real 54.23
user 52.85
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/115685/ft1_filtered_4FGL_J1208.4+6121_daily_bin1718.fits', '/scratch/kocevski/115685/ft2_4FGL_J1208.4+6121_daily_bin1718.fits', expMap='/scratch/kocevski/115685/expmap_684633601_684892801_4FGL_J1208.4+6121_daily_bin1718.fits', expCube='/scratch/kocevski/115685/ltcube_684633601_684892801_4FGL_J1208.4+6121_daily_bin1718.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/115685/Model_4FGL_J1208.4+6121_daily_bin1718.xml', optimizer='MINUIT')

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

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.772e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.073e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  2.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/115685/ft1_filtered_4FGL_J1208.4+6121_daily_bin1718.fits
Spacecraft file(s): /scratch/kocevski/115685/ft2_4FGL_J1208.4+6121_daily_bin1718.fits
Exposure map: /scratch/kocevski/115685/expmap_684633601_684892801_4FGL_J1208.4+6121_daily_bin1718.fits
Exposure cube: /scratch/kocevski/115685/ltcube_684633601_684892801_4FGL_J1208.4+6121_daily_bin1718.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/115685/Model_4FGL_J1208.4+6121_daily_bin1718.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) = 4631.0562728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61491E-03   1.0000          .0000       .10000E+07
     2 'norm      '    1.1023       1.0000          .0000       .10000E+07
     3 'Prefactor '    .35559       1.0000          .0000       .10000E+07
     4 'norm      '    3.3010       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.7103       1.0000          .0000       .10000E+07
     6 'norm      '    3.5416       1.0000          .0000       .10000E+07
     7 'Prefactor '    .39391E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .13486E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    24.103       1.0000          .0000       .10000E+07
    10 'Prefactor '    .21657E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.4654       1.0000          .0000       .10000E+07
    12 'norm      '    5.0779       1.0000          .0000       .10000E+07
    13 'norm      '    .29332E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .81371E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    13.998       1.0000          .0000       .10000E+07
    16 'norm      '    .88737E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    2.4907       1.0000          .0000       .10000E+07
    18 'norm      '    .55184       1.0000          .0000       .10000E+07
    19 'norm      '    17299.       1.0000          .0000       .10000E+07
    20 'Prefactor '    .24443E-02   1.0000          .0000       .10000E+07
    21 'norm      '    17.943       1.0000          .0000       .10000E+07
    22 'norm      '    .19370E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    195.04       1.0000          .0000       .10000E+07
    24 'Prefactor '    .14712E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    .76977E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    22.625       1.0000          .0000       .10000E+07
    27 'Prefactor '    3.5061       1.0000          .0000       .10000E+07
    28 'Normalizat'    .79914       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0311       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4630.934     FROM MIGRAD    STATUS=CONVERGED    259 CALLS     2883 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    12.974       -.85222E-06** at limit **
   2  norm          1.1055        2.1365       -.27758E-07   -.53663E-03
   3  Prefactor     .15155E-07    108.77       -.20385E-05** at limit **
   4  norm          3.3077        2.2855        .66621E-07    .17593E-02
   5  Prefactor     .20798        4715.3       -.46326E-05** at limit **
   6  norm          3.5604        2.5618        .18910E-06   -.14515E-02
   7  Prefactor     .55511E-10    11.674       -.11181E-07** at limit **
   8  Prefactor      .0000        2.7016       -.25669E-07** at limit **
   9  Prefactor     23.629        8.0092        .34625E-06   -.18085E-01
  10  Prefactor     .22204E-09    12.187        .92351E-06** at limit **
  11  Prefactor     1.4703        3.7957        .24772E-06    .90613E-03
  12  norm          4.7666        10.339        .16194E-07    .90320E-04
  13  norm          .33307E-09    14.098       -.83330E-06** at limit **
  14  Prefactor      .0000        11.073        .20255E-06** at limit **
  15  Prefactor     14.187        19.602       -.40235E-06   -.45273E-03
  16  norm           .0000        2.6015        .33666E-08** at limit **
  17  Prefactor     2.0305        113.47        .71962E-05   -.90624E-02
  18  norm          .55986        5.6160        .20565E-06    .23065E-03
  19  norm          17304.        172.08        .59588E-07   -4.4761    
  20  Prefactor     .66613E-09    30.404        .14826E-06** at limit **
  21  norm          17.821        4.9428        .23034E-06    .11046E-02
  22  norm           .0000        5.1853        .12989E-08** at limit **
  23  Prefactor     209.31        139.40       -.57912E-06   -.58948E-01
  24  Prefactor     .48899E-05    38.513        .12243E-05** at limit **
  25  Prefactor     .43192E-05    37.529       -.20093E-05** at limit **
  26  Prefactor     22.739        9.2215        .55043E-06    .37670E-01
  27  Prefactor     3.4921        3.4505        .81301E-07    .17813E-03
  28  Normalizat    .79745        .23409       -.40592E-05   -.29193E-04
  29  Prefactor     1.0318        .26540        .97626E-06   -.41943E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  norm       = 1.10553
  Prefactor  = 1.51545e-08
  norm       = 3.30773
  Prefactor  = 0.207978
  norm       = 3.56044
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 23.6288
  Prefactor  = 2.22045e-10
  Prefactor  = 1.47027
  norm       = 4.76657
  norm       = 3.33067e-10
  Prefactor  = 0
  Prefactor  = 14.1873
  norm       = 0
  Prefactor  = 2.03055
  norm       = 0.559856
  norm       = 17303.6
  Prefactor  = 6.66134e-10
  norm       = 17.8213
  norm       = 0
  Prefactor  = 209.312
  Prefactor  = 4.88987e-06
  Prefactor  = 4.31916e-06
  Prefactor  = 22.7393
  Prefactor  = 3.49207
  Normalizat = 0.797451
  Prefactor  = 1.03184
 **********
 **   18 **HESSE 
 **********

 FCN=   4630.934     FROM HESSE     STATUS=OK           609 CALLS     3492 TOTAL
                     EDM=   .22E-01    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    13.546        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1055        2.1766        .11301E-02   -1.5687    
   3  Prefactor     .15155E-07    108.72        .94823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.3077        2.2999        .55698E-03   -1.5672    
   5  Prefactor     .20798        4645.2        .52402E-03   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.5604        2.6121        .53686E-03   -1.5670    
   7  Prefactor     .55511E-10    11.693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.7017        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.629        30.007        .20373E-03   -1.5611    
  10  Prefactor     .22204E-09    12.681        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.4703        3.8394        .88794E-03   -1.5684    
  12  norm          4.7666        10.351        .44596E-03   -1.5664    
  13  norm          .33307E-09    13.796        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        11.104        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.187        19.640        .26746E-03   -1.5633    
  16  norm           .0000        2.5989        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.0305        123.16        .64740E-03   -1.5679    
  18  norm          .55986        5.7085        .73657E-03   -1.5693    
  19  norm          17304.        4295.9        .76696E-05   -1.3069    
  20  Prefactor     .66613E-09    30.425        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          17.821        17.186        .23617E-03   -1.5624    
  22  norm           .0000        5.2055        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     209.31        139.57        .71612E-04   -1.5419    
  24  Prefactor     .48899E-05    40.195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .43192E-05    40.022        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     22.739        28.726        .21029E-03   -1.5613    
  27  Prefactor     3.4921        3.4747        .53969E-03   -1.5671    
  28  Normalizat    .79745        .20927        .43599E-01   -1.0016    
  29  Prefactor     1.0318        .22687        .60953E-01   -.91676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.0217761
Minuit parameter uncertainties:
  1  7.36812e-05
  2  2.17656
  3  0.00256674
  4  2.29992
  5  62.2128
  6  2.61212
  7  4.92217e-05
  8  4.10915e-06
  9  30.0076
  10  0.000107044
  11  3.83941
  12  10.3511
  13  0.000137123
  14  7.96728e-06
  15  19.6402
  16  1.4366e-06
  17  31.6291
  18  3.57545
  19  4296.66
  20  0.000287318
  21  17.1857
  22  4.52723e-07
  23  139.576
  24  0.0280393
  25  0.0262955
  26  28.7258
  27  3.47468
  28  0.209483
  29  0.227081
Done.

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

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.419e+01  1.964e+01  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.073e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  2.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.032e+00  2.271e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  7.975e-01  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.06
Ra Dec: 182.114 61.356
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 1.50e-08 +/- 2.08e-08
Energy Flux (Fixed Index): 8.74e-06 +/- 1.21e-05

TS (Fixed Index): 1.06
Ra Dec: 182.114 61.356
Photon Flux Upper Limit: 8.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/115685/likelihoodResults_684633601_684892801_4FGL_J1208.4+6121_daily_bin1718.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) = 4630.83589199
delta logL = 0.0979500405629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4630.83390355
delta logL = 0.099938483123

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.802       1.0000          .0000       .10000E+07
     2 'Index     '    1.6653       1.0000          .0000       10.000    
     3 'Normalizat'    .80172       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0283       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+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=   4630.834     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      294 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.804        36.238        .82008E-05   -.10433E-02
   2  Index         1.6653        .85106        .11071E-01   -.85952E-05
   3  Normalizat    .80183        .21741        .25207E-03   -.81454E-04
   4  Prefactor     1.0282        .26191        .26995E-03   -.64688E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.804
  Index      = 1.66532
  Normalizat = 0.801829
  Prefactor  = 1.02816
 **********
 **   18 **HESSE 
 **********

 FCN=   4630.834     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.804        35.276        .16402E-05   -1.5610    
   2  Index         1.6653        .82924        .44284E-03   -.73009    
   3  Normalizat    .80183        .21761        .10083E-04   -1.0000    
   4  Prefactor     1.0282        .26216        .10798E-04   -.91797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34875e-11
Minuit parameter uncertainties:
  1  35.2768
  2  0.836246
  3  0.217843
  4  0.262487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115685': 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) = 4630.8339034
delta logL = 0.0999386344165

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  2.380e+01  3.528e+01  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  1.665e+00  8.362e-01  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  2.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.028e+00  2.625e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  8.018e-01  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.27
Ra Dec: 182.114 61.356
Photon Index (Free Index): 1.67 +/- 0.84
Photon Flux (Free Index): 1.01e-08 +/- 1.66e-08
Energy Flux (Free Index): 1.84e-05 +/- 4.03e-05

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/115685/cmap_HighResolution_684633601_684892801_4FGL_J1208.4+6121_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.41e-03', comment='SUCCESS', photon_flux='1.50e-08', energy_flux2='1.84e-05', photon_flux_error='2.08e-08', dlogl='9.99e-02', energy_flux='8.74e-06', photon_flux2='1.01e-08', job_status='DONE', time_completed='2022-09-16 16:50:57.570377', photon_index_error2='0.84', photon_index2='1.67', ts='1.06', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='8.50e-08', energy_flux_error2='4.03e-05', EG='0.80', time_epoch_completed='1663372257.57', return_code='0', job_id='115685', GAL2='1.03', EG2='0.80', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='1.66e-08', ts2='1.27', photon_index='2.07' WHERE bin_id='1718' AND source_name='4FGL J1208.4+6121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:50:57 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 115685: <4FGL_J1208.4+6121_daily_bin1718> in cluster <slac> Done

Job <4FGL_J1208.4+6121_daily_bin1718> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 16 16:35:14 2022
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:35:22 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:22 2022
Terminated at Fri Sep 16 16:50:58 2022
Results reported at Fri Sep 16 16:50:58 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.4+6121_daily_bin1718 182.114 61.3559 684633601 684892801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1208.4+6121 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   727.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            944 sec.

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

