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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin83
RA = 359.588, Dec = 38.5097
tmin = 260841601, tmax = 261100801
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='219084', job_status='RUN', time_executed='2021-09-30 10:43:54.783081', time_epoch_executed='1633023834.78' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='83'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/219084

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/219084/ft1_4FGL_J2358.3+3830_daily_bin83.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/219084/ft2_4FGL_J2358.3+3830_daily_bin83.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/219084/ft1_4FGL_J2358.3+3830_daily_bin83.fits outfile=/scratch/kocevski/219084/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin83.fits ra=359.588 dec=38.5097 rad=12.0 tmin=260841601.0 tmax=261100801.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.59
user 1.39
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/219084/ft2_4FGL_J2358.3+3830_daily_bin83.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/219084/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin83.fits evtable="EVENTS" outfile="/scratch/kocevski/219084/ft1_filtered_4FGL_J2358.3+3830_daily_bin83.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/219084/ft1_filtered_4FGL_J2358.3+3830_daily_bin83.fits" evtable="EVENTS" scfile=/scratch/kocevski/219084/ft2_4FGL_J2358.3+3830_daily_bin83.fits sctable="SC_DATA" outfile=/scratch/kocevski/219084/ltcube_260841601_261100801_4FGL_J2358.3+3830_daily_bin83.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/219084/ft2_4FGL_J2358.3+3830_daily_bin83.fits
.....................!
real 12.41
user 12.05
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/219084/ft1_filtered_4FGL_J2358.3+3830_daily_bin83.fits evtable="EVENTS" scfile=/scratch/kocevski/219084/ft2_4FGL_J2358.3+3830_daily_bin83.fits sctable="SC_DATA" expcube=/scratch/kocevski/219084/ltcube_260841601_261100801_4FGL_J2358.3+3830_daily_bin83.fits outfile=/scratch/kocevski/219084/expmap_260841601_261100801_4FGL_J2358.3+3830_daily_bin83.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/219084/ltcube_260841601_261100801_4FGL_J2358.3+3830_daily_bin83.fits
.....................!
real 191.13
user 185.51
sys 5.32

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/219084/ft1_filtered_4FGL_J2358.3+3830_daily_bin83.fits scfile=/scratch/kocevski/219084/ft2_4FGL_J2358.3+3830_daily_bin83.fits outfile=/scratch/kocevski/219084/cmap_260841601_261100801_4FGL_J2358.3+3830_daily_bin83.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.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8944       1.0000         .10000E-03   10000.    
     2 'Prefactor '    61.060       1.0000         .10000E-03   10000.    
     3 'norm      '    14.329       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.0014       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10387E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.479       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.278       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.908       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4168       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.9929       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.4959       1.0000         .10000E-03   10000.    
    16 'norm      '    3.9357       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.5881       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.055       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.827       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3104       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82820       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=   7216.386     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2868 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8792        52.575       -.12333E-04   -.19467E-03
   2  Prefactor     61.062        38.027        .11734E-05    .59952E-05
   3  norm          14.331        16.925        .26885E-06    .30030E-04
   4  Prefactor     .10000E-03    3.7231        .12945E-06** at limit **
   5  Prefactor     6.0047        6.6288        .21837E-05   -.11200E-02
   6  Prefactor     .10000E-03    3.3648        .53375E-07** at limit **
   7  Prefactor     11.481        23.090        .15106E-05    .87293E-04
   8  Prefactor     14.282        25.198        .16110E-05    .94873E-04
   9  Prefactor     20.910        26.290        .85470E-06    .82212E-04
  10  norm          1.4170        2.3246        .22721E-06   -.16271E-03
  11  Prefactor     .10000E-03    3.9347        .79825E-07** at limit **
  12  Prefactor     .10000E-03    9.7901       -.28653E-06** at limit **
  13  norm          3.9933        1.7558        .59605E-07    .52258E-04
  14  Prefactor     .10000E-03    14.331       -.27026E-05** at limit **
  15  norm          2.4958        3.8030       -.54344E-06   -.59083E-03
  16  norm          3.9344        6.7209        .22948E-05   -.76259E-03
  17  Prefactor     .10000E-03    20.588        .25364E-06** at limit **
  18  norm          6.5880        3.1269        .84743E-08    .13938E-03
  19  Prefactor     .10000E-03    12.103        .17586E-05** at limit **
  20  Prefactor     .10000E-03    22.811        .22499E-05** at limit **
  21  Prefactor     12.060        30.230        .25607E-05    .99947E-04
  22  Prefactor     .10000E-03    30.755       -.17677E-05** at limit **
  23  Prefactor     12.828        8.4489        .35716E-07    .11051E-05
  24  Normalizat    1.3097        .23118       -.20821E-05    .91354E-04
  25  Prefactor     .82850        .10095        .44385E-06   -.98450E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.87923
  Prefactor  = 61.0622
  norm       = 14.3308
  Prefactor  = 0.0001
  Prefactor  = 6.00475
  Prefactor  = 0.0001
  Prefactor  = 11.4813
  Prefactor  = 14.282
  Prefactor  = 20.9102
  norm       = 1.41702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.99327
  Prefactor  = 0.000100002
  norm       = 2.49584
  norm       = 3.93439
  Prefactor  = 0.0001
  norm       = 6.58803
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 12.0597
  Prefactor  = 0.000100001
  Prefactor  = 12.8284
  Normalizat = 1.30974
  Prefactor  = 0.828496
 **********
 **   18 **HESSE 
 **********

 FCN=   7216.386     FROM HESSE     STATUS=OK           431 CALLS     3299 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8792        58.365        .16541E-03   -1.5223    
   2  Prefactor     61.062        38.030        .51348E-04   -1.4144    
   3  norm          14.331        16.929        .10581E-03   -1.4951    
   4  Prefactor     .10000E-03    3.7360        .16002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.0047        7.0566        .81952E-03   -1.5218    
   6  Prefactor     .10000E-03    3.4479        .30309E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.481        23.036        .11824E-03   -1.5030    
   8  Prefactor     14.282        25.309        .10600E-03   -1.4952    
   9  Prefactor     20.910        26.307        .87596E-04   -1.4793    
  10  norm          1.4170        2.2968        .16044E-03   -1.5470    
  11  Prefactor     .10000E-03    4.0076        .16453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.8004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.9933        1.7552        .71722E-04   -1.5308    
  14  Prefactor     .10000E-03    14.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4958        3.8333        .20059E-03   -1.5392    
  16  norm          3.9344        7.0383        .10167E-02   -1.5311    
  17  Prefactor     .10000E-03    20.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.5880        3.1281        .10013E-03   -1.5195    
  19  Prefactor     .10000E-03    12.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.060        30.443        .11538E-03   -1.5013    
  22  Prefactor     .10000E-03    30.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.828        8.4524        .11184E-03   -1.4991    
  24  Normalizat    1.3097        .26825        .32202E-03   -.83276    
  25  Prefactor     .82850        .11739        .18320E-03   -.98686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47719e-09
Minuit parameter uncertainties:
  1  37.0948
  2  38.0448
  3  16.9342
  4  6.74709e-06
  5  7.05754
  6  1.51055e-05
  7  23.0535
  8  25.3276
  9  26.3216
  10  2.29692
  11  1.13586e-06
  12  2.97117e-05
  13  1.75524
  14  0.000318781
  15  3.8337
  16  7.03977
  17  0.000144717
  18  3.12823
  19  0.000204744
  20  0.000379819
  21  30.4821
  22  0.000338354
  23  8.45322
  24  0.268538
  25  0.117427
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.000e-04  3.384e-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:  8.285e-01  1.174e-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.310e+00  2.685e-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.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/219084/likelihoodResults_260841601_261100801_4FGL_J2358.3+3830_daily_bin83.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) = 7216.3856897
delta logL = -0.00015423817058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7216.38553585
delta logL = -3.90759851143e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11386E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1064       1.0000          .0000       10.000    
     3 'Normalizat'    1.3098       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82848       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=   7216.386     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      201 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6237.2        .90712E-02** at limit **
   2  Index         2.1016        7.7599        .50000        .12363E-05
   3  Normalizat    1.3097        .60884E-01    .72773E-01   -.21315E-04
   4  Prefactor     .82850        .28422E-01    .44087E-01   -.12399E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.1016
  Normalizat = 1.30974
  Prefactor  = 0.828497
 **********
 **   18 **HESSE 
 **********

 FCN=   7216.386     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      234 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7139.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1016        5.4563        .50000       -.61833    
   3  Normalizat    1.3097        .99823E-01    .32202E-03   -.83276    
   4  Prefactor     .82850        .46649E-01    .18320E-03   -.98686    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.37462e-08
Minuit parameter uncertainties:
  1  0.00635843
  2  52.21
  3  0.0998378
  4  0.0466515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/219084': 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) = 7216.38553544
delta logL = 2.30575096793e-08

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.000e-04  6.358e-03  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  2.102e+00  5.221e+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:  8.285e-01  4.665e-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.310e+00  9.984e-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/219084/cmap_HighResolution_260841601_261100801_4FGL_J2358.3+3830_daily_bin83.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.95e-03', job_status='DONE', photon_flux_upper_limit='7.83e-08', time_completed='2021-09-30 10:55:55.750241', job_id='219084', GAL2='0.83', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1633024555.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.31e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='83' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 10:55:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 219084: <4FGL_J2358.3+3830_daily_bin83> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin83> 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) <bullet0294>, 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:56 2021
Results reported at Thu Sep 30 10:55:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin83 359.588 38.5097 260841601 261100801 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 :                                 1093 MB
    Average Memory :                             288.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

