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


Performing analysis on: 4FGL_J0358.6+0634_daily_bin637
RA = 59.6656, Dec = 6.5759
tmin = 404438401, tmax = 404697601
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='107231', job_status='RUN', time_executed='2021-08-19 20:15:31.624047', time_epoch_executed='1629429331.62' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='637'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107231

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107231/ft1_4FGL_J0358.6+0634_daily_bin637.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107231/ft2_4FGL_J0358.6+0634_daily_bin637.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107231/ft1_4FGL_J0358.6+0634_daily_bin637.fits outfile=/scratch/kocevski/107231/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin637.fits ra=59.6656 dec=6.5759 rad=12.0 tmin=404438401.0 tmax=404697601.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 18.08
user 12.13
sys 5.90

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107231/ft1_filtered_4FGL_J0358.6+0634_daily_bin637.fits" evtable="EVENTS" scfile=/scratch/kocevski/107231/ft2_4FGL_J0358.6+0634_daily_bin637.fits sctable="SC_DATA" outfile=/scratch/kocevski/107231/ltcube_404438401_404697601_4FGL_J0358.6+0634_daily_bin637.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/107231/ft2_4FGL_J0358.6+0634_daily_bin637.fits
.....................!
real 17.27
user 10.72
sys 6.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107231/ft1_filtered_4FGL_J0358.6+0634_daily_bin637.fits evtable="EVENTS" scfile=/scratch/kocevski/107231/ft2_4FGL_J0358.6+0634_daily_bin637.fits sctable="SC_DATA" expcube=/scratch/kocevski/107231/ltcube_404438401_404697601_4FGL_J0358.6+0634_daily_bin637.fits outfile=/scratch/kocevski/107231/expmap_404438401_404697601_4FGL_J0358.6+0634_daily_bin637.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/107231/ltcube_404438401_404697601_4FGL_J0358.6+0634_daily_bin637.fits
.....................!
real 196.68
user 185.31
sys 11.04

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/107231/ft1_filtered_4FGL_J0358.6+0634_daily_bin637.fits scfile=/scratch/kocevski/107231/ft2_4FGL_J0358.6+0634_daily_bin637.fits outfile=/scratch/kocevski/107231/cmap_404438401_404697601_4FGL_J0358.6+0634_daily_bin637.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.91
user 0.37
sys 5.52

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107231/ft1_filtered_4FGL_J0358.6+0634_daily_bin637.fits scfile=/scratch/kocevski/107231/ft2_4FGL_J0358.6+0634_daily_bin637.fits outfile=/scratch/kocevski/107231/cmap_HighResolution_404438401_404697601_4FGL_J0358.6+0634_daily_bin637.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 5.91
user 0.37
sys 5.52

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .98310       1.0000         .10000E-03   10000.    
     5 'Prefactor '    141.34       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .72893       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    54.246       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.0211       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.9050       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .71702       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=   3690.517     FROM MIGRAD    STATUS=CONVERGED    410 CALLS     1998 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4592       -.10121E-06** at limit **
   2  Prefactor     .10000E-03    10.713       -.68179E-05** at limit **
   3  norm          .10000E-03    6.6264        .97555E-07** at limit **
   4  norm          .98283        1.8470       -.20002E-06   -.75928E-03
   5  Prefactor     141.36        121.69        .17596E-04    .29646E-04
   6  Prefactor     .10000E-03    20.734       -.20287E-04** at limit **
   7  norm          .10000E-03    11.352        .67994E-05** at limit **
   8  Prefactor     .10000E-03    15.056        .89211E-05** at limit **
   9  norm          .10000E-03    2.0387       -.11970E-06** at limit **
  10  Prefactor     .10000E-03    55.944       -.21337E-04** at limit **
  11  norm          .10000E-03    16.377       -.25510E-05** at limit **
  12  norm          .73092        1.6041        .23235E-05    .17752E-02
  13  Prefactor     .10000E-03    1.4546        .42160E-06** at limit **
  14  Prefactor     .10000E-03    31.101        .31072E-04** at limit **
  15  Prefactor     54.219        83.832       -.32798E-04   -.16072E-03
  16  norm          .10000E-03    2.3609       -.25726E-07** at limit **
  17  Prefactor     7.0178        81.029       -.93227E-05   -.76184E-05
  18  Prefactor     .10000E-03    4.6585        .35252E-08** at limit **
  19  Normalizat    1.9043        .40039        .37770E-05   -.19540E-03
  20  Prefactor     .71716        .10984       -.10402E-05    .68756E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.982832
  Prefactor  = 141.36
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.730915
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 54.2195
  norm       = 0.0001
  Prefactor  = 7.01775
  Prefactor  = 0.0001
  Normalizat = 1.90435
  Prefactor  = 0.717164
 **********
 **   18 **HESSE 
 **********

 FCN=   3690.517     FROM HESSE     STATUS=OK           283 CALLS     2281 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.4622        .13863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.6269        .15274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .98283        1.6646        .10813E-02   -1.5510    
   5  Prefactor     141.36        122.26        .16943E-03   -1.3324    
   6  Prefactor     .10000E-03    20.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    11.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.0408        .84693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    56.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    16.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .73092        1.4449        .97294E-03   -1.5537    
  13  Prefactor     .10000E-03    1.4753        .71229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    30.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     54.219        82.934        .54460E-04   -1.4234    
  16  norm          .10000E-03    2.4006        .91073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.0178        81.061        .15140E-03   -1.5178    
  18  Prefactor     .10000E-03    4.6642        .12806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.9043        .45527        .37155E-03   -.66970    
  20  Prefactor     .71716        .12516        .16647E-03   -1.0286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84653e-09
Minuit parameter uncertainties:
  1  8.84903e-07
  2  7.93591e-06
  3  5.60797e-07
  4  1.66471
  5  122.477
  6  0.000100178
  7  3.6847e-06
  8  2.24943e-05
  9  1.38133e-06
  10  1.68538e-05
  11  7.88538e-05
  12  1.44496
  13  6.53593e-05
  14  5.26182e-05
  15  83.1115
  16  7.43213e-06
  17  47.7829
  18  2.23156e-06
  19  0.4563
  20  0.125207
Done.

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

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.414e+02  1.225e+02  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:  7.172e-01  1.252e-01  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.904e+00  4.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.78
Ra Dec: 59.666 6.576
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 1.68e-07 +/- 1.46e-07
Energy Flux (Fixed Index): 4.55e-05 +/- 3.94e-05

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

Saving results to:
/scratch/kocevski/107231/likelihoodResults_404438401_404697601_4FGL_J0358.6+0634_daily_bin637.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) = 3690.49737346
delta logL = 0.0199462793375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3690.48483514
delta logL = 0.0324846001195

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    119.37       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7738       1.0000          .0000       10.000    
     3 'Normalizat'    1.8829       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72119       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=   3690.485     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      260 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     119.36        153.81        .36832E-04    .36823E-04
   2  Index         2.7739        .91097        .58119E-02    .28588E-04
   3  Normalizat    1.8827        .42967        .37310E-03   -.10116E-03
   4  Prefactor     .72124        .12408        .16605E-03   -.27811E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 119.361
  Index      = 2.77392
  Normalizat = 1.88267
  Prefactor  = 0.721244
 **********
 **   18 **HESSE 
 **********

 FCN=   3690.485     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     119.36        143.06        .73665E-05   -1.3519    
   2  Index         2.7739        .84653        .23247E-03   -.46142    
   3  Normalizat    1.8827        .42930        .74619E-04   -.67525    
   4  Prefactor     .72124        .12390        .33210E-04   -1.0270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.15246e-11
Minuit parameter uncertainties:
  1  143.472
  2  0.851655
  3  0.430173
  4  0.123949
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107231': 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) = 3690.48483501
delta logL = 0.0324847248871

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.194e+02  1.435e+02  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  2.774e+00  8.517e-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:  7.212e-01  1.239e-01  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.883e+00  4.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.85
Ra Dec: 59.666 6.576
Photon Index (Free Index): 2.77 +/- 0.85
Photon Flux (Free Index): 1.91e-07 +/- 1.77e-07
Energy Flux (Free Index): 4.36e-05 +/- 3.76e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/107231/cmap_HighResolution_404438401_404697601_4FGL_J0358.6+0634_daily_bin637.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.59e-02', comment='SUCCESS', photon_flux='1.68e-07', energy_flux2='4.36e-05', photon_flux_error='1.46e-07', dlogl='3.25e-02', energy_flux='4.55e-05', photon_flux2='1.91e-07', job_status='DONE', time_completed='2021-08-19 20:25:15.629091', photon_index_error2='0.85', photon_index2='2.77', ts='1.78', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='4.59e-07', energy_flux_error2='3.76e-05', EG='1.90', time_epoch_completed='1629429915.63', return_code='0', job_id='107231', GAL2='0.72', EG2='1.88', return_code2='0', energy_flux_error='3.94e-05', photon_flux_error2='1.77e-07', ts2='1.85', photon_index='2.57' WHERE bin_id='637' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 20:25:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 107231: <4FGL_J0358.6+0634_daily_bin637> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin637 59.6656 6.5759 404438401 404697601 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 :                                   666.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             211.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            881 sec.

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

