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


Performing analysis on: 4FGL_J1608.0+4949_daily_bin1769
RA = 242.014, Dec = 49.829
tmin = 697852801, tmax = 698112001
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='438479', job_status='RUN', time_executed='2023-02-15 01:00:59.750753', time_epoch_executed='1676451659.75' WHERE source_name='4FGL J1608.0+4949' and cadence='daily' and bin_id='1769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438479

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438479/ft1_4FGL_J1608.0+4949_daily_bin1769.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438479/ft2_4FGL_J1608.0+4949_daily_bin1769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438479/ft1_4FGL_J1608.0+4949_daily_bin1769.fits outfile=/scratch/kocevski/438479/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin1769.fits ra=242.014 dec=49.829 rad=12.0 tmin=697852801.0 tmax=698112001.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 4.38
user 4.15
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/438479/ft2_4FGL_J1608.0+4949_daily_bin1769.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/438479/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin1769.fits evtable="EVENTS" outfile="/scratch/kocevski/438479/ft1_filtered_4FGL_J1608.0+4949_daily_bin1769.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.49
user 0.35
sys 0.12

Number of photons that the gtmktime cut: 543

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438479/ft1_filtered_4FGL_J1608.0+4949_daily_bin1769.fits" evtable="EVENTS" scfile=/scratch/kocevski/438479/ft2_4FGL_J1608.0+4949_daily_bin1769.fits sctable="SC_DATA" outfile=/scratch/kocevski/438479/ltcube_697852801_698112001_4FGL_J1608.0+4949_daily_bin1769.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/438479/ft2_4FGL_J1608.0+4949_daily_bin1769.fits
.....................!
real 11.74
user 11.43
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438479/ft1_filtered_4FGL_J1608.0+4949_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/438479/ft2_4FGL_J1608.0+4949_daily_bin1769.fits sctable="SC_DATA" expcube=/scratch/kocevski/438479/ltcube_697852801_698112001_4FGL_J1608.0+4949_daily_bin1769.fits outfile=/scratch/kocevski/438479/expmap_697852801_698112001_4FGL_J1608.0+4949_daily_bin1769.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/438479/ltcube_697852801_698112001_4FGL_J1608.0+4949_daily_bin1769.fits
.....................!
real 191.00
user 186.76
sys 3.93

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/438479/ft1_filtered_4FGL_J1608.0+4949_daily_bin1769.fits scfile=/scratch/kocevski/438479/ft2_4FGL_J1608.0+4949_daily_bin1769.fits outfile=/scratch/kocevski/438479/cmap_697852801_698112001_4FGL_J1608.0+4949_daily_bin1769.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438479/ft1_filtered_4FGL_J1608.0+4949_daily_bin1769.fits scfile=/scratch/kocevski/438479/ft2_4FGL_J1608.0+4949_daily_bin1769.fits outfile=/scratch/kocevski/438479/cmap_HighResolution_697852801_698112001_4FGL_J1608.0+4949_daily_bin1769.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0266       1.0000          .0000       .10000E+07
     2 'Prefactor '    .13091E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    4.4433       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.9748       1.0000          .0000       .10000E+07
     5 'norm      '    .23443E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .72629E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .75812E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    20.915       1.0000          .0000       .10000E+07
     9 'Prefactor '    .10173E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .50204E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .96756E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    12.123       1.0000          .0000       .10000E+07
    13 'Prefactor '    .94205E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .39971E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    36.740       1.0000          .0000       .10000E+07
    16 'Prefactor '    4.0145       1.0000          .0000       .10000E+07
    17 'Prefactor '    .43120E-05   1.0000          .0000       .10000E+07
    18 'norm      '    .58023E-04   1.0000          .0000       .10000E+07
    19 'norm      '    .66557E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    4.0995       1.0000          .0000       .10000E+07
    21 'Prefactor '    9.2994       1.0000          .0000       .10000E+07
    22 'norm      '    .56047E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    .43173E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    1.2166       1.0000          .0000       .10000E+07
    25 'Prefactor '    1.9385       1.0000          .0000       .10000E+07
    26 'Prefactor '    .10040E-03   1.0000          .0000       .10000E+07
    27 'Prefactor '    2.7052       1.0000          .0000       .10000E+07
    28 'norm      '    .52047E-06   1.0000          .0000       .10000E+07
    29 'Prefactor '    .32610       1.0000          .0000       .10000E+07
    30 'Normalizat'    .87355       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0214       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=   5887.089     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     2967 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0288        1.8349       -.33415E-07   -.47424E-03
   2  Prefactor     .20151E-06    2.6650       -.43668E-06** at limit **
   3  Prefactor     4.4586        6.2427        .20704E-06    .72583E-03
   4  Prefactor     8.9204        1.6823       -.69086E-07    .21705E-01
   5  norm           .0000        1.2382       -.15996E-08** at limit **
   6  Prefactor     .55511E-10    3.6590       -.14473E-06** at limit **
   7  Prefactor     .36676E-06    8.6759       -.46477E-06** at limit **
   8  Prefactor     20.887        9.5873       -.61814E-06   -.71405E-01
   9  Prefactor     .64693E-06    9.1181        .11743E-06** at limit **
  10  Prefactor     .22399E-06    2.7542       -.54258E-06** at limit **
  11  norm          .37975E-06    5.1176       -.40454E-07** at limit **
  12  Prefactor     11.633        5.1453        .41837E-06   -.16765E-01
  13  Prefactor     .45698E-05    26.988       -.15461E-05** at limit **
  14  Prefactor     .66613E-09    4.3401       -.44347E-06** at limit **
  15  Prefactor     37.431        14.751       -.65794E-06    .89618E-01
  16  Prefactor     3.9558        7.0624       -.59858E-06   -.49881E-02
  17  Prefactor      .0000        .62482       -.17395E-06** at limit **
  18  norm          .16376E-06    2.6237       -.36041E-06** at limit **
  19  norm          .46180E-05    18.454        .34105E-06** at limit **
  20  Prefactor     4.0772        4.2967        .37045E-06   -.17073E-02
  21  Prefactor     9.3199        7.6836        .16004E-06    .16383E-01
  22  norm          .22160E-06    2.8076       -.45055E-06** at limit **
  23  Prefactor      .0000        .97325        .25956E-06** at limit **
  24  Prefactor     1.2161        .92527        .57766E-07   -.57204E-03
  25  Prefactor     1.9413        3.6162        .42532E-06   -.74651E-03
  26  Prefactor     .55511E-10    1.1843       -.28992E-06** at limit **
  27  Prefactor     2.6964        6.5816       -.32568E-06    .14311E-02
  28  norm           .0000        .84776        .32706E-06** at limit **
  29  Prefactor     .30147        6.2798       -.14664E-05   -.28217E-01
  30  Normalizat    .87369        .22001        .77548E-06   -.20478E-04
  31  Prefactor     1.0215        .21222        .16457E-05   -.29980E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.02881
  Prefactor  = 2.01505e-07
  Prefactor  = 4.45862
  Prefactor  = 8.9204
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 3.66762e-07
  Prefactor  = 20.8871
  Prefactor  = 6.46927e-07
  Prefactor  = 2.23987e-07
  norm       = 3.79752e-07
  Prefactor  = 11.6327
  Prefactor  = 4.56979e-06
  Prefactor  = 6.66134e-10
  Prefactor  = 37.4311
  Prefactor  = 3.95584
  Prefactor  = 0
  norm       = 1.63758e-07
  norm       = 4.61803e-06
  Prefactor  = 4.07723
  Prefactor  = 9.31991
  norm       = 2.21601e-07
  Prefactor  = 0
  Prefactor  = 1.21614
  Prefactor  = 1.94133
  Prefactor  = 5.55112e-11
  Prefactor  = 2.69641
  norm       = 0
  Prefactor  = 0.301465
  Normalizat = 0.873687
  Prefactor  = 1.02148
 **********
 **   18 **HESSE 
 **********

 FCN=   5887.089     FROM HESSE     STATUS=OK           688 CALLS     3655 TOTAL
                     EDM=   .70E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0288        1.8384        .58305E-03   -1.5673    
   2  Prefactor     .20151E-06    12.313        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.4586        6.2668        .47747E-03   -1.5666    
   4  Prefactor     8.9204        10.358        .33432E-03   -1.5648    
   5  norm           .0000        1.2374        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    3.6579        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .36676E-06    14.003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.887        11.814        .21872E-03   -1.5617    
   9  Prefactor     .64693E-06    10.589        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .22399E-06    12.980        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .37975E-06    15.374        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.633        27.051        .28745E-03   -1.5640    
  13  Prefactor     .45698E-05    40.917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .66613E-09    4.3785        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     37.431        26.369        .16500E-03   -1.5586    
  16  Prefactor     3.9558        7.1140        .50308E-03   -1.5668    
  17  Prefactor      .0000        .62403        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .16376E-06    11.703        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .46180E-05    42.038        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.0772        4.3680        .49767E-03   -1.5668    
  21  Prefactor     9.3199        7.7751        .32840E-03   -1.5647    
  22  norm          .22160E-06    11.846        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        .94884        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.2161        .94336        .10234E-02   -1.5686    
  25  Prefactor     1.9413        3.6932        .74544E-03   -1.5680    
  26  Prefactor     .55511E-10    1.1779        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.6964        6.6215        .61906E-03   -1.5675    
  28  norm           .0000        .81936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .30147        3.2352        .75218E-02   -1.5697    
  30  Normalizat    .87369        .19410        .44563E-01   -.97391    
  31  Prefactor     1.0215        .18096        .41999E-01   -.92017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.99917e-07
Minuit parameter uncertainties:
  1  1.83841
  2  0.00315045
  3  6.26682
  4  10.3576
  5  7.30383e-06
  6  2.24167e-05
  7  0.00453241
  8  11.8138
  9  0.00523463
  10  0.00341044
  11  0.00483268
  12  27.0509
  13  0.0273484
  14  0.00010678
  15  26.3689
  16  7.11397
  17  5.74211e-06
  18  0.00276879
  19  0.0278663
  20  4.36799
  21  7.7751
  22  0.00324036
  23  2.67154e-06
  24  0.943359
  25  3.6932
  26  1.27992e-05
  27  6.62152
  28  2.01592e-06
  29  1.97515
  30  0.194252
  31  0.181067
Done.

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

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  4.570e-06  2.735e-02  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:  1.021e+00  1.811e-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:  8.737e-01  1.943e-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.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/438479/likelihoodResults_697852801_698112001_4FGL_J1608.0+4949_daily_bin1769.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) = 5887.1003385
delta logL = -0.011727243329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5887.08861325
delta logL = -1.98895395442e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .97383E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.4453       1.0000          .0000       10.000    
     3 'Normalizat'    .87341       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0217       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5887.089     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      203 TOTAL
                     EDM=   .12E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        48.377        .42118E-03** at limit **
   2  Index         1.5091        1.0737       -.45002E-04     .0000    
   3  Normalizat    .87369        1.2101       -.55125E-06    .66948E-05
   4  Prefactor     1.0215        1.2342        .67999E-06    .63484E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.50911
  Normalizat = 0.873687
  Prefactor  = 1.02149
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5887.089     FROM HESSE     STATUS=FAILED         9 CALLS      212 TOTAL
                     EDM=   .12E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        48.377        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .20586        1.4640       -.45002E-04   -.77285    
   3  Normalizat    .87369        1.2101       -.55125E-06   -.97391    
   4  Prefactor     1.0215        1.2342        .67999E-06   -.92017    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.21822e-13
Minuit parameter uncertainties:
  1  2.31155e-06
  2  1.09048
  3  1.25106
  4  1.27121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438479': 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): 101
logL (Free Index) = 5887.0886112
delta logL = 5.58256942895e-08

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  0.000e+00  2.312e-06  0.000e+00  1.000e+06 ( 1.000e-14)
309        Index:  1.509e+00  1.090e+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:  1.021e+00  1.271e+00  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:  8.737e-01  1.251e+00  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/438479/cmap_HighResolution_697852801_698112001_4FGL_J1608.0+4949_daily_bin1769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.39e-03', job_status='DONE', photon_flux_upper_limit='5.73e-08', time_completed='2023-02-15 01:14:21.233899', job_id='438479', GAL2='1.02', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1676452461.23', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='5.58e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1769' AND source_name='4FGL J1608.0+4949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 15 01:14:21 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 438479: <4FGL_J1608.0+4949_daily_bin1769> in cluster <slac> Done

Job <4FGL_J1608.0+4949_daily_bin1769> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Feb 15 01:00:29 2023
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 15 01:00:30 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb 15 01:00:30 2023
Terminated at Wed Feb 15 01:14:21 2023
Results reported at Wed Feb 15 01:14:21 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.0+4949_daily_bin1769 242.014 49.829 697852801 698112001 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 :                                   803.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            832 sec.

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

