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


Performing analysis on: 4FGL_J0358.6+0634_daily_bin175
RA = 59.6656, Dec = 6.5759
tmin = 284688001, tmax = 284947201
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='104361', job_status='RUN', time_executed='2021-08-19 20:01:20.253933', time_epoch_executed='1629428480.25' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='175'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104361

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104361/ft1_4FGL_J0358.6+0634_daily_bin175.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104361/ft2_4FGL_J0358.6+0634_daily_bin175.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104361/ft1_4FGL_J0358.6+0634_daily_bin175.fits outfile=/scratch/kocevski/104361/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin175.fits ra=59.6656 dec=6.5759 rad=12.0 tmin=284688001.0 tmax=284947201.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 4.79
user 3.44
sys 1.33

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/104361/ft2_4FGL_J0358.6+0634_daily_bin175.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/104361/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin175.fits evtable="EVENTS" outfile="/scratch/kocevski/104361/ft1_filtered_4FGL_J0358.6+0634_daily_bin175.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.63
user 0.33
sys 1.28

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/104361/ft1_filtered_4FGL_J0358.6+0634_daily_bin175.fits" evtable="EVENTS" scfile=/scratch/kocevski/104361/ft2_4FGL_J0358.6+0634_daily_bin175.fits sctable="SC_DATA" outfile=/scratch/kocevski/104361/ltcube_284688001_284947201_4FGL_J0358.6+0634_daily_bin175.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/104361/ft2_4FGL_J0358.6+0634_daily_bin175.fits
.....................!
real 13.77
user 12.16
sys 1.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104361/ft1_filtered_4FGL_J0358.6+0634_daily_bin175.fits evtable="EVENTS" scfile=/scratch/kocevski/104361/ft2_4FGL_J0358.6+0634_daily_bin175.fits sctable="SC_DATA" expcube=/scratch/kocevski/104361/ltcube_284688001_284947201_4FGL_J0358.6+0634_daily_bin175.fits outfile=/scratch/kocevski/104361/expmap_284688001_284947201_4FGL_J0358.6+0634_daily_bin175.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/104361/ltcube_284688001_284947201_4FGL_J0358.6+0634_daily_bin175.fits
.....................!
real 191.55
user 185.09
sys 6.14

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/104361/ft1_filtered_4FGL_J0358.6+0634_daily_bin175.fits scfile=/scratch/kocevski/104361/ft2_4FGL_J0358.6+0634_daily_bin175.fits outfile=/scratch/kocevski/104361/cmap_284688001_284947201_4FGL_J0358.6+0634_daily_bin175.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.64
user 0.37
sys 1.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/104361/ft1_filtered_4FGL_J0358.6+0634_daily_bin175.fits scfile=/scratch/kocevski/104361/ft2_4FGL_J0358.6+0634_daily_bin175.fits outfile=/scratch/kocevski/104361/cmap_HighResolution_284688001_284947201_4FGL_J0358.6+0634_daily_bin175.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.67
user 0.37
sys 1.26

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2409       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.268       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.5437       1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.233       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10551E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.426       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10355E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.466       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1082       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92114       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0716       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=   13380.52     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2032 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2402        1.1930        .15964E-06   -.23624E-02
   2  Prefactor     32.269        17.710       -.12656E-06    .42362E-05
   3  norm          .10000E-03    1.4760       -.30932E-07** at limit **
   4  norm          1.5437        1.0423       -.34875E-07   -.75248E-04
   5  Prefactor     37.227        37.046       -.60454E-05    .18478E-04
   6  Prefactor     .10000E-03    19.587       -.72015E-05** at limit **
   7  norm          .10000E-03    5.5211       -.26991E-07** at limit **
   8  Prefactor     .10000E-03    38.894       -.82374E-05** at limit **
   9  norm          .10000E-03    1.9503       -.69637E-07** at limit **
  10  Prefactor     .10000E-03    27.321        .13022E-04** at limit **
  11  norm          .10000E-03    8.5924        .20528E-05** at limit **
  12  norm          11.426        1.7981       -.24344E-07    .11974E-03
  13  Prefactor     .10000E-03    .60146       -.25627E-07** at limit **
  14  Prefactor     .10000E-03    9.4377       -.57474E-05** at limit **
  15  Prefactor     .10000E-03    10.779        .50714E-05** at limit **
  16  norm          .10000E-03    .76304        .48568E-09** at limit **
  17  Prefactor     22.467        30.041        .93089E-06   -.32774E-05
  18  Prefactor     3.1106        7.1043       -.24829E-06   -.41432E-04
  19  Normalizat    .92107        .23170        .10048E-05    .26386E-04
  20  Prefactor     1.0716        .65238E-01   -.12308E-07    .10519E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.2402
  Prefactor  = 32.2689
  norm       = 0.0001
  norm       = 1.54373
  Prefactor  = 37.2265
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.4259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.4665
  Prefactor  = 3.11062
  Normalizat = 0.921071
  Prefactor  = 1.07158
 **********
 **   18 **HESSE 
 **********

 FCN=   13380.52     FROM HESSE     STATUS=OK           289 CALLS     2321 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2402        5.0825        .13728E-02   -1.5409    
   2  Prefactor     32.269        17.714        .70538E-04   -1.4571    
   3  norm          .10000E-03    1.4774        .13724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.5437        1.0349        .93732E-04   -1.5459    
   5  Prefactor     37.227        37.003        .65682E-04   -1.4487    
   6  Prefactor     .10000E-03    19.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.5245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    39.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.9711        .15770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    8.6094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.426        1.7980        .58769E-04   -1.5032    
  13  Prefactor     .10000E-03    .61274        .87470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.4861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3508        .19522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.467        30.036        .84508E-04   -1.4760    
  18  Prefactor     3.1106        7.0788        .23000E-03   -1.5355    
  19  Normalizat    .92107        .24986        .53469E-03   -.95724    
  20  Prefactor     1.0716        .71478E-01    .14799E-03   -.90380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.31061e-09
Minuit parameter uncertainties:
  1  5.08351
  2  17.7169
  3  1.19597e-07
  4  1.03488
  5  37.0261
  6  0.000111491
  7  5.85833e-07
  8  1.59761e-06
  9  4.6311e-07
  10  1.61892e-05
  11  4.78747e-06
  12  1.79802
  13  3.09795e-08
  14  7.33434e-06
  15  1.10751e-05
  16  1.0037e-06
  17  30.0567
  18  7.08065
  19  0.250179
  20  0.0714842
Done.

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

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  3.723e+01  3.703e+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.072e+00  7.148e-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.211e-01  2.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.91
Ra Dec: 59.666 6.576
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 4.43e-08 +/- 4.40e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 1.19e-05

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

Saving results to:
/scratch/kocevski/104361/likelihoodResults_284688001_284947201_4FGL_J0358.6+0634_daily_bin175.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) = 13379.9632677
delta logL = 0.55620680054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13379.9534644
delta logL = 0.566010072786

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.553       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6356       1.0000          .0000       10.000    
     3 'Normalizat'    .95551       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0671       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=   13379.95     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      255 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.595        40.037        .35666E-03    .65218E-04
   2  Index         1.6363        .67088        .12830E-01   -.42273E-04
   3  Normalizat    .95564        .23654        .26288E-02    .13337E-03
   4  Prefactor     1.0670        .70698E-01    .14825E-03    .22392E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.5954
  Index      = 1.63628
  Normalizat = 0.955637
  Prefactor  = 1.06695
 **********
 **   18 **HESSE 
 **********

 FCN=   13379.95     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.595        41.645        .14266E-04   -1.4583    
   2  Index         1.6363        .69798        .51322E-03   -.73791    
   3  Normalizat    .95564        .23660        .10515E-03   -.94532    
   4  Prefactor     1.0670        .70711E-01    .59302E-05   -.90530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20547e-10
Minuit parameter uncertainties:
  1  41.6833
  2  0.702185
  3  0.236858
  4  0.0707175
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104361': 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) = 13379.9534622
delta logL = 0.56601230456

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  3.160e+01  4.168e+01  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  1.636e+00  7.022e-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.067e+00  7.072e-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.556e-01  2.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.03
Ra Dec: 59.666 6.576
Photon Index (Free Index): 1.64 +/- 0.70
Photon Flux (Free Index): 1.37e-08 +/- 2.18e-08
Energy Flux (Free Index): 2.76e-05 +/- 4.18e-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/104361/cmap_HighResolution_284688001_284947201_4FGL_J0358.6+0634_daily_bin175.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', photon_flux='4.43e-08', energy_flux2='2.76e-05', photon_flux_error='4.40e-08', dlogl='5.66e-01', energy_flux='1.20e-05', photon_flux2='1.37e-08', job_status='DONE', time_completed='2021-08-19 20:16:14.779158', photon_index_error2='0.70', photon_index2='1.64', ts='1.91', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='4.18e-05', EG='0.92', time_epoch_completed='1629429374.78', return_code='0', job_id='104361', GAL2='1.07', EG2='0.96', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='2.18e-08', ts2='3.03', photon_index='2.57' WHERE bin_id='175' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 20:16:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 104361: <4FGL_J0358.6+0634_daily_bin175> in cluster <slac> Done

Job <4FGL_J0358.6+0634_daily_bin175> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Aug 19 20:00:45 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 20:00:47 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:00:47 2021
Terminated at Thu Aug 19 20:16:15 2021
Results reported at Thu Aug 19 20:16:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin175 59.6656 6.5759 284688001 284947201 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.52 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             337.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

