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


Performing analysis on: 4FGL_J0358.6+0634_daily_bin475
RA = 59.6656, Dec = 6.5759
tmin = 362448001, tmax = 362707201
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='106991', job_status='RUN', time_executed='2021-08-19 20:12:47.155224', time_epoch_executed='1629429167.16' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/106991

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/106991/ft1_4FGL_J0358.6+0634_daily_bin475.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/106991/ft2_4FGL_J0358.6+0634_daily_bin475.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/106991/ft1_4FGL_J0358.6+0634_daily_bin475.fits outfile=/scratch/kocevski/106991/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin475.fits ra=59.6656 dec=6.5759 rad=12.0 tmin=362448001.0 tmax=362707201.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 7.13
user 5.41
sys 1.69

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/106991/ft1_filtered_4FGL_J0358.6+0634_daily_bin475.fits" evtable="EVENTS" scfile=/scratch/kocevski/106991/ft2_4FGL_J0358.6+0634_daily_bin475.fits sctable="SC_DATA" outfile=/scratch/kocevski/106991/ltcube_362448001_362707201_4FGL_J0358.6+0634_daily_bin475.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/106991/ft2_4FGL_J0358.6+0634_daily_bin475.fits
.....................!
real 13.35
user 11.32
sys 1.99

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/106991/ft1_filtered_4FGL_J0358.6+0634_daily_bin475.fits evtable="EVENTS" scfile=/scratch/kocevski/106991/ft2_4FGL_J0358.6+0634_daily_bin475.fits sctable="SC_DATA" expcube=/scratch/kocevski/106991/ltcube_362448001_362707201_4FGL_J0358.6+0634_daily_bin475.fits outfile=/scratch/kocevski/106991/expmap_362448001_362707201_4FGL_J0358.6+0634_daily_bin475.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/106991/ltcube_362448001_362707201_4FGL_J0358.6+0634_daily_bin475.fits
.....................!
real 194.36
user 187.08
sys 6.97

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/106991/ft1_filtered_4FGL_J0358.6+0634_daily_bin475.fits scfile=/scratch/kocevski/106991/ft2_4FGL_J0358.6+0634_daily_bin475.fits outfile=/scratch/kocevski/106991/cmap_362448001_362707201_4FGL_J0358.6+0634_daily_bin475.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.03
user 0.39
sys 1.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/106991/ft1_filtered_4FGL_J0358.6+0634_daily_bin475.fits scfile=/scratch/kocevski/106991/ft2_4FGL_J0358.6+0634_daily_bin475.fits outfile=/scratch/kocevski/106991/cmap_HighResolution_362448001_362707201_4FGL_J0358.6+0634_daily_bin475.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.99
user 0.38
sys 1.59

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1922       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.285       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.2625       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.038       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.606       1.0000         .10000E-03   10000.    
     9 'norm      '    .70338       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.2437       1.0000         .10000E-03   10000.    
    12 'norm      '    2.6591       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    44.827       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .28849E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.046       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99946       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0487       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=   10197.44     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     2075 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1919        3.3415        .11374E-05   -.53342E-06
   2  Prefactor     32.286        17.443       -.42809E-06   -.14561E-04
   3  norm          .10000E-03    2.2845        .58488E-08** at limit **
   4  norm          4.2627        1.9682       -.89468E-07    .18924E-04
   5  Prefactor     .10000E-03    64.853        .50408E-05** at limit **
   6  Prefactor     35.031        18.294        .14690E-06   -.16897E-04
   7  norm          .10000E-03    5.5921       -.79289E-08** at limit **
   8  Prefactor     22.607        18.309        .16826E-07    .30355E-05
   9  norm          .65149        4.8920       -.15631E-06   -.24249E-04
  10  Prefactor     .10000E-03    22.227       -.56408E-06** at limit **
  11  norm          5.2409        20.948        .23636E-05    .57834E-05
  12  norm          2.6617        1.5829       -.14419E-06    .12142E-03
  13  Prefactor     .10000E-03    .96395       -.42759E-07** at limit **
  14  Prefactor     44.754        26.882        .26452E-07   -.20376E-03
  15  Prefactor     .10000E-03    40.378       -.20356E-05** at limit **
  16  norm          .33351E-03    1.2501        .75358E-07** at limit **
  17  Prefactor     39.041        35.401       -.39159E-07   -.16100E-04
  18  Prefactor     .10000E-03    6.5954       -.26869E-06** at limit **
  19  Normalizat    .99941        .27826        .35844E-05   -.30131E-04
  20  Prefactor     1.0487        .74405E-01   -.34930E-06    .14685E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.19191
  Prefactor  = 32.2859
  norm       = 0.0001
  norm       = 4.26271
  Prefactor  = 0.0001
  Prefactor  = 35.0312
  norm       = 0.0001
  Prefactor  = 22.6065
  norm       = 0.651485
  Prefactor  = 0.0001
  norm       = 5.24093
  norm       = 2.66168
  Prefactor  = 0.0001
  Prefactor  = 44.7538
  Prefactor  = 0.0001
  norm       = 0.000333507
  Prefactor  = 39.0407
  Prefactor  = 0.0001
  Normalizat = 0.999411
  Prefactor  = 1.04873
 **********
 **   18 **HESSE 
 **********

 FCN=   10197.44     FROM HESSE     STATUS=OK           305 CALLS     2380 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1919        3.2926        .30104E-03   -1.5490    
   2  Prefactor     32.286        17.460        .70520E-04   -1.4571    
   3  norm          .10000E-03    2.2884        .14906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.2627        1.9723        .91045E-04   -1.5295    
   5  Prefactor     .10000E-03    65.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     35.031        18.285        .67702E-04   -1.4524    
   7  norm          .10000E-03    5.5924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.607        18.307        .84245E-04   -1.4757    
   9  norm          .65149        14.973        .39124E-02   -1.5547    
  10  Prefactor     .10000E-03    22.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.2409        20.940        .17553E-03   -1.5250    
  12  norm          2.6617        1.5632        .85041E-04   -1.5382    
  13  Prefactor     .10000E-03    .99609        .19304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     44.754        29.234        .59882E-04   -1.4369    
  15  Prefactor     .10000E-03    40.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .33351E-03    3.1716        .35871E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     39.041        35.410        .32072E-03   -1.4457    
  18  Prefactor     .10000E-03    6.6467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .99941        .29650        .51848E-03   -.93050    
  20  Prefactor     1.0487        .80984E-01    .14860E-03   -.91122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.90142e-08
Minuit parameter uncertainties:
  1  3.29315
  2  17.4624
  3  3.19812e-07
  4  1.9723
  5  0.000109101
  6  18.2875
  7  7.52345e-07
  8  18.3111
  9  6.24787
  10  3.97488e-05
  11  20.9643
  12  1.56322
  13  5.86247e-06
  14  29.2433
  15  0.000126001
  16  0.0544303
  17  35.429
  18  1.49529e-05
  19  0.296992
  20  0.0809939
Done.

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

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  1.091e-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:  1.049e+00  8.099e-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:  9.994e-01  2.970e-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.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/106991/likelihoodResults_362448001_362707201_4FGL_J0358.6+0634_daily_bin475.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) = 10197.4421211
delta logL = -7.3065448305e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10197.4420481
delta logL = -1.4299803297e-07

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.6040       1.0000          .0000       10.000    
     3 'Normalizat'    .99941       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0487       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10197.43     FROM MIGRAD    STATUS=FAILED       199 CALLS      400 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5742        6358.8        .18142E-01    .36852E-02
   2  Index         1.9057        5.7282        .50000       -.92302E-05
   3  Normalizat    .99957        .49312E-01    .51847E-03   -.16139E-04
   4  Prefactor     1.0479        .14727E-01    .14860E-03   -.59673E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10197.43     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      486 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5742        6358.8        .75473E-03    .36852E-02
   2  Index         1.9057        5.7282        .24486E-02   -.92302E-05
   3  Normalizat    .99957        .49312E-01    .40322E-04   -.16139E-04
   4  Prefactor     1.0479        .14727E-01    .17057E-04   -.59673E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10197.43     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      518 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5742        76.570        .36285E-02    .14699E-03
   2  Index         1.9057        1.6089        .19546E-01   -.22044E-05
   3  Normalizat    .99957        .26798        .20739E-04   -.16226E-04
   4  Prefactor     1.0479        .79457E-01    .59441E-05   -.59673E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.57423
  Index      = 1.90573
  Normalizat = 0.999566
  Prefactor  = 1.04788
 **********
 **   18 **HESSE 
 **********

 FCN=   10197.43     FROM HESSE     STATUS=OK            27 CALLS      545 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5742        74.438        .72569E-03   -1.5195    
   2  Index         1.9057        1.5900        .78186E-03   -.66728    
   3  Normalizat    .99957        .26811        .41478E-05   -.93045    
   4  Prefactor     1.0479        .79477E-01    .11888E-05   -.91150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.014e-12
Minuit parameter uncertainties:
  1  44.3129
  2  1.63699
  3  0.26847
  4  0.0794855
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/106991': 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) = 10197.4301162
delta logL = 0.0119317778135

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  6.574e+00  4.431e+01  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  1.906e+00  1.637e+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:  1.048e+00  7.949e-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:  9.996e-01  2.685e-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/106991/cmap_HighResolution_362448001_362707201_4FGL_J0358.6+0634_daily_bin475.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.27e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-08-19 20:26:08.302503', job_id='106991', GAL2='1.05', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1629429968.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.19e-02', ts2='0.02', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='475' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 20:26:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 106991: <4FGL_J0358.6+0634_daily_bin475> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin475 59.6656 6.5759 362448001 362707201 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 :                                   821.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            947 sec.

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

