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


Performing analysis on: 4FGL_J1824.5+0107_weekly_bin716
RA = 276.125, Dec = 1.1251
tmin = 672019201, tmax = 672624001
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='646188', job_status='RUN', time_executed='2022-04-26 00:29:08.387192', time_epoch_executed='1650958148.39' WHERE source_name='4FGL J1824.5+0107' and cadence='weekly' and bin_id='716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/646188

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/646188/ft1_4FGL_J1824.5+0107_weekly_bin716.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/646188/ft2_4FGL_J1824.5+0107_weekly_bin716.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/646188/ft1_4FGL_J1824.5+0107_weekly_bin716.fits outfile=/scratch/kocevski/646188/ft1_filteredMKT_4FGL_J1824.5+0107_weekly_bin716.fits ra=276.125 dec=1.1251 rad=12.0 tmin=672019201.0 tmax=672624001.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 8.98
user 8.59
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/646188/ft2_4FGL_J1824.5+0107_weekly_bin716.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/646188/ft2_4FGL_J1824.5+0107_weekly_bin716.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/646188/ft1_filteredMKT_4FGL_J1824.5+0107_weekly_bin716.fits evtable="EVENTS" outfile="/scratch/kocevski/646188/ft1_filtered_4FGL_J1824.5+0107_weekly_bin716.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.60
user 0.40
sys 0.17

Number of photons that the gtmktime cut: 19506

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/646188/ft1_filtered_4FGL_J1824.5+0107_weekly_bin716.fits" evtable="EVENTS" scfile=/scratch/kocevski/646188/ft2_4FGL_J1824.5+0107_weekly_bin716.fits sctable="SC_DATA" outfile=/scratch/kocevski/646188/ltcube_672019201_672624001_4FGL_J1824.5+0107_weekly_bin716.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/646188/ft2_4FGL_J1824.5+0107_weekly_bin716.fits
.....................!
real 27.97
user 27.45
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/646188/ft1_filtered_4FGL_J1824.5+0107_weekly_bin716.fits evtable="EVENTS" scfile=/scratch/kocevski/646188/ft2_4FGL_J1824.5+0107_weekly_bin716.fits sctable="SC_DATA" expcube=/scratch/kocevski/646188/ltcube_672019201_672624001_4FGL_J1824.5+0107_weekly_bin716.fits outfile=/scratch/kocevski/646188/expmap_672019201_672624001_4FGL_J1824.5+0107_weekly_bin716.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/646188/ltcube_672019201_672624001_4FGL_J1824.5+0107_weekly_bin716.fits
.....................!
real 192.53
user 185.88
sys 5.31

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 G24.7+0.6 in ROI with RadialDisk spatial model.
Extended source FGES J1836.5-0651 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 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 W 41 in ROI with RadialGaussian spatial model.
Extended source FGES J1838.9-0704 in ROI with RadialDisk spatial model.
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Extended source HESS J1825-137 in ROI with RadialGaussian spatial model.
Extended source G42.8+0.6 in ROI with RadialDisk spatial model.
Extended source HESS J1808-204 in ROI with RadialDisk spatial model.
Extended source HESS J1809-193 in ROI with RadialDisk spatial model.
Extended source HESS J1813-178 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.
Added 353 point sources and 16 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 J1824.5+0107 @ 276.125 1.1251

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/646188/ft1_filtered_4FGL_J1824.5+0107_weekly_bin716.fits scfile=/scratch/kocevski/646188/ft2_4FGL_J1824.5+0107_weekly_bin716.fits outfile=/scratch/kocevski/646188/cmap_672019201_672624001_4FGL_J1824.5+0107_weekly_bin716.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=276.125 yref=1.1251 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.64
user 0.45
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/646188/ft1_filtered_4FGL_J1824.5+0107_weekly_bin716.fits scfile=/scratch/kocevski/646188/ft2_4FGL_J1824.5+0107_weekly_bin716.fits outfile=/scratch/kocevski/646188/cmap_HighResolution_672019201_672624001_4FGL_J1824.5+0107_weekly_bin716.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=276.125 yref=1.1251 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.63
user 0.47
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/646188/ft1_filtered_4FGL_J1824.5+0107_weekly_bin716.fits evtable="EVENTS" scfile=/scratch/kocevski/646188/ft2_4FGL_J1824.5+0107_weekly_bin716.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/646188/Model_4FGL_J1824.5+0107_weekly_bin716.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 J1808-204
adding source HESS J1809-193
adding source HESS J1813-178
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/646188/ft1_filtered_4FGL_J1824.5+0107_weekly_bin716.fits.....................!
real 6425.88
user 6382.75
sys 1.56

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/646188/ft1_filtered_4FGL_J1824.5+0107_weekly_bin716.fits', '/scratch/kocevski/646188/ft2_4FGL_J1824.5+0107_weekly_bin716.fits', expMap='/scratch/kocevski/646188/expmap_672019201_672624001_4FGL_J1824.5+0107_weekly_bin716.fits', expCube='/scratch/kocevski/646188/ltcube_672019201_672624001_4FGL_J1824.5+0107_weekly_bin716.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/646188/Model_4FGL_J1824.5+0107_weekly_bin716.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1824.5+0107'

4FGL J1824.5+0107
   Spectrum: PowerLaw
515    Prefactor:  1.900e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
516        Index:  2.661e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
517        Scale:  8.935e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/646188/ft1_filtered_4FGL_J1824.5+0107_weekly_bin716.fits
Spacecraft file(s): /scratch/kocevski/646188/ft2_4FGL_J1824.5+0107_weekly_bin716.fits
Exposure map: /scratch/kocevski/646188/expmap_672019201_672624001_4FGL_J1824.5+0107_weekly_bin716.fits
Exposure cube: /scratch/kocevski/646188/ltcube_672019201_672624001_4FGL_J1824.5+0107_weekly_bin716.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/646188/Model_4FGL_J1824.5+0107_weekly_bin716.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) = 164316.69022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12772E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1126       1.0000         .10000E-03   10000.    
     3 'norm      '    .10682E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.3587       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6558       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13082       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17879E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11694E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.7837       1.0000         .10000E-03   10000.    
    10 'Normalizat'    1.4808       1.0000         .10000E-01   10.000    
    11 'Prefactor '    1.0567       1.0000          .0000       10.000    
    12 'norm      '    1.2769       1.0000         .10000E-03   10000.    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1343E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   164316.3     FROM MIGRAD    STATUS=CONVERGED    236 CALLS      961 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    .55957         .0000    ** at limit **
   2  norm          1.1126        .54699         .0000        .61191E-02
   3  norm          .10005E-03    .73527         .0000    ** at limit **
   4  norm          1.3577        2.8664         .0000        .50387E-01
   5  norm          1.6562        2.6768         .0000        .82758E-01
   6  Prefactor     .12326        .44539         .0000        .29660E-02
   7  Prefactor     .10004E-03    4.4857         .0000    ** at limit **
   8  Prefactor     .10000E-03    3.6851         .0000    ** at limit **
   9  norm          2.7837        1.1194         .0000        .10239E-01
  10  Normalizat    1.4808        .24372         .0000        .61302E-03
  11  Prefactor     1.0567        .13003E-01     .0000       -.34144E-03
  12  norm          1.2769        .18521         .0000        .17759E-01
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100021
  norm       = 1.11264
  norm       = 0.000100047
  norm       = 1.35767
  norm       = 1.65619
  Prefactor  = 0.12326
  Prefactor  = 0.000100041
  Prefactor  = 0.0001
  norm       = 2.78368
  Normalizat = 1.48081
  Prefactor  = 1.05666
  norm       = 1.27692
 **********
 **   18 **HESSE 
 **********

 FCN=   164316.3     FROM HESSE     STATUS=OK           159 CALLS     1120 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    .54656        .10529       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1126        .53741        .20282E-03   -1.5497    
   3  norm          .10005E-03    .81126        .14974       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.3577        2.8142        .18740E-02   -1.5475    
   5  norm          1.6562        2.6566        .16399E-02   -1.5451    
   6  Prefactor     .12326        .80578        .82462E-01   -1.5638    
   7  Prefactor     .10004E-03    4.5401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.6975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.7837        1.1178        .24389E-03   -1.5374    
  10  Normalizat    1.4808        .23170        .18810E-02   -.78319    
  11  Prefactor     1.0567        .12690E-01    .11703E-03   -.90864    
  12  norm          1.2769        .18260        .62716E-04   -1.5482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96126e-08
Minuit parameter uncertainties:
  1  0.000216117
  2  0.537415
  3  0.000388544
  4  2.8145
  5  2.65684
  6  0.630059
  7  0.000859484
  8  4.79965e-05
  9  1.11782
  10  0.23187
  11  0.0126899
  12  0.182599
Done.

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

Extracting fit parameters...

4FGL J1824.5+0107
   Spectrum: PowerLaw
515    Prefactor:  1.233e-01  6.301e-01  1.000e-04  1.000e+04 ( 1.000e-12)
516        Index:  2.661e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
517        Scale:  8.935e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1300    Prefactor:  1.057e+00  1.269e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1301        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1302        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1283   Normalization:  1.481e+00  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 276.125 1.125
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/646188/likelihoodResults_672019201_672624001_4FGL_J1824.5+0107_weekly_bin716.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) = 164315.566863
delta logL = 0.690345292416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 164315.438135
delta logL = 0.819073395309

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37541E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.5632       1.0000          .0000       10.000    
     3 'Normalizat'    1.4198       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0575       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1343E+06   .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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   164315.4     FROM MIGRAD    STATUS=FAILED       110 CALLS      403 TOTAL
                     EDM=   .46E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35358E-03    .15229E-01    .50244E-04** at limit **
   2  Index         7.5932        7.8876        .12567E-01    .28803E-02
   3  Normalizat    1.4200        .15519        .19135E-02   -.10457E-04
   4  Prefactor     1.0575        .83868E-02    .11699E-03   -.83030E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   164315.4     FROM SIMPLEX   STATUS=UNCHANGED     92 CALLS      495 TOTAL
                     EDM=   .62E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35358E-03    .15229E-01    .32177E-05** at limit **
   2  Index         7.5932        7.8876        .19938E-02    .28803E-02
   3  Normalizat    1.4200        .15519        .13169E-03   -.10457E-04
   4  Prefactor     1.0575        .83868E-02    .59151E-05   -.83030E-03
                               ERR DEF=  .500    

 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=   164315.4     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      565 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35358E-03    .17904E-01    .20097E-05** at limit **
   2  Index         7.5932        8.0816        .10053E-03   -.20265E-04
   3  Normalizat    1.4200        .22324        .15308E-04   -.95063E-05
   4  Prefactor     1.0575        .11975E-01    .93589E-06   -.80630E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000353581
  Index      = 7.59317
  Normalizat = 1.42002
  Prefactor  = 1.05747
 **********
 **   18 **HESSE 
 **********

 FCN=   164315.4     FROM HESSE     STATUS=OK            25 CALLS      590 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35358E-03    .16677E-01    .80390E-07   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.5932        7.9973        .20107E-04    .54525    
   3  Normalizat    1.4200        .22146        .30615E-05   -.80051    
   4  Prefactor     1.0575        .11892E-01    .21657E-06   -.90837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61691e-11
Minuit parameter uncertainties:
  1  0.00411283
  2  5.52918
  3  0.221613
  4  0.0118923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/646188': 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) = 164315.438111
delta logL = 0.819097633561

Extracting fit parameters...

4FGL J1824.5+0107
   Spectrum: PowerLaw
515    Prefactor:  3.536e-04  4.113e-03  1.000e-04  1.000e+04 ( 1.000e-12)
516        Index:  7.593e+00  5.529e+00  0.000e+00  1.000e+01 (-1.000e+00)
517        Scale:  8.935e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1300    Prefactor:  1.057e+00  1.189e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1301        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1302        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1283   Normalization:  1.420e+00  2.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.75
Ra Dec: 276.125 1.125
Photon Index (Free Index): 7.59 +/- 5.53
Photon Flux (Free Index): 9.10e-08 +/- 7.98e-08
Energy Flux (Free Index): 1.07e-05 +/- 1.01e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /scratch/kocevski/646188/cmap_HighResolution_672019201_672624001_4FGL_J1824.5+0107_weekly_bin716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', energy_flux2='1.07e-05', dlogl='8.19e-01', photon_flux2='9.10e-08', job_status='DONE', time_completed='2022-04-26 05:39:55.709285', photon_index_error2='5.53', photon_index2='7.59', ts='0.00', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.01e-05', EG='1.48', time_epoch_completed='1650976795.71', return_code='0', job_id='646188', GAL2='1.06', EG2='1.42', return_code2='0', photon_flux_error2='7.98e-08', ts2='1.75', photon_index='2.66' WHERE bin_id='716' AND source_name='4FGL J1824.5+0107' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 26 05:39:55 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 646188: <4FGL_J1824.5+0107_weekly_bin716> in cluster <slac> Done

Job <4FGL_J1824.5+0107_weekly_bin716> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Apr 26 00:07:50 2022
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 26 00:25:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 26 00:25:48 2022
Terminated at Tue Apr 26 05:39:58 2022
Results reported at Tue Apr 26 05:39:58 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   18545.00 sec.
    Max Memory :                                 979 MB
    Average Memory :                             839.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   18849 sec.
    Turnaround time :                            19928 sec.

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

