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


Performing analysis on: 4FGL_J1608.0+4949_daily_bin678
RA = 242.014, Dec = 49.829
tmin = 415065601, tmax = 415324801
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='39107', job_status='RUN', time_executed='2021-09-13 08:54:02.962009', time_epoch_executed='1631548442.96' WHERE source_name='4FGL J1608.0+4949' and cadence='daily' and bin_id='678'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/39107

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/39107/ft1_4FGL_J1608.0+4949_daily_bin678.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/39107/ft2_4FGL_J1608.0+4949_daily_bin678.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/39107/ft1_4FGL_J1608.0+4949_daily_bin678.fits outfile=/scratch/kocevski/39107/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin678.fits ra=242.014 dec=49.829 rad=12.0 tmin=415065601.0 tmax=415324801.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.66
user 3.45
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/39107/ft2_4FGL_J1608.0+4949_daily_bin678.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/39107/ft2_4FGL_J1608.0+4949_daily_bin678.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/39107/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin678.fits evtable="EVENTS" outfile="/scratch/kocevski/39107/ft1_filtered_4FGL_J1608.0+4949_daily_bin678.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/39107/ft1_filtered_4FGL_J1608.0+4949_daily_bin678.fits" evtable="EVENTS" scfile=/scratch/kocevski/39107/ft2_4FGL_J1608.0+4949_daily_bin678.fits sctable="SC_DATA" outfile=/scratch/kocevski/39107/ltcube_415065601_415324801_4FGL_J1608.0+4949_daily_bin678.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/39107/ft2_4FGL_J1608.0+4949_daily_bin678.fits
.....................!
real 12.89
user 12.55
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/39107/ft1_filtered_4FGL_J1608.0+4949_daily_bin678.fits evtable="EVENTS" scfile=/scratch/kocevski/39107/ft2_4FGL_J1608.0+4949_daily_bin678.fits sctable="SC_DATA" expcube=/scratch/kocevski/39107/ltcube_415065601_415324801_4FGL_J1608.0+4949_daily_bin678.fits outfile=/scratch/kocevski/39107/expmap_415065601_415324801_4FGL_J1608.0+4949_daily_bin678.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/39107/ltcube_415065601_415324801_4FGL_J1608.0+4949_daily_bin678.fits
.....................!
real 191.66
user 186.09
sys 4.78

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 212 point sources and 0 extended sources

Setting source of interest to:
4FGL J1608.0+4949 @ 242.014 49.829

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/39107/ft1_filtered_4FGL_J1608.0+4949_daily_bin678.fits scfile=/scratch/kocevski/39107/ft2_4FGL_J1608.0+4949_daily_bin678.fits outfile=/scratch/kocevski/39107/cmap_415065601_415324801_4FGL_J1608.0+4949_daily_bin678.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.014 yref=49.829 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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/39107/ft1_filtered_4FGL_J1608.0+4949_daily_bin678.fits scfile=/scratch/kocevski/39107/ft2_4FGL_J1608.0+4949_daily_bin678.fits outfile=/scratch/kocevski/39107/cmap_HighResolution_415065601_415324801_4FGL_J1608.0+4949_daily_bin678.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.014 yref=49.829 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/39107/ft1_filtered_4FGL_J1608.0+4949_daily_bin678.fits evtable="EVENTS" scfile=/scratch/kocevski/39107/ft2_4FGL_J1608.0+4949_daily_bin678.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/39107/Model_4FGL_J1608.0+4949_daily_bin678.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/39107/ft1_filtered_4FGL_J1608.0+4949_daily_bin678.fits.!
real 13.54
user 12.19
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/39107/ft1_filtered_4FGL_J1608.0+4949_daily_bin678.fits', '/scratch/kocevski/39107/ft2_4FGL_J1608.0+4949_daily_bin678.fits', expMap='/scratch/kocevski/39107/expmap_415065601_415324801_4FGL_J1608.0+4949_daily_bin678.fits', expCube='/scratch/kocevski/39107/ltcube_415065601_415324801_4FGL_J1608.0+4949_daily_bin678.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/39107/Model_4FGL_J1608.0+4949_daily_bin678.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1608.0+4949'

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  4.577e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  2.267e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  1.615e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/39107/ft1_filtered_4FGL_J1608.0+4949_daily_bin678.fits
Spacecraft file(s): /scratch/kocevski/39107/ft2_4FGL_J1608.0+4949_daily_bin678.fits
Exposure map: /scratch/kocevski/39107/expmap_415065601_415324801_4FGL_J1608.0+4949_daily_bin678.fits
Exposure cube: /scratch/kocevski/39107/ltcube_415065601_415324801_4FGL_J1608.0+4949_daily_bin678.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/39107/Model_4FGL_J1608.0+4949_daily_bin678.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) = 13.7814023624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10813E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1062.7       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .14890E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .27669E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10195E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10308E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .64786E-08   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12.57117     FROM MIGRAD    STATUS=CONVERGED    759 CALLS     3597 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    738.27       -.33279E-03** at limit **
   2  norm          .10000E-03    81.462        .54780E-04** at limit **
   3  Prefactor     .10000E-03    948.57       -.57283E-03** at limit **
   4  Prefactor     .10000E-03    175.62       -.11018E-04** at limit **
   5  Prefactor     1062.9        1183.9        .47660E-04    .17117E-04
   6  norm          .10000E-03    89.482        .38025E-04** at limit **
   7  Prefactor     .10000E-03    175.09       -.12526E-04** at limit **
   8  Prefactor     .10000E-03    403.57        .12876E-03** at limit **
   9  Prefactor     .10000E-03    217.46        .10112E-03** at limit **
  10  Prefactor     .10000E-03    431.20        .95593E-04** at limit **
  11  Prefactor     .10000E-03    417.23        .11269E-03** at limit **
  12  norm          .10000E-03    558.58       -.84093E-04** at limit **
  13  Prefactor     .10001E-03    8474.1       -.91596E-03** at limit **
  14  Prefactor     .10000E-03    1414.5       -.93362E-03** at limit **
  15  Prefactor     .10000E-03    122.26       -.90477E-04** at limit **
  16  Prefactor     .10000E-03    347.58        .17940E-03** at limit **
  17  Prefactor     .10000E-03    160.04       -.54095E-04** at limit **
  18  Prefactor     .10000E-03    45.127        .18973E-04** at limit **
  19  norm          .10000E-03    650.33       -.21516E-03** at limit **
  20  norm          .10000E-03    471.53        .41733E-04** at limit **
  21  Prefactor     .10000E-03    68.921       -.49364E-04** at limit **
  22  Prefactor     .10000E-03    362.23        .16895E-03** at limit **
  23  norm          .10000E-03    760.04       -.36035E-03** at limit **
  24  Prefactor     .10000E-03    17.113       -.13934E-09** at limit **
  25  Prefactor     .10000E-03    18.975        .31225E-07** at limit **
  26  Prefactor     .10000E-03    73.491        .15495E-04** at limit **
  27  Prefactor     .10000E-03    45.345       -.17806E-04** at limit **
  28  Prefactor     .10000E-03    444.89        .77894E-04** at limit **
  29  norm          .10000E-03    21.130       -.39731E-07** at limit **
  30  Prefactor     .10000E-03    164.49       -.42392E-04** at limit **
  31  Normalizat    .10000E-01    .65561       -.57838E-06** at limit **
  32  Prefactor     .16381E-11    .72336       -.76628E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1062.85
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.63813e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   12.57117     FROM HESSE     STATUS=OK           625 CALLS     4222 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    738.25        .97152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    81.460        .31910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    948.62        .11054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    175.62        .46927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1062.9        1184.0        .64896E-04   -.90663    
   6  norm          .10000E-03    89.481        .33448E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    175.09        .46856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    403.56        .71414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    217.46        .52256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    431.20        .73853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    417.19        .72627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    558.56        .84243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    8473.7        .19914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1414.4        .13613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    122.26        .39119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    347.57        .66211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    160.04        .44785E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    45.126        .23736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    650.32        .91043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    471.53        .77283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    68.920        .29345E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    362.22        .67608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    760.02        .98613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    17.113        .14610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    18.974        .15384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    73.490        .30304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    45.345        .23793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    444.89        .75034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    21.130        .16235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    164.49        .45407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10000E-01    .65553        .91464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .16381E-11    .72327        .96135E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04845e-11
Minuit parameter uncertainties:
  1  1.36289e-05
  2  7.79124e-06
  3  0.000929977
  4  1.50917e-06
  5  1215.2
  6  4.05343e-08
  7  3.0532e-07
  8  1.61171e-06
  9  8.92616e-07
  10  1.21043e-06
  11  0.000371623
  12  0.000684135
  13  0.0183937
  14  3.06902e-05
  15  1.02844e-06
  16  1.99829e-06
  17  3.22038e-06
  18  7.15654e-08
  19  1.03803e-05
  20  5.07319e-07
  21  3.94673e-07
  22  2.00806e-05
  23  6.87712e-06
  24  5.06695e-09
  25  6.0382e-09
  26  1.78146e-07
  27  9.83118e-08
  28  1.59161e-06
  29  5.8772e-08
  30  4.26029e-07
  31  1.34748e-06
  32  2.20411e-06
Done.

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

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  3.069e-05  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  2.267e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  1.615e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  1.638e-12  2.204e-06  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  1.000e-02  1.347e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 242.014 49.829
Photon Flux Upper Limit: 3.21e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.46e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/39107/likelihoodResults_415065601_415324801_4FGL_J1608.0+4949_daily_bin678.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): 102
logL (Free Index) = 12.5711755898
delta logL = -3.23905743116e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12.5711755873
delta logL = -3.23656376366e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96224E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2669       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .28832E-07   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+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=   12.57117     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      210 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    707.43        .13614E-01** at limit **
   2  Index         2.5136        8.3180        .50000        .40406E-06
   3  Normalizat    .10000E-01    .99696E-03    .91462E-03** at limit **
   4  Prefactor     .41818E-10    .11026E-02    .96132E-03** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100118
  Index      = 2.51365
  Normalizat = 0.01
  Prefactor  = 4.18182e-11
 **********
 **   18 **HESSE 
 **********

 FCN=   12.57117     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      239 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10012E-03    8227.3        .11023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5136        6.2421        .50000       -.52045    
   3  Normalizat    .10000E-01    .12166E-01    .18292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .41818E-10    .13458E-01    .19226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.51644e-08
Minuit parameter uncertainties:
  1  0.0640987
  2  2055.59
  3  1.05214e-06
  4  1.5007e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/39107': 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): 102
logL (Free Index) = 12.5711723685
delta logL = -1.77533223678e-08

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.001e-04  6.410e-02  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  2.514e+00  2.056e+03  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  1.615e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  4.182e-11  1.501e-06  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  1.000e-02  1.052e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 242.014 49.829

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/39107/cmap_HighResolution_415065601_415324801_4FGL_J1608.0+4949_daily_bin678.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.46e-01', job_status='DONE', photon_flux_upper_limit='3.21e-06', time_completed='2021-09-13 08:59:43.243527', job_id='39107', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631548783.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='-1.78e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='678' AND source_name='4FGL J1608.0+4949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 08:59:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 39107: <4FGL_J1608.0+4949_daily_bin678> in cluster <slac> Done

Job <4FGL_J1608.0+4949_daily_bin678> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 08:50:22 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 08:50:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 13 08:50:51 2021
Terminated at Mon Sep 13 08:59:44 2021
Results reported at Mon Sep 13 08:59:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.0+4949_daily_bin678 242.014 49.829 415065601 415324801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1608.0+4949 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   339.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   532 sec.
    Turnaround time :                            562 sec.

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

