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


Performing analysis on: 4FGL_J0358.6+0634_daily_bin950
RA = 59.6656, Dec = 6.5759
tmin = 485568001, tmax = 485827201
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='109890', job_status='RUN', time_executed='2021-08-19 20:22:59.533639', time_epoch_executed='1629429779.53' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='950'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/109890

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/109890/ft1_4FGL_J0358.6+0634_daily_bin950.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/109890/ft2_4FGL_J0358.6+0634_daily_bin950.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/109890/ft1_4FGL_J0358.6+0634_daily_bin950.fits outfile=/scratch/kocevski/109890/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin950.fits ra=59.6656 dec=6.5759 rad=12.0 tmin=485568001.0 tmax=485827201.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.67
user 3.73
sys 0.90

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/109890/ft1_filtered_4FGL_J0358.6+0634_daily_bin950.fits" evtable="EVENTS" scfile=/scratch/kocevski/109890/ft2_4FGL_J0358.6+0634_daily_bin950.fits sctable="SC_DATA" outfile=/scratch/kocevski/109890/ltcube_485568001_485827201_4FGL_J0358.6+0634_daily_bin950.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/109890/ft2_4FGL_J0358.6+0634_daily_bin950.fits
.....................!
real 12.28
user 11.15
sys 1.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/109890/ft1_filtered_4FGL_J0358.6+0634_daily_bin950.fits evtable="EVENTS" scfile=/scratch/kocevski/109890/ft2_4FGL_J0358.6+0634_daily_bin950.fits sctable="SC_DATA" expcube=/scratch/kocevski/109890/ltcube_485568001_485827201_4FGL_J0358.6+0634_daily_bin950.fits outfile=/scratch/kocevski/109890/expmap_485568001_485827201_4FGL_J0358.6+0634_daily_bin950.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/109890/ltcube_485568001_485827201_4FGL_J0358.6+0634_daily_bin950.fits
.....................!
real 191.59
user 185.68
sys 5.54

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/109890/ft1_filtered_4FGL_J0358.6+0634_daily_bin950.fits scfile=/scratch/kocevski/109890/ft2_4FGL_J0358.6+0634_daily_bin950.fits outfile=/scratch/kocevski/109890/cmap_485568001_485827201_4FGL_J0358.6+0634_daily_bin950.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.26
user 0.35
sys 0.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/109890/ft1_filtered_4FGL_J0358.6+0634_daily_bin950.fits scfile=/scratch/kocevski/109890/ft2_4FGL_J0358.6+0634_daily_bin950.fits outfile=/scratch/kocevski/109890/cmap_HighResolution_485568001_485827201_4FGL_J0358.6+0634_daily_bin950.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.21
user 0.37
sys 0.83

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .85614       1.0000         .10000E-03   10000.    
     4 'norm      '    8.7137       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.571       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1492       1.0000         .10000E-03   10000.    
     9 'norm      '    .73419       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .29211E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.516       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10162E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.660       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16072E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0097       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1092       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=   10301.05     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2041 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6453        .24974E-07** at limit **
   2  Prefactor     .10000E-03    11.917        .22679E-05** at limit **
   3  norm          .85646        5.5425        .35783E-05   -.28502E-03
   4  norm          8.7139        2.4369        .42885E-07    .25364E-04
   5  Prefactor     .10000E-03    39.253       -.41552E-05** at limit **
   6  Prefactor     11.565        14.597       -.42915E-07    .35542E-06
   7  norm          .10000E-03    9.4171       -.37441E-06** at limit **
   8  Prefactor     3.1360        47.411       -.45697E-05   -.92067E-04
   9  norm          .73395        4.8997        .32682E-05   -.34001E-03
  10  Prefactor     .10000E-03    22.931       -.54973E-06** at limit **
  11  norm          .10000E-03    13.197       -.25110E-05** at limit **
  12  norm          .10000E-03    .32829       -.11254E-06** at limit **
  13  Prefactor     .10000E-03    .79757       -.13669E-06** at limit **
  14  Prefactor     41.521        25.326        .81764E-06    .16806E-03
  15  Prefactor     .10000E-03    30.643        .40957E-05** at limit **
  16  norm          .10000E-03    2.1977        .30792E-06** at limit **
  17  Prefactor     22.664        22.468        .43723E-06    .69086E-04
  18  Prefactor     .10000E-03    3.4632        .18858E-06** at limit **
  19  Normalizat    1.0097        .26058       -.10107E-05   -.29387E-04
  20  Prefactor     1.1092        .74384E-01    .30041E-07   -.88226E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.85646
  norm       = 8.71386
  Prefactor  = 0.000100005
  Prefactor  = 11.5647
  norm       = 0.0001
  Prefactor  = 3.136
  norm       = 0.733947
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 41.5207
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 22.6636
  Prefactor  = 0.000100004
  Normalizat = 1.00965
  Prefactor  = 1.10917
 **********
 **   18 **HESSE 
 **********

 FCN=   10301.05     FROM HESSE     STATUS=OK           291 CALLS     2332 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6488        .12714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .85646        5.7411        .47290E-03   -1.5523    
   4  norm          8.7139        2.4392        .80139E-04   -1.5117    
   5  Prefactor     .10000E-03    40.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.565        14.585        .11777E-03   -1.5028    
   7  norm          .10000E-03    9.4391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1360        48.164        .22842E-03   -1.5354    
   9  norm          .73395        5.1600        .44371E-03   -1.5537    
  10  Prefactor     .10000E-03    23.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    13.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .33293        .56769E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.5623        .17184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     41.521        25.163        .62214E-04   -1.4418    
  15  Prefactor     .10000E-03    31.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.2360        .29125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.664        22.480        .84145E-04   -1.4755    
  18  Prefactor     .10000E-03    23.403        .36368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0097        .28032        .50852E-03   -.92708    
  20  Prefactor     1.1092        .81396E-01    .14648E-03   -.89174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6194e-09
Minuit parameter uncertainties:
  1  1.20729e-06
  2  0.000259505
  3  4.43523
  4  2.43919
  5  0.00087361
  6  14.5895
  7  3.79619e-05
  8  24.603
  9  3.89235
  10  0.000120189
  11  0.000306357
  12  1.04518e-06
  13  0.000119437
  14  25.1696
  15  0.000792618
  16  1.37492e-05
  17  22.4884
  18  0.000628067
  19  0.280726
  20  0.0814056
Done.

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

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  8.736e-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.109e+00  8.141e-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.010e+00  2.807e-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: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/109890/likelihoodResults_485568001_485827201_4FGL_J0358.6+0634_daily_bin950.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) = 10301.0482255
delta logL = -0.000118514995847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10301.0481071
delta logL = -8.20364220999e-08

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 'Index     '    2.5275       1.0000          .0000       10.000    
     3 'Normalizat'    1.0097       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1092       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.

 FCN=   10301.05     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      206 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    98.731        .90712E-02** at limit **
   2  Index         2.5388        5.9166        .50000       -.25740E-05
   3  Normalizat    1.0097        .24350        .11468        .42456E-04
   4  Prefactor     1.1092        .73629E-01    .37249E-01   -.66621E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.5388
  Normalizat = 1.00965
  Prefactor  = 1.10917
 **********
 **   18 **HESSE 
 **********

 FCN=   10301.05     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5388        6.2693        .50000       -.51466    
   3  Normalizat    1.0097        .26477        .50852E-03   -.92708    
   4  Prefactor     1.1092        .80396E-01    .14648E-03   -.89174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.18288e-12
Minuit parameter uncertainties:
  1  4.97448e-06
  2  4.55361
  3  0.265119
  4  0.0804048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/109890': 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) = 10301.048107
delta logL = -1.61780917551e-08

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  4.974e-06  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  2.539e+00  4.554e+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.109e+00  8.040e-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.010e+00  2.651e-01  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/109890/cmap_HighResolution_485568001_485827201_4FGL_J0358.6+0634_daily_bin950.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.53e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-08-19 20:35:40.182418', job_id='109890', GAL2='1.11', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1629430540.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='-1.62e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='950' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 20:35:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 109890: <4FGL_J0358.6+0634_daily_bin950> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin950 59.6656 6.5759 485568001 485827201 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 :                                   768.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             313.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            908 sec.

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

