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 102 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).

number of points = 74112
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1608.0+4949_monthly_bin169
RA = 242.014, Dec = 49.829
tmin = 675043201, tmax = 677635201
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='177639', job_status='RUN', time_executed='2022-06-23 02:34:10.863129', time_epoch_executed='1655976850.86' WHERE source_name='4FGL J1608.0+4949' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/177639

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/177639/ft1_4FGL_J1608.0+4949_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/177639/ft2_4FGL_J1608.0+4949_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/177639/ft1_4FGL_J1608.0+4949_monthly_bin169.fits outfile=/scratch/kocevski/177639/ft1_filteredMKT_4FGL_J1608.0+4949_monthly_bin169.fits ra=242.014 dec=49.829 rad=12.0 tmin=675043201.0 tmax=677635201.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 28.04
user 27.02
sys 0.74

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

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

Number of photons that the gtmktime cut: 8976

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/177639/ft1_filtered_4FGL_J1608.0+4949_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/177639/ft2_4FGL_J1608.0+4949_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/177639/ltcube_675043201_677635201_4FGL_J1608.0+4949_monthly_bin169.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/177639/ft2_4FGL_J1608.0+4949_monthly_bin169.fits
.....................!
real 146.25
user 145.50
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/177639/ft1_filtered_4FGL_J1608.0+4949_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/177639/ft2_4FGL_J1608.0+4949_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/177639/ltcube_675043201_677635201_4FGL_J1608.0+4949_monthly_bin169.fits outfile=/scratch/kocevski/177639/expmap_675043201_677635201_4FGL_J1608.0+4949_monthly_bin169.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/177639/ltcube_675043201_677635201_4FGL_J1608.0+4949_monthly_bin169.fits
.....................!
real 194.36
user 188.86
sys 4.98

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/177639/ft1_filtered_4FGL_J1608.0+4949_monthly_bin169.fits scfile=/scratch/kocevski/177639/ft2_4FGL_J1608.0+4949_monthly_bin169.fits outfile=/scratch/kocevski/177639/cmap_675043201_677635201_4FGL_J1608.0+4949_monthly_bin169.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.81
user 0.64
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/177639/ft1_filtered_4FGL_J1608.0+4949_monthly_bin169.fits scfile=/scratch/kocevski/177639/ft2_4FGL_J1608.0+4949_monthly_bin169.fits outfile=/scratch/kocevski/177639/cmap_HighResolution_675043201_677635201_4FGL_J1608.0+4949_monthly_bin169.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.82
user 0.63
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/177639/ft1_filtered_4FGL_J1608.0+4949_monthly_bin169.fits', '/scratch/kocevski/177639/ft2_4FGL_J1608.0+4949_monthly_bin169.fits', expMap='/scratch/kocevski/177639/expmap_675043201_677635201_4FGL_J1608.0+4949_monthly_bin169.fits', expCube='/scratch/kocevski/177639/ltcube_675043201_677635201_4FGL_J1608.0+4949_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/177639/Model_4FGL_J1608.0+4949_monthly_bin169.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  1.000e-04  1.000e+04 ( 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/177639/ft1_filtered_4FGL_J1608.0+4949_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/177639/ft2_4FGL_J1608.0+4949_monthly_bin169.fits
Exposure map: /scratch/kocevski/177639/expmap_675043201_677635201_4FGL_J1608.0+4949_monthly_bin169.fits
Exposure cube: /scratch/kocevski/177639/ltcube_675043201_677635201_4FGL_J1608.0+4949_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/177639/Model_4FGL_J1608.0+4949_monthly_bin169.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) = 96942.7911628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24926E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.3711       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .44972       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4116       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.747       1.0000         .10000E-03   10000.    
     6 'norm      '    .79748E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6517       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13419E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8462       1.0000         .10000E-03   10000.    
    12 'norm      '    .39829       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .82698E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.9201       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11323E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.2598       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .21037E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    .71837       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .80989       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .79459       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.1195       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.5948       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.4522       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.4050       1.0000         .10000E-03   10000.    
    29 'norm      '    .71177E-01   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.6935       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .93388       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0735       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=   96942.68     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     3206 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7706       -.98755E-06** at limit **
   2  norm          2.3711        .41995       -.73806E-07   -.55102E-04
   3  Prefactor     .45537        1.0598       -.10067E-05    .13350E-03
   4  Prefactor     1.4125        .88385       -.10966E-06   -.32345E-04
   5  Prefactor     13.759        1.7991       -.41929E-06   -.13952E-02
   6  norm          .80536E-01    .36636       -.17803E-05   -.67435E-03
   7  Prefactor     .10000E-03    .43124       -.22884E-06** at limit **
   8  Prefactor     1.6466        1.0727        .41397E-06    .24251E-02
   9  Prefactor     .10000E-03    1.3445       -.17956E-05** at limit **
  10  Prefactor     .10000E-03    1.4548        .16864E-05** at limit **
  11  Prefactor     2.8489        1.5180        .40716E-06   -.15336E-02
  12  norm          .39790        1.3212       -.14517E-05    .40553E-04
  13  Prefactor     .75338E-01    .72883       -.35404E-05    .27674E-03
  14  Prefactor     8.9575        13.771       -.18938E-04   -.21093E-03
  15  Prefactor     .10000E-03    .50964       -.11452E-06** at limit **
  16  Prefactor     .10000E-03    12.946        .48608E-05** at limit **
  17  Prefactor     7.2590        1.3740        .97904E-06   -.46121E-02
  18  Prefactor     .10000E-03    .40857       -.13886E-06** at limit **
  19  norm          .75416E-01    38.779        .82250E-05   -.92646E-06
  20  norm          .71954        1.1332        .17680E-06    .13709E-03
  21  Prefactor     .81028        .64480        .15637E-06   -.22232E-03
  22  Prefactor     .79535        1.4571       -.25010E-05    .13066E-04
  23  norm          .10000E-03    1.8695        .56572E-06** at limit **
  24  Prefactor     2.1193        .49306       -.47758E-07    .73685E-03
  25  Prefactor     2.5946        .54954        .13761E-07    .29617E-03
  26  Prefactor     1.4519        .61549       -.16629E-06   -.83692E-04
  27  Prefactor     .10000E-03    .22801        .20528E-06** at limit **
  28  Prefactor     1.4045        1.3386       -.69481E-06   -.65945E-03
  29  norm          .71233E-01    .93010E-01   -.46728E-06    .63442E-03
  30  Prefactor     1.6936        1.1627        .43848E-06   -.12871E-02
  31  Normalizat    .93386        .54481E-01    .16802E-05   -.71698E-03
  32  Prefactor     1.0734        .54299E-01    .43160E-06   -.11572E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.37114
  Prefactor  = 0.455374
  Prefactor  = 1.41252
  Prefactor  = 13.7588
  norm       = 0.0805359
  Prefactor  = 0.0001
  Prefactor  = 1.64659
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.84888
  norm       = 0.397897
  Prefactor  = 0.0753376
  Prefactor  = 8.95748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.25896
  Prefactor  = 0.0001
  norm       = 0.0754156
  norm       = 0.719537
  Prefactor  = 0.810277
  Prefactor  = 0.79535
  norm       = 0.0001
  Prefactor  = 2.11928
  Prefactor  = 2.59459
  Prefactor  = 1.4519
  Prefactor  = 0.0001
  Prefactor  = 1.40449
  norm       = 0.0712334
  Prefactor  = 1.6936
  Normalizat = 0.933862
  Prefactor  = 1.07341
 **********
 **   18 **HESSE 
 **********

 FCN=   96942.68     FROM HESSE     STATUS=OK           801 CALLS     4007 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .99879        .10733       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3711        .42370        .66521E-02   -1.5400    
   3  Prefactor     .45537        .96362        .78611E-01   -1.5573    
   4  Prefactor     1.4125        .89754        .91148E-02   -1.5470    
   5  Prefactor     13.759        2.3084        .27007E-02   -1.4966    
   6  norm          .80536E-01    .21437        .36076E-01   -1.5651    
   7  Prefactor     .10000E-03    .42351        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6466        3.0718        .82122E-02   -1.5451    
   9  Prefactor     .10000E-03    .36290        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.4284        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.8489        1.5385        .60252E-02   -1.5370    
  12  norm          .39790        .65014        .77032E-01   -1.5582    
  13  Prefactor     .75338E-01    1.5553        .13263       -1.5653    
  14  Prefactor     8.9575        13.897        .33550E-02   -1.5109    
  15  Prefactor     .10000E-03    .26630        .52888E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.2212        .11012       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.2590        1.6342        .37217E-02   -1.5169    
  18  Prefactor     .10000E-03    .12382        .34625E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .75416E-01    .67708        .13718       -1.5653    
  20  norm          .71954        1.1360        .97248E-01   -1.5538    
  21  Prefactor     .81028        .66201        .12477E-01   -1.5528    
  22  Prefactor     .79535        .85174        .77655E-01   -1.5530    
  23  norm          .10000E-03    1.8613        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.1193        .48062        .70825E-02   -1.5417    
  25  Prefactor     2.5946        .53646        .63323E-02   -1.5386    
  26  Prefactor     1.4519        .63284        .89360E-02   -1.5467    
  27  Prefactor     .10000E-03    .11563        .36680E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.4045        1.3554        .91450E-02   -1.5471    
  29  norm          .71233E-01    .89271E-01    .19598E-01   -1.5655    
  30  Prefactor     1.6936        1.5406        .80851E-02   -1.5448    
  31  Normalizat    .93386        .48190E-01    .45333E-01   -.95280    
  32  Prefactor     1.0734        .45876E-01    .38694E-01   -.90321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40247e-05
Minuit parameter uncertainties:
  1  3.24339e-05
  2  0.423697
  3  0.963657
  4  0.89755
  5  2.30838
  6  0.214375
  7  2.87809e-06
  8  3.07208
  9  1.15779e-05
  10  3.44051e-05
  11  1.53848
  12  0.650148
  13  0.684171
  14  13.9017
  15  2.87212e-07
  16  2.17195e-05
  17  1.63423
  18  3.52132e-07
  19  0.451646
  20  1.13607
  21  0.662017
  22  0.851757
  23  1.44116e-05
  24  0.480621
  25  0.536464
  26  0.632839
  27  9.99145e-07
  28  1.35546
  29  0.0892715
  30  1.54059
  31  0.0481927
  32  0.0458776
Done.

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

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  8.957e+00  1.390e+01  1.000e-04  1.000e+04 ( 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.073e+00  4.588e-02  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:  9.339e-01  4.819e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/177639/likelihoodResults_675043201_677635201_4FGL_J1608.0+4949_monthly_bin169.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) = 96941.5912023
delta logL = 1.0916582338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 96940.3309382
delta logL = 2.35192231819

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1130       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5502       1.0000          .0000       10.000    
     3 'Normalizat'    .90724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0891       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=   96940.33     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      255 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1124        12.247        .57454E-02    .92609E-02
   2  Index         3.5504        1.1130        .12833        .21725E-02
   3  Normalizat    .90725        .10577E-01    .44994E-01    .22533E-03
   4  Prefactor     1.0891        .10599E-01    .38016E-01    .11004E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.11242
  Index      = 3.55036
  Normalizat = 0.907254
  Prefactor  = 1.08908
 **********
 **   18 **HESSE 
 **********

 FCN=   96940.33     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      288 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1124        31.345        .22981E-03   -1.5355    
   2  Index         3.5504        2.5663        .81129E-02   -.29415    
   3  Normalizat    .90725        .41880E-01    .25170E-03   -.96206    
   4  Prefactor     1.0891        .42021E-01    .23718E-03   -.89816    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.58165e-08
Minuit parameter uncertainties:
  1  19.7675
  2  2.70865
  3  0.0418812
  4  0.0420226
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/177639': 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) = 96940.330938
delta logL = 2.35192254365

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  3.112e+00  1.977e+01  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  3.550e+00  2.709e+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.089e+00  4.202e-02  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:  9.073e-01  4.188e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.73
Ra Dec: 242.014 49.829
Photon Index (Free Index): 3.55 +/- 2.71
Photon Flux (Free Index): 2.39e-08 +/- 1.11e-08
Energy Flux (Free Index): 3.92e-06 +/- 2.75e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/177639/cmap_HighResolution_675043201_677635201_4FGL_J1608.0+4949_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-03', comment='SUCCESS', energy_flux2='3.92e-06', dlogl='2.35e+00', photon_flux2='2.39e-08', job_status='DONE', time_completed='2022-06-23 05:31:19.854223', photon_index_error2='2.71', photon_index2='3.55', ts='0.50', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.59e-08', energy_flux_error2='2.75e-06', EG='0.93', time_epoch_completed='1655987479.85', return_code='0', job_id='177639', GAL2='1.09', EG2='0.91', return_code2='102', photon_flux_error2='1.11e-08', ts2='5.73', photon_index='2.27' WHERE bin_id='169' AND source_name='4FGL J1608.0+4949' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 05:31:19 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 177639: <4FGL_J1608.0+4949_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1608.0+4949_monthly_bin169> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jun 23 02:20:26 2022
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:32:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:32:19 2022
Terminated at Thu Jun 23 05:31:21 2022
Results reported at Thu Jun 23 05:31:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.0+4949_monthly_bin169 242.014 49.829 675043201 677635201 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 :                                   10597.00 sec.
    Max Memory :                                 788 MB
    Average Memory :                             450.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10741 sec.
    Turnaround time :                            11455 sec.

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

