/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 97 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 = 7443
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1852.4+4856_daily_bin49
RA = 283.116, Dec = 48.935
tmin = 252028801, tmax = 252288001
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='405446', job_status='RUN', time_executed='2021-09-21 16:57:11.750525', time_epoch_executed='1632268631.75' WHERE source_name='4FGL J1852.4+4856' and cadence='daily' and bin_id='49'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405446

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405446/ft1_4FGL_J1852.4+4856_daily_bin49.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405446/ft2_4FGL_J1852.4+4856_daily_bin49.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405446/ft1_4FGL_J1852.4+4856_daily_bin49.fits outfile=/scratch/kocevski/405446/ft1_filteredMKT_4FGL_J1852.4+4856_daily_bin49.fits ra=283.116 dec=48.935 rad=12.0 tmin=252028801.0 tmax=252288001.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 1.42
user 1.25
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/405446/ft2_4FGL_J1852.4+4856_daily_bin49.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/405446/ft1_filteredMKT_4FGL_J1852.4+4856_daily_bin49.fits evtable="EVENTS" outfile="/scratch/kocevski/405446/ft1_filtered_4FGL_J1852.4+4856_daily_bin49.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405446/ft1_filtered_4FGL_J1852.4+4856_daily_bin49.fits" evtable="EVENTS" scfile=/scratch/kocevski/405446/ft2_4FGL_J1852.4+4856_daily_bin49.fits sctable="SC_DATA" outfile=/scratch/kocevski/405446/ltcube_252028801_252288001_4FGL_J1852.4+4856_daily_bin49.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/405446/ft2_4FGL_J1852.4+4856_daily_bin49.fits
.....................!
real 12.24
user 11.88
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405446/ft1_filtered_4FGL_J1852.4+4856_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/405446/ft2_4FGL_J1852.4+4856_daily_bin49.fits sctable="SC_DATA" expcube=/scratch/kocevski/405446/ltcube_252028801_252288001_4FGL_J1852.4+4856_daily_bin49.fits outfile=/scratch/kocevski/405446/expmap_252028801_252288001_4FGL_J1852.4+4856_daily_bin49.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/405446/ltcube_252028801_252288001_4FGL_J1852.4+4856_daily_bin49.fits
.....................!
real 189.67
user 184.20
sys 5.12

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/405446/ft1_filtered_4FGL_J1852.4+4856_daily_bin49.fits scfile=/scratch/kocevski/405446/ft2_4FGL_J1852.4+4856_daily_bin49.fits outfile=/scratch/kocevski/405446/cmap_252028801_252288001_4FGL_J1852.4+4856_daily_bin49.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405446/ft1_filtered_4FGL_J1852.4+4856_daily_bin49.fits scfile=/scratch/kocevski/405446/ft2_4FGL_J1852.4+4856_daily_bin49.fits outfile=/scratch/kocevski/405446/cmap_HighResolution_252028801_252288001_4FGL_J1852.4+4856_daily_bin49.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/405446/ft1_filtered_4FGL_J1852.4+4856_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/405446/ft2_4FGL_J1852.4+4856_daily_bin49.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/405446/Model_4FGL_J1852.4+4856_daily_bin49.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/405446/ft1_filtered_4FGL_J1852.4+4856_daily_bin49.fits.....................!
real 101.56
user 100.06
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.2845       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.002       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14408E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .14900E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    20.952       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7531       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8730       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.878       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.2293       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .92335       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=   9860.966     FROM MIGRAD    STATUS=CONVERGED    302 CALLS     1222 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2845        6.9443        .37153E-02    .11966E-02
   2  Prefactor     10.999        8.3958        .30196E-02    .40021E-03
   3  Prefactor     .10000E-03    10.556        .90712E-02** at limit **
   4  Prefactor     .10000E-03    44.725        .90712E-02** at limit **
   5  norm          .10000E-03    8.7318        .90712E-02** at limit **
   6  Prefactor     .10000E-03    21.778        .90712E-02** at limit **
   7  norm          20.950        10.490        .21876E-02    .67117E-03
   8  Prefactor     .10000E-03    7.7478        .90712E-02** at limit **
   9  norm          .10000E-03    3.5534        .90712E-02** at limit **
  10  norm          .10000E-03    4.9303        .90712E-02** at limit **
  11  Prefactor     1.7540        2.7433        .79153E-02    .12900E-02
  12  norm          1.8732        1.7872        .76074E-02    .16251E-03
  13  Prefactor     .10000E-03    9.2616        .90712E-02** at limit **
  14  Prefactor     10.880        26.148        .30369E-02   -.73757E-03
  15  Normalizat    1.2292        .20491        .83028E-01    .16646E-04
  16  Prefactor     .92334        .82644E-01    .45302E-01   -.40559E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.28451
  Prefactor  = 10.9988
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 20.95
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.754
  norm       = 1.8732
  Prefactor  = 0.000100001
  Prefactor  = 10.8799
  Normalizat = 1.22922
  Prefactor  = 0.92334
 **********
 **   18 **HESSE 
 **********

 FCN=   9860.966     FROM HESSE     STATUS=OK           199 CALLS     1421 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2845        6.9432        .74306E-03   -1.5168    
   2  Prefactor     10.999        8.4163        .12079E-03   -1.5045    
   3  Prefactor     .10000E-03    10.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    45.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    8.9993        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          20.950        10.526        .43752E-03   -1.4792    
   8  Prefactor     .10000E-03    7.7490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.5676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.9382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7540        2.7312        .19246E-03   -1.5443    
  12  norm          1.8732        1.7807        .12616E-03   -1.5434    
  13  Prefactor     .10000E-03    9.2641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.880        26.183        .12148E-03   -1.5048    
  15  Normalizat    1.2292        .23435        .36759E-03   -.85705    
  16  Prefactor     .92334        .94931E-01    .17513E-03   -.95330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89241e-09
Minuit parameter uncertainties:
  1  6.94393
  2  8.41716
  3  3.7567e-05
  4  1.44875e-05
  5  0.000200226
  6  1.02945e-05
  7  10.5267
  8  1.26534e-05
  9  4.437e-07
  10  1.74862e-06
  11  2.73135
  12  1.7807
  13  0.000225899
  14  26.2105
  15  0.234554
  16  0.0949484
Done.

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

Extracting fit parameters...

4FGL J1852.4+4856
   Spectrum: PowerLaw
370    Prefactor:  1.754e+00  2.731e+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:  9.233e-01  9.495e-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:  1.229e+00  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.53
Ra Dec: 283.116 48.935
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/405446/likelihoodResults_252028801_252288001_4FGL_J1852.4+4856_daily_bin49.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) = 9857.75019295
delta logL = 3.21559598753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9857.35901229
delta logL = 3.60677664735

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10169E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    6.9212       1.0000          .0000       10.000    
     3 'Normalizat'    1.0551       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96839       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=   9857.359     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      312 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99216E-03    .56442E-02    .37061E-03** at limit **
   2  Index         6.9321        1.7994        .92688E-01    .29658E-03
   3  Normalizat    1.0554        .65370E-01    .88600E-01    .17361E-03
   4  Prefactor     .96833        .27538E-01    .45871E-01    .29265E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000992163
  Index      = 6.93212
  Normalizat = 1.05542
  Prefactor  = 0.968325
 **********
 **   18 **HESSE 
 **********

 FCN=   9857.359     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      345 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99216E-03    .10679E-01    .14305E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.9321        2.6615        .38157E-02    .39675    
   3  Normalizat    1.0554        .19474        .39238E-03   -.91196    
   4  Prefactor     .96833        .80297E-01    .17137E-03   -.93793    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.48955e-11
Minuit parameter uncertainties:
  1  0.00617337
  2  2.83709
  3  0.194873
  4  0.0803066
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405446': 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) = 9857.35900371
delta logL = 3.60678522331

Extracting fit parameters...

4FGL J1852.4+4856
   Spectrum: PowerLaw
370    Prefactor:  9.922e-04  6.173e-03  1.000e-04  1.000e+04 ( 1.000e-12)
371        Index:  6.932e+00  2.837e+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:  9.683e-01  8.031e-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:  1.055e+00  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.53
Ra Dec: 283.116 48.935
Photon Index (Free Index): 6.93 +/- 2.84
Photon Flux (Free Index): 1.62e-07 +/- 7.07e-08
Energy Flux (Free Index): 1.94e-05 +/- 9.14e-06

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/405446/cmap_HighResolution_252028801_252288001_4FGL_J1852.4+4856_daily_bin49.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.18e-03', comment='SUCCESS', energy_flux2='1.94e-05', dlogl='3.61e+00', photon_flux2='1.62e-07', job_status='DONE', time_completed='2021-09-21 17:09:31.232776', photon_index_error2='2.84', photon_index2='6.93', ts='0.53', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='9.14e-06', EG='1.23', time_epoch_completed='1632269371.23', return_code='0', job_id='405446', GAL2='0.97', EG2='1.06', return_code2='102', photon_flux_error2='7.07e-08', ts2='8.53', photon_index='2.29' WHERE bin_id='49' AND source_name='4FGL J1852.4+4856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 17:09:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 405446: <4FGL_J1852.4+4856_daily_bin49> in cluster <slac> Done

Job <4FGL_J1852.4+4856_daily_bin49> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 21 16:55:24 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 16:55:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 21 16:55:26 2021
Terminated at Tue Sep 21 17:09:32 2021
Results reported at Tue Sep 21 17:09:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1852.4+4856_daily_bin49 283.116 48.935 252028801 252288001 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 :                                   738.37 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             313.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            848 sec.

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

