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 17 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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).
nnumber of points = 7326
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J1208.4+6121_daily_bin1667
RA = 182.114, Dec = 61.3559
tmin = 671414401, tmax = 671673601
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='477499', job_status='RUN', time_executed='2022-04-15 03:20:42.692720', time_epoch_executed='1650018042.69' WHERE source_name='4FGL J1208.4+6121' and cadence='daily' and bin_id='1667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/477499

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/477499/ft1_4FGL_J1208.4+6121_daily_bin1667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/477499/ft2_4FGL_J1208.4+6121_daily_bin1667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/477499/ft1_4FGL_J1208.4+6121_daily_bin1667.fits outfile=/scratch/kocevski/477499/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin1667.fits ra=182.114 dec=61.3559 rad=12.0 tmin=671414401.0 tmax=671673601.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.56
user 3.30
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/477499/ft2_4FGL_J1208.4+6121_daily_bin1667.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/477499/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin1667.fits evtable="EVENTS" outfile="/scratch/kocevski/477499/ft1_filtered_4FGL_J1208.4+6121_daily_bin1667.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.51
user 0.35
sys 0.14

Number of photons that the gtmktime cut: 511

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/477499/ft1_filtered_4FGL_J1208.4+6121_daily_bin1667.fits" evtable="EVENTS" scfile=/scratch/kocevski/477499/ft2_4FGL_J1208.4+6121_daily_bin1667.fits sctable="SC_DATA" outfile=/scratch/kocevski/477499/ltcube_671414401_671673601_4FGL_J1208.4+6121_daily_bin1667.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/477499/ft2_4FGL_J1208.4+6121_daily_bin1667.fits
.....................!
real 14.16
user 13.72
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/477499/ft1_filtered_4FGL_J1208.4+6121_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/477499/ft2_4FGL_J1208.4+6121_daily_bin1667.fits sctable="SC_DATA" expcube=/scratch/kocevski/477499/ltcube_671414401_671673601_4FGL_J1208.4+6121_daily_bin1667.fits outfile=/scratch/kocevski/477499/expmap_671414401_671673601_4FGL_J1208.4+6121_daily_bin1667.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/477499/ltcube_671414401_671673601_4FGL_J1208.4+6121_daily_bin1667.fits
.....................!
real 193.00
user 187.09
sys 5.34

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/477499/ft1_filtered_4FGL_J1208.4+6121_daily_bin1667.fits scfile=/scratch/kocevski/477499/ft2_4FGL_J1208.4+6121_daily_bin1667.fits outfile=/scratch/kocevski/477499/cmap_671414401_671673601_4FGL_J1208.4+6121_daily_bin1667.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.55
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/477499/ft1_filtered_4FGL_J1208.4+6121_daily_bin1667.fits scfile=/scratch/kocevski/477499/ft2_4FGL_J1208.4+6121_daily_bin1667.fits outfile=/scratch/kocevski/477499/cmap_HighResolution_671414401_671673601_4FGL_J1208.4+6121_daily_bin1667.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.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/477499/ft1_filtered_4FGL_J1208.4+6121_daily_bin1667.fits', '/scratch/kocevski/477499/ft2_4FGL_J1208.4+6121_daily_bin1667.fits', expMap='/scratch/kocevski/477499/expmap_671414401_671673601_4FGL_J1208.4+6121_daily_bin1667.fits', expCube='/scratch/kocevski/477499/ltcube_671414401_671673601_4FGL_J1208.4+6121_daily_bin1667.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/477499/Model_4FGL_J1208.4+6121_daily_bin1667.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  1.000e-04  1.000e+04 ( 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/477499/ft1_filtered_4FGL_J1208.4+6121_daily_bin1667.fits
Spacecraft file(s): /scratch/kocevski/477499/ft2_4FGL_J1208.4+6121_daily_bin1667.fits
Exposure map: /scratch/kocevski/477499/expmap_671414401_671673601_4FGL_J1208.4+6121_daily_bin1667.fits
Exposure cube: /scratch/kocevski/477499/ltcube_671414401_671673601_4FGL_J1208.4+6121_daily_bin1667.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/477499/Model_4FGL_J1208.4+6121_daily_bin1667.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) = 5499.71395815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.135       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .52703       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.560       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.602       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0232       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.824       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.311       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    15.214       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3000       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .44413       1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.018       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.1624       1.0000         .10000E-03   10000.    
    21 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.0857       1.0000         .10000E-03   10000.    
    24 'norm      '    3.4353       1.0000         .10000E-03   10000.    
    25 'Prefactor '    79.395       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    13.864       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2539       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .49041       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.

 FCN=   5499.707     FROM MIGRAD    STATUS=CONVERGED    843 CALLS     4343 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.135        12.777        .33865E-07   -.12985E-05
   2  norm          .10000E-03    .68072        .42329E-08** at limit **
   3  Prefactor     .10001E-03    58.702        .62537E-05** at limit **
   4  norm          .52675        4.5143        .31807E-05   -.51298E-03
   5  Prefactor     .10000E-03    43.267       -.26871E-05** at limit **
   6  norm          .10000E-03    .75617       -.91177E-09** at limit **
   7  Prefactor     13.560        8.7620       -.16313E-05   -.54045E-03
   8  Prefactor     27.598        24.268       -.23239E-06   -.28236E-04
   9  Prefactor     2.0235        5.0033        .19178E-06   -.27469E-03
  10  Prefactor     21.822        20.839       -.10607E-07    .12739E-05
  11  Prefactor     10.311        12.305        .34959E-08   -.11784E-04
  12  Prefactor     .10000E-03    1.6671        .80710E-08** at limit **
  13  norm          15.213        13.161        .54944E-07   -.63445E-04
  14  norm          .10000E-03    3.3330        .98995E-08** at limit **
  15  Prefactor     5.2986        6.2766        .28950E-06    .66036E-04
  16  Prefactor     .10000E-03    15.001       -.29310E-07** at limit **
  17  norm          .44432        1.6634        .34699E-06   -.73001E-03
  18  Prefactor     31.017        23.963       -.57024E-07   -.17506E-05
  19  Prefactor     .10000E-03    79.048       -.42897E-05** at limit **
  20  norm          3.1624        4.1239        .40406E-07   -.23224E-03
  21  norm          .10000E-03    10.237        .16557E-07** at limit **
  22  Prefactor     .10000E-03    1.9654        .27783E-08** at limit **
  23  norm          2.0857        1.4418       -.76971E-08    .11813E-03
  24  norm          3.4353        2.4302        .13503E-07   -.52926E-04
  25  Prefactor     79.398        43.899        .48722E-06    .52518E-04
  26  Prefactor     .10000E-03    5.1941        .13315E-07** at limit **
  27  Prefactor     .10000E-03    24.985        .33395E-06** at limit **
  28  Prefactor     13.853        37.746       -.35158E-05   -.91892E-04
  29  Prefactor     .10000E-03    2.2237        .15518E-07** at limit **
  30  Prefactor     .10000E-03    4.6302        .81631E-08** at limit **
  31  Normalizat    1.2539        .17168       -.44367E-07   -.53649E-04
  32  Prefactor     .49036        .19694       -.31088E-06   -.30758E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1351
  norm       = 0.0001
  Prefactor  = 0.000100007
  norm       = 0.526747
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 13.5605
  Prefactor  = 27.5983
  Prefactor  = 2.02353
  Prefactor  = 21.8221
  Prefactor  = 10.311
  Prefactor  = 0.0001
  norm       = 15.213
  norm       = 0.0001
  Prefactor  = 5.29857
  Prefactor  = 0.0001
  norm       = 0.444323
  Prefactor  = 31.0165
  Prefactor  = 0.000100003
  norm       = 3.16241
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.0857
  norm       = 3.43527
  Prefactor  = 79.3978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8525
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.25393
  Prefactor  = 0.49036  **********
 **   18 **HESSE 
 **********

 FCN=   5499.707     FROM HESSE     STATUS=OK           655 CALLS     4998 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.135        12.750        .12006E-03   -1.5040    
   2  norm          .10000E-03    .68194        .59617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    60.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .52675        4.8586        .21894E-03   -1.5563    
   5  Prefactor     .10000E-03    43.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .76013        .62942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.560        8.7117        .10877E-03   -1.4971    
   8  Prefactor     27.598        24.294        .76254E-04   -1.4657    
   9  Prefactor     2.0235        4.9907        .24921E-03   -1.5423    
  10  Prefactor     21.822        20.830        .85740E-04   -1.4773    
  11  Prefactor     10.311        12.302        .12478E-03   -1.5066    
  12  Prefactor     .10000E-03    1.6858        .93489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.213        13.158        .51342E-03   -1.4928    
  14  norm          .10000E-03    3.3974        .13198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.2986        6.2673        .17458E-03   -1.5248    
  16  Prefactor     .10000E-03    15.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .44432        1.6631        .17730E-03   -1.5575    
  18  Prefactor     31.017        24.015        .71942E-04   -1.4594    
  19  Prefactor     .10000E-03    80.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.1624        4.1244        .16616E-03   -1.5352    
  21  norm          .10000E-03    10.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.9731        .10152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.0857        1.4517        .72132E-04   -1.5419    
  24  norm          3.4353        2.4312        .93959E-04   -1.5337    
  25  Prefactor     79.398        43.917        .45072E-04   -1.3923    
  26  Prefactor     .10000E-03    5.2300        .16503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    25.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     13.853        38.340        .10757E-03   -1.4963    
  29  Prefactor     .10000E-03    2.2597        .10794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    4.6488        .15583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2539        .19140        .19305E-03   -.84952    
  32  Prefactor     .49036        .21709        .35148E-03   -1.1242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01474e-09
Minuit parameter uncertainties:
  1  12.7531
  2  5.30002e-09
  3  0.0012714
  4  3.19958
  5  0.000462057
  6  5.38945e-07
  7  8.71254
  8  24.3024
  9  4.99168
  10  20.8373
  11  12.305
  12  5.29635e-07
  13  13.1604
  14  6.05747e-06
  15  6.26812
  16  1.91119e-05
  17  1.66324
  18  24.0228
  19  0.00103072
  20  4.12479
  21  2.70414e-06
  22  5.53016e-07
  23  1.45171
  24  2.4313
  25  43.9349
  26  1.93047e-06
  27  6.49927e-05
  28  38.4086
  29  1.35119e-06
  30  2.90039e-06
  31  0.191509
  32  0.217452DDone.

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

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  1.911e-05  1.000e-04  1.000e+04 ( 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:  4.904e-01  2.175e-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:  1.254e+00  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/477499/likelihoodResults_671414401_671673601_4FGL_J1208.4+6121_daily_bin1667.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5499.70739995
delta logL = -0.000316991312502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5499.70708294
delta logL = 1.48529579747e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1767       1.0000          .0000       10.000    
     3 'Normalizat'    1.2539       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49036       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.

 FCN=   5499.707     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      232 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    78.514        .90712E-02** at limit **
   2  Index         2.1801        5.7950        .50000       -.22074E-05
   3  Normalizat    1.2539        .90572E-02    .33686E-01   -.97639E-05
   4  Prefactor     .49036        .10787E-01    .79354E-01    .31306E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.18006
  Normalizat = 1.25393
  Prefactor  = 0.49036
 **********
 **   18 **HESSE 
 **********

 FCN=   5499.707     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    372.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1801        7.9624        .50000       -.59921    
   3  Normalizat    1.2539        .20223E-01    .19305E-03   -.84952    
   4  Prefactor     .49036        .24019E-01    .35148E-03   -1.1242    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.14859e-10
Minuit parameter uncertainties:
  1  1.06054e-05
  2  20.7023
  3  0.020223
  4  0.0240196
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/477499': 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): 102
logL (Free Index) = 5499.70708294
delta logL = 1.8419996195e-08

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  1.061e-05  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  2.180e+00  2.070e+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:  4.904e-01  2.402e-02  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:  1.254e+00  2.022e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/477499/cmap_HighResolution_671414401_671673601_4FGL_J1208.4+6121_daily_bin1667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.20e-03', job_status='DONE', photon_flux_upper_limit='5.56e-08', time_completed='2022-04-15 03:37:26.873240', job_id='477499', GAL2='0.49', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1650019046.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='1.84e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1667' AND source_name='4FGL J1208.4+6121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Apr 15 03:37:26 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 477498: <4FGL_J1208.4+6121_daily_bin1667> in cluster <slac> Done

Job <4FGL_J1208.4+6121_daily_bin1667> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Apr 15 00:07:05 2022
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:20:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:20:13 2022
Terminated at Fri Apr 15 03:37:03 2022
Results reported at Fri Apr 15 03:37:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.4+6121_daily_bin1667 182.114 61.3559 671414401 671673601 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 :                                   994.50 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             360.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1009 sec.
    Turnaround time :                            12598 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 477499: <4FGL_J1208.4+6121_daily_bin1667> in cluster <slac> Done

Job <4FGL_J1208.4+6121_daily_bin1667> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Apr 15 00:07:05 2022
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:20:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:20:18 2022
Terminated at Fri Apr 15 03:37:27 2022
Results reported at Fri Apr 15 03:37:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.4+6121_daily_bin1667 182.114 61.3559 671414401 671673601 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 :                                   1004.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             358.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1032 sec.
    Turnaround time :                            12622 sec.

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

