/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 125 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 = 7444
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1852.4+4856_daily_bin593
RA = 283.116, Dec = 48.935
tmin = 393033601, tmax = 393292801
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='410920', job_status='RUN', time_executed='2021-09-21 17:17:31.294791', time_epoch_executed='1632269851.29' WHERE source_name='4FGL J1852.4+4856' and cadence='daily' and bin_id='593'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410920

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410920/ft1_4FGL_J1852.4+4856_daily_bin593.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410920/ft2_4FGL_J1852.4+4856_daily_bin593.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410920/ft1_4FGL_J1852.4+4856_daily_bin593.fits outfile=/scratch/kocevski/410920/ft1_filteredMKT_4FGL_J1852.4+4856_daily_bin593.fits ra=283.116 dec=48.935 rad=12.0 tmin=393033601.0 tmax=393292801.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.47
user 3.22
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410920/ft1_filtered_4FGL_J1852.4+4856_daily_bin593.fits" evtable="EVENTS" scfile=/scratch/kocevski/410920/ft2_4FGL_J1852.4+4856_daily_bin593.fits sctable="SC_DATA" outfile=/scratch/kocevski/410920/ltcube_393033601_393292801_4FGL_J1852.4+4856_daily_bin593.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/410920/ft2_4FGL_J1852.4+4856_daily_bin593.fits
.....................!
real 12.22
user 11.90
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410920/ft1_filtered_4FGL_J1852.4+4856_daily_bin593.fits evtable="EVENTS" scfile=/scratch/kocevski/410920/ft2_4FGL_J1852.4+4856_daily_bin593.fits sctable="SC_DATA" expcube=/scratch/kocevski/410920/ltcube_393033601_393292801_4FGL_J1852.4+4856_daily_bin593.fits outfile=/scratch/kocevski/410920/expmap_393033601_393292801_4FGL_J1852.4+4856_daily_bin593.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/410920/ltcube_393033601_393292801_4FGL_J1852.4+4856_daily_bin593.fits
.....................!
real 191.57
user 186.12
sys 4.94

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/410920/ft1_filtered_4FGL_J1852.4+4856_daily_bin593.fits scfile=/scratch/kocevski/410920/ft2_4FGL_J1852.4+4856_daily_bin593.fits outfile=/scratch/kocevski/410920/cmap_393033601_393292801_4FGL_J1852.4+4856_daily_bin593.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410920/ft1_filtered_4FGL_J1852.4+4856_daily_bin593.fits scfile=/scratch/kocevski/410920/ft2_4FGL_J1852.4+4856_daily_bin593.fits outfile=/scratch/kocevski/410920/cmap_HighResolution_393033601_393292801_4FGL_J1852.4+4856_daily_bin593.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/410920/ft1_filtered_4FGL_J1852.4+4856_daily_bin593.fits evtable="EVENTS" scfile=/scratch/kocevski/410920/ft2_4FGL_J1852.4+4856_daily_bin593.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/410920/Model_4FGL_J1852.4+4856_daily_bin593.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/410920/ft1_filtered_4FGL_J1852.4+4856_daily_bin593.fits.....................!
real 122.85
user 121.31
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/410920/ft1_filtered_4FGL_J1852.4+4856_daily_bin593.fits', '/scratch/kocevski/410920/ft2_4FGL_J1852.4+4856_daily_bin593.fits', expMap='/scratch/kocevski/410920/expmap_393033601_393292801_4FGL_J1852.4+4856_daily_bin593.fits', expCube='/scratch/kocevski/410920/ltcube_393033601_393292801_4FGL_J1852.4+4856_daily_bin593.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/410920/Model_4FGL_J1852.4+4856_daily_bin593.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/410920/ft1_filtered_4FGL_J1852.4+4856_daily_bin593.fits
Spacecraft file(s): /scratch/kocevski/410920/ft2_4FGL_J1852.4+4856_daily_bin593.fits
Exposure map: /scratch/kocevski/410920/expmap_393033601_393292801_4FGL_J1852.4+4856_daily_bin593.fits
Exposure cube: /scratch/kocevski/410920/ltcube_393033601_393292801_4FGL_J1852.4+4856_daily_bin593.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/410920/Model_4FGL_J1852.4+4856_daily_bin593.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) = 11515.0314848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.613       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5622       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.379       1.0000         .10000E-03   10000.    
     5 'norm      '    1.0010       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.062       1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9032       1.0000         .10000E-03   10000.    
     9 'norm      '    8.8177       1.0000         .10000E-03   10000.    
    10 'norm      '    23.803       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6958       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8752       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    .99847       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0283       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11514.89     FROM MIGRAD    STATUS=CONVERGED    294 CALLS     1267 TOTAL
                     EDM=   .38E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.614        10.734         .0000       -.85048E-03
   2  Prefactor     3.5623        7.0959         .0000       -.85475E-03
   3  Prefactor     .10065E-03    20.427         .0000    ** at limit **
   4  Prefactor     21.380        19.909         .0000       -.56302E-03
   5  norm          .99896        8.8336         .0000        .45953E-01
   6  Prefactor     19.063        13.577         .0000       -.50132E-03
   7  norm          .10000E-03    3.2571         .0000    ** at limit **
   8  Prefactor     2.9032        29.737         .0000        .59491E-04
   9  norm          8.8189        10.509         .0000        .20416E-02
  10  norm          23.802        15.392         .0000        .70579E-03
  11  Prefactor     3.6965        3.3645         .0000        .73758E-03
  12  norm          1.8752        1.5049         .0000       -.13908E-03
  13  Prefactor     .10010E-03    25.680         .0000    ** at limit **
  14  Prefactor     .10020E-03    18.576         .0000    ** at limit **
  15  Normalizat    .99829        .21614         .0000       -.17108E-03
  16  Prefactor     1.0283        .83025E-01     .0000       -.41536E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 21.6141
  Prefactor  = 3.56233
  Prefactor  = 0.000100655
  Prefactor  = 21.3798
  norm       = 0.998962
  Prefactor  = 19.0633
  norm       = 0.0001
  Prefactor  = 2.90317
  norm       = 8.81893
  norm       = 23.8025
  Prefactor  = 3.69654
  norm       = 1.8752
  Prefactor  = 0.000100097
  Prefactor  = 0.000100203
  Normalizat = 0.998288
  Prefactor  = 1.02833
 **********
 **   18 **HESSE 
 **********

 FCN=   11514.89     FROM HESSE     STATUS=OK           199 CALLS     1466 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.614        10.717        .86157E-04   -1.4778    
   2  Prefactor     3.5623        7.0699        .21414E-03   -1.5330    
   3  Prefactor     .10065E-03    20.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.380        19.905        .86626E-04   -1.4783    
   5  norm          .99896        9.0140        .27701E-02   -1.5508    
   6  Prefactor     19.063        13.609        .91736E-04   -1.4834    
   7  norm          .10000E-03    3.2746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9032        29.723        .23847E-03   -1.5367    
   9  norm          8.8189        10.514        .67491E-03   -1.5114    
  10  norm          23.802        15.368        .82102E-04   -1.4732    
  11  Prefactor     3.6965        3.3589        .17017E-03   -1.5323    
  12  norm          1.8752        1.4980        .11484E-03   -1.5434    
  13  Prefactor     .10010E-03    25.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10020E-03    18.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .99829        .24494        .42770E-03   -.93088    
  16  Prefactor     1.0283        .94648E-01    .17296E-03   -.91791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00339e-08
Minuit parameter uncertainties:
  1  10.718
  2  7.07153
  3  0.00732066
  4  19.9116
  5  6.00246
  6  13.6108
  7  1.85919e-05
  8  18.5901
  9  10.5167
  10  15.3702
  11  3.35908
  12  1.49806
  13  0.00315261
  14  0.00390135
  15  0.24522
  16  0.0946632
Done.

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

Extracting fit parameters...

4FGL J1852.4+4856
   Spectrum: PowerLaw
370    Prefactor:  3.697e+00  3.359e+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.028e+00  9.466e-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:  9.983e-01  2.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.59
Ra Dec: 283.116 48.935
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 5.78e-08 +/- 5.24e-08
Energy Flux (Fixed Index): 2.23e-05 +/- 2.03e-05

TS (Fixed Index): 1.59
Ra Dec: 283.116 48.935
Photon Flux Upper Limit: 1.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/410920/likelihoodResults_393033601_393292801_4FGL_J1852.4+4856_daily_bin593.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): 0
logL (Free Index) = 11513.0674104
delta logL = 1.82508594067

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11513.0183979
delta logL = 1.87409845492

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1263       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4671       1.0000          .0000       10.000    
     3 'Normalizat'    .89123       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0538       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=   11513.02     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      228 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1260        5.9064        .11030E-01    .13812E-02
   2  Index         3.4672        1.8612        .11979        .27644E-03
   3  Normalizat    .89121        .58523E-01    .10150        .47215E-04
   4  Prefactor     1.0538        .24029E-01    .39694E-01   -.76583E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.12599
  Index      = 3.46721
  Normalizat = 0.89121
  Prefactor  = 1.05378
 **********
 **   18 **HESSE 
 **********

 FCN=   11513.02     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1260        6.3749        .53806E-04   -1.5496    
   2  Index         3.4672        2.3201        .44461E-02   -.31157    
   3  Normalizat    .89121        .23663        .44983E-03   -.96770    
   4  Prefactor     1.0538        .95704E-01    .17101E-03   -.90958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14589e-07
Minuit parameter uncertainties:
  1  5.359
  2  2.42348
  3  0.236911
  4  0.0957198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410920': 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) = 11513.0183979
delta logL = 1.8740984745

Extracting fit parameters...

4FGL J1852.4+4856
   Spectrum: PowerLaw
370    Prefactor:  1.126e+00  5.359e+00  1.000e-04  1.000e+04 ( 1.000e-12)
371        Index:  3.467e+00  2.423e+00  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.054e+00  9.572e-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:  8.912e-01  2.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.75
Ra Dec: 283.116 48.935
Photon Index (Free Index): 3.47 +/- 2.42
Photon Flux (Free Index): 1.42e-07 +/- 7.28e-08
Energy Flux (Free Index): 2.38e-05 +/- 2.18e-05

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/410920/cmap_HighResolution_393033601_393292801_4FGL_J1852.4+4856_daily_bin593.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', photon_flux='5.78e-08', energy_flux2='2.38e-05', photon_flux_error='5.24e-08', dlogl='1.87e+00', energy_flux='2.23e-05', photon_flux2='1.42e-07', job_status='DONE', time_completed='2021-09-21 17:31:16.637340', photon_index_error2='2.42', photon_index2='3.47', ts='1.59', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.55e-07', energy_flux_error2='2.18e-05', EG='1.00', time_epoch_completed='1632270676.64', return_code='0', job_id='410920', GAL2='1.05', EG2='0.89', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='7.28e-08', ts2='5.75', photon_index='2.29' WHERE bin_id='593' AND source_name='4FGL J1852.4+4856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 17:31:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 410920: <4FGL_J1852.4+4856_daily_bin593> in cluster <slac> Done

Job <4FGL_J1852.4+4856_daily_bin593> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 21 17:15:16 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 17:15:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 21 17:15:18 2021
Terminated at Tue Sep 21 17:31:17 2021
Results reported at Tue Sep 21 17:31:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1852.4+4856_daily_bin593 283.116 48.935 393033601 393292801 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 :                                   824.31 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             355.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            961 sec.

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

