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


Performing analysis on: 4FGL_J0358.6+0634_daily_bin1479
RA = 59.6656, Dec = 6.5759
tmin = 622684801, tmax = 622944001
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='112563', job_status='RUN', time_executed='2021-08-19 20:32:07.072032', time_epoch_executed='1629430327.07' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='1479'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/112563

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/112563/ft1_4FGL_J0358.6+0634_daily_bin1479.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/112563/ft2_4FGL_J0358.6+0634_daily_bin1479.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/112563/ft1_4FGL_J0358.6+0634_daily_bin1479.fits outfile=/scratch/kocevski/112563/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin1479.fits ra=59.6656 dec=6.5759 rad=12.0 tmin=622684801.0 tmax=622944001.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.90
sys 5.45

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/112563/ft1_filtered_4FGL_J0358.6+0634_daily_bin1479.fits" evtable="EVENTS" scfile=/scratch/kocevski/112563/ft2_4FGL_J0358.6+0634_daily_bin1479.fits sctable="SC_DATA" outfile=/scratch/kocevski/112563/ltcube_622684801_622944001_4FGL_J0358.6+0634_daily_bin1479.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/112563/ft2_4FGL_J0358.6+0634_daily_bin1479.fits
.....................!
real 17.55
user 11.28
sys 6.23

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/112563/ft1_filtered_4FGL_J0358.6+0634_daily_bin1479.fits evtable="EVENTS" scfile=/scratch/kocevski/112563/ft2_4FGL_J0358.6+0634_daily_bin1479.fits sctable="SC_DATA" expcube=/scratch/kocevski/112563/ltcube_622684801_622944001_4FGL_J0358.6+0634_daily_bin1479.fits outfile=/scratch/kocevski/112563/expmap_622684801_622944001_4FGL_J0358.6+0634_daily_bin1479.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/112563/ltcube_622684801_622944001_4FGL_J0358.6+0634_daily_bin1479.fits
.....................!
real 197.57
user 185.74
sys 11.46

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/112563/ft1_filtered_4FGL_J0358.6+0634_daily_bin1479.fits scfile=/scratch/kocevski/112563/ft2_4FGL_J0358.6+0634_daily_bin1479.fits outfile=/scratch/kocevski/112563/cmap_622684801_622944001_4FGL_J0358.6+0634_daily_bin1479.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.62
user 0.38
sys 5.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/112563/ft1_filtered_4FGL_J0358.6+0634_daily_bin1479.fits scfile=/scratch/kocevski/112563/ft2_4FGL_J0358.6+0634_daily_bin1479.fits outfile=/scratch/kocevski/112563/cmap_HighResolution_622684801_622944001_4FGL_J0358.6+0634_daily_bin1479.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 6.20
user 0.38
sys 5.80

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8260       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9491       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.993       1.0000         .10000E-03   10000.    
    11 'norm      '    28.336       1.0000         .10000E-03   10000.    
    12 'norm      '    4.5168       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .59111       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9746       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .15713E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .70058       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1148       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=   9952.337     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     2113 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8262        3.1415        .77232E-02    .50302E-03
   2  Prefactor     .10000E-03    10.180        .90712E-02** at limit **
   3  norm          .10000E-03    2.0857        .90712E-02** at limit **
   4  norm          .10000E-03    .51800        .90712E-02** at limit **
   5  Prefactor     .10000E-03    139.34        .90712E-02** at limit **
   6  Prefactor     .10000E-03    10.260        .90712E-02** at limit **
   7  norm          .10000E-03    5.9493        .90712E-02** at limit **
   8  Prefactor     5.9551        37.235        .41158E-02   -.17042E-03
   9  norm          .10000E-03    2.8279        .90712E-02** at limit **
  10  Prefactor     33.979        29.302        .17183E-02    .86829E-03
  11  norm          28.334        30.028        .18815E-02    .44970E-03
  12  norm          4.5175        1.6475        .47359E-02    .62198E-04
  13  Prefactor     .59085        1.5555        .38079E-01    .16849E-02
  14  Prefactor     6.9923        18.554        .37977E-02   -.15626E-03
  15  Prefactor     .10000E-03    32.365        .90712E-02** at limit **
  16  norm          .10000E-03    1.1985        .58096E-01** at limit **
  17  Prefactor     .10000E-03    61.829        .90712E-02** at limit **
  18  Prefactor     .10000E-03    2.1759        .90712E-02** at limit **
  19  Normalizat    .70072        .24963        .12586        .50870E-04
  20  Prefactor     1.1148        .73833E-01    .37048E-01   -.14280E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.82623
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.95511
  norm       = 0.0001
  Prefactor  = 33.9791
  norm       = 28.3339
  norm       = 4.51747
  Prefactor  = 0.590847
  Prefactor  = 6.99227
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.700724
  Prefactor  = 1.11483
 **********
 **   18 **HESSE 
 **********

 FCN=   9952.337     FROM HESSE     STATUS=OK           289 CALLS     2402 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8262        3.1130        .22602E-03   -1.5438    
   2  Prefactor     .10000E-03    10.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.0887        .14071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .52926        .70045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    142.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.9503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.9551        36.770        .16463E-03   -1.5220    
   9  norm          .10000E-03    2.8590        .16375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     33.979        29.228        .68731E-04   -1.4541    
  11  norm          28.334        29.150        .75262E-04   -1.4643    
  12  norm          4.5175        1.5848        .69296E-04   -1.5283    
  13  Prefactor     .59085        1.3277        .17112E-02   -1.5554    
  14  Prefactor     6.9923        17.663        .15191E-03   -1.5179    
  15  Prefactor     .10000E-03    32.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.5531        .19859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    62.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.1819        .14369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .70072        .25919        .55850E-03   -1.0386    
  20  Prefactor     1.1148        .78134E-01    .13891E-03   -.88994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75048e-08
Minuit parameter uncertainties:
  1  3.11326
  2  5.9847e-06
  3  3.10136e-06
  4  7.80596e-07
  5  0.00124697
  6  5.47625e-06
  7  3.23249e-06
  8  29.6221
  9  7.33065e-07
  10  29.2407
  11  29.1642
  12  1.58481
  13  1.32774
  14  17.6759
  15  2.1222e-05
  16  3.49676e-06
  17  2.17506e-05
  18  6.45275e-07
  19  0.259643
  20  0.0781424
Done.

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

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  1.247e-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.115e+00  7.814e-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:  7.007e-01  2.596e-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.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/112563/likelihoodResults_622684801_622944001_4FGL_J0358.6+0634_daily_bin1479.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) = 9952.33726859
delta logL = -3.33950483764e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9952.33726858
delta logL = -3.3393400372e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96365E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5665       1.0000          .0000       10.000    
     3 'Normalizat'    .70072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1148       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=   9952.045     FROM MIGRAD    STATUS=CONVERGED    122 CALLS      271 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.437        277.67        .90712E-02    .46293E-04
   2  Index         1.6725        1.9887        .34736        .17992E-04
   3  Normalizat    .70412        .24488        .12558        .20673E-03
   4  Prefactor     1.1113        .76309E-01    .37049E-01   -.20924E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.437
  Index      = 1.67254
  Normalizat = 0.704125
  Prefactor  = 1.11129
 **********
 **   18 **HESSE 
 **********

 FCN=   9952.045     FROM HESSE     STATUS=OK            33 CALLS      304 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.437        39.319        .36285E-03   -1.4760    
   2  Index         1.6725        .74438        .12767E-01   -.72815    
   3  Normalizat    .70412        .25051        .55723E-03   -1.0373    
   4  Prefactor     1.1113        .77892E-01    .13907E-03   -.89107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.20743e-10
Minuit parameter uncertainties:
  1  39.364
  2  0.749409
  3  0.250914
  4  0.0778996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/112563': 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) = 9952.04538219
delta logL = 0.291852998271

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  2.244e+01  3.936e+01  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  1.673e+00  7.494e-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.111e+00  7.790e-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:  7.041e-01  2.509e-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/112563/cmap_HighResolution_622684801_622944001_4FGL_J0358.6+0634_daily_bin1479.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.85e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-08-19 20:46:17.008186', job_id='112563', GAL2='1.11', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1629431177.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.92e-01', ts2='0.58', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1479' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 20:46:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 112563: <4FGL_J0358.6+0634_daily_bin1479> in cluster <slac> Done

Job <4FGL_J0358.6+0634_daily_bin1479> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Aug 19 20:30:28 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 20:30:29 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:30:29 2021
Terminated at Thu Aug 19 20:46:18 2021
Results reported at Thu Aug 19 20:46:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin1479 59.6656 6.5759 622684801 622944001 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 :                                   908.33 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             328.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

