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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin743
RA = 359.588, Dec = 38.5097
tmin = 431913601, tmax = 432172801
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='222983', job_status='RUN', time_executed='2021-09-30 10:58:23.085417', time_epoch_executed='1633024703.09' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='743'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222983

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222983/ft1_4FGL_J2358.3+3830_daily_bin743.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222983/ft2_4FGL_J2358.3+3830_daily_bin743.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222983/ft1_4FGL_J2358.3+3830_daily_bin743.fits outfile=/scratch/kocevski/222983/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin743.fits ra=359.588 dec=38.5097 rad=12.0 tmin=431913601.0 tmax=432172801.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 5.26
user 4.97
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222983/ft1_filtered_4FGL_J2358.3+3830_daily_bin743.fits evtable="EVENTS" scfile=/scratch/kocevski/222983/ft2_4FGL_J2358.3+3830_daily_bin743.fits sctable="SC_DATA" expcube=/scratch/kocevski/222983/ltcube_431913601_432172801_4FGL_J2358.3+3830_daily_bin743.fits outfile=/scratch/kocevski/222983/expmap_431913601_432172801_4FGL_J2358.3+3830_daily_bin743.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/222983/ltcube_431913601_432172801_4FGL_J2358.3+3830_daily_bin743.fits
.....................!
real 189.65
user 184.76
sys 4.58

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/222983/ft1_filtered_4FGL_J2358.3+3830_daily_bin743.fits scfile=/scratch/kocevski/222983/ft2_4FGL_J2358.3+3830_daily_bin743.fits outfile=/scratch/kocevski/222983/cmap_431913601_432172801_4FGL_J2358.3+3830_daily_bin743.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222983/ft1_filtered_4FGL_J2358.3+3830_daily_bin743.fits scfile=/scratch/kocevski/222983/ft2_4FGL_J2358.3+3830_daily_bin743.fits outfile=/scratch/kocevski/222983/cmap_HighResolution_431913601_432172801_4FGL_J2358.3+3830_daily_bin743.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/222983/ft1_filtered_4FGL_J2358.3+3830_daily_bin743.fits evtable="EVENTS" scfile=/scratch/kocevski/222983/ft2_4FGL_J2358.3+3830_daily_bin743.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/222983/Model_4FGL_J2358.3+3830_daily_bin743.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/222983/ft1_filtered_4FGL_J2358.3+3830_daily_bin743.fits.....................!
real 72.17
user 70.86
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/222983/ft1_filtered_4FGL_J2358.3+3830_daily_bin743.fits', '/scratch/kocevski/222983/ft2_4FGL_J2358.3+3830_daily_bin743.fits', expMap='/scratch/kocevski/222983/expmap_431913601_432172801_4FGL_J2358.3+3830_daily_bin743.fits', expCube='/scratch/kocevski/222983/ltcube_431913601_432172801_4FGL_J2358.3+3830_daily_bin743.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/222983/Model_4FGL_J2358.3+3830_daily_bin743.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/222983/ft1_filtered_4FGL_J2358.3+3830_daily_bin743.fits
Spacecraft file(s): /scratch/kocevski/222983/ft2_4FGL_J2358.3+3830_daily_bin743.fits
Exposure map: /scratch/kocevski/222983/expmap_431913601_432172801_4FGL_J2358.3+3830_daily_bin743.fits
Exposure cube: /scratch/kocevski/222983/ltcube_431913601_432172801_4FGL_J2358.3+3830_daily_bin743.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/222983/Model_4FGL_J2358.3+3830_daily_bin743.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6392.00516645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.992       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0690       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3433       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4840       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0912       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.0509       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.696       1.0000         .10000E-03   10000.    
    13 'norm      '    .56245       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .94837       1.0000         .10000E-03   10000.    
    15 'norm      '    .24216       1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5172       1.0000         .10000E-03   10000.    
    18 'norm      '    1.5172       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1913       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.1635       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88507       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95704       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=   6391.851     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2552 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.982        26.207       -.29668E-07   -.13748E-03
   2  Prefactor     3.0662        25.187        .18885E-07    .32752E-04
   3  norm          .10000E-03    4.2052       -.10808E-06** at limit **
   4  Prefactor     9.3431        5.9829       -.82149E-07   -.69859E-03
   5  Prefactor     .10000E-03    2.5010       -.43140E-07** at limit **
   6  Prefactor     4.4839        3.0669        .23112E-06   -.94873E-04
   7  Prefactor     .10000E-03    29.401        .14713E-06** at limit **
   8  Prefactor     3.0880        25.915        .79461E-07    .12901E-04
   9  Prefactor     .10000E-03    21.036       -.23499E-06** at limit **
  10  norm          6.0507        3.1115        .51157E-08   -.26467E-04
  11  Prefactor     .10000E-03    3.3301       -.47486E-07** at limit **
  12  Prefactor     37.701        23.494       -.67775E-08    .90848E-04
  13  norm          .56275        1.3142        .13276E-06   -.61708E-04
  14  Prefactor     .92260        13.425        .34935E-05   -.20492E-03
  15  norm          .23111        9.9466       -.12222E-05    .34976E-03
  16  norm          .10000E-03    7.0193       -.29027E-07** at limit **
  17  Prefactor     1.5476        80.635       -.14337E-04   -.12424E-03
  18  norm          1.5214        3.1634        .20672E-07   -.20311E-03
  19  Prefactor     2.1901        18.076        .61812E-05   -.11745E-03
  20  Prefactor     .10000E-03    19.930        .21418E-06** at limit **
  21  Prefactor     .10000E-03    21.050       -.10852E-06** at limit **
  22  Prefactor     .10000E-03    69.572       -.83720E-06** at limit **
  23  Prefactor     2.1669        6.0236        .13067E-06   -.28804E-03
  24  Normalizat    .88510        .21381       -.84687E-07   -.15426E-03
  25  Prefactor     .95706        .99219E-01    .13527E-07   -.14379E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.9817
  Prefactor  = 3.06616
  norm       = 0.0001
  Prefactor  = 9.34308
  Prefactor  = 0.0001
  Prefactor  = 4.48386
  Prefactor  = 0.000100001
  Prefactor  = 3.08796
  Prefactor  = 0.000100001
  norm       = 6.05072
  Prefactor  = 0.0001
  Prefactor  = 37.7013
  norm       = 0.56275
  Prefactor  = 0.922604
  norm       = 0.23111
  norm       = 0.0001
  Prefactor  = 1.5476
  norm       = 1.52145
  Prefactor  = 2.19015
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.16692
  Normalizat = 0.885102
  Prefactor  = 0.957057
 **********
 **   18 **HESSE 
 **********

 FCN=   6391.851     FROM HESSE     STATUS=OK           429 CALLS     2981 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.982        26.097        .94424E-04   -1.4860    
   2  Prefactor     3.0662        24.905        .23155E-03   -1.5358    
   3  norm          .10000E-03    4.2078        .16011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.3431        5.9673        .13111E-03   -1.5097    
   5  Prefactor     .10000E-03    2.5123        .12346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.4839        3.0728        .55545E-03   -1.5284    
   7  Prefactor     .10000E-03    30.462        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.0880        25.864        .23067E-03   -1.5356    
   9  Prefactor     .10000E-03    21.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.0507        3.1112        .97791E-04   -1.5216    
  11  Prefactor     .10000E-03    3.3567        .14246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     37.701        23.480        .65278E-04   -1.4479    
  13  norm          .56275        1.2715        .13369E-03   -1.5558    
  14  Prefactor     .92260        34.937        .46827E-02   -1.5516    
  15  norm          .23111        44.405        .35168E-02   -1.5612    
  16  norm          .10000E-03    7.0447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.5476        102.85        .34701E-03   -1.5459    
  18  norm          1.5214        3.1021        .19046E-03   -1.5461    
  19  Prefactor     2.1901        21.987        .13901E-02   -1.5412    
  20  Prefactor     .10000E-03    19.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    69.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.1669        5.9934        .28002E-03   -1.5414    
  24  Normalizat    .88510        .24381        .33848E-03   -.96986    
  25  Prefactor     .95706        .11587        .15968E-03   -.94175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.24488e-09
Minuit parameter uncertainties:
  1  26.1133
  2  17.4869
  3  1.18182e-05
  4  5.96765
  5  2.59708e-06
  6  3.07287
  7  0.000252238
  8  17.884
  9  0.000344643
  10  3.11124
  11  4.57535e-06
  12  23.4855
  13  1.27152
  14  11.3614
  15  6.41048
  16  1.14006e-05
  17  25.2772
  18  3.10239
  19  13.8851
  20  0.000459485
  21  0.000310007
  22  0.000126184
  23  5.99501
  24  0.244112
  25  0.115898
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.000e-04  1.262e-04  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.571e-01  1.159e-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:  8.851e-01  2.441e-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.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/222983/likelihoodResults_431913601_432172801_4FGL_J2358.3+3830_daily_bin743.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) = 6391.85095557
delta logL = -6.82211084495e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6391.85088748
delta logL = -1.29442923935e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12122E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2218       1.0000          .0000       10.000    
     3 'Normalizat'    .88510       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95706       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=   6391.851     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      237 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2090.2        .90712E-02** at limit **
   2  Index         2.2359        6.4259        .50000       -.16976E-05
   3  Normalizat    .88510        .32151E-01    .76476E-01   -.18132E-03
   4  Prefactor     .95706        .15811E-01    .45728E-01   -.60722E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.23586
  Normalizat = 0.885105
  Prefactor  = 0.957056
 **********
 **   18 **HESSE 
 **********

 FCN=   6391.851     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      268 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7560.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2359        7.9424        .50000       -.58575    
   3  Normalizat    .88510        .58342E-01    .33848E-03   -.96986    
   4  Prefactor     .95706        .28743E-01    .15968E-03   -.94175    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.80473e-09
Minuit parameter uncertainties:
  1  0.00958014
  2  39.6359
  3  0.0583461
  4  0.0287437
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222983': 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) = 6391.85088732
delta logL = 2.39742803387e-08

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.000e-04  9.580e-03  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  2.236e+00  3.964e+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:  9.571e-01  2.874e-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:  8.851e-01  5.835e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/222983/cmap_HighResolution_431913601_432172801_4FGL_J2358.3+3830_daily_bin743.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.99e-03', job_status='DONE', photon_flux_upper_limit='7.87e-08', time_completed='2021-09-30 11:09:31.672273', job_id='222983', GAL2='0.96', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1633025371.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.40e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='743' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:09:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 222983: <4FGL_J2358.3+3830_daily_bin743> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin743> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 10:55:19 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 10:55:20 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:55:20 2021
Terminated at Thu Sep 30 11:09:32 2021
Results reported at Thu Sep 30 11:09:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin743 359.588 38.5097 431913601 432172801 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 :                                   668.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            853 sec.

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

