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


Performing analysis on: 4FGL_J0358.6+0634_daily_bin430
RA = 59.6656, Dec = 6.5759
tmin = 350784001, tmax = 351043201
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='105880', job_status='RUN', time_executed='2021-08-19 20:08:53.000274', time_epoch_executed='1629428933.0' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/105880

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/105880/ft1_4FGL_J0358.6+0634_daily_bin430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/105880/ft2_4FGL_J0358.6+0634_daily_bin430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/105880/ft1_4FGL_J0358.6+0634_daily_bin430.fits outfile=/scratch/kocevski/105880/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin430.fits ra=59.6656 dec=6.5759 rad=12.0 tmin=350784001.0 tmax=351043201.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 3.65
user 3.12
sys 0.51

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/105880/ft2_4FGL_J0358.6+0634_daily_bin430.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/105880/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin430.fits evtable="EVENTS" outfile="/scratch/kocevski/105880/ft1_filtered_4FGL_J0358.6+0634_daily_bin430.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.79
user 0.31
sys 0.47

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/105880/ft1_filtered_4FGL_J0358.6+0634_daily_bin430.fits" evtable="EVENTS" scfile=/scratch/kocevski/105880/ft2_4FGL_J0358.6+0634_daily_bin430.fits sctable="SC_DATA" outfile=/scratch/kocevski/105880/ltcube_350784001_351043201_4FGL_J0358.6+0634_daily_bin430.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/105880/ft2_4FGL_J0358.6+0634_daily_bin430.fits
.....................!
real 12.09
user 11.38
sys 0.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/105880/ft1_filtered_4FGL_J0358.6+0634_daily_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/105880/ft2_4FGL_J0358.6+0634_daily_bin430.fits sctable="SC_DATA" expcube=/scratch/kocevski/105880/ltcube_350784001_351043201_4FGL_J0358.6+0634_daily_bin430.fits outfile=/scratch/kocevski/105880/expmap_350784001_351043201_4FGL_J0358.6+0634_daily_bin430.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/105880/ltcube_350784001_351043201_4FGL_J0358.6+0634_daily_bin430.fits
.....................!
real 190.91
user 185.87
sys 4.72

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/105880/ft1_filtered_4FGL_J0358.6+0634_daily_bin430.fits scfile=/scratch/kocevski/105880/ft2_4FGL_J0358.6+0634_daily_bin430.fits outfile=/scratch/kocevski/105880/cmap_350784001_351043201_4FGL_J0358.6+0634_daily_bin430.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.35
sys 0.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/105880/ft1_filtered_4FGL_J0358.6+0634_daily_bin430.fits scfile=/scratch/kocevski/105880/ft2_4FGL_J0358.6+0634_daily_bin430.fits outfile=/scratch/kocevski/105880/cmap_HighResolution_350784001_351043201_4FGL_J0358.6+0634_daily_bin430.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.88
user 0.38
sys 0.45

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6180       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.8460       1.0000         .10000E-03   10000.    
     3 'norm      '    2.4754       1.0000         .10000E-03   10000.    
     4 'norm      '    5.7615       1.0000         .10000E-03   10000.    
     5 'Prefactor '    86.375       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.775       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.851       1.0000         .10000E-03   10000.    
     9 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11921E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.0826       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23551       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    69.701       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .60060       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0925       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=   11645.73     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     2030 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6176        4.9770        .43043E-07    .23888E-04
   2  Prefactor     5.8428        13.934        .61360E-05   -.58672E-04
   3  norm          2.4753        3.2986        .68079E-07    .27829E-05
   4  norm          5.7611        1.8586        .64418E-07   -.14046E-04
   5  Prefactor     86.325        60.821        .43065E-06   -.52137E-04
   6  Prefactor     28.778        21.961        .62252E-06    .11970E-04
   7  norm          .10000E-03    4.8360        .26519E-07** at limit **
   8  Prefactor     14.847        14.959        .19953E-06    .10147E-04
   9  norm          .10000E-03    3.9277        .35541E-06** at limit **
  10  Prefactor     .10000E-03    19.833        .41407E-06** at limit **
  11  norm          .10000E-03    59.520       -.16810E-05** at limit **
  12  norm          4.0810        1.4457        .14425E-06    .44865E-04
  13  Prefactor     .23748        1.2655       -.34985E-06   -.11918E-03
  14  Prefactor     .10000E-03    32.929       -.33787E-06** at limit **
  15  Prefactor     69.620        50.135        .14687E-05   -.92446E-04
  16  norm          .10000E-03    1.0761        .23810E-07** at limit **
  17  Prefactor     .10000E-03    20.819        .60656E-08** at limit **
  18  Prefactor     .10000E-03    3.3124        .10307E-06** at limit **
  19  Normalizat    .60085        .25545       -.33555E-05   -.20920E-04
  20  Prefactor     1.0925        .71285E-01    .35741E-06    .10897E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.61755
  Prefactor  = 5.84283
  norm       = 2.47531
  norm       = 5.76111
  Prefactor  = 86.3246
  Prefactor  = 28.778
  norm       = 0.0001
  Prefactor  = 14.8465
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.08104
  Prefactor  = 0.237481
  Prefactor  = 0.0001
  Prefactor  = 69.6204
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.600852
  Prefactor  = 1.09247
 **********
 **   18 **HESSE 
 **********

 FCN=   11645.73     FROM HESSE     STATUS=OK           295 CALLS     2325 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6176        4.9776        .13655E-03   -1.5121    
   2  Prefactor     5.8428        13.878        .83050E-03   -1.5224    
   3  norm          2.4753        3.2897        .22086E-03   -1.5393    
   4  norm          5.7611        1.8536        .78706E-04   -1.5228    
   5  Prefactor     86.325        60.535        .21614E-03   -1.3847    
   6  Prefactor     28.778        21.943        .74686E-04   -1.4635    
   7  norm          .10000E-03    4.8374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.847        14.956        .10393E-03   -1.4937    
   9  norm          .10000E-03    4.0440        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    60.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.0810        1.4405        .70915E-04   -1.5304    
  13  Prefactor     .23748        1.1542        .22354E-03   -1.5611    
  14  Prefactor     .10000E-03    33.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     69.620        49.105        .24040E-03   -1.4037    
  16  norm          .10000E-03    1.1005        .10924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.3330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .60085        .25657        .62780E-03   -1.0795    
  20  Prefactor     1.0925        .73089E-01    .14340E-03   -.89708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.26383e-11
Minuit parameter uncertainties:
  1  4.97779
  2  13.8854
  3  3.28996
  4  1.85364
  5  60.5787
  6  21.949
  7  8.54258e-08
  8  14.9598
  9  8.15991e-06
  10  4.40556e-05
  11  0.000155218
  12  1.44054
  13  1.04689
  14  7.58454e-05
  15  49.1333
  16  1.92579e-06
  17  4.96217e-05
  18  2.08309e-06
  19  0.257077
  20  0.0730961
Done.

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

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  8.632e+01  6.058e+01  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.092e+00  7.310e-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:  6.009e-01  2.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.88
Ra Dec: 59.666 6.576
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 7.20e-08
Energy Flux (Fixed Index): 2.78e-05 +/- 1.95e-05

TS (Fixed Index): 2.88
Ra Dec: 59.666 6.576
Photon Flux Upper Limit: 2.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.84e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/105880/likelihoodResults_350784001_351043201_4FGL_J0358.6+0634_daily_bin430.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): 0
logL (Free Index) = 11645.7210171
delta logL = 0.00893054799963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11645.7121114
delta logL = 0.0178362328243

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    76.142       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7073       1.0000          .0000       10.000    
     3 'Normalizat'    .59032       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0946       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=   11645.71     FROM MIGRAD    STATUS=FAILED        87 CALLS      273 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     76.135        92.789        .46017E-04   -.38837E-04
   2  Index         2.7077        .92618        .87887E-02    .66517E-03
   3  Normalizat    .59006        .24945        .63312E-03   -.12803E-03
   4  Prefactor     1.0947        .73552E-01    .14328E-03   -.77197E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   11645.71     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      346 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     76.135        92.789        .33835E-03   -1.3961    
   2  Index         2.7077        .92618        .92383E-03   -.47625    
   3  Normalizat    .59006        .24945        .37215E-03   -1.0841    
   4  Prefactor     1.0947        .73552E-01    .67381E-04   -.89637    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11645.71     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      374 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     76.135        80.952        .92034E-05   -.88940E-05
   2  Index         2.7078        .80749        .17577E-02    .43593E-05
   3  Normalizat    .59006        .24773        .25325E-04   -.12570E-05
   4  Prefactor     1.0947        .73133E-01    .28656E-04   -.26978E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 76.1346
  Index      = 2.70775
  Normalizat = 0.590055
  Prefactor  = 1.09467
 **********
 **   18 **HESSE 
 **********

 FCN=   11645.71     FROM HESSE     STATUS=OK            23 CALLS      397 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     76.135        78.795        .18407E-05   -1.3961    
   2  Index         2.7078        .78583        .70310E-04   -.47625    
   3  Normalizat    .59006        .24746        .50649E-05   -1.0841    
   4  Prefactor     1.0947        .73058E-01    .57312E-05   -.89637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95937e-12
Minuit parameter uncertainties:
  1  78.9037
  2  0.789981
  3  0.247925
  4  0.0730643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/105880': 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) = 11645.7121106
delta logL = 0.0178369924633

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  7.613e+01  7.890e+01  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  2.708e+00  7.900e-01  0.000e+00  1.000e+01 (-1.000e+00)
234        Scale:  7.663e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
460    Prefactor:  1.095e+00  7.306e-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:  5.901e-01  2.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.94
Ra Dec: 59.666 6.576
Photon Index (Free Index): 2.71 +/- 0.79
Photon Flux (Free Index): 1.11e-07 +/- 8.38e-08
Energy Flux (Free Index): 2.65e-05 +/- 1.90e-05

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/105880/cmap_HighResolution_350784001_351043201_4FGL_J0358.6+0634_daily_bin430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.84e-02', comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='2.65e-05', photon_flux_error='7.20e-08', dlogl='1.78e-02', energy_flux='2.78e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-08-19 20:22:12.901957', photon_index_error2='0.79', photon_index2='2.71', ts='2.88', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='2.36e-07', energy_flux_error2='1.90e-05', EG='0.60', time_epoch_completed='1629429732.9', return_code='0', job_id='105880', GAL2='1.09', EG2='0.59', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='8.38e-08', ts2='2.94', photon_index='2.57' WHERE bin_id='430' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 20:22:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 105880: <4FGL_J0358.6+0634_daily_bin430> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin430 59.6656 6.5759 350784001 351043201 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 :                                   801.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            979 sec.

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

