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


Performing analysis on: 4FGL_J1608.0+4949_daily_bin125
RA = 242.014, Dec = 49.829
tmin = 271728001, tmax = 271987201
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='34461', job_status='RUN', time_executed='2021-09-13 08:38:18.173886', time_epoch_executed='1631547498.17' WHERE source_name='4FGL J1608.0+4949' and cadence='daily' and bin_id='125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34461

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34461/ft1_4FGL_J1608.0+4949_daily_bin125.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34461/ft2_4FGL_J1608.0+4949_daily_bin125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34461/ft1_4FGL_J1608.0+4949_daily_bin125.fits outfile=/scratch/kocevski/34461/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin125.fits ra=242.014 dec=49.829 rad=12.0 tmin=271728001.0 tmax=271987201.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.58
user 2.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34461/ft1_filtered_4FGL_J1608.0+4949_daily_bin125.fits" evtable="EVENTS" scfile=/scratch/kocevski/34461/ft2_4FGL_J1608.0+4949_daily_bin125.fits sctable="SC_DATA" outfile=/scratch/kocevski/34461/ltcube_271728001_271987201_4FGL_J1608.0+4949_daily_bin125.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/34461/ft2_4FGL_J1608.0+4949_daily_bin125.fits
.....................!
real 10.94
user 10.55
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34461/ft1_filtered_4FGL_J1608.0+4949_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/34461/ft2_4FGL_J1608.0+4949_daily_bin125.fits sctable="SC_DATA" expcube=/scratch/kocevski/34461/ltcube_271728001_271987201_4FGL_J1608.0+4949_daily_bin125.fits outfile=/scratch/kocevski/34461/expmap_271728001_271987201_4FGL_J1608.0+4949_daily_bin125.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/34461/ltcube_271728001_271987201_4FGL_J1608.0+4949_daily_bin125.fits
.....................!
real 155.80
user 151.13
sys 4.24

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/34461/ft1_filtered_4FGL_J1608.0+4949_daily_bin125.fits scfile=/scratch/kocevski/34461/ft2_4FGL_J1608.0+4949_daily_bin125.fits outfile=/scratch/kocevski/34461/cmap_271728001_271987201_4FGL_J1608.0+4949_daily_bin125.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.46
user 0.30
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34461/ft1_filtered_4FGL_J1608.0+4949_daily_bin125.fits scfile=/scratch/kocevski/34461/ft2_4FGL_J1608.0+4949_daily_bin125.fits outfile=/scratch/kocevski/34461/cmap_HighResolution_271728001_271987201_4FGL_J1608.0+4949_daily_bin125.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.47
user 0.30
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .73197       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.673       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4944       1.0000         .10000E-03   10000.    
     6 'norm      '    3.5460       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.7878       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .51516       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5661       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.403       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14405       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.3878       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.3293       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.3802       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.6410       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .90962       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1217       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=   6114.439     FROM MIGRAD    STATUS=CONVERGED    881 CALLS     3748 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.920       -.43313E-05** at limit **
   2  norm          .73287        1.4717       -.25891E-06   -.13012E-02
   3  Prefactor     .10000E-03    5.4140       -.18573E-06** at limit **
   4  Prefactor     15.671        9.3819        .57949E-06    .22111E-04
   5  Prefactor     6.4870        10.562        .17514E-05   -.90119E-04
   6  norm          3.5454        3.2246        .23021E-06   -.81378E-04
   7  Prefactor     .10000E-03    3.1972        .98237E-08** at limit **
   8  Prefactor     8.7819        14.339       -.34486E-05   -.29830E-04
   9  Prefactor     .10000E-03    6.3534        .18569E-06** at limit **
  10  Prefactor     .39821        17.175        .17656E-06   -.16112E-03
  11  Prefactor     .10000E-03    3.9101       -.12950E-05** at limit **
  12  norm          .10000E-03    3.7646        .74314E-06** at limit **
  13  Prefactor     2.3825        118.63       -.10317E-04   -.20066E-04
  14  Prefactor     .10000E-03    34.026       -.74367E-06** at limit **
  15  Prefactor     .10000E-03    2.2368        .12163E-07** at limit **
  16  Prefactor     18.397        15.137       -.10497E-05   -.35082E-04
  17  Prefactor     .10000E-03    1.9474       -.44526E-07** at limit **
  18  Prefactor     .13151        1.8264        .79368E-06   -.11920E-02
  19  norm          .10000E-03    12.268        .67036E-05** at limit **
  20  norm          .10000E-03    7.0314       -.10285E-07** at limit **
  21  Prefactor     .10000E-03    1.0788       -.62469E-07** at limit **
  22  Prefactor     8.3855        7.6747        .24448E-06   -.16211E-03
  23  norm          .10000E-03    11.306       -.34615E-05** at limit **
  24  Prefactor     1.3298        2.2903       -.27143E-06   -.10909E-02
  25  Prefactor     5.3801        2.8771        .83927E-07   -.62193E-03
  26  Prefactor     7.6395        3.6230        .15328E-05   -.21734E-03
  27  Prefactor     .10000E-03    .96074       -.30639E-08** at limit **
  28  Prefactor     .10000E-03    4.0491        .67322E-06** at limit **
  29  norm          .10000E-03    .21783       -.61481E-07** at limit **
  30  Prefactor     .10000E-03    2.7097        .63222E-07** at limit **
  31  Normalizat    .90973        .19374       -.10105E-05   -.12027E-03
  32  Prefactor     1.1218        .18506        .40560E-07   -.16288E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.732874
  Prefactor  = 0.0001
  Prefactor  = 15.6712
  Prefactor  = 6.48699
  norm       = 3.54542
  Prefactor  = 0.0001
  Prefactor  = 8.78191
  Prefactor  = 0.0001
  Prefactor  = 0.398209
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.38254
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.397
  Prefactor  = 0.0001
  Prefactor  = 0.131509
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.38551
  norm       = 0.0001
  Prefactor  = 1.32978
  Prefactor  = 5.38006
  Prefactor  = 7.63954
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.909727
  Prefactor  = 1.12177
 **********
 **   18 **HESSE 
 **********

 FCN=   6114.439     FROM HESSE     STATUS=OK           659 CALLS     4407 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .73287        1.2095        .13227E-02   -1.5537    
   3  Prefactor     .10000E-03    5.4187        .17761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.671        9.3750        .10117E-03   -1.4916    
   5  Prefactor     6.4870        10.524        .15748E-03   -1.5199    
   6  norm          3.5454        3.2183        .12959E-03   -1.5331    
   7  Prefactor     .10000E-03    3.2034        .13649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.7819        14.337        .13521E-03   -1.5115    
   9  Prefactor     .10000E-03    6.3827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .39821        184.34        .62457E-02   -1.5582    
  11  Prefactor     .10000E-03    3.9152        .15083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.7897        .14817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3825        120.43        .25483E-03   -1.5399    
  14  Prefactor     .10000E-03    34.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.2436        .11415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.397        15.140        .93364E-04   -1.4850    
  17  Prefactor     .10000E-03    1.9543        .10655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .13151        22.316        .19524E-02   -1.5635    
  19  norm          .10000E-03    12.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.0482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.0824        .79306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.3855        7.6885        .13842E-03   -1.5129    
  23  norm          .10000E-03    11.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.3298        2.2339        .10186E-03   -1.5477    
  25  Prefactor     5.3801        2.8332        .63722E-04   -1.5244    
  26  Prefactor     7.6395        3.5667        .96249E-04   -1.5155    
  27  Prefactor     .10000E-03    .96726        .74801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.0562        .15356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    .22521        .71242E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.7256        .12568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .90973        .23009        .26885E-03   -.96119    
  32  Prefactor     1.1218        .22263        .24669E-03   -.88774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32385e-08
Minuit parameter uncertainties:
  1  4.60943e-06
  2  1.20959
  3  1.30717e-05
  4  9.37587
  5  10.5274
  6  3.21842
  7  3.86063e-06
  8  14.3428
  9  1.88423e-05
  10  17.1868
  11  6.30671e-06
  12  1.15779e-05
  13  33.9498
  14  8.65791e-06
  15  4.14056e-06
  16  15.1433
  17  1.81628e-06
  18  3.42625
  19  1.96262e-05
  20  1.45555e-06
  21  3.1613e-06
  22  7.6894
  23  4.46862e-07
  24  2.234
  25  2.83331
  26  3.5668
  27  7.90278e-09
  28  1.08963e-05
  29  2.27304e-06
  30  2.73335e-06
  31  0.230334
  32  0.222815
Done.

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

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  8.658e-06  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.122e+00  2.228e-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.097e-01  2.303e-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: 5.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34461/likelihoodResults_271728001_271987201_4FGL_J1608.0+4949_daily_bin125.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) = 6114.43930962
delta logL = -0.000139770882015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6114.43917086
delta logL = -1.00664510683e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11051E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1600       1.0000          .0000       10.000    
     3 'Normalizat'    .90972       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1218       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=   6114.439     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      246 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9704        .90712E-02** at limit **
   2  Index         3.1469        7.5220        .50000        .55935E-05
   3  Normalizat    .90973        .13540E-02    .45026E-01    .70044E-04
   4  Prefactor     1.1218        .13711E-02    .55792E-01    .44070E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.1469
  Normalizat = 0.909727
  Prefactor  = 1.12177
 **********
 **   18 **HESSE 
 **********

 FCN=   6114.439     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      279 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    721.26        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1469        7.0223        .50000       -.37968    
   3  Normalizat    .90973        .26769E-01    .26885E-03   -.96119    
   4  Prefactor     1.1218        .27055E-01    .24669E-03   -.88774    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02912e-06
Minuit parameter uncertainties:
  1  0.00102284
  2  861.113
  3  0.0267694
  4  0.0270549
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34461': 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) = 6114.43917061
delta logL = -7.5467141869e-07

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.023e-03  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  3.147e+00  8.611e+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.122e+00  2.705e-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:  9.097e-01  2.677e-02  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/34461/cmap_HighResolution_271728001_271987201_4FGL_J1608.0+4949_daily_bin125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-03', job_status='DONE', photon_flux_upper_limit='5.26e-08', time_completed='2021-09-13 08:51:36.550557', job_id='34461', GAL2='1.12', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1631548296.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='-7.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='125' AND source_name='4FGL J1608.0+4949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 08:51:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 34461: <4FGL_J1608.0+4949_daily_bin125> in cluster <slac> Done

Job <4FGL_J1608.0+4949_daily_bin125> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep 13 08:35:16 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 08:35:36 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:35:36 2021
Terminated at Mon Sep 13 08:51:37 2021
Results reported at Mon Sep 13 08:51:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.0+4949_daily_bin125 242.014 49.829 271728001 271987201 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 :                                   795.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            981 sec.

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

