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


Performing analysis on: 4FGL_J1852.4+4856_daily_bin1699
RA = 283.116, Dec = 48.935
tmin = 679708801, tmax = 679968001
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='1001', job_status='RUN', time_executed='2022-07-20 00:36:40.104868', time_epoch_executed='1658302600.1' WHERE source_name='4FGL J1852.4+4856' and cadence='daily' and bin_id='1699'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1001

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1001/ft1_4FGL_J1852.4+4856_daily_bin1699.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1001/ft2_4FGL_J1852.4+4856_daily_bin1699.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1001/ft1_4FGL_J1852.4+4856_daily_bin1699.fits outfile=/scratch/kocevski/1001/ft1_filteredMKT_4FGL_J1852.4+4856_daily_bin1699.fits ra=283.116 dec=48.935 rad=12.0 tmin=679708801.0 tmax=679968001.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 3.82
user 3.61
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/1001/ft2_4FGL_J1852.4+4856_daily_bin1699.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/1001/ft2_4FGL_J1852.4+4856_daily_bin1699.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/1001/ft1_filteredMKT_4FGL_J1852.4+4856_daily_bin1699.fits evtable="EVENTS" outfile="/scratch/kocevski/1001/ft1_filtered_4FGL_J1852.4+4856_daily_bin1699.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.34
sys 0.14

Number of photons that the gtmktime cut: 1184

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1001/ft1_filtered_4FGL_J1852.4+4856_daily_bin1699.fits" evtable="EVENTS" scfile=/scratch/kocevski/1001/ft2_4FGL_J1852.4+4856_daily_bin1699.fits sctable="SC_DATA" outfile=/scratch/kocevski/1001/ltcube_679708801_679968001_4FGL_J1852.4+4856_daily_bin1699.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/1001/ft2_4FGL_J1852.4+4856_daily_bin1699.fits
.....................!
real 11.95
user 11.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1001/ft1_filtered_4FGL_J1852.4+4856_daily_bin1699.fits evtable="EVENTS" scfile=/scratch/kocevski/1001/ft2_4FGL_J1852.4+4856_daily_bin1699.fits sctable="SC_DATA" expcube=/scratch/kocevski/1001/ltcube_679708801_679968001_4FGL_J1852.4+4856_daily_bin1699.fits outfile=/scratch/kocevski/1001/expmap_679708801_679968001_4FGL_J1852.4+4856_daily_bin1699.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/1001/ltcube_679708801_679968001_4FGL_J1852.4+4856_daily_bin1699.fits
.....................!
real 190.90
user 184.96
sys 5.57

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 gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Added 214 point sources and 3 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 J1852.4+4856 @ 283.116 48.935

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/1001/ft1_filtered_4FGL_J1852.4+4856_daily_bin1699.fits scfile=/scratch/kocevski/1001/ft2_4FGL_J1852.4+4856_daily_bin1699.fits outfile=/scratch/kocevski/1001/cmap_679708801_679968001_4FGL_J1852.4+4856_daily_bin1699.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=283.116 yref=48.935 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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1001/ft1_filtered_4FGL_J1852.4+4856_daily_bin1699.fits scfile=/scratch/kocevski/1001/ft2_4FGL_J1852.4+4856_daily_bin1699.fits outfile=/scratch/kocevski/1001/cmap_HighResolution_679708801_679968001_4FGL_J1852.4+4856_daily_bin1699.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=283.116 yref=48.935 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/1001/ft1_filtered_4FGL_J1852.4+4856_daily_bin1699.fits evtable="EVENTS" scfile=/scratch/kocevski/1001/ft2_4FGL_J1852.4+4856_daily_bin1699.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/1001/Model_4FGL_J1852.4+4856_daily_bin1699.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 Cygnus Cocoon
adding source EG_v02
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/1001/ft1_filtered_4FGL_J1852.4+4856_daily_bin1699.fits.....................!
real 126.91
user 125.43
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/1001/ft1_filtered_4FGL_J1852.4+4856_daily_bin1699.fits', '/scratch/kocevski/1001/ft2_4FGL_J1852.4+4856_daily_bin1699.fits', expMap='/scratch/kocevski/1001/expmap_679708801_679968001_4FGL_J1852.4+4856_daily_bin1699.fits', expCube='/scratch/kocevski/1001/ltcube_679708801_679968001_4FGL_J1852.4+4856_daily_bin1699.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/1001/Model_4FGL_J1852.4+4856_daily_bin1699.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1852.4+4856'

4FGL J1852.4+4856
   Spectrum: PowerLaw
370    Prefactor:  1.603e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
371        Index:  2.287e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
372        Scale:  1.016e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/1001/ft1_filtered_4FGL_J1852.4+4856_daily_bin1699.fits
Spacecraft file(s): /scratch/kocevski/1001/ft2_4FGL_J1852.4+4856_daily_bin1699.fits
Exposure map: /scratch/kocevski/1001/expmap_679708801_679968001_4FGL_J1852.4+4856_daily_bin1699.fits
Exposure cube: /scratch/kocevski/1001/ltcube_679708801_679968001_4FGL_J1852.4+4856_daily_bin1699.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/1001/Model_4FGL_J1852.4+4856_daily_bin1699.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) = 11847.3457176

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13275E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12673E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.372       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11588E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10894E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .42854E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    27.886       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.709       1.0000         .10000E-03   10000.    
     9 'norm      '    7.2081       1.0000         .10000E-03   10000.    
    10 'norm      '    .21320E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .50906E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    3.1878       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8410       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.719       1.0000         .10000E-03   10000.    
    15 'Normalizat'    .77270       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0786       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11847.35     FROM MIGRAD    STATUS=CONVERGED    318 CALLS     1469 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.5034       -.26365E-06** at limit **
   2  Prefactor     .10000E-03    3.0112       -.23018E-07** at limit **
   3  Prefactor     15.274        32.817       -.43947E-06   -.53216E-04
   4  Prefactor     .10000E-03    7.5504       -.30072E-07** at limit **
   5  norm          .10000E-03    14.847        .37922E-06** at limit **
   6  Prefactor     .10000E-03    9.9256       -.13923E-06** at limit **
   7  norm          27.881        10.010       -.60432E-07   -.18694E-03
   8  Prefactor     17.725        17.661       -.10100E-06   -.44582E-04
   9  norm          7.2087        6.9536       -.28840E-07    .80225E-04
  10  norm          .10000E-03    4.9808        .65533E-07** at limit **
  11  Prefactor     .44988E-01    1.0333       -.48799E-06    .12982E-02
  12  norm          3.1856        1.7312       -.67613E-06   -.84183E-03
  13  Prefactor     4.5812        44.700        .72212E-06    .91018E-05
  14  Prefactor     15.736        23.389       -.14456E-07   -.51521E-04
  15  Normalizat    .77280        .18824        .72859E-06    .79119E-04
  16  Prefactor     1.0786        .79609E-01   -.29170E-06    .15783E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2739
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 27.8808
  Prefactor  = 17.725
  norm       = 7.20866
  norm       = 0.0001
  Prefactor  = 0.0449877
  norm       = 3.18564
  Prefactor  = 4.58123
  Prefactor  = 15.7357
  Normalizat = 0.772805
  Prefactor  = 1.07865
 **********
 **   18 **HESSE 
 **********

 FCN=   11847.35     FROM HESSE     STATUS=OK           207 CALLS     1676 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.5231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.0370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.274        32.865        .10215E-03   -1.4926    
   4  Prefactor     .10000E-03    7.5547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    15.480        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.9888        .21232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          27.881        10.019        .75865E-04   -1.4651    
   8  Prefactor     17.725        17.662        .95176E-04   -1.4866    
   9  norm          7.2087        6.9496        .14940E-03   -1.5171    
  10  norm          .10000E-03    5.0007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .44988E-01    16.453        .18548E-02   -1.5666    
  12  norm          3.1856        1.7388        .51548E-03   -1.5351    
  13  Prefactor     4.5812        44.777        .18283E-03   -1.5280    
  14  Prefactor     15.736        23.466        .10102E-03   -1.4914    
  15  Normalizat    .77280        .20521        .43948E-03   -1.0109    
  16  Prefactor     1.0786        .87838E-01    .16374E-03   -.90152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26944e-08
Minuit parameter uncertainties:
  1  5.90358e-06
  2  1.08096e-06
  3  32.9037
  4  3.04276e-06
  5  1.26814e-05
  6  2.42816e-06
  7  10.02
  8  17.6671
  9  6.95034
  10  4.64602e-06
  11  1.71924
  12  1.7388
  13  28.6725
  14  23.4801
  15  0.205414
  16  0.0878496
Done.

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

Extracting fit parameters...

4FGL J1852.4+4856
   Spectrum: PowerLaw
370    Prefactor:  4.499e-02  1.719e+00  1.000e-04  1.000e+04 ( 1.000e-12)
371        Index:  2.287e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
372        Scale:  1.016e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
737    Prefactor:  1.079e+00  8.785e-02  0.000e+00  1.000e+01 ( 1.000e+00)
738        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
739        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
736   Normalization:  7.728e-01  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 283.116 48.935
Photon Flux Upper Limit: 7.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/1001/likelihoodResults_679708801_679968001_4FGL_J1852.4+4856_daily_bin1699.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) = 11847.3216738
delta logL = 0.0238917398947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11847.2927512
delta logL = 0.0528144035343

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22981       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0952       1.0000          .0000       10.000    
     3 'Normalizat'    .75761       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0810       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11847.29     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      263 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22953        1.5096        .23693E-01    .31638E-02
   2  Index         3.0959        .40523        .50000        .56425E-05
   3  Normalizat    .75755        .10583E-01    .10009        .49662E-04
   4  Prefactor     1.0811        .46099E-02    .38357E-01   -.20799E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.229533
  Index      = 3.09588
  Normalizat = 0.757548
  Prefactor  = 1.08106
 **********
 **   18 **HESSE 
 **********

 FCN=   11847.29     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      298 TOTAL
                     EDM=   .65E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22953        109.92        .12159E-02   -1.5612    
   2  Index         3.0959        8.3604        .43424E-02   -.39069    
   3  Normalizat    .75755        .20435        .44364E-03   -1.0166    
   4  Prefactor     1.0811        .86493E-01    .16359E-03   -.90074    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.49962e-06
Minuit parameter uncertainties:
  1  10.0625
  2  21.2358
  3  0.204554
  4  0.0865046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1001': 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): 102
logL (Free Index) = 11847.292751
delta logL = 0.0528145927183

Extracting fit parameters...

4FGL J1852.4+4856
   Spectrum: PowerLaw
370    Prefactor:  2.295e-01  1.006e+01  1.000e-04  1.000e+04 ( 1.000e-12)
371        Index:  3.096e+00  2.124e+01  0.000e+00  1.000e+01 (-1.000e+00)
372        Scale:  1.016e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
737    Prefactor:  1.081e+00  8.650e-02  0.000e+00  1.000e+01 ( 1.000e+00)
738        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
739        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
736   Normalization:  7.575e-01  2.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 283.116 48.935

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/1001/cmap_HighResolution_679708801_679968001_4FGL_J1852.4+4856_daily_bin1699.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.73e-03', job_status='DONE', photon_flux_upper_limit='7.48e-08', time_completed='2022-07-20 00:51:34.822617', job_id='1001', GAL2='1.08', fit_tolerance='1e-08', EG2='0.76', EG='0.77', time_epoch_completed='1658303494.82', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='5.28e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.29' WHERE bin_id='1699' AND source_name='4FGL J1852.4+4856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul 20 00:51:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 1001: <4FGL_J1852.4+4856_daily_bin1699> in cluster <slac> Done

Job <4FGL_J1852.4+4856_daily_bin1699> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Jul 20 00:35:14 2022
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 20 00:35:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul 20 00:35:15 2022
Terminated at Wed Jul 20 00:51:35 2022
Results reported at Wed Jul 20 00:51:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1852.4+4856_daily_bin1699 283.116 48.935 679708801 679968001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1852.4+4856 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   896.21 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             372.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            981 sec.

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

