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


Performing analysis on: 4FGL_J0358.6+0634_daily_bin599
RA = 59.6656, Dec = 6.5759
tmin = 394588801, tmax = 394848001
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='107178', job_status='RUN', time_executed='2021-08-19 20:11:12.973627', time_epoch_executed='1629429072.97' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107178

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107178/ft1_4FGL_J0358.6+0634_daily_bin599.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107178/ft2_4FGL_J0358.6+0634_daily_bin599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107178/ft1_4FGL_J0358.6+0634_daily_bin599.fits outfile=/scratch/kocevski/107178/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin599.fits ra=59.6656 dec=6.5759 rad=12.0 tmin=394588801.0 tmax=394848001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.80
user 4.29
sys 1.49

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107178/ft1_filtered_4FGL_J0358.6+0634_daily_bin599.fits" evtable="EVENTS" scfile=/scratch/kocevski/107178/ft2_4FGL_J0358.6+0634_daily_bin599.fits sctable="SC_DATA" outfile=/scratch/kocevski/107178/ltcube_394588801_394848001_4FGL_J0358.6+0634_daily_bin599.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/107178/ft2_4FGL_J0358.6+0634_daily_bin599.fits
.....................!
real 13.09
user 11.29
sys 1.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107178/ft1_filtered_4FGL_J0358.6+0634_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/107178/ft2_4FGL_J0358.6+0634_daily_bin599.fits sctable="SC_DATA" expcube=/scratch/kocevski/107178/ltcube_394588801_394848001_4FGL_J0358.6+0634_daily_bin599.fits outfile=/scratch/kocevski/107178/expmap_394588801_394848001_4FGL_J0358.6+0634_daily_bin599.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/107178/ltcube_394588801_394848001_4FGL_J0358.6+0634_daily_bin599.fits
.....................!
real 191.83
user 185.06
sys 6.46

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/107178/ft1_filtered_4FGL_J0358.6+0634_daily_bin599.fits scfile=/scratch/kocevski/107178/ft2_4FGL_J0358.6+0634_daily_bin599.fits outfile=/scratch/kocevski/107178/cmap_394588801_394848001_4FGL_J0358.6+0634_daily_bin599.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.78
user 0.37
sys 1.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107178/ft1_filtered_4FGL_J0358.6+0634_daily_bin599.fits scfile=/scratch/kocevski/107178/ft2_4FGL_J0358.6+0634_daily_bin599.fits outfile=/scratch/kocevski/107178/cmap_HighResolution_394588801_394848001_4FGL_J0358.6+0634_daily_bin599.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.77
user 0.40
sys 1.35

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.3726       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.835       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2735       1.0000         .10000E-03   10000.    
     9 'norm      '    5.7888       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.849       1.0000         .10000E-03   10000.    
    11 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.0348       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11440E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7919       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1101       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0318       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.

 FCN=   11126.74     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2026 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6281        .90712E-02** at limit **
   2  Prefactor     .10000E-03    8.3854        .90712E-02** at limit **
   3  norm          .10000E-03    1.4427        .90712E-02** at limit **
   4  norm          4.3729        1.8043        .48153E-02    .18410E-03
   5  Prefactor     .10000E-03    28.883        .90712E-02** at limit **
   6  Prefactor     .10000E-03    4.0411        .90712E-02** at limit **
   7  norm          10.835        10.839        .30429E-02   -.79135E-03
   8  Prefactor     1.2455        130.57        .98496E-02    .98486E-04
   9  norm          5.7889        4.4885        .41732E-02    .17912E-03
  10  Prefactor     20.835        23.381        .21930E-02    .98913E-04
  11  norm          .10000E-03    11.481        .90712E-02** at limit **
  12  norm          2.0340        1.2343        .72491E-02    .52469E-03
  13  Prefactor     .10000E-03    .60991        .90712E-02** at limit **
  14  Prefactor     .10000E-03    53.398        .90712E-02** at limit **
  15  Prefactor     .10000E-03    108.87        .90712E-02** at limit **
  16  norm          2.7803        2.9474        .60876E-02    .10739E-02
  17  Prefactor     .10000E-03    17.444        .90712E-02** at limit **
  18  Prefactor     .10000E-03    11.865        .90712E-02** at limit **
  19  Normalizat    1.1099        .23290        .10805        .39952E-04
  20  Prefactor     1.0318        .66344E-01    .41118E-01   -.30745E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.37291
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8353
  Prefactor  = 1.2455
  norm       = 5.78892
  Prefactor  = 20.835
  norm       = 0.0001
  norm       = 2.03399
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.7803
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10989
  Prefactor  = 1.03184
 **********
 **   18 **HESSE 
 **********

 FCN=   11126.74     FROM HESSE     STATUS=OK           289 CALLS     2315 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6463        .16698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.4269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.4431        .12373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.3729        1.8103        .86821E-04   -1.5290    
   5  Prefactor     .10000E-03    28.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.0456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.835        10.842        .60857E-03   -1.5050    
   8  Prefactor     1.2455        134.25        .39398E-03   -1.5485    
   9  norm          5.7889        4.4831        .16693E-03   -1.5227    
  10  Prefactor     20.835        23.371        .87720E-04   -1.4795    
  11  norm          .10000E-03    11.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0340        1.2276        .85767E-04   -1.5423    
  13  Prefactor     .10000E-03    .61746        .80295E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    53.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    109.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7803        2.9235        .17588E-03   -1.5374    
  17  Prefactor     .10000E-03    17.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.198        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1099        .25582        .47903E-03   -.89435    
  20  Prefactor     1.0318        .73360E-01    .73133E-03   -.91676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.88932e-11
Minuit parameter uncertainties:
  1  4.75093e-07
  2  1.67843e-06
  3  8.80891e-07
  4  1.81031
  5  2.30568e-06
  6  3.69337e-07
  7  10.8435
  8  25.9204
  9  4.48335
  10  23.3815
  11  4.4581e-06
  12  1.22765
  13  1.95495e-07
  14  1.54139e-05
  15  0.000216109
  16  2.9237
  17  2.83697e-06
  18  4.09568e-06
  19  0.256102
  20  0.0733674
Done.

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

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  2.306e-06  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:  1.032e+00  7.337e-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.110e+00  2.561e-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.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/107178/likelihoodResults_394588801_394848001_4FGL_J0358.6+0634_daily_bin599.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) = 11126.7362172
delta logL = -0.000164610977663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11126.7360526
delta logL = -7.09151208866e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4872       1.0000          .0000       10.000    
     3 'Normalizat'    1.1099       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0318       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.

 FCN=   11126.74     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      237 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6252.7        .90712E-02** at limit **
   2  Index         2.4970        8.4388        .50000       -.32726E-05
   3  Normalizat    1.1099        .73631E-01    .10805        .37270E-04
   4  Prefactor     1.0318        .21874E-01    .41116E-01   -.12791E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.49697
  Normalizat = 1.10989
  Prefactor  = 1.03184
 **********
 **   18 **HESSE 
 **********

 FCN=   11126.74     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    154.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4970        5.6317        .50000       -.52430    
   3  Normalizat    1.1099        .24328        .47903E-03   -.89435    
   4  Prefactor     1.0318        .72647E-01    .14627E-03   -.91676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.50234e-11
Minuit parameter uncertainties:
  1  1.95534e-05
  2  10.2443
  3  0.243531
  4  0.0726542
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107178': 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) = 11126.7360526
delta logL = -5.78293111175e-08

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  1.955e-05  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  2.497e+00  1.024e+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:  1.032e+00  7.265e-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.110e+00  2.435e-01  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/107178/cmap_HighResolution_394588801_394848001_4FGL_J0358.6+0634_daily_bin599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.78e-03', job_status='DONE', photon_flux_upper_limit='9.96e-08', time_completed='2021-08-19 20:24:22.264948', job_id='107178', GAL2='1.03', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1629429862.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='-5.78e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='599' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 20:24:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 107178: <4FGL_J0358.6+0634_daily_bin599> in cluster <slac> Done

Job <4FGL_J0358.6+0634_daily_bin599> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug 19 20:10:33 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 20:10: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:10:35 2021
Terminated at Thu Aug 19 20:24:23 2021
Results reported at Thu Aug 19 20:24:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin599 59.6656 6.5759 394588801 394848001 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 :                                   804.25 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             338.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            830 sec.

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

