/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 1 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 = 7477
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2358.3+3830_daily_bin7
RA = 359.588, Dec = 38.5097
tmin = 241142401, tmax = 241401601
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='218973', job_status='RUN', time_executed='2021-09-30 10:40:44.429305', time_epoch_executed='1633023644.43' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='7'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/218973

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/218973/ft1_4FGL_J2358.3+3830_daily_bin7.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/218973/ft2_4FGL_J2358.3+3830_daily_bin7.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/218973/ft1_4FGL_J2358.3+3830_daily_bin7.fits outfile=/scratch/kocevski/218973/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin7.fits ra=359.588 dec=38.5097 rad=12.0 tmin=241142401.0 tmax=241401601.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 1.45
user 1.30
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/218973/ft2_4FGL_J2358.3+3830_daily_bin7.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/218973/ft2_4FGL_J2358.3+3830_daily_bin7.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/218973/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin7.fits evtable="EVENTS" outfile="/scratch/kocevski/218973/ft1_filtered_4FGL_J2358.3+3830_daily_bin7.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 0.50
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/218973/ft1_filtered_4FGL_J2358.3+3830_daily_bin7.fits" evtable="EVENTS" scfile=/scratch/kocevski/218973/ft2_4FGL_J2358.3+3830_daily_bin7.fits sctable="SC_DATA" outfile=/scratch/kocevski/218973/ltcube_241142401_241401601_4FGL_J2358.3+3830_daily_bin7.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/218973/ft2_4FGL_J2358.3+3830_daily_bin7.fits
.....................!
real 12.60
user 12.21
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/218973/ft1_filtered_4FGL_J2358.3+3830_daily_bin7.fits evtable="EVENTS" scfile=/scratch/kocevski/218973/ft2_4FGL_J2358.3+3830_daily_bin7.fits sctable="SC_DATA" expcube=/scratch/kocevski/218973/ltcube_241142401_241401601_4FGL_J2358.3+3830_daily_bin7.fits outfile=/scratch/kocevski/218973/expmap_241142401_241401601_4FGL_J2358.3+3830_daily_bin7.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/218973/ltcube_241142401_241401601_4FGL_J2358.3+3830_daily_bin7.fits
.....................!
real 189.76
user 184.50
sys 4.94

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 154 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2358.3+3830 @ 359.588 38.5097

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/218973/ft1_filtered_4FGL_J2358.3+3830_daily_bin7.fits scfile=/scratch/kocevski/218973/ft2_4FGL_J2358.3+3830_daily_bin7.fits outfile=/scratch/kocevski/218973/cmap_241142401_241401601_4FGL_J2358.3+3830_daily_bin7.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=359.588 yref=38.5097 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 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/218973/ft1_filtered_4FGL_J2358.3+3830_daily_bin7.fits scfile=/scratch/kocevski/218973/ft2_4FGL_J2358.3+3830_daily_bin7.fits outfile=/scratch/kocevski/218973/cmap_HighResolution_241142401_241401601_4FGL_J2358.3+3830_daily_bin7.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=359.588 yref=38.5097 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 0.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/218973/ft1_filtered_4FGL_J2358.3+3830_daily_bin7.fits evtable="EVENTS" scfile=/scratch/kocevski/218973/ft2_4FGL_J2358.3+3830_daily_bin7.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/218973/Model_4FGL_J2358.3+3830_daily_bin7.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 FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/218973/ft1_filtered_4FGL_J2358.3+3830_daily_bin7.fits.....................!
real 101.29
user 99.93
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/218973/ft1_filtered_4FGL_J2358.3+3830_daily_bin7.fits', '/scratch/kocevski/218973/ft2_4FGL_J2358.3+3830_daily_bin7.fits', expMap='/scratch/kocevski/218973/expmap_241142401_241401601_4FGL_J2358.3+3830_daily_bin7.fits', expCube='/scratch/kocevski/218973/ltcube_241142401_241401601_4FGL_J2358.3+3830_daily_bin7.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/218973/Model_4FGL_J2358.3+3830_daily_bin7.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2358.3+3830'

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  8.894e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  2.175e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
490        Scale:  2.145e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/218973/ft1_filtered_4FGL_J2358.3+3830_daily_bin7.fits
Spacecraft file(s): /scratch/kocevski/218973/ft2_4FGL_J2358.3+3830_daily_bin7.fits
Exposure map: /scratch/kocevski/218973/expmap_241142401_241401601_4FGL_J2358.3+3830_daily_bin7.fits
Exposure cube: /scratch/kocevski/218973/ltcube_241142401_241401601_4FGL_J2358.3+3830_daily_bin7.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/218973/Model_4FGL_J2358.3+3830_daily_bin7.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) = 9906.91031955

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.031       1.0000         .10000E-03   10000.    
     3 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1909       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1555       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.958       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.1351       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13984       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0737       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .71882E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .13954E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    20.574       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.566       1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.647       1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.507       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.3856       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96390       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95619       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9906.871     FROM MIGRAD    STATUS=CONVERGED    639 CALLS     3035 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.739       -.58096E-06** at limit **
   2  Prefactor     17.036        20.219       -.26997E-06    .25985E-05
   3  norm          .10001E-03    18.128        .27668E-05** at limit **
   4  Prefactor     1.1985        5.0159        .40972E-05   -.16951E-03
   5  Prefactor     .10000E-03    4.3305       -.15025E-06** at limit **
   6  Prefactor     3.1569        3.6175       -.46148E-07    .88422E-04
   7  Prefactor     17.957        20.571        .22605E-06   -.28042E-04
   8  Prefactor     .10000E-03    10.768       -.12636E-06** at limit **
   9  Prefactor     .10000E-03    75.932       -.24879E-06** at limit **
  10  norm          5.1353        2.3565        .43607E-07    .37975E-05
  11  Prefactor     .10000E-03    1.3539       -.27657E-07** at limit **
  12  Prefactor     .10531E-03    23.343       -.89941E-05** at limit **
  13  norm          2.0736        1.1688        .10810E-06    .96839E-04
  14  Prefactor     .10000E-03    3.8749       -.22007E-05** at limit **
  15  norm          .10000E-03    2.0031       -.32947E-06** at limit **
  16  norm          20.573        11.536        .16633E-06    .61827E-04
  17  Prefactor     .10000E-03    15.714        .81286E-06** at limit **
  18  norm          .10000E-03    1.0175        .15316E-06** at limit **
  19  Prefactor     .10000E-03    11.273        .11377E-06** at limit **
  20  Prefactor     18.577        30.745        .88863E-06    .11650E-03
  21  Prefactor     28.642        34.554        .69136E-06   -.42974E-04
  22  Prefactor     24.527        30.911       -.47075E-05   -.74669E-05
  23  Prefactor     1.3786        6.0360        .88989E-05    .20708E-03
  24  Normalizat    .96348        .18106       -.10955E-05   -.49888E-04
  25  Prefactor     .95633        .84238E-01   -.18867E-06   -.24203E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.0356
  norm       = 0.000100008
  Prefactor  = 1.19853
  Prefactor  = 0.0001
  Prefactor  = 3.15688
  Prefactor  = 17.9566
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.1353
  Prefactor  = 0.0001
  Prefactor  = 0.000105314
  norm       = 2.07356
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 20.5725
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.5769
  Prefactor  = 28.6419
  Prefactor  = 24.5267
  Prefactor  = 1.37856
  Normalizat = 0.963477
  Prefactor  = 0.956335
 **********
 **   18 **HESSE 
 **********

 FCN=   9906.871     FROM HESSE     STATUS=OK           439 CALLS     3474 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.036        20.188        .97050E-04   -1.4882    
   3  norm          .10001E-03    18.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1985        5.0642        .20868E-02   -1.5489    
   5  Prefactor     .10000E-03    4.4398        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.1569        3.5761        .17667E-03   -1.5353    
   7  Prefactor     17.957        20.404        .94514E-04   -1.4860    
   8  Prefactor     .10000E-03    10.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    76.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.1353        2.3563        .50206E-03   -1.5255    
  11  Prefactor     .10000E-03    1.3569        .11310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10531E-03    19.914        .12250       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.0736        1.1611        .77675E-04   -1.5420    
  14  Prefactor     .10000E-03    37.724        .36126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.4955        .27286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          20.573        11.524        .88303E-04   -1.4801    
  17  Prefactor     .10000E-03    15.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.9963        .19387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.577        30.730        .92952E-04   -1.4846    
  21  Prefactor     28.642        34.750        .74853E-04   -1.4637    
  22  Prefactor     24.527        31.137        .80917E-04   -1.4717    
  23  Prefactor     1.3786        6.0829        .18473E-02   -1.5473    
  24  Normalizat    .96348        .21024        .34425E-03   -.94264    
  25  Prefactor     .95633        .98369E-01    .16562E-03   -.94199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04656e-09
Minuit parameter uncertainties:
  1  8.70093e-05
  2  20.1961
  3  0.000761885
  4  4.92779
  5  3.92305e-07
  6  3.57634
  7  20.4121
  8  3.58107e-06
  9  0.00022094
  10  2.35638
  11  1.04593e-06
  12  0.0205807
  13  1.16116
  14  0.000129767
  15  6.26085e-05
  16  11.5252
  17  8.08941e-05
  18  4.62592e-05
  19  4.30119e-06
  20  30.7559
  21  34.7742
  22  31.1573
  23  5.79239
  24  0.210422
  25  0.0983875
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  2.453e+01  3.116e+01  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  2.175e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
490        Scale:  2.145e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  9.563e-01  9.839e-02  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
497   Normalization:  9.635e-01  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 359.588 38.510
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 1.64e-08 +/- 2.08e-08
Energy Flux (Fixed Index): 7.73e-06 +/- 9.82e-06

TS (Fixed Index): 1.34
Ra Dec: 359.588 38.510
Photon Flux Upper Limit: 7.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/218973/likelihoodResults_241142401_241401601_4FGL_J2358.3+3830_daily_bin7.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) = 9906.56804509
delta logL = 0.302617973612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9906.54869162
delta logL = 0.321971441128

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.511       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4426       1.0000          .0000       10.000    
     3 'Normalizat'    .97409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95459       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+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=   9906.549     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      293 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.485        38.484        .35689E-03    .12933E-04
   2  Index         1.4420        .79395        .16854E-01   -.94006E-05
   3  Normalizat    .97403        .20001        .34255E-03    .20842E-04
   4  Prefactor     .95460        .96597E-01    .16574E-03   -.17338E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.485
  Index      = 1.44196
  Normalizat = 0.974034
  Prefactor  = 0.9546
 **********
 **   18 **HESSE 
 **********

 FCN=   9906.549     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.485        38.997        .14276E-04   -1.4585    
   2  Index         1.4420        .80470        .67414E-03   -.79178    
   3  Normalizat    .97403        .20014        .13702E-04   -.93905    
   4  Prefactor     .95460        .96665E-01    .33148E-04   -.94258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91579e-11
Minuit parameter uncertainties:
  1  39.0283
  2  0.811909
  3  0.200294
  4  0.0966824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/218973': 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) = 9906.5486911
delta logL = 0.321971962529

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  3.149e+01  3.903e+01  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  1.442e+00  8.119e-01  0.000e+00  1.000e+01 (-1.000e+00)
490        Scale:  2.145e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  9.546e-01  9.668e-02  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
497   Normalization:  9.740e-01  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.98
Ra Dec: 359.588 38.510
Photon Index (Free Index): 1.44 +/- 0.81
Photon Flux (Free Index): 5.64e-09 +/- 9.93e-09
Energy Flux (Free Index): 2.17e-05 +/- 3.99e-05

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/218973/cmap_HighResolution_241142401_241401601_4FGL_J2358.3+3830_daily_bin7.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.55e-03', comment='SUCCESS', photon_flux='1.64e-08', energy_flux2='2.17e-05', photon_flux_error='2.08e-08', dlogl='3.22e-01', energy_flux='7.73e-06', photon_flux2='5.64e-09', job_status='DONE', time_completed='2021-09-30 10:55:36.063495', photon_index_error2='0.81', photon_index2='1.44', ts='1.34', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='7.30e-08', energy_flux_error2='3.99e-05', EG='0.96', time_epoch_completed='1633024536.06', return_code='0', job_id='218973', GAL2='0.95', EG2='0.97', return_code2='0', energy_flux_error='9.82e-06', photon_flux_error2='9.93e-09', ts2='1.98', photon_index='2.17' WHERE bin_id='7' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 10:55:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 218973: <4FGL_J2358.3+3830_daily_bin7> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin7> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 10:40:33 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 10:40:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 10:40:35 2021
Terminated at Thu Sep 30 10:55:36 2021
Results reported at Thu Sep 30 10:55:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin7 359.588 38.5097 241142401 241401601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2358.3+3830 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   891.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             347.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            903 sec.

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

