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


Performing analysis on: 4FGL_J0358.6+0634_daily_bin1481
RA = 59.6656, Dec = 6.5759
tmin = 623203201, tmax = 623462401
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='112566', job_status='RUN', time_executed='2021-08-19 20:33:03.012975', time_epoch_executed='1629430383.01' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='1481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/112566

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/112566/ft1_4FGL_J0358.6+0634_daily_bin1481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/112566/ft2_4FGL_J0358.6+0634_daily_bin1481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/112566/ft1_4FGL_J0358.6+0634_daily_bin1481.fits outfile=/scratch/kocevski/112566/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin1481.fits ra=59.6656 dec=6.5759 rad=12.0 tmin=623203201.0 tmax=623462401.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 11.75
user 2.66
sys 9.06

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/112566/ft1_filtered_4FGL_J0358.6+0634_daily_bin1481.fits" evtable="EVENTS" scfile=/scratch/kocevski/112566/ft2_4FGL_J0358.6+0634_daily_bin1481.fits sctable="SC_DATA" outfile=/scratch/kocevski/112566/ltcube_623203201_623462401_4FGL_J0358.6+0634_daily_bin1481.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/112566/ft2_4FGL_J0358.6+0634_daily_bin1481.fits
.....................!
real 23.36
user 12.94
sys 10.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/112566/ft1_filtered_4FGL_J0358.6+0634_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/112566/ft2_4FGL_J0358.6+0634_daily_bin1481.fits sctable="SC_DATA" expcube=/scratch/kocevski/112566/ltcube_623203201_623462401_4FGL_J0358.6+0634_daily_bin1481.fits outfile=/scratch/kocevski/112566/expmap_623203201_623462401_4FGL_J0358.6+0634_daily_bin1481.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/112566/ltcube_623203201_623462401_4FGL_J0358.6+0634_daily_bin1481.fits
.....................!
real 200.36
user 184.64
sys 15.39

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/112566/ft1_filtered_4FGL_J0358.6+0634_daily_bin1481.fits scfile=/scratch/kocevski/112566/ft2_4FGL_J0358.6+0634_daily_bin1481.fits outfile=/scratch/kocevski/112566/cmap_623203201_623462401_4FGL_J0358.6+0634_daily_bin1481.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 9.30
user 0.39
sys 8.88

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/112566/ft1_filtered_4FGL_J0358.6+0634_daily_bin1481.fits scfile=/scratch/kocevski/112566/ft2_4FGL_J0358.6+0634_daily_bin1481.fits outfile=/scratch/kocevski/112566/cmap_HighResolution_623203201_623462401_4FGL_J0358.6+0634_daily_bin1481.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 9.25
user 0.40
sys 8.83

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.589       1.0000         .10000E-03   10000.    
     3 'norm      '    4.3470       1.0000         .10000E-03   10000.    
     4 'norm      '    .48056       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.640       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.9801       1.0000         .10000E-03   10000.    
    12 'norm      '    2.6514       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.585       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .78127       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14289E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .80336       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0819       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=   8589.456     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     2030 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.4803       -.17780E-06** at limit **
   2  Prefactor     22.595        23.190       -.27661E-06    .16754E-04
   3  norm          4.3472        4.3937        .74071E-07    .32697E-04
   4  norm          .48035        1.5012       -.22118E-06   -.26427E-03
   5  Prefactor     .10000E-03    13.532        .76304E-06** at limit **
   6  Prefactor     27.642        19.217        .26540E-07    .34685E-04
   7  norm          .10000E-03    7.1938        .70880E-07** at limit **
   8  Prefactor     .10000E-03    14.863       -.97661E-06** at limit **
   9  norm          .10000E-03    1.5109        .69178E-08** at limit **
  10  Prefactor     .10000E-03    18.139       -.10675E-05** at limit **
  11  norm          2.9703        47.191        .24372E-06    .18426E-04
  12  norm          2.6509        1.1185       -.23140E-07    .65166E-04
  13  Prefactor     .10000E-03    .52164       -.82088E-07** at limit **
  14  Prefactor     31.514        28.683        .13412E-05    .17904E-03
  15  Prefactor     .10000E-03    46.711        .31082E-05** at limit **
  16  norm          .78486        3.1579       -.39220E-05    .81354E-04
  17  Prefactor     .10000E-03    13.542        .75088E-06** at limit **
  18  Prefactor     .10004E-03    3.8791       -.42486E-06** at limit **
  19  Normalizat    .80305        .29456        .57443E-05    .17367E-03
  20  Prefactor     1.0819        .81184E-01   -.34728E-06    .63534E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 22.5946
  norm       = 4.3472
  norm       = 0.48035
  Prefactor  = 0.0001
  Prefactor  = 27.6424
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.97026
  norm       = 2.65087
  Prefactor  = 0.0001
  Prefactor  = 31.5142
  Prefactor  = 0.0001
  norm       = 0.784862
  Prefactor  = 0.0001
  Prefactor  = 0.00010004
  Normalizat = 0.80305
  Prefactor  = 1.08194
 **********
 **   18 **HESSE 
 **********

 FCN=   8589.456     FROM HESSE     STATUS=OK           293 CALLS     2323 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.5454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.595        23.175        .84278E-04   -1.4757    
   3  norm          4.3472        4.4010        .19079E-03   -1.5291    
   4  norm          .48035        1.9159        .18442E-02   -1.5569    
   5  Prefactor     .10000E-03    13.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.642        19.193        .76202E-04   -1.4656    
   7  norm          .10000E-03    7.1977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.5161        .11123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9703        46.610        .23518E-03   -1.5363    
  12  norm          2.6509        1.1174        .60983E-04   -1.5382    
  13  Prefactor     .10000E-03    .52670        .65230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.514        29.168        .71295E-04   -1.4585    
  15  Prefactor     .10000E-03    46.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .78486        3.2844        .25988E-02   -1.5531    
  17  Prefactor     .10000E-03    13.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10004E-03    17.119        .34346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .80305        .30685        .54717E-03   -.99956    
  20  Prefactor     1.0819        .87067E-01    .14396E-03   -.90046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94646e-08
Minuit parameter uncertainties:
  1  2.09976e-05
  2  23.1843
  3  4.40132
  4  1.91613
  5  5.93204e-06
  6  19.1976
  7  2.5809e-06
  8  3.21518e-05
  9  3.26596e-06
  10  5.57221e-06
  11  23.5538
  12  1.11739
  13  1.38122e-06
  14  29.1809
  15  4.39389e-05
  16  3.2112
  17  1.82779e-05
  18  0.0016595
  19  0.307515
  20  0.0870784
Done.

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

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  5.932e-06  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.082e+00  8.708e-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:  8.030e-01  3.075e-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: 8.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/112566/likelihoodResults_623203201_623462401_4FGL_J0358.6+0634_daily_bin1481.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) = 8589.45679495
delta logL = -0.000352210694473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8589.45644304
delta logL = -3.01382897305e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5544       1.0000          .0000       10.000    
     3 'Normalizat'    .80291       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0820       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=   8589.456     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      248 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10212E-03    336.23        .18142E-02** at limit **
   2  Index         2.4404        8.1327        .50000        .58226E-05
   3  Normalizat    .80305        .36323E-01    .54715E-03    .15376E-04
   4  Prefactor     1.0819        .11041E-01    .14396E-03    .33484E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102119
  Index      = 2.4404
  Normalizat = 0.803049
  Prefactor  = 1.08194
 **********
 **   18 **HESSE 
 **********

 FCN=   8589.456     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10212E-03    1245.5        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4404        6.2600        .50000       -.53742    
   3  Normalizat    .80305        .77876E-01    .21886E-04   -.99956    
   4  Prefactor     1.0819        .23674E-01    .57583E-05   -.90046    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.42551e-08
Minuit parameter uncertainties:
  1  0.105006
  2  2574.95
  3  0.0778868
  4  0.0236747
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/112566': 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): 102
logL (Free Index) = 8589.45644262
delta logL = 1.23503923533e-07

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.021e-04  1.050e-01  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  2.440e+00  2.575e+03  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.082e+00  2.367e-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:  8.030e-01  7.789e-02  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/112566/cmap_HighResolution_623203201_623462401_4FGL_J0358.6+0634_daily_bin1481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.60e-03', job_status='DONE', photon_flux_upper_limit='8.45e-08', time_completed='2021-08-19 20:46:27.125189', job_id='112566', GAL2='1.08', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1629431187.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1481' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 20:46:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 112566: <4FGL_J0358.6+0634_daily_bin1481> in cluster <slac> Done

Job <4FGL_J0358.6+0634_daily_bin1481> 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) <bullet0243>, 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:29 2021
Results reported at Thu Aug 19 20:46:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin1481 59.6656 6.5759 623203201 623462401 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 :                                   932.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            961 sec.

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

