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


Performing analysis on: 4FGL_J1208.4+6121_daily_bin1776
RA = 182.114, Dec = 61.3559
tmin = 699667201, tmax = 699926401
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='832508', job_status='RUN', time_executed='2023-03-08 00:36:15.521618', time_epoch_executed='1678264575.52' WHERE source_name='4FGL J1208.4+6121' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/832508

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/832508/ft1_4FGL_J1208.4+6121_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/832508/ft2_4FGL_J1208.4+6121_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/832508/ft1_4FGL_J1208.4+6121_daily_bin1776.fits outfile=/scratch/kocevski/832508/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin1776.fits ra=182.114 dec=61.3559 rad=12.0 tmin=699667201.0 tmax=699926401.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.89
user 3.65
sys 0.22

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

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

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

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

Number of photons that the gtmktime cut: 615

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/832508/ft1_filtered_4FGL_J1208.4+6121_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/832508/ft2_4FGL_J1208.4+6121_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/832508/ltcube_699667201_699926401_4FGL_J1208.4+6121_daily_bin1776.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/832508/ft2_4FGL_J1208.4+6121_daily_bin1776.fits
.....................!
real 11.93
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/832508/ft1_filtered_4FGL_J1208.4+6121_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/832508/ft2_4FGL_J1208.4+6121_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/832508/ltcube_699667201_699926401_4FGL_J1208.4+6121_daily_bin1776.fits outfile=/scratch/kocevski/832508/expmap_699667201_699926401_4FGL_J1208.4+6121_daily_bin1776.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/832508/ltcube_699667201_699926401_4FGL_J1208.4+6121_daily_bin1776.fits
.....................!
real 190.82
user 185.31
sys 5.13

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/832508/ft1_filtered_4FGL_J1208.4+6121_daily_bin1776.fits scfile=/scratch/kocevski/832508/ft2_4FGL_J1208.4+6121_daily_bin1776.fits outfile=/scratch/kocevski/832508/cmap_699667201_699926401_4FGL_J1208.4+6121_daily_bin1776.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/832508/ft1_filtered_4FGL_J1208.4+6121_daily_bin1776.fits scfile=/scratch/kocevski/832508/ft2_4FGL_J1208.4+6121_daily_bin1776.fits outfile=/scratch/kocevski/832508/cmap_HighResolution_699667201_699926401_4FGL_J1208.4+6121_daily_bin1776.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.54
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/832508/ft1_filtered_4FGL_J1208.4+6121_daily_bin1776.fits', '/scratch/kocevski/832508/ft2_4FGL_J1208.4+6121_daily_bin1776.fits', expMap='/scratch/kocevski/832508/expmap_699667201_699926401_4FGL_J1208.4+6121_daily_bin1776.fits', expCube='/scratch/kocevski/832508/ltcube_699667201_699926401_4FGL_J1208.4+6121_daily_bin1776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/832508/Model_4FGL_J1208.4+6121_daily_bin1776.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/832508/ft1_filtered_4FGL_J1208.4+6121_daily_bin1776.fits
Spacecraft file(s): /scratch/kocevski/832508/ft2_4FGL_J1208.4+6121_daily_bin1776.fits
Exposure map: /scratch/kocevski/832508/expmap_699667201_699926401_4FGL_J1208.4+6121_daily_bin1776.fits
Exposure cube: /scratch/kocevski/832508/ltcube_699667201_699926401_4FGL_J1208.4+6121_daily_bin1776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/832508/Model_4FGL_J1208.4+6121_daily_bin1776.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) = 6698.03158346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27979E-02   1.0000          .0000       .10000E+07
     2 'norm      '    2.6251       1.0000          .0000       .10000E+07
     3 'Prefactor '    .14395E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .11990E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .35571E-04   1.0000          .0000       .10000E+07
     6 'norm      '    .62515       1.0000          .0000       .10000E+07
     7 'Prefactor '    .38730E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    1.3116       1.0000          .0000       .10000E+07
     9 'Prefactor '    29.383       1.0000          .0000       .10000E+07
    10 'Prefactor '    .27415E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .10953E-04   1.0000          .0000       .10000E+07
    12 'norm      '    4.1083       1.0000          .0000       .10000E+07
    13 'norm      '    1.9193       1.0000          .0000       .10000E+07
    14 'Prefactor '    .56284E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    10.342       1.0000          .0000       .10000E+07
    16 'norm      '    2.4345       1.0000          .0000       .10000E+07
    17 'Prefactor '    12.542       1.0000          .0000       .10000E+07
    18 'norm      '    .74280E-04   1.0000          .0000       .10000E+07
    19 'norm      '    .11796E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    .66058E-05   1.0000          .0000       .10000E+07
    21 'norm      '    1.6748       1.0000          .0000       .10000E+07
    22 'norm      '    1.7032       1.0000          .0000       .10000E+07
    23 'Prefactor '    .52713E-06   1.0000          .0000       .10000E+07
    24 'Prefactor '    .15866E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    32.068       1.0000          .0000       .10000E+07
    26 'Prefactor '    .18338E-02   1.0000          .0000       .10000E+07
    27 'Prefactor '    .12015E-05   1.0000          .0000       .10000E+07
    28 'Normalizat'    .96038       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0673       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=   6697.942     FROM MIGRAD    STATUS=CONVERGED    176 CALLS     2655 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38858E-09    6.6377        .95399E-07** at limit **
   2  norm          2.6250        1.7491        .55814E-08    .10269E-01
   3  Prefactor     .58533E-05    19.638        .57930E-06** at limit **
   4  norm          .11102E-09    .81504       -.23665E-07** at limit **
   5  Prefactor     .53069E-07    16.843        .24431E-06** at limit **
   6  norm          .62506        1.1167        .98055E-08   -.15895E-03
   7  Prefactor     .43415E-06    24.125       -.12554E-06** at limit **
   8  Prefactor     1.3212        3.6160        .47570E-07    .80749E-03
   9  Prefactor     28.575        10.832       -.26563E-06    .15960    
  10  Prefactor     .55511E-10    5.0850        .24618E-07** at limit **
  11  Prefactor     .55511E-10    .99113       -.37930E-09** at limit **
  12  norm          4.1107        6.0073       -.25489E-05   -.27886E-01
  13  norm          1.9332        5.0208        .37360E-06   -.17864E-02
  14  Prefactor     .84377E-08    3.7734       -.83541E-06** at limit **
  15  Prefactor     10.081        3.2576        .28886E-07    .19526E-01
  16  norm          2.4341        1.7712       -.69649E-08    .15693E-02
  17  Prefactor     12.469        1.4985        .18465E-07    .21186E-02
  18  norm          .33307E-09    1.0850       -.40251E-07** at limit **
  19  norm          .70888E-07    2.9733        .22226E-05** at limit **
  20  Prefactor     .88818E-09    2.4667       -.68162E-07** at limit **
  21  norm          1.6745        1.4882       -.11036E-07    .56560E-02
  22  norm          1.7027        1.4807        .44556E-08   -.20536E-03
  23  Prefactor     .49960E-09    14.667       -.43778E-07** at limit **
  24  Prefactor     .16653E-09    7.7099       -.49112E-07** at limit **
  25  Prefactor     32.589        44.072        .25123E-05   -.67269E-01
  26  Prefactor     .11236E-04    21.019       -.42515E-06** at limit **
  27  Prefactor     .26590E-07    3.9089       -.13387E-05** at limit **
  28  Normalizat    .96114        .17479       -.41455E-05   -.16591E-04
  29  Prefactor     1.0670        .21684        .44210E-05    .25249E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.88578e-10
  norm       = 2.62499
  Prefactor  = 5.85332e-06
  norm       = 1.11022e-10
  Prefactor  = 5.30687e-08
  norm       = 0.62506
  Prefactor  = 4.34153e-07
  Prefactor  = 1.32117
  Prefactor  = 28.575
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  norm       = 4.11075
  norm       = 1.9332
  Prefactor  = 8.43769e-09
  Prefactor  = 10.0805
  norm       = 2.43414
  Prefactor  = 12.4687
  norm       = 3.33067e-10
  norm       = 7.08877e-08
  Prefactor  = 8.88178e-10
  norm       = 1.67449
  norm       = 1.70269
  Prefactor  = 4.996e-10
  Prefactor  = 1.66533e-10
  Prefactor  = 32.5889
  Prefactor  = 1.12358e-05
  Prefactor  = 2.65898e-08
  Normalizat = 0.961138
  Prefactor  = 1.06704
 **********
 **   18 **HESSE 
 **********

 FCN=   6697.942     FROM HESSE     STATUS=OK           607 CALLS     3262 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38858E-09    6.6374        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.6250        1.7540        .62918E-03   -1.5676    
   3  Prefactor     .58533E-05    48.799        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .11102E-09    .81311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .53069E-07    49.604        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .62506        1.1407        .67005E-03   -1.5692    
   7  Prefactor     .43415E-06    24.640        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.3212        3.6869        .96220E-03   -1.5685    
   9  Prefactor     28.575        24.682        .18451E-03   -1.5601    
  10  Prefactor     .55511E-10    5.0824        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    .98918        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.1107        9.6862        .49712E-03   -1.5667    
  13  norm          1.9332        5.5216        .74980E-03   -1.5680    
  14  Prefactor     .84377E-08    4.1289        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.081        26.633        .31132E-03   -1.5644    
  16  norm          2.4341        1.7791        .65553E-03   -1.5677    
  17  Prefactor     12.469        23.484        .28259E-03   -1.5637    
  18  norm          .33307E-09    1.0865        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .70888E-07    4.0990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .88818E-09    2.4652        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.6745        1.4792        .81403E-03   -1.5682    
  22  norm          1.7027        1.4925        .80557E-03   -1.5682    
  23  Prefactor     .49960E-09    14.677        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .16653E-09    7.6860        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     32.589        51.764        .17661E-03   -1.5594    
  26  Prefactor     .11236E-04    51.260        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .26590E-07    4.1022        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .96114        .14810        .45669E-01   -.94344    
  29  Prefactor     1.0670        .18167        .59804E-01   -.90527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85805e-06
Minuit parameter uncertainties:
  1  0.000102518
  2  1.75401
  3  0.0338017
  4  1.99744e-05
  5  0.00324569
  6  1.14071
  7  0.00654157
  8  3.68688
  9  24.6824
  10  3.24248e-05
  11  1.16906e-05
  12  9.6862
  13  5.52159
  14  0.00037299
  15  26.633
  16  1.77909
  17  23.4843
  18  3.91345e-05
  19  0.00107797
  20  9.22349e-05
  21  1.47924
  22  1.49249
  23  0.000170326
  24  6.9831e-05
  25  51.7643
  26  0.0479984
  27  0.000660707
  28  0.14816
  29  0.181775
Done.

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

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.008e+01  2.663e+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.067e+00  1.818e-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:  9.611e-01  1.482e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/832508/likelihoodResults_699667201_699926401_4FGL_J1208.4+6121_daily_bin1776.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) = 6696.72170383
delta logL = 1.2202233764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6696.66373256
delta logL = 1.27819464502

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96695       1.0000          .0000       .10000E+07
     2 'Index     '    3.5992       1.0000          .0000       10.000    
     3 'Normalizat'    .88044       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1243       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=   6696.664     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      300 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96683        19.217        .49987E-05   -.54645E-01
   2  Index         3.5997        2.8395        .28922E-02   -.96888E-03
   3  Normalizat    .88063        .16307        .22772E-03   -.63359E-03
   4  Prefactor     1.1242        .20077        .25821E-03   -.43844E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.966829
  Index      = 3.5997
  Normalizat = 0.880631
  Prefactor  = 1.12421
 **********
 **   18 **HESSE 
 **********

 FCN=   6696.664     FROM HESSE     STATUS=OK            23 CALLS      323 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96683        3.3028        .19995E-06   -1.5688    
   2  Index         3.5997        1.1529        .11569E-03   -.28386    
   3  Normalizat    .88063        .18003        .45545E-04   -.97144    
   4  Prefactor     1.1242        .22161        .51642E-04   -.88696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16934e-09
Minuit parameter uncertainties:
  1  3.30285
  2  1.16427
  3  0.180153
  4  0.221794
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/832508': 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) = 6696.66372704
delta logL = 1.27820016456

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  9.668e-01  3.303e+00  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  3.600e+00  1.164e+00  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.124e+00  2.218e-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.806e-01  1.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.97
Ra Dec: 182.114 61.356
Photon Index (Free Index): 3.60 +/- 1.16
Photon Flux (Free Index): 7.54e-08 +/- 5.23e-08
Energy Flux (Free Index): 1.22e-05 +/- 8.43e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/832508/cmap_HighResolution_699667201_699926401_4FGL_J1208.4+6121_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.42e-03', comment='SUCCESS', energy_flux2='1.22e-05', dlogl='1.28e+00', photon_flux2='7.54e-08', job_status='DONE', time_completed='2023-03-08 00:50:20.379752', photon_index_error2='1.16', photon_index2='3.60', ts='0.21', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='7.18e-08', energy_flux_error2='8.43e-06', EG='0.96', time_epoch_completed='1678265420.38', return_code='0', job_id='832508', GAL2='1.12', EG2='0.88', return_code2='0', photon_flux_error2='5.23e-08', ts2='2.97', photon_index='2.07' WHERE bin_id='1776' AND source_name='4FGL J1208.4+6121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 00:50:20 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 832508: <4FGL_J1208.4+6121_daily_bin1776> in cluster <slac> Done

Job <4FGL_J1208.4+6121_daily_bin1776> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Mar  8 00:35:24 2023
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 00:35:25 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 00:35:25 2023
Terminated at Wed Mar  8 00:50:21 2023
Results reported at Wed Mar  8 00:50:21 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.4+6121_daily_bin1776 182.114 61.3559 699667201 699926401 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 :                                   846.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            897 sec.

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

