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


Performing analysis on: 4FGL_J1608.7+1029_daily_bin1315
RA = 242.176, Dec = 10.4938
tmin = 580176001, tmax = 580435201
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='55097', job_status='RUN', time_executed='2021-09-13 09:45:19.228474', time_epoch_executed='1631551519.23' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='1315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55097

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55097/ft1_4FGL_J1608.7+1029_daily_bin1315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55097/ft2_4FGL_J1608.7+1029_daily_bin1315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55097/ft1_4FGL_J1608.7+1029_daily_bin1315.fits outfile=/scratch/kocevski/55097/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1315.fits ra=242.176 dec=10.4938 rad=12.0 tmin=580176001.0 tmax=580435201.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 4.66
user 4.40
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/55097/ft2_4FGL_J1608.7+1029_daily_bin1315.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/55097/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1315.fits evtable="EVENTS" outfile="/scratch/kocevski/55097/ft1_filtered_4FGL_J1608.7+1029_daily_bin1315.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.36
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55097/ft1_filtered_4FGL_J1608.7+1029_daily_bin1315.fits" evtable="EVENTS" scfile=/scratch/kocevski/55097/ft2_4FGL_J1608.7+1029_daily_bin1315.fits sctable="SC_DATA" outfile=/scratch/kocevski/55097/ltcube_580176001_580435201_4FGL_J1608.7+1029_daily_bin1315.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/55097/ft2_4FGL_J1608.7+1029_daily_bin1315.fits
.....................!
real 13.41
user 12.90
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55097/ft1_filtered_4FGL_J1608.7+1029_daily_bin1315.fits evtable="EVENTS" scfile=/scratch/kocevski/55097/ft2_4FGL_J1608.7+1029_daily_bin1315.fits sctable="SC_DATA" expcube=/scratch/kocevski/55097/ltcube_580176001_580435201_4FGL_J1608.7+1029_daily_bin1315.fits outfile=/scratch/kocevski/55097/expmap_580176001_580435201_4FGL_J1608.7+1029_daily_bin1315.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/55097/ltcube_580176001_580435201_4FGL_J1608.7+1029_daily_bin1315.fits
.....................!
real 193.02
user 187.70
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/55097/ft1_filtered_4FGL_J1608.7+1029_daily_bin1315.fits scfile=/scratch/kocevski/55097/ft2_4FGL_J1608.7+1029_daily_bin1315.fits outfile=/scratch/kocevski/55097/cmap_580176001_580435201_4FGL_J1608.7+1029_daily_bin1315.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57838       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.504       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.0952       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.3520       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12739E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    36.601       1.0000         .10000E-03   10000.    
    10 'norm      '    5.0369       1.0000         .10000E-03   10000.    
    11 'norm      '    13.913       1.0000         .10000E-03   10000.    
    12 'norm      '    .17684E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9667       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3643       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.1823       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.9853       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10422       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.7106       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .83462       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1481       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=   7786.763     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     1956 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32348        43.538       -.62585E-05   -.23647E-04
   2  Prefactor     31.474        32.732        .26558E-04    .12127E-03
   3  Prefactor     .10000E-03    10.763       -.77295E-07** at limit **
   4  norm          5.0936        3.7376       -.76788E-06   -.26916E-04
   5  Prefactor     9.3477        6.0257       -.15179E-06   -.13650E-03
   6  Prefactor     .10000E-03    42.362       -.13258E-04** at limit **
   7  norm          .10000E-03    1.7519       -.10232E-07** at limit **
   8  Prefactor     .10000E-03    36.623        .33883E-05** at limit **
   9  norm          36.594        14.255       -.25288E-06    .20683E-03
  10  norm          5.0365        2.0422       -.60306E-08    .20231E-03
  11  norm          13.916        16.429        .21762E-05    .77929E-04
  12  norm          .10000E-03    104.89       -.35857E-04** at limit **
  13  Prefactor     2.9469        27.442        .27750E-05   -.67349E-04
  14  Prefactor     .10000E-03    51.376        .14913E-04** at limit **
  15  Prefactor     2.4258        80.862       -.11393E-03   -.32293E-05
  16  Prefactor     6.1799        10.351        .16974E-05    .35883E-03
  17  Prefactor     6.9866        7.0009        .76977E-06    .22807E-03
  18  Prefactor     .21617E-02    7.2496       -.11469E-05** at limit **
  19  Prefactor     8.7273        10.115        .37138E-05    .23787E-03
  20  Normalizat    .83523        .30811       -.21153E-05    .48135E-03
  21  Prefactor     1.1482        .12004        .13129E-05    .88140E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.323483
  Prefactor  = 31.4739
  Prefactor  = 0.0001
  norm       = 5.09359
  Prefactor  = 9.34773
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 36.5943
  norm       = 5.03647
  norm       = 13.9157
  norm       = 0.0001
  Prefactor  = 2.94689
  Prefactor  = 0.0001
  Prefactor  = 2.42582
  Prefactor  = 6.17994
  Prefactor  = 6.9866
  Prefactor  = 0.00216168
  Prefactor  = 8.72729
  Normalizat = 0.835234
  Prefactor  = 1.14822
 **********
 **   18 **HESSE 
 **********

 FCN=   7786.763     FROM HESSE     STATUS=OK           335 CALLS     2291 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32348        45.627        .15450       -1.5594    
   2  Prefactor     31.474        32.756        .71386E-04   -1.4585    
   3  Prefactor     .10000E-03    10.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.0936        3.7296        .13812E-03   -1.5257    
   5  Prefactor     9.3477        6.0197        .13105E-03   -1.5096    
   6  Prefactor     .10000E-03    42.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.7691        .11403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    36.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          36.594        14.260        .66245E-04   -1.4497    
  10  norm          5.0365        2.0428        .77732E-04   -1.5259    
  11  norm          13.916        16.416        .10738E-03   -1.4962    
  12  norm          .10000E-03    105.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9469        27.378        .23574E-03   -1.5365    
  14  Prefactor     .10000E-03    51.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.4258        81.793        .26650E-03   -1.5396    
  16  Prefactor     6.1799        10.301        .16146E-03   -1.5211    
  17  Prefactor     6.9866        6.9935        .15179E-03   -1.5179    
  18  Prefactor     .21617E-02    13.285        .65419E-01   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.7273        10.106        .13581E-03   -1.5117    
  20  Normalizat    .83523        .34416        .47090E-03   -.98775    
  21  Prefactor     1.1482        .13673        .17250E-03   -.87940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68277e-09
Minuit parameter uncertainties:
  1  7.68842
  2  32.7744
  3  1.30898e-06
  4  3.72973
  5  6.02007
  6  0.000641856
  7  8.78311e-07
  8  7.27414e-06
  9  14.2616
  10  2.04281
  11  16.4214
  12  5.19914e-05
  13  17.975
  14  1.64478e-06
  15  28.2134
  16  10.3043
  17  6.99434
  18  0.33107
  19  10.1077
  20  0.34506
  21  0.136775
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.392e+01  1.642e+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.148e+00  1.368e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  8.352e-01  3.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/55097/likelihoodResults_580176001_580435201_4FGL_J1608.7+1029_daily_bin1315.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) = 7786.4232705
delta logL = 0.339996130449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7786.40227607
delta logL = 0.360990562731

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.495       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4168       1.0000          .0000       5.0000    
     3 'Normalizat'    .87195       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1382       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=   7786.402     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      218 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.508        11.104        .30920E-02    .20329E-04
   2  alpha         1.4180        .60175        .47587       -.49861E-04
   3  Normalizat    .87241        .27586        .10416        .33124E-04
   4  Prefactor     1.1380        .11724        .36288E-01   -.68559E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.508
  alpha      = 1.41799
  Normalizat = 0.872412
  Prefactor  = 1.13802
 **********
 **   18 **HESSE 
 **********

 FCN=   7786.402     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.508        14.641        .12368E-03   -1.5060    
   2  alpha         1.4180        .93989        .23193E-01   -.44760    
   3  Normalizat    .87241        .31256        .46165E-03   -.97436    
   4  Prefactor     1.1380        .13333        .17312E-03   -.88261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18305e-11
Minuit parameter uncertainties:
  1  14.6461
  2  0.96952
  3  0.313213
  4  0.133365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55097': 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) = 7786.40227418
delta logL = 0.360992451138

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.051e+01  1.465e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  1.418e+00  9.695e-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.138e+00  1.334e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  8.724e-01  3.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.70
Ra Dec: 242.176 10.494
Photon Index (Free Index): 1.42 +/- 0.97
Photon Flux (Free Index): 1.83e-08 +/- 2.68e-08
Energy Flux (Free Index): 2.04e-05 +/- 2.76e-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/55097/cmap_HighResolution_580176001_580435201_4FGL_J1608.7+1029_daily_bin1315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.64e-05', comment='SUCCESS', energy_flux2='2.04e-05', dlogl='3.61e-01', photon_flux2='1.83e-08', job_status='DONE', time_completed='2021-09-13 09:56:00.735828', photon_index_error2='0.97', photon_index2='1.42', ts='0.98', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='2.76e-05', EG='0.84', time_epoch_completed='1631552160.74', return_code='0', job_id='55097', GAL2='1.14', EG2='0.87', return_code2='0', photon_flux_error2='2.68e-08', ts2='1.70', photon_index='2.46' WHERE bin_id='1315' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:56:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 55097: <4FGL_J1608.7+1029_daily_bin1315> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin1315 242.176 10.4938 580176001 580435201 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 :                                   638.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             290.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            928 sec.

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

