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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin974
RA = 359.588, Dec = 38.5097
tmin = 491788801, tmax = 492048001
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='224308', job_status='RUN', time_executed='2021-09-30 11:02:55.431651', time_epoch_executed='1633024975.43' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/224308

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/224308/ft1_4FGL_J2358.3+3830_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/224308/ft2_4FGL_J2358.3+3830_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/224308/ft1_4FGL_J2358.3+3830_daily_bin974.fits outfile=/scratch/kocevski/224308/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin974.fits ra=359.588 dec=38.5097 rad=12.0 tmin=491788801.0 tmax=492048001.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 4.30
user 4.05
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/224308/ft1_filtered_4FGL_J2358.3+3830_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/224308/ft2_4FGL_J2358.3+3830_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/224308/ltcube_491788801_492048001_4FGL_J2358.3+3830_daily_bin974.fits outfile=/scratch/kocevski/224308/expmap_491788801_492048001_4FGL_J2358.3+3830_daily_bin974.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/224308/ltcube_491788801_492048001_4FGL_J2358.3+3830_daily_bin974.fits
.....................!
real 192.19
user 187.12
sys 4.60

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

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/224308/ft1_filtered_4FGL_J2358.3+3830_daily_bin974.fits scfile=/scratch/kocevski/224308/ft2_4FGL_J2358.3+3830_daily_bin974.fits outfile=/scratch/kocevski/224308/cmap_HighResolution_491788801_492048001_4FGL_J2358.3+3830_daily_bin974.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=359.588 yref=38.5097 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26344E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10763E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .20517E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    76.831       1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.907       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12795E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11456E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.0380       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.270       1.0000         .10000E-03   10000.    
    13 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10714E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10195E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.7491       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.743       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .22548E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11791E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .23937E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .35446       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3641       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=   641.6157     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     3311 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1027.0       -.29761E-05** at limit **
   2  Prefactor     .10000E-03    91.676       -.25813E-06** at limit **
   3  norm          .10000E-03    151.47       -.76623E-06** at limit **
   4  Prefactor     76.848        69.476       -.49102E-05    .12887E-03
   5  Prefactor     40.898        57.176       -.48762E-05   -.17444E-04
   6  Prefactor     .10000E-03    7.1332       -.12840E-06** at limit **
   7  Prefactor     .10000E-03    40.072       -.17423E-06** at limit **
   8  Prefactor     .10000E-03    367.61       -.45721E-06** at limit **
   9  Prefactor     .10000E-03    89.415        .24586E-06** at limit **
  10  norm          4.0369        13.333       -.18112E-05   -.43896E-04
  11  Prefactor     .10000E-03    17.143       -.12896E-06** at limit **
  12  Prefactor     45.436        204.94       -.98253E-05    .16318E-04
  13  norm          .10000E-03    3.6120        .20254E-06** at limit **
  14  Prefactor     .10000E-03    32.286        .62771E-06** at limit **
  15  norm          .10000E-03    13.811        .38147E-07** at limit **
  16  norm          .10000E-03    42.671       -.16005E-06** at limit **
  17  Prefactor     .10000E-03    39.717        .16001E-06** at limit **
  18  norm          9.7422        14.141       -.31733E-06   -.21901E-04
  19  Prefactor     35.833        211.35       -.16234E-04    .73943E-05
  20  Prefactor     .10000E-03    110.31       -.68716E-06** at limit **
  21  Prefactor     .10000E-03    196.68        .19723E-05** at limit **
  22  Prefactor     .10018E-03    1317.3       -.11212E-04** at limit **
  23  Prefactor     .10000E-03    130.56       -.16072E-05** at limit **
  24  Normalizat    .35416        .90599        .82089E-04    .27053E-04
  25  Prefactor     1.3643        .43922       -.17861E-04    .90884E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 76.8481
  Prefactor  = 40.8981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 4.03692
  Prefactor  = 0.0001
  Prefactor  = 45.4358
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.7422
  Prefactor  = 35.8325
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100178
  Prefactor  = 0.0001
  Normalizat = 0.354165
  Prefactor  = 1.36429
 **********
 **   18 **HESSE 
 **********

 FCN=   641.6157     FROM HESSE     STATUS=OK           409 CALLS     3720 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1032.4        .21444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    91.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    151.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     76.848        69.735        .45812E-04   -1.3952    
   5  Prefactor     40.898        57.298        .62674E-04   -1.4428    
   6  Prefactor     .10000E-03    7.1363        .66095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    40.081        .15675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    369.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    89.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.0369        13.332        .16072E-03   -1.5306    
  11  Prefactor     .10000E-03    17.147        .10249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     45.436        204.57        .29794E-03   -1.4359    
  13  norm          .10000E-03    3.6113        .47018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    32.271        .14064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    13.811        .91986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    42.682        .16175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    39.714        .15605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.7422        14.160        .11108E-03   -1.5084    
  19  Prefactor     35.833        211.56        .67032E-04   -1.4510    
  20  Prefactor     .10000E-03    110.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    196.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10018E-03    1311.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    131.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .35416        .90875        .64153E-03   -1.1974    
  25  Prefactor     1.3643        .44191        .17197E-03   -.81415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33288e-10
Minuit parameter uncertainties:
  1  0.0043362
  2  0.000263434
  3  0.00016538
  4  69.8097
  5  57.3753
  6  1.09467e-05
  7  4.55849e-05
  8  0.00229863
  9  0.000306633
  10  13.3419
  11  5.0548e-06
  12  193.932
  13  2.30721e-05
  14  0.000187562
  15  1.1037e-05
  16  5.14596e-05
  17  1.08427e-05
  18  14.165
  19  175.075
  20  0.000551003
  21  0.000894026
  22  0.0312913
  23  0.000100401
  24  0.951398
  25  0.443138
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.002e-04  3.129e-02  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:  1.364e+00  4.431e-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:  3.542e-01  9.514e-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: 7.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.74e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/224308/likelihoodResults_491788801_492048001_4FGL_J2358.3+3830_daily_bin974.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) = 641.615704937
delta logL = -3.47362959019e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 641.615704937
delta logL = -3.47345996943e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96361E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1750       1.0000          .0000       10.000    
     3 'Normalizat'    .35416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3643       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.

 FCN=   641.6157     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      211 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12768E-03    5701.2        .90712E-02** at limit **
   2  Index         2.3203        7.8506        .50000       -.18416E-05
   3  Normalizat    .35419        .11582        .14490        .59601E-04
   4  Prefactor     1.3643        .60599E-01    .31574E-01   -.50958E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000127676
  Index      = 2.32027
  Normalizat = 0.354188
  Prefactor  = 1.36428
 **********
 **   18 **HESSE 
 **********

 FCN=   641.6157     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      242 TOTAL
                     EDM=   .89E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12768E-03    6376.5        .36285E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3203        5.0850        .50000       -.56563    
   3  Normalizat    .35419        .39536        .64169E-03   -1.1974    
   4  Prefactor     1.3643        .20878        .17197E-03   -.81415    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.92996e-08
Minuit parameter uncertainties:
  1  7.1922
  2  52.8779
  3  0.398527
  4  0.208911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/224308': 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) = 641.615701423
delta logL = 4.09332869822e-08

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.277e-04  7.192e+00  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  2.320e+00  5.288e+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:  1.364e+00  2.089e-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:  3.542e-01  3.985e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/224308/cmap_HighResolution_491788801_492048001_4FGL_J2358.3+3830_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.74e-02', job_status='DONE', photon_flux_upper_limit='7.55e-07', time_completed='2021-09-30 11:08:59.539294', job_id='224308', GAL2='1.36', fit_tolerance='1e-08', EG2='0.35', EG='0.35', time_epoch_completed='1633025339.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='4.09e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='974' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:08:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 224308: <4FGL_J2358.3+3830_daily_bin974> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin974 359.588 38.5097 491788801 492048001 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 :                                   358.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   518 sec.
    Turnaround time :                            521 sec.

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

