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


Performing analysis on: 4FGL_J0358.6+0634_daily_bin657
RA = 59.6656, Dec = 6.5759
tmin = 409622401, tmax = 409881601
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='107259', job_status='RUN', time_executed='2021-08-19 20:14:05.980166', time_epoch_executed='1629429245.98' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='657'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107259

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107259/ft1_4FGL_J0358.6+0634_daily_bin657.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107259/ft2_4FGL_J0358.6+0634_daily_bin657.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107259/ft1_4FGL_J0358.6+0634_daily_bin657.fits outfile=/scratch/kocevski/107259/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin657.fits ra=59.6656 dec=6.5759 rad=12.0 tmin=409622401.0 tmax=409881601.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 4.27
user 4.00
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/107259/ft2_4FGL_J0358.6+0634_daily_bin657.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/107259/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin657.fits evtable="EVENTS" outfile="/scratch/kocevski/107259/ft1_filtered_4FGL_J0358.6+0634_daily_bin657.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.42
user 0.25
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107259/ft1_filtered_4FGL_J0358.6+0634_daily_bin657.fits" evtable="EVENTS" scfile=/scratch/kocevski/107259/ft2_4FGL_J0358.6+0634_daily_bin657.fits sctable="SC_DATA" outfile=/scratch/kocevski/107259/ltcube_409622401_409881601_4FGL_J0358.6+0634_daily_bin657.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/107259/ft2_4FGL_J0358.6+0634_daily_bin657.fits
.....................!
real 8.80
user 8.47
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107259/ft1_filtered_4FGL_J0358.6+0634_daily_bin657.fits evtable="EVENTS" scfile=/scratch/kocevski/107259/ft2_4FGL_J0358.6+0634_daily_bin657.fits sctable="SC_DATA" expcube=/scratch/kocevski/107259/ltcube_409622401_409881601_4FGL_J0358.6+0634_daily_bin657.fits outfile=/scratch/kocevski/107259/expmap_409622401_409881601_4FGL_J0358.6+0634_daily_bin657.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/107259/ltcube_409622401_409881601_4FGL_J0358.6+0634_daily_bin657.fits
.....................!
real 140.32
user 136.08
sys 3.99

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/107259/ft1_filtered_4FGL_J0358.6+0634_daily_bin657.fits scfile=/scratch/kocevski/107259/ft2_4FGL_J0358.6+0634_daily_bin657.fits outfile=/scratch/kocevski/107259/cmap_409622401_409881601_4FGL_J0358.6+0634_daily_bin657.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.45
user 0.28
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107259/ft1_filtered_4FGL_J0358.6+0634_daily_bin657.fits scfile=/scratch/kocevski/107259/ft2_4FGL_J0358.6+0634_daily_bin657.fits outfile=/scratch/kocevski/107259/cmap_HighResolution_409622401_409881601_4FGL_J0358.6+0634_daily_bin657.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.44
user 0.29
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.940       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.0622       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.160       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8606       1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.9571       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.981       1.0000         .10000E-03   10000.    
    11 'norm      '    22.332       1.0000         .10000E-03   10000.    
    12 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10676E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16500E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .56613       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.819       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.276       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .98674       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95986       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=   10375.98     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     2057 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6756        .55797E-07** at limit **
   2  Prefactor     28.945        17.825        .83980E-07    .22438E-04
   3  norm          .10000E-03    3.4223        .29803E-07** at limit **
   4  norm          6.0626        1.7834        .10804E-07   -.96804E-05
   5  Prefactor     22.150        42.699        .33632E-06   -.34251E-04
   6  Prefactor     3.8733        23.390       -.20496E-06    .17687E-04
   7  norm          .10000E-03    8.9871        .28952E-07** at limit **
   8  Prefactor     .10000E-03    11.685       -.63283E-08** at limit **
   9  norm          2.9574        3.0225        .40831E-07   -.19711E-04
  10  Prefactor     16.963        31.211       -.56699E-06   -.11411E-03
  11  norm          22.321        18.248       -.16659E-06   -.58571E-04
  12  norm          .10000E-03    .33061        .42903E-07** at limit **
  13  Prefactor     .10000E-03    .68973       -.58603E-07** at limit **
  14  Prefactor     .10000E-03    34.063       -.24993E-05** at limit **
  15  Prefactor     .10000E-03    17.747       -.19725E-07** at limit **
  16  norm          .56932        2.2389        .19926E-05   -.12309E-03
  17  Prefactor     20.806        39.909       -.64382E-06   -.63818E-04
  18  Prefactor     15.278        8.3543       -.22728E-06   -.13134E-03
  19  Normalizat    .98645        .24666       -.49635E-06   -.61120E-04
  20  Prefactor     .95992        .67575E-01    .15124E-07   -.18010E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.9453
  norm       = 0.0001
  norm       = 6.0626
  Prefactor  = 22.15
  Prefactor  = 3.87334
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.95743
  Prefactor  = 16.9628
  norm       = 22.3214
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.569319
  Prefactor  = 20.806
  Prefactor  = 15.2781
  Normalizat = 0.986448
  Prefactor  = 0.959921
 **********
 **   18 **HESSE 
 **********

 FCN=   10375.98     FROM HESSE     STATUS=OK           301 CALLS     2358 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6962        .16271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.945        17.848        .74474E-04   -1.4631    
   3  norm          .10000E-03    3.4543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.0626        1.7854        .70687E-04   -1.5215    
   5  Prefactor     22.150        42.522        .85088E-04   -1.4766    
   6  Prefactor     3.8733        22.876        .20538E-03   -1.5314    
   7  norm          .10000E-03    9.0351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.9574        3.0130        .17329E-03   -1.5364    
  10  Prefactor     16.963        31.190        .97193E-04   -1.4884    
  11  norm          22.321        17.973        .84760E-04   -1.4763    
  12  norm          .10000E-03    .52698        .11100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.5384        .15723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    36.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .56932        2.2599        .27959E-02   -1.5557    
  17  Prefactor     20.806        39.986        .87782E-04   -1.4795    
  18  Prefactor     15.278        8.3623        .10247E-03   -1.4926    
  19  Normalizat    .98645        .26206        .47551E-03   -.93486    
  20  Prefactor     .95992        .73322E-01    .14366E-03   -.94078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06061e-07
Minuit parameter uncertainties:
  1  3.61581e-08
  2  17.8512
  3  5.71899e-08
  4  1.78546
  5  42.5797
  6  18.8366
  7  4.20147e-07
  8  4.68711e-06
  9  3.01315
  10  31.2197
  11  17.9772
  12  8.96632e-07
  13  1.40043e-05
  14  0.000401542
  15  1.19386e-05
  16  2.2602
  17  40.037
  18  8.36299
  19  0.262401
  20  0.0733299
Done.

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

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  2.215e+01  4.258e+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:  9.599e-01  7.333e-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:  9.864e-01  2.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 59.666 6.576
Photon Flux Upper Limit: 1.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/107259/likelihoodResults_409622401_409881601_4FGL_J0358.6+0634_daily_bin657.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) = 10375.9410768
delta logL = 0.036022490267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10375.9322116
delta logL = 0.0448877183735

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.343       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0034       1.0000          .0000       10.000    
     3 'Normalizat'    .97291       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96188       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=   10375.93     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      280 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.318        42.474        .96173E-04    .59342E-04
   2  Index         3.0039        1.6547        .90030E-02   -.21389E-04
   3  Normalizat    .97286        .24953        .47849E-03    .56752E-03
   4  Prefactor     .96190        .73121E-01    .14353E-03   -.42970E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3183
  Index      = 3.00388
  Normalizat = 0.972859
  Prefactor  = 0.961895
 **********
 **   18 **HESSE 
 **********

 FCN=   10375.93     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.318        38.273        .38469E-05   -1.4875    
   2  Index         3.0039        1.4926        .36012E-03   -.41067    
   3  Normalizat    .97286        .24920        .19140E-04   -.93945    
   4  Prefactor     .96190        .73052E-01    .28705E-04   -.94011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57013e-09
Minuit parameter uncertainties:
  1  38.3276
  2  1.5203
  3  0.249501
  4  0.073059
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107259': 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) = 10375.9322113
delta logL = 0.0448880112017

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.732e+01  3.833e+01  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  3.004e+00  1.520e+00  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:  9.619e-01  7.306e-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:  9.729e-01  2.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
Ra Dec: 59.666 6.576

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/107259/cmap_HighResolution_409622401_409881601_4FGL_J0358.6+0634_daily_bin657.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', job_status='DONE', photon_flux_upper_limit='1.46e-07', time_completed='2021-08-19 20:23:26.928515', job_id='107259', GAL2='0.96', fit_tolerance='1e-08', EG2='0.97', EG='0.99', time_epoch_completed='1629429806.93', return_code2='0', ts='0.38', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='4.49e-02', ts2='0.48', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='657' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 20:23:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 107259: <4FGL_J0358.6+0634_daily_bin657> in cluster <slac> Done

Job <4FGL_J0358.6+0634_daily_bin657> 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) <bullet0071>, 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:23:27 2021
Results reported at Thu Aug 19 20:23:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin657 59.6656 6.5759 409622401 409881601 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 :                                   562.67 sec.
    Max Memory :                                 1000 MB
    Average Memory :                             250.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            769 sec.

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

