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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin51
RA = 359.588, Dec = 38.5097
tmin = 252547201, tmax = 252806401
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='219038', job_status='RUN', time_executed='2021-09-30 10:40:55.820184', time_epoch_executed='1633023655.82' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='51'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/219038

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/219038/ft1_4FGL_J2358.3+3830_daily_bin51.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/219038/ft2_4FGL_J2358.3+3830_daily_bin51.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/219038/ft1_4FGL_J2358.3+3830_daily_bin51.fits outfile=/scratch/kocevski/219038/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin51.fits ra=359.588 dec=38.5097 rad=12.0 tmin=252547201.0 tmax=252806401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.41
user 1.22
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/219038/ft1_filtered_4FGL_J2358.3+3830_daily_bin51.fits evtable="EVENTS" scfile=/scratch/kocevski/219038/ft2_4FGL_J2358.3+3830_daily_bin51.fits sctable="SC_DATA" expcube=/scratch/kocevski/219038/ltcube_252547201_252806401_4FGL_J2358.3+3830_daily_bin51.fits outfile=/scratch/kocevski/219038/expmap_252547201_252806401_4FGL_J2358.3+3830_daily_bin51.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/219038/ltcube_252547201_252806401_4FGL_J2358.3+3830_daily_bin51.fits
.....................!
real 190.99
user 186.32
sys 4.31

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/219038/ft1_filtered_4FGL_J2358.3+3830_daily_bin51.fits scfile=/scratch/kocevski/219038/ft2_4FGL_J2358.3+3830_daily_bin51.fits outfile=/scratch/kocevski/219038/cmap_252547201_252806401_4FGL_J2358.3+3830_daily_bin51.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/219038/ft1_filtered_4FGL_J2358.3+3830_daily_bin51.fits scfile=/scratch/kocevski/219038/ft2_4FGL_J2358.3+3830_daily_bin51.fits outfile=/scratch/kocevski/219038/cmap_HighResolution_252547201_252806401_4FGL_J2358.3+3830_daily_bin51.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/219038/ft1_filtered_4FGL_J2358.3+3830_daily_bin51.fits evtable="EVENTS" scfile=/scratch/kocevski/219038/ft2_4FGL_J2358.3+3830_daily_bin51.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/219038/Model_4FGL_J2358.3+3830_daily_bin51.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/219038/ft1_filtered_4FGL_J2358.3+3830_daily_bin51.fits.....................!
real 102.15
user 100.76
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    36.273       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .35613       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5318       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.130       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.0139       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.606       1.0000         .10000E-03   10000.    
    13 'norm      '    3.1480       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.8828       1.0000         .10000E-03   10000.    
    16 'norm      '    5.2743       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.823       1.0000         .10000E-03   10000.    
    18 'norm      '    6.4019       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0940       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89266       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=   9598.148     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2457 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.832        .16662E-05** at limit **
   2  Prefactor     .10000E-03    23.412       -.12954E-05** at limit **
   3  norm          36.265        17.401       -.14552E-06   -.43073E-04
   4  Prefactor     .10000E-03    2.9025       -.11346E-07** at limit **
   5  Prefactor     .35038        3.6038        .37758E-06   -.21933E-03
   6  Prefactor     2.5331        3.3085        .32936E-06   -.13948E-03
   7  Prefactor     27.135        20.483        .22155E-07    .32600E-04
   8  Prefactor     .10000E-03    18.038       -.46007E-07** at limit **
   9  Prefactor     .10001E-03    34.472        .56179E-05** at limit **
  10  norm          4.0141        2.5638        .65424E-07   -.44769E-04
  11  Prefactor     .10000E-03    3.6842       -.15332E-06** at limit **
  12  Prefactor     15.601        18.046       -.11414E-06   -.41019E-04
  13  norm          3.1479        1.4495        .38246E-07   -.53537E-04
  14  Prefactor     .10000E-03    4.0294        .36865E-07** at limit **
  15  norm          1.8863        4.1081        .74196E-06   -.19719E-03
  16  norm          5.2712        11.764        .52968E-05   -.36506E-03
  17  Prefactor     21.810        18.390       -.71010E-06   -.17953E-03
  18  norm          6.4016        2.8533       -.15163E-06   -.89708E-04
  19  Prefactor     .10000E-03    9.2152       -.11726E-06** at limit **
  20  Prefactor     .10000E-03    20.300       -.20189E-05** at limit **
  21  Prefactor     .10000E-03    45.960        .11666E-05** at limit **
  22  Prefactor     .10001E-03    50.559       -.55690E-05** at limit **
  23  Prefactor     .10000E-03    3.4384        .78733E-07** at limit **
  24  Normalizat    1.0938        .18121       -.29657E-06   -.94229E-04
  25  Prefactor     .89280        .83511E-01   -.31971E-06   -.65101E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 36.2648
  Prefactor  = 0.0001
  Prefactor  = 0.350381
  Prefactor  = 2.53314
  Prefactor  = 27.1352
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  norm       = 4.01413
  Prefactor  = 0.0001
  Prefactor  = 15.6007
  norm       = 3.14791
  Prefactor  = 0.0001
  norm       = 1.88635
  norm       = 5.27119
  Prefactor  = 21.8101
  norm       = 6.40163
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Normalizat = 1.09382
  Prefactor  = 0.892797
 **********
 **   18 **HESSE 
 **********

 FCN=   9598.148     FROM HESSE     STATUS=OK           429 CALLS     2886 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          36.265        17.424        .66542E-04   -1.4503    
   4  Prefactor     .10000E-03    2.9274        .16290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .35038        12.791        .34995E-02   -1.5590    
   6  Prefactor     2.5331        3.2668        .17898E-03   -1.5390    
   7  Prefactor     27.135        20.293        .76912E-04   -1.4666    
   8  Prefactor     .10000E-03    18.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    36.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.0141        2.5645        .12075E-03   -1.5307    
  11  Prefactor     .10000E-03    3.7443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.601        18.056        .10139E-03   -1.4918    
  13  norm          3.1479        1.4458        .76843E-04   -1.5353    
  14  Prefactor     .10000E-03    4.0452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.8863        4.0471        .25994E-03   -1.5433    
  16  norm          5.2712        12.159        .87507E-03   -1.5249    
  17  Prefactor     21.810        18.231        .85741E-04   -1.4774    
  18  norm          6.4016        2.8536        .10595E-03   -1.5202    
  19  Prefactor     .10000E-03    9.2408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    46.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    52.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.4679        .17730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0938        .20528        .32892E-03   -.89951    
  25  Prefactor     .89280        .95645E-01    .17288E-03   -.96393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.96546e-08
Minuit parameter uncertainties:
  1  0.000297904
  2  0.000278487
  3  17.4262
  4  2.26047e-06
  5  4.23444
  6  3.26703
  7  20.2984
  8  8.63028e-06
  9  0.00145332
  10  2.56457
  11  1.26415e-05
  12  18.0626
  13  1.44578
  14  3.76068e-06
  15  4.04768
  16  12.1643
  17  18.236
  18  2.85363
  19  1.35247e-05
  20  0.000401238
  21  0.000369724
  22  0.00168057
  23  1.40874e-05
  24  0.205426
  25  0.0956625
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.000e-04  1.681e-03  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:  8.928e-01  9.566e-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.094e+00  2.054e-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.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/219038/likelihoodResults_252547201_252806401_4FGL_J2358.3+3830_daily_bin51.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) = 9598.14814939
delta logL = -9.0044879471e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9598.14814939
delta logL = -9.00427330635e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96363E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1749       1.0000          .0000       10.000    
     3 'Normalizat'    1.0938       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89280       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=   9597.088     FROM MIGRAD    STATUS=CONVERGED    162 CALLS      307 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3715        464.14        .18142E-01   -.12736E-03
   2  Index         .36045        5.1798        .50000       -.11884E-04
   3  Normalizat    1.0836        .11868        .32892E-03   -.15208E-05
   4  Prefactor     .89575        .57365E-01    .17288E-03   -.38140E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.37149
  Index      = 0.360452
  Normalizat = 1.08356
  Prefactor  = 0.895752
 **********
 **   18 **HESSE 
 **********

 FCN=   9597.088     FROM HESSE     STATUS=OK            29 CALLS      336 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3715        269.47        .28359E-03   -1.5203    
   2  Index         .36045        9.7254        .38630E-01   -1.9528    
   3  Normalizat    1.0836        .19393        .13157E-04   -.90281    
   4  Prefactor     .89575        .93774E-01    .69153E-05   -.96290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81948e-11
Minuit parameter uncertainties:
  1  83.2753
  2  4.63004
  3  0.194058
  4  0.0937904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/219038': 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) = 9597.0879443
delta logL = 1.06011504789

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  6.371e+00  8.328e+01  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  3.605e-01  4.630e+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:  8.958e-01  9.379e-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.084e+00  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.12
Ra Dec: 359.588 38.510
Photon Index (Free Index): 0.36 +/- 4.63
Photon Flux (Free Index): 2.46e-09 +/- 5.91e-08
Energy Flux (Free Index): 9.74e-05 +/- 2.72e-03

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/219038/cmap_HighResolution_252547201_252806401_4FGL_J2358.3+3830_daily_bin51.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', comment='SUCCESS', energy_flux2='9.74e-05', dlogl='1.06e+00', photon_flux2='2.46e-09', job_status='DONE', time_completed='2021-09-30 10:54:36.517951', photon_index_error2='4.63', photon_index2='0.36', ts='-0.00', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='6.40e-08', energy_flux_error2='2.72e-03', EG='1.09', time_epoch_completed='1633024476.52', return_code='0', job_id='219038', GAL2='0.90', EG2='1.08', return_code2='0', photon_flux_error2='5.91e-08', ts2='2.12', photon_index='2.17' WHERE bin_id='51' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 10:54:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 219038: <4FGL_J2358.3+3830_daily_bin51> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin51 359.588 38.5097 252547201 252806401 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 :                                   817.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            838 sec.

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

