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 37 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 17469
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1841.0+6115_weekly_bin730
RA = 280.253, Dec = 61.2522
tmin = 680486401, tmax = 681091201
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='659781', job_status='RUN', time_executed='2022-08-02 02:50:36.420311', time_epoch_executed='1659433836.42' WHERE source_name='4FGL J1841.0+6115' and cadence='weekly' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659781

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659781/ft1_4FGL_J1841.0+6115_weekly_bin730.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659781/ft2_4FGL_J1841.0+6115_weekly_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659781/ft1_4FGL_J1841.0+6115_weekly_bin730.fits outfile=/scratch/kocevski/659781/ft1_filteredMKT_4FGL_J1841.0+6115_weekly_bin730.fits ra=280.253 dec=61.2522 rad=12.0 tmin=680486401.0 tmax=681091201.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 6.30
user 6.00
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/659781/ft2_4FGL_J1841.0+6115_weekly_bin730.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/659781/ft1_filteredMKT_4FGL_J1841.0+6115_weekly_bin730.fits evtable="EVENTS" outfile="/scratch/kocevski/659781/ft1_filtered_4FGL_J1841.0+6115_weekly_bin730.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.58
user 0.40
sys 0.17

Number of photons that the gtmktime cut: 5142

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659781/ft1_filtered_4FGL_J1841.0+6115_weekly_bin730.fits" evtable="EVENTS" scfile=/scratch/kocevski/659781/ft2_4FGL_J1841.0+6115_weekly_bin730.fits sctable="SC_DATA" outfile=/scratch/kocevski/659781/ltcube_680486401_681091201_4FGL_J1841.0+6115_weekly_bin730.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/659781/ft2_4FGL_J1841.0+6115_weekly_bin730.fits
.....................!
real 33.34
user 32.93
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659781/ft1_filtered_4FGL_J1841.0+6115_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/659781/ft2_4FGL_J1841.0+6115_weekly_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/659781/ltcube_680486401_681091201_4FGL_J1841.0+6115_weekly_bin730.fits outfile=/scratch/kocevski/659781/expmap_680486401_681091201_4FGL_J1841.0+6115_weekly_bin730.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/659781/ltcube_680486401_681091201_4FGL_J1841.0+6115_weekly_bin730.fits
.....................!
real 193.47
user 187.69
sys 5.35

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/659781/ft1_filtered_4FGL_J1841.0+6115_weekly_bin730.fits scfile=/scratch/kocevski/659781/ft2_4FGL_J1841.0+6115_weekly_bin730.fits outfile=/scratch/kocevski/659781/cmap_680486401_681091201_4FGL_J1841.0+6115_weekly_bin730.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.61
user 0.43
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659781/ft1_filtered_4FGL_J1841.0+6115_weekly_bin730.fits scfile=/scratch/kocevski/659781/ft2_4FGL_J1841.0+6115_weekly_bin730.fits outfile=/scratch/kocevski/659781/cmap_HighResolution_680486401_681091201_4FGL_J1841.0+6115_weekly_bin730.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.60
user 0.42
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/659781/ft1_filtered_4FGL_J1841.0+6115_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/659781/ft2_4FGL_J1841.0+6115_weekly_bin730.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/659781/Model_4FGL_J1841.0+6115_weekly_bin730.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/659781/ft1_filtered_4FGL_J1841.0+6115_weekly_bin730.fits.....................!
real 507.90
user 505.20
sys 1.57

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/659781/ft1_filtered_4FGL_J1841.0+6115_weekly_bin730.fits', '/scratch/kocevski/659781/ft2_4FGL_J1841.0+6115_weekly_bin730.fits', expMap='/scratch/kocevski/659781/expmap_680486401_681091201_4FGL_J1841.0+6115_weekly_bin730.fits', expCube='/scratch/kocevski/659781/ltcube_680486401_681091201_4FGL_J1841.0+6115_weekly_bin730.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/659781/Model_4FGL_J1841.0+6115_weekly_bin730.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  1.000e-04  1.000e+04 ( 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/659781/ft1_filtered_4FGL_J1841.0+6115_weekly_bin730.fits
Spacecraft file(s): /scratch/kocevski/659781/ft2_4FGL_J1841.0+6115_weekly_bin730.fits
Exposure map: /scratch/kocevski/659781/expmap_680486401_681091201_4FGL_J1841.0+6115_weekly_bin730.fits
Exposure cube: /scratch/kocevski/659781/ltcube_680486401_681091201_4FGL_J1841.0+6115_weekly_bin730.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/659781/Model_4FGL_J1841.0+6115_weekly_bin730.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) = 52645.4552481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66578E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.452       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2079       1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.220       1.0000         .10000E-03   10000.    
     7 'norm      '    4.5182       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7342       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .43090       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.6398       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .38044E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6640       1.0000         .10000E-03   10000.    
    15 'norm      '    5.4184       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.1017       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.2771       1.0000         .10000E-03   10000.    
    22 'norm      '    2.0934       1.0000         .10000E-03   10000.    
    23 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    9.7000       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .14027       1.0000         .10000E-03   10000.    
    26 'norm      '    2.1145       1.0000         .10000E-03   10000.    
    27 'norm      '    1.1373       1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.083       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0980       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .96134       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   52645.38     FROM MIGRAD    STATUS=CONVERGED    799 CALLS     3445 TOTAL
                     EDM=   .29E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10097E-03    1.1919         .0000    ** at limit **
   2  Prefactor     .10000E-03    .79401         .0000    ** at limit **
   3  Prefactor     .10000E-03    1.3986         .0000    ** at limit **
   4  Prefactor     13.448        15.329         .0000        .20740E-03
   5  Prefactor     6.2052        10.760         .0000        .18102E-02
   6  Prefactor     26.214        23.209         .0000        .20735E-02
   7  norm          4.5179        1.0830         .0000        .55633E-02
   8  Prefactor     6.7328        5.9140         .0000        .30596E-03
   9  Prefactor     .40296        1.2860         .0000        .29213E-02
  10  Prefactor     .10000E-03    1.8855         .0000    ** at limit **
  11  norm          2.6394        1.5420         .0000        .29699E-02
  12  Prefactor     .10010E-03    1.8190         .0000    ** at limit **
  13  Prefactor     .10001E-03    12.959         .0000    ** at limit **
  14  Prefactor     4.6633        2.5236         .0000        .22712E-02
  15  norm          5.4173        2.6045         .0000        .91740E-03
  16  Prefactor     .10002E-03    4.6953         .0000    ** at limit **
  17  Prefactor     3.1021        5.3336         .0000        .15226E-01
  18  Prefactor     .10002E-03    4.7345         .0000    ** at limit **
  19  Prefactor     .10008E-03    33.379         .0000    ** at limit **
  20  Prefactor     .10000E-03    7.1449         .0000    ** at limit **
  21  norm          2.2773        1.0440         .0000        .12594E-03
  22  norm          2.0932        .74235         .0000        .52980E-04
  23  norm          .10000E-03    .53211         .0000    ** at limit **
  24  norm          9.7007        4.2873         .0000       -.23345E-02
  25  Prefactor     .71036E-01    1.8518         .0000        .62136E-03
  26  norm          2.1148        .58129         .0000        .88730E-03
  27  norm          1.1372        4.0375         .0000        .62106E-01
  28  Prefactor     15.098        8.4504         .0000        .22262E-02
  29  Normalizat    1.0982        .85034E-01     .0000        .17574E-03
  30  Prefactor     .96133        .41460E-01     .0000        .23872E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010097
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4478
  Prefactor  = 6.20524
  Prefactor  = 26.2136
  norm       = 4.5179
  Prefactor  = 6.73276
  Prefactor  = 0.402958
  Prefactor  = 0.0001
  norm       = 2.63938
  Prefactor  = 0.0001001
  Prefactor  = 0.000100008
  Prefactor  = 4.66327
  norm       = 5.41733
  Prefactor  = 0.000100022
  Prefactor  = 3.10214
  Prefactor  = 0.000100025
  Prefactor  = 0.00010008
  Prefactor  = 0.000100004
  norm       = 2.27734
  norm       = 2.09322
  norm       = 0.0001
  norm       = 9.70073
  Prefactor  = 0.0710356
  norm       = 2.11484
  norm       = 1.13721
  Prefactor  = 15.0976
  Normalizat = 1.09824
  Prefactor  = 0.96133
 **********
 **   18 **HESSE 
 **********

 FCN=   52645.38     FROM HESSE     STATUS=OK           616 CALLS     4061 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10097E-03    1.2605        .97351E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .80687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.4252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.448        15.317        .10921E-03   -1.4974    
   5  Prefactor     6.2052        10.755        .80560E-03   -1.5210    
   6  Prefactor     26.214        23.237        .78234E-04   -1.4684    
   7  norm          4.5179        1.0816        .55863E-03   -1.5283    
   8  Prefactor     6.7328        5.9129        .15462E-03   -1.5189    
   9  Prefactor     .40296        12.530        .43032E-02   -1.5581    
  10  Prefactor     .10000E-03    1.8964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.6394        1.5284        .20147E-03   -1.5383    
  12  Prefactor     .10010E-03    11.565        .59515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    12.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.6633        2.5102        .18635E-03   -1.5276    
  15  norm          5.4173        2.6043        .17263E-03   -1.5242    
  16  Prefactor     .10002E-03    4.7927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.1021        5.3249        .11513E-02   -1.5356    
  18  Prefactor     .10002E-03    4.8501        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10008E-03    33.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.1474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.2773        1.0429        .27211E-04   -1.5406    
  22  norm          2.0932        .74324        .11454E-03   -1.5419    
  23  norm          .10000E-03    1.4493        .31741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          9.7007        4.1814        .12867E-03   -1.5085    
  25  Prefactor     .71036E-01    2.7261        .85039E-01   -1.5655    
  26  norm          2.1148        .57827        .86003E-04   -1.5417    
  27  norm          1.1372        4.0032        .21832E-02   -1.5495    
  28  Prefactor     15.098        8.4495        .51565E-03   -1.4931    
  29  Normalizat    1.0982        .99379E-01    .34799E-03   -.89808    
  30  Prefactor     .96133        .48215E-01    .19045E-03   -.94030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.73986e-08
Minuit parameter uncertainties:
  1  0.00221182
  2  2.78401e-06
  3  3.62414e-06
  4  15.3213
  5  10.7588
  6  23.2451
  7  1.08163
  8  5.91337
  9  4.49444
  10  1.28517e-06
  11  1.52843
  12  0.0021503
  13  0.000647849
  14  2.51023
  15  2.60436
  16  0.000645741
  17  5.32572
  18  0.000695456
  19  0.00327659
  20  0.000334992
  21  1.04294
  22  0.743243
  23  2.09012e-06
  24  4.18155
  25  0.879532
  26  0.578269
  27  4.0041
  28  8.45021
  29  0.099396
  30  0.0482172
Done.

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

Extracting fit parameters...

4FGL J1841.0+6115
   Spectrum: PowerLaw
349    Prefactor:  3.102e+00  5.326e+00  1.000e-04  1.000e+04 ( 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:  9.613e-01  4.822e-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.098e+00  9.940e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/659781/likelihoodResults_680486401_681091201_4FGL_J1841.0+6115_weekly_bin730.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) = 52645.3777229
delta logL = 2.51577366726e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 52645.3776788
delta logL = 6.92300163792e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1029       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5289       1.0000          .0000       10.000    
     3 'Normalizat'    1.0985       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96126       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   52645.38     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      262 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1283        5.9528        .11510E-02   -.30112E-03
   2  Index         2.5264        1.6539        .61805E-02   -.62394E-05
   3  Normalizat    1.0985        .92426E-01    .34795E-03   -.16572E-03
   4  Prefactor     .96126        .46748E-01    .19045E-03   -.18911E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.12835
  Index      = 2.52637
  Normalizat = 1.0985
  Prefactor  = 0.96126
 **********
 **   18 **HESSE 
 **********

 FCN=   52645.38     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1283        5.7100        .46042E-04   -1.5354    
   2  Index         2.5264        1.5878        .24722E-03   -.51752    
   3  Normalizat    1.0985        .92390E-01    .13918E-04   -.89800    
   4  Prefactor     .96126        .46755E-01    .76181E-05   -.94032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.84094e-11
Minuit parameter uncertainties:
  1  5.71104
  2  1.62549
  3  0.0924038
  4  0.0467575
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659781': 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) = 52645.3776688
delta logL = 7.92614009697e-05

Extracting fit parameters...

4FGL J1841.0+6115
   Spectrum: PowerLaw
349    Prefactor:  3.128e+00  5.711e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.526e+00  1.625e+00  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:  9.613e-01  4.676e-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.098e+00  9.240e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.42
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/659781/cmap_HighResolution_680486401_681091201_4FGL_J1841.0+6115_weekly_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.42e-03', job_status='DONE', photon_flux_upper_limit='4.39e-08', time_completed='2022-08-02 04:19:45.506400', job_id='659781', GAL2='0.96', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1659439185.51', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='7.93e-05', ts2='0.42', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='730' AND source_name='4FGL J1841.0+6115' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  2 04:19:45 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0113>
Subject: Job 659781: <4FGL_J1841.0+6115_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1841.0+6115_weekly_bin730> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug  2 00:07:00 2022
Job was executed on host(s) <bullet0113>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 02:49:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 02:49:51 2022
Terminated at Tue Aug  2 04:19:46 2022
Results reported at Tue Aug  2 04:19:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1841.0+6115_weekly_bin730 280.253 61.2522 680486401 681091201 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 :                                   5334.24 sec.
    Max Memory :                                 635 MB
    Average Memory :                             406.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2940 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   5395 sec.
    Turnaround time :                            15166 sec.

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

