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


Performing analysis on: 4FGL_J1608.7+1029_daily_bin1192
RA = 242.176, Dec = 10.4938
tmin = 548294401, tmax = 548553601
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='54913', job_status='RUN', time_executed='2021-09-13 09:45:37.624821', time_epoch_executed='1631551537.62' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='1192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/54913

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/54913/ft1_4FGL_J1608.7+1029_daily_bin1192.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/54913/ft2_4FGL_J1608.7+1029_daily_bin1192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/54913/ft1_4FGL_J1608.7+1029_daily_bin1192.fits outfile=/scratch/kocevski/54913/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1192.fits ra=242.176 dec=10.4938 rad=12.0 tmin=548294401.0 tmax=548553601.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.88
user 3.65
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/54913/ft2_4FGL_J1608.7+1029_daily_bin1192.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/54913/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1192.fits evtable="EVENTS" outfile="/scratch/kocevski/54913/ft1_filtered_4FGL_J1608.7+1029_daily_bin1192.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.56
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/54913/ft1_filtered_4FGL_J1608.7+1029_daily_bin1192.fits" evtable="EVENTS" scfile=/scratch/kocevski/54913/ft2_4FGL_J1608.7+1029_daily_bin1192.fits sctable="SC_DATA" outfile=/scratch/kocevski/54913/ltcube_548294401_548553601_4FGL_J1608.7+1029_daily_bin1192.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/54913/ft2_4FGL_J1608.7+1029_daily_bin1192.fits
.....................!
real 12.45
user 12.10
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/54913/ft1_filtered_4FGL_J1608.7+1029_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/54913/ft2_4FGL_J1608.7+1029_daily_bin1192.fits sctable="SC_DATA" expcube=/scratch/kocevski/54913/ltcube_548294401_548553601_4FGL_J1608.7+1029_daily_bin1192.fits outfile=/scratch/kocevski/54913/expmap_548294401_548553601_4FGL_J1608.7+1029_daily_bin1192.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/54913/ltcube_548294401_548553601_4FGL_J1608.7+1029_daily_bin1192.fits
.....................!
real 195.63
user 189.92
sys 5.06

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/54913/ft1_filtered_4FGL_J1608.7+1029_daily_bin1192.fits scfile=/scratch/kocevski/54913/ft2_4FGL_J1608.7+1029_daily_bin1192.fits outfile=/scratch/kocevski/54913/cmap_548294401_548553601_4FGL_J1608.7+1029_daily_bin1192.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/54913/ft1_filtered_4FGL_J1608.7+1029_daily_bin1192.fits scfile=/scratch/kocevski/54913/ft2_4FGL_J1608.7+1029_daily_bin1192.fits outfile=/scratch/kocevski/54913/cmap_HighResolution_548294401_548553601_4FGL_J1608.7+1029_daily_bin1192.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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/54913/ft1_filtered_4FGL_J1608.7+1029_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/54913/ft2_4FGL_J1608.7+1029_daily_bin1192.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/54913/Model_4FGL_J1608.7+1029_daily_bin1192.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/54913/ft1_filtered_4FGL_J1608.7+1029_daily_bin1192.fits.....................!
real 57.51
user 56.20
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27029E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.9263       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.3484       1.0000         .10000E-03   10000.    
    11 'norm      '    17.549       1.0000         .10000E-03   10000.    
    12 'norm      '    65.860       1.0000         .10000E-03   10000.    
    13 'Prefactor '    48.685       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8425       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .77419       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1675       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=   6500.808     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2189 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.408       -.97690E-05** at limit **
   2  Prefactor     .10000E-03    20.287        .48789E-05** at limit **
   3  Prefactor     .10000E-03    43.503        .29141E-04** at limit **
   4  norm          .10000E-03    1.4144       -.55727E-08** at limit **
   5  Prefactor     .10001E-03    2.4437       -.89619E-06** at limit **
   6  Prefactor     .10000E-03    21.188        .30719E-05** at limit **
   7  norm          7.9277        5.4390        .37966E-05   -.10775E-03
   8  Prefactor     .10000E-03    75.780       -.21483E-04** at limit **
   9  norm          .10000E-03    18.049        .38405E-05** at limit **
  10  norm          4.3482        2.3606       -.88356E-09   -.73645E-04
  11  norm          17.546        18.401       -.43820E-06   -.40442E-05
  12  norm          65.829        104.98       -.35476E-04   -.16324E-05
  13  Prefactor     48.664        48.741       -.20655E-04   -.11704E-05
  14  Prefactor     .10000E-03    29.285       -.13076E-04** at limit **
  15  Prefactor     .10000E-03    14.587       -.24201E-05** at limit **
  16  Prefactor     .10000E-03    3.5448       -.29499E-06** at limit **
  17  Prefactor     .10000E-03    3.6608       -.11104E-06** at limit **
  18  Prefactor     2.8390        7.1126        .55067E-05   -.38335E-03
  19  Prefactor     .10000E-03    2.6278       -.14436E-06** at limit **
  20  Normalizat    .77401        .32854       -.12869E-05    .19596E-04
  21  Prefactor     1.1677        .12689        .40201E-06    .10546E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 7.92772
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.34816
  norm       = 17.5461
  norm       = 65.8292
  Prefactor  = 48.6641
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.83904
  Prefactor  = 0.0001
  Normalizat = 0.774009
  Prefactor  = 1.1677
 **********
 **   18 **HESSE 
 **********

 FCN=   6500.808     FROM HESSE     STATUS=OK           313 CALLS     2502 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    43.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.4175        .93639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    8.8080        .23755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.9277        5.3866        .14242E-03   -1.5145    
   8  Prefactor     .10000E-03    75.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    18.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.3482        2.3585        .88751E-04   -1.5291    
  11  norm          17.546        18.397        .95607E-04   -1.4870    
  12  norm          65.829        105.33        .24727E-03   -1.4083    
  13  Prefactor     48.664        48.833        .57471E-04   -1.4312    
  14  Prefactor     .10000E-03    29.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.5526        .14824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.6760        .15063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.8390        7.0319        .24118E-03   -1.5371    
  19  Prefactor     .10000E-03    2.6411        .12761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .77401        .36930        .48858E-03   -1.0104    
  21  Prefactor     1.1677        .14527        .16005E-03   -.87331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.51085e-10
Minuit parameter uncertainties:
  1  1.22478e-06
  2  5.33635e-06
  3  0.000459098
  4  6.80196e-07
  5  0.000442646
  6  9.18854e-06
  7  5.3869
  8  0.000116767
  9  8.89557e-07
  10  2.35856
  11  18.4034
  12  105.63
  13  48.8728
  14  5.29034e-06
  15  3.51146e-06
  16  1.77924e-06
  17  7.77685e-06
  18  7.03391
  19  9.99342e-06
  20  0.370502
  21  0.145315
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.755e+01  1.840e+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.168e+00  1.453e-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:  7.740e-01  3.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.78
Ra Dec: 242.176 10.494
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 5.60e-08 +/- 5.87e-08
Energy Flux (Fixed Index): 1.60e-05 +/- 1.68e-05

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

Saving results to:
/scratch/kocevski/54913/likelihoodResults_548294401_548553601_4FGL_J1608.7+1029_daily_bin1192.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) = 6499.94768057
delta logL = 0.860742484289

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6499.94361416
delta logL = 0.864808891149

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0597       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .51918       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2432       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=   6499.944     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      329 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0590        3.2978         .0000        .61193E-03
   2  alpha         5.0000        3.4515         .0000    ** at limit **
   3  Normalizat    .51928        .40028         .0000        .10723E-03
   4  Prefactor     1.2432        .15161         .0000       -.30769E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.05902
  alpha      = 5
  Normalizat = 0.519279
  Prefactor  = 1.24316
 **********
 **   18 **HESSE 
 **********

 FCN=   6499.944     FROM HESSE     STATUS=OK            33 CALLS      362 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0590        1.9564        .78582E-04   -1.5358    
   2  alpha         5.0000        3.3187        .57081E-01    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .51928        .39679        .58937E-03   -1.1153    
   4  Prefactor     1.2432        .15187        .15571E-03   -.85013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9649e-08
Minuit parameter uncertainties:
  1  1.95642
  2  0.000520724
  3  0.398981
  4  0.151925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/54913': 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) = 6499.94361405
delta logL = 0.864809003264

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  3.059e+00  1.956e+00  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  5.000e+00  5.207e-04  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.243e+00  1.519e-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:  5.193e-01  3.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.18
Ra Dec: 242.176 10.494
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 2.12e-07 +/- 1.35e-07
Energy Flux (Free Index): 2.91e-05 +/- 1.85e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/54913/cmap_HighResolution_548294401_548553601_4FGL_J1608.7+1029_daily_bin1192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.60e-05', comment='SUCCESS', photon_flux='5.60e-08', energy_flux2='2.91e-05', photon_flux_error='5.87e-08', dlogl='8.65e-01', energy_flux='1.60e-05', photon_flux2='2.12e-07', job_status='DONE', time_completed='2021-09-13 09:55:41.396278', photon_index_error2='0.00', photon_index2='5.00', ts='1.78', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.96e-07', energy_flux_error2='1.85e-05', EG='0.77', time_epoch_completed='1631552141.4', return_code='0', job_id='54913', GAL2='1.24', EG2='0.52', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='1.35e-07', ts2='4.18', photon_index='2.46' WHERE bin_id='1192' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:55:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 54913: <4FGL_J1608.7+1029_daily_bin1192> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin1192 242.176 10.4938 548294401 548553601 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 :                                   601.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            922 sec.

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

