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


Performing analysis on: 4FGL_J1608.0+4949_daily_bin694
RA = 242.014, Dec = 49.829
tmin = 419212801, tmax = 419472001
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='39128', job_status='RUN', time_executed='2021-09-13 08:54:48.589178', time_epoch_executed='1631548488.59' WHERE source_name='4FGL J1608.0+4949' and cadence='daily' and bin_id='694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/39128

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/39128/ft1_4FGL_J1608.0+4949_daily_bin694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/39128/ft2_4FGL_J1608.0+4949_daily_bin694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/39128/ft1_4FGL_J1608.0+4949_daily_bin694.fits outfile=/scratch/kocevski/39128/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin694.fits ra=242.014 dec=49.829 rad=12.0 tmin=419212801.0 tmax=419472001.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.56
user 5.23
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/39128/ft2_4FGL_J1608.0+4949_daily_bin694.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/39128/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin694.fits evtable="EVENTS" outfile="/scratch/kocevski/39128/ft1_filtered_4FGL_J1608.0+4949_daily_bin694.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/39128/ft1_filtered_4FGL_J1608.0+4949_daily_bin694.fits" evtable="EVENTS" scfile=/scratch/kocevski/39128/ft2_4FGL_J1608.0+4949_daily_bin694.fits sctable="SC_DATA" outfile=/scratch/kocevski/39128/ltcube_419212801_419472001_4FGL_J1608.0+4949_daily_bin694.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/39128/ft2_4FGL_J1608.0+4949_daily_bin694.fits
.....................!
real 15.19
user 14.79
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/39128/ft1_filtered_4FGL_J1608.0+4949_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/39128/ft2_4FGL_J1608.0+4949_daily_bin694.fits sctable="SC_DATA" expcube=/scratch/kocevski/39128/ltcube_419212801_419472001_4FGL_J1608.0+4949_daily_bin694.fits outfile=/scratch/kocevski/39128/expmap_419212801_419472001_4FGL_J1608.0+4949_daily_bin694.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/39128/ltcube_419212801_419472001_4FGL_J1608.0+4949_daily_bin694.fits
.....................!
real 190.90
user 185.36
sys 5.13

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/39128/ft1_filtered_4FGL_J1608.0+4949_daily_bin694.fits scfile=/scratch/kocevski/39128/ft2_4FGL_J1608.0+4949_daily_bin694.fits outfile=/scratch/kocevski/39128/cmap_419212801_419472001_4FGL_J1608.0+4949_daily_bin694.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/39128/ft1_filtered_4FGL_J1608.0+4949_daily_bin694.fits scfile=/scratch/kocevski/39128/ft2_4FGL_J1608.0+4949_daily_bin694.fits outfile=/scratch/kocevski/39128/cmap_HighResolution_419212801_419472001_4FGL_J1608.0+4949_daily_bin694.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.58
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.0616       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10961E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6056       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.401       1.0000         .10000E-03   10000.    
     6 'norm      '    3.2221       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14842E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.310       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    40.053       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11317E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.4359       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.702       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.046       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.111       1.0000         .10000E-03   10000.    
    19 'norm      '    .10247E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.401       1.0000         .10000E-03   10000.    
    23 'norm      '    .10982E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .80911       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.5006       1.0000         .10000E-03   10000.    
    28 'Prefactor '    25.749       1.0000         .10000E-03   10000.    
    29 'norm      '    .26035       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .69048       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.3955       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2714.269     FROM MIGRAD    STATUS=CONVERGED     97 CALLS     3641 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10019E-03    5.4235       -.13304E-04** at limit **
   2  norm          4.0616        3.5220        .20033E-07    .42349E-04
   3  Prefactor     .10001E-03    20.110        .40499E-04** at limit **
   4  Prefactor     4.6039        1.0389       -.71713E-07   -.51903E-04
   5  Prefactor     16.392        1.1387       -.91930E-06   -.27532E-05
   6  norm          3.2225        4.8342        .80024E-06    .30087E-03
   7  Prefactor     .10024E-03    6.6219        .52319E-05** at limit **
   8  Prefactor     .10004E-03    67.628       -.12000E-03** at limit **
   9  Prefactor     .10000E-03    12.606        .24292E-06** at limit **
  10  Prefactor     40.291        5.2731       -.68691E-05    .79763E-02
  11  Prefactor     .10007E-03    6.0500        .36203E-06** at limit **
  12  norm          40.043        1.9101       -.21322E-05    .12874E-02
  13  Prefactor     .10016E-03    23.358        .52011E-04** at limit **
  14  Prefactor     .10051E-03    16.026       -.28371E-05** at limit **
  15  Prefactor     9.4208        1.1181       -.36012E-07    .20438E-02
  16  Prefactor     23.710        3.6624        .61119E-05   -.42762E-02
  17  Prefactor     10.045        1.0345       -.68713E-06   -.30540E-03
  18  Prefactor     11.111        1.2812        .14491E-05    .69063E-02
  19  norm          .10015E-03    5.4117       -.12567E-04** at limit **
  20  norm          .10000E-03    6.4394       -.35570E-06** at limit **
  21  Prefactor     .10000E-03    1.9634        .77049E-06** at limit **
  22  Prefactor     11.401        1.0073        .22635E-06   -.28337E-03
  23  norm          .10002E-03    15.067        .43288E-05** at limit **
  24  Prefactor     .10000E-03    .52829       -.95885E-06** at limit **
  25  Prefactor     .80893        1.3189        .87926E-06   -.17398E-03
  26  Prefactor     .10000E-03    2.0548        .37840E-05** at limit **
  27  Prefactor     6.5005        4.0827        .94070E-06   -.77047E-03
  28  Prefactor     25.753        1.1596        .92314E-06   -.44459E-03
  29  norm          .26027        .86553        .16911E-05   -.31579E-03
  30  Prefactor     .69151        1.1062        .36430E-05    .87115E-03
  31  Normalizat    .10000E-01    .92903E-01    .13619E-04** at limit **
  32  Prefactor     1.3954        .14408        .68901E-05   -.12820E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100185
  norm       = 4.06162
  Prefactor  = 0.000100011
  Prefactor  = 4.60387
  Prefactor  = 16.3919
  norm       = 3.22247
  Prefactor  = 0.000100241
  Prefactor  = 0.00010004
  Prefactor  = 0.000100001
  Prefactor  = 40.2907
  Prefactor  = 0.000100066
  norm       = 40.0432
  Prefactor  = 0.000100162
  Prefactor  = 0.000100512
  Prefactor  = 9.42082
  Prefactor  = 23.7103
  Prefactor  = 10.0454
  Prefactor  = 11.1115
  norm       = 0.000100153
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.401
  norm       = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.808929
  Prefactor  = 0.0001
  Prefactor  = 6.50045
  Prefactor  = 25.753
  norm       = 0.260274
  Prefactor  = 0.691508
  Normalizat = 0.01
  Prefactor  = 1.39541
 **********
 **   18 **HESSE 
 **********

 FCN=   2714.269     FROM HESSE     STATUS=OK           731 CALLS     4372 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10019E-03    20.707        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.0616        3.5435        .50017E-02   -1.5305    
   3  Prefactor     .10001E-03    54.559        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.6039        10.229        .46889E-02   -1.5279    
   5  Prefactor     16.392        21.685        .24724E-02   -1.4898    
   6  norm          3.2225        4.9326        .56420E-02   -1.5349    
   7  Prefactor     .10024E-03    21.731        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10004E-03    77.164        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.473        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     40.291        42.746        .15784E-02   -1.4438    
  11  Prefactor     .10007E-03    21.804        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          40.043        26.135        .15834E-02   -1.4442    
  13  Prefactor     .10016E-03    53.238        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10051E-03    60.484        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.4208        26.048        .32616E-02   -1.5094    
  16  Prefactor     23.710        95.724        .20569E-02   -1.4734    
  17  Prefactor     10.045        11.097        .31606E-02   -1.5074    
  18  Prefactor     11.111        5.4849        .30047E-02   -1.5041    
  19  norm          .10015E-03    20.777        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.4420        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.9590        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.401        14.562        .29662E-02   -1.5033    
  23  norm          .10002E-03    15.488        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .52414        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .80893        1.3950        .12474E-01   -1.5528    
  26  Prefactor     .10000E-03    2.0473        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     6.5005        4.1458        .39352E-02   -1.5198    
  28  Prefactor     25.753        27.700        .19736E-02   -1.4693    
  29  norm          .26027        .91391        .19953E-01   -1.5606    
  30  Prefactor     .69151        11.968        .12025E-01   -1.5542    
  31  Normalizat    .10000E-01    .81771E-01    .22119       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.3954        .18303        .45181E-01   -.80512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42538e-06
Minuit parameter uncertainties:
  1  0.00391738
  2  3.54366
  3  0.00155237
  4  10.233
  5  21.6957
  6  4.93325
  7  0.00457905
  8  0.00350519
  9  0.000171174
  10  42.7788
  11  0.00240254
  12  26.142
  13  0.00588522
  14  0.0111406
  15  26.0793
  16  95.5486
  17  11.0994
  18  5.48515
  19  0.00357188
  20  9.56522e-06
  21  1.977e-06
  22  14.5662
  23  0.000998843
  24  1.70316e-06
  25  1.39511
  26  1.23879e-05
  27  4.14595
  28  27.714
  29  0.913955
  30  5.75462
  31  1.15697e-07
  32  0.183115
Done.

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

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.005e-04  1.114e-02  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.395e+00  1.831e-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.000e-02  1.157e-07  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.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/39128/likelihoodResults_419212801_419472001_4FGL_J1608.0+4949_daily_bin694.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) = 2714.26905265
delta logL = -7.95486853349e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2714.26897355
delta logL = -4.5025262807e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5168       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3954       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=   2714.269     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      288 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10389E-03    24.602        .18142E-01** at limit **
   2  Index         2.4273        6.1867        .50000        .83627E-05
   3  Normalizat    .10000E-01    .98682E-04    .79718E-02** at limit **
   4  Prefactor     1.3954        .44250E-02    .19969E-03   -.67556E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103888
  Index      = 2.42731
  Normalizat = 0.01
  Prefactor  = 1.39542
 **********
 **   18 **HESSE 
 **********

 FCN=   2714.269     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      317 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10389E-03    142.54        .34688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4273        5.9722        .50000       -.54047    
   3  Normalizat    .10000E-01    .57669E-03    .15944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3954        .10693E-01    .39938E-04   -.80512    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.0806e-09
Minuit parameter uncertainties:
  1  0.0471934
  2  271.899
  3  2.67095e-09
  4  0.0106935
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/39128': 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) = 2714.26897339
delta logL = -2.87281636702e-07

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.039e-04  4.719e-02  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  2.427e+00  2.719e+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:  1.395e+00  1.069e-02  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  1.000e-02  2.671e-09  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/39128/cmap_HighResolution_419212801_419472001_4FGL_J1608.0+4949_daily_bin694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.80e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-13 09:04:54.054751', job_id='39128', GAL2='1.40', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631549094.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.40', dlogl='-2.87e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='694' AND source_name='4FGL J1608.0+4949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:04:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 39128: <4FGL_J1608.0+4949_daily_bin694> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.0+4949_daily_bin694 242.014 49.829 419212801 419472001 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 :                                   606.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             243.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            871 sec.

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

