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


Performing analysis on: 4FGL_J0358.6+0634_daily_bin322
RA = 59.6656, Dec = 6.5759
tmin = 322790401, tmax = 323049601
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='105712', job_status='RUN', time_executed='2021-08-19 20:11:24.560201', time_epoch_executed='1629429084.56' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/105712

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/105712/ft1_4FGL_J0358.6+0634_daily_bin322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/105712/ft2_4FGL_J0358.6+0634_daily_bin322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/105712/ft1_4FGL_J0358.6+0634_daily_bin322.fits outfile=/scratch/kocevski/105712/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin322.fits ra=59.6656 dec=6.5759 rad=12.0 tmin=322790401.0 tmax=323049601.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 19.75
user 11.52
sys 8.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/105712/ft1_filtered_4FGL_J0358.6+0634_daily_bin322.fits" evtable="EVENTS" scfile=/scratch/kocevski/105712/ft2_4FGL_J0358.6+0634_daily_bin322.fits sctable="SC_DATA" outfile=/scratch/kocevski/105712/ltcube_322790401_323049601_4FGL_J0358.6+0634_daily_bin322.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/105712/ft2_4FGL_J0358.6+0634_daily_bin322.fits
.....................!
real 20.23
user 11.09
sys 9.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/105712/ft1_filtered_4FGL_J0358.6+0634_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/105712/ft2_4FGL_J0358.6+0634_daily_bin322.fits sctable="SC_DATA" expcube=/scratch/kocevski/105712/ltcube_322790401_323049601_4FGL_J0358.6+0634_daily_bin322.fits outfile=/scratch/kocevski/105712/expmap_322790401_323049601_4FGL_J0358.6+0634_daily_bin322.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/105712/ltcube_322790401_323049601_4FGL_J0358.6+0634_daily_bin322.fits
.....................!
real 201.92
user 186.46
sys 15.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/105712/ft1_filtered_4FGL_J0358.6+0634_daily_bin322.fits scfile=/scratch/kocevski/105712/ft2_4FGL_J0358.6+0634_daily_bin322.fits outfile=/scratch/kocevski/105712/cmap_322790401_323049601_4FGL_J0358.6+0634_daily_bin322.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 8.18
user 0.38
sys 7.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/105712/ft1_filtered_4FGL_J0358.6+0634_daily_bin322.fits scfile=/scratch/kocevski/105712/ft2_4FGL_J0358.6+0634_daily_bin322.fits outfile=/scratch/kocevski/105712/cmap_HighResolution_322790401_323049601_4FGL_J0358.6+0634_daily_bin322.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 8.19
user 0.39
sys 7.78

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    50.240       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.1898       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.413       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.417       1.0000         .10000E-03   10000.    
     9 'norm      '    12.857       1.0000         .10000E-03   10000.    
    10 'Prefactor '    74.501       1.0000         .10000E-03   10000.    
    11 'norm      '    43.963       1.0000         .10000E-03   10000.    
    12 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4341       1.0000         .10000E-03   10000.    
    14 'Prefactor '    71.326       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16542       1.0000         .10000E-03   10000.    
    16 'norm      '    .10124E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.738       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .59091       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90077       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=   2654.520     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     2051 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6669       -.92189E-07** at limit **
   2  Prefactor     50.232        43.319        .34306E-07    .43385E-05
   3  norm          .10000E-03    5.6604       -.22424E-07** at limit **
   4  norm          3.1902        3.8158        .54303E-07    .22476E-05
   5  Prefactor     .10000E-03    48.777       -.10306E-05** at limit **
   6  Prefactor     26.422        35.141       -.29175E-06   -.43396E-04
   7  norm          .10000E-03    26.440       -.20638E-07** at limit **
   8  Prefactor     27.427        51.089       -.47915E-07    .10708E-04
   9  norm          12.856        12.470       -.32284E-06   -.21800E-04
  10  Prefactor     74.473        65.576       -.76788E-07   -.14118E-05
  11  norm          43.850        77.886       -.27184E-05    .67295E-05
  12  norm          .10000E-03    1.3004        .24390E-07** at limit **
  13  Prefactor     4.4285        4.3379       -.84936E-06   -.56920E-04
  14  Prefactor     71.326        65.643       -.19287E-05   -.45861E-04
  15  Prefactor     .10002E-03    2057.4        .18933E-04** at limit **
  16  norm          .10000E-03    7.7221        .55700E-05** at limit **
  17  Prefactor     49.746        65.790       -.16742E-06   -.10066E-04
  18  Prefactor     .10000E-03    11.166        .62734E-06** at limit **
  19  Normalizat    .59029        .52068       -.22532E-05   -.27734E-04
  20  Prefactor     .90088        .13372        .16596E-06   -.11545E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 50.2322
  norm       = 0.0001
  norm       = 3.19023
  Prefactor  = 0.0001
  Prefactor  = 26.422
  norm       = 0.0001
  Prefactor  = 27.4266
  norm       = 12.8557
  Prefactor  = 74.4725
  norm       = 43.8498
  norm       = 0.0001
  Prefactor  = 4.42854
  Prefactor  = 71.3261
  Prefactor  = 0.000100016
  norm       = 0.0001
  Prefactor  = 49.7458
  Prefactor  = 0.0001
  Normalizat = 0.590293
  Prefactor  = 0.90088
 **********
 **   18 **HESSE 
 **********

 FCN=   2654.520     FROM HESSE     STATUS=OK           289 CALLS     2340 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6762        .11979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     50.232        43.206        .56579E-04   -1.4289    
   3  norm          .10000E-03    5.6655        .11973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.1902        3.8034        .10573E-03   -1.5351    
   5  Prefactor     .10000E-03    48.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.422        35.064        .77948E-04   -1.4679    
   7  norm          .10000E-03    26.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.427        51.070        .76511E-04   -1.4660    
   9  norm          12.856        12.467        .11171E-03   -1.4991    
  10  Prefactor     74.473        65.585        .46517E-04   -1.3980    
  11  norm          43.850        77.671        .30232E-03   -1.4383    
  12  norm          .10000E-03    1.3058        .57360E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.4285        4.3279        .10087E-03   -1.5287    
  14  Prefactor     71.326        65.869        .23767E-03   -1.4017    
  15  Prefactor     .10002E-03    2143.1        .39275E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.7842        .13933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     49.746        65.789        .56862E-04   -1.4296    
  18  Prefactor     .10000E-03    11.185        .16817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .59029        .51961        .61444E-03   -1.0840    
  20  Prefactor     .90088        .13598        .13424E-03   -.96110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25222e-11
Minuit parameter uncertainties:
  1  1.88128e-06
  2  43.233
  3  7.19799e-07
  4  3.80364
  5  3.07855e-05
  6  35.0914
  7  1.8158e-06
  8  51.152
  9  12.4695
  10  65.6491
  11  77.851
  12  3.68904e-06
  13  4.3282
  14  65.9359
  15  0.0121551
  16  8.12325e-07
  17  65.8857
  18  1.02862e-06
  19  0.523995
  20  0.136034
Done.

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

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  3.079e-05  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.009e-01  1.360e-01  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:  5.903e-01  5.240e-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: 2.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.94e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/105712/likelihoodResults_322790401_323049601_4FGL_J0358.6+0634_daily_bin322.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) = 2654.51986076
delta logL = -9.75508010015e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2654.51976399
delta logL = -7.86375039752e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9615       1.0000          .0000       10.000    
     3 'Normalizat'    .59029       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90088       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=   2654.520     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      285 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10967E-03    34.100        .18142E-01** at limit **
   2  Index         2.8067        6.7105        .50000        .10458E-04
   3  Normalizat    .59029        .12517E-01    .61448E-03   -.15273E-04
   4  Prefactor     .90088        .33665E-02    .13424E-03   -.49796E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000109665
  Index      = 2.80668
  Normalizat = 0.590293
  Prefactor  = 0.90088
 **********
 **   18 **HESSE 
 **********

 FCN=   2654.520     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      314 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10967E-03    199.57        .29838E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8067        6.1238        .50000       -.45411    
   3  Normalizat    .59029        .30488E-01    .24579E-04   -1.0840    
   4  Prefactor     .90088        .82002E-02    .53697E-05   -.96110    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.84262e-09
Minuit parameter uncertainties:
  1  0.0881334
  2  511.048
  3  0.0304892
  4  0.0082002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/105712': 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) = 2654.51976374
delta logL = -5.33812908543e-07

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.097e-04  8.813e-02  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  2.807e+00  5.110e+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.009e-01  8.200e-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:  5.903e-01  3.049e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/105712/cmap_HighResolution_322790401_323049601_4FGL_J0358.6+0634_daily_bin322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.94e-02', job_status='DONE', photon_flux_upper_limit='2.48e-07', time_completed='2021-08-19 20:21:03.920405', job_id='105712', GAL2='0.90', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1629429663.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='-5.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='322' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 20:21:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0284>
Subject: Job 105712: <4FGL_J0358.6+0634_daily_bin322> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin322 59.6656 6.5759 322790401 323049601 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 :                                   694.16 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             222.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            925 sec.

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

