/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 185 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1608.7+1029_daily_bin1
RA = 242.176, Dec = 10.4938
tmin = 239587201, tmax = 239846401
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='45818', job_status='RUN', time_executed='2021-09-13 09:15:52.697903', time_epoch_executed='1631549752.7' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/45818

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/45818/ft1_4FGL_J1608.7+1029_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/45818/ft2_4FGL_J1608.7+1029_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/45818/ft1_4FGL_J1608.7+1029_daily_bin1.fits outfile=/scratch/kocevski/45818/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1.fits ra=242.176 dec=10.4938 rad=12.0 tmin=239587201.0 tmax=239846401.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 1.32
user 1.16
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/45818/ft1_filtered_4FGL_J1608.7+1029_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/45818/ft2_4FGL_J1608.7+1029_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/45818/ltcube_239587201_239846401_4FGL_J1608.7+1029_daily_bin1.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/45818/ft2_4FGL_J1608.7+1029_daily_bin1.fits
.....................!
real 14.42
user 14.08
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/45818/ft1_filtered_4FGL_J1608.7+1029_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/45818/ft2_4FGL_J1608.7+1029_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/45818/ltcube_239587201_239846401_4FGL_J1608.7+1029_daily_bin1.fits outfile=/scratch/kocevski/45818/expmap_239587201_239846401_4FGL_J1608.7+1029_daily_bin1.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/45818/ltcube_239587201_239846401_4FGL_J1608.7+1029_daily_bin1.fits
.....................!
real 190.70
user 185.45
sys 4.83

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/45818/ft1_filtered_4FGL_J1608.7+1029_daily_bin1.fits scfile=/scratch/kocevski/45818/ft2_4FGL_J1608.7+1029_daily_bin1.fits outfile=/scratch/kocevski/45818/cmap_239587201_239846401_4FGL_J1608.7+1029_daily_bin1.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/45818/ft1_filtered_4FGL_J1608.7+1029_daily_bin1.fits scfile=/scratch/kocevski/45818/ft2_4FGL_J1608.7+1029_daily_bin1.fits outfile=/scratch/kocevski/45818/cmap_HighResolution_239587201_239846401_4FGL_J1608.7+1029_daily_bin1.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/45818/ft1_filtered_4FGL_J1608.7+1029_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/45818/ft2_4FGL_J1608.7+1029_daily_bin1.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/45818/Model_4FGL_J1608.7+1029_daily_bin1.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/45818/ft1_filtered_4FGL_J1608.7+1029_daily_bin1.fits.....................!
real 65.28
user 64.00
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.472       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.103       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4348       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12592E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.8485       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    78.523       1.0000         .10000E-03   10000.    
    10 'norm      '    5.1243       1.0000         .10000E-03   10000.    
    11 'norm      '    12.590       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.209       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.139       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11905E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.5959       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .48435E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0451       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3970       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .67556       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=   8322.415     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2251 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.470        35.575       -.17415E-06   -.11367E-03
   2  Prefactor     17.103        20.835        .11872E-06   -.63627E-05
   3  Prefactor     .10000E-03    10.683       -.15511E-06** at limit **
   4  norm          1.4348        1.5769        .69673E-07    .10613E-03
   5  Prefactor     .10001E-03    1.5177        .49729E-06** at limit **
   6  Prefactor     .10000E-03    25.429        .16606E-06** at limit **
   7  norm          1.8491        2.1254        .27652E-07   -.77093E-04
   8  Prefactor     .10001E-03    27.429       -.21880E-05** at limit **
   9  norm          78.522        14.078       -.44158E-07   -.61743E-04
  10  norm          5.1243        1.7830       -.28965E-07   -.14261E-03
  11  norm          12.588        13.102        .21331E-05    .42903E-03
  12  norm          .10003E-03    37.988        .32488E-05** at limit **
  13  Prefactor     19.207        14.846        .11579E-05    .28591E-03
  14  Prefactor     16.131        33.501       -.17008E-05   -.29169E-03
  15  Prefactor     .10001E-03    58.551       -.23943E-05** at limit **
  16  Prefactor     9.5909        7.9450        .16192E-07   -.75957E-04
  17  Prefactor     .10000E-03    6.2343       -.60285E-08** at limit **
  18  Prefactor     .10018E-03    13.394        .47839E-05** at limit **
  19  Prefactor     2.0452        4.3844        .15154E-05    .26745E-03
  20  Normalizat    1.3970        .21919       -.59626E-06   -.39114E-03
  21  Prefactor     .67562        .88422E-01   -.20106E-06   -.74201E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.4702
  Prefactor  = 17.1028
  Prefactor  = 0.0001
  norm       = 1.43477
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 1.8491
  Prefactor  = 0.000100012
  norm       = 78.5224
  norm       = 5.12432
  norm       = 12.588
  norm       = 0.000100026
  Prefactor  = 19.2067
  Prefactor  = 16.131
  Prefactor  = 0.000100012
  Prefactor  = 9.59085
  Prefactor  = 0.0001
  Prefactor  = 0.000100179
  Prefactor  = 2.04521
  Normalizat = 1.39704
  Prefactor  = 0.675622
 **********
 **   18 **HESSE 
 **********

 FCN=   8322.415     FROM HESSE     STATUS=OK           315 CALLS     2566 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.470        35.762        .64619E-04   -1.4467    
   2  Prefactor     17.103        20.849        .96846E-04   -1.4881    
   3  Prefactor     .10000E-03    10.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4348        1.5608        .11674E-03   -1.5468    
   5  Prefactor     .10001E-03    13.020        .21020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.8491        2.1166        .13824E-03   -1.5436    
   8  Prefactor     .10001E-03    28.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          78.522        14.115        .45319E-04   -1.3933    
  10  norm          5.1243        1.7843        .69698E-04   -1.5255    
  11  norm          12.588        13.600        .56447E-03   -1.4998    
  12  norm          .10003E-03    39.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.207        15.081        .45693E-03   -1.4831    
  14  Prefactor     16.131        34.147        .99697E-04   -1.4904    
  15  Prefactor     .10001E-03    60.672        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.5909        7.9317        .12937E-03   -1.5088    
  17  Prefactor     .10000E-03    6.3949        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10018E-03    26.728        .40108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.0452        4.4481        .27297E-03   -1.5422    
  20  Normalizat    1.3970        .26479        .31429E-03   -.80714    
  21  Prefactor     .67562        .10676        .17977E-03   -1.0449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.59632e-09
Minuit parameter uncertainties:
  1  35.7817
  2  20.8579
  3  5.32233e-05
  4  1.56081
  5  0.000575926
  6  7.95662e-05
  7  2.11665
  8  0.00116044
  9  14.1158
  10  1.78431
  11  13.6036
  12  0.00204726
  13  15.0837
  14  34.1884
  15  0.00172498
  16  7.93252
  17  1.17471e-05
  18  0.00437506
  19  4.44877
  20  0.265045
  21  0.106794
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.259e+01  1.360e+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:  6.756e-01  1.068e-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.397e+00  2.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.11
Ra Dec: 242.176 10.494
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 4.01e-08 +/- 4.34e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.24e-05

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

Saving results to:
/scratch/kocevski/45818/likelihoodResults_239587201_239846401_4FGL_J1608.7+1029_daily_bin1.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) = 8322.16855594
delta logL = 0.246183874615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8322.1684612
delta logL = 0.246278607836

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.588       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7489       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66711       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=   8322.168     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      234 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.585        13.471        .11290E-03   -.46603E-03
   2  alpha         1.7488        .84784        .24286E-01    .26466E-04
   3  Normalizat    1.4243        .25277        .31179E-03   -.20853E-03
   4  Prefactor     .66711        .10485        .18076E-03   -.39350E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.5846
  alpha      = 1.74884
  Normalizat = 1.42427
  Prefactor  = 0.667106
 **********
 **   18 **HESSE 
 **********

 FCN=   8322.168     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.585        13.827        .45160E-05   -1.4998    
   2  alpha         1.7488        .86958        .97144E-03   -.30518    
   3  Normalizat    1.4243        .25302        .62359E-04   -.79929    
   4  Prefactor     .66711        .10493        .36153E-04   -1.0483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14558e-10
Minuit parameter uncertainties:
  1  13.8308
  2  0.890106
  3  0.253241
  4  0.104961
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/45818': 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) = 8322.16846116
delta logL = 0.246278652095

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.258e+01  1.383e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  1.749e+00  8.901e-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:  6.671e-01  1.050e-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.424e+00  2.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.61
Ra Dec: 242.176 10.494
Photon Index (Free Index): 1.75 +/- 0.89
Photon Flux (Free Index): 2.42e-08 +/- 3.25e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.61e-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/45818/cmap_HighResolution_239587201_239846401_4FGL_J1608.7+1029_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.81e-05', comment='SUCCESS', photon_flux='4.01e-08', energy_flux2='1.52e-05', photon_flux_error='4.34e-08', dlogl='2.46e-01', energy_flux='1.15e-05', photon_flux2='2.42e-08', job_status='DONE', time_completed='2021-09-13 09:27:15.820246', photon_index_error2='0.89', photon_index2='1.75', ts='1.11', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='1.61e-05', EG='1.40', time_epoch_completed='1631550435.82', return_code='0', job_id='45818', GAL2='0.67', EG2='1.42', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='3.25e-08', ts2='1.61', photon_index='2.46' WHERE bin_id='1' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:27:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 45818: <4FGL_J1608.7+1029_daily_bin1> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin1> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 13 09:10:39 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 09:12:39 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:12:39 2021
Terminated at Mon Sep 13 09:27:16 2021
Results reported at Mon Sep 13 09:27:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin1 242.176 10.4938 239587201 239846401 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 :                                   684.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             249.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            997 sec.

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

