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


Performing analysis on: 4FGL_J1834.7-5858_weekly_bin715
RA = 278.687, Dec = -58.9818
tmin = 671414401, tmax = 672019201
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='931570', job_status='RUN', time_executed='2022-04-19 02:20:34.197610', time_epoch_executed='1650360034.2' WHERE source_name='4FGL J1834.7-5858' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931570

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931570/ft1_4FGL_J1834.7-5858_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931570/ft2_4FGL_J1834.7-5858_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931570/ft1_4FGL_J1834.7-5858_weekly_bin715.fits outfile=/scratch/kocevski/931570/ft1_filteredMKT_4FGL_J1834.7-5858_weekly_bin715.fits ra=278.687 dec=-58.9818 rad=12.0 tmin=671414401.0 tmax=672019201.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 7.64
user 7.32
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/931570/ft2_4FGL_J1834.7-5858_weekly_bin715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/931570/ft2_4FGL_J1834.7-5858_weekly_bin715.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/931570/ft1_filteredMKT_4FGL_J1834.7-5858_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/931570/ft1_filtered_4FGL_J1834.7-5858_weekly_bin715.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.57
user 0.38
sys 0.16

Number of photons that the gtmktime cut: 3059

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/931570/ft1_filtered_4FGL_J1834.7-5858_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/931570/ft2_4FGL_J1834.7-5858_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/931570/ltcube_671414401_672019201_4FGL_J1834.7-5858_weekly_bin715.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/931570/ft2_4FGL_J1834.7-5858_weekly_bin715.fits
.....................!
real 30.36
user 29.58
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931570/ft1_filtered_4FGL_J1834.7-5858_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/931570/ft2_4FGL_J1834.7-5858_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/931570/ltcube_671414401_672019201_4FGL_J1834.7-5858_weekly_bin715.fits outfile=/scratch/kocevski/931570/expmap_671414401_672019201_4FGL_J1834.7-5858_weekly_bin715.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/931570/ltcube_671414401_672019201_4FGL_J1834.7-5858_weekly_bin715.fits
.....................!
real 192.10
user 186.03
sys 5.60

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 FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source MSH 15-56 PWN in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_SNRmask.fits is the correct path to the extended template.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Extended source FHES J1741.6-3917 in ROI with RadialDisk spatial model.
Added 312 point sources and 11 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 J1834.7-5858 @ 278.687 -58.9818

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/931570/ft1_filtered_4FGL_J1834.7-5858_weekly_bin715.fits scfile=/scratch/kocevski/931570/ft2_4FGL_J1834.7-5858_weekly_bin715.fits outfile=/scratch/kocevski/931570/cmap_671414401_672019201_4FGL_J1834.7-5858_weekly_bin715.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=278.687 yref=-58.9818 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.59
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/931570/ft1_filtered_4FGL_J1834.7-5858_weekly_bin715.fits scfile=/scratch/kocevski/931570/ft2_4FGL_J1834.7-5858_weekly_bin715.fits outfile=/scratch/kocevski/931570/cmap_HighResolution_671414401_672019201_4FGL_J1834.7-5858_weekly_bin715.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=278.687 yref=-58.9818 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.43
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/931570/ft1_filtered_4FGL_J1834.7-5858_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/931570/ft2_4FGL_J1834.7-5858_weekly_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/931570/Model_4FGL_J1834.7-5858_weekly_bin715.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 FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FHES J1642.1-5428
adding source FHES J1741.6-3917
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1614-518
adding source HESS J1616-508
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
Working on...
/scratch/kocevski/931570/ft1_filtered_4FGL_J1834.7-5858_weekly_bin715.fits.....................!
real 1095.55
user 1092.21
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/931570/ft1_filtered_4FGL_J1834.7-5858_weekly_bin715.fits', '/scratch/kocevski/931570/ft2_4FGL_J1834.7-5858_weekly_bin715.fits', expMap='/scratch/kocevski/931570/expmap_671414401_672019201_4FGL_J1834.7-5858_weekly_bin715.fits', expCube='/scratch/kocevski/931570/ltcube_671414401_672019201_4FGL_J1834.7-5858_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/931570/Model_4FGL_J1834.7-5858_weekly_bin715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1834.7-5858'

4FGL J1834.7-5858
   Spectrum: PowerLaw
788    Prefactor:  8.724e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
789        Index:  2.394e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
790        Scale:  1.666e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/931570/ft1_filtered_4FGL_J1834.7-5858_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/931570/ft2_4FGL_J1834.7-5858_weekly_bin715.fits
Exposure map: /scratch/kocevski/931570/expmap_671414401_672019201_4FGL_J1834.7-5858_weekly_bin715.fits
Exposure cube: /scratch/kocevski/931570/ltcube_671414401_672019201_4FGL_J1834.7-5858_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/931570/Model_4FGL_J1834.7-5858_weekly_bin715.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) = 30620.4061956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .35267E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.749       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9966       1.0000         .10000E-03   10000.    
     4 'norm      '    8.0140       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6695       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.7638       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.064       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    19.579       1.0000         .10000E-03   10000.    
    13 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.8727       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .21033       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    89.512       1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.600       1.0000         .10000E-03   10000.    
    19 'norm      '    64.229       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .37046       1.0000         .10000E-03   10000.    
    21 'norm      '    .36101       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0134       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90306       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1140E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   30620.40     FROM MIGRAD    STATUS=CONVERGED     93 CALLS     2254 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.373        .23209E-05** at limit **
   2  Prefactor     13.749        1.9654        .21839E-05    .12795E-02
   3  Prefactor     3.9960        1.0115        .19433E-06    .41878E-03
   4  norm          8.0039        2.9318        .43705E-05   -.19190E-02
   5  Prefactor     7.6679        5.7619        .98009E-05    .21394E-02
   6  Prefactor     .10001E-03    40.665        .84128E-05** at limit **
   7  norm          .10000E-03    3.7126        .75832E-06** at limit **
   8  Prefactor     .10000E-03    10.355       -.12304E-05** at limit **
   9  Prefactor     9.7636        1.8082        .23089E-05    .84374E-03
  10  Prefactor     16.064        3.1413        .35531E-05    .21276E-02
  11  Prefactor     .10000E-03    6.9426        .36402E-06** at limit **
  12  norm          19.578        3.5865        .19956E-06    .30756E-04
  13  norm          .10000E-03    1.1174        .81352E-07** at limit **
  14  norm          1.8733        .58562        .60707E-06   -.37922E-02
  15  Prefactor     .10003E-03    661.95       -.70887E-05** at limit **
  16  Prefactor     .10000E-03    28.196       -.14222E-05** at limit **
  17  Prefactor     89.501        1.4675        .43835E-06   -.63855E-02
  18  Prefactor     43.592        2.2804        .14531E-05   -.91102E-02
  19  norm          64.226        4.0559        .23309E-05   -.37586E-02
  20  Prefactor     .37100        .65936        .53758E-06    .25422E-03
  21  norm          .36091        .63433        .12692E-06   -.14801E-03
  22  Normalizat    1.0133        .17244       -.30939E-05   -.25990E-03
  23  Prefactor     .90308        .50093E-01   -.66984E-06   -.53608E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  Prefactor  = 13.7494
  Prefactor  = 3.996
  norm       = 8.00393
  Prefactor  = 7.66786
  Prefactor  = 0.000100012
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.76363
  Prefactor  = 16.0642
  Prefactor  = 0.0001
  norm       = 19.5784
  norm       = 0.0001
  norm       = 1.87327
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  Prefactor  = 89.5005
  Prefactor  = 43.5917
  norm       = 64.2261
  Prefactor  = 0.371004
  norm       = 0.360909
  Normalizat = 1.01335
  Prefactor  = 0.903081
 **********
 **   18 **HESSE 
 **********

 FCN=   30620.40     FROM HESSE     STATUS=OK           442 CALLS     2696 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0739        .58634E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.749        7.3602        .27006E-02   -1.4966    
   3  Prefactor     3.9960        10.408        .50434E-02   -1.5308    
   4  norm          8.0039        11.985        .35408E-02   -1.5142    
   5  Prefactor     7.6679        7.9686        .36201E-02   -1.5154    
   6  Prefactor     .10001E-03    40.982        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.6297        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.222        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.7636        10.882        .32061E-02   -1.5083    
  10  Prefactor     16.064        8.6673        .24982E-02   -1.4906    
  11  Prefactor     .10000E-03    6.9135        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          19.578        3.5890        .22629E-02   -1.4823    
  13  norm          .10000E-03    1.0800        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.8733        .63180        .76081E-02   -1.5434    
  15  Prefactor     .10003E-03    18.235        .20332       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.271        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     89.501        30.454        .10617E-02   -1.3813    
  18  Prefactor     43.592        42.566        .15179E-02   -1.4387    
  19  norm          64.226        9.3946        .12518E-02   -1.4103    
  20  Prefactor     .37100        3.0808        .10730       -1.5586    
  21  norm          .36091        .64220        .10690E-01   -1.5588    
  22  Normalizat    1.0133        .16094        .10863       -.92585    
  23  Prefactor     .90308        .45323E-01    .33280E-01   -.96034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13165e-07
Minuit parameter uncertainties:
  1  9.52478e-05
  2  7.36071
  3  10.4127
  4  11.9888
  5  7.96972
  6  0.00137832
  7  1.60777e-05
  8  1.07486e-05
  9  10.884
  10  8.66799
  11  8.19057e-06
  12  3.589
  13  7.19805e-07
  14  0.631799
  15  0.00156884
  16  2.64989e-05
  17  30.4589
  18  42.5957
  19  9.39483
  20  2.13808
  21  0.642209
  22  0.161012
  23  0.0453247
Done.

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

Extracting fit parameters...

4FGL J1834.7-5858
   Spectrum: PowerLaw
788    Prefactor:  1.000e-04  1.569e-03  1.000e-04  1.000e+04 ( 1.000e-14)
789        Index:  2.394e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
790        Scale:  1.666e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1122    Prefactor:  9.031e-01  4.532e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1123        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1124        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1098   Normalization:  1.013e+00  1.610e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 278.687 -58.982
Photon Flux Upper Limit: 4.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/931570/likelihoodResults_671414401_672019201_4FGL_J1834.7-5858_weekly_bin715.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) = 30620.4006271
delta logL = -7.07714934833e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 30620.4006271
delta logL = -7.07666549715e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96366E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3943       1.0000          .0000       10.000    
     3 'Normalizat'    1.0133       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90308       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1140E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   30620.40     FROM MIGRAD    STATUS=CONVERGED    142 CALLS      334 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6729        786.68        .90712E-02    .44085E-04
   2  Index         2.0482        1.7325        .50000        .16579E-04
   3  Normalizat    1.0132        .98781E-02    .10864       -.11907E-04
   4  Prefactor     .90297        .28749E-02    .33282E-01   -.46588E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.67285
  Index      = 2.04815
  Normalizat = 1.01321
  Prefactor  = 0.902972
 **********
 **   18 **HESSE 
 **********

 FCN=   30620.40     FROM HESSE     STATUS=OK            31 CALLS      365 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6729        151.37        .36285E-03   -1.5381    
   2  Index         2.0482        2.7203        .29283E-01   -.63152    
   3  Normalizat    1.0132        .16864        .48153E-03   -.92589    
   4  Prefactor     .90297        .49364E-01    .14706E-03   -.96037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41196e-11
Minuit parameter uncertainties:
  1  40.3351
  2  2.98521
  3  0.168725
  4  0.0493663
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931570': 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) = 30620.3977846
delta logL = 0.0028354327078

Extracting fit parameters...

4FGL J1834.7-5858
   Spectrum: PowerLaw
788    Prefactor:  2.673e+00  4.034e+01  1.000e-04  1.000e+04 ( 1.000e-14)
789        Index:  2.048e+00  2.985e+00  0.000e+00  1.000e+01 (-1.000e+00)
790        Scale:  1.666e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1122    Prefactor:  9.030e-01  4.937e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1123        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1124        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1098   Normalization:  1.013e+00  1.687e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 278.687 -58.982

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/931570/cmap_HighResolution_671414401_672019201_4FGL_J1834.7-5858_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.73e-03', job_status='DONE', photon_flux_upper_limit='4.83e-08', time_completed='2022-04-19 03:40:59.363951', job_id='931570', GAL2='0.90', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1650364859.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.84e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='715' AND source_name='4FGL J1834.7-5858' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:40:59 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 931570: <4FGL_J1834.7-5858_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1834.7-5858_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:07:35 2022
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:19:41 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:19:41 2022
Terminated at Tue Apr 19 03:41:00 2022
Results reported at Tue Apr 19 03:41:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1834.7-5858_weekly_bin715 278.687 -58.9818 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1834.7-5858 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   4817.00 sec.
    Max Memory :                                 1265 MB
    Average Memory :                             443.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   4879 sec.
    Turnaround time :                            12805 sec.

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

