/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 4 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 = 7408
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1608.7+1029_daily_bin187
RA = 242.176, Dec = 10.4938
tmin = 287798401, tmax = 288057601
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='47292', job_status='RUN', time_executed='2021-09-13 09:18:38.716478', time_epoch_executed='1631549918.72' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='187'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/47292

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/47292/ft1_4FGL_J1608.7+1029_daily_bin187.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/47292/ft2_4FGL_J1608.7+1029_daily_bin187.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/47292/ft1_4FGL_J1608.7+1029_daily_bin187.fits outfile=/scratch/kocevski/47292/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin187.fits ra=242.176 dec=10.4938 rad=12.0 tmin=287798401.0 tmax=288057601.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.80
user 3.38
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/47292/ft1_filtered_4FGL_J1608.7+1029_daily_bin187.fits" evtable="EVENTS" scfile=/scratch/kocevski/47292/ft2_4FGL_J1608.7+1029_daily_bin187.fits sctable="SC_DATA" outfile=/scratch/kocevski/47292/ltcube_287798401_288057601_4FGL_J1608.7+1029_daily_bin187.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/47292/ft2_4FGL_J1608.7+1029_daily_bin187.fits
.....................!
real 13.96
user 13.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/47292/ft1_filtered_4FGL_J1608.7+1029_daily_bin187.fits evtable="EVENTS" scfile=/scratch/kocevski/47292/ft2_4FGL_J1608.7+1029_daily_bin187.fits sctable="SC_DATA" expcube=/scratch/kocevski/47292/ltcube_287798401_288057601_4FGL_J1608.7+1029_daily_bin187.fits outfile=/scratch/kocevski/47292/expmap_287798401_288057601_4FGL_J1608.7+1029_daily_bin187.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/47292/ltcube_287798401_288057601_4FGL_J1608.7+1029_daily_bin187.fits
.....................!
real 191.59
user 185.95
sys 4.99

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/47292/ft1_filtered_4FGL_J1608.7+1029_daily_bin187.fits scfile=/scratch/kocevski/47292/ft2_4FGL_J1608.7+1029_daily_bin187.fits outfile=/scratch/kocevski/47292/cmap_287798401_288057601_4FGL_J1608.7+1029_daily_bin187.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.61
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/47292/ft1_filtered_4FGL_J1608.7+1029_daily_bin187.fits scfile=/scratch/kocevski/47292/ft2_4FGL_J1608.7+1029_daily_bin187.fits outfile=/scratch/kocevski/47292/cmap_HighResolution_287798401_288057601_4FGL_J1608.7+1029_daily_bin187.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8059       1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.695       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .30069       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0952       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .61208       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.366       1.0000         .10000E-03   10000.    
     9 'norm      '    2.0519       1.0000         .10000E-03   10000.    
    10 'norm      '    4.9863       1.0000         .10000E-03   10000.    
    11 'norm      '    64.857       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.685       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1797       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3282       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .96398       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0839       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=   9796.611     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2244 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8083        20.046        .24089E-05    .11746E-05
   2  Prefactor     45.701        36.938        .49912E-05    .19786E-04
   3  Prefactor     .10000E-03    20.543        .22948E-07** at limit **
   4  norm          .29925        2.6588       -.42264E-06   -.52768E-03
   5  Prefactor     5.0957        3.7200       -.16769E-06   -.98563E-04
   6  Prefactor     .10000E-03    9.1395        .47377E-05** at limit **
   7  norm          .61239        1.6851        .14760E-06   -.98374E-04
   8  Prefactor     11.365        52.794       -.28884E-05   -.42496E-05
   9  norm          2.0556        4.0646        .91108E-06   -.10401E-02
  10  norm          4.9854        2.0181       -.24349E-07    .47870E-05
  11  norm          64.857        21.284        .10808E-06    .88738E-05
  12  norm          .10000E-03    27.250        .78048E-05** at limit **
  13  Prefactor     10.690        16.975        .20411E-05    .74833E-05
  14  Prefactor     .10000E-03    30.682       -.77048E-05** at limit **
  15  Prefactor     .10000E-03    9.7737       -.49863E-05** at limit **
  16  Prefactor     .10000E-03    5.8960       -.68511E-06** at limit **
  17  Prefactor     .10000E-03    5.1090        .38843E-06** at limit **
  18  Prefactor     2.1789        5.7286        .10762E-06   -.68776E-04
  19  Prefactor     3.3274        4.2568       -.13710E-05   -.93518E-04
  20  Normalizat    .96347        .24667       -.19889E-05    .53097E-04
  21  Prefactor     1.0841        .99844E-01    .40940E-06   -.50202E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.80827
  Prefactor  = 45.7006
  Prefactor  = 0.0001
  norm       = 0.299246
  Prefactor  = 5.0957
  Prefactor  = 0.0001
  norm       = 0.612388
  Prefactor  = 11.365
  norm       = 2.05555
  norm       = 4.98536
  norm       = 64.8569
  norm       = 0.0001
  Prefactor  = 10.6896
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.17889
  Prefactor  = 3.32739
  Normalizat = 0.963471
  Prefactor  = 1.08406
 **********
 **   18 **HESSE 
 **********

 FCN=   9796.611     FROM HESSE     STATUS=OK           323 CALLS     2567 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8083        20.031        .16668E-03   -1.5226    
   2  Prefactor     45.701        36.939        .59312E-04   -1.4355    
   3  Prefactor     .10000E-03    20.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .29925        2.6890        .30525E-03   -1.5599    
   5  Prefactor     5.0957        3.7058        .15501E-03   -1.5256    
   6  Prefactor     .10000E-03    9.1214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .61239        1.6753        .20553E-03   -1.5551    
   8  Prefactor     11.365        52.739        .11883E-03   -1.5034    
   9  norm          2.0556        11.542        .14429E-02   -1.5421    
  10  norm          4.9854        2.0484        .86214E-04   -1.5261    
  11  norm          64.857        21.377        .49832E-04   -1.4096    
  12  norm          .10000E-03    27.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.690        17.001        .12257E-03   -1.5054    
  14  Prefactor     .10000E-03    30.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.7832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.9418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.1785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.1789        5.7361        .27885E-03   -1.5413    
  19  Prefactor     3.3274        4.2544        .22188E-03   -1.5343    
  20  Normalizat    .96347        .28900        .42020E-03   -.94264    
  21  Prefactor     1.0841        .11722        .16959E-03   -.89978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.07349e-09
Minuit parameter uncertainties:
  1  20.0544
  2  36.9577
  3  6.81618e-06
  4  1.79388
  5  3.70594
  6  1.16641e-05
  7  1.67544
  8  49.0351
  9  9.7445
  10  2.04846
  11  21.3792
  12  7.85385e-05
  13  17.0087
  14  7.03579e-05
  15  2.23442e-05
  16  7.04602e-06
  17  9.68603e-06
  18  5.73754
  19  4.25483
  20  0.289466
  21  0.117245
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  6.486e+01  2.138e+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.084e+00  1.172e-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:  9.635e-01  2.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.13
Ra Dec: 242.176 10.494
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 2.07e-07 +/- 6.82e-08
Energy Flux (Fixed Index): 5.91e-05 +/- 1.95e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9793.91631345
delta logL = 2.69504367693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9793.91410787
delta logL = 2.69724925468

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    39.823       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3952       1.0000          .0000       5.0000    
     3 'Normalizat'    .77490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1392       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=   9793.914     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      269 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          39.843        132.64        .15879E-02    .18729E-04
   2  alpha         3.3956        3.9190        .20890        .73207E-04
   3  Normalizat    .77487        .14258        .10438        .49145E-04
   4  Prefactor     1.1391        .58061E-01    .36256E-01   -.80970E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 39.8428
  alpha      = 3.39563
  Normalizat = 0.774866
  Prefactor  = 1.13915
 **********
 **   18 **HESSE 
 **********

 FCN=   9793.914     FROM HESSE     STATUS=OK            31 CALLS      300 TOTAL
                     EDM=   .43E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          39.843        20.220        .63518E-04   -1.4445    
   2  alpha         3.3956        .45230        .90923E-03    .36639    
   3  Normalizat    .77487        .28609        .46264E-03   -1.0101    
   4  Prefactor     1.1391        .11894        .16579E-03   -.88225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26363e-14
Minuit parameter uncertainties:
  1  20.2234
  2  0.455182
  3  0.286645
  4  0.118972
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/47292': 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) = 9793.91410098
delta logL = 2.69725614512

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  3.984e+01  2.022e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  3.396e+00  4.552e-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.139e+00  1.190e-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.749e-01  2.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.89
Ra Dec: 242.176 10.494
Photon Index (Free Index): 3.40 +/- 0.46
Photon Flux (Free Index): 3.45e-07 +/- 1.00e-07
Energy Flux (Free Index): 6.25e-05 +/- 1.69e-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/47292/cmap_HighResolution_287798401_288057601_4FGL_J1608.7+1029_daily_bin187.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.07e-07', energy_flux2='6.25e-05', photon_flux_error='6.82e-08', dlogl='2.70e+00', energy_flux='5.91e-05', photon_flux2='3.45e-07', job_status='DONE', time_completed='2021-09-13 09:29:59.323359', photon_index_error2='0.46', photon_index2='3.40', ts='19.13', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.69e-05', EG='0.96', time_epoch_completed='1631550599.32', return_code='0', job_id='47292', GAL2='1.14', EG2='0.77', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='1.00e-07', ts2='25.89', photon_index='2.46' WHERE bin_id='187' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:29:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 47292: <4FGL_J1608.7+1029_daily_bin187> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin187> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep 13 09:15:29 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 09:18:25 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:18:25 2021
Terminated at Mon Sep 13 09:30:00 2021
Results reported at Mon Sep 13 09:30:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin187 242.176 10.4938 287798401 288057601 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 :                                   679.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             387.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            871 sec.

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

