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


Performing analysis on: 4FGL_J0358.6+0634_daily_bin383
RA = 59.6656, Dec = 6.5759
tmin = 338601601, tmax = 338860801
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='105811', job_status='RUN', time_executed='2021-08-19 20:09:39.573079', time_epoch_executed='1629428979.57' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='383'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/105811

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/105811/ft1_4FGL_J0358.6+0634_daily_bin383.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/105811/ft2_4FGL_J0358.6+0634_daily_bin383.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/105811/ft1_4FGL_J0358.6+0634_daily_bin383.fits outfile=/scratch/kocevski/105811/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin383.fits ra=59.6656 dec=6.5759 rad=12.0 tmin=338601601.0 tmax=338860801.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 10.38
user 4.88
sys 5.41

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/105811/ft1_filtered_4FGL_J0358.6+0634_daily_bin383.fits" evtable="EVENTS" scfile=/scratch/kocevski/105811/ft2_4FGL_J0358.6+0634_daily_bin383.fits sctable="SC_DATA" outfile=/scratch/kocevski/105811/ltcube_338601601_338860801_4FGL_J0358.6+0634_daily_bin383.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/105811/ft2_4FGL_J0358.6+0634_daily_bin383.fits
.....................!
real 17.21
user 11.04
sys 6.13

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/105811/ft1_filtered_4FGL_J0358.6+0634_daily_bin383.fits evtable="EVENTS" scfile=/scratch/kocevski/105811/ft2_4FGL_J0358.6+0634_daily_bin383.fits sctable="SC_DATA" expcube=/scratch/kocevski/105811/ltcube_338601601_338860801_4FGL_J0358.6+0634_daily_bin383.fits outfile=/scratch/kocevski/105811/expmap_338601601_338860801_4FGL_J0358.6+0634_daily_bin383.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/105811/ltcube_338601601_338860801_4FGL_J0358.6+0634_daily_bin383.fits
.....................!
real 196.87
user 185.43
sys 11.12

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/105811/ft1_filtered_4FGL_J0358.6+0634_daily_bin383.fits scfile=/scratch/kocevski/105811/ft2_4FGL_J0358.6+0634_daily_bin383.fits outfile=/scratch/kocevski/105811/cmap_338601601_338860801_4FGL_J0358.6+0634_daily_bin383.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 5.58
user 0.39
sys 5.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/105811/ft1_filtered_4FGL_J0358.6+0634_daily_bin383.fits scfile=/scratch/kocevski/105811/ft2_4FGL_J0358.6+0634_daily_bin383.fits outfile=/scratch/kocevski/105811/cmap_HighResolution_338601601_338860801_4FGL_J0358.6+0634_daily_bin383.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 5.56
user 0.37
sys 5.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0792       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.316       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4287       1.0000         .10000E-03   10000.    
     4 'norm      '    3.6812       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9970       1.0000         .10000E-03   10000.    
     7 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.9527       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    36.647       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9162       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .25261E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.933       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10868E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.1033       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6479       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .26117       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1222       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9252.277     FROM MIGRAD    STATUS=CONVERGED     93 CALLS     1740 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0802        4.9434        .15319E-05   -.58619E-04
   2  Prefactor     20.319        1.3496       -.23130E-05   -.15164E-02
   3  norm          1.4286        3.8055        .47104E-06    .28950E-06
   4  norm          3.6817        1.7050       -.18906E-06   -.18659E-04
   5  Prefactor     .10001E-03    83.474        .12319E-03** at limit **
   6  Prefactor     5.0050        2.0257       -.88987E-05   -.11978E-02
   7  norm          .10000E-03    7.5822        .92786E-05** at limit **
   8  Prefactor     .10000E-03    14.283        .30207E-05** at limit **
   9  norm          7.9535        5.1878       -.69977E-06    .71734E-04
  10  Prefactor     .10000E-03    25.464       -.26117E-04** at limit **
  11  norm          36.650        1.3755        .18931E-05   -.39222E-03
  12  norm          1.9154        1.2071       -.44436E-06    .20886E-03
  13  Prefactor     .10000E-03    3.1758        .30881E-05** at limit **
  14  Prefactor     46.926        1.2649       -.11501E-05    .41587E-04
  15  Prefactor     .10000E-03    159.27       -.26500E-03** at limit **
  16  norm          1.1060        2.2989       -.94709E-06    .25725E-04
  17  Prefactor     .10000E-03    19.733        .11091E-04** at limit **
  18  Prefactor     5.6478        1.0288       -.10846E-05   -.10558E-02
  19  Normalizat    .26092        .25065        .54927E-04   -.71641E-05
  20  Prefactor     1.1222        .77771E-01   -.22460E-05   -.28260E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.08017
  Prefactor  = 20.3195
  norm       = 1.42863
  norm       = 3.68167
  Prefactor  = 0.00010001
  Prefactor  = 5.00503
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.95347
  Prefactor  = 0.0001
  norm       = 36.6504
  norm       = 1.91536
  Prefactor  = 0.0001
  Prefactor  = 46.9264
  Prefactor  = 0.000100005
  norm       = 1.10604
  Prefactor  = 0.0001
  Prefactor  = 5.64782
  Normalizat = 0.260923
  Prefactor  = 1.12224
 **********
 **   18 **HESSE 
 **********

 FCN=   9252.277     FROM HESSE     STATUS=OK           343 CALLS     2083 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0802        4.9546        .40709E-02   -1.5215    
   2  Prefactor     20.319        15.575        .22216E-02   -1.4806    
   3  norm          1.4286        3.8611        .90378E-02   -1.5469    
   4  norm          3.6817        1.7648        .52628E-02   -1.5324    
   5  Prefactor     .10001E-03    83.882        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.0050        16.847        .44974E-02   -1.5260    
   7  norm          .10000E-03    7.5868        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.279        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.9535        5.2136        .35545E-02   -1.5144    
  10  Prefactor     .10000E-03    25.331        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          36.650        31.349        .16551E-02   -1.4496    
  12  norm          1.9154        1.2582        .75061E-02   -1.5431    
  13  Prefactor     .10000E-03    .88623        .45176E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     46.926        27.610        .14632E-02   -1.4337    
  15  Prefactor     .10000E-03    157.66        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1060        2.5733        .11290E-01   -1.5498    
  17  Prefactor     .10000E-03    19.719        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.6478        7.7138        .42257E-02   -1.5233    
  19  Normalizat    .26092        .38642        .19093       -1.2525    
  20  Prefactor     1.1222        .10871        .36799E-01   -.88759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83265e-08
Minuit parameter uncertainties:
  1  4.95498
  2  15.5778
  3  3.86175
  4  1.76486
  5  0.00187158
  6  16.8631
  7  6.13223e-06
  8  4.17692e-06
  9  5.21394
  10  7.96695e-05
  11  31.3629
  12  1.25823
  13  5.09994e-07
  14  27.6179
  15  0.00177316
  16  2.57353
  17  2.97266e-05
  18  7.71512
  19  0.390468
  20  0.108736
Done.

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

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  1.872e-03  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.122e+00  1.087e-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:  2.609e-01  3.905e-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.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/105811/likelihoodResults_338601601_338860801_4FGL_J0358.6+0634_daily_bin383.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) = 9252.27691286
delta logL = -5.63375815545e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9252.27685662
delta logL = -9.13787516765e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19251E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9190       1.0000          .0000       10.000    
     3 'Normalizat'    .26092       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1222       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=   9252.277     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      251 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    106.65        .90712E-02** at limit **
   2  Index         2.9484        8.5190        .50000       -.17611E-05
   3  Normalizat    .26092        .54323E-02    .19093        .12965E-03
   4  Prefactor     1.1222        .17375E-02    .36797E-01    .11167E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.94835
  Normalizat = 0.260923
  Prefactor  = 1.12224
 **********
 **   18 **HESSE 
 **********

 FCN=   9252.277     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      284 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6934.2        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9484        5.8513        .50000       -.42282    
   3  Normalizat    .26092        .36029E-01    .83608E-03   -1.2525    
   4  Prefactor     1.1222        .11416E-01    .13244E-03   -.88759    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.66572e-07
Minuit parameter uncertainties:
  1  0.00188517
  2  1584.24
  3  0.0360319
  4  0.011416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/105811': 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) = 9252.27685628
delta logL = 2.48483047471e-07

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  1.885e-03  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  2.948e+00  1.584e+03  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.122e+00  1.142e-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:  2.609e-01  3.603e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 59.666 6.576

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/105811/cmap_HighResolution_338601601_338860801_4FGL_J0358.6+0634_daily_bin383.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.03e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-08-19 20:22:13.806641', job_id='105811', GAL2='1.12', fit_tolerance='1e-08', EG2='0.26', EG='0.26', time_epoch_completed='1629429733.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='2.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='383' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 20:22:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 105811: <4FGL_J0358.6+0634_daily_bin383> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin383 59.6656 6.5759 338601601 338860801 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 :                                   829.01 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             255.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            987 sec.

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

