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


Performing analysis on: 4FGL_J0358.6+0634_daily_bin1180
RA = 59.6656, Dec = 6.5759
tmin = 545184001, tmax = 545443201
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='111277', job_status='RUN', time_executed='2021-08-19 20:28:08.336890', time_epoch_executed='1629430088.34' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='1180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/111277

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/111277/ft1_4FGL_J0358.6+0634_daily_bin1180.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/111277/ft2_4FGL_J0358.6+0634_daily_bin1180.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/111277/ft1_4FGL_J0358.6+0634_daily_bin1180.fits outfile=/scratch/kocevski/111277/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin1180.fits ra=59.6656 dec=6.5759 rad=12.0 tmin=545184001.0 tmax=545443201.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 13.37
user 3.73
sys 9.60

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/111277/ft1_filtered_4FGL_J0358.6+0634_daily_bin1180.fits" evtable="EVENTS" scfile=/scratch/kocevski/111277/ft2_4FGL_J0358.6+0634_daily_bin1180.fits sctable="SC_DATA" outfile=/scratch/kocevski/111277/ltcube_545184001_545443201_4FGL_J0358.6+0634_daily_bin1180.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/111277/ft2_4FGL_J0358.6+0634_daily_bin1180.fits
.....................!
real 22.98
user 11.68
sys 11.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/111277/ft1_filtered_4FGL_J0358.6+0634_daily_bin1180.fits evtable="EVENTS" scfile=/scratch/kocevski/111277/ft2_4FGL_J0358.6+0634_daily_bin1180.fits sctable="SC_DATA" expcube=/scratch/kocevski/111277/ltcube_545184001_545443201_4FGL_J0358.6+0634_daily_bin1180.fits outfile=/scratch/kocevski/111277/expmap_545184001_545443201_4FGL_J0358.6+0634_daily_bin1180.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/111277/ltcube_545184001_545443201_4FGL_J0358.6+0634_daily_bin1180.fits
.....................!
real 202.74
user 185.34
sys 16.96

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/111277/ft1_filtered_4FGL_J0358.6+0634_daily_bin1180.fits scfile=/scratch/kocevski/111277/ft2_4FGL_J0358.6+0634_daily_bin1180.fits outfile=/scratch/kocevski/111277/cmap_545184001_545443201_4FGL_J0358.6+0634_daily_bin1180.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.84
user 0.36
sys 9.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/111277/ft1_filtered_4FGL_J0358.6+0634_daily_bin1180.fits scfile=/scratch/kocevski/111277/ft2_4FGL_J0358.6+0634_daily_bin1180.fits outfile=/scratch/kocevski/111277/cmap_HighResolution_545184001_545443201_4FGL_J0358.6+0634_daily_bin1180.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.81
user 0.38
sys 9.39

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/111277/ft1_filtered_4FGL_J0358.6+0634_daily_bin1180.fits', '/scratch/kocevski/111277/ft2_4FGL_J0358.6+0634_daily_bin1180.fits', expMap='/scratch/kocevski/111277/expmap_545184001_545443201_4FGL_J0358.6+0634_daily_bin1180.fits', expCube='/scratch/kocevski/111277/ltcube_545184001_545443201_4FGL_J0358.6+0634_daily_bin1180.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/111277/Model_4FGL_J0358.6+0634_daily_bin1180.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/111277/ft1_filtered_4FGL_J0358.6+0634_daily_bin1180.fits
Spacecraft file(s): /scratch/kocevski/111277/ft2_4FGL_J0358.6+0634_daily_bin1180.fits
Exposure map: /scratch/kocevski/111277/expmap_545184001_545443201_4FGL_J0358.6+0634_daily_bin1180.fits
Exposure cube: /scratch/kocevski/111277/ltcube_545184001_545443201_4FGL_J0358.6+0634_daily_bin1180.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/111277/Model_4FGL_J0358.6+0634_daily_bin1180.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 279.829489482

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 278.848283051

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1380       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10960       1.0000         .10000E-03   10000.    
     3 'norm      '    1.6291       1.0000         .10000E-03   10000.    
     4 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.660       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1009       1.0000         .10000E-03   10000.    
     7 'norm      '    .41909E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .52786       1.0000         .10000E-03   10000.    
     9 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .40169E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    18.477       1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3642       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .77533       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .90786       1.0000         .10000E-03   10000.    
    16 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4388       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .26622E-02   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0965       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   278.4439     FROM MIGRAD    STATUS=CONVERGED    263 CALLS      405 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1380        1.0304         .0000         .0000    
   2  Prefactor     .10000E-03    218.06        .16503E-04** at limit **
   3  norm          1.6291        1.0572         .0000         .0000    
   4  norm          .10000E-03    10.945       -.53324E-06** at limit **
   5  Prefactor     893.74        1428.6        .13384E-03    .57763E-05
   6  Prefactor     .10000E-03    322.96        .32374E-04** at limit **
   7  norm          .10000E-03    35.045       -.13665E-05** at limit **
   8  Prefactor     .10000E-03    156.05       -.38628E-04** at limit **
   9  norm          .10000E-03    6.0313        .11163E-05** at limit **
  10  Prefactor     .10000E-03    314.41        .11160E-04** at limit **
  11  norm          100.95        161.63       -.43859E-04   -.11486E-03
  12  norm          .10000E-03    1.7524       -.24733E-05** at limit **
  13  Prefactor     .10000E-03    21.628        .22955E-04** at limit **
  14  Prefactor     .10000E-03    72.080       -.33454E-05** at limit **
  15  Prefactor     .10002E-03    540.24        .58237E-04** at limit **
  16  norm          .10000E-03    9.7811        .45142E-05** at limit **
  17  Prefactor     .10000E-03    547.85        .64213E-04** at limit **
  18  Prefactor     .10000E-03    53.351        .46923E-05** at limit **
  19  Normalizat    .10000E-01    .25849       -.71749E-05** at limit **
  20  Prefactor     1.0338        .28338        .20806E-04   -.83509E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.13797
  Prefactor  = 0.0001
  norm       = 1.62914
  norm       = 0.0001
  Prefactor  = 893.744
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 100.947
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.03383
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   278.4439     FROM HESSE     STATUS=FAILED         9 CALLS      414 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     566.77        564.51         .0000       -1.5416    
   2  Prefactor     .10000E-03    .22833        .16503E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.6291        1.0572         .0000       -1.5453    
   4  norm          .10000E-03    .20571       -.53324E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     893.74        8.0293        .13384E-03   -.96360    
   6  Prefactor     .10000E-03    .32036        .32374E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .23609       -.13665E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .32399       -.38628E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .20571        .11163E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .23739        .11160E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          100.95        2.3286       -.43859E-04   -1.3695    
  12  norm          .10000E-03    .20571       -.24733E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .11098        .22955E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .38115       -.33454E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    .41191        .58237E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .20571        .45142E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .57081E-01    .64213E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .24886        .46923E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .10000E-01    .25505       -.71749E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.0338        1.1214        .20806E-04   -.91610    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.71483e-10
Minuit parameter uncertainties:
  1  1.03036
  2  3.60269e-06
  3  1.0572
  4  5.02316e-06
  5  8.02926
  6  6.03643e-05
  7  3.38651e-06
  8  5.41258e-05
  9  1.77684e-06
  10  6.30666e-05
  11  2.3286
  12  2.54514e-07
  13  3.76837e-05
  14  8.95209e-06
  15  0.000198032
  16  4.78292e-06
  17  2.34216e-05
  18  1.14073e-06
  19  4.87198e-07
  20  1.14841
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 278.443948271

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  8.937e+02  8.029e+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

GAL_V02
   Spectrum: PowerLaw
460    Prefactor:  1.034e+00  1.148e+00  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.000e-02  4.872e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.63
Ra Dec: 59.666 6.576
Photon Flux Upper Limit: 7.53e-06 ph cm-2 s-1
Energy Flux Upper Limit: 5.88e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/111277/likelihoodResults_545184001_545443201_4FGL_J0358.6+0634_daily_bin1180.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) = 278.392239242
delta logL = 0.0517090288339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 278.370555434
delta logL = 0.0733928372241

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1296.6       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0595       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0306       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=   278.3706     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      205 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1296.9        1937.2        .10499E-03   -.58116E-04
   2  Index         2.0593        1.1175       -.31412E-04   -.19419E-03
   3  Normalizat    .10000E-01    .26713        .53702E-07** at limit **
   4  Prefactor     1.0306        .26532       -.11805E-05    .57264E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1296.92
  Index      = 2.05931
  Normalizat = 0.01
  Prefactor  = 1.03056
 **********
 **   18 **HESSE 
 **********

 FCN=   278.3706     FROM HESSE     STATUS=OK            29 CALLS      234 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1296.9        1964.1        .59537E-04   -.83399    
   2  Index         2.0593        1.2049        .45997E-02   -.62875    
   3  Normalizat    .10000E-01    .26720        .26779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0306        .26536        .14186E-03   -.91718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54234e-09
Minuit parameter uncertainties:
  1  2097.78
  2  1.22353
  3  3.32213e-08
  4  0.265703
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/111277': 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) = 278.370555411
delta logL = 0.073392860107

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.297e+03  2.098e+03  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  2.059e+00  1.224e+00  0.000e+00  1.000e+01 (-1.000e+00)
234        Scale:  7.663e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
460    Prefactor:  1.031e+00  2.657e-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.000e-02  3.322e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.63
Ra Dec: 59.666 6.576

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/111277/cmap_HighResolution_545184001_545443201_4FGL_J0358.6+0634_daily_bin1180.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.88e-01', job_status='DONE', photon_flux_upper_limit='7.53e-06', time_completed='2021-08-19 20:35:47.802702', job_id='111277', GAL2='1.03', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629430547.8', return_code2='0', ts='0.63', comment='SUCCESS', return_code='101', GAL='1.03', dlogl='7.34e-02', ts2='0.77', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1180' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 20:35:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 111277: <4FGL_J0358.6+0634_daily_bin1180> in cluster <slac> Done

Job <4FGL_J0358.6+0634_daily_bin1180> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Aug 19 20:25:20 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 20:25:21 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:25:21 2021
Terminated at Thu Aug 19 20:35:50 2021
Results reported at Thu Aug 19 20:35:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin1180 59.6656 6.5759 545184001 545443201 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 :                                   599.05 sec.
    Max Memory :                                 1254 MB
    Average Memory :                             268.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   628 sec.
    Turnaround time :                            630 sec.

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

