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


Performing analysis on: 4FGL_J1608.0+4949_daily_bin711
RA = 242.014, Dec = 49.829
tmin = 423619201, tmax = 423878401
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='39152', job_status='RUN', time_executed='2021-09-13 08:51:20.449448', time_epoch_executed='1631548280.45' WHERE source_name='4FGL J1608.0+4949' and cadence='daily' and bin_id='711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/39152

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/39152/ft1_4FGL_J1608.0+4949_daily_bin711.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/39152/ft2_4FGL_J1608.0+4949_daily_bin711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/39152/ft1_4FGL_J1608.0+4949_daily_bin711.fits outfile=/scratch/kocevski/39152/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin711.fits ra=242.014 dec=49.829 rad=12.0 tmin=423619201.0 tmax=423878401.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 5.79
user 5.53
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/39152/ft2_4FGL_J1608.0+4949_daily_bin711.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/39152/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin711.fits evtable="EVENTS" outfile="/scratch/kocevski/39152/ft1_filtered_4FGL_J1608.0+4949_daily_bin711.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/39152/ft1_filtered_4FGL_J1608.0+4949_daily_bin711.fits" evtable="EVENTS" scfile=/scratch/kocevski/39152/ft2_4FGL_J1608.0+4949_daily_bin711.fits sctable="SC_DATA" outfile=/scratch/kocevski/39152/ltcube_423619201_423878401_4FGL_J1608.0+4949_daily_bin711.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/39152/ft2_4FGL_J1608.0+4949_daily_bin711.fits
.....................!
real 12.59
user 11.88
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/39152/ft1_filtered_4FGL_J1608.0+4949_daily_bin711.fits evtable="EVENTS" scfile=/scratch/kocevski/39152/ft2_4FGL_J1608.0+4949_daily_bin711.fits sctable="SC_DATA" expcube=/scratch/kocevski/39152/ltcube_423619201_423878401_4FGL_J1608.0+4949_daily_bin711.fits outfile=/scratch/kocevski/39152/expmap_423619201_423878401_4FGL_J1608.0+4949_daily_bin711.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/39152/ltcube_423619201_423878401_4FGL_J1608.0+4949_daily_bin711.fits
.....................!
real 192.95
user 188.57
sys 3.94

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/39152/ft1_filtered_4FGL_J1608.0+4949_daily_bin711.fits scfile=/scratch/kocevski/39152/ft2_4FGL_J1608.0+4949_daily_bin711.fits outfile=/scratch/kocevski/39152/cmap_423619201_423878401_4FGL_J1608.0+4949_daily_bin711.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/39152/ft1_filtered_4FGL_J1608.0+4949_daily_bin711.fits scfile=/scratch/kocevski/39152/ft2_4FGL_J1608.0+4949_daily_bin711.fits outfile=/scratch/kocevski/39152/cmap_HighResolution_423619201_423878401_4FGL_J1608.0+4949_daily_bin711.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.55
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/39152/ft1_filtered_4FGL_J1608.0+4949_daily_bin711.fits', '/scratch/kocevski/39152/ft2_4FGL_J1608.0+4949_daily_bin711.fits', expMap='/scratch/kocevski/39152/expmap_423619201_423878401_4FGL_J1608.0+4949_daily_bin711.fits', expCube='/scratch/kocevski/39152/ltcube_423619201_423878401_4FGL_J1608.0+4949_daily_bin711.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/39152/Model_4FGL_J1608.0+4949_daily_bin711.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/39152/ft1_filtered_4FGL_J1608.0+4949_daily_bin711.fits
Spacecraft file(s): /scratch/kocevski/39152/ft2_4FGL_J1608.0+4949_daily_bin711.fits
Exposure map: /scratch/kocevski/39152/expmap_423619201_423878401_4FGL_J1608.0+4949_daily_bin711.fits
Exposure cube: /scratch/kocevski/39152/ltcube_423619201_423878401_4FGL_J1608.0+4949_daily_bin711.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/39152/Model_4FGL_J1608.0+4949_daily_bin711.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) = 1884.62705932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.1018       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .37222E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.9734       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12545E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10491E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .29505E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12813E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.896       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10822E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16292E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    52.690       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.5676       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.283       1.0000         .10000E-03   10000.    
    23 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.3604       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.9338       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .14432E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.5376       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .86460       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0020       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=   1884.617     FROM MIGRAD    STATUS=CONVERGED    853 CALLS     4396 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.824       -.13246E-05** at limit **
   2  norm          9.1023        6.7607        .74083E-09   -.82242E-05
   3  Prefactor     .10000E-03    26.576        .50498E-06** at limit **
   4  Prefactor     .10000E-03    9.2723        .34019E-07** at limit **
   5  Prefactor     .10003E-03    20.740        .74124E-06** at limit **
   6  norm          4.9834        14.887        .50066E-05   -.89768E-04
   7  Prefactor     .10000E-03    49.550       -.31716E-05** at limit **
   8  Prefactor     .10000E-03    99.785        .14394E-05** at limit **
   9  Prefactor     .10000E-03    150.57       -.98723E-06** at limit **
  10  Prefactor     .10001E-03    106.09        .41888E-05** at limit **
  11  Prefactor     .10000E-03    8.0686       -.86254E-06** at limit **
  12  norm          .10000E-03    5.8440       -.98969E-08** at limit **
  13  Prefactor     .10000E-03    176.46       -.57242E-06** at limit **
  14  Prefactor     .10000E-03    98.489        .11392E-05** at limit **
  15  Prefactor     17.899        13.822       -.30648E-06    .16984E-03
  16  Prefactor     .10000E-03    83.431       -.40173E-05** at limit **
  17  Prefactor     .10783E-03    17.688       -.21950E-05** at limit **
  18  Prefactor     .10000E-03    3.1191        .36970E-07** at limit **
  19  norm          52.720        46.642        .13734E-05    .36735E-03
  20  norm          .10000E-03    39.350        .31825E-05** at limit **
  21  Prefactor     6.5687        8.7567        .29050E-08    .11236E-03
  22  Prefactor     10.287        10.654        .11632E-07    .31756E-04
  23  norm          .10000E-03    32.424       -.27222E-06** at limit **
  24  Prefactor     .10000E-03    1.5794        .11026E-07** at limit **
  25  Prefactor     3.3595        2.4132        .31769E-07   -.14099E-04
  26  Prefactor     3.9341        4.9514       -.30591E-07    .15734E-03
  27  Prefactor     .10000E-03    5.3085        .12977E-06** at limit **
  28  Prefactor     .10000E-03    8.0533        .89934E-06** at limit **
  29  norm          1.5371        1.3722        .45869E-07    .11067E-03
  30  Prefactor     .10000E-03    15.170        .12690E-06** at limit **
  31  Normalizat    .86480        .36347       -.20032E-05    .14431E-03
  32  Prefactor     1.0020        .33728       -.26505E-06    .87620E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 9.10229
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100027
  norm       = 4.98337
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 17.899
  Prefactor  = 0.000100003
  Prefactor  = 0.00010783
  Prefactor  = 0.0001
  norm       = 52.7203
  norm       = 0.000100003
  Prefactor  = 6.56871
  Prefactor  = 10.2873
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.3595
  Prefactor  = 3.9341
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.53707
  Prefactor  = 0.0001
  Normalizat = 0.864804
  Prefactor  = 1.00202
 **********
 **   18 **HESSE 
 **********

 FCN=   1884.617     FROM HESSE     STATUS=OK           647 CALLS     5043 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.1023        6.7613        .94806E-04   -1.5104    
   3  Prefactor     .10000E-03    26.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.2749        .12913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10003E-03    214.72        .38081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.9834        15.470        .90166E-03   -1.5261    
   7  Prefactor     .10000E-03    50.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    100.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    153.12        .21397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    107.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.1270        .12083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.8494        .10250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    177.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    98.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.899        13.772        .94677E-04   -1.4862    
  16  Prefactor     .10000E-03    84.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10783E-03    300.14        .30547E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.1384        .74868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          52.720        46.495        .55254E-04   -1.4255    
  20  norm          .10000E-03    40.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.5687        8.7342        .13758E-03   -1.5195    
  22  Prefactor     10.287        10.663        .12495E-03   -1.5066    
  23  norm          .10000E-03    32.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.6013        .10554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.3595        2.3739        .54579E-04   -1.5341    
  26  Prefactor     3.9341        4.9243        .10083E-03   -1.5311    
  27  Prefactor     .10000E-03    9.5238        .19171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.1200        .12076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.5371        1.3562        .45236E-04   -1.5460    
  30  Prefactor     .10000E-03    15.538        .33004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .86480        .41846        .26845E-03   -.97708    
  32  Prefactor     1.0020        .39970        .24694E-03   -.92662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50894e-08
Minuit parameter uncertainties:
  1  0.000255747
  2  6.76184
  3  8.5996e-05
  4  2.99341e-06
  5  0.00486356
  6  15.4829
  7  0.000856193
  8  0.000484311
  9  0.000608601
  10  0.00151921
  11  7.93609e-05
  12  3.76679e-06
  13  7.15985e-05
  14  0.000481086
  15  13.7747
  16  0.00108609
  17  0.0974488
  18  4.06232e-06
  19  46.5267
  20  0.000683963
  21  8.73593
  22  10.6649
  23  5.18598e-05
  24  1.38477e-06
  25  2.37399
  26  4.92481
  27  9.26299e-05
  28  9.00142e-05
  29  1.35618
  30  4.36624e-05
  31  0.420044
  32  0.400889
Done.

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

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  4.811e-04  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.002e+00  4.009e-01  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:  8.648e-01  4.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 242.014 49.829
Photon Flux Upper Limit: 1.66e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/39152/likelihoodResults_423619201_423878401_4FGL_J1608.0+4949_daily_bin711.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) = 1884.61751187
delta logL = -4.81814804516e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1884.61751186
delta logL = -4.81735687572e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96336E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2670       1.0000          .0000       10.000    
     3 'Normalizat'    .86480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0020       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.

 FCN=   1884.617     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      194 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    112.48        .90715E-02** at limit **
   2  Index         2.2522        6.1147        .50000        .12390E-05
   3  Normalizat    .86480        .33341        .44450E-01    .19248E-05
   4  Prefactor     1.0020        .32977        .44969E-01    .13304E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.25221
  Normalizat = 0.864799
  Prefactor  = 1.00202
 **********
 **   18 **HESSE 
 **********

 FCN=   1884.617     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .93E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    102.88        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2522        6.1232        .50000       -.58183    
   3  Normalizat    .86480        .39422        .26845E-03   -.97708    
   4  Prefactor     1.0020        .39004        .24694E-03   -.92662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.3375e-12
Minuit parameter uncertainties:
  1  0.000489579
  2  4.33192
  3  0.395541
  4  0.391145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/39152': 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) = 1884.61746369
delta logL = 4.49222170573e-09

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  4.896e-04  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  2.252e+00  4.332e+00  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:  1.002e+00  3.911e-01  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:  8.648e-01  3.955e-01  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/39152/cmap_HighResolution_423619201_423878401_4FGL_J1608.0+4949_daily_bin711.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', job_status='DONE', photon_flux_upper_limit='1.66e-07', time_completed='2021-09-13 09:00:37.680008', job_id='39152', GAL2='1.00', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1631548837.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='4.49e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='711' AND source_name='4FGL J1608.0+4949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:00:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 39152: <4FGL_J1608.0+4949_daily_bin711> in cluster <slac> Done

Job <4FGL_J1608.0+4949_daily_bin711> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 08:50:25 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 08:51:05 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:51:05 2021
Terminated at Mon Sep 13 09:00:38 2021
Results reported at Mon Sep 13 09:00:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.0+4949_daily_bin711 242.014 49.829 423619201 423878401 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 :                                   554.22 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             311.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   572 sec.
    Turnaround time :                            613 sec.

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

