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


Performing analysis on: 4FGL_J1858.3-2511_daily_bin1690
RA = 284.575, Dec = -25.1991
tmin = 677376001, tmax = 677635201
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='158012', job_status='RUN', time_executed='2022-06-23 01:12:26.137181', time_epoch_executed='1655971946.14' WHERE source_name='4FGL J1858.3-2511' and cadence='daily' and bin_id='1690'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158012

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158012/ft1_4FGL_J1858.3-2511_daily_bin1690.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158012/ft2_4FGL_J1858.3-2511_daily_bin1690.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158012/ft1_4FGL_J1858.3-2511_daily_bin1690.fits outfile=/scratch/kocevski/158012/ft1_filteredMKT_4FGL_J1858.3-2511_daily_bin1690.fits ra=284.575 dec=-25.1991 rad=12.0 tmin=677376001.0 tmax=677635201.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 2.54
user 2.33
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/158012/ft2_4FGL_J1858.3-2511_daily_bin1690.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/158012/ft2_4FGL_J1858.3-2511_daily_bin1690.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/158012/ft1_filteredMKT_4FGL_J1858.3-2511_daily_bin1690.fits evtable="EVENTS" outfile="/scratch/kocevski/158012/ft1_filtered_4FGL_J1858.3-2511_daily_bin1690.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.50
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/158012/ft1_filtered_4FGL_J1858.3-2511_daily_bin1690.fits" evtable="EVENTS" scfile=/scratch/kocevski/158012/ft2_4FGL_J1858.3-2511_daily_bin1690.fits sctable="SC_DATA" outfile=/scratch/kocevski/158012/ltcube_677376001_677635201_4FGL_J1858.3-2511_daily_bin1690.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/158012/ft2_4FGL_J1858.3-2511_daily_bin1690.fits
.....................!
real 16.46
user 15.45
sys 0.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158012/ft1_filtered_4FGL_J1858.3-2511_daily_bin1690.fits evtable="EVENTS" scfile=/scratch/kocevski/158012/ft2_4FGL_J1858.3-2511_daily_bin1690.fits sctable="SC_DATA" expcube=/scratch/kocevski/158012/ltcube_677376001_677635201_4FGL_J1858.3-2511_daily_bin1690.fits outfile=/scratch/kocevski/158012/expmap_677376001_677635201_4FGL_J1858.3-2511_daily_bin1690.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/158012/ltcube_677376001_677635201_4FGL_J1858.3-2511_daily_bin1690.fits
.....................!
real 194.80
user 188.35
sys 5.90

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 W 28 in ROI with RadialDisk spatial model.
Extended source HESS J1804-216 in ROI with RadialDisk spatial model.
Extended source W 30 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 FGES J1745.8-3028 in ROI with RadialDisk spatial model.
Extended source HESS J1825-137 in ROI with RadialGaussian spatial model.
Extended source W 41 in ROI with RadialGaussian spatial model.
Extended source FHES J1741.6-3917 in ROI with RadialDisk spatial model.
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 FGES J1838.9-0704 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.
Added 491 point sources and 15 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 J1858.3-2511 @ 284.575 -25.1991

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/158012/ft1_filtered_4FGL_J1858.3-2511_daily_bin1690.fits scfile=/scratch/kocevski/158012/ft2_4FGL_J1858.3-2511_daily_bin1690.fits outfile=/scratch/kocevski/158012/cmap_677376001_677635201_4FGL_J1858.3-2511_daily_bin1690.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=284.575 yref=-25.1991 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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158012/ft1_filtered_4FGL_J1858.3-2511_daily_bin1690.fits scfile=/scratch/kocevski/158012/ft2_4FGL_J1858.3-2511_daily_bin1690.fits outfile=/scratch/kocevski/158012/cmap_HighResolution_677376001_677635201_4FGL_J1858.3-2511_daily_bin1690.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=284.575 yref=-25.1991 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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/158012/ft1_filtered_4FGL_J1858.3-2511_daily_bin1690.fits evtable="EVENTS" scfile=/scratch/kocevski/158012/ft2_4FGL_J1858.3-2511_daily_bin1690.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/158012/Model_4FGL_J1858.3-2511_daily_bin1690.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 J1745.8-3028
adding source FGES J1836.5-0651
adding source FGES J1838.9-0704
adding source FHES J1741.6-3917
adding source G24.7+0.6
adding source GAL_V02
adding source HESS J1804-216
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 Kes 73
adding source W 28
adding source W 30
adding source W 41
Working on...
/scratch/kocevski/158012/ft1_filtered_4FGL_J1858.3-2511_daily_bin1690.fits...............!
real 17.94
user 14.89
sys 1.79

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/158012/ft1_filtered_4FGL_J1858.3-2511_daily_bin1690.fits', '/scratch/kocevski/158012/ft2_4FGL_J1858.3-2511_daily_bin1690.fits', expMap='/scratch/kocevski/158012/expmap_677376001_677635201_4FGL_J1858.3-2511_daily_bin1690.fits', expCube='/scratch/kocevski/158012/ltcube_677376001_677635201_4FGL_J1858.3-2511_daily_bin1690.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/158012/Model_4FGL_J1858.3-2511_daily_bin1690.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1858.3-2511'

4FGL J1858.3-2511
   Spectrum: LogParabola
1449         norm:  1.893e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
1450        alpha:  2.256e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
1451         beta:  1.958e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
1452           Eb:  1.039e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/158012/ft1_filtered_4FGL_J1858.3-2511_daily_bin1690.fits
Spacecraft file(s): /scratch/kocevski/158012/ft2_4FGL_J1858.3-2511_daily_bin1690.fits
Exposure map: /scratch/kocevski/158012/expmap_677376001_677635201_4FGL_J1858.3-2511_daily_bin1690.fits
Exposure cube: /scratch/kocevski/158012/ltcube_677376001_677635201_4FGL_J1858.3-2511_daily_bin1690.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/158012/Model_4FGL_J1858.3-2511_daily_bin1690.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 207.150603059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 202.698095926

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5832       1.0000         .10000E-03   10000.    
     2 'norm      '    5.5690       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4414       1.0000         .10000E-03   10000.    
     4 'norm      '    7.8109       1.0000         .10000E-03   10000.    
     5 'norm      '    3.3899       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7123       1.0000         .10000E-03   10000.    
     7 'norm      '    1106.2       1.0000         .10000E-03   10000.    
     8 'norm      '    .12632E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .88670       1.0000         .10000E-03   10000.    
    10 'norm      '    .10843E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4013       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .99283       1.0000         .10000E-03   10000.    
    13 'norm      '    42.539       1.0000         .10000E-03   10000.    
    14 'norm      '    69.132       1.0000         .10000E-03   10000.    
    15 'Prefactor '    49.705       1.0000         .10000E-03   10000.    
    16 'Prefactor '    742.01       1.0000         .10000E-03   10000.    
    17 'Prefactor '    61.164       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    .40579       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1844E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   202.6664     FROM MIGRAD    STATUS=CONVERGED    150 CALLS      431 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5832        1.0022         .0000         .0000    
   2  norm          5.5690        1.0041         .0000         .0000    
   3  Prefactor     .10758        12.777       -.45122E-05    .23268E-03
   4  norm          7.8109        1.0021         .0000         .0000    
   5  norm          .19836        31.989       -.71016E-05    .88448E-03
   6  Prefactor     .73264E-01    55.487       -.74651E-05   -.68680E-03
   7  norm          1105.7        2.8545        .35996E-07   -.17124E-01
   8  norm          .10000E-03    12.052       -.25355E-06** at limit **
   9  Prefactor     .10000E-03    507.37       -.37831E-05** at limit **
  10  norm          .10000E-03    66.732        .22791E-06** at limit **
  11  Prefactor     .10000E-03    196.39       -.25768E-05** at limit **
  12  Prefactor     .10000E-03    121.73        .22117E-07** at limit **
  13  norm          42.672        45.813        .20385E-05   -.99278E-04
  14  norm          46.924        156.22       -.22312E-04   -.33881E-03
  15  Prefactor     48.992        58.281       -.32474E-05   -.39991E-04
  16  Prefactor     741.57        4.4661        .11154E-06   -.21453E-01
  17  Prefactor     185.66        589.44        .21432E-04   -.11946E-03
  18  Normalizat    .10000E-01    1.8190       -.29253E-04** at limit **
  19  Prefactor     .39563        .19320       -.23988E-05   -.11866E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.5832
  norm       = 5.56896
  Prefactor  = 0.107579
  norm       = 7.81092
  norm       = 0.198365
  Prefactor  = 0.0732636
  norm       = 1105.69
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 42.672
  norm       = 46.9243
  Prefactor  = 48.9917
  Prefactor  = 741.567
  Prefactor  = 185.664
  Normalizat = 0.01
  Prefactor  = 0.395629
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   202.6664     FROM HESSE     STATUS=FAILED        11 CALLS      442 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          508.52        500.90         .0000       -1.5157    
   2  norm          5.5690        1.0041         .0000       -1.5236    
   3  Prefactor     .10758        .29446       -.45122E-05   -1.5642    
   4  norm          7.8109        1.0021         .0000       -1.5149    
   5  norm          .19836        .24462       -.71016E-05   -1.5619    
   6  Prefactor     .73264E-01    .16723       -.74651E-05   -1.5762    
   7  norm          1105.7        .99981        .35996E-07   -.89285    
   8  norm          .10000E-03    .20571       -.25355E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .40699       -.37831E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .20571        .22791E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .20988       -.25768E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .43166        .22117E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          42.672        1.0016        .20385E-05   -1.4401    
  14  norm          46.924        .82481       -.22312E-04   -1.4337    
  15  Prefactor     48.992        .99288       -.32474E-05   -1.4307    
  16  Prefactor     741.57        .99973        .11154E-06   -1.0192    
  17  Prefactor     185.66        1.7314        .21432E-04   -1.2974    
  18  Normalizat    .10000E-01    .25763       -.29253E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .39563        .72910       -.23988E-05   -1.1703    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.91115e-11
Minuit parameter uncertainties:
  1  1.00219
  2  1.00409
  3  0.294465
  4  1.00206
  5  0.244621
  6  0.167235
  7  0.999811
  8  3.44692e-07
  9  1.56104e-05
  10  1.00657e-06
  11  1.26041e-06
  12  8.64605e-07
  13  1.00162
  14  0.824815
  15  0.99288
  16  0.999727
  17  1.73138
  18  1.05043e-07
  19  0.747272
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 202.666374356

Extracting fit parameters...

4FGL J1858.3-2511
   Spectrum: LogParabola
1449         norm:  1.106e+03  9.998e-01  1.000e-04  1.000e+04 ( 1.000e-12)
1450        alpha:  2.256e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
1451         beta:  1.958e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
1452           Eb:  1.039e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1805    Prefactor:  3.956e-01  7.473e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1806        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1807        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1788   Normalization:  1.000e-02  1.050e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.79
Ra Dec: 284.575 -25.199
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 1.01e-05 +/- 9.16e-09
Energy Flux (Fixed Index): 4.44e-03 +/- 4.01e-06

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) = 201.223632081
delta logL = 1.44274227502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 201.174368617
delta logL = 1.49200573918

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1494.5       1.0000         .10000E-03   10000.    
     2 'alpha     '    .93463       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .37967       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1844E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   201.1744     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      202 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1496.3        1360.6        .77319E-05    .52197E-05
   2  alpha         .93483        .67579        .50762E-04   -.86646E-05
   3  Normalizat    .10000E-01    1.7747       -.19666E-04** at limit **
   4  Prefactor     .37945        .18889        .18632E-05    .10812E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1496.26
  alpha      = 0.934834
  Normalizat = 0.01
  Prefactor  = 0.37945
 **********
 **   18 **HESSE 
 **********

 FCN=   201.1744     FROM HESSE     STATUS=OK            25 CALLS      227 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1496.3        1360.5        .56096E-04   -.77645    
   2  alpha         .93483        .67233        .43433E-03   -.67650    
   3  Normalizat    .10000E-01    2.0689        .11122E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .37945        .17496        .12673E-03   -1.1787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05247e-10
Minuit parameter uncertainties:
  1  1395.81
  2  0.686431
  3  4.4476e-06
  4  0.175201
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158012': 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) = 201.174367088
delta logL = 1.49200726766

Extracting fit parameters...

4FGL J1858.3-2511
   Spectrum: LogParabola
1449         norm:  1.496e+03  1.396e+03  1.000e-04  1.000e+04 ( 1.000e-12)
1450        alpha:  9.348e-01  6.864e-01  0.000e+00  5.000e+00 ( 1.000e+00)
1451         beta:  1.958e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
1452           Eb:  1.039e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1805    Prefactor:  3.795e-01  1.752e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1806        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1807        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1788   Normalization:  1.000e-02  4.448e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.68
Ra Dec: 284.575 -25.199
Photon Index (Free Index): 0.93 +/- 0.69
Photon Flux (Free Index): 5.88e-06 +/- 5.00e-06
Energy Flux (Free Index): 2.41e-02 +/- 3.50e-02

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/158012/cmap_HighResolution_677376001_677635201_4FGL_J1858.3-2511_daily_bin1690.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.01e-05', energy_flux2='2.41e-02', photon_flux_error='9.16e-09', dlogl='1.49e+00', energy_flux='4.44e-03', photon_flux2='5.88e-06', job_status='DONE', time_completed='2022-06-23 01:19:28.774556', photon_index_error2='0.69', photon_index2='0.93', ts='4.79', fit_tolerance='1e-08', GAL='0.40', photon_index_error='0.00', energy_flux_error2='3.50e-02', EG='0.01', time_epoch_completed='1655972368.77', return_code='101', job_id='158012', GAL2='0.38', EG2='0.01', return_code2='0', energy_flux_error='4.01e-06', photon_flux_error2='5.00e-06', ts2='7.68', photon_index='2.26' WHERE bin_id='1690' AND source_name='4FGL J1858.3-2511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jun 23 01:19:28 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 158012: <4FGL_J1858.3-2511_daily_bin1690> in cluster <slac> Done

Job <4FGL_J1858.3-2511_daily_bin1690> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jun 23 01:10:14 2022
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 01:10:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 01:10:19 2022
Terminated at Thu Jun 23 01:19:29 2022
Results reported at Thu Jun 23 01:19:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1858.3-2511_daily_bin1690 284.575 -25.1991 677376001 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1858.3-2511 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   421.44 sec.
    Max Memory :                                 1264 MB
    Average Memory :                             407.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   550 sec.
    Turnaround time :                            555 sec.

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

