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


Performing analysis on: 4FGL_J0358.6+0634_daily_bin47
RA = 59.6656, Dec = 6.5759
tmin = 251510401, tmax = 251769601
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='104180', job_status='RUN', time_executed='2021-08-19 20:01:41.675164', time_epoch_executed='1629428501.68' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='47'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104180

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104180/ft1_4FGL_J0358.6+0634_daily_bin47.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104180/ft2_4FGL_J0358.6+0634_daily_bin47.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104180/ft1_4FGL_J0358.6+0634_daily_bin47.fits outfile=/scratch/kocevski/104180/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin47.fits ra=59.6656 dec=6.5759 rad=12.0 tmin=251510401.0 tmax=251769601.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.71
user 1.27
sys 3.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/104180/ft2_4FGL_J0358.6+0634_daily_bin47.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/104180/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin47.fits evtable="EVENTS" outfile="/scratch/kocevski/104180/ft1_filtered_4FGL_J0358.6+0634_daily_bin47.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 3.42
user 0.32
sys 3.06

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/104180/ft1_filtered_4FGL_J0358.6+0634_daily_bin47.fits" evtable="EVENTS" scfile=/scratch/kocevski/104180/ft2_4FGL_J0358.6+0634_daily_bin47.fits sctable="SC_DATA" outfile=/scratch/kocevski/104180/ltcube_251510401_251769601_4FGL_J0358.6+0634_daily_bin47.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/104180/ft2_4FGL_J0358.6+0634_daily_bin47.fits
.....................!
real 16.38
user 12.37
sys 3.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104180/ft1_filtered_4FGL_J0358.6+0634_daily_bin47.fits evtable="EVENTS" scfile=/scratch/kocevski/104180/ft2_4FGL_J0358.6+0634_daily_bin47.fits sctable="SC_DATA" expcube=/scratch/kocevski/104180/ltcube_251510401_251769601_4FGL_J0358.6+0634_daily_bin47.fits outfile=/scratch/kocevski/104180/expmap_251510401_251769601_4FGL_J0358.6+0634_daily_bin47.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/104180/ltcube_251510401_251769601_4FGL_J0358.6+0634_daily_bin47.fits
.....................!
real 194.22
user 185.80
sys 8.07

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/104180/ft1_filtered_4FGL_J0358.6+0634_daily_bin47.fits scfile=/scratch/kocevski/104180/ft2_4FGL_J0358.6+0634_daily_bin47.fits outfile=/scratch/kocevski/104180/cmap_251510401_251769601_4FGL_J0358.6+0634_daily_bin47.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 3.71
user 0.38
sys 3.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/104180/ft1_filtered_4FGL_J0358.6+0634_daily_bin47.fits scfile=/scratch/kocevski/104180/ft2_4FGL_J0358.6+0634_daily_bin47.fits outfile=/scratch/kocevski/104180/cmap_HighResolution_251510401_251769601_4FGL_J0358.6+0634_daily_bin47.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 3.71
user 0.39
sys 3.31

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5958       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.0687       1.0000         .10000E-03   10000.    
     3 'norm      '    .73170       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.956       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.0003       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.381       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8679       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13997       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6574       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.166       1.0000         .10000E-03   10000.    
    16 'norm      '    .40274       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .93751       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95441       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=   11711.77     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2099 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5956        5.6430        .66371E-07   -.68473E-04
   2  Prefactor     6.0683        9.9091        .56141E-06    .14382E-04
   3  norm          .73154        1.0476        .48056E-06   -.29596E-02
   4  norm          .10000E-03    .27772       -.79375E-08** at limit **
   5  Prefactor     33.952        35.456        .42927E-06   -.34106E-04
   6  Prefactor     .10000E-03    14.842        .37305E-07** at limit **
   7  norm          .10000E-03    7.3244        .37313E-07** at limit **
   8  Prefactor     .10000E-03    21.000        .24627E-05** at limit **
   9  norm          4.0003        3.5064        .61189E-07   -.56876E-04
  10  Prefactor     20.374        23.886        .61349E-06    .17353E-04
  11  norm          .10000E-03    27.665        .16835E-05** at limit **
  12  norm          1.8688        1.0342       -.12356E-06   -.43614E-03
  13  Prefactor     .11752        .85565       -.53850E-06    .18689E-02
  14  Prefactor     4.6258        16.266       -.17792E-05   -.29457E-04
  15  Prefactor     30.259        32.677        .17148E-05    .21802E-03
  16  norm          .40432        1.7256       -.14282E-06    .32309E-03
  17  Prefactor     .10000E-03    25.164       -.31401E-05** at limit **
  18  Prefactor     .10000E-03    6.7241       -.11569E-06** at limit **
  19  Normalizat    .93748        .21281       -.40621E-05   -.39233E-03
  20  Prefactor     .95443        .61727E-01    .31727E-06   -.11351E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.59558
  Prefactor  = 6.06834
  norm       = 0.731535
  norm       = 0.0001
  Prefactor  = 33.9523
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 4.0003
  Prefactor  = 20.3745
  norm       = 0.000100002
  norm       = 1.86882
  Prefactor  = 0.117523
  Prefactor  = 4.62578
  Prefactor  = 30.2594
  norm       = 0.404322
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 0.937482
  Prefactor  = 0.954427
 **********
 **   18 **HESSE 
 **********

 FCN=   11711.77     FROM HESSE     STATUS=OK           297 CALLS     2396 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5956        5.6449        .15625E-03   -1.5194    
   2  Prefactor     6.0683        9.9182        .16298E-03   -1.5215    
   3  norm          .73154        5.2529        .24061E-02   -1.5537    
   4  norm          .10000E-03    .28122        .55652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.952        35.483        .68769E-04   -1.4542    
   6  Prefactor     .10000E-03    15.218        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.3311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.0003        3.4989        .18238E-03   -1.5308    
  10  Prefactor     20.374        23.893        .88721E-04   -1.4805    
  11  norm          .10000E-03    28.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8688        1.0361        .74992E-04   -1.5435    
  13  Prefactor     .11752        6.8070        .15509E-02   -1.5639    
  14  Prefactor     4.6258        16.528        .18648E-03   -1.5278    
  15  Prefactor     30.259        33.690        .72948E-04   -1.4607    
  16  norm          .40432        3.1061        .22692E-02   -1.5581    
  17  Prefactor     .10000E-03    25.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.9615        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .93748        .22801        .45834E-03   -.95155    
  20  Prefactor     .95443        .66741E-01    .13867E-03   -.94264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89715e-08
Minuit parameter uncertainties:
  1  5.64538
  2  9.92085
  3  3.92076
  4  8.57291e-07
  5  35.5053
  6  2.88078e-05
  7  7.60477e-06
  8  0.000472864
  9  3.49911
  10  23.9045
  11  0.000424072
  12  1.03614
  13  1.78829
  14  16.5441
  15  33.7108
  16  2.2412
  17  0.000579464
  18  2.48481e-05
  19  0.22825
  20  0.0667472
Done.

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

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  3.395e+01  3.551e+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.544e-01  6.675e-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.375e-01  2.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.24
Ra Dec: 59.666 6.576
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 4.04e-08 +/- 4.22e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 1.14e-05

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

Saving results to:
/scratch/kocevski/104180/likelihoodResults_251510401_251769601_4FGL_J0358.6+0634_daily_bin47.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) = 11711.7671523
delta logL = 0.0062456763626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11711.763913
delta logL = 0.00948499070364

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.685       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6927       1.0000          .0000       10.000    
     3 'Normalizat'    .93373       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95508       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=   11711.76     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      269 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.690        45.574        .72331E-04    .78588E-04
   2  Index         2.6916        1.0194        .10859E-01    .22641E-04
   3  Normalizat    .93373        .21732        .45917E-03    .40298E-03
   4  Prefactor     .95509        .66049E-01    .13863E-03    .13065E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.6902
  Index      = 2.6916
  Normalizat = 0.933725
  Prefactor  = 0.95509
 **********
 **   18 **HESSE 
 **********

 FCN=   11711.76     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.690        41.232        .28932E-05   -1.4599    
   2  Index         2.6916        .92327        .43435E-03   -.47989    
   3  Normalizat    .93373        .21718        .18367E-04   -.95285    
   4  Prefactor     .95509        .66012E-01    .27725E-04   -.94242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51022e-10
Minuit parameter uncertainties:
  1  41.2706
  2  0.930067
  3  0.217386
  4  0.0660172
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104180': 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) = 11711.7639119
delta logL = 0.00948608093313

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  3.069e+01  4.127e+01  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  2.692e+00  9.301e-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.551e-01  6.602e-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.337e-01  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.26
Ra Dec: 59.666 6.576
Photon Index (Free Index): 2.69 +/- 0.93
Photon Flux (Free Index): 4.36e-08 +/- 4.92e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.12e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/104180/cmap_HighResolution_251510401_251769601_4FGL_J0358.6+0634_daily_bin47.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='4.04e-08', energy_flux2='1.06e-05', photon_flux_error='4.22e-08', dlogl='9.49e-03', energy_flux='1.09e-05', photon_flux2='4.36e-08', job_status='DONE', time_completed='2021-08-19 20:15:49.886411', photon_index_error2='0.93', photon_index2='2.69', ts='1.24', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='1.12e-05', EG='0.94', time_epoch_completed='1629429349.89', return_code='0', job_id='104180', GAL2='0.96', EG2='0.93', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='4.92e-08', ts2='1.26', photon_index='2.57' WHERE bin_id='47' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 20:15:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 104180: <4FGL_J0358.6+0634_daily_bin47> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin47 59.6656 6.5759 251510401 251769601 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 :                                   895.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             360.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

