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


Performing analysis on: 4FGL_J1852.4+4856_daily_bin836
RA = 283.116, Dec = 48.935
tmin = 456019201, tmax = 456278401
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='412778', job_status='RUN', time_executed='2021-09-21 17:20:29.106429', time_epoch_executed='1632270029.11' WHERE source_name='4FGL J1852.4+4856' and cadence='daily' and bin_id='836'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412778

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412778/ft1_4FGL_J1852.4+4856_daily_bin836.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412778/ft2_4FGL_J1852.4+4856_daily_bin836.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412778/ft1_4FGL_J1852.4+4856_daily_bin836.fits outfile=/scratch/kocevski/412778/ft1_filteredMKT_4FGL_J1852.4+4856_daily_bin836.fits ra=283.116 dec=48.935 rad=12.0 tmin=456019201.0 tmax=456278401.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 6.93
user 6.68
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412778/ft1_filtered_4FGL_J1852.4+4856_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/412778/ft2_4FGL_J1852.4+4856_daily_bin836.fits sctable="SC_DATA" expcube=/scratch/kocevski/412778/ltcube_456019201_456278401_4FGL_J1852.4+4856_daily_bin836.fits outfile=/scratch/kocevski/412778/expmap_456019201_456278401_4FGL_J1852.4+4856_daily_bin836.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/412778/ltcube_456019201_456278401_4FGL_J1852.4+4856_daily_bin836.fits
.....................!
real 191.13
user 185.81
sys 4.98

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/412778/ft1_filtered_4FGL_J1852.4+4856_daily_bin836.fits scfile=/scratch/kocevski/412778/ft2_4FGL_J1852.4+4856_daily_bin836.fits outfile=/scratch/kocevski/412778/cmap_456019201_456278401_4FGL_J1852.4+4856_daily_bin836.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412778/ft1_filtered_4FGL_J1852.4+4856_daily_bin836.fits scfile=/scratch/kocevski/412778/ft2_4FGL_J1852.4+4856_daily_bin836.fits outfile=/scratch/kocevski/412778/cmap_HighResolution_456019201_456278401_4FGL_J1852.4+4856_daily_bin836.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.534       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10239E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.7233       1.0000         .10000E-03   10000.    
     7 'norm      '    6.6900       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10579E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.9358       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0777       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .73978E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    2.7677       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .50269       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.2027       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .99069       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=   10681.86     FROM MIGRAD    STATUS=CONVERGED    346 CALLS     1506 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.7922         .0000    ** at limit **
   2  Prefactor     20.527        9.0214         .0000       -.13578E-03
   3  Prefactor     .10000E-03    13.027         .0000    ** at limit **
   4  Prefactor     .10000E-03    15.332         .0000    ** at limit **
   5  norm          .10000E-03    12.970         .0000    ** at limit **
   6  Prefactor     9.7294        18.582         .0000        .62033E-03
   7  norm          6.6875        6.1866         .0000        .12028E-02
   8  Prefactor     .10000E-03    61.996         .0000    ** at limit **
   9  norm          4.9306        8.3065         .0000        .17992E-03
  10  norm          1.1144        33.550         .0000        .93679E-02
  11  Prefactor     .62635E-01    .88064         .0000        .10231E-02
  12  norm          2.7670        2.2337         .0000        .16672E-03
  13  Prefactor     .10000E-03    12.038         .0000    ** at limit **
  14  Prefactor     .41940        18.404         .0000        .17588E-03
  15  Normalizat    1.2031        .21359         .0000        .68906E-05
  16  Prefactor     .99072        .85809E-01     .0000       -.38512E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 20.5267
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 9.72944
  norm       = 6.68754
  Prefactor  = 0.0001
  norm       = 4.93057
  norm       = 1.11437
  Prefactor  = 0.0626349
  norm       = 2.76698
  Prefactor  = 0.0001
  Prefactor  = 0.419396
  Normalizat = 1.20308
  Prefactor  = 0.990718
 **********
 **   18 **HESSE 
 **********

 FCN=   10681.86     FROM HESSE     STATUS=OK           213 CALLS     1719 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.8235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.527        9.0383        .88390E-04   -1.4802    
   3  Prefactor     .10000E-03    13.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    13.322        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.7294        18.672        .12851E-03   -1.5084    
   7  norm          6.6875        6.1888        .77569E-03   -1.5191    
   8  Prefactor     .10000E-03    62.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.9306        8.2461        .18103E-03   -1.5264    
  10  norm          1.1144        34.153        .23258E-02   -1.5497    
  11  Prefactor     .62635E-01    8.0847        .18412E-02   -1.5658    
  12  norm          2.7670        2.2340        .13457E-03   -1.5375    
  13  Prefactor     .10000E-03    12.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .41940        23.010        .11895       -1.5578    
  15  Normalizat    1.2031        .24802        .39016E-03   -.86508    
  16  Prefactor     .99072        .10039        .17636E-03   -.93040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24186e-09
Minuit parameter uncertainties:
  1  4.29682e-07
  2  9.0389
  3  0.000394782
  4  4.27256e-05
  5  0.000408239
  6  18.6832
  7  6.18939
  8  0.000236434
  9  8.24795
  10  12.3457
  11  1.42228
  12  2.2341
  13  2.56107e-05
  14  6.21475
  15  0.248265
  16  0.10041
Done.

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

Extracting fit parameters...

4FGL J1852.4+4856
   Spectrum: PowerLaw
370    Prefactor:  6.263e-02  1.422e+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.907e-01  1.004e-01  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.203e+00  2.483e-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.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/412778/likelihoodResults_456019201_456278401_4FGL_J1852.4+4856_daily_bin836.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) = 10681.8568252
delta logL = 0.00244729236147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10681.8564037
delta logL = 0.00286883183981

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90365E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5837       1.0000          .0000       10.000    
     3 'Normalizat'    1.2018       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99093       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=   10681.86     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      245 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93777E-01    1.5012        .43810E-01    .15545E-02
   2  Index         2.5554        1.2387        .50000        .20240E-04
   3  Normalizat    1.2017        .86923E-02    .88147E-01    .21202E-03
   4  Prefactor     .99089        .36232E-02    .46154E-01    .48826E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0937774
  Index      = 2.55537
  Normalizat = 1.20174
  Prefactor  = 0.990886
 **********
 **   18 **HESSE 
 **********

 FCN=   10681.86     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93777E-01    8.3297        .15964E-02   -1.5647    
   2  Index         2.5554        6.2646        .18758E-01   -.51086    
   3  Normalizat    1.2017        .23528        .39036E-03   -.86549    
   4  Prefactor     .99089        .97510E-01    .17635E-03   -.93034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39306e-10
Minuit parameter uncertainties:
  1  1.76695
  2  5.06961
  3  0.23549
  4  0.0975268
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412778': 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) = 10681.8563665
delta logL = 0.00290593527825

Extracting fit parameters...

4FGL J1852.4+4856
   Spectrum: PowerLaw
370    Prefactor:  9.378e-02  1.767e+00  1.000e-04  1.000e+04 ( 1.000e-12)
371        Index:  2.555e+00  5.070e+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.909e-01  9.753e-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.202e+00  2.355e-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/412778/cmap_HighResolution_456019201_456278401_4FGL_J1852.4+4856_daily_bin836.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.62e-03', job_status='DONE', photon_flux_upper_limit='7.33e-08', time_completed='2021-09-21 17:35:01.678514', job_id='412778', GAL2='0.99', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1632270901.68', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.91e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.29' WHERE bin_id='836' AND source_name='4FGL J1852.4+4856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 17:35:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 412778: <4FGL_J1852.4+4856_daily_bin836> in cluster <slac> Done

Job <4FGL_J1852.4+4856_daily_bin836> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 21 17:20:13 2021
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 17:20:14 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:20:14 2021
Terminated at Tue Sep 21 17:35:02 2021
Results reported at Tue Sep 21 17:35:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1852.4+4856_daily_bin836 283.116 48.935 456019201 456278401 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 :                                   866.34 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             374.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            889 sec.

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

