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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin82
RA = 359.588, Dec = 38.5097
tmin = 260582401, tmax = 260841601
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='219083', job_status='RUN', time_executed='2021-09-30 10:43:38.504561', time_epoch_executed='1633023818.5' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='82'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/219083

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/219083/ft1_4FGL_J2358.3+3830_daily_bin82.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/219083/ft2_4FGL_J2358.3+3830_daily_bin82.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/219083/ft1_4FGL_J2358.3+3830_daily_bin82.fits outfile=/scratch/kocevski/219083/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin82.fits ra=359.588 dec=38.5097 rad=12.0 tmin=260582401.0 tmax=260841601.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.57
user 1.40
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/219083/ft1_filtered_4FGL_J2358.3+3830_daily_bin82.fits" evtable="EVENTS" scfile=/scratch/kocevski/219083/ft2_4FGL_J2358.3+3830_daily_bin82.fits sctable="SC_DATA" outfile=/scratch/kocevski/219083/ltcube_260582401_260841601_4FGL_J2358.3+3830_daily_bin82.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/219083/ft2_4FGL_J2358.3+3830_daily_bin82.fits
.....................!
real 12.64
user 12.25
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/219083/ft1_filtered_4FGL_J2358.3+3830_daily_bin82.fits evtable="EVENTS" scfile=/scratch/kocevski/219083/ft2_4FGL_J2358.3+3830_daily_bin82.fits sctable="SC_DATA" expcube=/scratch/kocevski/219083/ltcube_260582401_260841601_4FGL_J2358.3+3830_daily_bin82.fits outfile=/scratch/kocevski/219083/expmap_260582401_260841601_4FGL_J2358.3+3830_daily_bin82.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/219083/ltcube_260582401_260841601_4FGL_J2358.3+3830_daily_bin82.fits
.....................!
real 189.98
user 185.02
sys 4.64

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/219083/ft1_filtered_4FGL_J2358.3+3830_daily_bin82.fits scfile=/scratch/kocevski/219083/ft2_4FGL_J2358.3+3830_daily_bin82.fits outfile=/scratch/kocevski/219083/cmap_260582401_260841601_4FGL_J2358.3+3830_daily_bin82.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/219083/ft1_filtered_4FGL_J2358.3+3830_daily_bin82.fits scfile=/scratch/kocevski/219083/ft2_4FGL_J2358.3+3830_daily_bin82.fits outfile=/scratch/kocevski/219083/cmap_HighResolution_260582401_260841601_4FGL_J2358.3+3830_daily_bin82.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.608       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.898       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7822       1.0000         .10000E-03   10000.    
    13 'norm      '    2.6937       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8163       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.8958       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11676E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.0540       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2770       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94514       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=   8076.614     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2418 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.658        .71548E-06** at limit **
   2  Prefactor     .10000E-03    16.138       -.14373E-05** at limit **
   3  norm          .10000E-03    5.0077        .51639E-06** at limit **
   4  Prefactor     .10000E-03    3.1791        .48087E-07** at limit **
   5  Prefactor     .10000E-03    1.8227        .35028E-07** at limit **
   6  Prefactor     .10000E-03    1.1505       -.62981E-07** at limit **
   7  Prefactor     .10000E-03    15.329       -.13661E-06** at limit **
   8  Prefactor     13.611        20.739        .53103E-06    .86554E-04
   9  Prefactor     .10000E-03    12.228        .63016E-06** at limit **
  10  norm          .10000E-03    .85526       -.29228E-08** at limit **
  11  Prefactor     15.898        9.4650        .29289E-07   -.13140E-04
  12  Prefactor     7.7797        25.554       -.12333E-05   -.78496E-04
  13  norm          2.6937        1.5632       -.26887E-08   -.16744E-03
  14  Prefactor     5.8175        8.5674        .36244E-05   -.11663E-03
  15  norm          .10000E-03    2.0132        .15469E-07** at limit **
  16  norm          8.8961        8.9976        .47714E-07   -.84924E-04
  17  Prefactor     .10000E-03    7.7796       -.85671E-06** at limit **
  18  norm          .10002E-03    1.8051        .11556E-05** at limit **
  19  Prefactor     .10000E-03    4.6631       -.81032E-06** at limit **
  20  Prefactor     5.0390        94.293       -.78412E-05   -.12501E-03
  21  Prefactor     .10000E-03    14.111        .71647E-06** at limit **
  22  Prefactor     .10000E-03    15.093        .12565E-06** at limit **
  23  Prefactor     .10000E-03    4.8077       -.23157E-06** at limit **
  24  Normalizat    1.2768        .20573       -.47308E-06   -.83348E-04
  25  Prefactor     .94523        .96471E-01    .25050E-08   -.26154E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6106
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.8982
  Prefactor  = 7.77967
  norm       = 2.69371
  Prefactor  = 5.81754
  norm       = 0.0001
  norm       = 8.89611
  Prefactor  = 0.000100001
  norm       = 0.000100019
  Prefactor  = 0.000100001
  Prefactor  = 5.03903
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.27679
  Prefactor  = 0.945229
 **********
 **   18 **HESSE 
 **********

 FCN=   8076.614     FROM HESSE     STATUS=OK           419 CALLS     2837 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.0429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.1927        .15647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.8269        .11848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.1603        .94131E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.611        20.782        .10858E-03   -1.4970    
   9  Prefactor     .10000E-03    12.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .86630        .81158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.898        9.4793        .10045E-03   -1.4910    
  12  Prefactor     7.7797        25.645        .14374E-03   -1.5150    
  13  norm          2.6937        1.5579        .82112E-04   -1.5380    
  14  Prefactor     5.8175        8.8280        .83264E-03   -1.5226    
  15  norm          .10000E-03    2.0328        .12451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.8961        8.9936        .67193E-03   -1.5111    
  17  Prefactor     .10000E-03    7.9113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10002E-03    5.1118        .21476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.7482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.0390        103.06        .17886E-03   -1.5259    
  21  Prefactor     .10000E-03    14.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.8583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2768        .24132        .32570E-03   -.84262    
  25  Prefactor     .94523        .11332        .17491E-03   -.94578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8342e-09
Minuit parameter uncertainties:
  1  0.000173492
  2  0.000301545
  3  6.9634e-05
  4  3.73307e-06
  5  1.3011e-06
  6  4.27974e-06
  7  3.37828e-05
  8  20.7935
  9  0.000134285
  10  1.11962e-06
  11  9.48016
  12  25.681
  13  1.55793
  14  8.83001
  15  1.23433e-06
  16  8.99499
  17  0.000151149
  18  0.000625269
  19  0.000110705
  20  45.6666
  21  0.00015886
  22  2.7793e-05
  23  3.39472e-05
  24  0.241535
  25  0.113347
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.000e-04  2.779e-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.452e-01  1.133e-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.277e+00  2.415e-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: 5.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/219083/likelihoodResults_260582401_260841601_4FGL_J2358.3+3830_daily_bin82.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) = 8076.61397444
delta logL = -0.000315368148222

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8076.61366602
delta logL = -6.9422303568e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15816E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1465       1.0000          .0000       10.000    
     3 'Normalizat'    1.2770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94498       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=   8076.614     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      248 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10248E-03    6.5164        .18142E-01** at limit **
   2  Index         2.0709        7.0306        .50000        .11658E-04
   3  Normalizat    1.2768        .34329E-02    .32570E-03    .31101E-04
   4  Prefactor     .94523        .16242E-02    .17491E-03    .55898E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102479
  Index      = 2.07086
  Normalizat = 1.27679
  Prefactor  = 0.945229
 **********
 **   18 **HESSE 
 **********

 FCN=   8076.614     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10248E-03    73.734        .35937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0709        8.6445        .50000       -.62590    
   3  Normalizat    1.2768        .11603E-01    .13028E-04   -.84262    
   4  Prefactor     .94523        .54897E-02    .34982E-04   -.94578    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.0383e-09
Minuit parameter uncertainties:
  1  0.0270712
  2  294.552
  3  0.0116031
  4  0.00548973
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/219083': 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) = 8076.61365882
delta logL = 2.56268322119e-07

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.025e-04  2.707e-02  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  2.071e+00  2.946e+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.452e-01  5.490e-03  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.277e+00  1.160e-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/219083/cmap_HighResolution_260582401_260841601_4FGL_J2358.3+3830_daily_bin82.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.98e-03', job_status='DONE', photon_flux_upper_limit='5.23e-08', time_completed='2021-09-30 10:55:40.784166', job_id='219083', GAL2='0.95', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1633024540.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='82' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 10:55:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 219083: <4FGL_J2358.3+3830_daily_bin82> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin82 359.588 38.5097 260582401 260841601 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 :                                   721.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            898 sec.

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

