aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 0 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7341
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1608.0+4949_daily_bin1752
RA = 242.014, Dec = 49.829
tmin = 693446401, tmax = 693705601
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='267930', job_status='RUN', time_executed='2022-12-26 01:12:44.285425', time_epoch_executed='1672045964.29' WHERE source_name='4FGL J1608.0+4949' and cadence='daily' and bin_id='1752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267930

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267930/ft1_4FGL_J1608.0+4949_daily_bin1752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267930/ft2_4FGL_J1608.0+4949_daily_bin1752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267930/ft1_4FGL_J1608.0+4949_daily_bin1752.fits outfile=/scratch/kocevski/267930/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin1752.fits ra=242.014 dec=49.829 rad=12.0 tmin=693446401.0 tmax=693705601.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 3.49
user 3.26
sys 0.20

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

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

Number of photons that the gtmktime cut: 579

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/267930/ft1_filtered_4FGL_J1608.0+4949_daily_bin1752.fits" evtable="EVENTS" scfile=/scratch/kocevski/267930/ft2_4FGL_J1608.0+4949_daily_bin1752.fits sctable="SC_DATA" outfile=/scratch/kocevski/267930/ltcube_693446401_693705601_4FGL_J1608.0+4949_daily_bin1752.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/267930/ft2_4FGL_J1608.0+4949_daily_bin1752.fits
.....................!
real 14.74
user 14.33
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267930/ft1_filtered_4FGL_J1608.0+4949_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/267930/ft2_4FGL_J1608.0+4949_daily_bin1752.fits sctable="SC_DATA" expcube=/scratch/kocevski/267930/ltcube_693446401_693705601_4FGL_J1608.0+4949_daily_bin1752.fits outfile=/scratch/kocevski/267930/expmap_693446401_693705601_4FGL_J1608.0+4949_daily_bin1752.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/267930/ltcube_693446401_693705601_4FGL_J1608.0+4949_daily_bin1752.fits
.....................!
real 192.01
user 186.23
sys 5.15

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/267930/ft1_filtered_4FGL_J1608.0+4949_daily_bin1752.fits scfile=/scratch/kocevski/267930/ft2_4FGL_J1608.0+4949_daily_bin1752.fits outfile=/scratch/kocevski/267930/cmap_693446401_693705601_4FGL_J1608.0+4949_daily_bin1752.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/267930/ft1_filtered_4FGL_J1608.0+4949_daily_bin1752.fits scfile=/scratch/kocevski/267930/ft2_4FGL_J1608.0+4949_daily_bin1752.fits outfile=/scratch/kocevski/267930/cmap_HighResolution_693446401_693705601_4FGL_J1608.0+4949_daily_bin1752.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/267930/ft1_filtered_4FGL_J1608.0+4949_daily_bin1752.fits', '/scratch/kocevski/267930/ft2_4FGL_J1608.0+4949_daily_bin1752.fits', expMap='/scratch/kocevski/267930/expmap_693446401_693705601_4FGL_J1608.0+4949_daily_bin1752.fits', expCube='/scratch/kocevski/267930/ltcube_693446401_693705601_4FGL_J1608.0+4949_daily_bin1752.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/267930/Model_4FGL_J1608.0+4949_daily_bin1752.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  0.000e+00  1.000e+06 ( 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/267930/ft1_filtered_4FGL_J1608.0+4949_daily_bin1752.fits
Spacecraft file(s): /scratch/kocevski/267930/ft2_4FGL_J1608.0+4949_daily_bin1752.fits
Exposure map: /scratch/kocevski/267930/expmap_693446401_693705601_4FGL_J1608.0+4949_daily_bin1752.fits
Exposure cube: /scratch/kocevski/267930/ltcube_693446401_693705601_4FGL_J1608.0+4949_daily_bin1752.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/267930/Model_4FGL_J1608.0+4949_daily_bin1752.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) = 6167.50294719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0707       1.0000          .0000       .10000E+07
     2 'Prefactor '    .14474E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.3774       1.0000          .0000       .10000E+07
     4 'Prefactor '    5.1622       1.0000          .0000       .10000E+07
     5 'norm      '    1.6309       1.0000          .0000       .10000E+07
     6 'Prefactor '    .26329E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .49292E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    9.5922       1.0000          .0000       .10000E+07
     9 'Prefactor '    .28244E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.7153       1.0000          .0000       .10000E+07
    11 'norm      '    .33957E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .53587E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    5.9618       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.1827       1.0000          .0000       .10000E+07
    15 'Prefactor '    .88946E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    7.3745       1.0000          .0000       .10000E+07
    17 'Prefactor '    .20065E-05   1.0000          .0000       .10000E+07
    18 'norm      '    .63772E-03   1.0000          .0000       .10000E+07
    19 'norm      '    10.359       1.0000          .0000       .10000E+07
    20 'Prefactor '    1.8001       1.0000          .0000       .10000E+07
    21 'Prefactor '    10.962       1.0000          .0000       .10000E+07
    22 'norm      '    92.810       1.0000          .0000       .10000E+07
    23 'Prefactor '    1.6098       1.0000          .0000       .10000E+07
    24 'Prefactor '    1.9707       1.0000          .0000       .10000E+07
    25 'Prefactor '    5.0508       1.0000          .0000       .10000E+07
    26 'Prefactor '    .26006E-04   1.0000          .0000       .10000E+07
    27 'Prefactor '    .72498E-06   1.0000          .0000       .10000E+07
    28 'norm      '    .86929E-01   1.0000          .0000       .10000E+07
    29 'Prefactor '    .23232       1.0000          .0000       .10000E+07
    30 'Normalizat'    .93418       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .95561       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=   6167.486     FROM MIGRAD    STATUS=CONVERGED    188 CALLS     3009 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0713        1.9408        .40767E-07    .25692E-02
   2  Prefactor     .85376E-07    2.8784        .49065E-07** at limit **
   3  Prefactor     6.3715        2.4113       -.24086E-08   -.10893E-01
   4  Prefactor     5.1493        7.0440       -.77108E-08   -.25170E-03
   5  norm          1.6295        2.5087       -.27746E-07   -.70091E-03
   6  Prefactor     .55511E-10    3.4053       -.62151E-07** at limit **
   7  Prefactor     .35527E-08    33.298       -.99798E-07** at limit **
   8  Prefactor     9.6108        1.8494       -.13504E-07    .29468E-01
   9  Prefactor     .40190E-07    4.5198        .93342E-07** at limit **
  10  Prefactor     2.7066        5.5457       -.76927E-08   -.20029E-03
  11  norm           .0000        2.8970       -.76256E-07** at limit **
  12  Prefactor      .0000        14.663       -.21104E-07** at limit **
  13  Prefactor     5.4083        63.952        .12455E-06    .15961E-01
  14  Prefactor     4.1814        3.6492       -.63037E-08   -.11951E-03
  15  Prefactor     .64948E-08    5.9778       -.63686E-07** at limit **
  16  Prefactor     7.4660        5.8253        .11874E-08   -.97368E-03
  17  Prefactor      .0000        1.4506        .61269E-08** at limit **
  18  norm          .16653E-09    5.6513       -.45628E-07** at limit **
  19  norm          10.365        1.2021       -.17242E-08    .16142E-02
  20  Prefactor     1.7970        3.4226        .96121E-08    .29876E-03
  21  Prefactor     10.954        6.3457       -.82028E-08   -.23436E-02
  22  norm          92.118        39.572        .34123E-07   -.60345E-01
  23  Prefactor     1.6111        1.4074       -.13540E-08    .95263E-03
  24  Prefactor     1.9752        1.6721        .17692E-07    .16305E-02
  25  Prefactor     5.0498        2.8073       -.37125E-07   -.11349E-02
  26  Prefactor      .0000        2.1227        .36136E-07** at limit **
  27  Prefactor      .0000        29.603       -.64822E-07** at limit **
  28  norm          .86730E-01    .37342       -.54130E-08** at limit **
  29  Prefactor     .23418        .83681        .17477E-07** at limit **
  30  Normalizat    .93406        .20700        .83153E-06    .94287E-04
  31  Prefactor     .95579        .20542        .69479E-06    .90910E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.07128
  Prefactor  = 8.53762e-08
  Prefactor  = 6.37149
  Prefactor  = 5.14928
  norm       = 1.62952
  Prefactor  = 5.55112e-11
  Prefactor  = 3.55271e-09
  Prefactor  = 9.61079
  Prefactor  = 4.01901e-08
  Prefactor  = 2.70657
  norm       = 0
  Prefactor  = 0
  Prefactor  = 5.40834
  Prefactor  = 4.18142
  Prefactor  = 6.4948e-09
  Prefactor  = 7.46601
  Prefactor  = 0
  norm       = 1.66533e-10
  norm       = 10.3655
  Prefactor  = 1.79701
  Prefactor  = 10.9537
  norm       = 92.1184
  Prefactor  = 1.61115
  Prefactor  = 1.97518
  Prefactor  = 5.04983
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.0867303
  Prefactor  = 0.23418
  Normalizat = 0.934057
  Prefactor  = 0.955787
 **********
 **   18 **HESSE 
 **********

 FCN=   6167.486     FROM HESSE     STATUS=OK           698 CALLS     3707 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0713        1.9451        .57861E-03   -1.5673    
   2  Prefactor     .85376E-07    7.0396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.3715        7.4964        .39721E-03   -1.5657    
   4  Prefactor     5.1493        7.1377        .44223E-03   -1.5663    
   5  norm          1.6295        2.5882        .82771E-03   -1.5682    
   6  Prefactor     .55511E-10    3.4079        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .35527E-08    14.792        .10638E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.6108        14.090        .32332E-03   -1.5646    
   9  Prefactor     .40190E-07    7.1451        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7066        5.5650        .61781E-03   -1.5675    
  11  norm           .0000        2.8983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        14.673        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.4083        143.25        .41101E-03   -1.5661    
  14  Prefactor     4.1814        3.6559        .49254E-03   -1.5667    
  15  Prefactor     .64948E-08    6.2974        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.4660        5.9377        .36910E-03   -1.5653    
  17  Prefactor      .0000        1.4442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .16653E-09    5.6716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.365        11.730        .31106E-03   -1.5644    
  20  Prefactor     1.7970        3.4552        .77887E-03   -1.5681    
  21  Prefactor     10.954        6.4371        .30235E-03   -1.5642    
  22  norm          92.118        53.617        .10381E-03   -1.5516    
  23  Prefactor     1.6111        1.4157        .83458E-03   -1.5683    
  24  Prefactor     1.9752        1.7096        .73832E-03   -1.5680    
  25  Prefactor     5.0498        2.8195        .44718E-03   -1.5663    
  26  Prefactor      .0000        2.1095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor      .0000        29.153        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .86730E-01    .33816        .14294E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .23418        2.7835        .80789E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .93406        .18137        .45337E-01   -.95274    
  31  Prefactor     .95579        .17532        .45710E-01   -.94218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39366e-07
Minuit parameter uncertainties:
  1  1.94507
  2  0.00155063
  3  7.49641
  4  7.13772
  5  2.58822
  6  2.87258e-05
  7  0.000458574
  8  14.0902
  9  0.00107153
  10  5.56498
  11  6.11522e-06
  12  2.41406e-05
  13  55.6701
  14  3.65595
  15  0.000404505
  16  5.93774
  17  1.64399e-06
  18  6.23079e-05
  19  11.7305
  20  3.45524
  21  6.43711
  22  53.6171
  23  1.41568
  24  1.70964
  25  2.81945
  26  1.14252e-07
  27  2.49938e-05
  28  0.338161
  29  1.61473
  30  0.181486
  31  0.175419
Done.

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

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  5.408e+00  5.567e+01  0.000e+00  1.000e+06 ( 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.558e-01  1.754e-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.341e-01  1.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 242.014 49.829
Photon Flux Upper Limit: 6.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/267930/likelihoodResults_693446401_693705601_4FGL_J1608.0+4949_daily_bin1752.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): 0
logL (Free Index) = 6167.43802812
delta logL = 0.0478020281471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6167.43685874
delta logL = 0.0489714115511

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3006       1.0000          .0000       .10000E+07
     2 'Index     '    2.9758       1.0000          .0000       10.000    
     3 'Normalizat'    .92522       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95953       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=   6167.437     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      237 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2655        580.35        .43631E-03   -.88276E-03
   2  Index         2.9811        3.5058        .22163        .10313E-04
   3  Normalizat    .92525        .30183E-01    .45223E-01   -.19729E-03
   4  Prefactor     .95955        .30112E-01    .45759E-01   -.34848E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.2655
  Index      = 2.9811
  Normalizat = 0.925251
  Prefactor  = 0.959549
 **********
 **   18 **HESSE 
 **********

 FCN=   6167.437     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2655        133.33        .17452E-04   -1.5662    
   2  Index         2.9811        3.6642        .99844E-02   -.41565    
   3  Normalizat    .92525        .20452        .24910E-03   -.95578    
   4  Prefactor     .95955        .20575        .24792E-03   -.94090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18584e-10
Minuit parameter uncertainties:
  1  52.9937
  2  4.24966
  3  0.204693
  4  0.205914
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267930': 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): 0
logL (Free Index) = 6167.436855
delta logL = 0.0489751460264

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  5.265e+00  5.299e+01  0.000e+00  1.000e+06 ( 1.000e-14)
309        Index:  2.981e+00  4.250e+00  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  1.615e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  9.595e-01  2.059e-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.253e-01  2.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/267930/cmap_HighResolution_693446401_693705601_4FGL_J1608.0+4949_daily_bin1752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-03', job_status='DONE', photon_flux_upper_limit='6.93e-08', time_completed='2022-12-26 01:27:05.450037', job_id='267930', GAL2='0.96', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1672046825.45', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='4.90e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1752' AND source_name='4FGL J1608.0+4949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 26 01:27:05 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 267930: <4FGL_J1608.0+4949_daily_bin1752> in cluster <slac> Done

Job <4FGL_J1608.0+4949_daily_bin1752> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Dec 26 01:10:45 2022
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 26 01:12:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 26 01:12:36 2022
Terminated at Mon Dec 26 01:27:06 2022
Results reported at Mon Dec 26 01:27:06 2022

Your job looked like:

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

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

