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


Performing analysis on: 4FGL_J0358.6+0634_daily_bin860
RA = 59.6656, Dec = 6.5759
tmin = 462240001, tmax = 462499201
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='108635', job_status='RUN', time_executed='2021-08-19 20:18:05.843377', time_epoch_executed='1629429485.84' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='860'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/108635

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/108635/ft1_4FGL_J0358.6+0634_daily_bin860.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/108635/ft2_4FGL_J0358.6+0634_daily_bin860.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/108635/ft1_4FGL_J0358.6+0634_daily_bin860.fits outfile=/scratch/kocevski/108635/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin860.fits ra=59.6656 dec=6.5759 rad=12.0 tmin=462240001.0 tmax=462499201.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.15
user 3.41
sys 1.72

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/108635/ft1_filtered_4FGL_J0358.6+0634_daily_bin860.fits" evtable="EVENTS" scfile=/scratch/kocevski/108635/ft2_4FGL_J0358.6+0634_daily_bin860.fits sctable="SC_DATA" outfile=/scratch/kocevski/108635/ltcube_462240001_462499201_4FGL_J0358.6+0634_daily_bin860.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/108635/ft2_4FGL_J0358.6+0634_daily_bin860.fits
.....................!
real 13.56
user 11.53
sys 1.99

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/108635/ft1_filtered_4FGL_J0358.6+0634_daily_bin860.fits evtable="EVENTS" scfile=/scratch/kocevski/108635/ft2_4FGL_J0358.6+0634_daily_bin860.fits sctable="SC_DATA" expcube=/scratch/kocevski/108635/ltcube_462240001_462499201_4FGL_J0358.6+0634_daily_bin860.fits outfile=/scratch/kocevski/108635/expmap_462240001_462499201_4FGL_J0358.6+0634_daily_bin860.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/108635/ltcube_462240001_462499201_4FGL_J0358.6+0634_daily_bin860.fits
.....................!
real 192.19
user 185.10
sys 6.78

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/108635/ft1_filtered_4FGL_J0358.6+0634_daily_bin860.fits scfile=/scratch/kocevski/108635/ft2_4FGL_J0358.6+0634_daily_bin860.fits outfile=/scratch/kocevski/108635/cmap_462240001_462499201_4FGL_J0358.6+0634_daily_bin860.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 2.00
user 0.37
sys 1.62

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/108635/ft1_filtered_4FGL_J0358.6+0634_daily_bin860.fits scfile=/scratch/kocevski/108635/ft2_4FGL_J0358.6+0634_daily_bin860.fits outfile=/scratch/kocevski/108635/cmap_HighResolution_462240001_462499201_4FGL_J0358.6+0634_daily_bin860.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 2.05
user 0.40
sys 1.60

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10840E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.5269       1.0000         .10000E-03   10000.    
     4 'norm      '    8.9572       1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.748       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2652       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17802E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    45.611       1.0000         .10000E-03   10000.    
    12 'norm      '    .10459E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .64235       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.631       1.0000         .10000E-03   10000.    
    15 'Prefactor '    44.779       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0910       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3614       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0693       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98486       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=   10869.97     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2132 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.968        .35072E-05** at limit **
   2  Prefactor     .10000E-03    3.7645        .13903E-06** at limit **
   3  norm          2.5269        3.0748       -.10477E-07   -.22639E-04
   4  norm          8.9572        2.3026        .54735E-08   -.23663E-03
   5  Prefactor     28.726        42.402       -.89440E-06   -.14723E-03
   6  Prefactor     7.2647        10.743        .10317E-06   -.31693E-04
   7  norm          .10000E-03    8.0592        .68997E-07** at limit **
   8  Prefactor     .10000E-03    6.9296        .70881E-07** at limit **
   9  norm          .10000E-03    2.1303        .11797E-06** at limit **
  10  Prefactor     .10000E-03    81.744        .18969E-05** at limit **
  11  norm          45.610        28.085       -.29404E-06   -.12725E-03
  12  norm          .10000E-03    1.2655       -.14778E-05** at limit **
  13  Prefactor     .64304        1.0175       -.17041E-06   -.23546E-03
  14  Prefactor     23.632        22.735       -.32521E-07   -.58169E-04
  15  Prefactor     44.799        37.243       -.16522E-05   -.62137E-04
  16  norm          2.0897        2.3399        .64194E-07   -.18140E-03
  17  Prefactor     .10000E-03    36.630       -.15492E-05** at limit **
  18  Prefactor     3.3604        7.2025       -.26398E-06   -.23897E-03
  19  Normalizat    1.0693        .24126       -.33714E-06   -.18256E-03
  20  Prefactor     .98487        .66763E-01   -.28972E-06   -.86092E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.52691
  norm       = 8.95723
  Prefactor  = 28.7259
  Prefactor  = 7.26471
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  norm       = 45.6103
  norm       = 0.0001
  Prefactor  = 0.643036
  Prefactor  = 23.6323
  Prefactor  = 44.799
  norm       = 2.08968
  Prefactor  = 0.000100003
  Prefactor  = 3.36035
  Normalizat = 1.06927
  Prefactor  = 0.984866
 **********
 **   18 **HESSE 
 **********

 FCN=   10869.97     FROM HESSE     STATUS=OK           301 CALLS     2433 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3763        .56873E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.7732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.5269        3.0707        .19684E-03   -1.5390    
   4  norm          8.9572        2.3089        .76242E-04   -1.5109    
   5  Prefactor     28.726        42.643        .74722E-04   -1.4636    
   6  Prefactor     7.2647        10.728        .14881E-03   -1.5169    
   7  norm          .10000E-03    8.0756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.9321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.1594        .14872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    84.584        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          45.610        28.153        .59367E-04   -1.4356    
  12  norm          .10000E-03    1.2948        .14701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .64304        1.0208        .15675E-02   -1.5548    
  14  Prefactor     23.632        22.535        .82402E-04   -1.4735    
  15  Prefactor     44.799        37.245        .59913E-04   -1.4368    
  16  norm          2.0897        2.3010        .14996E-03   -1.5419    
  17  Prefactor     .10000E-03    36.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3604        7.2113        .22072E-03   -1.5341    
  19  Normalizat    1.0693        .26049        .47212E-03   -.90745    
  20  Prefactor     .98487        .73292E-01    .14547E-03   -.93236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.1283e-09
Minuit parameter uncertainties:
  1  2.23125e-05
  2  1.62839e-05
  3  3.07093
  4  2.30888
  5  42.6879
  6  10.7311
  7  1.17953e-05
  8  1.1778e-05
  9  1.30455e-05
  10  0.00125501
  11  28.1611
  12  3.37939e-05
  13  1.02086
  14  22.5435
  15  37.2644
  16  2.30113
  17  0.000658061
  18  7.21316
  19  0.260801
  20  0.0732998
Done.

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

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  2.873e+01  4.269e+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.849e-01  7.330e-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.069e+00  2.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/108635/likelihoodResults_462240001_462499201_4FGL_J0358.6+0634_daily_bin860.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) = 10869.9180132
delta logL = 0.0535967937649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10869.9048762
delta logL = 0.0667337965551

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.141       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1616       1.0000          .0000       10.000    
     3 'Normalizat'    1.0818       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98258       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=   10869.90     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      280 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.091        50.055        .66664E-04    .49115E-05
   2  Index         2.1621        .95262        .11186E-01   -.37239E-05
   3  Normalizat    1.0818        .24425        .46964E-03   -.19070E-03
   4  Prefactor     .98258        .72568E-01    .14561E-03    .59863E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.0911
  Index      = 2.16207
  Normalizat = 1.08179
  Prefactor  = 0.98258
 **********
 **   18 **HESSE 
 **********

 FCN=   10869.90     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.091        49.934        .13333E-04   -1.4506    
   2  Index         2.1621        .95001        .44743E-03   -.60357    
   3  Normalizat    1.0818        .24428        .18786E-04   -.90338    
   4  Prefactor     .98258        .72581E-01    .29122E-04   -.93312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.94148e-10
Minuit parameter uncertainties:
  1  49.9919
  2  0.958652
  3  0.244535
  4  0.0725883
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/108635': 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) = 10869.9048756
delta logL = 0.066734398617

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  3.609e+01  4.999e+01  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  2.162e+00  9.587e-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:  9.826e-01  7.259e-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.082e+00  2.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.56
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/108635/cmap_HighResolution_462240001_462499201_4FGL_J0358.6+0634_daily_bin860.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', job_status='DONE', photon_flux_upper_limit='1.45e-07', time_completed='2021-08-19 20:31:50.262695', job_id='108635', GAL2='0.98', fit_tolerance='1e-08', EG2='1.08', EG='1.07', time_epoch_completed='1629430310.26', return_code2='0', ts='0.56', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='6.67e-02', ts2='0.69', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='860' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 20:31:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 108635: <4FGL_J0358.6+0634_daily_bin860> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin860 59.6656 6.5759 462240001 462499201 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 :                                   843.20 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             279.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            974 sec.

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

