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


Performing analysis on: 4FGL_J0358.6+0634_daily_bin576
RA = 59.6656, Dec = 6.5759
tmin = 388627201, tmax = 388886401
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='107140', job_status='RUN', time_executed='2021-08-19 20:12:52.949007', time_epoch_executed='1629429172.95' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='576'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107140

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107140/ft1_4FGL_J0358.6+0634_daily_bin576.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107140/ft2_4FGL_J0358.6+0634_daily_bin576.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107140/ft1_4FGL_J0358.6+0634_daily_bin576.fits outfile=/scratch/kocevski/107140/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin576.fits ra=59.6656 dec=6.5759 rad=12.0 tmin=388627201.0 tmax=388886401.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.76
user 3.75
sys 0.98

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107140/ft1_filtered_4FGL_J0358.6+0634_daily_bin576.fits" evtable="EVENTS" scfile=/scratch/kocevski/107140/ft2_4FGL_J0358.6+0634_daily_bin576.fits sctable="SC_DATA" outfile=/scratch/kocevski/107140/ltcube_388627201_388886401_4FGL_J0358.6+0634_daily_bin576.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/107140/ft2_4FGL_J0358.6+0634_daily_bin576.fits
.....................!
real 12.57
user 11.38
sys 1.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107140/ft1_filtered_4FGL_J0358.6+0634_daily_bin576.fits evtable="EVENTS" scfile=/scratch/kocevski/107140/ft2_4FGL_J0358.6+0634_daily_bin576.fits sctable="SC_DATA" expcube=/scratch/kocevski/107140/ltcube_388627201_388886401_4FGL_J0358.6+0634_daily_bin576.fits outfile=/scratch/kocevski/107140/expmap_388627201_388886401_4FGL_J0358.6+0634_daily_bin576.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/107140/ltcube_388627201_388886401_4FGL_J0358.6+0634_daily_bin576.fits
.....................!
real 191.06
user 185.14
sys 5.59

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/107140/ft1_filtered_4FGL_J0358.6+0634_daily_bin576.fits scfile=/scratch/kocevski/107140/ft2_4FGL_J0358.6+0634_daily_bin576.fits outfile=/scratch/kocevski/107140/cmap_388627201_388886401_4FGL_J0358.6+0634_daily_bin576.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.26
user 0.38
sys 0.87

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107140/ft1_filtered_4FGL_J0358.6+0634_daily_bin576.fits scfile=/scratch/kocevski/107140/ft2_4FGL_J0358.6+0634_daily_bin576.fits outfile=/scratch/kocevski/107140/cmap_HighResolution_388627201_388886401_4FGL_J0358.6+0634_daily_bin576.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.28
user 0.36
sys 0.90

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4969       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.7756       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.3264       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.6984       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.819       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .33176E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.6527       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2350       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.250       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .14396E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9349       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5844       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85079       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=   7950.534     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     1806 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4969        4.9912       -.37647E-07   -.80427E-05
   2  Prefactor     6.7711        15.147       -.10261E-06    .67999E-05
   3  norm          .10000E-03    4.6419        .24339E-07** at limit **
   4  norm          1.3260        1.4894        .81387E-07    .61612E-05
   5  Prefactor     5.5615        84.985       -.23083E-05   -.40324E-04
   6  Prefactor     10.815        14.962       -.22793E-06    .60436E-04
   7  norm          .10000E-03    11.279        .34244E-07** at limit **
   8  Prefactor     .10000E-03    82.479        .30081E-05** at limit **
   9  norm          .10000E-03    2.3893        .37054E-07** at limit **
  10  Prefactor     .10000E-03    22.816       -.49554E-06** at limit **
  11  norm          4.6314        27.093       -.60685E-06    .88575E-04
  12  norm          1.2343        1.2387       -.62928E-07   -.13810E-03
  13  Prefactor     .10000E-03    1.0732        .16652E-06** at limit **
  14  Prefactor     13.277        20.699        .51482E-05    .54629E-03
  15  Prefactor     .10000E-03    37.769       -.24001E-06** at limit **
  16  norm          .10000E-03    1.9530       -.29032E-05** at limit **
  17  Prefactor     .10000E-03    28.285        .21425E-06** at limit **
  18  Prefactor     3.9353        7.5650        .86918E-06    .33789E-03
  19  Normalizat    1.5848        .27337        .15090E-05    .27329E-03
  20  Prefactor     .85066        .74245E-01   -.30280E-06    .76155E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.49692
  Prefactor  = 6.77108
  norm       = 0.0001
  norm       = 1.32603
  Prefactor  = 5.5615
  Prefactor  = 10.815
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.63144
  norm       = 1.23432
  Prefactor  = 0.000100002
  Prefactor  = 13.277
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 3.93525
  Normalizat = 1.58481
  Prefactor  = 0.85066
 **********
 **   18 **HESSE 
 **********

 FCN=   7950.534     FROM HESSE     STATUS=OK           291 CALLS     2097 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4969        4.9925        .15745E-03   -1.5198    
   2  Prefactor     6.7711        15.155        .15414E-03   -1.5187    
   3  norm          .10000E-03    4.7314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.3260        1.4643        .11109E-03   -1.5478    
   5  Prefactor     5.5615        85.101        .16827E-03   -1.5236    
   6  Prefactor     10.815        14.949        .12181E-03   -1.5050    
   7  norm          .10000E-03    11.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    83.257        .21347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.4045        .13457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.6314        26.006        .18658E-03   -1.5278    
  12  norm          1.2343        1.1806        .92680E-04   -1.5486    
  13  Prefactor     .10000E-03    3.7680        .16914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.277        22.633        .11004E-03   -1.4979    
  15  Prefactor     .10000E-03    37.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.6706        .20515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.9353        7.5996        .20337E-03   -1.5311    
  19  Normalizat    1.5848        .30426        .39906E-03   -.75422    
  20  Prefactor     .85066        .82902E-01    .15044E-03   -.97887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17273e-09
Minuit parameter uncertainties:
  1  4.99279
  2  15.1638
  3  1.45374e-07
  4  1.46434
  5  43.5841
  6  14.9543
  7  7.39225e-07
  8  0.000802567
  9  1.32626e-06
  10  4.83635e-05
  11  21.964
  12  1.1806
  13  0.000166184
  14  22.6475
  15  0.000183159
  16  0.000200153
  17  7.43376e-05
  18  7.60149
  19  0.304612
  20  0.0829144
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
460    Prefactor:  8.507e-01  8.291e-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.585e+00  3.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/107140/likelihoodResults_388627201_388886401_4FGL_J0358.6+0634_daily_bin576.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) = 7950.17723688
delta logL = 0.357164001515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7950.16778453
delta logL = 0.366616347221

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9678       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2495       1.0000          .0000       10.000    
     3 'Normalizat'    1.4973       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86282       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7950.168     FROM MIGRAD    STATUS=FAILED       104 CALLS      291 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9824        311.87        .90218E-03   -.15879E-03
   2  Index         4.2480        6.8821        .82314E-02    .56623E-03
   3  Normalizat    1.4973        .25870        .40842E-03   -.10330E-03
   4  Prefactor     .86281        .72661E-01    .14945E-03   -.32776E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7950.168     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      378 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9824        311.87        .25183E-03   -.15879E-03
   2  Index         4.2480        6.8821        .10752E-02    .56623E-03
   3  Normalizat    1.4973        .25870        .20476E-03   -.10330E-03
   4  Prefactor     .86281        .72661E-01    .71865E-04   -.32776E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7950.168     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      411 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9823        22.672        .36087E-04   -.16665E-03
   2  Index         4.2480        2.3707        .16463E-02   -.25261E-04
   3  Normalizat    1.4973        .30449        .16337E-04   -.86709E-04
   4  Prefactor     .86281        .83987E-01    .29890E-04   -.27850E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.98232
  Index      = 4.24802
  Normalizat = 1.49735
  Prefactor  = 0.862815
 **********
 **   18 **HESSE 
 **********

 FCN=   7950.168     FROM HESSE     STATUS=OK            23 CALLS      434 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9823        17.228        .14435E-05   -1.5262    
   2  Index         4.2480        1.9493        .65851E-04   -.15097    
   3  Normalizat    1.4973        .30423        .32673E-05   -.77853    
   4  Prefactor     .86281        .83878E-01    .59779E-05   -.97453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70058e-11
Minuit parameter uncertainties:
  1  17.2452
  2  2.00367
  3  0.304598
  4  0.0838909
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107140': 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) = 7950.16778414
delta logL = 0.366616740976

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  4.982e+00  1.725e+01  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  4.248e+00  2.004e+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:  8.628e-01  8.389e-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.497e+00  3.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/107140/cmap_HighResolution_388627201_388886401_4FGL_J0358.6+0634_daily_bin576.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', job_status='DONE', photon_flux_upper_limit='1.52e-07', time_completed='2021-08-19 20:23:45.443759', job_id='107140', GAL2='0.86', fit_tolerance='1e-08', EG2='1.50', EG='1.58', time_epoch_completed='1629429825.44', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='3.67e-01', ts2='0.83', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='576' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 20:23:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 107140: <4FGL_J0358.6+0634_daily_bin576> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin576 59.6656 6.5759 388627201 388886401 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 :                                   663.23 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             298.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            794 sec.

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

