/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 5 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 = 6842
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0358.6+0634_daily_bin391
RA = 59.6656, Dec = 6.5759
tmin = 340675201, tmax = 340934401
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='105823', job_status='RUN', time_executed='2021-08-19 20:06:18.097942', time_epoch_executed='1629428778.1' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/105823

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/105823/ft1_4FGL_J0358.6+0634_daily_bin391.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/105823/ft2_4FGL_J0358.6+0634_daily_bin391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/105823/ft1_4FGL_J0358.6+0634_daily_bin391.fits outfile=/scratch/kocevski/105823/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin391.fits ra=59.6656 dec=6.5759 rad=12.0 tmin=340675201.0 tmax=340934401.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 7.11
user 5.90
sys 1.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/105823/ft1_filtered_4FGL_J0358.6+0634_daily_bin391.fits" evtable="EVENTS" scfile=/scratch/kocevski/105823/ft2_4FGL_J0358.6+0634_daily_bin391.fits sctable="SC_DATA" outfile=/scratch/kocevski/105823/ltcube_340675201_340934401_4FGL_J0358.6+0634_daily_bin391.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/105823/ft2_4FGL_J0358.6+0634_daily_bin391.fits
.....................!
real 11.70
user 10.18
sys 1.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/105823/ft1_filtered_4FGL_J0358.6+0634_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/105823/ft2_4FGL_J0358.6+0634_daily_bin391.fits sctable="SC_DATA" expcube=/scratch/kocevski/105823/ltcube_340675201_340934401_4FGL_J0358.6+0634_daily_bin391.fits outfile=/scratch/kocevski/105823/expmap_340675201_340934401_4FGL_J0358.6+0634_daily_bin391.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/105823/ltcube_340675201_340934401_4FGL_J0358.6+0634_daily_bin391.fits
.....................!
real 193.27
user 186.84
sys 6.10

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/105823/ft1_filtered_4FGL_J0358.6+0634_daily_bin391.fits scfile=/scratch/kocevski/105823/ft2_4FGL_J0358.6+0634_daily_bin391.fits outfile=/scratch/kocevski/105823/cmap_340675201_340934401_4FGL_J0358.6+0634_daily_bin391.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.42
user 0.37
sys 1.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/105823/ft1_filtered_4FGL_J0358.6+0634_daily_bin391.fits scfile=/scratch/kocevski/105823/ft2_4FGL_J0358.6+0634_daily_bin391.fits outfile=/scratch/kocevski/105823/cmap_HighResolution_340675201_340934401_4FGL_J0358.6+0634_daily_bin391.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.43
user 0.38
sys 1.04

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5082       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.0221       1.0000         .10000E-03   10000.    
     4 'norm      '    8.1532       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6921       1.0000         .10000E-03   10000.    
     7 'norm      '    4.3973       1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.974       1.0000         .10000E-03   10000.    
     9 'norm      '    .10228E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3243       1.0000         .10000E-03   10000.    
    11 'norm      '    12.539       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5556       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7347       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5335       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .26916       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.0177       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0578       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93188       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=   10841.50     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2075 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5072        6.0744       -.18643E-06    .17586E-03
   2  Prefactor     .10000E-03    16.364       -.15695E-06** at limit **
   3  norm          4.0223        4.2247        .96735E-07    .29919E-04
   4  norm          8.1535        2.0139       -.50087E-08    .28577E-03
   5  Prefactor     .10000E-03    21.588       -.10760E-05** at limit **
   6  Prefactor     6.6889        16.527       -.30879E-06    .41035E-04
   7  norm          4.3995        14.808       -.30563E-06    .20577E-04
   8  Prefactor     32.996        27.179       -.22384E-05   -.28567E-03
   9  norm          .10000E-03    3.5146       -.20191E-05** at limit **
  10  Prefactor     4.3143        44.052        .18945E-05    .10143E-03
  11  norm          12.528        19.416        .13658E-05    .24848E-03
  12  norm          1.5557        1.0905        .51379E-07    .13544E-02
  13  Prefactor     2.7347        1.5851        .69366E-07    .30259E-02
  14  Prefactor     8.5528        25.325        .50332E-05    .42836E-04
  15  Prefactor     .10000E-03    17.386       -.21340E-06** at limit **
  16  norm          .25353        7.6377       -.80072E-05    .31339E-03
  17  Prefactor     9.0154        34.216        .62976E-06    .28688E-04
  18  Prefactor     .10000E-03    5.4900       -.44621E-06** at limit **
  19  Normalizat    1.0576        .23783       -.54995E-06    .19737E-03
  20  Prefactor     .93192        .65758E-01    .69722E-06    .13029E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.50719
  Prefactor  = 0.0001
  norm       = 4.0223
  norm       = 8.15349
  Prefactor  = 0.000100001
  Prefactor  = 6.6889
  norm       = 4.39948
  Prefactor  = 32.9964
  norm       = 0.000100001
  Prefactor  = 4.31434
  norm       = 12.5276
  norm       = 1.55566
  Prefactor  = 2.73474
  Prefactor  = 8.55283
  Prefactor  = 0.0001
  norm       = 0.253531
  Prefactor  = 9.01543
  Prefactor  = 0.0001
  Normalizat = 1.05762
  Prefactor  = 0.931922
 **********
 **   18 **HESSE 
 **********

 FCN=   10841.50     FROM HESSE     STATUS=OK           303 CALLS     2378 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5072        6.0803        .25801E-03   -1.5391    
   2  Prefactor     .10000E-03    16.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.0223        4.2276        .20108E-03   -1.5307    
   4  norm          8.1535        2.0215        .69468E-04   -1.5137    
   5  Prefactor     .10000E-03    21.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.6889        16.465        .15511E-03   -1.5191    
   7  norm          4.3995        14.759        .19206E-03   -1.5288    
   8  Prefactor     32.996        27.657        .69782E-04   -1.4558    
   9  norm          .10000E-03    22.770        .34043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.3143        43.956        .19371E-03   -1.5293    
  11  norm          12.528        19.459        .11312E-03   -1.5000    
  12  norm          1.5557        1.0416        .83331E-04   -1.5459    
  13  Prefactor     2.7347        1.5998        .47136E-03   -1.5377    
  14  Prefactor     8.5528        25.942        .13723E-03   -1.5123    
  15  Prefactor     .10000E-03    17.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .25353        8.5605        .19565E-02   -1.5607    
  17  Prefactor     9.0154        34.214        .13347E-03   -1.5107    
  18  Prefactor     .10000E-03    5.5711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0576        .25676        .46222E-03   -.91124    
  20  Prefactor     .93192        .72270E-01    .14524E-03   -.95034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54446e-09
Minuit parameter uncertainties:
  1  6.08181
  2  0.000147775
  3  4.22788
  4  2.02155
  5  0.000244866
  6  16.4764
  7  14.7709
  8  27.6672
  9  0.000366917
  10  27.5679
  11  19.4691
  12  1.04166
  13  1.59986
  14  25.9758
  15  5.88614e-07
  16  2.94629
  17  34.2888
  18  5.68276e-05
  19  0.257065
  20  0.0722774
Done.

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

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  2.449e-04  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.319e-01  7.228e-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.058e+00  2.571e-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: 9.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/105823/likelihoodResults_340675201_340934401_4FGL_J0358.6+0634_daily_bin391.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) = 10841.4962853
delta logL = -0.000219842169827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10841.4960654
delta logL = 1.24282450997e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5282       1.0000          .0000       10.000    
     3 'Normalizat'    1.0576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93193       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=   10841.50     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      282 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    223.92        .18142E-01** at limit **
   2  Index         1.7441        8.8916        .50000       -.12413E-05
   3  Normalizat    1.0576        .11339E-01    .46222E-03   -.12982E-03
   4  Prefactor     .93192        .33950E-02    .14524E-03   -.40071E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100015
  Index      = 1.74412
  Normalizat = 1.05762
  Prefactor  = 0.93192
 **********
 **   18 **HESSE 
 **********

 FCN=   10841.50     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      309 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    1103.8        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7441        7.8304        .50000       -.70913    
   3  Normalizat    1.0576        .25622E-01    .18489E-04   -.91124    
   4  Prefactor     .93192        .76718E-02    .29048E-04   -.95034    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.71576e-08
Minuit parameter uncertainties:
  1  0.0084131
  2  774.091
  3  0.0256218
  4  0.00767177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/105823': 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): 102
logL (Free Index) = 10841.4960639
delta logL = 1.58573311637e-06

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  8.413e-03  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  1.744e+00  7.741e+02  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.319e-01  7.672e-03  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.058e+00  2.562e-02  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/105823/cmap_HighResolution_340675201_340934401_4FGL_J0358.6+0634_daily_bin391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.43e-03', job_status='DONE', photon_flux_upper_limit='9.51e-08', time_completed='2021-08-19 20:19:43.279974', job_id='105823', GAL2='0.93', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1629429583.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.59e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='391' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 20:19:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 105823: <4FGL_J0358.6+0634_daily_bin391> in cluster <slac> Done

Job <4FGL_J0358.6+0634_daily_bin391> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 20:05:48 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 20:05:50 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:05:50 2021
Terminated at Thu Aug 19 20:19:46 2021
Results reported at Thu Aug 19 20:19:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin391 59.6656 6.5759 340675201 340934401 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 :                                   816.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             319.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            838 sec.

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

