/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 176 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 = 7376
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1608.7+1029_daily_bin1251
RA = 242.176, Dec = 10.4938
tmin = 563587201, tmax = 563846401
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='55003', job_status='RUN', time_executed='2021-09-13 09:45:20.263488', time_epoch_executed='1631551520.26' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='1251'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55003

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55003/ft1_4FGL_J1608.7+1029_daily_bin1251.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55003/ft2_4FGL_J1608.7+1029_daily_bin1251.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55003/ft1_4FGL_J1608.7+1029_daily_bin1251.fits outfile=/scratch/kocevski/55003/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1251.fits ra=242.176 dec=10.4938 rad=12.0 tmin=563587201.0 tmax=563846401.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 2.81
user 2.54
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/55003/ft2_4FGL_J1608.7+1029_daily_bin1251.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/55003/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1251.fits evtable="EVENTS" outfile="/scratch/kocevski/55003/ft1_filtered_4FGL_J1608.7+1029_daily_bin1251.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.79
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55003/ft1_filtered_4FGL_J1608.7+1029_daily_bin1251.fits" evtable="EVENTS" scfile=/scratch/kocevski/55003/ft2_4FGL_J1608.7+1029_daily_bin1251.fits sctable="SC_DATA" outfile=/scratch/kocevski/55003/ltcube_563587201_563846401_4FGL_J1608.7+1029_daily_bin1251.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/55003/ft2_4FGL_J1608.7+1029_daily_bin1251.fits
.....................!
real 15.00
user 14.42
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55003/ft1_filtered_4FGL_J1608.7+1029_daily_bin1251.fits evtable="EVENTS" scfile=/scratch/kocevski/55003/ft2_4FGL_J1608.7+1029_daily_bin1251.fits sctable="SC_DATA" expcube=/scratch/kocevski/55003/ltcube_563587201_563846401_4FGL_J1608.7+1029_daily_bin1251.fits outfile=/scratch/kocevski/55003/expmap_563587201_563846401_4FGL_J1608.7+1029_daily_bin1251.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/55003/ltcube_563587201_563846401_4FGL_J1608.7+1029_daily_bin1251.fits
.....................!
real 191.29
user 185.41
sys 5.47

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/55003/ft1_filtered_4FGL_J1608.7+1029_daily_bin1251.fits scfile=/scratch/kocevski/55003/ft2_4FGL_J1608.7+1029_daily_bin1251.fits outfile=/scratch/kocevski/55003/cmap_563587201_563846401_4FGL_J1608.7+1029_daily_bin1251.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55003/ft1_filtered_4FGL_J1608.7+1029_daily_bin1251.fits scfile=/scratch/kocevski/55003/ft2_4FGL_J1608.7+1029_daily_bin1251.fits outfile=/scratch/kocevski/55003/cmap_HighResolution_563587201_563846401_4FGL_J1608.7+1029_daily_bin1251.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.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/55003/ft1_filtered_4FGL_J1608.7+1029_daily_bin1251.fits evtable="EVENTS" scfile=/scratch/kocevski/55003/ft2_4FGL_J1608.7+1029_daily_bin1251.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/55003/Model_4FGL_J1608.7+1029_daily_bin1251.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/55003/ft1_filtered_4FGL_J1608.7+1029_daily_bin1251.fits.....................!
real 67.60
user 66.21
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.1021       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .93437       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .15558E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    20.659       1.0000         .10000E-03   10000.    
    10 'norm      '    6.9259       1.0000         .10000E-03   10000.    
    11 'norm      '    12.518       1.0000         .10000E-03   10000.    
    12 'norm      '    .12078E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    105.02       1.0000         .10000E-03   10000.    
    15 'Prefactor '    50.254       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.1933       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.2716       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.9550       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.480       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .89064       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0938       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.

 FCN=   8453.309     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2250 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    64.154        .15168E-06** at limit **
   2  Prefactor     .10000E-03    14.916        .42659E-07** at limit **
   3  Prefactor     .10000E-03    120.80       -.34308E-08** at limit **
   4  norm          2.1029        2.5470        .15123E-06   -.64004E-04
   5  Prefactor     .93710        7.7820        .38840E-06   -.11166E-03
   6  Prefactor     .10000E-03    15.211        .13060E-07** at limit **
   7  norm          .10000E-03    3.7922       -.95312E-07** at limit **
   8  Prefactor     .10000E-03    33.685        .17858E-07** at limit **
   9  norm          20.662        13.447       -.23006E-07   -.19590E-04
  10  norm          6.9260        2.4721       -.36356E-08    .21155E-05
  11  norm          12.523        20.650        .15684E-06    .12304E-04
  12  norm          .10000E-03    344.88        .15379E-06** at limit **
  13  Prefactor     .10000E-03    5.5711        .55821E-07** at limit **
  14  Prefactor     104.98        140.02       -.44154E-05   -.10208E-03
  15  Prefactor     50.270        50.371        .50248E-06    .45640E-04
  16  Prefactor     9.1937        16.087       -.83202E-06   -.33945E-04
  17  Prefactor     7.2725        8.8949        .18865E-05   -.23101E-03
  18  Prefactor     7.9569        9.3863       -.10907E-06   -.86539E-04
  19  Prefactor     11.481        7.4521        .43301E-08    .52995E-05
  20  Normalizat    .89055        .27271       -.67969E-06   -.49159E-05
  21  Prefactor     1.0937        .11610        .13210E-06   -.60511E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.10288
  Prefactor  = 0.937097
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 20.6619
  norm       = 6.92603
  norm       = 12.5229
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 104.976
  Prefactor  = 50.2698
  Prefactor  = 9.19369
  Prefactor  = 7.27247
  Prefactor  = 7.9569
  Prefactor  = 11.4814
  Normalizat = 0.890549
  Prefactor  = 1.09373
 **********
 **   18 **HESSE 
 **********

 FCN=   8453.309     FROM HESSE     STATUS=OK           319 CALLS     2569 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    64.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    121.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.1029        2.5266        .15310E-03   -1.5418    
   5  Prefactor     .93710        22.458        .45367E-02   -1.5514    
   6  Prefactor     .10000E-03    15.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    31.179        .32117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          20.662        13.452        .88122E-04   -1.4799    
  10  norm          6.9260        2.4724        .81575E-04   -1.5182    
  11  norm          12.523        20.624        .11322E-03   -1.5000    
  12  norm          .10000E-03    345.44        .18167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.6031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     104.98        148.68        .39240E-04   -1.3655    
  15  Prefactor     50.270        50.263        .56571E-04   -1.4289    
  16  Prefactor     9.1937        16.008        .13218E-03   -1.5101    
  17  Prefactor     7.2725        9.0539        .74372E-03   -1.5169    
  18  Prefactor     7.9569        9.3920        .14216E-03   -1.5144    
  19  Prefactor     11.481        7.4652        .11824E-03   -1.5030    
  20  Normalizat    .89055        .31257        .44527E-03   -.96793    
  21  Prefactor     1.0937        .13672        .17493E-03   -.89667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69854e-08
Minuit parameter uncertainties:
  1  1.70878e-05
  2  1.5528e-06
  3  8.39318e-06
  4  2.52677
  5  9.17841
  6  2.86007e-06
  7  0.00017529
  8  3.7737e-06
  9  13.4538
  10  2.47246
  11  20.6353
  12  0.00022026
  13  5.35996e-07
  14  149.211
  15  50.3055
  16  16.0157
  17  9.05556
  18  9.39378
  19  7.46578
  20  0.313205
  21  0.136765
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.252e+01  2.064e+01  1.000e-04  1.000e+04 ( 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  0.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.094e+00  1.368e-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:  8.905e-01  3.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/55003/likelihoodResults_563587201_563846401_4FGL_J1608.7+1029_daily_bin1251.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) = 8453.12725031
delta logL = 0.181996276575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8453.12132215
delta logL = 0.187924439602

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.964       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0544       1.0000          .0000       5.0000    
     3 'Normalizat'    .85440       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1021       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=   8453.121     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      270 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.964        18.671        .11125E-03    .26733E-03
   2  alpha         3.0544        1.0063        .27103E-01    .42588E-04
   3  Normalizat    .85372        .31168        .45375E-03   -.70805E-04
   4  Prefactor     1.1023        .13197        .17427E-03   -.16035E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.9636
  alpha      = 3.05438
  Normalizat = 0.853719
  Prefactor  = 1.10234
 **********
 **   18 **HESSE 
 **********

 FCN=   8453.121     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.964        17.646        .44500E-05   -1.4988    
   2  alpha         3.0544        .95214        .10841E-02    .22361    
   3  Normalizat    .85372        .31206        .18150E-04   -.98106    
   4  Prefactor     1.1023        .13198        .34855E-04   -.89392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55667e-10
Minuit parameter uncertainties:
  1  17.6526
  2  0.978182
  3  0.312721
  4  0.132022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55003': 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) = 8453.12131952
delta logL = 0.18792706818

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.296e+01  1.765e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  3.054e+00  9.782e-01  0.000e+00  5.000e+00 ( 1.000e+00)
263         beta:  1.591e-01  0.000e+00  0.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.102e+00  1.320e-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:  8.537e-01  3.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.43
Ra Dec: 242.176 10.494

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/55003/cmap_HighResolution_563587201_563846401_4FGL_J1608.7+1029_daily_bin1251.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.06e-05', job_status='DONE', photon_flux_upper_limit='1.77e-07', time_completed='2021-09-13 09:56:40.217248', job_id='55003', GAL2='1.10', fit_tolerance='1e-08', EG2='0.85', EG='0.89', time_epoch_completed='1631552200.22', return_code2='0', ts='0.43', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.88e-01', ts2='0.84', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1251' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:56:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 55003: <4FGL_J1608.7+1029_daily_bin1251> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin1251> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 13 09:40:26 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 09:42:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 13 09:42:14 2021
Terminated at Mon Sep 13 09:56:41 2021
Results reported at Mon Sep 13 09:56:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin1251 242.176 10.4938 563587201 563846401 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 :                                 1256 MB
    Average Memory :                             297.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            975 sec.

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

