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


Performing analysis on: 4FGL_J1608.0+4949_daily_bin36
RA = 242.014, Dec = 49.829
tmin = 248659201, tmax = 248918401
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='33204', job_status='RUN', time_executed='2021-09-13 08:32:08.601740', time_epoch_executed='1631547128.6' WHERE source_name='4FGL J1608.0+4949' and cadence='daily' and bin_id='36'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33204

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33204/ft1_4FGL_J1608.0+4949_daily_bin36.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33204/ft2_4FGL_J1608.0+4949_daily_bin36.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33204/ft1_4FGL_J1608.0+4949_daily_bin36.fits outfile=/scratch/kocevski/33204/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin36.fits ra=242.014 dec=49.829 rad=12.0 tmin=248659201.0 tmax=248918401.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 1.43
user 1.23
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/33204/ft1_filtered_4FGL_J1608.0+4949_daily_bin36.fits" evtable="EVENTS" scfile=/scratch/kocevski/33204/ft2_4FGL_J1608.0+4949_daily_bin36.fits sctable="SC_DATA" outfile=/scratch/kocevski/33204/ltcube_248659201_248918401_4FGL_J1608.0+4949_daily_bin36.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/33204/ft2_4FGL_J1608.0+4949_daily_bin36.fits
.....................!
real 14.41
user 14.05
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33204/ft1_filtered_4FGL_J1608.0+4949_daily_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/33204/ft2_4FGL_J1608.0+4949_daily_bin36.fits sctable="SC_DATA" expcube=/scratch/kocevski/33204/ltcube_248659201_248918401_4FGL_J1608.0+4949_daily_bin36.fits outfile=/scratch/kocevski/33204/expmap_248659201_248918401_4FGL_J1608.0+4949_daily_bin36.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/33204/ltcube_248659201_248918401_4FGL_J1608.0+4949_daily_bin36.fits
.....................!
real 192.77
user 185.87
sys 5.10

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/33204/ft1_filtered_4FGL_J1608.0+4949_daily_bin36.fits scfile=/scratch/kocevski/33204/ft2_4FGL_J1608.0+4949_daily_bin36.fits outfile=/scratch/kocevski/33204/cmap_248659201_248918401_4FGL_J1608.0+4949_daily_bin36.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/33204/ft1_filtered_4FGL_J1608.0+4949_daily_bin36.fits scfile=/scratch/kocevski/33204/ft2_4FGL_J1608.0+4949_daily_bin36.fits outfile=/scratch/kocevski/33204/cmap_HighResolution_248659201_248918401_4FGL_J1608.0+4949_daily_bin36.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5092       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.858       1.0000         .10000E-03   10000.    
     6 'norm      '    2.3198       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.434       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5778       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5687       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7939       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8238       1.0000         .10000E-03   10000.    
    19 'norm      '    14.779       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0936       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.5563       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.2332       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .73048       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.2503       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.7964       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.3079       1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.5968       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3341       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .51909       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=   4624.646     FROM MIGRAD    STATUS=CONVERGED    847 CALLS     3710 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.630        .62768E-07** at limit **
   2  norm          .10000E-03    .54682       -.24359E-07** at limit **
   3  Prefactor     2.5095        10.218        .26430E-06   -.25717E-05
   4  Prefactor     .10000E-03    5.7822       -.19530E-06** at limit **
   5  Prefactor     20.856        14.085        .20127E-06    .28376E-04
   6  norm          2.3194        3.1104       -.13331E-07    .23894E-03
   7  Prefactor     .10000E-03    5.2487       -.78475E-06** at limit **
   8  Prefactor     .10000E-03    9.3592       -.49859E-07** at limit **
   9  Prefactor     .10000E-03    3.1006       -.52872E-07** at limit **
  10  Prefactor     11.434        15.924       -.12689E-07    .86607E-05
  11  Prefactor     .10000E-03    3.1811        .28088E-06** at limit **
  12  norm          .10001E-03    16.410        .44380E-05** at limit **
  13  Prefactor     2.6376        308.49       -.23810E-04    .23389E-04
  14  Prefactor     2.5619        297.23        .35329E-05   -.67830E-05
  15  Prefactor     .10000E-03    3.8595        .20205E-06** at limit **
  16  Prefactor     4.7600        27.106       -.81133E-06    .22251E-04
  17  Prefactor     .10000E-03    2.3793       -.31482E-07** at limit **
  18  Prefactor     1.8233        3.3846        .18514E-06   -.94530E-05
  19  norm          14.785        21.797        .89228E-09   -.15191E-04
  20  norm          .10000E-03    4.7483        .89797E-08** at limit **
  21  Prefactor     2.0930        4.3248        .52871E-07   -.98535E-05
  22  Prefactor     4.5551        7.8706        .20752E-05   -.88336E-05
  23  norm          .10000E-03    13.582       -.10778E-06** at limit **
  24  Prefactor     1.2333        1.6060        .12224E-07   -.10064E-03
  25  Prefactor     .73045        1.7749       -.48540E-07   -.14150E-03
  26  Prefactor     6.2495        5.1268        .60293E-06   -.71631E-04
  27  Prefactor     4.7961        3.2743        .37180E-08   -.35698E-05
  28  Prefactor     .10000E-03    13.510       -.16296E-06** at limit **
  29  norm          1.3079        1.0032       -.10664E-06   -.41363E-04
  30  Prefactor     3.5970        6.9075        .24984E-05   -.80954E-04
  31  Normalizat    1.3343        .22410       -.23972E-05    .77832E-04
  32  Prefactor     .51894        .19952        .31395E-05    .42304E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.5095
  Prefactor  = 0.0001
  Prefactor  = 20.8558
  norm       = 2.3194
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4336
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 2.6376
  Prefactor  = 2.56189
  Prefactor  = 0.0001
  Prefactor  = 4.75999
  Prefactor  = 0.0001
  Prefactor  = 1.82334
  norm       = 14.7852
  norm       = 0.0001
  Prefactor  = 2.09299
  Prefactor  = 4.55509
  norm       = 0.0001
  Prefactor  = 1.23333
  Prefactor  = 0.730453
  Prefactor  = 6.24947
  Prefactor  = 4.79607
  Prefactor  = 0.0001
  norm       = 1.30791
  Prefactor  = 3.59703
  Normalizat = 1.33428
  Prefactor  = 0.518936
 **********
 **   18 **HESSE 
 **********

 FCN=   4624.646     FROM HESSE     STATUS=OK           665 CALLS     4375 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .54777        .49110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5095        10.112        .25795E-03   -1.5391    
   4  Prefactor     .10000E-03    5.8621        .15968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.856        14.122        .87700E-04   -1.4794    
   6  norm          2.3194        2.9166        .12657E-03   -1.5403    
   7  Prefactor     .10000E-03    16.388        .28227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.3803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1023        .11694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.434        15.921        .11848E-03   -1.5032    
  11  Prefactor     .10000E-03    3.1859        .11850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10001E-03    17.392        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.6376        315.92        .25420E-03   -1.5383    
  14  Prefactor     2.5619        297.99        .25469E-03   -1.5388    
  15  Prefactor     .10000E-03    3.8623        .13012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.7600        27.071        .18375E-03   -1.5272    
  17  Prefactor     .10000E-03    2.3833        .10242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.8233        3.3435        .16092E-03   -1.5438    
  19  norm          14.785        21.784        .10419E-03   -1.4939    
  20  norm          .10000E-03    4.7485        .14473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.0930        4.2827        .18943E-03   -1.5419    
  22  Prefactor     4.5551        7.8599        .94296E-03   -1.5281    
  23  norm          .10000E-03    13.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.2333        1.6726        .72287E-04   -1.5486    
  25  Prefactor     .73045        1.6788        .10242E-02   -1.5537    
  26  Prefactor     6.2495        5.0943        .62068E-03   -1.5208    
  27  Prefactor     4.7961        3.2418        .96235E-04   -1.5270    
  28  Prefactor     .10000E-03    13.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.3079        .98514        .55067E-04   -1.5479    
  30  Prefactor     3.5970        6.9926        .10653E-02   -1.5329    
  31  Normalizat    1.3343        .26056        .21479E-03   -.82549    
  32  Prefactor     .51894        .23290        .31275E-03   -1.1112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.871e-09
Minuit parameter uncertainties:
  1  3.25821e-05
  2  2.11145e-07
  3  10.0778
  4  9.61795e-06
  5  14.1241
  6  2.91673
  7  0.000529475
  8  6.78099e-06
  9  1.71689e-07
  10  15.927
  11  1.54848e-05
  12  0.000672017
  13  58.0483
  14  55.5445
  15  1.27947e-05
  16  22.7184
  17  2.22692e-06
  18  3.34383
  19  21.7962
  20  9.33973e-07
  21  4.28329
  22  7.86171
  23  7.43471e-06
  24  1.67265
  25  1.67892
  26  5.09466
  27  3.24189
  28  2.287e-05
  29  0.985149
  30  6.99417
  31  0.260822
  32  0.233327
Done.

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

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  2.562e+00  5.554e+01  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:  5.189e-01  2.333e-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:  1.334e+00  2.608e-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: 8.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33204/likelihoodResults_248659201_248918401_4FGL_J1608.0+4949_daily_bin36.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) = 4624.6461202
delta logL = 0.000202539989004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4624.64611193
delta logL = 0.000210807401345

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5619       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3417       1.0000          .0000       10.000    
     3 'Normalizat'    1.3342       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51892       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4624.646     FROM MIGRAD    STATUS=FAILED        89 CALLS      250 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5170        289.63        .25505E-03   -.11487E-03
   2  Index         2.3441        3.3888        .96228E-02   -.85448E-04
   3  Normalizat    1.3341        .23890        .21480E-03   -.44838E-02
   4  Prefactor     .51895        .22698        .31274E-03   -.30384E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4624.646     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      334 TOTAL
                     EDM=   .67E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5170        289.63        .10016E-02   -1.5391    
   2  Index         2.3441        3.3888        .17506E-02   -.55998    
   3  Normalizat    1.3341        .23890        .80986E-04   -.82553    
   4  Prefactor     .51895        .22698        .19397E-03   -1.1112    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4624.646     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      364 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5161        262.51        .10202E-04   -.32539E-04
   2  Index         2.3444        3.2736        .38491E-03    .24810E-05
   3  Normalizat    1.3342        .23908        .42960E-04   -.47104E-05
   4  Prefactor     .51896        .22712        .62548E-04   -.21811E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.51612
  Index      = 2.34439
  Normalizat = 1.33415
  Prefactor  = 0.518956
 **********
 **   18 **HESSE 
 **********

 FCN=   4624.646     FROM HESSE     STATUS=OK            23 CALLS      387 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5161        258.97        .20404E-05   -1.5391    
   2  Index         2.3444        3.2631        .15396E-04   -.55992    
   3  Normalizat    1.3342        .23903        .85921E-05   -.82553    
   4  Prefactor     .51896        .22698        .25019E-05   -1.1111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24917e-10
Minuit parameter uncertainties:
  1  51.2813
  2  3.72471
  3  0.239231
  4  0.227379
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33204': 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) = 4624.6461114
delta logL = 0.000211339215639

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  2.516e+00  5.128e+01  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  2.344e+00  3.725e+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:  5.190e-01  2.274e-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:  1.334e+00  2.392e-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/33204/cmap_HighResolution_248659201_248918401_4FGL_J1608.0+4949_daily_bin36.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.15e-03', job_status='DONE', photon_flux_upper_limit='8.03e-08', time_completed='2021-09-13 08:45:31.477660', job_id='33204', GAL2='0.52', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1631547931.48', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='2.11e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='36' AND source_name='4FGL J1608.0+4949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 08:45:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 33204: <4FGL_J1608.0+4949_daily_bin36> in cluster <slac> Done

Job <4FGL_J1608.0+4949_daily_bin36> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep 13 08:30:31 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 08:31: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:31:51 2021
Terminated at Mon Sep 13 08:45:32 2021
Results reported at Mon Sep 13 08:45:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.0+4949_daily_bin36 242.014 49.829 248659201 248918401 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 :                                   799.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             303.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   39 MB
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            901 sec.

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

