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


Performing analysis on: 4FGL_J0358.6+0634_daily_bin859
RA = 59.6656, Dec = 6.5759
tmin = 461980801, tmax = 462240001
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='108634', job_status='RUN', time_executed='2021-08-19 20:18:31.792465', time_epoch_executed='1629429511.79' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='859'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/108634

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/108634/ft1_4FGL_J0358.6+0634_daily_bin859.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/108634/ft2_4FGL_J0358.6+0634_daily_bin859.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/108634/ft1_4FGL_J0358.6+0634_daily_bin859.fits outfile=/scratch/kocevski/108634/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin859.fits ra=59.6656 dec=6.5759 rad=12.0 tmin=461980801.0 tmax=462240001.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.55
user 3.35
sys 2.13

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/108634/ft1_filtered_4FGL_J0358.6+0634_daily_bin859.fits" evtable="EVENTS" scfile=/scratch/kocevski/108634/ft2_4FGL_J0358.6+0634_daily_bin859.fits sctable="SC_DATA" outfile=/scratch/kocevski/108634/ltcube_461980801_462240001_4FGL_J0358.6+0634_daily_bin859.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/108634/ft2_4FGL_J0358.6+0634_daily_bin859.fits
.....................!
real 14.07
user 11.50
sys 2.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/108634/ft1_filtered_4FGL_J0358.6+0634_daily_bin859.fits evtable="EVENTS" scfile=/scratch/kocevski/108634/ft2_4FGL_J0358.6+0634_daily_bin859.fits sctable="SC_DATA" expcube=/scratch/kocevski/108634/ltcube_461980801_462240001_4FGL_J0358.6+0634_daily_bin859.fits outfile=/scratch/kocevski/108634/expmap_461980801_462240001_4FGL_J0358.6+0634_daily_bin859.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/108634/ltcube_461980801_462240001_4FGL_J0358.6+0634_daily_bin859.fits
.....................!
real 193.26
user 185.17
sys 7.64

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/108634/ft1_filtered_4FGL_J0358.6+0634_daily_bin859.fits scfile=/scratch/kocevski/108634/ft2_4FGL_J0358.6+0634_daily_bin859.fits outfile=/scratch/kocevski/108634/cmap_461980801_462240001_4FGL_J0358.6+0634_daily_bin859.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 2.42
user 0.37
sys 2.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/108634/ft1_filtered_4FGL_J0358.6+0634_daily_bin859.fits scfile=/scratch/kocevski/108634/ft2_4FGL_J0358.6+0634_daily_bin859.fits outfile=/scratch/kocevski/108634/cmap_HighResolution_461980801_462240001_4FGL_J0358.6+0634_daily_bin859.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 2.43
user 0.39
sys 2.03

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5416       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.3233       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.782       1.0000         .10000E-03   10000.    
     7 'norm      '    9.0593       1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.592       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.052       1.0000         .10000E-03   10000.    
    11 'norm      '    16.816       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11163E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.758       1.0000         .10000E-03   10000.    
    15 'Prefactor '    43.006       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6972       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2001       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1932       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92136       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=   10973.21     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2088 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5417        5.0334        .12320E-06    .42344E-04
   2  Prefactor     .10000E-03    3.6394        .59188E-07** at limit **
   3  norm          .10000E-03    1.5108        .77488E-08** at limit **
   4  norm          8.3232        2.2025        .11028E-07   -.25430E-04
   5  Prefactor     .10000E-03    66.423       -.24993E-07** at limit **
   6  Prefactor     17.782        12.454        .21274E-07    .52089E-05
   7  norm          9.0594        9.6447        .92399E-08   -.71429E-05
   8  Prefactor     26.584        29.883       -.78372E-06    .20805E-04
   9  norm          .10000E-03    2.3259        .49282E-07** at limit **
  10  Prefactor     11.041        24.651        .14794E-05   -.21793E-04
  11  norm          16.806        23.311       -.16458E-05    .52660E-04
  12  norm          .10000E-03    .28003       -.23288E-07** at limit **
  13  Prefactor     .10000E-03    1.5290       -.15426E-05** at limit **
  14  Prefactor     24.781        25.965       -.24090E-05    .43239E-04
  15  Prefactor     42.957        44.022       -.20807E-05   -.38976E-04
  16  norm          1.6937        3.1207        .83654E-06    .73540E-03
  17  Prefactor     .10000E-03    14.689        .77908E-07** at limit **
  18  Prefactor     2.2035        7.9869       -.34796E-06    .69220E-04
  19  Normalizat    1.1933        .23885       -.27053E-06    .64710E-04
  20  Prefactor     .92135        .65283E-01   -.24704E-06   -.20716E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.54172
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.32321
  Prefactor  = 0.0001
  Prefactor  = 17.7822
  norm       = 9.05941
  Prefactor  = 26.5843
  norm       = 0.0001
  Prefactor  = 11.0414
  norm       = 16.8058
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.7807
  Prefactor  = 42.9567
  norm       = 1.69372
  Prefactor  = 0.0001
  Prefactor  = 2.20352
  Normalizat = 1.19327
  Prefactor  = 0.921353
 **********
 **   18 **HESSE 
 **********

 FCN=   10973.21     FROM HESSE     STATUS=OK           297 CALLS     2385 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5417        5.0318        .18890E-03   -1.5282    
   2  Prefactor     .10000E-03    3.6442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.5118        .12575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.3232        2.2100        .76091E-04   -1.5131    
   5  Prefactor     .10000E-03    67.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.782        12.452        .94978E-04   -1.4864    
   7  norm          9.0594        9.6465        .13316E-03   -1.5106    
   8  Prefactor     26.584        29.864        .77685E-04   -1.4676    
   9  norm          .10000E-03    2.3547        .15601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.041        24.616        .12051E-03   -1.5043    
  11  norm          16.806        23.217        .97668E-04   -1.4888    
  12  norm          .10000E-03    .28369        .54056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.5284        .18738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.781        26.146        .80507E-04   -1.4712    
  15  Prefactor     42.957        43.994        .61131E-04   -1.4396    
  16  norm          1.6937        3.1039        .19823E-03   -1.5448    
  17  Prefactor     .10000E-03    14.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2035        7.9148        .27740E-03   -1.5411    
  19  Normalizat    1.1933        .26233        .44545E-03   -.86811    
  20  Prefactor     .92135        .72322E-01    .14596E-03   -.95399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.49558e-10
Minuit parameter uncertainties:
  1  5.03228
  2  5.19274e-06
  3  2.08352e-07
  4  2.21005
  5  0.000304629
  6  12.4537
  7  9.64813
  8  29.8808
  9  4.6646e-06
  10  24.6388
  11  23.2294
  12  3.24442e-07
  13  2.34323e-05
  14  26.1585
  15  44.0275
  16  3.10418
  17  1.12847e-05
  18  7.91851
  19  0.262622
  20  0.0723297
Done.

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

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  3.046e-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.214e-01  7.233e-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.193e+00  2.626e-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: 8.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/108634/likelihoodResults_461980801_462240001_4FGL_J0358.6+0634_daily_bin859.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) = 10973.2063165
delta logL = -7.04259891791e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10973.2062463
delta logL = -2.46149284067e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10949E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6269       1.0000          .0000       10.000    
     3 'Normalizat'    1.1933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92136       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=   10973.21     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      312 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12473E-03    .82951        .18142    ** at limit **
   2  Index         2.4326        7.9533        .50000        .86724E-05
   3  Normalizat    1.1933        .13853E-02    .44545E-03    .52065E-05
   4  Prefactor     .92135        .40785E-03    .14596E-03    .43617E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000124731
  Index      = 2.4326
  Normalizat = 1.19326
  Prefactor  = 0.921354
 **********
 **   18 **HESSE 
 **********

 FCN=   10973.21     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      343 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12473E-03    155.60        .84246E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4326        7.3458        .50000       -.53923    
   3  Normalizat    1.1933        .76898E-02    .17818E-04   -.86811    
   4  Prefactor     .92135        .22640E-02    .58385E-05   -.95399    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.56203e-08
Minuit parameter uncertainties:
  1  0.124392
  2  228.713
  3  0.0076898
  4  0.00226403
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/108634': 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) = 10973.2062459
delta logL = 1.52302163769e-07

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.247e-04  1.244e-01  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  2.433e+00  2.287e+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.214e-01  2.264e-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.193e+00  7.690e-03  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/108634/cmap_HighResolution_461980801_462240001_4FGL_J0358.6+0634_daily_bin859.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.60e-03', job_status='DONE', photon_flux_upper_limit='8.44e-08', time_completed='2021-08-19 20:32:06.672036', job_id='108634', GAL2='0.92', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1629430326.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='859' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 20:32:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 108634: <4FGL_J0358.6+0634_daily_bin859> in cluster <slac> Done

Job <4FGL_J0358.6+0634_daily_bin859> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug 19 20:15:37 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 20:15:38 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:15:38 2021
Terminated at Thu Aug 19 20:32:07 2021
Results reported at Thu Aug 19 20:32:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin859 59.6656 6.5759 461980801 462240001 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 :                                   842.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            990 sec.

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

