/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 4 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 = 7473
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0856.6-1105_daily_bin377
RA = 134.17, Dec = -11.0993
tmin = 337046401, tmax = 337305601
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='869173', job_status='RUN', time_executed='2021-08-30 17:16:10.573525', time_epoch_executed='1630368970.57' WHERE source_name='4FGL J0856.6-1105' and cadence='daily' and bin_id='377'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/869173

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/869173/ft1_4FGL_J0856.6-1105_daily_bin377.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/869173/ft2_4FGL_J0856.6-1105_daily_bin377.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/869173/ft1_4FGL_J0856.6-1105_daily_bin377.fits outfile=/scratch/kocevski/869173/ft1_filteredMKT_4FGL_J0856.6-1105_daily_bin377.fits ra=134.17 dec=-11.0993 rad=12.0 tmin=337046401.0 tmax=337305601.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 12.05
user 10.71
sys 0.66

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/869173/ft2_4FGL_J0856.6-1105_daily_bin377.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/869173/ft2_4FGL_J0856.6-1105_daily_bin377.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/869173/ft1_filteredMKT_4FGL_J0856.6-1105_daily_bin377.fits evtable="EVENTS" outfile="/scratch/kocevski/869173/ft1_filtered_4FGL_J0856.6-1105_daily_bin377.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.83
user 0.32
sys 0.48

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/869173/ft1_filtered_4FGL_J0856.6-1105_daily_bin377.fits" evtable="EVENTS" scfile=/scratch/kocevski/869173/ft2_4FGL_J0856.6-1105_daily_bin377.fits sctable="SC_DATA" outfile=/scratch/kocevski/869173/ltcube_337046401_337305601_4FGL_J0856.6-1105_daily_bin377.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/869173/ft2_4FGL_J0856.6-1105_daily_bin377.fits
.....................!
real 11.65
user 10.80
sys 0.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/869173/ft1_filtered_4FGL_J0856.6-1105_daily_bin377.fits evtable="EVENTS" scfile=/scratch/kocevski/869173/ft2_4FGL_J0856.6-1105_daily_bin377.fits sctable="SC_DATA" expcube=/scratch/kocevski/869173/ltcube_337046401_337305601_4FGL_J0856.6-1105_daily_bin377.fits outfile=/scratch/kocevski/869173/expmap_337046401_337305601_4FGL_J0856.6-1105_daily_bin377.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/869173/ltcube_337046401_337305601_4FGL_J0856.6-1105_daily_bin377.fits
.....................!
real 191.12
user 185.00
sys 5.43

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
Added 164 point sources and 0 extended sources

Setting source of interest to:
4FGL J0856.6-1105 @ 134.17 -11.0993

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/869173/ft1_filtered_4FGL_J0856.6-1105_daily_bin377.fits scfile=/scratch/kocevski/869173/ft2_4FGL_J0856.6-1105_daily_bin377.fits outfile=/scratch/kocevski/869173/cmap_337046401_337305601_4FGL_J0856.6-1105_daily_bin377.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=134.17 yref=-11.0993 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.88
user 0.36
sys 0.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/869173/ft1_filtered_4FGL_J0856.6-1105_daily_bin377.fits scfile=/scratch/kocevski/869173/ft2_4FGL_J0856.6-1105_daily_bin377.fits outfile=/scratch/kocevski/869173/cmap_HighResolution_337046401_337305601_4FGL_J0856.6-1105_daily_bin377.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=134.17 yref=-11.0993 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.86
user 0.37
sys 0.47

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/869173/ft1_filtered_4FGL_J0856.6-1105_daily_bin377.fits evtable="EVENTS" scfile=/scratch/kocevski/869173/ft2_4FGL_J0856.6-1105_daily_bin377.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/869173/Model_4FGL_J0856.6-1105_daily_bin377.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/869173/ft1_filtered_4FGL_J0856.6-1105_daily_bin377.fits.....................!
real 104.22
user 102.11
sys 1.66

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/869173/ft1_filtered_4FGL_J0856.6-1105_daily_bin377.fits', '/scratch/kocevski/869173/ft2_4FGL_J0856.6-1105_daily_bin377.fits', expMap='/scratch/kocevski/869173/expmap_337046401_337305601_4FGL_J0856.6-1105_daily_bin377.fits', expCube='/scratch/kocevski/869173/ltcube_337046401_337305601_4FGL_J0856.6-1105_daily_bin377.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/869173/Model_4FGL_J0856.6-1105_daily_bin377.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0856.6-1105'

4FGL J0856.6-1105
   Spectrum: LogParabola
298         norm:  2.376e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.949e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
300         beta:  6.681e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
301           Eb:  1.043e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/869173/ft1_filtered_4FGL_J0856.6-1105_daily_bin377.fits
Spacecraft file(s): /scratch/kocevski/869173/ft2_4FGL_J0856.6-1105_daily_bin377.fits
Exposure map: /scratch/kocevski/869173/expmap_337046401_337305601_4FGL_J0856.6-1105_daily_bin377.fits
Exposure cube: /scratch/kocevski/869173/ltcube_337046401_337305601_4FGL_J0856.6-1105_daily_bin377.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/869173/Model_4FGL_J0856.6-1105_daily_bin377.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) = 10200.4044481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0478       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.6611       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9486       1.0000         .10000E-03   10000.    
     6 'norm      '    4.7827       1.0000         .10000E-03   10000.    
     7 'norm      '    5.2635       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2341       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.1867       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.4714       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0956       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1864       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .94764       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5460E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10200.37     FROM MIGRAD    STATUS=CONVERGED    363 CALLS     1853 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0453        8.1803        .95074E-07   -.37066E-04
   2  Prefactor     .10000E-03    .87322        .69697E-08** at limit **
   3  norm          .10000E-03    8.9382       -.96895E-06** at limit **
   4  norm          1.6604        5.9724        .15390E-06   -.30111E-03
   5  Prefactor     1.9445        57.868       -.10394E-04   -.10590E-03
   6  norm          4.7838        4.2347        .11333E-05   -.20267E-02
   7  norm          5.2638        2.4351        .10427E-06    .14118E-03
   8  Prefactor     .10000E-03    1.5379        .17258E-07** at limit **
   9  Prefactor     .10000E-03    11.931        .34949E-05** at limit **
  10  Prefactor     6.2348        6.5338       -.13395E-07   -.10172E-03
  11  norm          .10000E-03    2.5078        .49087E-08** at limit **
  12  Prefactor     9.1884        13.797        .92304E-06    .82047E-04
  13  Prefactor     .10000E-03    10.820       -.22841E-05** at limit **
  14  Prefactor     .10000E-03    8.7837        .10483E-05** at limit **
  15  Prefactor     .10000E-03    15.996       -.14397E-05** at limit **
  16  norm          3.4714        4.7934        .16522E-05    .29036E-03
  17  norm          3.0957        2.4575       -.20429E-06   -.29677E-03
  18  Normalizat    1.1863        .15587        .79363E-07   -.26519E-04
  19  Prefactor     .94772        .94380E-01   -.22526E-06    .49217E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.04533
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.66044
  Prefactor  = 1.94445
  norm       = 4.78378
  norm       = 5.2638
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.23477
  norm       = 0.0001
  Prefactor  = 9.18836
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.47139
  norm       = 3.09568
  Normalizat = 1.18631
  Prefactor  = 0.947723
 **********
 **   18 **HESSE 
 **********

 FCN=   10200.37     FROM HESSE     STATUS=OK           268 CALLS     2121 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0453        8.1892        .16327E-03   -1.5216    
   2  Prefactor     .10000E-03    .87569        .92163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.9682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.6604        6.1063        .32732E-03   -1.5450    
   5  Prefactor     1.9445        59.486        .29731E-03   -1.5429    
   6  norm          4.7838        6.1458        .91984E-03   -1.5270    
   7  norm          5.2638        2.4556        .10347E-03   -1.5249    
   8  Prefactor     .10000E-03    1.5517        .12228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.279        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.2348        6.5354        .16078E-03   -1.5209    
  11  norm          .10000E-03    2.5524        .15612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.1884        13.899        .13223E-03   -1.5102    
  13  Prefactor     .10000E-03    10.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.8051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.4714        4.8047        .21704E-03   -1.5335    
  17  norm          3.0957        2.4580        .13765E-03   -1.5356    
  18  Normalizat    1.1863        .18041        .28179E-03   -.87027    
  19  Prefactor     .94772        .10927        .19403E-03   -.94493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84253e-09
Minuit parameter uncertainties:
  1  8.19067
  2  2.82083e-07
  3  5.18491e-05
  4  6.10858
  5  21.5327
  6  6.1466
  7  2.45565
  8  5.57887e-07
  9  0.000190245
  10  6.53618
  11  2.13029e-06
  12  13.9035
  13  0.000150047
  14  5.20914e-05
  15  0.000173965
  16  4.8052
  17  2.45805
  18  0.180501
  19  0.109292
Done.

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

Extracting fit parameters...

4FGL J0856.6-1105
   Spectrum: LogParabola
298         norm:  5.264e+00  2.456e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.949e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
300         beta:  6.681e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
301           Eb:  1.043e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
543    Prefactor:  9.477e-01  1.093e-01  0.000e+00  1.000e+01 ( 1.000e+00)
544        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
545        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
542   Normalization:  1.186e+00  1.805e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.96
Ra Dec: 134.170 -11.099
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 4.49e-08 +/- 2.09e-08
Energy Flux (Fixed Index): 3.08e-05 +/- 1.44e-05

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) = 10199.7118326
delta logL = 0.65616208167

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10199.7105017
delta logL = 0.657493010116

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1593       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5501       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1999       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94474       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5460E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10199.71     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      210 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1593        2.5232        .44247E-02    .12718E-02
   2  alpha         1.5501        .30211        .30805       -.37715E-04
   3  Normalizat    1.1999        .14810        .63400E-01    .14072E-04
   4  Prefactor     .94475        .92595E-01    .45573E-01    .10863E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.15933
  alpha      = 1.55009
  Normalizat = 1.19993
  Prefactor  = 0.944746
 **********
 **   18 **HESSE 
 **********

 FCN=   10199.71     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1593        2.5569        .10554E-03   -1.5254    
   2  alpha         1.5501        .33494        .12416E-01   -.38976    
   3  Normalizat    1.1999        .16989        .28044E-03   -.86605    
   4  Prefactor     .94475        .10644        .19432E-03   -.94595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15944e-10
Minuit parameter uncertainties:
  1  2.55691
  2  0.336119
  3  0.169971
  4  0.106462
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/869173': 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) = 10199.7105017
delta logL = 0.657493010945

Extracting fit parameters...

4FGL J0856.6-1105
   Spectrum: LogParabola
298         norm:  5.159e+00  2.557e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.550e+00  3.361e-01  0.000e+00  5.000e+00 ( 1.000e+00)
300         beta:  6.681e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
301           Eb:  1.043e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
543    Prefactor:  9.447e-01  1.065e-01  0.000e+00  1.000e+01 ( 1.000e+00)
544        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
545        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
542   Normalization:  1.200e+00  1.700e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.30
Ra Dec: 134.170 -11.099
Photon Index (Free Index): 1.55 +/- 0.34
Photon Flux (Free Index): 2.95e-08 +/- 1.81e-08
Energy Flux (Free Index): 5.34e-05 +/- 3.80e-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/869173/cmap_HighResolution_337046401_337305601_4FGL_J0856.6-1105_daily_bin377.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.49e-08', energy_flux2='5.34e-05', photon_flux_error='2.09e-08', dlogl='6.57e-01', energy_flux='3.08e-05', photon_flux2='2.95e-08', job_status='DONE', time_completed='2021-08-30 17:28:00.081825', photon_index_error2='0.34', photon_index2='1.55', ts='15.96', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='3.80e-05', EG='1.19', time_epoch_completed='1630369680.08', return_code='0', job_id='869173', GAL2='0.94', EG2='1.20', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='1.81e-08', ts2='17.30', photon_index='1.95' WHERE bin_id='377' AND source_name='4FGL J0856.6-1105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 17:28:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 869173: <4FGL_J0856.6-1105_daily_bin377> in cluster <slac> Done

Job <4FGL_J0856.6-1105_daily_bin377> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 30 17:15:32 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 17:15:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 17:15:34 2021
Terminated at Mon Aug 30 17:28:00 2021
Results reported at Mon Aug 30 17:28:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0856.6-1105_daily_bin377 134.17 -11.0993 337046401 337305601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0856.6-1105 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   705.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             309.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            748 sec.

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

