/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 10 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 = 7454
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0358.6+0634_daily_bin652
RA = 59.6656, Dec = 6.5759
tmin = 408326401, tmax = 408585601
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='107251', job_status='RUN', time_executed='2021-08-19 20:11:11.479120', time_epoch_executed='1629429071.48' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='652'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107251

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107251/ft1_4FGL_J0358.6+0634_daily_bin652.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107251/ft2_4FGL_J0358.6+0634_daily_bin652.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107251/ft1_4FGL_J0358.6+0634_daily_bin652.fits outfile=/scratch/kocevski/107251/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin652.fits ra=59.6656 dec=6.5759 rad=12.0 tmin=408326401.0 tmax=408585601.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 5.20
user 4.61
sys 0.55

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/107251/ft2_4FGL_J0358.6+0634_daily_bin652.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/107251/ft2_4FGL_J0358.6+0634_daily_bin652.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/107251/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin652.fits evtable="EVENTS" outfile="/scratch/kocevski/107251/ft1_filtered_4FGL_J0358.6+0634_daily_bin652.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.81
user 0.32
sys 0.47

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107251/ft1_filtered_4FGL_J0358.6+0634_daily_bin652.fits" evtable="EVENTS" scfile=/scratch/kocevski/107251/ft2_4FGL_J0358.6+0634_daily_bin652.fits sctable="SC_DATA" outfile=/scratch/kocevski/107251/ltcube_408326401_408585601_4FGL_J0358.6+0634_daily_bin652.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/107251/ft2_4FGL_J0358.6+0634_daily_bin652.fits
.....................!
real 12.31
user 11.60
sys 0.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107251/ft1_filtered_4FGL_J0358.6+0634_daily_bin652.fits evtable="EVENTS" scfile=/scratch/kocevski/107251/ft2_4FGL_J0358.6+0634_daily_bin652.fits sctable="SC_DATA" expcube=/scratch/kocevski/107251/ltcube_408326401_408585601_4FGL_J0358.6+0634_daily_bin652.fits outfile=/scratch/kocevski/107251/expmap_408326401_408585601_4FGL_J0358.6+0634_daily_bin652.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/107251/ltcube_408326401_408585601_4FGL_J0358.6+0634_daily_bin652.fits
.....................!
real 191.73
user 186.04
sys 5.31

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

Setting source of interest to:
4FGL J0358.6+0634 @ 59.6656 6.5759

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/107251/ft1_filtered_4FGL_J0358.6+0634_daily_bin652.fits scfile=/scratch/kocevski/107251/ft2_4FGL_J0358.6+0634_daily_bin652.fits outfile=/scratch/kocevski/107251/cmap_408326401_408585601_4FGL_J0358.6+0634_daily_bin652.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=59.6656 yref=6.5759 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.85
user 0.37
sys 0.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107251/ft1_filtered_4FGL_J0358.6+0634_daily_bin652.fits scfile=/scratch/kocevski/107251/ft2_4FGL_J0358.6+0634_daily_bin652.fits outfile=/scratch/kocevski/107251/cmap_HighResolution_408326401_408585601_4FGL_J0358.6+0634_daily_bin652.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=59.6656 yref=6.5759 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.85
user 0.37
sys 0.47

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/107251/ft1_filtered_4FGL_J0358.6+0634_daily_bin652.fits evtable="EVENTS" scfile=/scratch/kocevski/107251/ft2_4FGL_J0358.6+0634_daily_bin652.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/107251/Model_4FGL_J0358.6+0634_daily_bin652.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/107251/ft1_filtered_4FGL_J0358.6+0634_daily_bin652.fits.....................!
real 91.46
user 89.55
sys 1.67

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/107251/ft1_filtered_4FGL_J0358.6+0634_daily_bin652.fits', '/scratch/kocevski/107251/ft2_4FGL_J0358.6+0634_daily_bin652.fits', expMap='/scratch/kocevski/107251/expmap_408326401_408585601_4FGL_J0358.6+0634_daily_bin652.fits', expCube='/scratch/kocevski/107251/ltcube_408326401_408585601_4FGL_J0358.6+0634_daily_bin652.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/107251/Model_4FGL_J0358.6+0634_daily_bin652.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0358.6+0634'

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  8.019e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  2.567e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
234        Scale:  7.663e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/107251/ft1_filtered_4FGL_J0358.6+0634_daily_bin652.fits
Spacecraft file(s): /scratch/kocevski/107251/ft2_4FGL_J0358.6+0634_daily_bin652.fits
Exposure map: /scratch/kocevski/107251/expmap_408326401_408585601_4FGL_J0358.6+0634_daily_bin652.fits
Exposure cube: /scratch/kocevski/107251/ltcube_408326401_408585601_4FGL_J0358.6+0634_daily_bin652.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/107251/Model_4FGL_J0358.6+0634_daily_bin652.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) = 6400.73532391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6506       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    11.349       1.0000         .10000E-03   10000.    
     5 'Prefactor '    86.856       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .24186E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.131       1.0000         .10000E-03   10000.    
     9 'norm      '    .40692       1.0000         .10000E-03   10000.    
    10 'Prefactor '    47.407       1.0000         .10000E-03   10000.    
    11 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .87268       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6079       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17142E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1106       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8855       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1525       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85477       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6400.717     FROM MIGRAD    STATUS=CONVERGED    752 CALLS     2746 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6506        6.2540        .25040E-03    .10216E-04
   2  Prefactor     .10000E-03    6.4858        .18142E-02** at limit **
   3  norm          .10000E-03    2.7333        .12917E-02** at limit **
   4  norm          11.348        3.3604        .75243E-04   -.19491E-04
   5  Prefactor     86.873        58.258        .43109E-04   -.70678E-05
   6  Prefactor     .10000E-03    28.216        .18142E-02** at limit **
   7  norm          .10000E-03    19.570        .11402    ** at limit **
   8  Prefactor     38.133        35.981        .64906E-04   -.22105E-04
   9  norm          .40487        7.7414        .41756E-03    .16118E-04
  10  Prefactor     47.419        32.791        .58237E-04    .12689E-04
  11  norm          .10000E-03    9.9760        .18142E-02** at limit **
  12  norm          .87393        1.0680        .95788E-03   -.87578E-04
  13  Prefactor     2.6068        2.3526        .10817E-03   -.46769E-03
  14  Prefactor     .10000E-03    16.327        .18142E-02** at limit **
  15  Prefactor     .10000E-03    280.26        .18142E-02** at limit **
  16  norm          2.1117        2.7015        .14303E-03    .18544E-03
  17  Prefactor     .10000E-03    57.851        .18142E-02** at limit **
  18  Prefactor     1.8826        9.1361        .30310E-03    .25993E-04
  19  Normalizat    1.1527        .33521        .44929E-03   -.18902E-04
  20  Prefactor     .85473        .92398E-01    .14823E-03   -.52537E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.65056
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.3482
  Prefactor  = 86.873
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 38.1329
  norm       = 0.404869
  Prefactor  = 47.4193
  norm       = 0.0001
  norm       = 0.873928
  Prefactor  = 2.60677
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.11174
  Prefactor  = 0.0001
  Prefactor  = 1.88263
  Normalizat = 1.15273
  Prefactor  = 0.854732
 **********
 **   18 **HESSE 
 **********

 FCN=   6400.717     FROM HESSE     STATUS=OK           283 CALLS     3029 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6506        6.2538        .10016E-04   -1.5382    
   2  Prefactor     .10000E-03    6.4860        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.7333        .25834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          11.348        3.3604        .30097E-05   -1.5034    
   5  Prefactor     86.873        58.257        .86217E-05   -1.3841    
   6  Prefactor     .10000E-03    28.231        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    19.215        .11586       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     38.133        35.980        .12981E-04   -1.4472    
   9  norm          .40487        7.7328        .16702E-04   -1.5581    
  10  Prefactor     47.419        32.790        .23295E-05   -1.4330    
  11  norm          .10000E-03    9.9762        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .87393        1.0664        .38315E-04   -1.5521    
  13  Prefactor     2.6068        2.3505        .43269E-05   -1.5385    
  14  Prefactor     .10000E-03    16.329        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    280.37        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1117        2.7013        .57211E-05   -1.5417    
  17  Prefactor     .10000E-03    57.860        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.8826        9.1332        .12124E-04   -1.5434    
  19  Normalizat    1.1527        .33527        .17972E-04   -.88076    
  20  Prefactor     .85473        .92437E-01    .59292E-05   -.97741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30639e-11
Minuit parameter uncertainties:
  1  6.25536
  2  2.87232e-07
  3  1.21624e-07
  4  3.36046
  5  58.2957
  6  6.11744e-05
  7  1.98061e-05
  8  36.0006
  9  3.53889
  10  32.8022
  11  5.28886e-06
  12  1.06641
  13  2.35063
  14  2.41321e-05
  15  0.000304956
  16  2.70142
  17  0.000153798
  18  8.29506
  19  0.335894
  20  0.0924539
Done.

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

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  8.687e+01  5.830e+01  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  2.567e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
234        Scale:  7.663e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
460    Prefactor:  8.547e-01  9.245e-02  0.000e+00  1.000e+01 ( 1.000e+00)
461        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
462        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
459   Normalization:  1.153e+00  3.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.34
Ra Dec: 59.666 6.576
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 6.93e-08
Energy Flux (Fixed Index): 2.80e-05 +/- 1.88e-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) = 6400.71530486
delta logL = 0.00123583197546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6400.71441687
delta logL = 0.00212381823894

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6400.714     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      270 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     83.879        76.506        .21938E-03    .72188E-04
   2  Index         2.6096        .69405        .68324E-02   -.13230E-04
   3  Normalizat    1.1500        .31968        .44975E-03    .12816E-04
   4  Prefactor     .85521        .91925E-01    .14819E-03   -.98979E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 83.8789
  Index      = 2.6096
  Normalizat = 1.15001
  Prefactor  = 0.85521
 **********
 **   18 **HESSE 
 **********

 FCN=   6400.714     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     83.879        73.150        .87752E-05   -1.3874    
   2  Index         2.6096        .66337        .27330E-03   -.49847    
   3  Normalizat    1.1500        .31961        .17990E-04   -.88162    
   4  Prefactor     .85521        .91924E-01    .29638E-04   -.97724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.99786e-11
Minuit parameter uncertainties:
  1  73.2285
  2  0.665923
  3  0.320157
  4  0.091941
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107251': 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) = 6400.71441643
delta logL = 0.00212426570852

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  8.388e+01  7.323e+01  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  2.610e+00  6.659e-01  0.000e+00  1.000e+01 (-1.000e+00)
234        Scale:  7.663e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
460    Prefactor:  8.552e-01  9.194e-02  0.000e+00  1.000e+01 ( 1.000e+00)
461        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
462        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
459   Normalization:  1.150e+00  3.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.34
Ra Dec: 59.666 6.576
Photon Index (Free Index): 2.61 +/- 0.67
Photon Flux (Free Index): 1.06e-07 +/- 8.12e-08
Energy Flux (Free Index): 2.75e-05 +/- 1.94e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/107251/cmap_HighResolution_408326401_408585601_4FGL_J0358.6+0634_daily_bin652.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='2.75e-05', photon_flux_error='6.93e-08', dlogl='2.12e-03', energy_flux='2.80e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-08-19 20:21:02.497315', photon_index_error2='0.67', photon_index2='2.61', ts='4.34', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.94e-05', EG='1.15', time_epoch_completed='1629429662.5', return_code='0', job_id='107251', GAL2='0.86', EG2='1.15', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='8.12e-08', ts2='4.34', photon_index='2.57' WHERE bin_id='652' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 20:21:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 107251: <4FGL_J0358.6+0634_daily_bin652> in cluster <slac> Done

Job <4FGL_J0358.6+0634_daily_bin652> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug 19 20:10:38 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 20:10:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 20:10:40 2021
Terminated at Thu Aug 19 20:21:03 2021
Results reported at Thu Aug 19 20:21:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin652 59.6656 6.5759 408326401 408585601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0358.6+0634 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   591.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             310.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   622 sec.
    Turnaround time :                            625 sec.

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

