/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 2 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7405
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2358.3+3830_daily_bin576
RA = 359.588, Dec = 38.5097
tmin = 388627201, tmax = 388886401
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='221890', job_status='RUN', time_executed='2021-09-30 10:51:07.102298', time_epoch_executed='1633024267.1' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='576'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221890

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221890/ft1_4FGL_J2358.3+3830_daily_bin576.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221890/ft2_4FGL_J2358.3+3830_daily_bin576.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221890/ft1_4FGL_J2358.3+3830_daily_bin576.fits outfile=/scratch/kocevski/221890/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin576.fits ra=359.588 dec=38.5097 rad=12.0 tmin=388627201.0 tmax=388886401.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.03
user 3.77
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/221890/ft2_4FGL_J2358.3+3830_daily_bin576.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/221890/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin576.fits evtable="EVENTS" outfile="/scratch/kocevski/221890/ft1_filtered_4FGL_J2358.3+3830_daily_bin576.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.52
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/221890/ft1_filtered_4FGL_J2358.3+3830_daily_bin576.fits" evtable="EVENTS" scfile=/scratch/kocevski/221890/ft2_4FGL_J2358.3+3830_daily_bin576.fits sctable="SC_DATA" outfile=/scratch/kocevski/221890/ltcube_388627201_388886401_4FGL_J2358.3+3830_daily_bin576.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/221890/ft2_4FGL_J2358.3+3830_daily_bin576.fits
.....................!
real 12.41
user 12.03
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221890/ft1_filtered_4FGL_J2358.3+3830_daily_bin576.fits evtable="EVENTS" scfile=/scratch/kocevski/221890/ft2_4FGL_J2358.3+3830_daily_bin576.fits sctable="SC_DATA" expcube=/scratch/kocevski/221890/ltcube_388627201_388886401_4FGL_J2358.3+3830_daily_bin576.fits outfile=/scratch/kocevski/221890/expmap_388627201_388886401_4FGL_J2358.3+3830_daily_bin576.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/221890/ltcube_388627201_388886401_4FGL_J2358.3+3830_daily_bin576.fits
.....................!
real 190.11
user 185.21
sys 4.52

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/221890/ft1_filtered_4FGL_J2358.3+3830_daily_bin576.fits scfile=/scratch/kocevski/221890/ft2_4FGL_J2358.3+3830_daily_bin576.fits outfile=/scratch/kocevski/221890/cmap_388627201_388886401_4FGL_J2358.3+3830_daily_bin576.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/221890/ft1_filtered_4FGL_J2358.3+3830_daily_bin576.fits scfile=/scratch/kocevski/221890/ft2_4FGL_J2358.3+3830_daily_bin576.fits outfile=/scratch/kocevski/221890/cmap_HighResolution_388627201_388886401_4FGL_J2358.3+3830_daily_bin576.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/221890/ft1_filtered_4FGL_J2358.3+3830_daily_bin576.fits evtable="EVENTS" scfile=/scratch/kocevski/221890/ft2_4FGL_J2358.3+3830_daily_bin576.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/221890/Model_4FGL_J2358.3+3830_daily_bin576.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/221890/ft1_filtered_4FGL_J2358.3+3830_daily_bin576.fits.....................!
real 92.35
user 90.93
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/221890/ft1_filtered_4FGL_J2358.3+3830_daily_bin576.fits', '/scratch/kocevski/221890/ft2_4FGL_J2358.3+3830_daily_bin576.fits', expMap='/scratch/kocevski/221890/expmap_388627201_388886401_4FGL_J2358.3+3830_daily_bin576.fits', expCube='/scratch/kocevski/221890/ltcube_388627201_388886401_4FGL_J2358.3+3830_daily_bin576.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/221890/Model_4FGL_J2358.3+3830_daily_bin576.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/221890/ft1_filtered_4FGL_J2358.3+3830_daily_bin576.fits
Spacecraft file(s): /scratch/kocevski/221890/ft2_4FGL_J2358.3+3830_daily_bin576.fits
Exposure map: /scratch/kocevski/221890/expmap_388627201_388886401_4FGL_J2358.3+3830_daily_bin576.fits
Exposure cube: /scratch/kocevski/221890/ltcube_388627201_388886401_4FGL_J2358.3+3830_daily_bin576.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/221890/Model_4FGL_J2358.3+3830_daily_bin576.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) = 8516.66237218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.131       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3236       1.0000         .10000E-03   10000.    
     3 'norm      '    .12594E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4884       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11416E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4195       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.8275       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12311E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0008       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    22.317       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2503       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .82362       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10656E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10420E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.819       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.9892       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91217       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0602       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=   8516.655     FROM MIGRAD    STATUS=CONVERGED   1012 CALLS     3833 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.141        57.139        .12008E-03   -.18935E-04
   2  Prefactor     1.3008        266.15        .38222E-02    .21781E-03
   3  norm          .10000E-03    35.883        .36285E-03** at limit **
   4  Prefactor     8.4943        6.5603        .13759E-03    .10461E-03
   5  Prefactor     .10000E-03    13.088        .36285E-03** at limit **
   6  Prefactor     .10000E-03    3.2806        .31906E-02** at limit **
   7  Prefactor     1.4354        66.072        .36316E-03   -.28425E-04
   8  Prefactor     .10000E-03    5.8327        .18142E-02** at limit **
   9  Prefactor     .10000E-03    23.098        .18142E-02** at limit **
  10  norm          2.8282        2.2262        .11846E-03    .19002E-04
  11  Prefactor     .10000E-03    2.0829        .12970E-02** at limit **
  12  Prefactor     .10000E-03    40.509        .36285E-03** at limit **
  13  norm          1.0005        1.2028        .11702E-02    .46230E-02
  14  Prefactor     .10000E-03    5.6197        .18142E-02** at limit **
  15  norm          22.317        6.8413        .84789E-04   -.57440E-04
  16  norm          1.2511        20.045        .19999E-02    .39799E-03
  17  Prefactor     .10000E-03    18.310        .18142E-02** at limit **
  18  norm          .82332        1.7883        .17947E-03   -.60812E-05
  19  Prefactor     .10000E-03    6.8817        .18142E-02** at limit **
  20  Prefactor     .10000E-03    17.256        .18142E-02** at limit **
  21  Prefactor     .10000E-03    8.9570        .18142E-02** at limit **
  22  Prefactor     19.858        46.317        .89969E-04   -.34623E-04
  23  Prefactor     6.9922        6.3177        .15175E-03    .14205E-03
  24  Normalizat    .91192        .23102        .36693E-03    .91587E-04
  25  Prefactor     1.0603        .10991        .16460E-03    .17405E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1411
  Prefactor  = 1.30081
  norm       = 0.000100003
  Prefactor  = 8.49426
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.43544
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.82822
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.00053
  Prefactor  = 0.0001
  norm       = 22.3173
  norm       = 1.25106
  Prefactor  = 0.0001
  norm       = 0.823316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8584
  Prefactor  = 6.99222
  Normalizat = 0.911922
  Prefactor  = 1.06025
 **********
 **   18 **HESSE 
 **********

 FCN=   8516.655     FROM HESSE     STATUS=OK           407 CALLS     4240 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.141        52.822        .48033E-05   -1.5040    
   2  Prefactor     1.3008        242.26        .76445E-03   -1.5480    
   3  norm          .10000E-03    35.885        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.4943        6.5601        .55036E-05   -1.5125    
   5  Prefactor     .10000E-03    13.088        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2927        .63813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.4354        65.210        .14526E-04   -1.5468    
   8  Prefactor     .10000E-03    5.8328        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.100        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.8282        2.2260        .47383E-05   -1.5372    
  11  Prefactor     .10000E-03    2.0831        .25940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    40.511        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0005        1.2021        .23404E-03   -1.5508    
  14  Prefactor     .10000E-03    5.6212        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          22.317        6.8400        .16958E-04   -1.4763    
  16  norm          1.2511        20.023        .39998E-03   -1.5484    
  17  Prefactor     .10000E-03    18.318        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .82332        1.7881        .71788E-05   -1.5526    
  19  Prefactor     .10000E-03    6.8820        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.256        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.9571        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.858        46.283        .35987E-05   -1.4816    
  23  Prefactor     6.9922        6.3169        .60699E-05   -1.5179    
  24  Normalizat    .91192        .23065        .14677E-04   -.96042    
  25  Prefactor     1.0603        .10991        .32920E-04   -.90747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97434e-10
Minuit parameter uncertainties:
  1  48.5876
  2  35.6502
  3  0.00066486
  4  6.56065
  5  2.46309e-05
  6  3.85481e-06
  7  19.3718
  8  1.96853e-06
  9  2.42013e-05
  10  2.22606
  11  2.26918e-06
  12  5.41773e-05
  13  1.20209
  14  1.37971e-05
  15  6.84025
  16  10.0137
  17  1.63688e-05
  18  1.7882
  19  4.39129e-06
  20  4.46077e-06
  21  5.12689e-06
  22  46.3672
  23  6.31746
  24  0.230901
  25  0.109932
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.986e+01  4.637e+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:  1.060e+00  1.099e-01  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.119e-01  2.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/221890/likelihoodResults_388627201_388886401_4FGL_J2358.3+3830_daily_bin576.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) = 8516.63695437
delta logL = 0.0180539335306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8516.63120452
delta logL = 0.0238037868967

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.209       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3991       1.0000          .0000       10.000    
     3 'Normalizat'    .90910       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0606       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=   8516.631     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      279 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.219        49.641        .10270E-03    .74832E-04
   2  Index         2.3975        1.2321        .10689E-01    .51888E-04
   3  Normalizat    .90868        .22395        .36750E-03    .72463E-03
   4  Prefactor     1.0609        .10807        .16455E-03    .17074E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.2186
  Index      = 2.39752
  Normalizat = 0.908678
  Prefactor  = 1.06086
 **********
 **   18 **HESSE 
 **********

 FCN=   8516.631     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.219        41.922        .41080E-05   -1.4928    
   2  Index         2.3975        1.0439        .42754E-03   -.54743    
   3  Normalizat    .90868        .22391        .73501E-04   -.96156    
   4  Prefactor     1.0609        .10804        .32910E-04   -.90728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00363e-09
Minuit parameter uncertainties:
  1  42.0029
  2  1.05462
  3  0.224144
  4  0.108062
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221890': 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) = 8516.6312005
delta logL = 0.0238078046732

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.522e+01  4.200e+01  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  2.398e+00  1.055e+00  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:  1.061e+00  1.081e-01  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.087e-01  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
Ra Dec: 359.588 38.510

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/221890/cmap_HighResolution_388627201_388886401_4FGL_J2358.3+3830_daily_bin576.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.99e-03', job_status='DONE', photon_flux_upper_limit='9.19e-08', time_completed='2021-09-30 11:06:20.877733', job_id='221890', GAL2='1.06', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1633025180.88', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.38e-02', ts2='0.29', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='576' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:06:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 221890: <4FGL_J2358.3+3830_daily_bin576> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin576> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 10:50:54 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 10:50:56 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:50:56 2021
Terminated at Thu Sep 30 11:06:21 2021
Results reported at Thu Sep 30 11:06:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin576 359.588 38.5097 388627201 388886401 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 :                                   893.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             364.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            927 sec.

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

