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


Performing analysis on: 4FGL_J1830.1+0617_weekly_bin728
RA = 277.536, Dec = 6.2878
tmin = 679276801, tmax = 679881601
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='644650', job_status='RUN', time_executed='2022-07-19 00:46:16.141329', time_epoch_executed='1658216776.14' WHERE source_name='4FGL J1830.1+0617' and cadence='weekly' and bin_id='728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/644650

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/644650/ft1_4FGL_J1830.1+0617_weekly_bin728.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/644650/ft2_4FGL_J1830.1+0617_weekly_bin728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/644650/ft1_4FGL_J1830.1+0617_weekly_bin728.fits outfile=/scratch/kocevski/644650/ft1_filteredMKT_4FGL_J1830.1+0617_weekly_bin728.fits ra=277.536 dec=6.2878 rad=12.0 tmin=679276801.0 tmax=679881601.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.42
user 7.13
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/644650/ft2_4FGL_J1830.1+0617_weekly_bin728.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/644650/ft2_4FGL_J1830.1+0617_weekly_bin728.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/644650/ft1_filteredMKT_4FGL_J1830.1+0617_weekly_bin728.fits evtable="EVENTS" outfile="/scratch/kocevski/644650/ft1_filtered_4FGL_J1830.1+0617_weekly_bin728.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.59
user 0.39
sys 0.17

Number of photons that the gtmktime cut: 11994

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/644650/ft1_filtered_4FGL_J1830.1+0617_weekly_bin728.fits" evtable="EVENTS" scfile=/scratch/kocevski/644650/ft2_4FGL_J1830.1+0617_weekly_bin728.fits sctable="SC_DATA" outfile=/scratch/kocevski/644650/ltcube_679276801_679881601_4FGL_J1830.1+0617_weekly_bin728.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/644650/ft2_4FGL_J1830.1+0617_weekly_bin728.fits
.....................!
real 26.62
user 26.23
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/644650/ft1_filtered_4FGL_J1830.1+0617_weekly_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/644650/ft2_4FGL_J1830.1+0617_weekly_bin728.fits sctable="SC_DATA" expcube=/scratch/kocevski/644650/ltcube_679276801_679881601_4FGL_J1830.1+0617_weekly_bin728.fits outfile=/scratch/kocevski/644650/expmap_679276801_679881601_4FGL_J1830.1+0617_weekly_bin728.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/644650/ltcube_679276801_679881601_4FGL_J1830.1+0617_weekly_bin728.fits
.....................!
real 191.79
user 185.96
sys 5.41

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 Kes 79 in ROI with RadialDisk spatial model.
Extended source W 44 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W44.fits is the correct path to the extended template.
Extended source HESS J1857+026 in ROI with RadialDisk spatial model.
Extended source Kes 73 in ROI with RadialDisk spatial model.
Extended source HESS J1841-055 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HESSJ1841-055.fits is the correct path to the extended template.
Extended source G42.8+0.6 in ROI with RadialDisk spatial model.
Extended source G24.7+0.6 in ROI with RadialDisk spatial model.
Extended source W 41 in ROI with RadialGaussian spatial model.
Extended source FGES J1836.5-0651 in ROI with RadialDisk spatial model.
Extended source FGES J1838.9-0704 in ROI with RadialDisk spatial model.
Extended source W 51C in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W51C.fits is the correct path to the extended template.
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Extended source HESS J1825-137 in ROI with RadialGaussian spatial model.
Added 342 point sources and 13 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 J1830.1+0617 @ 277.536 6.2878

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/644650/ft1_filtered_4FGL_J1830.1+0617_weekly_bin728.fits scfile=/scratch/kocevski/644650/ft2_4FGL_J1830.1+0617_weekly_bin728.fits outfile=/scratch/kocevski/644650/cmap_679276801_679881601_4FGL_J1830.1+0617_weekly_bin728.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=277.536 yref=6.2878 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.44
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/644650/ft1_filtered_4FGL_J1830.1+0617_weekly_bin728.fits scfile=/scratch/kocevski/644650/ft2_4FGL_J1830.1+0617_weekly_bin728.fits outfile=/scratch/kocevski/644650/cmap_HighResolution_679276801_679881601_4FGL_J1830.1+0617_weekly_bin728.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=277.536 yref=6.2878 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.65
user 0.46
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/644650/ft1_filtered_4FGL_J1830.1+0617_weekly_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/644650/ft2_4FGL_J1830.1+0617_weekly_bin728.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/644650/Model_4FGL_J1830.1+0617_weekly_bin728.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 J1836.5-0651
adding source FGES J1838.9-0704
adding source FHES J1723.5-0501
adding source G24.7+0.6
adding source G42.8+0.6
adding source GAL_V02
adding source HESS J1825-137
adding source HESS J1841-055
adding source HESS J1857+026
adding source Kes 73
adding source Kes 79
adding source W 41
adding source W 44
adding source W 51C
Working on...
/scratch/kocevski/644650/ft1_filtered_4FGL_J1830.1+0617_weekly_bin728.fits.....................!
real 3800.34
user 3792.63
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/644650/ft1_filtered_4FGL_J1830.1+0617_weekly_bin728.fits', '/scratch/kocevski/644650/ft2_4FGL_J1830.1+0617_weekly_bin728.fits', expMap='/scratch/kocevski/644650/expmap_679276801_679881601_4FGL_J1830.1+0617_weekly_bin728.fits', expCube='/scratch/kocevski/644650/ltcube_679276801_679881601_4FGL_J1830.1+0617_weekly_bin728.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/644650/Model_4FGL_J1830.1+0617_weekly_bin728.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1830.1+0617'

4FGL J1830.1+0617
   Spectrum: PowerLaw
476    Prefactor:  3.993e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
477        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
478        Scale:  1.573e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/644650/ft1_filtered_4FGL_J1830.1+0617_weekly_bin728.fits
Spacecraft file(s): /scratch/kocevski/644650/ft2_4FGL_J1830.1+0617_weekly_bin728.fits
Exposure map: /scratch/kocevski/644650/expmap_679276801_679881601_4FGL_J1830.1+0617_weekly_bin728.fits
Exposure cube: /scratch/kocevski/644650/ltcube_679276801_679881601_4FGL_J1830.1+0617_weekly_bin728.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/644650/Model_4FGL_J1830.1+0617_weekly_bin728.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) = 103742.851284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3313       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.489       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .11112E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.4598       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .90201E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .27563E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11678E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.959       1.0000         .10000E-03   10000.    
    10 'norm      '    .13242E-03   1.0000         .10000E-03   10000.    
    11 'Normalizat'    1.4719       1.0000         .10000E-01   10.000    
    12 'Prefactor '    1.0390       1.0000          .0000       10.000    
    13 'norm      '    1.8664       1.0000         .10000E-03   10000.    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1294E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   103742.8     FROM MIGRAD    STATUS=CONVERGED    262 CALLS     1165 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3316        .60898        .67146E-02    .22815E-02
   2  Prefactor     21.708        20.817        .21601E-02    .25346E-04
   3  norm          .10000E-03    1.1714        .90712E-02** at limit **
   4  norm          .10000E-03    3.9094        .90712E-02** at limit **
   5  norm          2.4643        3.5899        .65192E-02    .16147E-02
   6  Prefactor     .10000E-03    .84638        .10414    ** at limit **
   7  Prefactor     .10000E-03    7.6003        .10713E-01** at limit **
   8  Prefactor     .10000E-03    8.5092        .90712E-02** at limit **
   9  Prefactor     14.056        13.644        .26801E-02    .44726E-04
  10  norm          .10000E-03    1.0900        .18606    ** at limit **
  11  Normalizat    1.4713        .23684        .30275        .36160E-03
  12  Prefactor     1.0390        .15849E-01    .27104E-01   -.40227E-02
  13  norm          1.8664        .23787        .76234E-02    .75951E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 2.33161
  Prefactor  = 21.7079
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.46426
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0558
  norm       = 0.0001
  Normalizat = 1.47125
  Prefactor  = 1.03905
  norm       = 1.86638
 **********
 **   18 **HESSE 
 **********

 FCN=   103742.8     FROM HESSE     STATUS=OK           165 CALLS     1330 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3316        .60719        .12270E-03   -1.5403    
   2  Prefactor     21.708        20.812        .86405E-04   -1.4776    
   3  norm          .10000E-03    1.1813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.9519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.4643        3.5747        .26077E-03   -1.5394    
   6  Prefactor     .10000E-03    1.1640        .83684E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.6136        .21425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.7391        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.056        13.608        .10720E-03   -1.4958    
  10  norm          .10000E-03    1.2664        .14291       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Normalizat    1.4713        .22790        .14873E-02   -.78589    
  12  Prefactor     1.0390        .15723E-01    .59891E-03   -.91439    
  13  norm          1.8664        .23692        .52811E-04   -1.5435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.90612e-12
Minuit parameter uncertainties:
  1  0.607194
  2  20.8194
  3  1.60503e-06
  4  6.03343e-07
  5  3.57505
  6  7.14566e-06
  7  5.64631e-06
  8  1.53812e-05
  9  13.6107
  10  4.41277e-06
  11  0.228061
  12  0.0157231
  13  0.236925
Done.

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

Extracting fit parameters...

4FGL J1830.1+0617
   Spectrum: PowerLaw
476    Prefactor:  1.000e-04  1.538e-05  1.000e-04  1.000e+04 ( 1.000e-13)
477        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
478        Scale:  1.573e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1263    Prefactor:  1.039e+00  1.572e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1264        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1265        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1246   Normalization:  1.471e+00  2.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 277.536 6.288
Photon Flux Upper Limit: 8.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/644650/likelihoodResults_679276801_679881601_4FGL_J1830.1+0617_weekly_bin728.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) = 103742.84806
delta logL = -0.000546153620235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 103742.847515
delta logL = -1.76703906618e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14380E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3102       1.0000          .0000       10.000    
     3 'Normalizat'    1.4715       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0390       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1294E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   103742.8     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      269 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    14.645        .36285E-03** at limit **
   2  Index         2.2289        6.1136        .50000        .63992E-04
   3  Normalizat    1.4713        .21234        .14873E-02    .47208E-04
   4  Prefactor     1.0390        .15079E-01    .11978E-03    .79877E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100068
  Index      = 2.22886
  Normalizat = 1.47125
  Prefactor  = 1.03905
 **********
 **   18 **HESSE 
 **********

 FCN=   103742.8     FROM HESSE     STATUS=OK            29 CALLS      298 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    14.396        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2289        6.1141        .50000       -.58744    
   3  Normalizat    1.4713        .21232        .59492E-04   -.78589    
   4  Prefactor     1.0390        .15078E-01    .47913E-05   -.91439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.08252e-09
Minuit parameter uncertainties:
  1  0.00198559
  2  4.16376
  3  0.212452
  4  0.0150781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/644650': 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) = 103742.847511
delta logL = 2.26235715672e-06

Extracting fit parameters...

4FGL J1830.1+0617
   Spectrum: PowerLaw
476    Prefactor:  1.001e-04  1.986e-03  1.000e-04  1.000e+04 ( 1.000e-13)
477        Index:  2.229e+00  4.164e+00  0.000e+00  1.000e+01 (-1.000e+00)
478        Scale:  1.573e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1263    Prefactor:  1.039e+00  1.508e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1264        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1265        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1246   Normalization:  1.471e+00  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 277.536 6.288

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/644650/cmap_HighResolution_679276801_679881601_4FGL_J1830.1+0617_weekly_bin728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.23e-03', job_status='DONE', photon_flux_upper_limit='8.08e-08', time_completed='2022-07-19 03:49:25.088725', job_id='644650', GAL2='1.04', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1658227765.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='728' AND source_name='4FGL J1830.1+0617' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 19 03:49:25 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 644650: <4FGL_J1830.1+0617_weekly_bin728> in cluster <slac> Done

Job <4FGL_J1830.1+0617_weekly_bin728> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Jul 19 00:45:29 2022
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 19 00:45:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 19 00:45:30 2022
Terminated at Tue Jul 19 03:49:27 2022
Results reported at Tue Jul 19 03:49:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1830.1+0617_weekly_bin728 277.536 6.2878 679276801 679881601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1830.1+0617 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   10981.00 sec.
    Max Memory :                                 709 MB
    Average Memory :                             661.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11036 sec.
    Turnaround time :                            11038 sec.

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

