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


Performing analysis on: 4FGL_J0849.1+6607_daily_bin1778
RA = 132.275, Dec = 66.1204
tmin = 700185601, tmax = 700444801
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='956010', job_status='RUN', time_executed='2023-03-14 00:30:37.463941', time_epoch_executed='1678779037.46' WHERE source_name='4FGL J0849.1+6607' and cadence='daily' and bin_id='1778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/956010

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/956010/ft1_4FGL_J0849.1+6607_daily_bin1778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/956010/ft2_4FGL_J0849.1+6607_daily_bin1778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/956010/ft1_4FGL_J0849.1+6607_daily_bin1778.fits outfile=/scratch/kocevski/956010/ft1_filteredMKT_4FGL_J0849.1+6607_daily_bin1778.fits ra=132.275 dec=66.1204 rad=12.0 tmin=700185601.0 tmax=700444801.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.28
user 3.04
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/956010/ft2_4FGL_J0849.1+6607_daily_bin1778.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/956010/ft2_4FGL_J0849.1+6607_daily_bin1778.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/956010/ft1_filteredMKT_4FGL_J0849.1+6607_daily_bin1778.fits evtable="EVENTS" outfile="/scratch/kocevski/956010/ft1_filtered_4FGL_J0849.1+6607_daily_bin1778.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.50
user 0.30
sys 0.16

Number of photons that the gtmktime cut: 903

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/956010/ft1_filtered_4FGL_J0849.1+6607_daily_bin1778.fits" evtable="EVENTS" scfile=/scratch/kocevski/956010/ft2_4FGL_J0849.1+6607_daily_bin1778.fits sctable="SC_DATA" outfile=/scratch/kocevski/956010/ltcube_700185601_700444801_4FGL_J0849.1+6607_daily_bin1778.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/956010/ft2_4FGL_J0849.1+6607_daily_bin1778.fits
.....................!
real 11.13
user 10.83
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/956010/ft1_filtered_4FGL_J0849.1+6607_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/956010/ft2_4FGL_J0849.1+6607_daily_bin1778.fits sctable="SC_DATA" expcube=/scratch/kocevski/956010/ltcube_700185601_700444801_4FGL_J0849.1+6607_daily_bin1778.fits outfile=/scratch/kocevski/956010/expmap_700185601_700444801_4FGL_J0849.1+6607_daily_bin1778.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/956010/ltcube_700185601_700444801_4FGL_J0849.1+6607_daily_bin1778.fits
.....................!
real 155.87
user 151.93
sys 3.61

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 236 point sources and 0 extended sources

Setting source of interest to:
4FGL J0849.1+6607 @ 132.275 66.1204

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/956010/ft1_filtered_4FGL_J0849.1+6607_daily_bin1778.fits scfile=/scratch/kocevski/956010/ft2_4FGL_J0849.1+6607_daily_bin1778.fits outfile=/scratch/kocevski/956010/cmap_700185601_700444801_4FGL_J0849.1+6607_daily_bin1778.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=132.275 yref=66.1204 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.31
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/956010/ft1_filtered_4FGL_J0849.1+6607_daily_bin1778.fits scfile=/scratch/kocevski/956010/ft2_4FGL_J0849.1+6607_daily_bin1778.fits outfile=/scratch/kocevski/956010/cmap_HighResolution_700185601_700444801_4FGL_J0849.1+6607_daily_bin1778.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=132.275 yref=66.1204 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.50
user 0.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/956010/ft1_filtered_4FGL_J0849.1+6607_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/956010/ft2_4FGL_J0849.1+6607_daily_bin1778.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/956010/Model_4FGL_J0849.1+6607_daily_bin1778.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/956010/ft1_filtered_4FGL_J0849.1+6607_daily_bin1778.fits.....................!
real 80.80
user 79.58
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/956010/ft1_filtered_4FGL_J0849.1+6607_daily_bin1778.fits', '/scratch/kocevski/956010/ft2_4FGL_J0849.1+6607_daily_bin1778.fits', expMap='/scratch/kocevski/956010/expmap_700185601_700444801_4FGL_J0849.1+6607_daily_bin1778.fits', expCube='/scratch/kocevski/956010/ltcube_700185601_700444801_4FGL_J0849.1+6607_daily_bin1778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/956010/Model_4FGL_J0849.1+6607_daily_bin1778.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0849.1+6607'

4FGL J0849.1+6607
   Spectrum: PowerLaw
320    Prefactor:  7.311e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
321        Index:  1.974e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  2.593e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/956010/ft1_filtered_4FGL_J0849.1+6607_daily_bin1778.fits
Spacecraft file(s): /scratch/kocevski/956010/ft2_4FGL_J0849.1+6607_daily_bin1778.fits
Exposure map: /scratch/kocevski/956010/expmap_700185601_700444801_4FGL_J0849.1+6607_daily_bin1778.fits
Exposure cube: /scratch/kocevski/956010/ltcube_700185601_700444801_4FGL_J0849.1+6607_daily_bin1778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/956010/Model_4FGL_J0849.1+6607_daily_bin1778.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) = 9554.64367576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1013       1.0000          .0000       .10000E+07
     2 'Prefactor '    8.0378       1.0000          .0000       .10000E+07
     3 'norm      '    .12459E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    5.0869       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.0026       1.0000          .0000       .10000E+07
     6 'Prefactor '    .38231E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.4914       1.0000          .0000       .10000E+07
     8 'norm      '    6.2614       1.0000          .0000       .10000E+07
     9 'Prefactor '    34.029       1.0000          .0000       .10000E+07
    10 'Prefactor '    15.939       1.0000          .0000       .10000E+07
    11 'Prefactor '    11.324       1.0000          .0000       .10000E+07
    12 'norm      '    .58600       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.2393       1.0000          .0000       .10000E+07
    14 'Prefactor '    .94724E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .78828E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .17278E-01   1.0000          .0000       .10000E+07
    17 'norm      '    1.8881       1.0000          .0000       .10000E+07
    18 'norm      '    .41089E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .19857E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .78401E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    256.03       1.0000          .0000       .10000E+07
    22 'norm      '    6.2741       1.0000          .0000       .10000E+07
    23 'Normalizat'    .69228       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3369       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9554.637     FROM MIGRAD    STATUS=CONVERGED    188 CALLS     2040 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1012        .48839        .42484E-07   -.10951E-02
   2  Prefactor     7.9557        17.288        .58255E-06    .44612E-03
   3  norm           .0000        32.182       -.95004E-05** at limit **
   4  Prefactor     5.0869        4.6912       -.69691E-07    .40749E-03
   5  Prefactor     1.0043        1.2134       -.40796E-07   -.10370E-02
   6  Prefactor      .0000        2.2477       -.79659E-07** at limit **
   7  Prefactor     2.4883        3.5324        .24154E-06   -.50049E-03
   8  norm          6.2616        2.4850        .18135E-06    .71959E-03
   9  Prefactor     33.641        39.866        .60784E-07   -.13943E-03
  10  Prefactor     15.925        13.979        .54777E-07    .26306E-03
  11  Prefactor     11.308        18.567       -.13048E-05    .23089E-04
  12  norm          .58661        .52194       -.39298E-07    .15899E-02
  13  Prefactor     2.2719        12.780        .47676E-06    .57633E-05
  14  Prefactor      .0000        30.272       -.52951E-05** at limit **
  15  norm           .0000        2.3006       -.19283E-06** at limit **
  16  Prefactor      .0000        13.338        .33132E-06** at limit **
  17  norm          1.8881        .75541        .29495E-07    .13078E-02
  18  norm           .0000        4.0298        .10300E-06** at limit **
  19  Prefactor     .55511E-10    26.957        .40167E-06** at limit **
  20  Prefactor     .16653E-09    20.463       -.77406E-06** at limit **
  21  Prefactor     253.02        195.93        .67113E-06   -.14790E-03
  22  norm          6.2750        1.3626       -.95867E-07   -.37915E-02
  23  Normalizat    .69270        .18310       -.53148E-05    .93863E-04
  24  Prefactor     1.3369        .14960        .35836E-05    .65744E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.10124
  Prefactor  = 7.95572
  norm       = 0
  Prefactor  = 5.08688
  Prefactor  = 1.00428
  Prefactor  = 0
  Prefactor  = 2.48832
  norm       = 6.26164
  Prefactor  = 33.6408
  Prefactor  = 15.9253
  Prefactor  = 11.3078
  norm       = 0.586612
  Prefactor  = 2.27191
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  norm       = 1.88807
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 1.66533e-10
  Prefactor  = 253.019
  norm       = 6.27496
  Normalizat = 0.692696
  Prefactor  = 1.33694
 **********
 **   18 **HESSE 
 **********

 FCN=   9554.637     FROM HESSE     STATUS=OK           465 CALLS     2505 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1012        .49042        .99766E-03   -1.5687    
   2  Prefactor     7.9557        17.357        .35341E-03   -1.5652    
   3  norm           .0000        1.3194        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.0869        4.7050        .44556E-03   -1.5663    
   5  Prefactor     1.0043        1.2309        .43855E-03   -1.5688    
   6  Prefactor      .0000        2.2494        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.4883        3.5508        .64730E-03   -1.5676    
   8  norm          6.2616        2.4825        .40092E-03   -1.5658    
   9  Prefactor     33.641        39.887        .17145E-03   -1.5592    
  10  Prefactor     15.925        13.990        .25060E-03   -1.5628    
  11  Prefactor     11.308        18.590        .29746E-03   -1.5641    
  12  norm          .58661        .52018        .70491E-03   -1.5693    
  13  Prefactor     2.2719        12.916        .68658E-03   -1.5678    
  14  Prefactor      .0000        29.475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        2.2976        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        13.246        .17223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8881        .76272        .75705E-03   -1.5680    
  18  norm           .0000        4.0314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55511E-10    7.4129        .82252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .16653E-09    20.435        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     253.02        196.07        .62504E-04   -1.5390    
  22  norm          6.2750        1.3715        .40051E-03   -1.5658    
  23  Normalizat    .69270        .16478        .77396E-01   -1.0418    
  24  Prefactor     1.3369        .13198        .48240E-01   -.82215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72534e-07
Minuit parameter uncertainties:
  1  0.490424
  2  17.3566
  3  1.07464e-05
  4  4.705
  5  1.23093
  6  1.08116e-06
  7  3.55083
  8  2.48248
  9  39.8875
  10  13.99
  11  18.5898
  12  0.520179
  13  10.834
  14  7.38588e-06
  15  8.2305e-06
  16  2.04795e-05
  17  0.76272
  18  5.29209e-06
  19  2.94332e-05
  20  0.000110214
  21  196.07
  22  1.37153
  23  0.164901
  24  0.132017
Done.

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

Extracting fit parameters...

4FGL J0849.1+6607
   Spectrum: PowerLaw
320    Prefactor:  3.364e+01  3.989e+01  0.000e+00  1.000e+06 ( 1.000e-14)
321        Index:  1.974e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  2.593e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
758    Prefactor:  1.337e+00  1.320e-01  0.000e+00  1.000e+01 ( 1.000e+00)
759        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
760        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
757   Normalization:  6.927e-01  1.649e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.89
Ra Dec: 132.275 66.120
Photon Flux Upper Limit: 7.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/956010/likelihoodResults_700185601_700444801_4FGL_J0849.1+6607_daily_bin1778.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) = 9554.05587812
delta logL = 0.58133023023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9554.03533092
delta logL = 0.601877431111

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0159       1.0000          .0000       .10000E+07
     2 'Index     '    3.6583       1.0000          .0000       10.000    
     3 'Normalizat'    .64299       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3636       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9554.035     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      282 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0023        10.877        .12938E-02   -.17624E-01
   2  Index         3.6629        1.7662        .80316E-01   -.11100E-03
   3  Normalizat    .64322        .38502E-01    .80054E-01   -.10592E-03
   4  Prefactor     1.3633        .32268E-01    .47833E-01   -.28153E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.00232
  Index      = 3.66286
  Normalizat = 0.643215
  Prefactor  = 1.36327
 **********
 **   18 **HESSE 
 **********

 FCN=   9554.035     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      313 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0023        28.538        .72990E-05   -1.5688    
   2  Index         3.6629        3.3249        .41528E-02   -.27072    
   3  Normalizat    .64322        .15249        .35448E-03   -1.0618    
   4  Prefactor     1.3633        .12768        .21144E-03   -.81445    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.5495e-09
Minuit parameter uncertainties:
  1  10.6967
  2  3.66957
  3  0.152587
  4  0.127709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/956010': 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) = 9554.03532246
delta logL = 0.601885891358

Extracting fit parameters...

4FGL J0849.1+6607
   Spectrum: PowerLaw
320    Prefactor:  1.002e+00  1.070e+01  0.000e+00  1.000e+06 ( 1.000e-14)
321        Index:  3.663e+00  3.670e+00  0.000e+00  1.000e+01 (-1.000e+00)
322        Scale:  2.593e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
758    Prefactor:  1.363e+00  1.277e-01  0.000e+00  1.000e+01 ( 1.000e+00)
759        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
760        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
757   Normalization:  6.432e-01  1.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 132.275 66.120
Photon Index (Free Index): 3.66 +/- 3.67
Photon Flux (Free Index): 5.70e-08 +/- 4.26e-08
Energy Flux (Free Index): 9.11e-06 +/- 1.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/956010/cmap_HighResolution_700185601_700444801_4FGL_J0849.1+6607_daily_bin1778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.72e-03', comment='SUCCESS', energy_flux2='9.11e-06', dlogl='6.02e-01', photon_flux2='5.70e-08', job_status='DONE', time_completed='2023-03-14 00:44:12.195654', photon_index_error2='3.67', photon_index2='3.66', ts='0.89', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', photon_flux_upper_limit='7.64e-08', energy_flux_error2='1.07e-05', EG='0.69', time_epoch_completed='1678779852.2', return_code='0', job_id='956010', GAL2='1.36', EG2='0.64', return_code2='102', photon_flux_error2='4.26e-08', ts2='2.17', photon_index='1.97' WHERE bin_id='1778' AND source_name='4FGL J0849.1+6607' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 00:44:12 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 956010: <4FGL_J0849.1+6607_daily_bin1778> in cluster <slac> Done

Job <4FGL_J0849.1+6607_daily_bin1778> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Mar 14 00:30:15 2023
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 00:30:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 00:30:16 2023
Terminated at Tue Mar 14 00:44:12 2023
Results reported at Tue Mar 14 00:44:12 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0849.1+6607_daily_bin1778 132.275 66.1204 700185601 700444801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0849.1+6607 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   815.24 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             320.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            837 sec.

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

