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


Performing analysis on: 4FGL_J0358.6+0634_daily_bin720
RA = 59.6656, Dec = 6.5759
tmin = 425952001, tmax = 426211201
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='108435', job_status='RUN', time_executed='2021-08-19 20:17:38.730119', time_epoch_executed='1629429458.73' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='720'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/108435

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/108435/ft1_4FGL_J0358.6+0634_daily_bin720.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/108435/ft2_4FGL_J0358.6+0634_daily_bin720.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/108435/ft1_4FGL_J0358.6+0634_daily_bin720.fits outfile=/scratch/kocevski/108435/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin720.fits ra=59.6656 dec=6.5759 rad=12.0 tmin=425952001.0 tmax=426211201.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.53
user 3.43
sys 1.09

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/108435/ft1_filtered_4FGL_J0358.6+0634_daily_bin720.fits" evtable="EVENTS" scfile=/scratch/kocevski/108435/ft2_4FGL_J0358.6+0634_daily_bin720.fits sctable="SC_DATA" outfile=/scratch/kocevski/108435/ltcube_425952001_426211201_4FGL_J0358.6+0634_daily_bin720.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/108435/ft2_4FGL_J0358.6+0634_daily_bin720.fits
.....................!
real 12.84
user 11.49
sys 1.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/108435/ft1_filtered_4FGL_J0358.6+0634_daily_bin720.fits evtable="EVENTS" scfile=/scratch/kocevski/108435/ft2_4FGL_J0358.6+0634_daily_bin720.fits sctable="SC_DATA" expcube=/scratch/kocevski/108435/ltcube_425952001_426211201_4FGL_J0358.6+0634_daily_bin720.fits outfile=/scratch/kocevski/108435/expmap_425952001_426211201_4FGL_J0358.6+0634_daily_bin720.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/108435/ltcube_425952001_426211201_4FGL_J0358.6+0634_daily_bin720.fits
.....................!
real 191.51
user 184.69
sys 6.50

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/108435/ft1_filtered_4FGL_J0358.6+0634_daily_bin720.fits scfile=/scratch/kocevski/108435/ft2_4FGL_J0358.6+0634_daily_bin720.fits outfile=/scratch/kocevski/108435/cmap_425952001_426211201_4FGL_J0358.6+0634_daily_bin720.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.39
user 0.35
sys 1.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/108435/ft1_filtered_4FGL_J0358.6+0634_daily_bin720.fits scfile=/scratch/kocevski/108435/ft2_4FGL_J0358.6+0634_daily_bin720.fits outfile=/scratch/kocevski/108435/cmap_HighResolution_425952001_426211201_4FGL_J0358.6+0634_daily_bin720.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.36
user 0.38
sys 0.96

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4591       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.884       1.0000         .10000E-03   10000.    
     3 'norm      '    8.4602       1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0115       1.0000         .10000E-03   10000.    
     7 'norm      '    .22682E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.6711       1.0000         .10000E-03   10000.    
    12 'norm      '    .14804       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.904       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10623E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1255       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0428       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=   10581.46     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     2071 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4590        4.9724        .56754E-05    .21800E-04
   2  Prefactor     12.885        13.765       -.40444E-06   -.55211E-04
   3  norm          8.4599        6.3124       -.14130E-06    .16269E-05
   4  norm          .10000E-03    .55587        .53859E-09** at limit **
   5  Prefactor     .10000E-03    16.439       -.83040E-05** at limit **
   6  Prefactor     7.0117        10.997       -.24694E-06   -.73398E-04
   7  norm          .10013E-03    9.2680       -.76407E-06** at limit **
   8  Prefactor     .10000E-03    7.7150       -.58399E-07** at limit **
   9  norm          .10000E-03    1.7678        .80002E-07** at limit **
  10  Prefactor     .10000E-03    14.273        .32048E-05** at limit **
  11  norm          3.6716        12.806       -.45904E-06   -.83579E-04
  12  norm          .14958        .58860       -.57279E-06   -.13360E-02
  13  Prefactor     .10000E-03    .49349        .41146E-07** at limit **
  14  Prefactor     21.897        18.855       -.15772E-06   -.27835E-04
  15  Prefactor     .10000E-03    13.195        .10620E-05** at limit **
  16  norm          .10000E-03    1.3672        .56364E-07** at limit **
  17  Prefactor     .10000E-03    21.569        .54636E-05** at limit **
  18  Prefactor     .10000E-03    4.5311        .44641E-07** at limit **
  19  Normalizat    1.1254        .23335        .36589E-06   -.12355E-04
  20  Prefactor     1.0428        .68438E-01   -.37767E-06    .18983E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.45897
  Prefactor  = 12.8848
  norm       = 8.45994
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.0117
  norm       = 0.000100128
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.67163
  norm       = 0.149578
  Prefactor  = 0.0001
  Prefactor  = 21.8972
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12542
  Prefactor  = 1.04283
 **********
 **   18 **HESSE 
 **********

 FCN=   10581.46     FROM HESSE     STATUS=OK           297 CALLS     2368 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4590        4.7864        .21744E-03   -1.5336    
   2  Prefactor     12.885        13.793        .11160E-03   -1.4990    
   3  norm          8.4599        6.3170        .13782E-03   -1.5126    
   4  norm          .10000E-03    .96660        .14831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.0117        10.992        .15150E-03   -1.5178    
   7  norm          .10013E-03    86.662        .60904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.7167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.7795        .13352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.6716        12.781        .21081E-03   -1.5325    
  12  norm          .14958        1.3212        .15077E-02   -1.5631    
  13  Prefactor     .10000E-03    .49783        .70398E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.897        18.773        .85584E-04   -1.4772    
  15  Prefactor     .10000E-03    13.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3877        .23351E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.5866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1254        .25695        .45865E-03   -.88940    
  20  Prefactor     1.0428        .76242E-01    .14429E-03   -.91315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95913e-09
Minuit parameter uncertainties:
  1  4.78689
  2  13.7965
  3  6.31748
  4  2.1638e-06
  5  0.00020725
  6  10.9955
  7  0.00666645
  8  3.4532e-06
  9  4.96033e-06
  10  8.06361e-05
  11  12.7903
  12  0.888819
  13  3.0182e-06
  14  18.7781
  15  4.08607e-05
  16  3.09505e-06
  17  0.000163014
  18  2.60438e-06
  19  0.257236
  20  0.0762494
Done.

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

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  2.072e-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.043e+00  7.625e-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.125e+00  2.572e-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.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/108435/likelihoodResults_425952001_426211201_4FGL_J0358.6+0634_daily_bin720.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) = 10581.4561583
delta logL = -0.000288594343147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10581.4558697
delta logL = 1.23036443256e-08

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 'Index     '    2.5550       1.0000          .0000       10.000    
     3 'Normalizat'    1.1254       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0428       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=   10581.46     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      247 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10159E-03    340.79        .18142E-02** at limit **
   2  Index         2.4675        5.7082        .50000        .49538E-05
   3  Normalizat    1.1254        .29213E-01    .45865E-03    .25283E-05
   4  Prefactor     1.0428        .89552E-02    .14429E-03    .13710E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101586
  Index      = 2.46754
  Normalizat = 1.12542
  Prefactor  = 1.04283
 **********
 **   18 **HESSE 
 **********

 FCN=   10581.46     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10159E-03    1307.5        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4675        7.7760        .50000       -.53111    
   3  Normalizat    1.1254        .62880E-01    .18346E-04   -.88940    
   4  Prefactor     1.0428        .19277E-01    .57715E-05   -.91315    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.55144e-08
Minuit parameter uncertainties:
  1  0.0932008
  2  2270.33
  3  0.0628845
  4  0.0192767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/108435': 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) = 10581.4558696
delta logL = 8.084680303e-08

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.016e-04  9.320e-02  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  2.468e+00  2.270e+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.043e+00  1.928e-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.125e+00  6.288e-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/108435/cmap_HighResolution_425952001_426211201_4FGL_J0358.6+0634_daily_bin720.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.53e-03', job_status='DONE', photon_flux_upper_limit='8.36e-08', time_completed='2021-08-19 20:30:35.934499', job_id='108435', GAL2='1.04', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1629430235.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='8.08e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='720' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 20:30:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 108435: <4FGL_J0358.6+0634_daily_bin720> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin720 59.6656 6.5759 425952001 426211201 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 :                                   789.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            912 sec.

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

