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


Performing analysis on: 4FGL_J1608.0+4949_daily_bin505
RA = 242.014, Dec = 49.829
tmin = 370224001, tmax = 370483201
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='37600', job_status='RUN', time_executed='2021-09-13 08:48:35.606011', time_epoch_executed='1631548115.61' WHERE source_name='4FGL J1608.0+4949' and cadence='daily' and bin_id='505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/37600

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/37600/ft1_4FGL_J1608.0+4949_daily_bin505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/37600/ft2_4FGL_J1608.0+4949_daily_bin505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/37600/ft1_4FGL_J1608.0+4949_daily_bin505.fits outfile=/scratch/kocevski/37600/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin505.fits ra=242.014 dec=49.829 rad=12.0 tmin=370224001.0 tmax=370483201.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 13.47
user 13.01
sys 0.39

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/37600/ft2_4FGL_J1608.0+4949_daily_bin505.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/37600/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin505.fits evtable="EVENTS" outfile="/scratch/kocevski/37600/ft1_filtered_4FGL_J1608.0+4949_daily_bin505.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.45
user 0.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/37600/ft1_filtered_4FGL_J1608.0+4949_daily_bin505.fits" evtable="EVENTS" scfile=/scratch/kocevski/37600/ft2_4FGL_J1608.0+4949_daily_bin505.fits sctable="SC_DATA" outfile=/scratch/kocevski/37600/ltcube_370224001_370483201_4FGL_J1608.0+4949_daily_bin505.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/37600/ft2_4FGL_J1608.0+4949_daily_bin505.fits
.....................!
real 10.28
user 9.92
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/37600/ft1_filtered_4FGL_J1608.0+4949_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/37600/ft2_4FGL_J1608.0+4949_daily_bin505.fits sctable="SC_DATA" expcube=/scratch/kocevski/37600/ltcube_370224001_370483201_4FGL_J1608.0+4949_daily_bin505.fits outfile=/scratch/kocevski/37600/expmap_370224001_370483201_4FGL_J1608.0+4949_daily_bin505.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/37600/ltcube_370224001_370483201_4FGL_J1608.0+4949_daily_bin505.fits
.....................!
real 157.39
user 151.98
sys 4.92

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/37600/ft1_filtered_4FGL_J1608.0+4949_daily_bin505.fits scfile=/scratch/kocevski/37600/ft2_4FGL_J1608.0+4949_daily_bin505.fits outfile=/scratch/kocevski/37600/cmap_370224001_370483201_4FGL_J1608.0+4949_daily_bin505.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.49
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/37600/ft1_filtered_4FGL_J1608.0+4949_daily_bin505.fits scfile=/scratch/kocevski/37600/ft2_4FGL_J1608.0+4949_daily_bin505.fits outfile=/scratch/kocevski/37600/cmap_HighResolution_370224001_370483201_4FGL_J1608.0+4949_daily_bin505.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/37600/ft1_filtered_4FGL_J1608.0+4949_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/37600/ft2_4FGL_J1608.0+4949_daily_bin505.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/37600/Model_4FGL_J1608.0+4949_daily_bin505.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/37600/ft1_filtered_4FGL_J1608.0+4949_daily_bin505.fits.....................!
real 29.95
user 28.78
sys 1.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.533       1.0000         .10000E-03   10000.    
     2 'norm      '    .56795E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .41071E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12708E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.5586       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.5458       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.544       1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.707       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.223       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.983       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2296       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .24218       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3208       1.0000         .10000E-03   10000.    
    19 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .64867       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.252       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.2060       1.0000         .10000E-03   10000.    
    23 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.8503       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.1949       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .57086       1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.3228       1.0000         .10000E-03   10000.    
    29 'norm      '    .33165       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .68344       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .79871       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=   3763.740     FROM MIGRAD    STATUS=CONVERGED    871 CALLS     4512 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.532        22.584       -.75989E-07   -.12170E-03
   2  norm          .50812E-01    1.2175        .72550E-06   -.33456E-03
   3  Prefactor     .10000E-03    19.267       -.79121E-06** at limit **
   4  Prefactor     .10000E-03    4.7663       -.12000E-05** at limit **
   5  Prefactor     .10001E-03    9.1378       -.51273E-05** at limit **
   6  norm          4.5580        4.7466        .17885E-07   -.13347E-04
   7  Prefactor     6.5542        19.145        .25725E-06    .44233E-04
   8  Prefactor     .10000E-03    20.546       -.17044E-05** at limit **
   9  Prefactor     19.539        25.197        .62180E-06    .63247E-04
  10  Prefactor     42.672        43.764        .38578E-05   -.17303E-04
  11  Prefactor     .10000E-03    7.3677        .85748E-07** at limit **
  12  norm          18.228        10.196        .36725E-06   -.25718E-03
  13  Prefactor     16.980        28.049        .68670E-06   -.25736E-04
  14  Prefactor     .10000E-03    61.198       -.89054E-06** at limit **
  15  Prefactor     4.2304        6.0965        .15010E-06   -.69234E-04
  16  Prefactor     .10000E-03    12.205       -.61495E-07** at limit **
  17  Prefactor     .24883        4.8862        .20791E-05   -.30150E-03
  18  Prefactor     2.3204        6.2910        .74810E-05    .69524E-04
  19  norm          .10000E-03    17.605        .14168E-05** at limit **
  20  norm          .66491        23.579       -.33473E-05    .14970E-04
  21  Prefactor     14.252        7.9311       -.20911E-06   -.36686E-03
  22  Prefactor     4.2064        5.3131        .82755E-06   -.95127E-04
  23  norm          .10000E-03    116.81        .13949E-05** at limit **
  24  Prefactor     2.8491        2.6729       -.77173E-06   -.43111E-03
  25  Prefactor     .10000E-03    1.8393        .22584E-07** at limit **
  26  Prefactor     6.1940        4.3303        .83901E-07   -.31202E-03
  27  Prefactor     .56385        5.0032        .21390E-05   -.18380E-03
  28  Prefactor     8.3208        11.290        .28651E-06   -.11905E-03
  29  norm          .33233        1.0309        .39663E-06    .10518E-03
  30  Prefactor     .10000E-03    5.2014        .99777E-07** at limit **
  31  Normalizat    .68279        .22303       -.59921E-05   -.42238E-03
  32  Prefactor     .79923        .19984        .14383E-05   -.42353E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.532
  norm       = 0.0508119
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 0.00010001
  norm       = 4.55804
  Prefactor  = 6.55422
  Prefactor  = 0.0001
  Prefactor  = 19.5391
  Prefactor  = 42.6723
  Prefactor  = 0.0001
  norm       = 18.2282
  Prefactor  = 16.9795
  Prefactor  = 0.0001
  Prefactor  = 4.23039
  Prefactor  = 0.0001
  Prefactor  = 0.248828
  Prefactor  = 2.32035
  norm       = 0.0001
  norm       = 0.664913
  Prefactor  = 14.2519
  Prefactor  = 4.20635
  norm       = 0.0001
  Prefactor  = 2.84914
  Prefactor  = 0.0001
  Prefactor  = 6.19397
  Prefactor  = 0.56385
  Prefactor  = 8.32083
  norm       = 0.33233
  Prefactor  = 0.0001
  Normalizat = 0.682789
  Prefactor  = 0.799234
 **********
 **   18 **HESSE 
 **********

 FCN=   3763.740     FROM HESSE     STATUS=OK           675 CALLS     5187 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.532        22.564        .11315E-03   -1.5000    
   2  norm          .50812E-01    8.6211        .12558E-02   -1.5663    
   3  Prefactor     .10000E-03    19.759        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.240        .25029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    23.730        .31215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.5580        4.7483        .11721E-03   -1.5281    
   7  Prefactor     6.5542        18.924        .15686E-03   -1.5196    
   8  Prefactor     .10000E-03    20.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.539        24.998        .90600E-04   -1.4824    
  10  Prefactor     42.672        43.886        .61343E-04   -1.4401    
  11  Prefactor     .10000E-03    7.4245        .16231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.228        10.214        .93823E-04   -1.4854    
  13  Prefactor     16.980        28.041        .97187E-04   -1.4884    
  14  Prefactor     .10000E-03    61.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.2304        6.0820        .17530E-03   -1.5297    
  16  Prefactor     .10000E-03    12.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .24883        43.739        .24333E-02   -1.5608    
  18  Prefactor     2.3204        6.6638        .11976E-02   -1.5403    
  19  norm          .10000E-03    17.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .66491        158.50        .54764E-02   -1.5545    
  21  Prefactor     14.252        7.8815        .10610E-03   -1.4953    
  22  Prefactor     4.2064        5.3049        .15187E-03   -1.5298    
  23  norm          .10000E-03    116.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.8491        2.6685        .85591E-04   -1.5370    
  25  Prefactor     .10000E-03    1.8659        .16125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     6.1940        4.2964        .98742E-04   -1.5210    
  27  Prefactor     .56385        18.384        .22692E-02   -1.5558    
  28  Prefactor     8.3208        11.298        .13896E-03   -1.5131    
  29  norm          .33233        .99655        .10137E-03   -1.5593    
  30  Prefactor     .10000E-03    5.2208        .13661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .68279        .25761        .25180E-03   -1.0458    
  32  Prefactor     .79923        .23602        .23054E-03   -.99757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37781e-09
Minuit parameter uncertainties:
  1  22.5798
  2  1.3226
  3  0.000358248
  4  0.000395057
  5  0.00096774
  6  4.74868
  7  18.9414
  8  1.92947e-05
  9  25.0116
  10  43.9195
  11  1.88215e-05
  12  10.215
  13  28.0626
  14  0.000121942
  15  6.0829
  16  8.08779e-06
  17  6.60159
  18  6.6659
  19  6.86676e-06
  20  20.5857
  21  7.88206
  22  5.30549
  23  6.27942e-05
  24  2.66858
  25  6.99945e-06
  26  4.29662
  27  6.44073
  28  11.301
  29  0.996603
  30  1.1423e-05
  31  0.258062
  32  0.236315
Done.

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

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.219e-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:  7.992e-01  2.363e-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:  6.828e-01  2.581e-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.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/37600/likelihoodResults_370224001_370483201_4FGL_J1608.0+4949_daily_bin505.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) = 3763.74006737
delta logL = -7.76801020947e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3763.73998984
delta logL = -1.52886514115e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11640E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2166       1.0000          .0000       10.000    
     3 'Normalizat'    .68279       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79924       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=   3763.740     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      227 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7364.2        .90712E-02** at limit **
   2  Index         2.2241        8.5381        .50000       -.10964E-05
   3  Normalizat    .68279        .52801E-01    .42060E-01    .14699E-04
   4  Prefactor     .79923        .52349E-01    .43707E-01    .82086E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22409
  Normalizat = 0.682791
  Prefactor  = 0.799234
 **********
 **   18 **HESSE 
 **********

 FCN=   3763.740     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      260 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9160.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2241        5.9657        .50000       -.58858    
   3  Normalizat    .68279        .13409        .25180E-03   -1.0458    
   4  Prefactor     .79923        .13299        .23054E-03   -.99757    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.84959e-10
Minuit parameter uncertainties:
  1  5.91657e-05
  2  62.1703
  3  0.134151
  4  0.133047
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/37600': 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) = 3763.7399897
delta logL = -1.16137925943e-08

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  5.917e-05  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  2.224e+00  6.217e+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:  7.992e-01  1.330e-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:  6.828e-01  1.342e-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/37600/cmap_HighResolution_370224001_370483201_4FGL_J1608.0+4949_daily_bin505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.61e-03', job_status='DONE', photon_flux_upper_limit='8.63e-08', time_completed='2021-09-13 08:59:56.563754', job_id='37600', GAL2='0.80', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1631548796.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='-1.16e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='505' AND source_name='4FGL J1608.0+4949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 08:59:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 37600: <4FGL_J1608.0+4949_daily_bin505> in cluster <slac> Done

Job <4FGL_J1608.0+4949_daily_bin505> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 08:45:19 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 08:45:39 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:45:39 2021
Terminated at Mon Sep 13 08:59:57 2021
Results reported at Mon Sep 13 08:59:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.0+4949_daily_bin505 242.014 49.829 370224001 370483201 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 :                                   675.16 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             267.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            878 sec.

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

