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


Performing analysis on: 4FGL_J0358.6+0634_daily_bin160
RA = 59.6656, Dec = 6.5759
tmin = 280800001, tmax = 281059201
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='104340', job_status='RUN', time_executed='2021-08-19 20:03:16.133028', time_epoch_executed='1629428596.13' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='160'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104340

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104340/ft1_4FGL_J0358.6+0634_daily_bin160.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104340/ft2_4FGL_J0358.6+0634_daily_bin160.fits


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

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

Done.
real 4.03
user 3.57
sys 0.44

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/104340/ft1_filtered_4FGL_J0358.6+0634_daily_bin160.fits" evtable="EVENTS" scfile=/scratch/kocevski/104340/ft2_4FGL_J0358.6+0634_daily_bin160.fits sctable="SC_DATA" outfile=/scratch/kocevski/104340/ltcube_280800001_281059201_4FGL_J0358.6+0634_daily_bin160.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/104340/ft2_4FGL_J0358.6+0634_daily_bin160.fits
.....................!
real 11.86
user 11.26
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104340/ft1_filtered_4FGL_J0358.6+0634_daily_bin160.fits evtable="EVENTS" scfile=/scratch/kocevski/104340/ft2_4FGL_J0358.6+0634_daily_bin160.fits sctable="SC_DATA" expcube=/scratch/kocevski/104340/ltcube_280800001_281059201_4FGL_J0358.6+0634_daily_bin160.fits outfile=/scratch/kocevski/104340/expmap_280800001_281059201_4FGL_J0358.6+0634_daily_bin160.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/104340/ltcube_280800001_281059201_4FGL_J0358.6+0634_daily_bin160.fits
.....................!
real 190.08
user 185.28
sys 4.49

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/104340/ft1_filtered_4FGL_J0358.6+0634_daily_bin160.fits scfile=/scratch/kocevski/104340/ft2_4FGL_J0358.6+0634_daily_bin160.fits outfile=/scratch/kocevski/104340/cmap_280800001_281059201_4FGL_J0358.6+0634_daily_bin160.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 0.83
user 0.37
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/104340/ft1_filtered_4FGL_J0358.6+0634_daily_bin160.fits scfile=/scratch/kocevski/104340/ft2_4FGL_J0358.6+0634_daily_bin160.fits outfile=/scratch/kocevski/104340/cmap_HighResolution_280800001_281059201_4FGL_J0358.6+0634_daily_bin160.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 0.77
user 0.36
sys 0.40

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.3952       1.0000         .10000E-03   10000.    
     4 'norm      '    2.4738       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13986E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.915       1.0000         .10000E-03   10000.    
     7 'norm      '    10.637       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11911       1.0000         .10000E-03   10000.    
     9 'norm      '    .22118E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.591       1.0000         .10000E-03   10000.    
    11 'norm      '    4.2421       1.0000         .10000E-03   10000.    
    12 'norm      '    .40020       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10463E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10325E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8509       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1827       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95660       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=   12115.22     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2149 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7704       -.86492E-07** at limit **
   2  Prefactor     .10000E-03    5.0038       -.73422E-07** at limit **
   3  norm          3.3951        4.0229        .13719E-05   -.22676E-03
   4  norm          2.4738        1.2154        .80545E-08    .23639E-04
   5  Prefactor     .10000E-03    136.30        .20317E-05** at limit **
   6  Prefactor     24.910        17.305        .41325E-06   -.43632E-06
   7  norm          10.638        10.183        .27891E-07    .12244E-04
   8  Prefactor     .10104E-03    11.977       -.73428E-06** at limit **
   9  norm          .10000E-03    2.2184       -.12131E-06** at limit **
  10  Prefactor     11.512        28.482       -.52654E-05   -.11376E-03
  11  norm          4.2494        13.549        .12026E-05    .85820E-04
  12  norm          .39995        .74269        .13597E-06    .17699E-03
  13  Prefactor     .10000E-03    .38720       -.16366E-06** at limit **
  14  Prefactor     .10000E-03    10.689        .75788E-06** at limit **
  15  Prefactor     .10000E-03    20.722       -.23544E-06** at limit **
  16  norm          .10000E-03    .97348        .23190E-06** at limit **
  17  Prefactor     .10000E-03    17.943        .24325E-06** at limit **
  18  Prefactor     2.8517        4.5885        .26225E-05   -.21405E-03
  19  Normalizat    1.1826        .21769        .17939E-07    .41229E-04
  20  Prefactor     .95665        .62372E-01    .38197E-08    .15057E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.39512
  norm       = 2.47385
  Prefactor  = 0.0001
  Prefactor  = 24.9104
  norm       = 10.6376
  Prefactor  = 0.000101042
  norm       = 0.0001
  Prefactor  = 11.5119
  norm       = 4.24941
  norm       = 0.399955
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.85174
  Normalizat = 1.18263
  Prefactor  = 0.956647
 **********
 **   18 **HESSE 
 **********

 FCN=   12115.22     FROM HESSE     STATUS=OK           307 CALLS     2456 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.3951        4.0232        .10979E-02   -1.5339    
   4  norm          2.4738        1.2145        .81703E-04   -1.5393    
   5  Prefactor     .10000E-03    137.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.910        17.287        .80253E-04   -1.4709    
   7  norm          10.638        10.183        .12285E-03   -1.5056    
   8  Prefactor     .10104E-03    12.578        .13293       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.7887        .30981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.512        28.598        .11767E-03   -1.5029    
  11  norm          4.2494        13.491        .19563E-03   -1.5296    
  12  norm          .39995        .72045        .11904E-03   -1.5581    
  13  Prefactor     .10000E-03    .58977        .13095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.0228        .21226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.8517        4.5901        .12040E-02   -1.5370    
  19  Normalizat    1.1826        .23635        .43931E-03   -.87141    
  20  Prefactor     .95665        .68782E-01    .14521E-03   -.94189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93779e-10
Minuit parameter uncertainties:
  1  1.09282e-05
  2  9.38072e-06
  3  4.02352
  4  1.21447
  5  5.42945e-05
  6  17.2908
  7  10.1843
  8  0.00724366
  9  2.44384e-06
  10  28.6317
  11  13.5003
  12  0.720462
  13  4.78675e-06
  14  0.000130899
  15  2.65509e-05
  16  1.28761e-05
  17  4.92925e-05
  18  4.59069
  19  0.236564
  20  0.0687882
Done.

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

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  5.429e-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.566e-01  6.879e-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.183e+00  2.366e-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: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/104340/likelihoodResults_280800001_281059201_4FGL_J0358.6+0634_daily_bin160.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) = 12115.2218998
delta logL = -3.44086565747e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12115.2218655
delta logL = -7.69141479395e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5289       1.0000          .0000       10.000    
     3 'Normalizat'    1.1826       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95665       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=   12115.22     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      297 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    356.43        .36285E-03** at limit **
   2  Index         2.6382        6.2617        .50000       -.95943E-05
   3  Normalizat    1.1826        .22483        .43931E-03    .13146E-04
   4  Prefactor     .95665        .68271E-01    .14521E-03   -.10184E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100025
  Index      = 2.63818
  Normalizat = 1.18263
  Prefactor  = 0.956647
 **********
 **   18 **HESSE 
 **********

 FCN=   12115.22     FROM HESSE     STATUS=OK            29 CALLS      326 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    218.02        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6382        6.3131        .50000       -.49197    
   3  Normalizat    1.1826        .22485        .17573E-04   -.87141    
   4  Prefactor     .95665        .68279E-01    .14521E-03   -.94189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66097e-10
Minuit parameter uncertainties:
  1  0.00465259
  2  4.44805
  3  0.225037
  4  0.0682852
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104340': 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) = 12115.2218653
delta logL = 1.48585968418e-07

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  4.653e-03  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  2.638e+00  4.448e+00  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.566e-01  6.829e-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.183e+00  2.250e-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/104340/cmap_HighResolution_280800001_281059201_4FGL_J0358.6+0634_daily_bin160.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.04e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-08-19 20:17:20.979432', job_id='104340', GAL2='0.96', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1629429440.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='160' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 20:17:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 104340: <4FGL_J0358.6+0634_daily_bin160> in cluster <slac> Done

Job <4FGL_J0358.6+0634_daily_bin160> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Aug 19 20:00:43 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 20:00:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 20:00:45 2021
Terminated at Thu Aug 19 20:17:21 2021
Results reported at Thu Aug 19 20:17:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin160 59.6656 6.5759 280800001 281059201 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 :                                   844.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            998 sec.

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

