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


Performing analysis on: 4FGL_J1208.4+6121_daily_bin1713
RA = 182.114, Dec = 61.3559
tmin = 683337601, tmax = 683596801
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='115678', job_status='RUN', time_executed='2022-09-16 16:36:13.662971', time_epoch_executed='1663371373.66' WHERE source_name='4FGL J1208.4+6121' and cadence='daily' and bin_id='1713'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115678

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115678/ft1_4FGL_J1208.4+6121_daily_bin1713.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115678/ft2_4FGL_J1208.4+6121_daily_bin1713.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115678/ft1_4FGL_J1208.4+6121_daily_bin1713.fits outfile=/scratch/kocevski/115678/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin1713.fits ra=182.114 dec=61.3559 rad=12.0 tmin=683337601.0 tmax=683596801.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.58
user 3.30
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/115678/ft2_4FGL_J1208.4+6121_daily_bin1713.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/115678/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin1713.fits evtable="EVENTS" outfile="/scratch/kocevski/115678/ft1_filtered_4FGL_J1208.4+6121_daily_bin1713.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.53
user 0.36
sys 0.15

Number of photons that the gtmktime cut: 623

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/115678/ft1_filtered_4FGL_J1208.4+6121_daily_bin1713.fits" evtable="EVENTS" scfile=/scratch/kocevski/115678/ft2_4FGL_J1208.4+6121_daily_bin1713.fits sctable="SC_DATA" outfile=/scratch/kocevski/115678/ltcube_683337601_683596801_4FGL_J1208.4+6121_daily_bin1713.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/115678/ft2_4FGL_J1208.4+6121_daily_bin1713.fits
.....................!
real 15.54
user 14.97
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115678/ft1_filtered_4FGL_J1208.4+6121_daily_bin1713.fits evtable="EVENTS" scfile=/scratch/kocevski/115678/ft2_4FGL_J1208.4+6121_daily_bin1713.fits sctable="SC_DATA" expcube=/scratch/kocevski/115678/ltcube_683337601_683596801_4FGL_J1208.4+6121_daily_bin1713.fits outfile=/scratch/kocevski/115678/expmap_683337601_683596801_4FGL_J1208.4+6121_daily_bin1713.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/115678/ltcube_683337601_683596801_4FGL_J1208.4+6121_daily_bin1713.fits
.....................!
real 192.68
user 186.21
sys 5.58

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/115678/ft1_filtered_4FGL_J1208.4+6121_daily_bin1713.fits scfile=/scratch/kocevski/115678/ft2_4FGL_J1208.4+6121_daily_bin1713.fits outfile=/scratch/kocevski/115678/cmap_683337601_683596801_4FGL_J1208.4+6121_daily_bin1713.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.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/115678/ft1_filtered_4FGL_J1208.4+6121_daily_bin1713.fits scfile=/scratch/kocevski/115678/ft2_4FGL_J1208.4+6121_daily_bin1713.fits outfile=/scratch/kocevski/115678/cmap_HighResolution_683337601_683596801_4FGL_J1208.4+6121_daily_bin1713.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.56
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.395       1.0000          .0000       .10000E+07
     2 'norm      '    4.8378       1.0000          .0000       .10000E+07
     3 'Prefactor '    123.05       1.0000          .0000       .10000E+07
     4 'norm      '    .47008E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    25.034       1.0000          .0000       .10000E+07
     6 'norm      '    5.0593       1.0000          .0000       .10000E+07
     7 'Prefactor '    19.492       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.5354       1.0000          .0000       .10000E+07
     9 'Prefactor '    14.726       1.0000          .0000       .10000E+07
    10 'Prefactor '    .26683E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.8757       1.0000          .0000       .10000E+07
    12 'norm      '    .28119E-05   1.0000          .0000       .10000E+07
    13 'norm      '    1.4164       1.0000          .0000       .10000E+07
    14 'Prefactor '    .20178E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    8.6434       1.0000          .0000       .10000E+07
    16 'norm      '    2.2428       1.0000          .0000       .10000E+07
    17 'Prefactor '    .92743E-04   1.0000          .0000       .10000E+07
    18 'norm      '    .87893E-04   1.0000          .0000       .10000E+07
    19 'norm      '    5.9574       1.0000          .0000       .10000E+07
    20 'Prefactor '    .58089E-05   1.0000          .0000       .10000E+07
    21 'norm      '    5.2141       1.0000          .0000       .10000E+07
    22 'norm      '    .72377       1.0000          .0000       .10000E+07
    23 'Prefactor '    9.5376       1.0000          .0000       .10000E+07
    24 'Prefactor '    .43899E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    .12208E-01   1.0000          .0000       .10000E+07
    26 'Prefactor '    32.244       1.0000          .0000       .10000E+07
    27 'Prefactor '    .46386       1.0000          .0000       .10000E+07
    28 'Normalizat'    .92378       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1541       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=   6709.022     FROM MIGRAD    STATUS=CONVERGED    168 CALLS     2704 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.279        2.3708       -.42167E-07   -.16989    
   2  norm          4.8471        2.6197       -.82197E-08    .40370E-02
   3  Prefactor     123.02        1.2007       -.70911E-08    .99534E-01
   4  norm          .27756E-09    6.8315       -.62184E-07** at limit **
   5  Prefactor     25.141        1.8378        .38785E-07   -.37216E-01
   6  norm          5.0592        2.3507       -.10429E-07    .10457E-02
   7  Prefactor     19.488        1.1071       -.68313E-08    .14965E-02
   8  Prefactor     3.5258        4.6382       -.59584E-08    .74820E-03
   9  Prefactor     14.726        1.1169       -.75971E-08   -.43650E-01
  10  Prefactor     .88818E-09    8.4811       -.37138E-06** at limit **
  11  Prefactor     1.8765        3.1191        .34332E-07    .26925E-03
  12  norm          .55511E-10    3.3987        .35292E-07** at limit **
  13  norm          1.4158        2.2378       -.32594E-07   -.19385E-03
  14  Prefactor     .55511E-10    1.9162       -.80039E-07** at limit **
  15  Prefactor     8.6443        1.2184        .13574E-07   -.40949E-01
  16  norm          2.2452        2.0750       -.20865E-07   -.15961E-02
  17  Prefactor     .18173E-05    143.17       -.30707E-05** at limit **
  18  norm          .38969E-07    15.756       -.27782E-06** at limit **
  19  norm          5.9584        7.0143       -.61094E-07   -.20059E-02
  20  Prefactor     .11102E-09    3.5671        .25227E-07** at limit **
  21  norm          5.2172        2.4263        .45113E-07    .31605E-02
  22  norm          .72683        1.8162       -.10893E-07    .41809E-03
  23  Prefactor     9.3844        2.8295       -.10047E-06   -.85044E-01
  24  Prefactor     .44409E-09    5.8117       -.34228E-07** at limit **
  25  Prefactor     .18430E-07    19.712       -.27407E-06** at limit **
  26  Prefactor     32.221        1.1029       -.99939E-08   -.48359E-02
  27  Prefactor     .53699        5.8332        .24519E-06    .47281E-03
  28  Normalizat    .92319        .18850        .12936E-05    .21841E-03
  29  Prefactor     1.1544        .23514        .48651E-07    .16829E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.2788
  norm       = 4.84707
  Prefactor  = 123.015
  norm       = 2.77556e-10
  Prefactor  = 25.1409
  norm       = 5.05922
  Prefactor  = 19.488
  Prefactor  = 3.52576
  Prefactor  = 14.7262
  Prefactor  = 8.88178e-10
  Prefactor  = 1.87648
  norm       = 5.55112e-11
  norm       = 1.4158
  Prefactor  = 5.55112e-11
  Prefactor  = 8.64426
  norm       = 2.24518
  Prefactor  = 1.81727e-06
  norm       = 3.89688e-08
  norm       = 5.95842
  Prefactor  = 1.11022e-10
  norm       = 5.21717
  norm       = 0.726829
  Prefactor  = 9.38439
  Prefactor  = 4.44089e-10
  Prefactor  = 1.84297e-08
  Prefactor  = 32.2212
  Prefactor  = 0.536985
  Normalizat = 0.923191
  Prefactor  = 1.15436
 **********
 **   18 **HESSE 
 **********

 FCN=   6709.022     FROM HESSE     STATUS=OK           623 CALLS     3327 TOTAL
                     EDM=   .37E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.279        29.407        .19109E-03   -1.5604    
   2  norm          4.8471        3.1241        .45713E-03   -1.5664    
   3  Prefactor     123.02        134.59        .90154E-04   -1.5486    
   4  norm          .27756E-09    1.4234        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.141        64.782        .19991E-03   -1.5608    
   6  norm          5.0592        2.3946        .44679E-03   -1.5663    
   7  Prefactor     19.488        17.798        .22658E-03   -1.5620    
   8  Prefactor     3.5258        4.6869        .53736E-03   -1.5670    
   9  Prefactor     14.726        14.757        .26074E-03   -1.5631    
  10  Prefactor     .88818E-09    8.5597        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.8765        3.1590        .76001E-03   -1.5681    
  12  norm          .55511E-10    3.4095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4158        2.2833        .90920E-03   -1.5684    
  14  Prefactor     .55511E-10    1.9169        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.6443        10.548        .34071E-03   -1.5649    
  16  norm          2.2452        2.0901        .68596E-03   -1.5678    
  17  Prefactor     .18173E-05    140.79        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .38969E-07    15.547        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.9584        7.0588        .41117E-03   -1.5659    
  20  Prefactor     .11102E-09    3.5696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.2172        2.4294        .43998E-03   -1.5662    
  22  norm          .72683        1.8304        .58799E-03   -1.5691    
  23  Prefactor     9.3844        35.753        .32425E-03   -1.5647    
  24  Prefactor     .44409E-09    5.8253        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .18430E-07    19.836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     32.221        36.690        .17613E-03   -1.5594    
  27  Prefactor     .53699        5.7055        .82432E-03   -1.5693    
  28  Normalizat    .92319        .16101        .45205E-01   -.95650    
  29  Prefactor     1.1544        .19682        .61239E-01   -.87748    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68528e-06
Minuit parameter uncertainties:
  1  29.4067
  2  3.12407
  3  134.589
  4  4.13682e-05
  5  64.7834
  6  2.39465
  7  17.798
  8  4.68693
  9  14.7575
  10  0.000175176
  11  3.15902
  12  2.36803e-05
  13  2.28325
  14  1.65989e-05
  15  10.5479
  16  2.09011
  17  0.0319919
  18  0.00155651
  19  7.05885
  20  3.85776e-05
  21  2.42944
  22  1.8304
  23  35.7537
  24  0.000100993
  25  0.00120867
  26  36.6906
  27  3.50072
  28  0.161097
  29  0.196946
Done.

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

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  8.644e+00  1.055e+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.154e+00  1.969e-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.232e-01  1.611e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.59
Ra Dec: 182.114 61.356
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 9.15e-09 +/- 1.12e-08
Energy Flux (Fixed Index): 5.33e-06 +/- 6.50e-06

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

Saving results to:
/scratch/kocevski/115678/likelihoodResults_683337601_683596801_4FGL_J1208.4+6121_daily_bin1713.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) = 6708.95265813
delta logL = 0.0690356794294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6708.88401323
delta logL = 0.137680571764

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.246       1.0000          .0000       .10000E+07
     2 'Index     '    1.6976       1.0000          .0000       10.000    
     3 'Normalizat'    .92589       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1522       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=   6708.884     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      244 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.248        21.143        .10250E-04   -.24468E-02
   2  Index         1.6974        .68968        .84648E-02   -.12697E-03
   3  Normalizat    .92598        .18315        .23585E-03    .19836E-03
   4  Prefactor     1.1521        .23305        .27104E-03    .20548E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.2483
  Index      = 1.69744
  Normalizat = 0.92598
  Prefactor  = 1.15212
 **********
 **   18 **HESSE 
 **********

 FCN=   6708.884     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.248        20.594        .20500E-05   -1.5630    
   2  Index         1.6974        .67222        .33859E-03   -.72150    
   3  Normalizat    .92598        .18333        .94339E-05   -.95553    
   4  Prefactor     1.1521        .23329        .54208E-04   -.87818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.18487e-10
Minuit parameter uncertainties:
  1  20.594
  2  0.675865
  3  0.183457
  4  0.233499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115678': 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) = 6708.88401309
delta logL = 0.137680716171

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.525e+01  2.059e+01  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  1.697e+00  6.759e-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.152e+00  2.335e-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.260e-01  1.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.87
Ra Dec: 182.114 61.356
Photon Index (Free Index): 1.70 +/- 0.68
Photon Flux (Free Index): 6.89e-09 +/- 9.47e-09
Energy Flux (Free Index): 1.13e-05 +/- 2.13e-05

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/115678/cmap_HighResolution_683337601_683596801_4FGL_J1208.4+6121_daily_bin1713.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.44e-03', comment='SUCCESS', photon_flux='9.15e-09', energy_flux2='1.13e-05', photon_flux_error='1.12e-08', dlogl='1.38e-01', energy_flux='5.33e-06', photon_flux2='6.89e-09', job_status='DONE', time_completed='2022-09-16 16:50:35.152121', photon_index_error2='0.68', photon_index2='1.70', ts='1.59', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='4.56e-08', energy_flux_error2='2.13e-05', EG='0.92', time_epoch_completed='1663372235.15', return_code='0', job_id='115678', GAL2='1.15', EG2='0.93', return_code2='0', energy_flux_error='6.50e-06', photon_flux_error2='9.47e-09', ts2='1.87', photon_index='2.07' WHERE bin_id='1713' AND source_name='4FGL J1208.4+6121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:50:35 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 115678: <4FGL_J1208.4+6121_daily_bin1713> in cluster <slac> Done

Job <4FGL_J1208.4+6121_daily_bin1713> 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) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:35:21 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:21 2022
Terminated at Fri Sep 16 16:50:36 2022
Results reported at Fri Sep 16 16:50:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.4+6121_daily_bin1713 182.114 61.3559 683337601 683596801 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 :                                   862.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            922 sec.

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

