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


Performing analysis on: 4FGL_J1608.0+4949_daily_bin837
RA = 242.014, Dec = 49.829
tmin = 456278401, tmax = 456537601
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='40578', job_status='RUN', time_executed='2021-09-13 08:58:14.769483', time_epoch_executed='1631548694.77' WHERE source_name='4FGL J1608.0+4949' and cadence='daily' and bin_id='837'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/40578

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/40578/ft1_4FGL_J1608.0+4949_daily_bin837.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/40578/ft2_4FGL_J1608.0+4949_daily_bin837.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/40578/ft1_4FGL_J1608.0+4949_daily_bin837.fits outfile=/scratch/kocevski/40578/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin837.fits ra=242.014 dec=49.829 rad=12.0 tmin=456278401.0 tmax=456537601.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.27
user 4.85
sys 0.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/40578/ft1_filtered_4FGL_J1608.0+4949_daily_bin837.fits" evtable="EVENTS" scfile=/scratch/kocevski/40578/ft2_4FGL_J1608.0+4949_daily_bin837.fits sctable="SC_DATA" outfile=/scratch/kocevski/40578/ltcube_456278401_456537601_4FGL_J1608.0+4949_daily_bin837.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/40578/ft2_4FGL_J1608.0+4949_daily_bin837.fits
.....................!
real 14.85
user 14.38
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/40578/ft1_filtered_4FGL_J1608.0+4949_daily_bin837.fits evtable="EVENTS" scfile=/scratch/kocevski/40578/ft2_4FGL_J1608.0+4949_daily_bin837.fits sctable="SC_DATA" expcube=/scratch/kocevski/40578/ltcube_456278401_456537601_4FGL_J1608.0+4949_daily_bin837.fits outfile=/scratch/kocevski/40578/expmap_456278401_456537601_4FGL_J1608.0+4949_daily_bin837.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/40578/ltcube_456278401_456537601_4FGL_J1608.0+4949_daily_bin837.fits
.....................!
real 194.35
user 188.39
sys 5.26

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/40578/ft1_filtered_4FGL_J1608.0+4949_daily_bin837.fits scfile=/scratch/kocevski/40578/ft2_4FGL_J1608.0+4949_daily_bin837.fits outfile=/scratch/kocevski/40578/cmap_456278401_456537601_4FGL_J1608.0+4949_daily_bin837.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/40578/ft1_filtered_4FGL_J1608.0+4949_daily_bin837.fits scfile=/scratch/kocevski/40578/ft2_4FGL_J1608.0+4949_daily_bin837.fits outfile=/scratch/kocevski/40578/cmap_HighResolution_456278401_456537601_4FGL_J1608.0+4949_daily_bin837.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/40578/ft1_filtered_4FGL_J1608.0+4949_daily_bin837.fits evtable="EVENTS" scfile=/scratch/kocevski/40578/ft2_4FGL_J1608.0+4949_daily_bin837.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/40578/Model_4FGL_J1608.0+4949_daily_bin837.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/40578/ft1_filtered_4FGL_J1608.0+4949_daily_bin837.fits.....................!
real 37.41
user 36.06
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0756       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-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 '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10364E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.4088       1.0000         .10000E-03   10000.    
    13 'Prefactor '    62.878       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.422       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13672E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12914E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.2394       1.0000         .10000E-03   10000.    
    23 'norm      '    .59609E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.2080       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .20605       1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.8436       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .94224       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .97151       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=   3999.006     FROM MIGRAD    STATUS=CONVERGED    834 CALLS     4345 TOTAL
                     EDM=   .95E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.846       -.18544E-06** at limit **
   2  norm          1.0757        1.1456        .76476E-08    .83826E-05
   3  Prefactor     .10000E-03    5.6593        .39739E-06** at limit **
   4  Prefactor     .10000E-03    5.4194       -.37059E-06** at limit **
   5  Prefactor     .10000E-03    6.1371        .34292E-06** at limit **
   6  norm          .10000E-03    1.5479        .92180E-08** at limit **
   7  Prefactor     .10000E-03    10.251        .28353E-06** at limit **
   8  Prefactor     .10000E-03    13.759       -.22399E-06** at limit **
   9  Prefactor     .10000E-03    9.7487        .35459E-06** at limit **
  10  Prefactor     .10000E-03    13.151       -.34438E-06** at limit **
  11  Prefactor     .10000E-03    15.823        .16152E-05** at limit **
  12  norm          5.4186        10.805       -.15545E-05   -.11799E-03
  13  Prefactor     62.833        59.017        .49109E-05   -.11806E-04
  14  Prefactor     .10000E-03    49.518        .24893E-06** at limit **
  15  Prefactor     11.424        7.5149        .81804E-07   -.58981E-04
  16  Prefactor     .10000E-03    12.619       -.33970E-06** at limit **
  17  Prefactor     .10000E-03    9.6293        .46627E-06** at limit **
  18  Prefactor     .10000E-03    1.7671        .11720E-06** at limit **
  19  norm          .10000E-03    39.548       -.56345E-06** at limit **
  20  norm          .10000E-03    6.6807       -.58344E-06** at limit **
  21  Prefactor     .10000E-03    2.8489        .56504E-06** at limit **
  22  Prefactor     5.2418        6.7462        .98588E-06   -.44487E-04
  23  norm          .10000E-03    113.65        .46944E-05** at limit **
  24  Prefactor     .10000E-03    .42615        .53990E-08** at limit **
  25  Prefactor     .10000E-03    .48831        .68829E-08** at limit **
  26  Prefactor     2.2008        5.0609        .92060E-08   -.23836E-03
  27  Prefactor     .10000E-03    .94269        .22343E-07** at limit **
  28  Prefactor     .10000E-03    35.647        .32964E-07** at limit **
  29  norm          .20461        1.2527        .43208E-07   -.27592E-03
  30  Prefactor     3.8394        8.1130        .17038E-05   -.12294E-03
  31  Normalizat    .94183        .21593       -.67008E-06   -.17263E-03
  32  Prefactor     .97176        .21032       -.72765E-06   -.18641E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.07571
  Prefactor  = 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       = 5.41861
  Prefactor  = 62.8327
  Prefactor  = 0.0001
  Prefactor  = 11.4241
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 5.2418
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.20077
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.20461
  Prefactor  = 3.83938
  Normalizat = 0.941832
  Prefactor  = 0.971762
 **********
 **   18 **HESSE 
 **********

 FCN=   3999.006     FROM HESSE     STATUS=OK           647 CALLS     4992 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0757        1.1617        .68183E-04   -1.5501    
   3  Prefactor     .10000E-03    5.6757        .14692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.4541        .14362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.1959        .15298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.5524        .76829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.8153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.404        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.4186        10.834        .17279E-03   -1.5242    
  13  Prefactor     62.833        59.016        .50605E-04   -1.4121    
  14  Prefactor     .10000E-03    49.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.424        7.5028        .11854E-03   -1.5032    
  16  Prefactor     .10000E-03    12.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.9204        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.1146        .16354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    39.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.6762        .15959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.095        .19912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.2418        6.7265        .87803E-03   -1.5250    
  23  norm          .10000E-03    115.38        .21067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .43161        .40303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .49608        .43143E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.2008        4.7903        .17955E-03   -1.5411    
  27  Prefactor     .10000E-03    .94659        .59958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    37.067        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .20461        1.7917        .11250E-02   -1.5618    
  30  Prefactor     3.8394        8.1524        .10292E-02   -1.5316    
  31  Normalizat    .94183        .25896        .23690E-03   -.95005    
  32  Prefactor     .97176        .25257        .23538E-03   -.93677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44081e-08
Minuit parameter uncertainties:
  1  4.89696e-06
  2  1.16175
  3  7.3799e-07
  4  7.67453e-06
  5  1.71482e-06
  6  1.11972e-06
  7  1.19858e-05
  8  7.96221e-06
  9  9.1385e-06
  10  6.24904e-06
  11  9.42122e-05
  12  10.8378
  13  59.0707
  14  1.37567e-05
  15  7.50343
  16  2.585e-06
  17  1.85957e-05
  18  1.11959e-06
  19  4.89361e-05
  20  6.60767e-07
  21  0.000457857
  22  6.72751
  23  0.000130383
  24  7.83314e-08
  25  1.42262e-07
  26  4.79115
  27  3.27921e-07
  28  8.79748e-05
  29  1.21069
  30  8.15471
  31  0.259303
  32  0.252875
Done.

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

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.376e-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:  9.718e-01  2.529e-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:  9.418e-01  2.593e-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: 7.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/40578/likelihoodResults_456278401_456537601_4FGL_J1608.0+4949_daily_bin837.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) = 3999.005864
delta logL = -9.60589431998e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3999.00577089
delta logL = -2.94526353173e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27189E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5713       1.0000          .0000       10.000    
     3 'Normalizat'    .94183       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97176       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=   3999.006     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      266 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10418E-03    5.2798        .21431E-01** at limit **
   2  Index         2.5079        8.6123        .50000        .79859E-05
   3  Normalizat    .94183        .18744E-02    .23689E-03    .37193E-04
   4  Prefactor     .97176        .18989E-02    .23538E-03   -.93701E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104176
  Index      = 2.5079
  Normalizat = 0.941833
  Prefactor  = 0.971762
 **********
 **   18 **HESSE 
 **********

 FCN=   3999.006     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      295 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10418E-03    112.48        .37681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5079        5.6184        .50000       -.52178    
   3  Normalizat    .94183        .86641E-02    .94757E-05   -.95005    
   4  Prefactor     .97176        .87774E-02    .94151E-05   -.93677    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.34235e-09
Minuit parameter uncertainties:
  1  0.043425
  2  328.214
  3  0.00866415
  4  0.0087774
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/40578': 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) = 3999.00576833
delta logL = -3.82480720873e-07

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.042e-04  4.342e-02  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  2.508e+00  3.282e+02  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:  9.718e-01  8.777e-03  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:  9.418e-01  8.664e-03  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/40578/cmap_HighResolution_456278401_456537601_4FGL_J1608.0+4949_daily_bin837.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.06e-03', job_status='DONE', photon_flux_upper_limit='7.92e-08', time_completed='2021-09-13 09:11:34.758044', job_id='40578', GAL2='0.97', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1631549494.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-3.82e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='837' AND source_name='4FGL J1608.0+4949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:11:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 40578: <4FGL_J1608.0+4949_daily_bin837> in cluster <slac> Done

Job <4FGL_J1608.0+4949_daily_bin837> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 13 08:55:17 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 08:55:38 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:55:38 2021
Terminated at Mon Sep 13 09:11:35 2021
Results reported at Mon Sep 13 09:11:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.0+4949_daily_bin837 242.014 49.829 456278401 456537601 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 :                                   798.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            978 sec.

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

