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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin1223
RA = 359.588, Dec = 38.5097
tmin = 556329601, tmax = 556588801
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='224678', job_status='RUN', time_executed='2021-09-30 11:03:37.372790', time_epoch_executed='1633025017.37' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='1223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/224678

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/224678/ft1_4FGL_J2358.3+3830_daily_bin1223.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/224678/ft2_4FGL_J2358.3+3830_daily_bin1223.fits


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

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

Done.
real 3.76
user 3.52
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/224678/ft1_filtered_4FGL_J2358.3+3830_daily_bin1223.fits" evtable="EVENTS" scfile=/scratch/kocevski/224678/ft2_4FGL_J2358.3+3830_daily_bin1223.fits sctable="SC_DATA" outfile=/scratch/kocevski/224678/ltcube_556329601_556588801_4FGL_J2358.3+3830_daily_bin1223.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/224678/ft2_4FGL_J2358.3+3830_daily_bin1223.fits
.....................!
real 11.83
user 11.45
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/224678/ft1_filtered_4FGL_J2358.3+3830_daily_bin1223.fits evtable="EVENTS" scfile=/scratch/kocevski/224678/ft2_4FGL_J2358.3+3830_daily_bin1223.fits sctable="SC_DATA" expcube=/scratch/kocevski/224678/ltcube_556329601_556588801_4FGL_J2358.3+3830_daily_bin1223.fits outfile=/scratch/kocevski/224678/expmap_556329601_556588801_4FGL_J2358.3+3830_daily_bin1223.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/224678/ltcube_556329601_556588801_4FGL_J2358.3+3830_daily_bin1223.fits
.....................!
real 191.38
user 185.81
sys 5.08

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/224678/ft1_filtered_4FGL_J2358.3+3830_daily_bin1223.fits scfile=/scratch/kocevski/224678/ft2_4FGL_J2358.3+3830_daily_bin1223.fits outfile=/scratch/kocevski/224678/cmap_556329601_556588801_4FGL_J2358.3+3830_daily_bin1223.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/224678/ft1_filtered_4FGL_J2358.3+3830_daily_bin1223.fits scfile=/scratch/kocevski/224678/ft2_4FGL_J2358.3+3830_daily_bin1223.fits outfile=/scratch/kocevski/224678/cmap_HighResolution_556329601_556588801_4FGL_J2358.3+3830_daily_bin1223.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.56
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10855E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    98.195       1.0000         .10000E-03   10000.    
     3 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.587       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.017       1.0000         .10000E-03   10000.    
     9 'Prefactor '    86.713       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15103E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14625E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11814E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21834E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10373E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    75.418       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .56348E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.581       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3279       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1339.944     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     3181 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    590.83       -.46412E-05** at limit **
   2  Prefactor     .14068E-02    996.76       -.21262E-04** at limit **
   3  norm          .10000E-03    34.344       -.54148E-06** at limit **
   4  Prefactor     .10000E-03    15.459       -.48933E-06** at limit **
   5  Prefactor     .10000E-03    14.502        .12821E-05** at limit **
   6  Prefactor     .10000E-03    15.426       -.82231E-06** at limit **
   7  Prefactor     .47140        216.43       -.94224E-05   -.40714E-02
   8  Prefactor     23.115        148.54        .62500E-05   -.15352E-03
   9  Prefactor     89.532        306.43        .13504E-05    .72172E-03
  10  norm          .10000E-03    3.0119        .43732E-07** at limit **
  11  Prefactor     .10000E-03    138.10        .68478E-05** at limit **
  12  Prefactor     .10000E-03    373.16       -.14677E-04** at limit **
  13  norm          .10000E-03    62.320        .40499E-05** at limit **
  14  Prefactor     .10000E-03    87.847        .22861E-04** at limit **
  15  norm          .10000E-03    4.3408        .21524E-06** at limit **
  16  norm          .10000E-03    159.04        .29297E-05** at limit **
  17  Prefactor     .10000E-03    16.922       -.80180E-06** at limit **
  18  norm          .10000E-03    14.070       -.48509E-06** at limit **
  19  Prefactor     76.513        92.631       -.11662E-04   -.18256E-04
  20  Prefactor     809.50        1618.6        .34202E-05   -.13476E-04
  21  Prefactor     .10000E-03    34.004        .26638E-05** at limit **
  22  Prefactor     .10002E-03    730.22       -.65921E-05** at limit **
  23  Prefactor     17.367        37.686        .19696E-05    .63439E-05
  24  Normalizat    .10000E-01    .21123        .74858E-06** at limit **
  25  Prefactor     1.3208        .16529        .78735E-05    .93558E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.00140677
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.471399
  Prefactor  = 23.1147
  Prefactor  = 89.5319
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 76.5135
  Prefactor  = 809.504
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 17.3671
  Normalizat = 0.01
  Prefactor  = 1.32077
 **********
 **   18 **HESSE 
 **********

 FCN=   1339.944     FROM HESSE     STATUS=OK           473 CALLS     3654 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    456.22        .10354E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .14068E-02    645.67        .10142E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    33.509        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.137        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.650        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.211        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .47140        6122.0        .19068E-02   -1.5571    
   8  Prefactor     23.115        140.27        .21341E-02   -1.4746    
   9  Prefactor     89.532        280.49        .10786E-02   -1.3813    
  10  norm          .10000E-03    2.9632        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    124.75        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    316.62        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.4885        .57712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    82.617        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.3399        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    143.71        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.853        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    13.161        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     76.513        92.369        .11559E-02   -1.3956    
  20  Prefactor     809.50        1332.9        .95164E-02   -.99379    
  21  Prefactor     .10000E-03    33.704        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10002E-03    522.90        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.367        37.149        .22628E-02   -1.4874    
  24  Normalizat    .10000E-01    .16785        .23338       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.3208        .17481        .32141E-01   -.82691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75816e-05
Minuit parameter uncertainties:
  1  0.000998199
  2  1.85748
  3  3.7633e-06
  4  3.26302e-05
  5  1.02728e-05
  6  3.70461e-05
  7  68.7069
  8  114.283
  9  284.808
  10  1.0299e-05
  11  0.000159273
  12  0.00174841
  13  1.08712e-05
  14  0.00113866
  15  3.64119e-06
  16  0.000103955
  17  2.23319e-05
  18  2.39469e-05
  19  92.5432
  20  1392.66
  21  8.82509e-05
  22  0.00569789
  23  37.1985
  24  2.40044e-07
  25  0.174891
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.000e-04  5.698e-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:  1.321e+00  1.749e-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.000e-02  2.400e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 359.588 38.510
Photon Flux Upper Limit: 4.61e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.50e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/224678/likelihoodResults_556329601_556588801_4FGL_J2358.3+3830_daily_bin1223.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) = 1339.94389192
delta logL = -8.60969498717e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1339.94388985
delta logL = -6.53966844766e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96283E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1750       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3208       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=   1339.944     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      209 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10015E-03    464.67        .90720E-02** at limit **
   2  Index         2.2061        7.0368        .50000       -.34100E-06
   3  Normalizat    .10000E-01    .18857E-03    .23338    ** at limit **
   4  Prefactor     1.3208        .50475E-02    .32257E-01   -.88739E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100153
  Index      = 2.20606
  Normalizat = 0.01
  Prefactor  = 1.32077
 **********
 **   18 **HESSE 
 **********

 FCN=   1339.944     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      240 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10015E-03    6208.0        .18144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2061        8.8920        .50000       -.59292    
   3  Normalizat    .10000E-01    .14670E-02    .87921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3208        .11959E-01    .15084E-03   -.82691    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.63904e-09
Minuit parameter uncertainties:
  1  0.0401661
  2  668.682
  3  9.88228e-08
  4  0.0119595
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/224678': 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) = 1339.9438833
delta logL = 2.54340193351e-09

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.002e-04  4.017e-02  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  2.206e+00  6.687e+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:  1.321e+00  1.196e-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.000e-02  9.882e-08  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/224678/cmap_HighResolution_556329601_556588801_4FGL_J2358.3+3830_daily_bin1223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-02', job_status='DONE', photon_flux_upper_limit='4.61e-07', time_completed='2021-09-30 11:12:44.124207', job_id='224678', GAL2='1.32', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1633025564.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='2.54e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1223' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:12:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 224678: <4FGL_J2358.3+3830_daily_bin1223> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin1223> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep 30 11:00:50 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:00:52 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:52 2021
Terminated at Thu Sep 30 11:12:44 2021
Results reported at Thu Sep 30 11:12:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin1223 359.588 38.5097 556329601 556588801 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 :                                   386.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             188.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            714 sec.

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

