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


Performing analysis on: 4FGL_J1608.7+1029_daily_bin1718
RA = 242.176, Dec = 10.4938
tmin = 684633601, tmax = 684892801
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='165537', job_status='RUN', time_executed='2022-09-16 19:24:44.569698', time_epoch_executed='1663381484.57' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/165537

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/165537/ft1_4FGL_J1608.7+1029_daily_bin1718.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/165537/ft2_4FGL_J1608.7+1029_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/165537/ft1_4FGL_J1608.7+1029_daily_bin1718.fits outfile=/scratch/kocevski/165537/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1718.fits ra=242.176 dec=10.4938 rad=12.0 tmin=684633601.0 tmax=684892801.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.27
user 2.98
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/165537/ft2_4FGL_J1608.7+1029_daily_bin1718.fits

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

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

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

Number of photons that the gtmktime cut: 1070

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/165537/ft1_filtered_4FGL_J1608.7+1029_daily_bin1718.fits" evtable="EVENTS" scfile=/scratch/kocevski/165537/ft2_4FGL_J1608.7+1029_daily_bin1718.fits sctable="SC_DATA" outfile=/scratch/kocevski/165537/ltcube_684633601_684892801_4FGL_J1608.7+1029_daily_bin1718.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/165537/ft2_4FGL_J1608.7+1029_daily_bin1718.fits
.....................!
real 14.46
user 13.95
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/165537/ft1_filtered_4FGL_J1608.7+1029_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/165537/ft2_4FGL_J1608.7+1029_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/165537/ltcube_684633601_684892801_4FGL_J1608.7+1029_daily_bin1718.fits outfile=/scratch/kocevski/165537/expmap_684633601_684892801_4FGL_J1608.7+1029_daily_bin1718.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/165537/ltcube_684633601_684892801_4FGL_J1608.7+1029_daily_bin1718.fits
.....................!
real 192.73
user 185.61
sys 6.18

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

Setting source of interest to:
4FGL J1608.7+1029 @ 242.176 10.4938

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/165537/ft1_filtered_4FGL_J1608.7+1029_daily_bin1718.fits scfile=/scratch/kocevski/165537/ft2_4FGL_J1608.7+1029_daily_bin1718.fits outfile=/scratch/kocevski/165537/cmap_684633601_684892801_4FGL_J1608.7+1029_daily_bin1718.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.176 yref=10.4938 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.60
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/165537/ft1_filtered_4FGL_J1608.7+1029_daily_bin1718.fits scfile=/scratch/kocevski/165537/ft2_4FGL_J1608.7+1029_daily_bin1718.fits outfile=/scratch/kocevski/165537/cmap_HighResolution_684633601_684892801_4FGL_J1608.7+1029_daily_bin1718.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.176 yref=10.4938 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.58
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/165537/ft1_filtered_4FGL_J1608.7+1029_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/165537/ft2_4FGL_J1608.7+1029_daily_bin1718.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/165537/Model_4FGL_J1608.7+1029_daily_bin1718.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/165537/ft1_filtered_4FGL_J1608.7+1029_daily_bin1718.fits.....................!
real 85.90
user 83.21
sys 1.51

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/165537/ft1_filtered_4FGL_J1608.7+1029_daily_bin1718.fits', '/scratch/kocevski/165537/ft2_4FGL_J1608.7+1029_daily_bin1718.fits', expMap='/scratch/kocevski/165537/expmap_684633601_684892801_4FGL_J1608.7+1029_daily_bin1718.fits', expCube='/scratch/kocevski/165537/ltcube_684633601_684892801_4FGL_J1608.7+1029_daily_bin1718.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/165537/Model_4FGL_J1608.7+1029_daily_bin1718.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1608.7+1029'

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  8.130e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
262        alpha:  2.458e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  1.591e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  5.195e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/165537/ft1_filtered_4FGL_J1608.7+1029_daily_bin1718.fits
Spacecraft file(s): /scratch/kocevski/165537/ft2_4FGL_J1608.7+1029_daily_bin1718.fits
Exposure map: /scratch/kocevski/165537/expmap_684633601_684892801_4FGL_J1608.7+1029_daily_bin1718.fits
Exposure cube: /scratch/kocevski/165537/ltcube_684633601_684892801_4FGL_J1608.7+1029_daily_bin1718.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/165537/Model_4FGL_J1608.7+1029_daily_bin1718.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) = 11502.2560225

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.486       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.0645       1.0000          .0000       .10000E+07
     3 'norm      '    10.378       1.0000          .0000       .10000E+07
     4 'Prefactor '    .32798       1.0000          .0000       .10000E+07
     5 'norm      '    .77716E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    46.592       1.0000          .0000       .10000E+07
     7 'norm      '    4.0469       1.0000          .0000       .10000E+07
     8 'norm      '    3.5671       1.0000          .0000       .10000E+07
     9 'norm      '    16.506       1.0000          .0000       .10000E+07
    10 'Prefactor '    .78560E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .18742E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .29705E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .69511E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .43738E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .49077E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    5.0579       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2805       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .97220       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11502.20     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     1351 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.189        30.186       -.14215E-06    .31003E-03
   2  Prefactor     2.0697        18.520       -.95352E-08   -.52773E-02
   3  norm          10.374        3.3280       -.54921E-07    .19929E-02
   4  Prefactor     .32870        3.5455        .15973E-06   -.21128E-03
   5  norm           .0000        1.7257       -.73954E-07** at limit **
   6  Prefactor     47.284        50.913        .76159E-08   -.16104E-03
   7  norm          4.0380        5.3612       -.15639E-06    .64448E-03
   8  norm          3.5660        1.4732        .45996E-07   -.21842E-02
   9  norm          16.544        8.4132        .73742E-07    .24502E-01
  10  Prefactor     .34417E-08    11.367        .14894E-06** at limit **
  11  Prefactor     .83267E-09    14.862        .18138E-06** at limit **
  12  Prefactor     .80491E-08    9.5535        .51857E-06** at limit **
  13  Prefactor     .77716E-09    19.125        .26909E-06** at limit **
  14  Prefactor     .12212E-08    10.429       -.19156E-06** at limit **
  15  Prefactor      .0000        1.8755        .28649E-07** at limit **
  16  Prefactor     5.0637        5.6785        .79786E-07   -.11094E-03
  17  Normalizat    1.2792        .24758       -.54394E-05    .43375E-04
  18  Prefactor     .97244        .10478        .21202E-05    .17141E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.189
  Prefactor  = 2.06971
  norm       = 10.3745
  Prefactor  = 0.328701
  norm       = 0
  Prefactor  = 47.2841
  norm       = 4.038
  norm       = 3.56597
  norm       = 16.5436
  Prefactor  = 3.44169e-09
  Prefactor  = 8.32667e-10
  Prefactor  = 8.04912e-09
  Prefactor  = 7.77156e-10
  Prefactor  = 1.22125e-09
  Prefactor  = 0
  Prefactor  = 5.06367
  Normalizat = 1.27916
  Prefactor  = 0.972442
 **********
 **   18 **HESSE 
 **********

 FCN=   11502.20     FROM HESSE     STATUS=OK           282 CALLS     1633 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.189        30.081        .19435E-03   -1.5604    
   2  Prefactor     2.0697        23.982        .71883E-03   -1.5679    
   3  norm          10.374        3.3271        .31077E-03   -1.5644    
   4  Prefactor     .32870        3.4168        .98355E-03   -1.5696    
   5  norm           .0000        1.7158        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     47.284        50.881        .14651E-03   -1.5570    
   7  norm          4.0380        5.3741        .50099E-03   -1.5668    
   8  norm          3.5660        1.4743        .53486E-03   -1.5670    
   9  norm          16.544        14.274        .24626E-03   -1.5627    
  10  Prefactor     .34417E-08    11.673        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .83267E-09    14.921        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .80491E-08    10.145        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .77716E-09    19.010        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .12212E-08    10.336        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        1.8754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.0637        5.6837        .44686E-03   -1.5663    
  17  Normalizat    1.2792        .20563        .82058E-01   -.84191    
  18  Prefactor     .97244        .86280E-01    .45919E-01   -.93654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07088e-07
Minuit parameter uncertainties:
  1  30.0815
  2  14.0907
  3  3.32713
  4  2.11953
  5  4.1328e-06
  6  50.8818
  7  5.37411
  8  1.47428
  9  14.2739
  10  0.000402152
  11  0.000224816
  12  0.000571692
  13  0.000244509
  14  0.000224877
  15  2.23127e-06
  16  5.68375
  17  0.205766
  18  0.0862922
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.654e+01  1.427e+01  0.000e+00  1.000e+06 ( 1.000e-12)
262        alpha:  2.458e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  1.591e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  5.195e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  9.724e-01  8.629e-02  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.279e+00  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.63
Ra Dec: 242.176 10.494
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 5.28e-08 +/- 4.55e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 1.30e-05

TS (Fixed Index): 1.63
Ra Dec: 242.176 10.494
Photon Flux Upper Limit: 1.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.03e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/165537/likelihoodResults_684633601_684892801_4FGL_J1608.7+1029_daily_bin1718.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) = 11502.2008803
delta logL = 0.00158218594515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11502.2006788
delta logL = 0.001783701573

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.782       1.0000          .0000       .10000E+07
     2 'alpha     '    2.4143       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2813       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97174       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11502.20     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      267 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.788        15.172        .97686E-05    .35380E-03
   2  alpha         2.4142        .72523        .24369E-01    .10058E-03
   3  Normalizat    1.2812        .24453        .36303E-03    .13109E-03
   4  Prefactor     .97181        .10412        .17544E-03   -.14814E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.7883
  alpha      = 2.41419
  Normalizat = 1.28121
  Prefactor  = 0.971807
 **********
 **   18 **HESSE 
 **********

 FCN=   11502.20     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.788        14.935        .39074E-06   -1.5626    
   2  alpha         2.4142        .71396        .48738E-02   -.34331E-01
   3  Normalizat    1.2812        .24476        .14521E-04   -.84129    
   4  Prefactor     .97181        .10417        .35087E-04   -.93675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08852e-10
Minuit parameter uncertainties:
  1  14.9347
  2  0.724051
  3  0.244982
  4  0.104196
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/165537': 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) = 11502.2006784
delta logL = 0.00178406073792

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.679e+01  1.493e+01  0.000e+00  1.000e+06 ( 1.000e-12)
262        alpha:  2.414e+00  7.241e-01  0.000e+00  5.000e+00 ( 1.000e+00)
263         beta:  1.591e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  5.195e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  9.718e-01  1.042e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.281e+00  2.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.64
Ra Dec: 242.176 10.494
Photon Index (Free Index): 2.41 +/- 0.72
Photon Flux (Free Index): 5.15e-08 +/- 4.93e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.33e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/165537/cmap_HighResolution_684633601_684892801_4FGL_J1608.7+1029_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.03e-05', comment='SUCCESS', photon_flux='5.28e-08', energy_flux2='1.52e-05', photon_flux_error='4.55e-08', dlogl='1.78e-03', energy_flux='1.51e-05', photon_flux2='5.15e-08', job_status='DONE', time_completed='2022-09-16 19:36:03.323326', photon_index_error2='0.72', photon_index2='2.41', ts='1.63', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='1.33e-05', EG='1.28', time_epoch_completed='1663382163.32', return_code='0', job_id='165537', GAL2='0.97', EG2='1.28', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='4.93e-08', ts2='1.64', photon_index='2.46' WHERE bin_id='1718' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 19:36:03 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0176>
Subject: Job 165537: <4FGL_J1608.7+1029_daily_bin1718> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin1718> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Sep 16 19:20:20 2022
Job was executed on host(s) <bullet0176>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 19:24:11 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 19:24:11 2022
Terminated at Fri Sep 16 19:36:04 2022
Results reported at Fri Sep 16 19:36:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin1718 242.176 10.4938 684633601 684892801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1608.7+1029 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   677.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             342.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            944 sec.

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

