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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin118
RA = 359.588, Dec = 38.5097
tmin = 269913601, tmax = 270172801
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='220097', job_status='RUN', time_executed='2021-09-30 10:45:23.310900', time_epoch_executed='1633023923.31' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/220097

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/220097/ft1_4FGL_J2358.3+3830_daily_bin118.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/220097/ft2_4FGL_J2358.3+3830_daily_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/220097/ft1_4FGL_J2358.3+3830_daily_bin118.fits outfile=/scratch/kocevski/220097/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin118.fits ra=359.588 dec=38.5097 rad=12.0 tmin=269913601.0 tmax=270172801.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.68
user 1.51
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/220097/ft1_filtered_4FGL_J2358.3+3830_daily_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/220097/ft2_4FGL_J2358.3+3830_daily_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/220097/ltcube_269913601_270172801_4FGL_J2358.3+3830_daily_bin118.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/220097/ft2_4FGL_J2358.3+3830_daily_bin118.fits
.....................!
real 12.08
user 11.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/220097/ft1_filtered_4FGL_J2358.3+3830_daily_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/220097/ft2_4FGL_J2358.3+3830_daily_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/220097/ltcube_269913601_270172801_4FGL_J2358.3+3830_daily_bin118.fits outfile=/scratch/kocevski/220097/expmap_269913601_270172801_4FGL_J2358.3+3830_daily_bin118.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/220097/ltcube_269913601_270172801_4FGL_J2358.3+3830_daily_bin118.fits
.....................!
real 190.43
user 184.28
sys 5.79

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/220097/ft1_filtered_4FGL_J2358.3+3830_daily_bin118.fits scfile=/scratch/kocevski/220097/ft2_4FGL_J2358.3+3830_daily_bin118.fits outfile=/scratch/kocevski/220097/cmap_269913601_270172801_4FGL_J2358.3+3830_daily_bin118.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=359.588 yref=38.5097 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8726       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    13.545       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2942       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13665       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.154       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.286       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.129       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .60113       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.6676       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.4707       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.921       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.106       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91581       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95962       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=   7071.606     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2944 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8779        117.96        .42538E-05   -.68882E-05
   2  Prefactor     .10000E-03    20.424        .72519E-06** at limit **
   3  norm          13.549        15.963       -.63742E-06   -.22343E-04
   4  Prefactor     5.2939        5.8731        .15634E-05   -.52076E-04
   5  Prefactor     .10000E-03    5.1910        .29794E-06** at limit **
   6  Prefactor     .22272        2.2032        .16887E-06   -.11492E-02
   7  Prefactor     15.001        21.264        .28942E-05   -.49203E-04
   8  Prefactor     27.284        25.264       -.15567E-07   -.12130E-04
   9  Prefactor     23.015        48.177        .16612E-05   -.85698E-04
  10  norm          .10000E-03    1.3374        .11884E-06** at limit **
  11  Prefactor     .10000E-03    3.9258       -.41743E-06** at limit **
  12  Prefactor     .10000E-03    26.909        .15274E-06** at limit **
  13  norm          .60088        1.0336        .56816E-06    .80099E-03
  14  Prefactor     .10000E-03    3.9277        .95342E-07** at limit **
  15  norm          .10000E-03    1.1340        .26175E-07** at limit **
  16  norm          7.6682        7.4830       -.39306E-07   -.14143E-04
  17  Prefactor     .10000E-03    6.3500        .12295E-06** at limit **
  18  norm          4.4714        2.7261       -.61859E-09   -.41576E-04
  19  Prefactor     18.918        21.179       -.10155E-06   -.11825E-04
  20  Prefactor     24.104        39.347        .15131E-06   -.85371E-05
  21  Prefactor     .10000E-03    27.085        .31161E-06** at limit **
  22  Prefactor     .10000E-03    25.329       -.16571E-06** at limit **
  23  Prefactor     .10000E-03    6.0179       -.24553E-06** at limit **
  24  Normalizat    .91555        .20079        .85054E-06   -.10614E-03
  25  Prefactor     .95965        .95272E-01   -.31226E-06   -.25506E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.87786
  Prefactor  = 0.0001
  norm       = 13.5487
  Prefactor  = 5.29387
  Prefactor  = 0.0001
  Prefactor  = 0.222715
  Prefactor  = 15.001
  Prefactor  = 27.2842
  Prefactor  = 23.0153
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.60088
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.66817
  Prefactor  = 0.0001
  norm       = 4.4714
  Prefactor  = 18.9185
  Prefactor  = 24.1036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.915545
  Prefactor  = 0.959647
 **********
 **   18 **HESSE 
 **********

 FCN=   7071.606     FROM HESSE     STATUS=OK           431 CALLS     3375 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8779        117.82        .30433E-03   -1.5434    
   2  Prefactor     .10000E-03    20.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          13.549        15.910        .10883E-03   -1.4972    
   4  Prefactor     5.2939        5.7964        .87340E-03   -1.5248    
   5  Prefactor     .10000E-03    5.2519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .22272        19.827        .21499E-02   -1.5614    
   7  Prefactor     15.001        22.955        .10289E-03   -1.4933    
   8  Prefactor     27.284        25.301        .76694E-04   -1.4663    
   9  Prefactor     23.015        48.414        .83289E-04   -1.4748    
  10  norm          .10000E-03    1.3582        .94908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.9612        .16265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .60088        .93650        .11187E-02   -1.5553    
  14  Prefactor     .10000E-03    3.9380        .16272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.1361        .87446E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.6682        7.4862        .14482E-03   -1.5154    
  17  Prefactor     .10000E-03    6.3670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.4714        2.7264        .10476E-03   -1.5285    
  19  Prefactor     18.918        21.188        .92076E-04   -1.4838    
  20  Prefactor     24.104        39.343        .81587E-04   -1.4726    
  21  Prefactor     .10000E-03    27.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    25.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.1163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .91555        .22841        .34185E-03   -.95916    
  25  Prefactor     .95965        .10961        .16209E-03   -.94087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.84477e-09
Minuit parameter uncertainties:
  1  29.8099
  2  7.05574e-05
  3  15.9147
  4  5.79703
  5  7.31172e-06
  6  4.20322
  7  22.9683
  8  25.3114
  9  48.4963
  10  1.30951e-06
  11  2.06689e-06
  12  2.28433e-05
  13  0.936521
  14  2.92984e-06
  15  1.00539e-06
  16  7.48709
  17  5.04931e-06
  18  2.72649
  19  21.1968
  20  39.3851
  21  1.7262e-05
  22  2.79525e-05
  23  1.59368e-05
  24  0.228652
  25  0.109638
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.000e-04  2.795e-05  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.596e-01  1.096e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
497   Normalization:  9.155e-01  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: 6.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/220097/likelihoodResults_269913601_270172801_4FGL_J2358.3+3830_daily_bin118.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) = 7071.60622238
delta logL = -0.000187926122635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7071.60603444
delta logL = 2.02853698283e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1531       1.0000          .0000       10.000    
     3 'Normalizat'    .91555       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95965       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=   7071.606     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      244 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10135E-03    221.83        .18142E-02** at limit **
   2  Index         2.0963        5.1126        .50000        .58716E-05
   3  Normalizat    .91555        .15418E-01    .34185E-03   -.75825E-05
   4  Prefactor     .95965        .75204E-02    .16209E-03    .15010E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101352
  Index      = 2.09628
  Normalizat = 0.915547
  Prefactor  = 0.959647
 **********
 **   18 **HESSE 
 **********

 FCN=   7071.606     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10135E-03    957.47        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0963        7.8527        .50000       -.61964    
   3  Normalizat    .91555        .33489E-01    .13674E-04   -.95916    
   4  Prefactor     .95965        .16335E-01    .64835E-05   -.94087    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.03911e-09
Minuit parameter uncertainties:
  1  0.0731679
  2  984.547
  3  0.0334903
  4  0.0163348
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/220097': 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) = 7071.60603436
delta logL = 1.00209035736e-07

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.014e-04  7.317e-02  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  2.096e+00  9.845e+02  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.596e-01  1.633e-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:  9.155e-01  3.349e-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/220097/cmap_HighResolution_269913601_270172801_4FGL_J2358.3+3830_daily_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.80e-03', job_status='DONE', photon_flux_upper_limit='6.31e-08', time_completed='2021-09-30 10:57:16.478275', job_id='220097', GAL2='0.96', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1633024636.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.00e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='118' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 10:57:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 220097: <4FGL_J2358.3+3830_daily_bin118> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin118> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 10:45:11 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 10:45:14 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:45:14 2021
Terminated at Thu Sep 30 10:57:17 2021
Results reported at Thu Sep 30 10:57:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin118 359.588 38.5097 269913601 270172801 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 :                                   713.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             376.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            726 sec.

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

