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


Performing analysis on: 4FGL_J1608.7+1029_daily_bin1304
RA = 242.176, Dec = 10.4938
tmin = 577324801, tmax = 577584001
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='55081', job_status='RUN', time_executed='2021-09-13 09:45:28.050131', time_epoch_executed='1631551528.05' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='1304'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55081

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55081/ft1_4FGL_J1608.7+1029_daily_bin1304.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55081/ft2_4FGL_J1608.7+1029_daily_bin1304.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55081/ft1_4FGL_J1608.7+1029_daily_bin1304.fits outfile=/scratch/kocevski/55081/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1304.fits ra=242.176 dec=10.4938 rad=12.0 tmin=577324801.0 tmax=577584001.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.10
user 2.83
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55081/ft1_filtered_4FGL_J1608.7+1029_daily_bin1304.fits" evtable="EVENTS" scfile=/scratch/kocevski/55081/ft2_4FGL_J1608.7+1029_daily_bin1304.fits sctable="SC_DATA" outfile=/scratch/kocevski/55081/ltcube_577324801_577584001_4FGL_J1608.7+1029_daily_bin1304.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/55081/ft2_4FGL_J1608.7+1029_daily_bin1304.fits
.....................!
real 16.01
user 15.52
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55081/ft1_filtered_4FGL_J1608.7+1029_daily_bin1304.fits evtable="EVENTS" scfile=/scratch/kocevski/55081/ft2_4FGL_J1608.7+1029_daily_bin1304.fits sctable="SC_DATA" expcube=/scratch/kocevski/55081/ltcube_577324801_577584001_4FGL_J1608.7+1029_daily_bin1304.fits outfile=/scratch/kocevski/55081/expmap_577324801_577584001_4FGL_J1608.7+1029_daily_bin1304.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/55081/ltcube_577324801_577584001_4FGL_J1608.7+1029_daily_bin1304.fits
.....................!
real 193.26
user 187.48
sys 5.00

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/55081/ft1_filtered_4FGL_J1608.7+1029_daily_bin1304.fits scfile=/scratch/kocevski/55081/ft2_4FGL_J1608.7+1029_daily_bin1304.fits outfile=/scratch/kocevski/55081/cmap_577324801_577584001_4FGL_J1608.7+1029_daily_bin1304.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55081/ft1_filtered_4FGL_J1608.7+1029_daily_bin1304.fits scfile=/scratch/kocevski/55081/ft2_4FGL_J1608.7+1029_daily_bin1304.fits outfile=/scratch/kocevski/55081/cmap_HighResolution_577324801_577584001_4FGL_J1608.7+1029_daily_bin1304.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.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/55081/ft1_filtered_4FGL_J1608.7+1029_daily_bin1304.fits evtable="EVENTS" scfile=/scratch/kocevski/55081/ft2_4FGL_J1608.7+1029_daily_bin1304.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/55081/Model_4FGL_J1608.7+1029_daily_bin1304.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/55081/ft1_filtered_4FGL_J1608.7+1029_daily_bin1304.fits.....................!
real 60.55
user 59.08
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8214       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.5298       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27820E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.9947       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .46653E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    13.849       1.0000         .10000E-03   10000.    
    10 'norm      '    13.878       1.0000         .10000E-03   10000.    
    11 'norm      '    15.580       1.0000         .10000E-03   10000.    
    12 'norm      '    .11018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.507       1.0000         .10000E-03   10000.    
    14 'Prefactor '    72.278       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.891       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .58187E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .49558       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1977       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=   7490.721     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2234 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8368        105.75       -.29627E-05   -.12084E-04
   2  Prefactor     .10000E-03    16.631       -.47244E-06** at limit **
   3  Prefactor     .10000E-03    27.313       -.82242E-07** at limit **
   4  norm          3.5304        3.0233        .41619E-08   -.15739E-03
   5  Prefactor     .10001E-03    6.7117       -.42844E-06** at limit **
   6  Prefactor     .10000E-03    14.006       -.31398E-06** at limit **
   7  norm          2.9943        6.3127        .95696E-07   -.23120E-04
   8  Prefactor     .10000E-03    436.79       -.10962E-04** at limit **
   9  norm          13.850        10.650       -.41107E-06   -.93049E-04
  10  norm          13.875        3.4386       -.34350E-06   -.20853E-03
  11  norm          15.578        16.760       -.83540E-06   -.80253E-04
  12  norm          .10000E-03    103.85        .45616E-06** at limit **
  13  Prefactor     19.512        13.515        .46564E-07   -.10781E-03
  14  Prefactor     72.565        143.29        .99579E-06   -.92634E-05
  15  Prefactor     .10000E-03    32.902       -.82212E-06** at limit **
  16  Prefactor     11.902        15.952       -.43801E-06   -.21887E-03
  17  Prefactor     .10000E-03    4.9280        .53712E-06** at limit **
  18  Prefactor     .10000E-03    2.6015        .33521E-06** at limit **
  19  Prefactor     .10010E-03    5.1539        .12258E-05** at limit **
  20  Normalizat    .49510        .32334        .15987E-04   -.31262E-04
  21  Prefactor     1.1978        .13754       -.45437E-05   -.85763E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.8368
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.53039
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 2.9943
  Prefactor  = 0.000100005
  norm       = 13.8496
  norm       = 13.8752
  norm       = 15.5784
  norm       = 0.0001
  Prefactor  = 19.512
  Prefactor  = 72.5654
  Prefactor  = 0.0001
  Prefactor  = 11.9021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001001
  Normalizat = 0.495103
  Prefactor  = 1.19781
 **********
 **   18 **HESSE 
 **********

 FCN=   7490.721     FROM HESSE     STATUS=OK           323 CALLS     2557 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8368        105.31        .20647E-03   -1.5316    
   2  Prefactor     .10000E-03    16.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.5304        3.0117        .13294E-03   -1.5332    
   5  Prefactor     .10001E-03    40.183        .41898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9943        6.1338        .23457E-03   -1.5362    
   8  Prefactor     .10000E-03    441.87        .19296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.850        10.640        .10763E-03   -1.4963    
  10  norm          13.875        3.4506        .38164E-03   -1.4963    
  11  norm          15.578        16.770        .10147E-03   -1.4918    
  12  norm          .10000E-03    104.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.512        13.413        .45343E-03   -1.4824    
  14  Prefactor     72.565        143.18        .23611E-03   -1.4002    
  15  Prefactor     .10000E-03    32.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.902        15.918        .11617E-03   -1.5018    
  17  Prefactor     .10000E-03    4.9564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.6072        .13631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10010E-03    33.499        .36760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .49510        .32327        .56448E-03   -1.1264    
  21  Prefactor     1.1978        .13892        .16277E-03   -.86399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18924e-09
Minuit parameter uncertainties:
  1  40.2796
  2  3.533e-05
  3  3.94816e-05
  4  3.01186
  5  0.00129192
  6  1.63187e-05
  7  6.13511
  8  0.00295796
  9  10.6414
  10  3.45061
  11  16.775
  12  0.000246043
  13  13.4146
  14  143.87
  15  9.42348e-05
  16  15.9233
  17  1.10204e-06
  18  8.19976e-07
  19  0.00365892
  20  0.3245
  21  0.138961
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.558e+01  1.678e+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.198e+00  1.390e-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:  4.951e-01  3.245e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.37
Ra Dec: 242.176 10.494
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 4.97e-08 +/- 5.35e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.53e-05

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

Saving results to:
/scratch/kocevski/55081/likelihoodResults_577324801_577584001_4FGL_J1608.7+1029_daily_bin1304.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) = 7490.66808122
delta logL = 0.052825351434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7490.65988159
delta logL = 0.0610249788124

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.297       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9845       1.0000          .0000       5.0000    
     3 'Normalizat'    .45856       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2081       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.

 FCN=   7490.660     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      204 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.297        423.40        .26482E-02   -.44822E-04
   2  alpha         2.9845        3.3789        .42173       -.12394E-04
   3  Normalizat    .45853        .16734        .13208        .65530E-04
   4  Prefactor     1.2081        .44088E-01    .34442E-01   -.95212E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 14.2968
  alpha      = 2.98451
  Normalizat = 0.458526
  Prefactor  = 1.2081
 **********
 **   18 **HESSE 
 **********

 FCN=   7490.660     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.297        18.910        .10593E-03   -1.4952    
   2  alpha         2.9845        1.5966        .31679E-01    .19504    
   3  Normalizat    .45853        .33898        .58553E-03   -1.1438    
   4  Prefactor     1.2081        .14207        .16215E-03   -.86082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00414e-09
Minuit parameter uncertainties:
  1  18.9183
  2  1.73863
  3  0.340516
  4  0.142112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55081': 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) = 7490.65988158
delta logL = 0.0610249934953

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.430e+01  1.892e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  2.985e+00  1.739e+00  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.208e+00  1.421e-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:  4.585e-01  3.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 242.176 10.494
Photon Index (Free Index): 2.98 +/- 1.74
Photon Flux (Free Index): 7.75e-08 +/- 1.09e-07
Energy Flux (Free Index): 1.63e-05 +/- 1.64e-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/55081/cmap_HighResolution_577324801_577584001_4FGL_J1608.7+1029_daily_bin1304.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.99e-05', comment='SUCCESS', photon_flux='4.97e-08', energy_flux2='1.63e-05', photon_flux_error='5.35e-08', dlogl='6.10e-02', energy_flux='1.42e-05', photon_flux2='7.75e-08', job_status='DONE', time_completed='2021-09-13 09:56:03.023453', photon_index_error2='1.74', photon_index2='2.98', ts='1.37', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.74e-07', energy_flux_error2='1.64e-05', EG='0.50', time_epoch_completed='1631552163.02', return_code='0', job_id='55081', GAL2='1.21', EG2='0.46', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='1.09e-07', ts2='1.52', photon_index='2.46' WHERE bin_id='1304' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:56:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 55081: <4FGL_J1608.7+1029_daily_bin1304> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin1304> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 13 09:40:32 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 09:42:44 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:44 2021
Terminated at Mon Sep 13 09:56:06 2021
Results reported at Mon Sep 13 09:56:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin1304 242.176 10.4938 577324801 577584001 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 :                                   632.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            934 sec.

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

