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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin503
RA = 359.588, Dec = 38.5097
tmin = 369705601, tmax = 369964801
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='221774', job_status='RUN', time_executed='2021-09-30 10:50:58.802253', time_epoch_executed='1633024258.8' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221774

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221774/ft1_4FGL_J2358.3+3830_daily_bin503.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221774/ft2_4FGL_J2358.3+3830_daily_bin503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221774/ft1_4FGL_J2358.3+3830_daily_bin503.fits outfile=/scratch/kocevski/221774/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin503.fits ra=359.588 dec=38.5097 rad=12.0 tmin=369705601.0 tmax=369964801.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.82
user 3.56
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/221774/ft2_4FGL_J2358.3+3830_daily_bin503.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/221774/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin503.fits evtable="EVENTS" outfile="/scratch/kocevski/221774/ft1_filtered_4FGL_J2358.3+3830_daily_bin503.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/221774/ft1_filtered_4FGL_J2358.3+3830_daily_bin503.fits" evtable="EVENTS" scfile=/scratch/kocevski/221774/ft2_4FGL_J2358.3+3830_daily_bin503.fits sctable="SC_DATA" outfile=/scratch/kocevski/221774/ltcube_369705601_369964801_4FGL_J2358.3+3830_daily_bin503.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/221774/ft2_4FGL_J2358.3+3830_daily_bin503.fits
.....................!
real 11.88
user 11.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221774/ft1_filtered_4FGL_J2358.3+3830_daily_bin503.fits evtable="EVENTS" scfile=/scratch/kocevski/221774/ft2_4FGL_J2358.3+3830_daily_bin503.fits sctable="SC_DATA" expcube=/scratch/kocevski/221774/ltcube_369705601_369964801_4FGL_J2358.3+3830_daily_bin503.fits outfile=/scratch/kocevski/221774/expmap_369705601_369964801_4FGL_J2358.3+3830_daily_bin503.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/221774/ltcube_369705601_369964801_4FGL_J2358.3+3830_daily_bin503.fits
.....................!
real 191.01
user 185.81
sys 4.69

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/221774/ft1_filtered_4FGL_J2358.3+3830_daily_bin503.fits scfile=/scratch/kocevski/221774/ft2_4FGL_J2358.3+3830_daily_bin503.fits outfile=/scratch/kocevski/221774/cmap_369705601_369964801_4FGL_J2358.3+3830_daily_bin503.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.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.102       1.0000         .10000E-03   10000.    
     3 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12680       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.3171       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15620E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7070       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7264       1.0000         .10000E-03   10000.    
    15 'norm      '    5.9653       1.0000         .10000E-03   10000.    
    16 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.128       1.0000         .10000E-03   10000.    
    18 'norm      '    1.2532       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.2550       1.0000         .10000E-03   10000.    
    20 'Prefactor '    44.920       1.0000         .10000E-03   10000.    
    21 'Prefactor '    45.565       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13384E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1866       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96330       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=   8627.845     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2981 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.094        .11965E-05** at limit **
   2  Prefactor     41.133        28.416       -.10236E-05   -.31465E-05
   3  norm          .10000E-03    12.612        .84617E-08** at limit **
   4  Prefactor     .10000E-03    6.8684        .97560E-07** at limit **
   5  Prefactor     .31992        4.8078        .11039E-05   -.23956E-03
   6  Prefactor     .10000E-03    1.0730       -.23989E-06** at limit **
   7  Prefactor     2.3293        24.388        .29433E-05   -.48801E-04
   8  Prefactor     .10000E-03    15.760       -.40410E-06** at limit **
   9  Prefactor     .10000E-03    12.345       -.41735E-06** at limit **
  10  norm          .10000E-03    2.0777        .36775E-08** at limit **
  11  Prefactor     .10000E-03    6.8095        .39376E-07** at limit **
  12  Prefactor     6.7130        25.123       -.10193E-05    .14636E-04
  13  norm          .10000E-03    .61758        .36574E-07** at limit **
  14  Prefactor     1.7286        13.784        .14075E-04    .31327E-04
  15  norm          5.9641        6.4875        .23021E-06   -.24211E-06
  16  norm          .10000E-03    9.4236       -.13146E-07** at limit **
  17  Prefactor     25.157        23.327       -.46954E-06    .30488E-04
  18  norm          1.2537        2.3447       -.18915E-06    .38032E-04
  19  Prefactor     7.2499        16.021        .46333E-06   -.50566E-04
  20  Prefactor     44.932        50.032       -.49854E-06    .68236E-04
  21  Prefactor     45.540        38.106        .13153E-05   -.14755E-03
  22  Prefactor     .10000E-03    103.60       -.46106E-06** at limit **
  23  Prefactor     .10000E-03    4.1668        .24286E-07** at limit **
  24  Normalizat    1.1850        .21012        .14885E-05    .13958E-03
  25  Prefactor     .96376        .94569E-01   -.13426E-05   -.14204E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 41.1331
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.319923
  Prefactor  = 0.0001
  Prefactor  = 2.32929
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.71303
  norm       = 0.0001
  Prefactor  = 1.7286
  norm       = 5.96407
  norm       = 0.0001
  Prefactor  = 25.157
  norm       = 1.25368
  Prefactor  = 7.24989
  Prefactor  = 44.9318
  Prefactor  = 45.5401
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.185
  Prefactor  = 0.963758
 **********
 **   18 **HESSE 
 **********

 FCN=   8627.845     FROM HESSE     STATUS=OK           425 CALLS     3406 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     41.133        28.535        .62525E-04   -1.4424    
   3  norm          .10000E-03    12.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.0900        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .31992        56.249        .37172E-02   -1.5595    
   6  Prefactor     .10000E-03    1.0870        .93949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.3293        24.424        .26949E-03   -1.5403    
   8  Prefactor     .10000E-03    15.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.1658        .26132E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.1256        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.7130        25.137        .15494E-03   -1.5190    
  13  norm          .10000E-03    .63140        .71206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7286        13.897        .15980E-02   -1.5445    
  15  norm          5.9641        6.4693        .16441E-03   -1.5219    
  16  norm          .10000E-03    9.5098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.157        23.338        .79912E-04   -1.4704    
  18  norm          1.2537        2.3129        .18589E-03   -1.5484    
  19  Prefactor     7.2499        16.016        .14892E-03   -1.5169    
  20  Prefactor     44.932        50.059        .59820E-04   -1.4366    
  21  Prefactor     45.540        38.226        .59397E-04   -1.4357    
  22  Prefactor     .10000E-03    105.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.2146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1850        .24818        .34344E-03   -.87068    
  25  Prefactor     .96376        .11041        .17417E-03   -.93948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36595e-09
Minuit parameter uncertainties:
  1  2.18076e-05
  2  28.544
  3  1.34106e-05
  4  6.76085e-06
  5  8.49098
  6  1.55446e-05
  7  15.0929
  8  9.38536e-05
  9  5.46066e-05
  10  2.15592e-06
  11  3.83229e-05
  12  25.1762
  13  1.17285e-06
  14  9.80546
  15  6.47007
  16  1.19761e-06
  17  23.3469
  18  2.31304
  19  16.0253
  20  50.1056
  21  38.2462
  22  0.00060976
  23  5.50772e-06
  24  0.248429
  25  0.110438
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.000e-04  6.098e-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.638e-01  1.104e-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.185e+00  2.484e-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: 6.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/221774/likelihoodResults_369705601_369964801_4FGL_J2358.3+3830_daily_bin503.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) = 8627.84547991
delta logL = -4.50298448413e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8627.84547991
delta logL = -4.5026648877e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96365E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1749       1.0000          .0000       10.000    
     3 'Normalizat'    1.1850       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96376       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=   8626.605     FROM MIGRAD    STATUS=CONVERGED    153 CALLS      298 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.687        42.772        .36285E-03   -.43301E-04
   2  Index         .88667        .63092        .14563E-02   -.16253E-04
   3  Normalizat    1.1794        .22937        .34387E-03   -.11789E-03
   4  Prefactor     .96338        .10693        .17412E-03   -.16534E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.6868
  Index      = 0.886673
  Normalizat = 1.17937
  Prefactor  = 0.96338
 **********
 **   18 **HESSE 
 **********

 FCN=   8626.605     FROM HESSE     STATUS=OK            23 CALLS      321 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.687        42.404        .14514E-04   -1.4655    
   2  Index         .88667        .62555        .58251E-04   -2.1755    
   3  Normalizat    1.1794        .22953        .13755E-04   -.87243    
   4  Prefactor     .96338        .10700        .34825E-04   -.93960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90306e-11
Minuit parameter uncertainties:
  1  42.4497
  2  0.630714
  3  0.229727
  4  0.107028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221774': 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) = 8626.60478446
delta logL = 1.24065042425

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  2.769e+01  4.245e+01  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  8.867e-01  6.307e-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.634e-01  1.070e-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.179e+00  2.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.48
Ra Dec: 359.588 38.510
Photon Index (Free Index): 0.89 +/- 0.63
Photon Flux (Free Index): 4.40e-09 +/- 8.50e-09
Energy Flux (Free Index): 8.24e-05 +/- 2.57e-04

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/221774/cmap_HighResolution_369705601_369964801_4FGL_J2358.3+3830_daily_bin503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.05e-03', comment='SUCCESS', energy_flux2='8.24e-05', dlogl='1.24e+00', photon_flux2='4.40e-09', job_status='DONE', time_completed='2021-09-30 11:04:56.782196', photon_index_error2='0.63', photon_index2='0.89', ts='-0.00', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='6.65e-08', energy_flux_error2='2.57e-04', EG='1.19', time_epoch_completed='1633025096.78', return_code='0', job_id='221774', GAL2='0.96', EG2='1.18', return_code2='0', photon_flux_error2='8.50e-09', ts2='2.48', photon_index='2.17' WHERE bin_id='503' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:04:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 221774: <4FGL_J2358.3+3830_daily_bin503> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin503 359.588 38.5097 369705601 369964801 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 :                                   831.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            856 sec.

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

