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


Performing analysis on: 4FGL_J1841.0+6115_daily_bin1747
RA = 280.253, Dec = 61.2522
tmin = 692150401, tmax = 692409601
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='810147', job_status='RUN', time_executed='2022-12-11 01:25:27.738280', time_epoch_executed='1670750727.74' WHERE source_name='4FGL J1841.0+6115' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/810147

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/810147/ft1_4FGL_J1841.0+6115_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/810147/ft2_4FGL_J1841.0+6115_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/810147/ft1_4FGL_J1841.0+6115_daily_bin1747.fits outfile=/scratch/kocevski/810147/ft1_filteredMKT_4FGL_J1841.0+6115_daily_bin1747.fits ra=280.253 dec=61.2522 rad=12.0 tmin=692150401.0 tmax=692409601.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.00
user 3.77
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/810147/ft2_4FGL_J1841.0+6115_daily_bin1747.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/810147/ft2_4FGL_J1841.0+6115_daily_bin1747.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/810147/ft1_filteredMKT_4FGL_J1841.0+6115_daily_bin1747.fits evtable="EVENTS" outfile="/scratch/kocevski/810147/ft1_filtered_4FGL_J1841.0+6115_daily_bin1747.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.33
sys 0.15

Number of photons that the gtmktime cut: 1003

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/810147/ft1_filtered_4FGL_J1841.0+6115_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/810147/ft2_4FGL_J1841.0+6115_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/810147/ltcube_692150401_692409601_4FGL_J1841.0+6115_daily_bin1747.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/810147/ft2_4FGL_J1841.0+6115_daily_bin1747.fits
.....................!
real 11.94
user 11.53
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/810147/ft1_filtered_4FGL_J1841.0+6115_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/810147/ft2_4FGL_J1841.0+6115_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/810147/ltcube_692150401_692409601_4FGL_J1841.0+6115_daily_bin1747.fits outfile=/scratch/kocevski/810147/expmap_692150401_692409601_4FGL_J1841.0+6115_daily_bin1747.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/810147/ltcube_692150401_692409601_4FGL_J1841.0+6115_daily_bin1747.fits
.....................!
real 191.20
user 185.87
sys 4.99

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
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Added 188 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1841.0+6115 @ 280.253 61.2522

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/810147/ft1_filtered_4FGL_J1841.0+6115_daily_bin1747.fits scfile=/scratch/kocevski/810147/ft2_4FGL_J1841.0+6115_daily_bin1747.fits outfile=/scratch/kocevski/810147/cmap_692150401_692409601_4FGL_J1841.0+6115_daily_bin1747.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=280.253 yref=61.2522 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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/810147/ft1_filtered_4FGL_J1841.0+6115_daily_bin1747.fits scfile=/scratch/kocevski/810147/ft2_4FGL_J1841.0+6115_daily_bin1747.fits outfile=/scratch/kocevski/810147/cmap_HighResolution_692150401_692409601_4FGL_J1841.0+6115_daily_bin1747.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=280.253 yref=61.2522 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/810147/ft1_filtered_4FGL_J1841.0+6115_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/810147/ft2_4FGL_J1841.0+6115_daily_bin1747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/810147/Model_4FGL_J1841.0+6115_daily_bin1747.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 FHES J2129.9+5833
adding source GAL_V02
adding source HB 21
Working on...
/scratch/kocevski/810147/ft1_filtered_4FGL_J1841.0+6115_daily_bin1747.fits.....................!
real 112.84
user 111.29
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/810147/ft1_filtered_4FGL_J1841.0+6115_daily_bin1747.fits', '/scratch/kocevski/810147/ft2_4FGL_J1841.0+6115_daily_bin1747.fits', expMap='/scratch/kocevski/810147/expmap_692150401_692409601_4FGL_J1841.0+6115_daily_bin1747.fits', expCube='/scratch/kocevski/810147/ltcube_692150401_692409601_4FGL_J1841.0+6115_daily_bin1747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/810147/Model_4FGL_J1841.0+6115_daily_bin1747.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1841.0+6115'

4FGL J1841.0+6115
   Spectrum: PowerLaw
349    Prefactor:  3.678e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  2.547e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  1.110e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/810147/ft1_filtered_4FGL_J1841.0+6115_daily_bin1747.fits
Spacecraft file(s): /scratch/kocevski/810147/ft2_4FGL_J1841.0+6115_daily_bin1747.fits
Exposure map: /scratch/kocevski/810147/expmap_692150401_692409601_4FGL_J1841.0+6115_daily_bin1747.fits
Exposure cube: /scratch/kocevski/810147/ltcube_692150401_692409601_4FGL_J1841.0+6115_daily_bin1747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/810147/Model_4FGL_J1841.0+6115_daily_bin1747.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) = 10332.451599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8526       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11396E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    3.9166       1.0000          .0000       .10000E+07
     4 'Prefactor '    64.880       1.0000          .0000       .10000E+07
     5 'Prefactor '    17.059       1.0000          .0000       .10000E+07
     6 'Prefactor '    .31028       1.0000          .0000       .10000E+07
     7 'norm      '    .35416E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    7.8984       1.0000          .0000       .10000E+07
     9 'norm      '    1.5756       1.0000          .0000       .10000E+07
    10 'Prefactor '    .37135E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .63784E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.2481       1.0000          .0000       .10000E+07
    13 'norm      '    3.5230       1.0000          .0000       .10000E+07
    14 'Prefactor '    .37326E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .87129E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .13609E-02   1.0000          .0000       .10000E+07
    17 'norm      '    3.1417       1.0000          .0000       .10000E+07
    18 'norm      '    .24581E-05   1.0000          .0000       .10000E+07
    19 'norm      '    3.4237       1.0000          .0000       .10000E+07
    20 'norm      '    .67189       1.0000          .0000       .10000E+07
    21 'Prefactor '    13.141       1.0000          .0000       .10000E+07
    22 'norm      '    2.7974       1.0000          .0000       .10000E+07
    23 'norm      '    2.1342       1.0000          .0000       .10000E+07
    24 'Prefactor '    35.241       1.0000          .0000       .10000E+07
    25 'Normalizat'    1.3007       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .82102       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10332.34     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     2244 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8519        8.8483        .17573E-05    .27706E-01
   2  Prefactor      .0000        4.1896       -.56658E-06** at limit **
   3  Prefactor     3.8994        4.6974       -.31800E-07    .53692E-03
   4  Prefactor     61.738        53.354       -.19190E-05   -.92902E-01
   5  Prefactor     16.656        3.2033        .55691E-07   -.82901E-02
   6  Prefactor     .38580E-07    84.769        .26197E-05** at limit **
   7  norm           .0000        .61290        .22575E-07** at limit **
   8  Prefactor     7.8997        9.4495        .82492E-06    .27606E-01
   9  norm          1.5697        3.3935        .20005E-06    .30285E-03
  10  Prefactor     .55511E-10    6.8744       -.16646E-06** at limit **
  11  Prefactor      .0000        34.529        .86582E-06** at limit **
  12  Prefactor     3.2372        5.9282       -.49622E-06    .64159E-03
  13  norm          3.5114        5.4752        .24412E-06   -.32695E-03
  14  Prefactor      .0000        3.7092        .27132E-07** at limit **
  15  Prefactor     .55511E-09    8.6460        .26704E-06** at limit **
  16  Prefactor     .14760E-06    30.237        .32977E-06** at limit **
  17  norm          3.1373        2.7047       -.37382E-08   -.13655E-02
  18  norm           .0000        1.5245       -.46241E-06** at limit **
  19  norm          3.6183        5.8697       -.34497E-06   -.37197E-02
  20  norm          .49399E-01    68.262       -.66504E-05** at limit **
  21  Prefactor     13.077        9.7204       -.14576E-05    .16305E-01
  22  norm          2.7978        1.4483       -.28880E-07   -.40508E-02
  23  norm          2.1433        4.3176        .15621E-05    .22189E-01
  24  Prefactor     35.271        2.3064       -.15580E-06    .15849E-01
  25  Normalizat    1.3033        .21732        .82795E-05    .43188E-04
  26  Prefactor     .82053        .10838       -.40973E-05   -.10987E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.8519
  Prefactor  = 0
  Prefactor  = 3.89943
  Prefactor  = 61.7382
  Prefactor  = 16.6562
  Prefactor  = 3.85803e-08
  norm       = 0
  Prefactor  = 7.89973
  norm       = 1.56973
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 3.23722
  norm       = 3.51143
  Prefactor  = 0
  Prefactor  = 5.55112e-10
  Prefactor  = 1.47604e-07
  norm       = 3.1373
  norm       = 0
  norm       = 3.61831
  norm       = 0.0493993
  Prefactor  = 13.0768
  norm       = 2.79781
  norm       = 2.1433
  Prefactor  = 35.2713
  Normalizat = 1.30332
  Prefactor  = 0.820532
 **********
 **   18 **HESSE 
 **********

 FCN=   10332.34     FROM HESSE     STATUS=OK           518 CALLS     2762 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8519        11.489        .60170E-03   -1.5674    
   2  Prefactor      .0000        4.2497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.8994        4.7087        .50954E-03   -1.5668    
   4  Prefactor     61.738        54.852        .12416E-03   -1.5551    
   5  Prefactor     16.656        25.444        .24222E-03   -1.5626    
   6  Prefactor     .38580E-07    84.629        .10072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        .61802        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.8997        10.905        .35654E-03   -1.5652    
   9  norm          1.5697        3.4831        .84619E-03   -1.5683    
  10  Prefactor     .55511E-10    6.8761        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        34.697        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2372        6.0138        .56173E-03   -1.5672    
  13  norm          3.5114        5.4871        .53834E-03   -1.5670    
  14  Prefactor      .0000        3.7029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-09    8.6378        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14760E-06    30.816        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.1373        2.7204        .57166E-03   -1.5673    
  18  norm           .0000        1.5121        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.6183        6.8993        .54644E-03   -1.5670    
  20  norm          .49399E-01    16.183        .90510E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.077        14.669        .27606E-03   -1.5636    
  22  norm          2.7978        1.5155        .60802E-03   -1.5675    
  23  norm          2.1433        12.915        .70538E-03   -1.5679    
  24  Prefactor     35.271        24.852        .16847E-03   -1.5589    
  25  Normalizat    1.3033        .18943        .72401E-01   -.83467    
  26  Prefactor     .82053        .94346E-01    .43990E-01   -.98976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55805e-07
Minuit parameter uncertainties:
  1  11.4484
  2  7.03e-06
  3  4.70875
  4  54.8523
  5  25.4437
  6  0.00361446
  7  5.4597e-06
  8  10.9051
  9  3.4831
  10  3.52638e-05
  11  3.62304e-05
  12  6.01386
  13  5.48706
  14  3.23219e-06
  15  0.000137685
  16  0.00426584
  17  2.72037
  18  8.08572e-06
  19  6.89932
  20  1.7882
  21  14.6695
  22  1.5155
  23  10.5227
  24  24.8518
  25  0.189526
  26  0.0943649
Done.

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

Extracting fit parameters...

4FGL J1841.0+6115
   Spectrum: PowerLaw
349    Prefactor:  0.000e+00  3.232e-06  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  2.547e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  1.110e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
627    Prefactor:  8.205e-01  9.436e-02  0.000e+00  1.000e+01 ( 1.000e+00)
628        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
629        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  1.303e+00  1.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 280.253 61.252
Photon Flux Upper Limit: 5.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/810147/likelihoodResults_692150401_692409601_4FGL_J1841.0+6115_daily_bin1747.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) = 10332.3473819
delta logL = -0.00841384224805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10332.3389682
delta logL = -1.94919266505e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88807E-06   1.0000          .0000       .10000E+07
     2 'Index     '    2.6783       1.0000          .0000       10.000    
     3 'Normalizat'    1.3033       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82056       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10332.34     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      228 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.9984        .42118E-03** at limit **
   2  Index         1.0612        .70079       -.12678E-03     .0000    
   3  Normalizat    1.3033        1.0787        .45652E-05    .12479E-03
   4  Prefactor     .82053        1.1686       -.99343E-05    .95690E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.06119
  Normalizat = 1.30332
  Prefactor  = 0.820532
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10332.34     FROM HESSE     STATUS=FAILED         9 CALLS      237 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.9984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .58888E-01    1.1056       -.12678E-03   -.90717    
   3  Normalizat    1.3033        1.0787        .45652E-05   -.83467    
   4  Prefactor     .82053        1.1686       -.99343E-05   -.98976    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.58865e-11
Minuit parameter uncertainties:
  1  8.50209e-06
  2  0.706978
  3  1.09823
  4  1.20713
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/810147': 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) = 10332.338968
delta logL = -7.27595761418e-12

Extracting fit parameters...

4FGL J1841.0+6115
   Spectrum: PowerLaw
349    Prefactor:  0.000e+00  8.502e-06  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  1.061e+00  7.070e-01  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  1.110e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
627    Prefactor:  8.205e-01  1.207e+00  0.000e+00  1.000e+01 ( 1.000e+00)
628        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
629        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  1.303e+00  1.098e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 280.253 61.252

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/810147/cmap_HighResolution_692150401_692409601_4FGL_J1841.0+6115_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-03', job_status='DONE', photon_flux_upper_limit='5.18e-08', time_completed='2022-12-11 01:41:06.636299', job_id='810147', GAL2='0.82', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1670751666.64', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='-7.28e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1747' AND source_name='4FGL J1841.0+6115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 01:41:06 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 810147: <4FGL_J1841.0+6115_daily_bin1747> in cluster <slac> Done

Job <4FGL_J1841.0+6115_daily_bin1747> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Dec 11 01:25:17 2022
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 01:25:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 01:25:18 2022
Terminated at Sun Dec 11 01:41:07 2022
Results reported at Sun Dec 11 01:41:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1841.0+6115_daily_bin1747 280.253 61.2522 692150401 692409601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1841.0+6115 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   941.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

