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


Performing analysis on: 4FGL_J0358.6+0634_daily_bin580
RA = 59.6656, Dec = 6.5759
tmin = 389664001, tmax = 389923201
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='107145', job_status='RUN', time_executed='2021-08-19 20:13:42.166080', time_epoch_executed='1629429222.17' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='580'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107145

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107145/ft1_4FGL_J0358.6+0634_daily_bin580.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107145/ft2_4FGL_J0358.6+0634_daily_bin580.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107145/ft1_4FGL_J0358.6+0634_daily_bin580.fits outfile=/scratch/kocevski/107145/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin580.fits ra=59.6656 dec=6.5759 rad=12.0 tmin=389664001.0 tmax=389923201.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 5.44
user 4.58
sys 0.82

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/107145/ft2_4FGL_J0358.6+0634_daily_bin580.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/107145/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin580.fits evtable="EVENTS" outfile="/scratch/kocevski/107145/ft1_filtered_4FGL_J0358.6+0634_daily_bin580.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.08
user 0.34
sys 0.73

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107145/ft1_filtered_4FGL_J0358.6+0634_daily_bin580.fits" evtable="EVENTS" scfile=/scratch/kocevski/107145/ft2_4FGL_J0358.6+0634_daily_bin580.fits sctable="SC_DATA" outfile=/scratch/kocevski/107145/ltcube_389664001_389923201_4FGL_J0358.6+0634_daily_bin580.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/107145/ft2_4FGL_J0358.6+0634_daily_bin580.fits
.....................!
real 12.42
user 11.40
sys 0.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107145/ft1_filtered_4FGL_J0358.6+0634_daily_bin580.fits evtable="EVENTS" scfile=/scratch/kocevski/107145/ft2_4FGL_J0358.6+0634_daily_bin580.fits sctable="SC_DATA" expcube=/scratch/kocevski/107145/ltcube_389664001_389923201_4FGL_J0358.6+0634_daily_bin580.fits outfile=/scratch/kocevski/107145/expmap_389664001_389923201_4FGL_J0358.6+0634_daily_bin580.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/107145/ltcube_389664001_389923201_4FGL_J0358.6+0634_daily_bin580.fits
.....................!
real 192.93
user 187.70
sys 4.84

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/107145/ft1_filtered_4FGL_J0358.6+0634_daily_bin580.fits scfile=/scratch/kocevski/107145/ft2_4FGL_J0358.6+0634_daily_bin580.fits outfile=/scratch/kocevski/107145/cmap_389664001_389923201_4FGL_J0358.6+0634_daily_bin580.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 1.14
user 0.37
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107145/ft1_filtered_4FGL_J0358.6+0634_daily_bin580.fits scfile=/scratch/kocevski/107145/ft2_4FGL_J0358.6+0634_daily_bin580.fits outfile=/scratch/kocevski/107145/cmap_HighResolution_389664001_389923201_4FGL_J0358.6+0634_daily_bin580.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.12
user 0.38
sys 0.73

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4234       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.5020       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10605E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10977E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    21.378       1.0000         .10000E-03   10000.    
     8 'Prefactor '    92.678       1.0000         .10000E-03   10000.    
     9 'norm      '    .20177E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .89373       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.647       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .30798E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.254       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0494       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0175       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=   9620.598     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2076 TOTAL
                     EDM=   .92E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5345       -.28281E-07** at limit **
   2  Prefactor     1.4209        50.110        .98057E-05   -.11819E-04
   3  norm          .10000E-03    1.7871       -.38272E-08** at limit **
   4  norm          4.5017        2.2024       -.24730E-07    .45342E-04
   5  Prefactor     .10000E-03    61.636       -.11082E-05** at limit **
   6  Prefactor     .10000E-03    22.707       -.40983E-06** at limit **
   7  norm          21.388        20.125       -.27695E-06    .26620E-06
   8  Prefactor     92.697        47.012       -.15459E-05    .15753E-04
   9  norm          .10001E-03    2.8961       -.52733E-06** at limit **
  10  Prefactor     .10000E-03    15.788       -.18885E-06** at limit **
  11  norm          .10000E-03    7.4199       -.13497E-07** at limit **
  12  norm          .10000E-03    .48024        .22856E-06** at limit **
  13  Prefactor     .89464        1.7816       -.15099E-06    .34270E-03
  14  Prefactor     27.670        24.531        .14919E-05    .44873E-04
  15  Prefactor     .10000E-03    36.316        .47012E-07** at limit **
  16  norm          .10000E-03    1.5572        .26417E-06** at limit **
  17  Prefactor     17.264        20.624       -.22147E-06    .31456E-05
  18  Prefactor     .10000E-03    1.7957       -.21803E-07** at limit **
  19  Normalizat    1.0495        .25674       -.73907E-07    .14284E-04
  20  Prefactor     1.0175        .70795E-01    .19867E-06    .24858E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.42092
  norm       = 0.0001
  norm       = 4.50173
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.388
  Prefactor  = 92.6968
  norm       = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.894638
  Prefactor  = 27.67
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.2645
  Prefactor  = 0.0001
  Normalizat = 1.04949
  Prefactor  = 1.01754
 **********
 **   18 **HESSE 
 **********

 FCN=   9620.598     FROM HESSE     STATUS=OK           297 CALLS     2373 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5502        .15249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.4209        52.907        .18123E-02   -1.5470    
   3  norm          .10000E-03    1.7879        .12806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.5017        2.2058        .96498E-04   -1.5284    
   5  Prefactor     .10000E-03    62.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          21.388        20.073        .86629E-04   -1.4783    
   8  Prefactor     92.697        46.567        .20872E-03   -1.3779    
   9  norm          .10001E-03    34.432        .30968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.4212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .72133        .12760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .89464        1.6598        .17010E-02   -1.5519    
  14  Prefactor     27.670        24.494        .76192E-04   -1.4655    
  15  Prefactor     .10000E-03    36.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.9748        .20470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.264        20.623        .96422E-04   -1.4877    
  18  Prefactor     .10000E-03    1.7978        .12836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0495        .27933        .47845E-03   -.91390    
  20  Prefactor     1.0175        .78783E-01    .14416E-03   -.92147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96418e-10
Minuit parameter uncertainties:
  1  5.90654e-06
  2  17.3568
  3  7.19389e-07
  4  2.20588
  5  0.000153538
  6  9.18823e-05
  7  20.079
  8  46.5856
  9  0.00103028
  10  2.75477e-05
  11  1.66207e-05
  12  1.57119e-05
  13  1.65986
  14  24.5031
  15  5.41038e-05
  16  4.24208e-05
  17  20.631
  18  1.3678e-06
  19  0.279722
  20  0.0787923
Done.

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

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  1.535e-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.018e+00  7.879e-02  0.000e+00  1.000e+01 ( 1.000e+00)
461        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
462        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
459   Normalization:  1.049e+00  2.797e-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.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/107145/likelihoodResults_389664001_389923201_4FGL_J0358.6+0634_daily_bin580.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) = 9620.59842462
delta logL = -7.67218352848e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9620.59834804
delta logL = -1.41384589369e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5115       1.0000          .0000       10.000    
     3 'Normalizat'    1.0495       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0175       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9620.598     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      282 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    517.39        .18142E-02** at limit **
   2  Index         2.5746        6.8902        .50000       -.11270E-04
   3  Normalizat    1.0495        .25984        .47845E-03   -.65106E-05
   4  Prefactor     1.0175        .78035E-01    .14416E-03   -.26814E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 2.5746
  Normalizat = 1.04949
  Prefactor  = 1.01754
 **********
 **   18 **HESSE 
 **********

 FCN=   9620.598     FROM HESSE     STATUS=OK            29 CALLS      311 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    64.418        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5746        6.2847        .50000       -.50645    
   3  Normalizat    1.0495        .25993        .19138E-04   -.91390    
   4  Prefactor     1.0175        .78066E-01    .57662E-05   -.92147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14372e-10
Minuit parameter uncertainties:
  1  0.0014709
  2  4.454
  3  0.260247
  4  0.0780745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107145': 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) = 9620.59834788
delta logL = 2.05691321753e-08

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  1.471e-03  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  2.575e+00  4.454e+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.018e+00  7.807e-02  0.000e+00  1.000e+01 ( 1.000e+00)
461        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
462        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
459   Normalization:  1.049e+00  2.602e-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/107145/cmap_HighResolution_389664001_389923201_4FGL_J0358.6+0634_daily_bin580.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.49e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-08-19 20:25:55.083047', job_id='107145', GAL2='1.02', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1629429955.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.06e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='580' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 20:25:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 107145: <4FGL_J0358.6+0634_daily_bin580> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin580 59.6656 6.5759 389664001 389923201 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 :                                   741.03 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             276.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            925 sec.

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

