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


Performing analysis on: 4FGL_J1608.0+4949_daily_bin1749
RA = 242.014, Dec = 49.829
tmin = 692668801, tmax = 692928001
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='956863', job_status='RUN', time_executed='2022-12-17 01:01:55.868828', time_epoch_executed='1671267715.87' WHERE source_name='4FGL J1608.0+4949' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/956863

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/956863/ft1_4FGL_J1608.0+4949_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/956863/ft2_4FGL_J1608.0+4949_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/956863/ft1_4FGL_J1608.0+4949_daily_bin1749.fits outfile=/scratch/kocevski/956863/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin1749.fits ra=242.014 dec=49.829 rad=12.0 tmin=692668801.0 tmax=692928001.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.67
user 3.44
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/956863/ft2_4FGL_J1608.0+4949_daily_bin1749.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/956863/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin1749.fits evtable="EVENTS" outfile="/scratch/kocevski/956863/ft1_filtered_4FGL_J1608.0+4949_daily_bin1749.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 578

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/956863/ft1_filtered_4FGL_J1608.0+4949_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/956863/ft2_4FGL_J1608.0+4949_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/956863/ltcube_692668801_692928001_4FGL_J1608.0+4949_daily_bin1749.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/956863/ft2_4FGL_J1608.0+4949_daily_bin1749.fits
.....................!
real 12.15
user 11.82
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/956863/ft1_filtered_4FGL_J1608.0+4949_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/956863/ft2_4FGL_J1608.0+4949_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/956863/ltcube_692668801_692928001_4FGL_J1608.0+4949_daily_bin1749.fits outfile=/scratch/kocevski/956863/expmap_692668801_692928001_4FGL_J1608.0+4949_daily_bin1749.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/956863/ltcube_692668801_692928001_4FGL_J1608.0+4949_daily_bin1749.fits
.....................!
real 190.92
user 184.71
sys 5.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 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/956863/ft1_filtered_4FGL_J1608.0+4949_daily_bin1749.fits scfile=/scratch/kocevski/956863/ft2_4FGL_J1608.0+4949_daily_bin1749.fits outfile=/scratch/kocevski/956863/cmap_692668801_692928001_4FGL_J1608.0+4949_daily_bin1749.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/956863/ft1_filtered_4FGL_J1608.0+4949_daily_bin1749.fits scfile=/scratch/kocevski/956863/ft2_4FGL_J1608.0+4949_daily_bin1749.fits outfile=/scratch/kocevski/956863/cmap_HighResolution_692668801_692928001_4FGL_J1608.0+4949_daily_bin1749.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.54
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/956863/ft1_filtered_4FGL_J1608.0+4949_daily_bin1749.fits', '/scratch/kocevski/956863/ft2_4FGL_J1608.0+4949_daily_bin1749.fits', expMap='/scratch/kocevski/956863/expmap_692668801_692928001_4FGL_J1608.0+4949_daily_bin1749.fits', expCube='/scratch/kocevski/956863/ltcube_692668801_692928001_4FGL_J1608.0+4949_daily_bin1749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/956863/Model_4FGL_J1608.0+4949_daily_bin1749.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/956863/ft1_filtered_4FGL_J1608.0+4949_daily_bin1749.fits
Spacecraft file(s): /scratch/kocevski/956863/ft2_4FGL_J1608.0+4949_daily_bin1749.fits
Exposure map: /scratch/kocevski/956863/expmap_692668801_692928001_4FGL_J1608.0+4949_daily_bin1749.fits
Exposure cube: /scratch/kocevski/956863/ltcube_692668801_692928001_4FGL_J1608.0+4949_daily_bin1749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/956863/Model_4FGL_J1608.0+4949_daily_bin1749.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) = 6275.84959842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2789       1.0000          .0000       .10000E+07
     2 'Prefactor '    .46716E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    7.4719       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.3714       1.0000          .0000       .10000E+07
     5 'norm      '    .10304E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .35756E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .17858E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    4.8734       1.0000          .0000       .10000E+07
     9 'Prefactor '    .29880E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .12576E-03   1.0000          .0000       .10000E+07
    11 'norm      '    8.7102       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.1733       1.0000          .0000       .10000E+07
    13 'Prefactor '    .45824E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .94441E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    6.0115       1.0000          .0000       .10000E+07
    16 'Prefactor '    7.0270       1.0000          .0000       .10000E+07
    17 'Prefactor '    .19203E-04   1.0000          .0000       .10000E+07
    18 'norm      '    .24484E-05   1.0000          .0000       .10000E+07
    19 'norm      '    .20647E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .19157E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    12.518       1.0000          .0000       .10000E+07
    22 'norm      '    .76843E-01   1.0000          .0000       .10000E+07
    23 'Prefactor '    .22204E-08   1.0000          .0000       .10000E+07
    24 'Prefactor '    .74984       1.0000          .0000       .10000E+07
    25 'Prefactor '    5.8757       1.0000          .0000       .10000E+07
    26 'Prefactor '    4.0311       1.0000          .0000       .10000E+07
    27 'Prefactor '    9.4311       1.0000          .0000       .10000E+07
    28 'norm      '    .28311E-08   1.0000          .0000       .10000E+07
    29 'Prefactor '    1.7350       1.0000          .0000       .10000E+07
    30 'Normalizat'    .79987       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0031       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=   6275.798     FROM MIGRAD    STATUS=CONVERGED    190 CALLS     2370 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2792        1.4802       -.10167E-07   -.35513E-02
   2  Prefactor     .33307E-09    3.7137       -.56155E-07** at limit **
   3  Prefactor     7.4633        4.4938        .24501E-07   -.11878E-01
   4  Prefactor     3.3710        6.0178        .91570E-07   -.27162E-02
   5  norm           .0000        3.1576       -.27378E-07** at limit **
   6  Prefactor     .56455E-07    3.5166        .30510E-07** at limit **
   7  Prefactor     .61062E-09    25.857       -.70306E-07** at limit **
   8  Prefactor     4.8530        3.8724        .10586E-07    .83206E-02
   9  Prefactor     .52236E-07    5.5456        .11232E-07** at limit **
  10  Prefactor     .38858E-09    2.4631       -.10539E-06** at limit **
  11  norm          8.7161        6.6311        .77872E-08    .18829E-01
  12  Prefactor     1.1274        2.7888       -.26270E-07    .18730E-02
  13  Prefactor     .37192E-08    82.658        .32254E-06** at limit **
  14  Prefactor     .12873E-06    2.6567       -.52233E-08** at limit **
  15  Prefactor     6.0503        18.242        .59019E-07   -.50399E-02
  16  Prefactor     7.0314        2.5109       -.15326E-07   -.35696E-01
  17  Prefactor      .0000        1.2649        .26285E-08** at limit **
  18  norm          .11102E-09    4.1297       -.59942E-07** at limit **
  19  norm          .70666E-07    4.5783        .55105E-07** at limit **
  20  Prefactor      .0000        1.2656       -.16202E-07** at limit **
  21  Prefactor     12.516        6.0855       -.80453E-08   -.39331E-01
  22  norm          .51070E-08    .83930       -.14388E-07** at limit **
  23  Prefactor     .55511E-10    .52090       -.55999E-07** at limit **
  24  Prefactor     .75026        .89198        .40035E-08    .55393E-03
  25  Prefactor     5.8732        3.4117        .12641E-07    .24540E-03
  26  Prefactor     4.0300        2.7320        .96812E-08   -.10450E-02
  27  Prefactor     9.4304        1.4586        .67291E-08   -.12426E-01
  28  norm          .33307E-09    2.5519        .26422E-07** at limit **
  29  Prefactor     1.7766        6.4632        .43489E-07    .16063E-01
  30  Normalizat    .79978        .20056       -.36837E-07   -.22626E-03
  31  Prefactor     1.0032        .19787       -.12954E-05   -.30703E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.27918
  Prefactor  = 3.33067e-10
  Prefactor  = 7.46327
  Prefactor  = 3.37099
  norm       = 0
  Prefactor  = 5.64548e-08
  Prefactor  = 6.10623e-10
  Prefactor  = 4.85297
  Prefactor  = 5.2236e-08
  Prefactor  = 3.88578e-10
  norm       = 8.71608
  Prefactor  = 1.12738
  Prefactor  = 3.71925e-09
  Prefactor  = 1.2873e-07
  Prefactor  = 6.05031
  Prefactor  = 7.03142
  Prefactor  = 0
  norm       = 1.11022e-10
  norm       = 7.06657e-08
  Prefactor  = 0
  Prefactor  = 12.516
  norm       = 5.10703e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 0.750264
  Prefactor  = 5.87317
  Prefactor  = 4.03002
  Prefactor  = 9.43036
  norm       = 3.33067e-10
  Prefactor  = 1.77659
  Normalizat = 0.799781
  Prefactor  = 1.00319
 **********
 **   18 **HESSE 
 **********

 FCN=   6275.798     FROM HESSE     STATUS=OK           690 CALLS     3060 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2792        1.4837        .67989E-03   -1.5678    
   2  Prefactor     .33307E-09    8.0285        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.4633        8.1702        .36666E-03   -1.5653    
   4  Prefactor     3.3710        6.1582        .55086E-03   -1.5671    
   5  norm           .0000        3.1339        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .56455E-07    4.4056        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .61062E-09    25.968        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8530        10.611        .45541E-03   -1.5664    
   9  Prefactor     .52236E-07    6.2332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .38858E-09    2.4721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.7161        6.9131        .33940E-03   -1.5649    
  12  Prefactor     1.1274        129.52        .10579E-02   -1.5687    
  13  Prefactor     .37192E-08    82.617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .12873E-06    4.6364        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.0503        18.515        .40929E-03   -1.5659    
  16  Prefactor     7.0314        6.7655        .37820E-03   -1.5655    
  17  Prefactor      .0000        1.2626        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .11102E-09    7.9804        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .70666E-07    5.4892        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        1.2634        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.516        7.2772        .28287E-03   -1.5637    
  22  norm          .51070E-08    93.400        .14599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .55511E-10    .51855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .75026        .90363        .56751E-03   -1.5691    
  25  Prefactor     5.8732        3.5004        .41406E-03   -1.5659    
  26  Prefactor     4.0300        2.7524        .50200E-03   -1.5668    
  27  Prefactor     9.4304        8.1651        .32609E-03   -1.5647    
  28  norm          .33307E-09    .43456        .28507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.7766        8.3022        .79647E-03   -1.5681    
  30  Normalizat    .79978        .18086        .43609E-01   -1.0008    
  31  Prefactor     1.0032        .16861        .44630E-01   -.92623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89816e-07
Minuit parameter uncertainties:
  1  1.48374
  2  0.000105086
  3  8.17024
  4  6.15826
  5  1.71035e-05
  6  0.000997367
  7  0.00024939
  8  10.611
  9  0.00114103
  10  6.04524e-05
  11  6.91311
  12  24.168
  13  0.00111051
  14  0.00154499
  15  18.5151
  16  6.76546
  17  1.8108e-06
  18  5.93239e-05
  19  0.00124565
  20  4.66555e-06
  21  7.27718
  22  0.00137829
  23  9.90899e-06
  24  0.90363
  25  3.50045
  26  2.75238
  27  8.1651
  28  2.44677e-05
  29  7.68107
  30  0.180994
  31  0.168696
Done.

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

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  3.719e-09  1.111e-03  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.003e+00  1.687e-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.998e-01  1.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/956863/likelihoodResults_692668801_692928001_4FGL_J1608.0+4949_daily_bin1749.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) = 6275.80375396
delta logL = -0.00590335142806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6275.79195433
delta logL = 0.00589627641784

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .71754       1.0000          .0000       .10000E+07
     2 'Index     '    3.4028       1.0000          .0000       10.000    
     3 'Normalizat'    .79538       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0053       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=   6275.792     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      230 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71754        41.489        .59295E-03   -.55713E-02
   2  Index         3.4028        .34091        .50000       -.12161E-03
   3  Normalizat    .79537        .67383E-02    .43550E-01    .43545E-05
   4  Prefactor     1.0053        .69511E-02    .44134E-01    .20506E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.717544
  Index      = 3.40278
  Normalizat = 0.795374
  Prefactor  = 1.00528
 **********
 **   18 **HESSE 
 **********

 FCN=   6275.792     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71754        58.190        .23718E-04   -1.5691    
   2  Index         3.4028        6.6747        .32601E-02   -.32514    
   3  Normalizat    .79537        .19394        .25314E-03   -1.0024    
   4  Prefactor     1.0053        .19665        .23349E-03   -.92554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.19233e-09
Minuit parameter uncertainties:
  1  12.9236
  2  6.59433
  3  0.194104
  4  0.196791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/956863': 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) = 6275.79195433
delta logL = 0.00589627713543

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  7.175e-01  1.292e+01  0.000e+00  1.000e+06 ( 1.000e-14)
309        Index:  3.403e+00  6.594e+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.005e+00  1.968e-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.954e-01  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 242.014 49.829

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/956863/cmap_HighResolution_692668801_692928001_4FGL_J1608.0+4949_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.27e-03', job_status='DONE', photon_flux_upper_limit='5.58e-08', time_completed='2022-12-17 01:14:47.390942', job_id='956863', GAL2='1.01', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1671268487.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='5.90e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1749' AND source_name='4FGL J1608.0+4949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 01:14:47 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 956863: <4FGL_J1608.0+4949_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1608.0+4949_daily_bin1749> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Dec 17 01:00:23 2022
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 01:00:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 01:00:24 2022
Terminated at Sat Dec 17 01:14:48 2022
Results reported at Sat Dec 17 01:14:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.0+4949_daily_bin1749 242.014 49.829 692668801 692928001 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 :                                   774.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            865 sec.

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

