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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin1313
RA = 359.588, Dec = 38.5097
tmin = 579657601, tmax = 579916801
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='225841', job_status='RUN', time_executed='2021-09-30 11:05:28.523328', time_epoch_executed='1633025128.52' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='1313'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225841

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/225841/ft1_4FGL_J2358.3+3830_daily_bin1313.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/225841/ft2_4FGL_J2358.3+3830_daily_bin1313.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/225841/ft1_4FGL_J2358.3+3830_daily_bin1313.fits outfile=/scratch/kocevski/225841/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin1313.fits ra=359.588 dec=38.5097 rad=12.0 tmin=579657601.0 tmax=579916801.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.43
user 3.18
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225841/ft1_filtered_4FGL_J2358.3+3830_daily_bin1313.fits evtable="EVENTS" scfile=/scratch/kocevski/225841/ft2_4FGL_J2358.3+3830_daily_bin1313.fits sctable="SC_DATA" expcube=/scratch/kocevski/225841/ltcube_579657601_579916801_4FGL_J2358.3+3830_daily_bin1313.fits outfile=/scratch/kocevski/225841/expmap_579657601_579916801_4FGL_J2358.3+3830_daily_bin1313.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/225841/ltcube_579657601_579916801_4FGL_J2358.3+3830_daily_bin1313.fits
.....................!
real 190.17
user 185.89
sys 3.92

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/225841/ft1_filtered_4FGL_J2358.3+3830_daily_bin1313.fits scfile=/scratch/kocevski/225841/ft2_4FGL_J2358.3+3830_daily_bin1313.fits outfile=/scratch/kocevski/225841/cmap_579657601_579916801_4FGL_J2358.3+3830_daily_bin1313.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.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/225841/ft1_filtered_4FGL_J2358.3+3830_daily_bin1313.fits scfile=/scratch/kocevski/225841/ft2_4FGL_J2358.3+3830_daily_bin1313.fits outfile=/scratch/kocevski/225841/cmap_HighResolution_579657601_579916801_4FGL_J2358.3+3830_daily_bin1313.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2978       1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.608       1.0000         .10000E-03   10000.    
     3 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8574       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9338       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.690       1.0000         .10000E-03   10000.    
    10 'norm      '    3.7448       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.562       1.0000         .10000E-03   10000.    
    13 'norm      '    1.7234       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.8895       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10900E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    53.369       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    51.235       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10700E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4093       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79968       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=   9771.554     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2977 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3823        354.77        .40014E-05    .24984E-04
   2  Prefactor     35.574        44.348        .24590E-05    .50517E-04
   3  norm          .10000E-03    31.980       -.51328E-06** at limit **
   4  Prefactor     .10000E-03    3.8510       -.20945E-06** at limit **
   5  Prefactor     5.8577        7.7460       -.13625E-07    .14000E-04
   6  Prefactor     .10000E-03    1.1818       -.29025E-06** at limit **
   7  Prefactor     6.9358        18.255        .19412E-06    .12579E-04
   8  Prefactor     .10000E-03    58.224       -.19536E-06** at limit **
   9  Prefactor     34.687        35.783       -.60196E-06   -.99045E-05
  10  norm          3.7449        2.2689        .51311E-08    .83408E-05
  11  Prefactor     .10000E-03    2.8149       -.54605E-07** at limit **
  12  Prefactor     12.562        13.602       -.33817E-06   -.13571E-04
  13  norm          1.7235        1.2647       -.70287E-09   -.32241E-04
  14  Prefactor     8.8896        11.053        .25055E-05    .44832E-04
  15  norm          .10000E-03    1.2456       -.29550E-07** at limit **
  16  norm          .10000E-03    9.2879       -.64349E-06** at limit **
  17  Prefactor     .10000E-03    11.305       -.11190E-05** at limit **
  18  norm          .10001E-03    1.1588        .38477E-06** at limit **
  19  Prefactor     .10000E-03    4.1755       -.61346E-06** at limit **
  20  Prefactor     53.368        47.359        .34155E-06    .10632E-04
  21  Prefactor     .10000E-03    9.3824       -.71444E-06** at limit **
  22  Prefactor     51.232        46.037        .23333E-06   -.37178E-04
  23  Prefactor     .10000E-03    9.9078        .14914E-05** at limit **
  24  Normalizat    1.4094        .19843        .13444E-05   -.10287E-04
  25  Prefactor     .79959        .86722E-01   -.74054E-06    .15911E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.38229
  Prefactor  = 35.574
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.85771
  Prefactor  = 0.0001
  Prefactor  = 6.9358
  Prefactor  = 0.0001
  Prefactor  = 34.6873
  norm       = 3.74486
  Prefactor  = 0.0001
  Prefactor  = 12.5625
  norm       = 1.72348
  Prefactor  = 8.88963
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 53.3681
  Prefactor  = 0.0001
  Prefactor  = 51.2318
  Prefactor  = 0.0001
  Normalizat = 1.40939
  Prefactor  = 0.799595
 **********
 **   18 **HESSE 
 **********

 FCN=   9771.554     FROM HESSE     STATUS=OK           425 CALLS     3402 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3823        349.68        .22294E-03   -1.5340    
   2  Prefactor     35.574        43.854        .67159E-04   -1.4514    
   3  norm          .10000E-03    33.073        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.8846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.8577        7.8140        .16594E-03   -1.5224    
   6  Prefactor     .10000E-03    1.1962        .10501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.9358        18.202        .15236E-03   -1.5181    
   8  Prefactor     .10000E-03    58.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.687        35.789        .68039E-04   -1.4529    
  10  norm          3.7449        2.2690        .11242E-03   -1.5321    
  11  Prefactor     .10000E-03    2.8321        .16195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.562        13.606        .56510E-03   -1.4999    
  13  norm          1.7235        1.2565        .91553E-04   -1.5445    
  14  Prefactor     8.8896        11.056        .67217E-03   -1.5112    
  15  norm          .10000E-03    1.2491        .10773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.4337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    4.1692        .19976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.1826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     53.368        47.345        .54903E-04   -1.4246    
  21  Prefactor     .10000E-03    9.3956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     51.232        45.714        .56029E-04   -1.4275    
  23  Prefactor     .10000E-03    10.132        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4094        .23015        .31454E-03   -.80357    
  25  Prefactor     .79959        .99899E-01    .18195E-03   -.99743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46014e-09
Minuit parameter uncertainties:
  1  69.1992
  2  43.8941
  3  6.79411e-05
  4  8.07457e-06
  5  7.81532
  6  5.83958e-06
  7  18.2165
  8  4.37957e-05
  9  35.8111
  10  2.26906
  11  1.33438e-06
  12  13.6095
  13  1.25651
  14  11.058
  15  6.04283e-07
  16  2.45241e-05
  17  4.19159e-05
  18  0.000310563
  19  1.23145e-05
  20  47.3782
  21  2.27639e-05
  22  45.7451
  23  7.48321e-06
  24  0.230322
  25  0.0999214
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  5.123e+01  4.575e+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:  7.996e-01  9.992e-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.409e+00  2.303e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 359.588 38.510
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 3.43e-08 +/- 3.06e-08
Energy Flux (Fixed Index): 1.62e-05 +/- 1.44e-05

TS (Fixed Index): 2.02
Ra Dec: 359.588 38.510
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/225841/likelihoodResults_579657601_579916801_4FGL_J2358.3+3830_daily_bin1313.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) = 9771.45820574
delta logL = 0.0962569634303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9771.43782256
delta logL = 0.116640134873

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.265       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5009       1.0000          .0000       10.000    
     3 'Normalizat'    1.3951       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80293       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=   9771.438     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      321 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.258        57.533        .69477E-04   -.38133E-03
   2  Index         2.5010        .84455        .57039E-02   -.19979E-03
   3  Normalizat    1.3945        .22090        .31595E-03    .21446E-03
   4  Prefactor     .80322        .98736E-01    .18158E-03    .24711E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.2585
  Index      = 2.50102
  Normalizat = 1.39452
  Prefactor  = 0.803218
 **********
 **   18 **HESSE 
 **********

 FCN=   9771.438     FROM HESSE     STATUS=OK            25 CALLS      346 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.258        48.328        .13895E-04   -1.4554    
   2  Index         2.5010        .70966        .22816E-03   -.52336    
   3  Normalizat    1.3945        .22007        .12638E-04   -.80787    
   4  Prefactor     .80322        .98542E-01    .36315E-04   -.99610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78928e-10
Minuit parameter uncertainties:
  1  48.3847
  2  0.712879
  3  0.220223
  4  0.0985633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225841': 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) = 9771.43781813
delta logL = 0.116644571834

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  3.326e+01  4.838e+01  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  2.501e+00  7.129e-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:  8.032e-01  9.856e-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.395e+00  2.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.25
Ra Dec: 359.588 38.510
Photon Index (Free Index): 2.50 +/- 0.71
Photon Flux (Free Index): 4.74e-08 +/- 4.63e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.20e-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/225841/cmap_HighResolution_579657601_579916801_4FGL_J2358.3+3830_daily_bin1313.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.88e-03', comment='SUCCESS', photon_flux='3.43e-08', energy_flux2='1.37e-05', photon_flux_error='3.06e-08', dlogl='1.17e-01', energy_flux='1.62e-05', photon_flux2='4.74e-08', job_status='DONE', time_completed='2021-09-30 11:20:18.535063', photon_index_error2='0.71', photon_index2='2.50', ts='2.02', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.20e-05', EG='1.41', time_epoch_completed='1633026018.54', return_code='0', job_id='225841', GAL2='0.80', EG2='1.39', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='4.63e-08', ts2='2.25', photon_index='2.17' WHERE bin_id='1313' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:20:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 225841: <4FGL_J2358.3+3830_daily_bin1313> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin1313> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 11:05:19 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:05:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 11:05:20 2021
Terminated at Thu Sep 30 11:20:19 2021
Results reported at Thu Sep 30 11:20:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin1313 359.588 38.5097 579657601 579916801 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 :                                   882.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             340.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

