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


Performing analysis on: 4FGL_J0358.6+0634_daily_bin340
RA = 59.6656, Dec = 6.5759
tmin = 327456001, tmax = 327715201
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='105740', job_status='RUN', time_executed='2021-08-19 20:07:13.803340', time_epoch_executed='1629428833.8' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='340'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/105740

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/105740/ft1_4FGL_J0358.6+0634_daily_bin340.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/105740/ft2_4FGL_J0358.6+0634_daily_bin340.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/105740/ft1_4FGL_J0358.6+0634_daily_bin340.fits outfile=/scratch/kocevski/105740/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin340.fits ra=59.6656 dec=6.5759 rad=12.0 tmin=327456001.0 tmax=327715201.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 8.21
user 3.08
sys 5.07

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/105740/ft2_4FGL_J0358.6+0634_daily_bin340.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/105740/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin340.fits evtable="EVENTS" outfile="/scratch/kocevski/105740/ft1_filtered_4FGL_J0358.6+0634_daily_bin340.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 5.38
user 0.33
sys 5.03

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/105740/ft1_filtered_4FGL_J0358.6+0634_daily_bin340.fits" evtable="EVENTS" scfile=/scratch/kocevski/105740/ft2_4FGL_J0358.6+0634_daily_bin340.fits sctable="SC_DATA" outfile=/scratch/kocevski/105740/ltcube_327456001_327715201_4FGL_J0358.6+0634_daily_bin340.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/105740/ft2_4FGL_J0358.6+0634_daily_bin340.fits
.....................!
real 17.72
user 11.89
sys 5.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/105740/ft1_filtered_4FGL_J0358.6+0634_daily_bin340.fits evtable="EVENTS" scfile=/scratch/kocevski/105740/ft2_4FGL_J0358.6+0634_daily_bin340.fits sctable="SC_DATA" expcube=/scratch/kocevski/105740/ltcube_327456001_327715201_4FGL_J0358.6+0634_daily_bin340.fits outfile=/scratch/kocevski/105740/expmap_327456001_327715201_4FGL_J0358.6+0634_daily_bin340.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/105740/ltcube_327456001_327715201_4FGL_J0358.6+0634_daily_bin340.fits
.....................!
real 197.05
user 185.40
sys 11.30

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/105740/ft1_filtered_4FGL_J0358.6+0634_daily_bin340.fits scfile=/scratch/kocevski/105740/ft2_4FGL_J0358.6+0634_daily_bin340.fits outfile=/scratch/kocevski/105740/cmap_327456001_327715201_4FGL_J0358.6+0634_daily_bin340.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 5.29
user 0.36
sys 4.91

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/105740/ft1_filtered_4FGL_J0358.6+0634_daily_bin340.fits scfile=/scratch/kocevski/105740/ft2_4FGL_J0358.6+0634_daily_bin340.fits outfile=/scratch/kocevski/105740/cmap_HighResolution_327456001_327715201_4FGL_J0358.6+0634_daily_bin340.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 5.31
user 0.36
sys 4.91

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/105740/ft1_filtered_4FGL_J0358.6+0634_daily_bin340.fits', '/scratch/kocevski/105740/ft2_4FGL_J0358.6+0634_daily_bin340.fits', expMap='/scratch/kocevski/105740/expmap_327456001_327715201_4FGL_J0358.6+0634_daily_bin340.fits', expCube='/scratch/kocevski/105740/ltcube_327456001_327715201_4FGL_J0358.6+0634_daily_bin340.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/105740/Model_4FGL_J0358.6+0634_daily_bin340.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/105740/ft1_filtered_4FGL_J0358.6+0634_daily_bin340.fits
Spacecraft file(s): /scratch/kocevski/105740/ft2_4FGL_J0358.6+0634_daily_bin340.fits
Exposure map: /scratch/kocevski/105740/expmap_327456001_327715201_4FGL_J0358.6+0634_daily_bin340.fits
Exposure cube: /scratch/kocevski/105740/ltcube_327456001_327715201_4FGL_J0358.6+0634_daily_bin340.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/105740/Model_4FGL_J0358.6+0634_daily_bin340.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) = 13285.5767948

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48787       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.3447       1.0000         .10000E-03   10000.    
     5 'Prefactor '    281.12       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.151       1.0000         .10000E-03   10000.    
     9 'norm      '    7.8122       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0313       1.0000         .10000E-03   10000.    
    11 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4574       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7505       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7782       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .23236E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.084       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0245       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1064       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.

 FCN=   13285.55     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     2086 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48768        3.2702       -.83974E-06    .23614E-05
   2  Prefactor     .10000E-03    3.7718        .36243E-09** at limit **
   3  norm          .10000E-03    1.4531        .71726E-10** at limit **
   4  norm          2.3445        1.3027       -.16832E-07   -.19518E-05
   5  Prefactor     281.13        67.663        .52993E-06   -.13486E-04
   6  Prefactor     .10000E-03    4.1574       -.16742E-07** at limit **
   7  norm          .10000E-03    7.8702        .95054E-06** at limit **
   8  Prefactor     17.152        24.602        .34326E-07   -.30256E-05
   9  norm          7.8120        4.7302        .69201E-08   -.17162E-04
  10  Prefactor     2.0251        100.01       -.19789E-05   -.26224E-05
  11  norm          .10000E-03    16.634       -.55932E-06** at limit **
  12  norm          1.4573        1.1244       -.69347E-07   -.31384E-04
  13  Prefactor     2.7504        1.7605       -.11606E-07   -.70170E-04
  14  Prefactor     3.8102        35.553       -.16665E-05   -.66942E-04
  15  Prefactor     .10000E-03    19.264        .48345E-06** at limit **
  16  norm          .10000E-03    7.8367       -.40005E-05** at limit **
  17  Prefactor     43.035        53.328       -.48462E-05    .29613E-06
  18  Prefactor     .10000E-03    5.0183        .40057E-06** at limit **
  19  Normalizat    1.0247        .23446        .19592E-06   -.60617E-04
  20  Prefactor     1.1064        .65795E-01   -.78860E-07   -.18656E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.487677
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.34451
  Prefactor  = 281.127
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.1517
  norm       = 7.81199
  Prefactor  = 2.02511
  norm       = 0.0001
  norm       = 1.45728
  Prefactor  = 2.75041
  Prefactor  = 3.81021
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 43.0348
  Prefactor  = 0.0001
  Normalizat = 1.02469
  Prefactor  = 1.10641
 **********
 **   18 **HESSE 
 **********

 FCN=   13285.55     FROM HESSE     STATUS=OK           295 CALLS     2381 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48768        3.2780        .41046E-03   -1.5568    
   2  Prefactor     .10000E-03    3.7904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.4534        .13569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.3445        1.3008        .93238E-04   -1.5402    
   5  Prefactor     281.13        67.677        .12100E-03   -1.2339    
   6  Prefactor     .10000E-03    4.1609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.8751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.152        24.578        .96709E-04   -1.4879    
   9  norm          7.8120        4.7288        .14346E-03   -1.5149    
  10  Prefactor     2.0251        98.095        .29025E-03   -1.5423    
  11  norm          .10000E-03    16.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4573        1.1224        .17828E-03   -1.5467    
  13  Prefactor     2.7504        1.7527        .11276E-03   -1.5376    
  14  Prefactor     3.8102        27.462        .20769E-03   -1.5318    
  15  Prefactor     .10000E-03    19.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.6215        .21629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     43.035        53.284        .61076E-04   -1.4395    
  18  Prefactor     .10000E-03    5.0722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0247        .24989        .52563E-03   -.92208    
  20  Prefactor     1.1064        .70997E-01    .15285E-03   -.89262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.9121e-11
Minuit parameter uncertainties:
  1  2.52865
  2  2.36576e-07
  3  3.5232e-08
  4  1.30077
  5  67.6963
  6  1.74787e-07
  7  8.60224e-06
  8  24.5921
  9  4.72899
  10  28.2373
  11  1.22959e-05
  12  1.12245
  13  1.75269
  14  20.4712
  15  1.02688e-06
  16  2.45661e-05
  17  53.3429
  18  2.47754e-05
  19  0.250175
  20  0.0710033
Done.

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

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  2.811e+02  6.770e+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:  1.106e+00  7.100e-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.025e+00  2.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 38.05
Ra Dec: 59.666 6.576
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 3.34e-07 +/- 8.04e-08
Energy Flux (Fixed Index): 9.05e-05 +/- 2.18e-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) = 13285.4692165
delta logL = 0.0762362661917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13285.4153858
delta logL = 0.130066952473

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    311.60       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4460       1.0000          .0000       10.000    
     3 'Normalizat'    1.0443       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1028       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=   13285.42     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      304 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     311.59        95.766        .11511E-03   -.98765E-05
   2  Index         2.4460        .23645        .43862E-02    .10008E-03
   3  Normalizat    1.0441        .23573        .52142E-03    .37458E-04
   4  Prefactor     1.1029        .70215E-01    .15306E-03    .15880E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 311.587
  Index      = 2.44602
  Normalizat = 1.04413
  Prefactor  = 1.10286
 **********
 **   18 **HESSE 
 **********

 FCN=   13285.42     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     311.59        93.698        .46043E-05   -1.2159    
   2  Index         2.4460        .23119        .17545E-03   -.53611    
   3  Normalizat    1.0441        .23571        .20857E-04   -.91566    
   4  Prefactor     1.1029        .70218E-01    .61223E-05   -.89375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02014e-11
Minuit parameter uncertainties:
  1  93.7439
  2  0.231297
  3  0.23595
  4  0.0702239
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/105740': 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) = 13285.4153856
delta logL = 0.130067199343

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  3.116e+02  9.374e+01  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  2.446e+00  2.313e-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:  1.103e+00  7.022e-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.044e+00  2.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 38.13
Ra Dec: 59.666 6.576
Photon Index (Free Index): 2.45 +/- 0.23
Photon Flux (Free Index): 3.14e-07 +/- 8.68e-08
Energy Flux (Free Index): 9.71e-05 +/- 2.76e-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/105740/cmap_HighResolution_327456001_327715201_4FGL_J0358.6+0634_daily_bin340.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.34e-07', energy_flux2='9.71e-05', photon_flux_error='8.04e-08', dlogl='1.30e-01', energy_flux='9.05e-05', photon_flux2='3.14e-07', job_status='DONE', time_completed='2021-08-19 20:21:55.393090', photon_index_error2='0.23', photon_index2='2.45', ts='38.05', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='2.76e-05', EG='1.02', time_epoch_completed='1629429715.39', return_code='0', job_id='105740', GAL2='1.10', EG2='1.04', return_code2='0', energy_flux_error='2.18e-05', photon_flux_error2='8.68e-08', ts2='38.13', photon_index='2.57' WHERE bin_id='340' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 20:21:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 105740: <4FGL_J0358.6+0634_daily_bin340> in cluster <slac> Done

Job <4FGL_J0358.6+0634_daily_bin340> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 20:05:42 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 20:05:44 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:05:44 2021
Terminated at Thu Aug 19 20:21:56 2021
Results reported at Thu Aug 19 20:21:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin340 59.6656 6.5759 327456001 327715201 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 :                                   952.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             348.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            974 sec.

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

