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


Performing analysis on: 4FGL_J1208.4+6121_daily_bin1716
RA = 182.114, Dec = 61.3559
tmin = 684115201, tmax = 684374401
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='115682', job_status='RUN', time_executed='2022-09-16 16:36:41.177376', time_epoch_executed='1663371401.18' WHERE source_name='4FGL J1208.4+6121' and cadence='daily' and bin_id='1716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115682

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115682/ft1_4FGL_J1208.4+6121_daily_bin1716.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115682/ft2_4FGL_J1208.4+6121_daily_bin1716.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115682/ft1_4FGL_J1208.4+6121_daily_bin1716.fits outfile=/scratch/kocevski/115682/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin1716.fits ra=182.114 dec=61.3559 rad=12.0 tmin=684115201.0 tmax=684374401.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.10
user 3.85
sys 0.23

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

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

Number of photons that the gtmktime cut: 589

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/115682/ft1_filtered_4FGL_J1208.4+6121_daily_bin1716.fits" evtable="EVENTS" scfile=/scratch/kocevski/115682/ft2_4FGL_J1208.4+6121_daily_bin1716.fits sctable="SC_DATA" outfile=/scratch/kocevski/115682/ltcube_684115201_684374401_4FGL_J1208.4+6121_daily_bin1716.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/115682/ft2_4FGL_J1208.4+6121_daily_bin1716.fits
.....................!
real 13.07
user 12.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115682/ft1_filtered_4FGL_J1208.4+6121_daily_bin1716.fits evtable="EVENTS" scfile=/scratch/kocevski/115682/ft2_4FGL_J1208.4+6121_daily_bin1716.fits sctable="SC_DATA" expcube=/scratch/kocevski/115682/ltcube_684115201_684374401_4FGL_J1208.4+6121_daily_bin1716.fits outfile=/scratch/kocevski/115682/expmap_684115201_684374401_4FGL_J1208.4+6121_daily_bin1716.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/115682/ltcube_684115201_684374401_4FGL_J1208.4+6121_daily_bin1716.fits
.....................!
real 191.30
user 186.02
sys 4.90

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/115682/ft1_filtered_4FGL_J1208.4+6121_daily_bin1716.fits scfile=/scratch/kocevski/115682/ft2_4FGL_J1208.4+6121_daily_bin1716.fits outfile=/scratch/kocevski/115682/cmap_684115201_684374401_4FGL_J1208.4+6121_daily_bin1716.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/115682/ft1_filtered_4FGL_J1208.4+6121_daily_bin1716.fits scfile=/scratch/kocevski/115682/ft2_4FGL_J1208.4+6121_daily_bin1716.fits outfile=/scratch/kocevski/115682/cmap_HighResolution_684115201_684374401_4FGL_J1208.4+6121_daily_bin1716.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.61
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83822E-08   1.0000          .0000       .10000E+07
     2 'norm      '    1.4243       1.0000          .0000       .10000E+07
     3 'Prefactor '    17.401       1.0000          .0000       .10000E+07
     4 'norm      '    .73697E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    232.92       1.0000          .0000       .10000E+07
     6 'norm      '    .89473E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .25724E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .17244E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    33.850       1.0000          .0000       .10000E+07
    10 'Prefactor '    .46722E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .71824E-04   1.0000          .0000       .10000E+07
    12 'norm      '    13.728       1.0000          .0000       .10000E+07
    13 'norm      '    .16204E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .37748E-08   1.0000          .0000       .10000E+07
    15 'Prefactor '    7.4617       1.0000          .0000       .10000E+07
    16 'norm      '    3.3499       1.0000          .0000       .10000E+07
    17 'Prefactor '    .24770       1.0000          .0000       .10000E+07
    18 'norm      '    .37429E-04   1.0000          .0000       .10000E+07
    19 'norm      '    5.1015       1.0000          .0000       .10000E+07
    20 'Prefactor '    .33916E-05   1.0000          .0000       .10000E+07
    21 'norm      '    3.7348       1.0000          .0000       .10000E+07
    22 'norm      '    2.1509       1.0000          .0000       .10000E+07
    23 'Prefactor '    .82482E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    .13980E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    .20751E-03   1.0000          .0000       .10000E+07
    26 'Prefactor '    .22204E-04   1.0000          .0000       .10000E+07
    27 'Prefactor '    2.0464       1.0000          .0000       .10000E+07
    28 'Normalizat'    .88191       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0985       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=   6371.835     FROM MIGRAD    STATUS=CONVERGED    205 CALLS     2191 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29360E-06    6.8292       -.20945E-06** at limit **
   2  norm          1.4238        1.4068       -.12604E-06    .21582E-02
   3  Prefactor     21.149        34.660        .71810E-07    .56677E-01
   4  norm           .0000        2.8957        .34646E-06** at limit **
   5  Prefactor     217.31        134.66       -.12534E-06    .46720E-01
   6  norm           .0000        7.5790        .88949E-07** at limit **
   7  Prefactor     .83267E-09    16.351       -.48195E-06** at limit **
   8  Prefactor     .16653E-09    3.9644       -.23827E-07** at limit **
   9  Prefactor     33.740        1.1185        .25324E-08   -.59999E-03
  10  Prefactor     .94369E-09    7.6113        .58491E-06** at limit **
  11  Prefactor      .0000        1.2443       -.59576E-07** at limit **
  12  norm          13.718        11.326        .10323E-06    .88985E-02
  13  norm           .0000        1.9738       -.18569E-06** at limit **
  14  Prefactor     .49960E-09    6.1343       -.33028E-07** at limit **
  15  Prefactor     7.2361        4.0917        .56720E-07   -.40640E-02
  16  norm          3.3447        2.2028        .24906E-07   -.30198E-03
  17  Prefactor     .11102E-07    5.3420        .56965E-08** at limit **
  18  norm           .0000        1.1789       -.57874E-07** at limit **
  19  norm          5.1010        8.4917       -.60218E-06    .12654E-02
  20  Prefactor     .45863E-06    5.2901       -.16973E-06** at limit **
  21  norm          3.7324        2.1131        .12208E-07   -.39966E-03
  22  norm          2.1482        1.8839       -.12870E-06    .16502E-02
  23  Prefactor     .49405E-08    20.364        .10842E-07** at limit **
  24  Prefactor     .83267E-09    10.651        .36811E-07** at limit **
  25  Prefactor      .0000        30.150        .36126E-06** at limit **
  26  Prefactor     .16653E-09    26.017       -.18721E-06** at limit **
  27  Prefactor     2.0467        3.9071       -.71923E-07    .27459E-03
  28  Normalizat    .88341        .17454        .68946E-05   -.28404E-05
  29  Prefactor     1.0982        .21983       -.78153E-05    .26900E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.93598e-07
  norm       = 1.42381
  Prefactor  = 21.1487
  norm       = 0
  Prefactor  = 217.309
  norm       = 0
  Prefactor  = 8.32667e-10
  Prefactor  = 1.66533e-10
  Prefactor  = 33.7402
  Prefactor  = 9.4369e-10
  Prefactor  = 0
  norm       = 13.7179
  norm       = 0
  Prefactor  = 4.996e-10
  Prefactor  = 7.23613
  norm       = 3.34466
  Prefactor  = 1.11022e-08
  norm       = 0
  norm       = 5.10098
  Prefactor  = 4.58633e-07
  norm       = 3.73245
  norm       = 2.14823
  Prefactor  = 4.94049e-09
  Prefactor  = 8.32667e-10
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  Prefactor  = 2.04672
  Normalizat = 0.88341
  Prefactor  = 1.0982
 **********
 **   18 **HESSE 
 **********

 FCN=   6371.835     FROM HESSE     STATUS=OK           611 CALLS     2802 TOTAL
                     EDM=   .36E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29360E-06    11.379        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4238        1.4132        .90561E-03   -1.5684    
   3  Prefactor     21.149        254.60        .23983E-03   -1.5616    
   4  norm           .0000        2.8079        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     217.31        142.58        .65531E-04   -1.5413    
   6  norm           .0000        1.1133        .32254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .83267E-09    16.455        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .16653E-09    3.9673        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.740        23.864        .17190E-03   -1.5592    
  10  Prefactor     .94369E-09    7.6290        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        1.2398        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.718        11.368        .27008E-03   -1.5634    
  13  norm           .0000        1.9624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .49960E-09    6.0896        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.2361        15.777        .36691E-03   -1.5654    
  16  norm          3.3447        2.2061        .55270E-03   -1.5671    
  17  Prefactor     .11102E-07    9.6551        .10982E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        1.1763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.1010        8.5166        .44490E-03   -1.5663    
  20  Prefactor     .45863E-06    12.274        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.7324        2.1166        .52224E-03   -1.5669    
  22  norm          2.1482        1.8894        .70227E-03   -1.5679    
  23  Prefactor     .49405E-08    21.468        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .83267E-09    11.050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor      .0000        30.274        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .16653E-09    26.313        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.0467        3.9302        .72245E-03   -1.5679    
  28  Normalizat    .88341        .14865        .44670E-01   -.97046    
  29  Prefactor     1.0982        .18554        .58649E-01   -.89524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57655e-06
Minuit parameter uncertainties:
  1  0.00365564
  2  1.41319
  3  146.765
  4  4.85565e-06
  5  142.585
  6  8.86345e-06
  7  0.000231552
  8  4.83565e-05
  9  23.8638
  10  0.000167226
  11  1.2122e-06
  12  11.3677
  13  1.33791e-05
  14  0.000109136
  15  15.777
  16  2.20605
  17  0.000655007
  18  1.3847e-06
  19  8.51662
  20  0.0047454
  21  2.11661
  22  1.8894
  23  0.000650976
  24  0.000189555
  25  2.47993e-05
  26  0.000122697
  27  3.93019
  28  0.148718
  29  0.185645
Done.

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

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  7.236e+00  1.578e+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.098e+00  1.856e-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.834e-01  1.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/115682/likelihoodResults_684115201_684374401_4FGL_J1208.4+6121_daily_bin1716.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) = 6371.82367098
delta logL = 0.0118279093849

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6371.81730744
delta logL = 0.0181914528521

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3814       1.0000          .0000       .10000E+07
     2 'Index     '    2.2841       1.0000          .0000       10.000    
     3 'Normalizat'    .88130       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0994       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6371.817     FROM MIGRAD    STATUS=FAILED        87 CALLS      244 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3745        20.023        .17319E-04    .72800E-03
   2  Index         2.2841        1.4271        .10639E-01    .48256E-03
   3  Normalizat    .88116        .17168        .22532E-03   -.15973E-02
   4  Prefactor     1.0995        .21858        .25922E-03   -.16170E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6371.817     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      324 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3745        20.023        .32399E-04   -1.5662    
   2  Index         2.2841        1.4271        .10987E-02   -.57421    
   3  Normalizat    .88116        .17168        .21277E-03   -.97125    
   4  Prefactor     1.0995        .21858        .34538E-03   -.89484    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6371.817     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      352 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3743        16.183        .69274E-06   -.23139E-03
   2  Index         2.2841        1.1624        .21278E-02    .11113E-04
   3  Normalizat    .88116        .17152        .45064E-04   -.22201E-05
   4  Prefactor     1.0995        .21846        .51845E-04   -.17981E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.37427
  Index      = 2.28413
  Normalizat = 0.881158
  Prefactor  = 1.09947
 **********
 **   18 **HESSE 
 **********

 FCN=   6371.817     FROM HESSE     STATUS=OK            25 CALLS      377 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3743        15.655        .37340E-06   -1.5662    
   2  Index         2.2841        1.1251        .85111E-04   -.57421    
   3  Normalizat    .88116        .17150        .90127E-05   -.97125    
   4  Prefactor     1.0995        .21844        .10369E-04   -.89483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64887e-11
Minuit parameter uncertainties:
  1  15.6546
  2  1.13906
  3  0.171602
  4  0.218617
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115682': 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) = 6371.81730643
delta logL = 0.018192463288

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  5.374e+00  1.565e+01  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.284e+00  1.139e+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.099e+00  2.186e-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.812e-01  1.716e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
Ra Dec: 182.114 61.356

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/115682/cmap_HighResolution_684115201_684374401_4FGL_J1208.4+6121_daily_bin1716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-03', job_status='DONE', photon_flux_upper_limit='5.41e-08', time_completed='2022-09-16 16:49:51.670755', job_id='115682', GAL2='1.10', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1663372191.67', return_code2='0', ts='0.27', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.82e-02', ts2='0.31', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1716' AND source_name='4FGL J1208.4+6121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:49:51 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 115682: <4FGL_J1208.4+6121_daily_bin1716> in cluster <slac> Done

Job <4FGL_J1208.4+6121_daily_bin1716> 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) <bullet0197>, 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:49:52 2022
Results reported at Fri Sep 16 16:49:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.4+6121_daily_bin1716 182.114 61.3559 684115201 684374401 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 :                                   792.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            878 sec.

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

