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


Performing analysis on: 4FGL_J1608.7+1029_daily_bin1717
RA = 242.176, Dec = 10.4938
tmin = 684374401, tmax = 684633601
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='165536', job_status='RUN', time_executed='2022-09-16 19:25:32.833389', time_epoch_executed='1663381532.83' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='1717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/165536

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/165536/ft1_4FGL_J1608.7+1029_daily_bin1717.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/165536/ft2_4FGL_J1608.7+1029_daily_bin1717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/165536/ft1_4FGL_J1608.7+1029_daily_bin1717.fits outfile=/scratch/kocevski/165536/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1717.fits ra=242.176 dec=10.4938 rad=12.0 tmin=684374401.0 tmax=684633601.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 5.04
user 4.74
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/165536/ft2_4FGL_J1608.7+1029_daily_bin1717.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/165536/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1717.fits evtable="EVENTS" outfile="/scratch/kocevski/165536/ft1_filtered_4FGL_J1608.7+1029_daily_bin1717.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: 856

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/165536/ft1_filtered_4FGL_J1608.7+1029_daily_bin1717.fits" evtable="EVENTS" scfile=/scratch/kocevski/165536/ft2_4FGL_J1608.7+1029_daily_bin1717.fits sctable="SC_DATA" outfile=/scratch/kocevski/165536/ltcube_684374401_684633601_4FGL_J1608.7+1029_daily_bin1717.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/165536/ft2_4FGL_J1608.7+1029_daily_bin1717.fits
.....................!
real 14.01
user 13.47
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/165536/ft1_filtered_4FGL_J1608.7+1029_daily_bin1717.fits evtable="EVENTS" scfile=/scratch/kocevski/165536/ft2_4FGL_J1608.7+1029_daily_bin1717.fits sctable="SC_DATA" expcube=/scratch/kocevski/165536/ltcube_684374401_684633601_4FGL_J1608.7+1029_daily_bin1717.fits outfile=/scratch/kocevski/165536/expmap_684374401_684633601_4FGL_J1608.7+1029_daily_bin1717.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/165536/ltcube_684374401_684633601_4FGL_J1608.7+1029_daily_bin1717.fits
.....................!
real 194.16
user 187.25
sys 5.28

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/165536/ft1_filtered_4FGL_J1608.7+1029_daily_bin1717.fits scfile=/scratch/kocevski/165536/ft2_4FGL_J1608.7+1029_daily_bin1717.fits outfile=/scratch/kocevski/165536/cmap_684374401_684633601_4FGL_J1608.7+1029_daily_bin1717.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/165536/ft1_filtered_4FGL_J1608.7+1029_daily_bin1717.fits scfile=/scratch/kocevski/165536/ft2_4FGL_J1608.7+1029_daily_bin1717.fits outfile=/scratch/kocevski/165536/cmap_HighResolution_684374401_684633601_4FGL_J1608.7+1029_daily_bin1717.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/165536/ft1_filtered_4FGL_J1608.7+1029_daily_bin1717.fits evtable="EVENTS" scfile=/scratch/kocevski/165536/ft2_4FGL_J1608.7+1029_daily_bin1717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/165536/Model_4FGL_J1608.7+1029_daily_bin1717.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/165536/ft1_filtered_4FGL_J1608.7+1029_daily_bin1717.fits.....................!
real 68.70
user 67.01
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/165536/ft1_filtered_4FGL_J1608.7+1029_daily_bin1717.fits', '/scratch/kocevski/165536/ft2_4FGL_J1608.7+1029_daily_bin1717.fits', expMap='/scratch/kocevski/165536/expmap_684374401_684633601_4FGL_J1608.7+1029_daily_bin1717.fits', expCube='/scratch/kocevski/165536/ltcube_684374401_684633601_4FGL_J1608.7+1029_daily_bin1717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/165536/Model_4FGL_J1608.7+1029_daily_bin1717.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/165536/ft1_filtered_4FGL_J1608.7+1029_daily_bin1717.fits
Spacecraft file(s): /scratch/kocevski/165536/ft2_4FGL_J1608.7+1029_daily_bin1717.fits
Exposure map: /scratch/kocevski/165536/expmap_684374401_684633601_4FGL_J1608.7+1029_daily_bin1717.fits
Exposure cube: /scratch/kocevski/165536/ltcube_684374401_684633601_4FGL_J1608.7+1029_daily_bin1717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/165536/Model_4FGL_J1608.7+1029_daily_bin1717.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) = 8916.98206452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44142E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .16129E-02   1.0000          .0000       .10000E+07
     3 'norm      '    3.3365       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.0472       1.0000          .0000       .10000E+07
     5 'norm      '    .18363E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .54182E-01   1.0000          .0000       .10000E+07
     7 'norm      '    7.4949       1.0000          .0000       .10000E+07
     8 'norm      '    4.9531       1.0000          .0000       .10000E+07
     9 'norm      '    29.195       1.0000          .0000       .10000E+07
    10 'Prefactor '    .16687E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .60221E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    36.108       1.0000          .0000       .10000E+07
    13 'Prefactor '    .12765E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.2420       1.0000          .0000       .10000E+07
    15 'Prefactor '    .12426E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .22999E-02   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.4027       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0837       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=   8916.974     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     1302 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        10.189       -.13819E-07** at limit **
   2  Prefactor     .32868E-06    4.8550       -.87632E-07** at limit **
   3  norm          3.3054        3.7856        .52190E-07    .21205E-02
   4  Prefactor     3.0392        3.7274       -.55907E-07   -.91788E-03
   5  norm           .0000        2.2736        .72837E-07** at limit **
   6  Prefactor     .11324E-07    1.0219       -.13748E-08** at limit **
   7  norm          7.5177        10.669        .14468E-07   -.40886E-03
   8  norm          4.9527        1.9762        .85854E-08    .16209E-02
   9  norm          29.191        4.2394       -.47351E-09    .88927E-01
  10  Prefactor     .44131E-06    3.7336       -.82404E-07** at limit **
  11  Prefactor     .33307E-09    20.575       -.37602E-06** at limit **
  12  Prefactor     36.168        36.934        .59509E-07   -.13029E-01
  13  Prefactor     .27756E-08    44.091       -.12642E-06** at limit **
  14  Prefactor     3.2335        4.3002       -.12678E-06   -.20899E-02
  15  Prefactor     .11213E-07    9.1064       -.21421E-07** at limit **
  16  Prefactor      .0000        6.2072       -.74912E-07** at limit **
  17  Normalizat    1.4028        .30329        .82394E-06    .10446E-03
  18  Prefactor     1.0837        .13127        .40775E-06    .20023E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 3.28682e-07
  norm       = 3.30539
  Prefactor  = 3.03916
  norm       = 0
  Prefactor  = 1.13243e-08
  norm       = 7.51771
  norm       = 4.95266
  norm       = 29.1909
  Prefactor  = 4.41314e-07
  Prefactor  = 3.33067e-10
  Prefactor  = 36.1682
  Prefactor  = 2.77556e-09
  Prefactor  = 3.23353
  Prefactor  = 1.12133e-08
  Prefactor  = 0
  Normalizat = 1.40282
  Prefactor  = 1.08366
 **********
 **   18 **HESSE 
 **********

 FCN=   8916.974     FROM HESSE     STATUS=OK           282 CALLS     1584 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        10.540        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .32868E-06    7.7207        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.3054        3.8161        .55387E-03   -1.5672    
   4  Prefactor     3.0392        3.7375        .58096E-03   -1.5673    
   5  norm           .0000        2.2657        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11324E-07    129.69        .15378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.5177        10.719        .36609E-03   -1.5653    
   8  norm          4.9527        1.9813        .45166E-03   -1.5663    
   9  norm          29.191        16.830        .18510E-03   -1.5600    
  10  Prefactor     .44131E-06    7.9213        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .33307E-09    20.620        .15154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     36.168        37.735        .16644E-03   -1.5588    
  13  Prefactor     .27756E-08    42.249        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2335        4.3119        .56228E-03   -1.5672    
  15  Prefactor     .11213E-07    9.9594        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        6.1890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.4028        .25598        .84520E-01   -.80547    
  18  Prefactor     1.0837        .10988        .38243E-01   -.89991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00837e-07
Minuit parameter uncertainties:
  1  1.74368e-05
  2  0.003186
  3  3.8161
  4  3.73747
  5  1.4056e-05
  6  0.00242214
  7  10.7186
  8  1.98126
  9  16.8298
  10  0.00373945
  11  0.000167741
  12  37.735
  13  0.000682576
  14  4.31192
  15  0.000667907
  16  4.51389e-06
  17  0.25621
  18  0.109898
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  2.919e+01  1.683e+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:  1.084e+00  1.099e-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.403e+00  2.562e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.83
Ra Dec: 242.176 10.494
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 9.31e-08 +/- 5.37e-08
Energy Flux (Fixed Index): 2.66e-05 +/- 1.53e-05

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) = 8916.91361781
delta logL = 0.0604255530761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8916.9057335
delta logL = 0.0683098702302

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.829       1.0000          .0000       .10000E+07
     2 'alpha     '    2.7121       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3743       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0915       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=   8916.906     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      248 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.829        17.099        .75837E-05    .92344E-03
   2  alpha         2.7122        .70677        .17760E-01    .16876E-04
   3  Normalizat    1.3742        .30897        .37730E-03    .73400E-04
   4  Prefactor     1.0915        .13253        .18280E-03    .17980E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 27.8286
  alpha      = 2.71216
  Normalizat = 1.37425
  Prefactor  = 1.09145
 **********
 **   18 **HESSE 
 **********

 FCN=   8916.906     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.829        16.569        .30335E-06   -1.5602    
   2  alpha         2.7122        .68418        .71040E-03    .84964E-01
   3  Normalizat    1.3742        .30894        .15092E-04   -.81376    
   4  Prefactor     1.0915        .13253        .36561E-04   -.89740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77017e-11
Minuit parameter uncertainties:
  1  16.5691
  2  0.693085
  3  0.309355
  4  0.132571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/165536': 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) = 8916.90573347
delta logL = 0.0683098937607

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  2.783e+01  1.657e+01  0.000e+00  1.000e+06 ( 1.000e-12)
262        alpha:  2.712e+00  6.931e-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:  1.091e+00  1.326e-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.374e+00  3.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.01
Ra Dec: 242.176 10.494
Photon Index (Free Index): 2.71 +/- 0.69
Photon Flux (Free Index): 1.13e-07 +/- 7.86e-08
Energy Flux (Free Index): 2.74e-05 +/- 1.47e-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/165536/cmap_HighResolution_684374401_684633601_4FGL_J1608.7+1029_daily_bin1717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.31e-08', energy_flux2='2.74e-05', photon_flux_error='5.37e-08', dlogl='6.83e-02', energy_flux='2.66e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2022-09-16 19:35:00.548688', photon_index_error2='0.69', photon_index2='2.71', ts='5.83', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.47e-05', EG='1.40', time_epoch_completed='1663382100.55', return_code='0', job_id='165536', GAL2='1.09', EG2='1.37', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='7.86e-08', ts2='6.01', photon_index='2.46' WHERE bin_id='1717' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 19:35:00 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 165536: <4FGL_J1608.7+1029_daily_bin1717> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin1717> 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) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 19:24:06 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:06 2022
Terminated at Fri Sep 16 19:35:01 2022
Results reported at Fri Sep 16 19:35:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin1717 242.176 10.4938 684374401 684633601 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 :                                   564.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   654 sec.
    Turnaround time :                            881 sec.

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

