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


Performing analysis on: 4FGL_J1608.0+4949_daily_bin533
RA = 242.014, Dec = 49.829
tmin = 377481601, tmax = 377740801
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='37645', job_status='RUN', time_executed='2021-09-13 08:48:15.972734', time_epoch_executed='1631548095.97' WHERE source_name='4FGL J1608.0+4949' and cadence='daily' and bin_id='533'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/37645

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/37645/ft1_4FGL_J1608.0+4949_daily_bin533.fits


Retrieving the FT1 file...

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

Retrieving 40 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/37645/ft2_4FGL_J1608.0+4949_daily_bin533.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/37645/ft1_4FGL_J1608.0+4949_daily_bin533.fits outfile=/scratch/kocevski/37645/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin533.fits ra=242.014 dec=49.829 rad=12.0 tmin=377481601.0 tmax=377740801.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 2.66
user 2.45
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/37645/ft1_filtered_4FGL_J1608.0+4949_daily_bin533.fits evtable="EVENTS" scfile=/scratch/kocevski/37645/ft2_4FGL_J1608.0+4949_daily_bin533.fits sctable="SC_DATA" expcube=/scratch/kocevski/37645/ltcube_377481601_377740801_4FGL_J1608.0+4949_daily_bin533.fits outfile=/scratch/kocevski/37645/expmap_377481601_377740801_4FGL_J1608.0+4949_daily_bin533.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/37645/ltcube_377481601_377740801_4FGL_J1608.0+4949_daily_bin533.fits
.....................!
real 159.40
user 154.52
sys 4.45

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/37645/ft1_filtered_4FGL_J1608.0+4949_daily_bin533.fits scfile=/scratch/kocevski/37645/ft2_4FGL_J1608.0+4949_daily_bin533.fits outfile=/scratch/kocevski/37645/cmap_377481601_377740801_4FGL_J1608.0+4949_daily_bin533.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.50
user 0.33
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/37645/ft1_filtered_4FGL_J1608.0+4949_daily_bin533.fits scfile=/scratch/kocevski/37645/ft2_4FGL_J1608.0+4949_daily_bin533.fits outfile=/scratch/kocevski/37645/cmap_HighResolution_377481601_377740801_4FGL_J1608.0+4949_daily_bin533.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.49
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .99914       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4675       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 '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.6513       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.305       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.084       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.627       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .62914E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    44.130       1.0000         .10000E-03   10000.    
    20 'norm      '    15.840       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .34897       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    34.863       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.4210       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    17.652       1.0000         .10000E-03   10000.    
    29 'norm      '    5.3360       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1234       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .57468       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=   4531.477     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     4328 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5760       -.28007E-05** at limit **
   2  norm          .99906        1.2867       -.34995E-06   -.18634E-02
   3  Prefactor     .10000E-03    5.7072       -.29379E-06** at limit **
   4  Prefactor     2.4671        4.8546       -.48891E-06   -.36933E-03
   5  Prefactor     .10000E-03    2.3479       -.33679E-06** at limit **
   6  norm          .10000E-03    1.4070       -.17026E-07** at limit **
   7  Prefactor     .10000E-03    2.5880        .34343E-06** at limit **
   8  Prefactor     .10000E-03    7.4847       -.21543E-05** at limit **
   9  Prefactor     .10000E-03    5.4733       -.37345E-05** at limit **
  10  Prefactor     .10000E-03    5.6424       -.17610E-05** at limit **
  11  Prefactor     .10000E-03    6.2360        .60626E-05** at limit **
  12  norm          8.6510        11.286        .59397E-05   -.27089E-03
  13  Prefactor     20.285        55.910       -.25885E-04   -.34967E-04
  14  Prefactor     .10000E-03    234.06       -.73284E-05** at limit **
  15  Prefactor     .10000E-03    3.6531       -.87944E-06** at limit **
  16  Prefactor     25.090        29.340       -.30283E-05   -.10438E-03
  17  Prefactor     10.626        9.0409        .84934E-06   -.24063E-03
  18  Prefactor     .10000E-03    2.5153        .28501E-06** at limit **
  19  norm          44.132        27.785       -.12055E-05   -.53229E-04
  20  norm          15.841        15.530       -.61408E-05   -.16134E-04
  21  Prefactor     .34429        3.3364        .13546E-05   -.10230E-02
  22  Prefactor     .10000E-03    4.2831        .23484E-05** at limit **
  23  norm          34.870        42.130        .33456E-05   -.34348E-04
  24  Prefactor     4.4225        2.1085       -.40670E-06   -.38133E-02
  25  Prefactor     .10000E-03    1.2955        .64903E-07** at limit **
  26  Prefactor     .10000E-03    2.1172        .18734E-06** at limit **
  27  Prefactor     .10000E-03    1.8971       -.10958E-07** at limit **
  28  Prefactor     17.653        13.055       -.53956E-05   -.79136E-04
  29  norm          5.3367        1.6002       -.49116E-07   -.12773E-02
  30  Prefactor     .10000E-03    5.8549        .24967E-05** at limit **
  31  Normalizat    1.1235        .21083       -.76820E-06   -.25740E-03
  32  Prefactor     .57465        .19959        .31596E-05   -.25410E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.999057
  Prefactor  = 0.0001
  Prefactor  = 2.46706
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.65101
  Prefactor  = 20.2847
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.0902
  Prefactor  = 10.6256
  Prefactor  = 0.000100001
  norm       = 44.132
  norm       = 15.8412
  Prefactor  = 0.344291
  Prefactor  = 0.0001
  norm       = 34.8695
  Prefactor  = 4.42247
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6535
  norm       = 5.33666
  Prefactor  = 0.0001
  Normalizat = 1.12353
  Prefactor  = 0.574652
 **********
 **   18 **HESSE 
 **********

 FCN=   4531.477     FROM HESSE     STATUS=OK           651 CALLS     4979 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5739        .15521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .99906        1.2943        .26325E-03   -1.5508    
   3  Prefactor     .10000E-03    5.7345        .15706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4671        4.8424        .20121E-03   -1.5394    
   5  Prefactor     .10000E-03    2.3505        .10074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.4145        .77967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.5927        .10576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.4926        .17986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.5084        .15373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.6425        .15617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.1723        .16292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.6510        11.154        .13628E-03   -1.5120    
  13  Prefactor     20.285        55.765        .88887E-04   -1.4807    
  14  Prefactor     .10000E-03    235.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.6510        .12535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.090        29.271        .79982E-04   -1.4706    
  17  Prefactor     10.626        9.0450        .12290E-03   -1.5056    
  18  Prefactor     .10000E-03    16.128        .19556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          44.132        27.774        .60350E-04   -1.4378    
  20  norm          15.841        15.502        .10064E-03   -1.4912    
  21  Prefactor     .34429        20.745        .22266E-02   -1.5591    
  22  Prefactor     .10000E-03    4.3058        .13596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          34.870        42.134        .67870E-04   -1.4526    
  24  Prefactor     4.4225        2.0436        .30761E-03   -1.5287    
  25  Prefactor     .10000E-03    1.3135        .14781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.1380        .95507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.9188        .90438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     17.653        13.046        .95328E-04   -1.4867    
  29  norm          5.3367        1.5991        .43523E-04   -1.5246    
  30  Prefactor     .10000E-03    5.9074        .15892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1235        .24695        .22088E-03   -.89000    
  32  Prefactor     .57465        .23219        .29451E-03   -1.0866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.7727e-09
Minuit parameter uncertainties:
  1  2.08782e-07
  2  1.2943
  3  4.06755e-06
  4  4.84314
  5  1.71046e-06
  6  1.48375e-06
  7  7.07982e-07
  8  3.30805e-07
  9  6.64081e-07
  10  9.49509e-07
  11  8.83234e-05
  12  11.1566
  13  55.9091
  14  0.000343634
  15  1.72283e-05
  16  29.2877
  17  9.0462
  18  0.000281995
  19  27.7822
  20  15.5057
  21  5.34621
  22  4.9095e-06
  23  42.1698
  24  2.04361
  25  9.03012e-06
  26  6.39441e-06
  27  2.57872e-07
  28  13.0483
  29  1.59908
  30  1.32807e-05
  31  0.247203
  32  0.232576
Done.

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

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  3.436e-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:  5.747e-01  2.326e-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.124e+00  2.472e-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.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/37645/likelihoodResults_377481601_377740801_4FGL_J1608.0+4949_daily_bin533.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) = 4531.47677556
delta logL = -2.00909598789e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4531.47675551
delta logL = -4.37685230281e-08

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 'Index     '    2.2389       1.0000          .0000       10.000    
     3 'Normalizat'    1.1235       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57466       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=   4531.269     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      291 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1314        323.01        .90712E-02    .21167E-03
   2  Index         3.6088        6.7678        .11965        .41361E-04
   3  Normalizat    1.0814        .76934E-01    .37114E-01    .15655E-03
   4  Prefactor     .59721        .65486E-01    .65339E-01    .48735E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.13142
  Index      = 3.60878
  Normalizat = 1.08137
  Prefactor  = 0.597213
 **********
 **   18 **HESSE 
 **********

 FCN=   4531.269     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      320 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1314        524.17        .21284E-03   -1.6115    
   2  Index         3.6088        6.2530        .65493E-02   -.28197    
   3  Normalizat    1.0814        .24039        .22444E-03   -.90352    
   4  Prefactor     .59721        .23281        .28913E-03   -1.0770    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.40111e-08
Minuit parameter uncertainties:
  1  93.923
  2  9.44115
  3  0.240636
  4  0.233191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/37645': 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) = 4531.26916002
delta logL = 0.207595446538

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  4.131e+00  9.392e+01  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  3.609e+00  9.441e+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.972e-01  2.332e-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.081e+00  2.406e-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/37645/cmap_HighResolution_377481601_377740801_4FGL_J1608.0+4949_daily_bin533.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.69e-03', job_status='DONE', photon_flux_upper_limit='8.74e-08', time_completed='2021-09-13 09:00:24.318920', job_id='37645', GAL2='0.60', fit_tolerance='1e-08', EG2='1.08', EG='1.12', time_epoch_completed='1631548824.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='2.08e-01', ts2='0.44', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='533' AND source_name='4FGL J1608.0+4949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:00:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 37645: <4FGL_J1608.0+4949_daily_bin533> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.0+4949_daily_bin533 242.014 49.829 377481601 377740801 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 :                                   728.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            902 sec.

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

