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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin1645
RA = 359.588, Dec = 38.5097
tmin = 665712001, tmax = 665971201
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='630785', job_status='RUN', time_executed='2022-02-08 00:40:50.514603', time_epoch_executed='1644309650.51' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='1645'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630785

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630785/ft1_4FGL_J2358.3+3830_daily_bin1645.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630785/ft2_4FGL_J2358.3+3830_daily_bin1645.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/630785/ft1_4FGL_J2358.3+3830_daily_bin1645.fits outfile=/scratch/kocevski/630785/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin1645.fits ra=359.588 dec=38.5097 rad=12.0 tmin=665712001.0 tmax=665971201.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 3.62
user 3.36
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/630785/ft1_filtered_4FGL_J2358.3+3830_daily_bin1645.fits" evtable="EVENTS" scfile=/scratch/kocevski/630785/ft2_4FGL_J2358.3+3830_daily_bin1645.fits sctable="SC_DATA" outfile=/scratch/kocevski/630785/ltcube_665712001_665971201_4FGL_J2358.3+3830_daily_bin1645.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/630785/ft2_4FGL_J2358.3+3830_daily_bin1645.fits
.....................!
real 12.63
user 12.24
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630785/ft1_filtered_4FGL_J2358.3+3830_daily_bin1645.fits evtable="EVENTS" scfile=/scratch/kocevski/630785/ft2_4FGL_J2358.3+3830_daily_bin1645.fits sctable="SC_DATA" expcube=/scratch/kocevski/630785/ltcube_665712001_665971201_4FGL_J2358.3+3830_daily_bin1645.fits outfile=/scratch/kocevski/630785/expmap_665712001_665971201_4FGL_J2358.3+3830_daily_bin1645.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/630785/ltcube_665712001_665971201_4FGL_J2358.3+3830_daily_bin1645.fits
.....................!
real 191.59
user 185.95
sys 5.27

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/630785/ft1_filtered_4FGL_J2358.3+3830_daily_bin1645.fits scfile=/scratch/kocevski/630785/ft2_4FGL_J2358.3+3830_daily_bin1645.fits outfile=/scratch/kocevski/630785/cmap_665712001_665971201_4FGL_J2358.3+3830_daily_bin1645.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/630785/ft1_filtered_4FGL_J2358.3+3830_daily_bin1645.fits scfile=/scratch/kocevski/630785/ft2_4FGL_J2358.3+3830_daily_bin1645.fits outfile=/scratch/kocevski/630785/cmap_HighResolution_665712001_665971201_4FGL_J2358.3+3830_daily_bin1645.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.079       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.219       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10757E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .95386       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23509E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.3047       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0011       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.6739       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.2477       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.372       1.0000         .10000E-03   10000.    
    18 'norm      '    5.4602       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.8044       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2920       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2035       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92244       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=   9588.747     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     2923 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.458       -.23148E-05** at limit **
   2  Prefactor     .10000E-03    6.4700       -.52537E-08** at limit **
   3  norm          11.070        14.589       -.11889E-07    .38692E-04
   4  Prefactor     10.223        7.1450        .13802E-06    .13637E-03
   5  Prefactor     .10000E-03    11.272        .12590E-05** at limit **
   6  Prefactor     .95088        2.4104        .23207E-06    .40906E-03
   7  Prefactor     .10000E-03    22.413        .63651E-06** at limit **
   8  Prefactor     .10000E-03    8.1108        .80021E-06** at limit **
   9  Prefactor     .10002E-03    244.90        .10083E-04** at limit **
  10  norm          5.3048        2.7978        .37298E-07    .91373E-04
  11  Prefactor     .99979        5.7323        .19235E-05    .68024E-03
  12  Prefactor     .10000E-03    10.860       -.12414E-05** at limit **
  13  norm          2.6737        1.3929       -.28284E-07    .32263E-03
  14  Prefactor     .10008E-03    22.387       -.76465E-05** at limit **
  15  norm          .10000E-03    1.4285       -.17476E-06** at limit **
  16  norm          2.2505        6.7152        .24517E-06    .17097E-03
  17  Prefactor     17.390        14.951        .16662E-05    .44243E-03
  18  norm          5.4611        2.5319       -.53804E-07    .37064E-03
  19  Prefactor     7.7994        11.256        .19477E-06    .58348E-04
  20  Prefactor     .10000E-03    7.8460       -.67733E-06** at limit **
  21  Prefactor     1.0453        297.88       -.51943E-05   -.68672E-05
  22  Prefactor     .10000E-03    34.166       -.44288E-05** at limit **
  23  Prefactor     .10000E-03    4.7218       -.46546E-07** at limit **
  24  Normalizat    1.2038        .19804       -.66031E-06    .19796E-03
  25  Prefactor     .92220        .86646E-01    .11989E-06    .34850E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 11.0705
  Prefactor  = 10.2228
  Prefactor  = 0.0001
  Prefactor  = 0.950878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  norm       = 5.30484
  Prefactor  = 0.99979
  Prefactor  = 0.0001
  norm       = 2.67373
  Prefactor  = 0.000100081
  norm       = 0.0001
  norm       = 2.25053
  Prefactor  = 17.3903
  norm       = 5.46109
  Prefactor  = 7.79935
  Prefactor  = 0.0001
  Prefactor  = 1.04531
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Normalizat = 1.20379
  Prefactor  = 0.922203
 **********
 **   18 **HESSE 
 **********

 FCN=   9588.747     FROM HESSE     STATUS=OK           427 CALLS     3350 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.4806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.070        14.583        .12036E-03   -1.5042    
   4  Prefactor     10.223        7.1380        .12534E-03   -1.5068    
   5  Prefactor     .10000E-03    11.727        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .95088        2.4032        .23361E-03   -1.5513    
   7  Prefactor     .10000E-03    22.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.1376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    253.18        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.3048        2.7960        .11519E-03   -1.5247    
  11  Prefactor     .99979        6.6027        .47823E-03   -1.5508    
  12  Prefactor     .10000E-03    10.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.6737        1.3881        .80275E-04   -1.5381    
  14  Prefactor     .10008E-03    31.202        .45323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.4366        .11434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2505        6.7213        .27409E-03   -1.5408    
  17  Prefactor     17.390        15.224        .96093E-04   -1.4874    
  18  norm          5.4611        2.5093        .10181E-03   -1.5241    
  19  Prefactor     7.7994        11.253        .14354E-03   -1.5149    
  20  Prefactor     .10000E-03    7.8608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.0453        308.29        .38947E-03   -1.5503    
  22  Prefactor     .10000E-03    34.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.7650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2038        .22847        .33215E-03   -.86486    
  25  Prefactor     .92220        .10172        .17385E-03   -.95370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58117e-09
Minuit parameter uncertainties:
  1  0.000340118
  2  9.58722e-07
  3  14.5875
  4  7.13863
  5  0.000127886
  6  2.40343
  7  0.000105293
  8  7.42509e-05
  9  0.0039975
  10  2.79605
  11  5.13919
  12  0.000127327
  13  1.38815
  14  0.00317735
  15  1.9373e-05
  16  6.72356
  17  15.2279
  18  2.50931
  19  11.2564
  20  6.14316e-05
  21  36.0902
  22  0.000826085
  23  2.48652e-06
  24  0.228662
  25  0.101741
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.000e-04  8.261e-04  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.222e-01  1.017e-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:  1.204e+00  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/630785/likelihoodResults_665712001_665971201_4FGL_J2358.3+3830_daily_bin1645.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9588.74733303
delta logL = -0.000137002336487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9588.74719614
delta logL = -1.08651875053e-07

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.1065       1.0000          .0000       10.000    
     3 'Normalizat'    1.2038       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92220       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.

 FCN=   9588.747     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      238 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    744.11        .90712E-02** at limit **
   2  Index         2.1286        8.2867        .50000       -.61833E-05
   3  Normalizat    1.2038        .24927E-01    .75052E-01    .10019E-04
   4  Prefactor     .92220        .11654E-01    .45287E-01   -.19058E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12857
  Normalizat = 1.20379
  Prefactor  = 0.922203
 **********
 **   18 **HESSE 
 **********

 FCN=   9588.747     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1875.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1286        5.6348        .50000       -.61173    
   3  Normalizat    1.2038        .42282E-01    .33215E-03   -.86486    
   4  Prefactor     .92220        .19793E-01    .17385E-03   -.95370    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.95981e-09
Minuit parameter uncertainties:
  1  0.000393877
  2  32.0797
  3  0.0422828
  4  0.0197929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630785': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9588.7471961
delta logL = -7.44676071918e-08

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.000e-04  3.939e-04  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  2.129e+00  3.208e+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.222e-01  1.979e-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:  1.204e+00  4.228e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/630785/cmap_HighResolution_665712001_665971201_4FGL_J2358.3+3830_daily_bin1645.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-03', job_status='DONE', photon_flux_upper_limit='7.01e-08', time_completed='2022-02-08 00:55:30.773360', job_id='630785', GAL2='0.92', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1644310530.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-7.45e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1645' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb  8 00:55:30 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 630785: <4FGL_J2358.3+3830_daily_bin1645> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin1645> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Feb  8 00:40:31 2022
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb  8 00:40:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb  8 00:40:32 2022
Terminated at Tue Feb  8 00:55:32 2022
Results reported at Tue Feb  8 00:55:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin1645 359.588 38.5097 665712001 665971201 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 :                                   881.02 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             338.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

