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


Performing analysis on: 4FGL_J1608.0+4949_daily_bin676
RA = 242.014, Dec = 49.829
tmin = 414547201, tmax = 414806401
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='39104', job_status='RUN', time_executed='2021-09-13 08:54:56.030330', time_epoch_executed='1631548496.03' WHERE source_name='4FGL J1608.0+4949' and cadence='daily' and bin_id='676'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/39104

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/39104/ft1_4FGL_J1608.0+4949_daily_bin676.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/39104/ft2_4FGL_J1608.0+4949_daily_bin676.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/39104/ft1_4FGL_J1608.0+4949_daily_bin676.fits outfile=/scratch/kocevski/39104/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin676.fits ra=242.014 dec=49.829 rad=12.0 tmin=414547201.0 tmax=414806401.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.89
user 5.63
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/39104/ft1_filtered_4FGL_J1608.0+4949_daily_bin676.fits evtable="EVENTS" scfile=/scratch/kocevski/39104/ft2_4FGL_J1608.0+4949_daily_bin676.fits sctable="SC_DATA" expcube=/scratch/kocevski/39104/ltcube_414547201_414806401_4FGL_J1608.0+4949_daily_bin676.fits outfile=/scratch/kocevski/39104/expmap_414547201_414806401_4FGL_J1608.0+4949_daily_bin676.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/39104/ltcube_414547201_414806401_4FGL_J1608.0+4949_daily_bin676.fits
.....................!
real 192.85
user 187.67
sys 4.59

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/39104/ft1_filtered_4FGL_J1608.0+4949_daily_bin676.fits scfile=/scratch/kocevski/39104/ft2_4FGL_J1608.0+4949_daily_bin676.fits outfile=/scratch/kocevski/39104/cmap_414547201_414806401_4FGL_J1608.0+4949_daily_bin676.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.57
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/39104/ft1_filtered_4FGL_J1608.0+4949_daily_bin676.fits scfile=/scratch/kocevski/39104/ft2_4FGL_J1608.0+4949_daily_bin676.fits outfile=/scratch/kocevski/39104/cmap_HighResolution_414547201_414806401_4FGL_J1608.0+4949_daily_bin676.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0490       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2586       1.0000         .10000E-03   10000.    
     6 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2432       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.847       1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.067       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    21.148       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11469E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9743       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.945       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2359       1.0000         .10000E-03   10000.    
    19 'norm      '    15.060       1.0000         .10000E-03   10000.    
    20 'norm      '    7.5995       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.6859       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.936       1.0000         .10000E-03   10000.    
    23 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11038E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.2529       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    2.9847       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.5455       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .53760       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .95691       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=   2504.367     FROM MIGRAD    STATUS=CONVERGED    852 CALLS     4445 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.254        .18294E-06** at limit **
   2  norm          .10000E-03    2.9835       -.84317E-08** at limit **
   3  Prefactor     .10000E-03    10.484       -.34721E-06** at limit **
   4  Prefactor     4.0484        10.423        .74908E-07   -.49420E-04
   5  Prefactor     2.2583        14.907        .87308E-05    .94181E-04
   6  norm          .10000E-03    11.592        .11420E-05** at limit **
   7  Prefactor     2.2497        69.640        .12224E-04   -.23450E-03
   8  Prefactor     .10000E-03    12.909       -.54657E-06** at limit **
   9  Prefactor     25.848        36.971       -.37462E-05   -.16459E-03
  10  Prefactor     30.066        40.231        .96300E-06    .30436E-05
  11  Prefactor     .10000E-03    42.762        .32880E-05** at limit **
  12  norm          21.153        32.476       -.10977E-05   -.17798E-03
  13  Prefactor     .10000E-03    110.49       -.55271E-05** at limit **
  14  Prefactor     .10000E-03    156.93        .67749E-05** at limit **
  15  Prefactor     3.9751        9.8628        .86523E-06    .16730E-03
  16  Prefactor     .10000E-03    35.767       -.22180E-05** at limit **
  17  Prefactor     49.940        30.990       -.24458E-06   -.16013E-03
  18  Prefactor     2.2374        5.7321        .40596E-06    .46599E-04
  19  norm          15.064        37.702       -.66455E-07   -.20112E-04
  20  norm          7.5976        19.729        .10784E-05    .17659E-04
  21  Prefactor     6.6862        8.5074        .15446E-05    .79761E-04
  22  Prefactor     16.935        15.497        .26564E-06   -.18255E-04
  23  norm          .10000E-03    69.188       -.40579E-06** at limit **
  24  Prefactor     .10000E-03    2.2214       -.19102E-07** at limit **
  25  Prefactor     3.2545        2.4476        .65056E-07    .16791E-03
  26  Prefactor     .10000E-03    9.3855       -.68754E-07** at limit **
  27  Prefactor     .10000E-03    1.0834       -.94758E-08** at limit **
  28  Prefactor     .10000E-03    14.450        .90163E-07** at limit **
  29  norm          2.9849        1.8627       -.87999E-07   -.17090E-03
  30  Prefactor     1.5432        13.994        .11969E-05    .66547E-05
  31  Normalizat    .53771        .31975       -.95076E-06   -.96180E-04
  32  Prefactor     .95683        .29586       -.17333E-05   -.70263E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.04837
  Prefactor  = 2.25835
  norm       = 0.000100001
  Prefactor  = 2.2497
  Prefactor  = 0.0001
  Prefactor  = 25.8476
  Prefactor  = 30.0661
  Prefactor  = 0.000100002
  norm       = 21.1528
  Prefactor  = 0.000100002
  Prefactor  = 0.000100004
  Prefactor  = 3.97511
  Prefactor  = 0.000100001
  Prefactor  = 49.9405
  Prefactor  = 2.23737
  norm       = 15.0636
  norm       = 7.5976
  Prefactor  = 6.68618
  Prefactor  = 16.9351
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.2545
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.98492
  Prefactor  = 1.54317
  Normalizat = 0.537707
  Prefactor  = 0.956835
 **********
 **   18 **HESSE 
 **********

 FCN=   2504.367     FROM HESSE     STATUS=OK           657 CALLS     5102 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.0948        .16870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.497        .15831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0484        10.403        .20039E-03   -1.5306    
   5  Prefactor     2.2583        14.572        .13668E-02   -1.5407    
   6  norm          .10000E-03    11.845        .33149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2497        72.677        .13720E-02   -1.5408    
   8  Prefactor     .10000E-03    12.908        .17560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.848        36.619        .78795E-04   -1.4691    
  10  Prefactor     30.066        40.249        .73069E-04   -1.4611    
  11  Prefactor     .10000E-03    43.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          21.153        32.620        .87099E-04   -1.4788    
  13  Prefactor     .10000E-03    109.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    156.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.9751        9.8593        .20232E-03   -1.5309    
  16  Prefactor     .10000E-03    35.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     49.940        31.089        .56744E-04   -1.4293    
  18  Prefactor     2.2374        5.6119        .16716E-03   -1.5409    
  19  norm          15.064        37.780        .10321E-03   -1.4932    
  20  norm          7.5976        19.713        .72736E-03   -1.5157    
  21  Prefactor     6.6862        8.4732        .74820E-03   -1.5191    
  22  Prefactor     16.935        15.500        .97323E-04   -1.4885    
  23  norm          .10000E-03    69.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.8515        .12364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.2545        2.1380        .55075E-04   -1.5347    
  26  Prefactor     .10000E-03    9.7181        .29780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.0855        .50855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    14.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          2.9849        1.8496        .49382E-04   -1.5362    
  30  Prefactor     1.5432        13.849        .34280E-03   -1.5460    
  31  Normalizat    .53771        .37185        .33093E-03   -1.1070    
  32  Prefactor     .95683        .34993        .24199E-03   -.94182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50718e-09
Minuit parameter uncertainties:
  1  1.1006e-05
  2  3.18118e-07
  3  5.0224e-05
  4  10.4073
  5  11.4771
  6  0.000169633
  7  25.6069
  8  4.02204e-05
  9  36.6506
  10  40.2857
  11  0.00055048
  12  32.6478
  13  0.00101517
  14  0.00155848
  15  9.86332
  16  0.000308564
  17  31.0992
  18  5.61319
  19  37.8398
  20  19.7303
  21  8.47476
  22  15.5041
  23  7.90272e-05
  24  5.90851e-06
  25  2.13809
  26  2.44111e-05
  27  6.83235e-07
  28  1.26325e-05
  29  1.84959
  30  9.24855
  31  0.373591
  32  0.350756
Done.

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

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.558e-03  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.568e-01  3.508e-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:  5.377e-01  3.736e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/39104/likelihoodResults_414547201_414806401_4FGL_J1608.0+4949_daily_bin676.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) = 2504.36692692
delta logL = -3.03243255075e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2504.36689661
delta logL = -1.5216301108e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2331       1.0000          .0000       10.000    
     3 'Normalizat'    .53771       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95683       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=   2504.367     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      244 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    8096.9        .90712E-02** at limit **
   2  Index         2.2568        6.0700        .50000       -.14296E-05
   3  Normalizat    .53771        .53931E-01    .74738E-01   -.98504E-04
   4  Prefactor     .95684        .51969E-01    .45725E-01   -.67994E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100035
  Index      = 2.2568
  Normalizat = 0.537706
  Prefactor  = 0.956835
 **********
 **   18 **HESSE 
 **********

 FCN=   2504.367     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      275 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    9992.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2568        6.0519        .50000       -.58074    
   3  Normalizat    .53771        .12769        .33093E-03   -1.1070    
   4  Prefactor     .95684        .12332        .24199E-03   -.94182    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.05897e-08
Minuit parameter uncertainties:
  1  0.0602475
  2  55.6333
  3  0.12776
  4  0.123354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/39104': 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) = 2504.3668966
delta logL = -3.59841578756e-09

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  6.025e-02  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  2.257e+00  5.563e+01  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.568e-01  1.234e-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:  5.377e-01  1.278e-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/39104/cmap_HighResolution_414547201_414806401_4FGL_J1608.0+4949_daily_bin676.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-02', job_status='DONE', photon_flux_upper_limit='1.89e-07', time_completed='2021-09-13 09:05:13.935336', job_id='39104', GAL2='0.96', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1631549113.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='-3.60e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='676' AND source_name='4FGL J1608.0+4949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:05:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 39104: <4FGL_J1608.0+4949_daily_bin676> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.0+4949_daily_bin676 242.014 49.829 414547201 414806401 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 :                                   616.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            892 sec.

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

