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


Performing analysis on: 4FGL_J1608.0+4949_daily_bin1753
RA = 242.014, Dec = 49.829
tmin = 693705601, tmax = 693964801
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='458886', job_status='RUN', time_executed='2022-12-29 01:14:16.388351', time_epoch_executed='1672305256.39' WHERE source_name='4FGL J1608.0+4949' and cadence='daily' and bin_id='1753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/458886

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/458886/ft1_4FGL_J1608.0+4949_daily_bin1753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/458886/ft2_4FGL_J1608.0+4949_daily_bin1753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/458886/ft1_4FGL_J1608.0+4949_daily_bin1753.fits outfile=/scratch/kocevski/458886/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin1753.fits ra=242.014 dec=49.829 rad=12.0 tmin=693705601.0 tmax=693964801.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.80
user 3.55
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/458886/ft2_4FGL_J1608.0+4949_daily_bin1753.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/458886/ft2_4FGL_J1608.0+4949_daily_bin1753.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/458886/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin1753.fits evtable="EVENTS" outfile="/scratch/kocevski/458886/ft1_filtered_4FGL_J1608.0+4949_daily_bin1753.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.44
user 0.26
sys 0.17

Number of photons that the gtmktime cut: 618

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/458886/ft1_filtered_4FGL_J1608.0+4949_daily_bin1753.fits" evtable="EVENTS" scfile=/scratch/kocevski/458886/ft2_4FGL_J1608.0+4949_daily_bin1753.fits sctable="SC_DATA" outfile=/scratch/kocevski/458886/ltcube_693705601_693964801_4FGL_J1608.0+4949_daily_bin1753.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/458886/ft2_4FGL_J1608.0+4949_daily_bin1753.fits
.....................!
real 11.98
user 11.60
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/458886/ft1_filtered_4FGL_J1608.0+4949_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/458886/ft2_4FGL_J1608.0+4949_daily_bin1753.fits sctable="SC_DATA" expcube=/scratch/kocevski/458886/ltcube_693705601_693964801_4FGL_J1608.0+4949_daily_bin1753.fits outfile=/scratch/kocevski/458886/expmap_693705601_693964801_4FGL_J1608.0+4949_daily_bin1753.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/458886/ltcube_693705601_693964801_4FGL_J1608.0+4949_daily_bin1753.fits
.....................!
real 156.87
user 152.00
sys 4.06

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 212 point sources and 0 extended sources

Setting source of interest to:
4FGL J1608.0+4949 @ 242.014 49.829

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/458886/ft1_filtered_4FGL_J1608.0+4949_daily_bin1753.fits scfile=/scratch/kocevski/458886/ft2_4FGL_J1608.0+4949_daily_bin1753.fits outfile=/scratch/kocevski/458886/cmap_693705601_693964801_4FGL_J1608.0+4949_daily_bin1753.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=242.014 yref=49.829 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.48
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/458886/ft1_filtered_4FGL_J1608.0+4949_daily_bin1753.fits scfile=/scratch/kocevski/458886/ft2_4FGL_J1608.0+4949_daily_bin1753.fits outfile=/scratch/kocevski/458886/cmap_HighResolution_693705601_693964801_4FGL_J1608.0+4949_daily_bin1753.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=242.014 yref=49.829 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.46
user 0.31
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/458886/ft1_filtered_4FGL_J1608.0+4949_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/458886/ft2_4FGL_J1608.0+4949_daily_bin1753.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/458886/Model_4FGL_J1608.0+4949_daily_bin1753.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/458886/ft1_filtered_4FGL_J1608.0+4949_daily_bin1753.fits.....................!
real 42.70
user 41.43
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/458886/ft1_filtered_4FGL_J1608.0+4949_daily_bin1753.fits', '/scratch/kocevski/458886/ft2_4FGL_J1608.0+4949_daily_bin1753.fits', expMap='/scratch/kocevski/458886/expmap_693705601_693964801_4FGL_J1608.0+4949_daily_bin1753.fits', expCube='/scratch/kocevski/458886/ltcube_693705601_693964801_4FGL_J1608.0+4949_daily_bin1753.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/458886/Model_4FGL_J1608.0+4949_daily_bin1753.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1608.0+4949'

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  4.577e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
309        Index:  2.267e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  1.615e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/458886/ft1_filtered_4FGL_J1608.0+4949_daily_bin1753.fits
Spacecraft file(s): /scratch/kocevski/458886/ft2_4FGL_J1608.0+4949_daily_bin1753.fits
Exposure map: /scratch/kocevski/458886/expmap_693705601_693964801_4FGL_J1608.0+4949_daily_bin1753.fits
Exposure cube: /scratch/kocevski/458886/ltcube_693705601_693964801_4FGL_J1608.0+4949_daily_bin1753.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/458886/Model_4FGL_J1608.0+4949_daily_bin1753.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) = 6626.20144949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7084       1.0000          .0000       .10000E+07
     2 'Prefactor '    .19406E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    4.6926       1.0000          .0000       .10000E+07
     4 'Prefactor '    .24266E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .66063E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.8745       1.0000          .0000       .10000E+07
     7 'Prefactor '    .46734E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    10.149       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.7032       1.0000          .0000       .10000E+07
    10 'Prefactor '    .23270E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .21478E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .73792E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    43.521       1.0000          .0000       .10000E+07
    14 'Prefactor '    .87926       1.0000          .0000       .10000E+07
    15 'Prefactor '    .28610E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .24287E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .63038E-06   1.0000          .0000       .10000E+07
    18 'norm      '    30.916       1.0000          .0000       .10000E+07
    19 'norm      '    .12658E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    4.1439       1.0000          .0000       .10000E+07
    21 'Prefactor '    16.569       1.0000          .0000       .10000E+07
    22 'norm      '    .75772E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    .12201E-06   1.0000          .0000       .10000E+07
    24 'Prefactor '    2.3416       1.0000          .0000       .10000E+07
    25 'Prefactor '    5.1685       1.0000          .0000       .10000E+07
    26 'Prefactor '    .48642E-03   1.0000          .0000       .10000E+07
    27 'Prefactor '    .46709E-01   1.0000          .0000       .10000E+07
    28 'norm      '    .20027       1.0000          .0000       .10000E+07
    29 'Prefactor '    .17845E-03   1.0000          .0000       .10000E+07
    30 'Normalizat'    .71025       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1744       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6626.173     FROM MIGRAD    STATUS=CONVERGED    213 CALLS     2991 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7083        1.4256        .10138E-06   -.47971E-02
   2  Prefactor     .78326E-07    2.9100       -.44658E-06** at limit **
   3  Prefactor     4.6761        5.7735        .10815E-06   -.19981E-03
   4  Prefactor     .87652E-07    2.5614        .84363E-06** at limit **
   5  norm          .55511E-10    2.3487       -.23623E-06** at limit **
   6  Prefactor     3.0552        9.5635       -.98627E-06    .11128E-01
   7  Prefactor     .22204E-09    6.5900       -.74251E-07** at limit **
   8  Prefactor     9.9241        12.636        .27698E-06   -.27340E-01
   9  Prefactor     4.6983        1.8410        .20622E-06    .77150E-03
  10  Prefactor     .14649E-06    2.5947       -.11178E-05** at limit **
  11  norm          .15021E-06    7.2600        .10361E-05** at limit **
  12  Prefactor     .79936E-08    9.5709        .19747E-05** at limit **
  13  Prefactor     42.682        23.305        .15738E-06    .73982E-01
  14  Prefactor     .89242        4.0328        .87239E-06    .53781E-01
  15  Prefactor     .10499E-05    85.007       -.43106E-05** at limit **
  16  Prefactor     .39839E-05    118.77       -.71049E-05** at limit **
  17  Prefactor     .55511E-10    1.4235       -.84831E-07** at limit **
  18  norm          30.891        14.257        .85071E-06   -.89915E-01
  19  norm          .28311E-08    2.8968        .13684E-06** at limit **
  20  Prefactor     4.1841        4.0697        .16385E-07   -.62459E-03
  21  Prefactor     16.580        6.7005        .14682E-06   -.16756E-02
  22  norm          .14705E-06    7.9248       -.30225E-05** at limit **
  23  Prefactor      .0000        .51951       -.76706E-07** at limit **
  24  Prefactor     2.3416        1.1980        .39573E-07   -.17746E-02
  25  Prefactor     5.1582        3.1570       -.29527E-07   -.13430E-02
  26  Prefactor     .17764E-08    2.1169        .98455E-07** at limit **
  27  Prefactor     .72164E-09    18.039        .15353E-06** at limit **
  28  norm          .20030        .56831        .78224E-08** at limit **
  29  Prefactor     .94869E-07    2.6127        .61628E-06** at limit **
  30  Normalizat    .71063        .19807       -.36974E-05   -.32286E-03
  31  Prefactor     1.1742        .20258       -.30333E-06   -.22600E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.70828
  Prefactor  = 7.83262e-08
  Prefactor  = 4.67607
  Prefactor  = 8.76521e-08
  norm       = 5.55112e-11
  Prefactor  = 3.05521
  Prefactor  = 2.22045e-10
  Prefactor  = 9.92406
  Prefactor  = 4.6983
  Prefactor  = 1.46494e-07
  norm       = 1.50213e-07
  Prefactor  = 7.99361e-09
  Prefactor  = 42.6824
  Prefactor  = 0.892415
  Prefactor  = 1.04994e-06
  Prefactor  = 3.98387e-06
  Prefactor  = 5.55112e-11
  norm       = 30.8911
  norm       = 2.83107e-09
  Prefactor  = 4.18405
  Prefactor  = 16.58
  norm       = 1.47049e-07
  Prefactor  = 0
  Prefactor  = 2.34162
  Prefactor  = 5.15821
  Prefactor  = 1.77636e-09
  Prefactor  = 7.21645e-10
  norm       = 0.200295
  Prefactor  = 9.48686e-08
  Normalizat = 0.710631
  Prefactor  = 1.17423
 **********
 **   18 **HESSE 
 **********

 FCN=   6626.173     FROM HESSE     STATUS=OK           700 CALLS     3691 TOTAL
                     EDM=   .87E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7083        1.4261        .80404E-03   -1.5682    
   2  Prefactor     .78326E-07    3.5680        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.6761        5.7897        .46430E-03   -1.5665    
   4  Prefactor     .87652E-07    2.9536        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .55511E-10    2.3589        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0552        12.120        .59926E-03   -1.5673    
   7  Prefactor     .22204E-09    6.5938        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.9241        17.806        .31428E-03   -1.5645    
   9  Prefactor     4.6983        14.636        .46377E-03   -1.5665    
  10  Prefactor     .14649E-06    3.0498        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .15021E-06    7.9435        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .79936E-08    10.593        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     42.682        59.485        .15160E-03   -1.5577    
  14  Prefactor     .89242        5.2463        .47205E-03   -1.5689    
  15  Prefactor     .10499E-05    91.455        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .39839E-05    4.3241        .51943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    1.4168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          30.891        20.620        .17988E-03   -1.5597    
  19  norm          .28311E-08    3.9322        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.1841        4.0986        .49491E-03   -1.5667    
  21  Prefactor     16.580        6.7101        .24579E-03   -1.5627    
  22  norm          .14705E-06    9.8148        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        .51704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.3416        1.1997        .66974E-03   -1.5677    
  25  Prefactor     5.1582        3.2221        .44196E-03   -1.5663    
  26  Prefactor     .17764E-08    3.7751        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .72164E-09    5.8230        .10255E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .20030        .58840        .11771E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .94869E-07    3.2844        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .71063        .16710        .61510E-01   -1.0347    
  31  Prefactor     1.1742        .16843        .51004E-01   -.87128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.73219e-07
Minuit parameter uncertainties:
  1  1.42612
  2  0.00105747
  3  5.78967
  4  0.00101759
  5  1.74318e-05
  6  12.12
  7  7.65864e-05
  8  17.8063
  9  14.6359
  10  0.0013369
  11  0.00218477
  12  0.000582512
  13  59.486
  14  4.32754
  15  0.0195986
  16  0.00830098
  17  1.46117e-05
  18  20.6201
  19  0.000211364
  20  4.09859
  21  6.71011
  22  0.00240282
  23  2.07828e-06
  24  1.19969
  25  3.22207
  26  0.000164665
  27  0.000127256
  28  0.588404
  29  0.00111628
  30  0.16722
  31  0.168506
Done.

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

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  4.268e+01  5.949e+01  0.000e+00  1.000e+06 ( 1.000e-14)
309        Index:  2.267e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  1.615e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  1.174e+00  1.685e-01  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  7.106e-01  1.672e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.73
Ra Dec: 242.014 49.829
Photon Flux Upper Limit: 7.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/458886/likelihoodResults_693705601_693964801_4FGL_J1608.0+4949_daily_bin1753.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) = 6626.09476597
delta logL = 0.0786602288854

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6626.0801333
delta logL = 0.0932929052442

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.872       1.0000          .0000       .10000E+07
     2 'Index     '    2.7675       1.0000          .0000       10.000    
     3 'Normalizat'    .70035       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1817       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6626.080     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      288 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.872        776.11        .22440E-03    .22678E-02
   2  Index         2.7677        3.6856        .13920        .12889E-03
   3  Normalizat    .69931        .52908E-01    .61970E-01   -.74698E-05
   4  Prefactor     1.1828        .50156E-01    .50843E-01   -.58475E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.8719
  Index      = 2.76772
  Normalizat = 0.699308
  Prefactor  = 1.18276
 **********
 **   18 **HESSE 
 **********

 FCN=   6626.080     FROM HESSE     STATUS=OK            31 CALLS      319 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.872        199.73        .89760E-05   -1.5619    
   2  Index         2.7677        2.7660        .73861E-02   -.46280    
   3  Normalizat    .69931        .19917        .27413E-03   -1.0392    
   4  Prefactor     1.1828        .20625        .22477E-03   -.86863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.3286e-08
Minuit parameter uncertainties:
  1  126.007
  2  2.98197
  3  0.199379
  4  0.206394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/458886': 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) = 6626.08011828
delta logL = 0.0933079216811

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.987e+01  1.260e+02  0.000e+00  1.000e+06 ( 1.000e-14)
309        Index:  2.768e+00  2.982e+00  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  1.615e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  1.183e+00  2.064e-01  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  6.993e-01  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.73
Ra Dec: 242.014 49.829

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/458886/cmap_HighResolution_693705601_693964801_4FGL_J1608.0+4949_daily_bin1753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.04e-03', job_status='DONE', photon_flux_upper_limit='7.89e-08', time_completed='2022-12-29 01:26:26.226169', job_id='458886', GAL2='1.18', fit_tolerance='1e-08', EG2='0.70', EG='0.71', time_epoch_completed='1672305986.23', return_code2='0', ts='0.73', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='9.33e-02', ts2='0.92', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1753' AND source_name='4FGL J1608.0+4949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 29 01:26:26 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 458886: <4FGL_J1608.0+4949_daily_bin1753> in cluster <slac> Done

Job <4FGL_J1608.0+4949_daily_bin1753> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Dec 29 01:10:23 2022
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 29 01:11:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 29 01:11:22 2022
Terminated at Thu Dec 29 01:26:27 2022
Results reported at Thu Dec 29 01:26:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.0+4949_daily_bin1753 242.014 49.829 693705601 693964801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1608.0+4949 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   729.47 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             296.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            964 sec.

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

