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


Performing analysis on: 4FGL_J0358.6+0634_daily_bin574
RA = 59.6656, Dec = 6.5759
tmin = 388108801, tmax = 388368001
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='107137', job_status='RUN', time_executed='2021-08-19 20:12:42.924627', time_epoch_executed='1629429162.92' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='574'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107137

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107137/ft1_4FGL_J0358.6+0634_daily_bin574.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107137/ft2_4FGL_J0358.6+0634_daily_bin574.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107137/ft1_4FGL_J0358.6+0634_daily_bin574.fits outfile=/scratch/kocevski/107137/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin574.fits ra=59.6656 dec=6.5759 rad=12.0 tmin=388108801.0 tmax=388368001.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.12
user 3.13
sys 0.97

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107137/ft1_filtered_4FGL_J0358.6+0634_daily_bin574.fits" evtable="EVENTS" scfile=/scratch/kocevski/107137/ft2_4FGL_J0358.6+0634_daily_bin574.fits sctable="SC_DATA" outfile=/scratch/kocevski/107137/ltcube_388108801_388368001_4FGL_J0358.6+0634_daily_bin574.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/107137/ft2_4FGL_J0358.6+0634_daily_bin574.fits
.....................!
real 12.47
user 11.25
sys 1.18

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107137/ft1_filtered_4FGL_J0358.6+0634_daily_bin574.fits evtable="EVENTS" scfile=/scratch/kocevski/107137/ft2_4FGL_J0358.6+0634_daily_bin574.fits sctable="SC_DATA" expcube=/scratch/kocevski/107137/ltcube_388108801_388368001_4FGL_J0358.6+0634_daily_bin574.fits outfile=/scratch/kocevski/107137/expmap_388108801_388368001_4FGL_J0358.6+0634_daily_bin574.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/107137/ltcube_388108801_388368001_4FGL_J0358.6+0634_daily_bin574.fits
.....................!
real 191.21
user 185.14
sys 5.66

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/107137/ft1_filtered_4FGL_J0358.6+0634_daily_bin574.fits scfile=/scratch/kocevski/107137/ft2_4FGL_J0358.6+0634_daily_bin574.fits outfile=/scratch/kocevski/107137/cmap_388108801_388368001_4FGL_J0358.6+0634_daily_bin574.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 1.28
user 0.35
sys 0.92

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107137/ft1_filtered_4FGL_J0358.6+0634_daily_bin574.fits scfile=/scratch/kocevski/107137/ft2_4FGL_J0358.6+0634_daily_bin574.fits outfile=/scratch/kocevski/107137/cmap_HighResolution_388108801_388368001_4FGL_J0358.6+0634_daily_bin574.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 1.31
user 0.37
sys 0.93

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6507       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.6144       1.0000         .10000E-03   10000.    
     4 'norm      '    3.1649       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .99747E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3912       1.0000         .10000E-03   10000.    
     7 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.515       1.0000         .10000E-03   10000.    
     9 'norm      '    .38762E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.2426       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.621       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6550       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.708       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1871       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0492       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=   10662.87     FROM MIGRAD    STATUS=CONVERGED    747 CALLS     2355 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6498        6.4595        .12520E-02    .45649E-03
   2  Prefactor     .10000E-03    4.5655        .18142E-02** at limit **
   3  norm          3.6152        3.9278        .20809E-03   -.24039E-05
   4  norm          3.1652        2.2072        .11886E-03   -.26780E-05
   5  Prefactor     .10007E-03    33.729        .17347    ** at limit **
   6  Prefactor     4.3956        11.180        .19219E-03   -.16563E-05
   7  norm          .10000E-03    8.3998        .18142E-02** at limit **
   8  Prefactor     29.506        25.408        .73746E-04    .77943E-04
   9  norm          .10001E-03    15.066        .35558E-02** at limit **
  10  Prefactor     .10000E-03    15.028        .18142E-02** at limit **
  11  norm          .10000E-03    5.6752        .18142E-02** at limit **
  12  norm          1.2421        1.2193        .10581E-03   -.10493E-02
  13  Prefactor     .10000E-03    .61741        .78701E-03** at limit **
  14  Prefactor     .10000E-03    6.2594        .18142E-02** at limit **
  15  Prefactor     27.680        43.289        .76228E-04    .93899E-04
  16  norm          1.6547        2.1896        .17040E-03    .45102E-04
  17  Prefactor     .10000E-03    19.129        .18142E-02** at limit **
  18  Prefactor     11.708        8.5816        .11708E-03    .14177E-04
  19  Normalizat    1.1871        .27884        .48285E-03   -.58014E-04
  20  Prefactor     1.0492        .78361E-01    .14977E-03    .10414E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.64979
  Prefactor  = 0.0001
  norm       = 3.61521
  norm       = 3.16524
  Prefactor  = 0.000100067
  Prefactor  = 4.39555
  norm       = 0.0001
  Prefactor  = 29.5057
  norm       = 0.000100014
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.24213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.6796
  norm       = 1.65472
  Prefactor  = 0.0001
  Prefactor  = 11.7081
  Normalizat = 1.18705
  Prefactor  = 1.04923
 **********
 **   18 **HESSE 
 **********

 FCN=   10662.87     FROM HESSE     STATUS=OK           283 CALLS     2638 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6498        6.4574        .25039E-03   -1.5382    
   2  Prefactor     .10000E-03    4.5657        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.6152        3.9278        .83236E-05   -1.5328    
   4  norm          3.1652        2.2071        .47546E-05   -1.5352    
   5  Prefactor     .10007E-03    35.243        .16812       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3956        11.180        .76877E-05   -1.5289    
   7  norm          .10000E-03    8.4002        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.506        25.408        .14749E-04   -1.4621    
   9  norm          .10001E-03    15.324        .71115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.030        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.6753        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.2421        1.2181        .42323E-05   -1.5485    
  13  Prefactor     .10000E-03    .61744        .15740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.2599        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     27.680        43.285        .15246E-04   -1.4655    
  16  norm          1.6547        2.1895        .68159E-05   -1.5451    
  17  Prefactor     .10000E-03    19.130        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.708        8.5812        .46831E-05   -1.5023    
  19  Normalizat    1.1871        .27890        .19314E-04   -.87004    
  20  Prefactor     1.0492        .78388E-01    .59909E-05   -.91106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2395e-09
Minuit parameter uncertainties:
  1  6.4591
  2  1.12581e-06
  3  3.9281
  4  2.20714
  5  0.00307843
  6  11.1853
  7  5.0558e-07
  8  25.4176
  9  0.000923204
  10  3.22987e-06
  11  9.94487e-08
  12  1.21811
  13  5.47127e-06
  14  6.46358e-07
  15  43.3338
  16  2.1896
  17  1.88311e-06
  18  8.58208
  19  0.279253
  20  0.0783963
Done.

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

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.001e-04  3.078e-03  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.049e+00  7.840e-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.187e+00  2.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/107137/likelihoodResults_388108801_388368001_4FGL_J0358.6+0634_daily_bin574.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): 102
logL (Free Index) = 10662.8712952
delta logL = -8.45409886097e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10662.8712952
delta logL = -8.45291287987e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96366E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5665       1.0000          .0000       10.000    
     3 'Normalizat'    1.1870       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0492       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.

 FCN=   10662.44     FROM MIGRAD    STATUS=CONVERGED    120 CALLS      303 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.415        53.240        .90712E-02    .77954E-04
   2  Index         1.6188        .49529        .23308       -.11602E-03
   3  Normalizat    1.1909        .23568        .10875        .26096E-04
   4  Prefactor     1.0438        .69703E-01    .39955E-01   -.10355E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.4153
  Index      = 1.61881
  Normalizat = 1.19086
  Prefactor  = 1.0438
 **********
 **   18 **HESSE 
 **********

 FCN=   10662.44     FROM HESSE     STATUS=OK            33 CALLS      336 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.415        50.915        .36285E-03   -1.4484    
   2  Index         1.6188        .59091        .12364E-01   -.74264    
   3  Normalizat    1.1909        .25901        .48210E-03   -.86886    
   4  Prefactor     1.0438        .76873E-01    .15006E-03   -.91283    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87449e-11
Minuit parameter uncertainties:
  1  50.9739
  2  0.593474
  3  0.259289
  4  0.0768808
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107137': 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) = 10662.4372746
delta logL = 0.434012159985

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  3.742e+01  5.097e+01  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  1.619e+00  5.935e-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.044e+00  7.688e-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.191e+00  2.593e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/107137/cmap_HighResolution_388108801_388368001_4FGL_J0358.6+0634_daily_bin574.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2021-08-19 20:26:09.622858', job_id='107137', GAL2='1.04', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1629429969.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='4.34e-01', ts2='0.87', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='574' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 20:26:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 107137: <4FGL_J0358.6+0634_daily_bin574> in cluster <slac> Done

Job <4FGL_J0358.6+0634_daily_bin574> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug 19 20:10:31 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 20:10:32 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:32 2021
Terminated at Thu Aug 19 20:26:10 2021
Results reported at Thu Aug 19 20:26:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin574 59.6656 6.5759 388108801 388368001 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 :                                   817.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            939 sec.

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

