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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin492
RA = 359.588, Dec = 38.5097
tmin = 366854401, tmax = 367113601
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='221756', job_status='RUN', time_executed='2021-09-30 10:50:53.339356', time_epoch_executed='1633024253.34' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='492'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221756

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221756/ft1_4FGL_J2358.3+3830_daily_bin492.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221756/ft2_4FGL_J2358.3+3830_daily_bin492.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221756/ft1_4FGL_J2358.3+3830_daily_bin492.fits outfile=/scratch/kocevski/221756/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin492.fits ra=359.588 dec=38.5097 rad=12.0 tmin=366854401.0 tmax=367113601.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.38
user 5.12
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/221756/ft2_4FGL_J2358.3+3830_daily_bin492.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/221756/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin492.fits evtable="EVENTS" outfile="/scratch/kocevski/221756/ft1_filtered_4FGL_J2358.3+3830_daily_bin492.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.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221756/ft1_filtered_4FGL_J2358.3+3830_daily_bin492.fits evtable="EVENTS" scfile=/scratch/kocevski/221756/ft2_4FGL_J2358.3+3830_daily_bin492.fits sctable="SC_DATA" expcube=/scratch/kocevski/221756/ltcube_366854401_367113601_4FGL_J2358.3+3830_daily_bin492.fits outfile=/scratch/kocevski/221756/expmap_366854401_367113601_4FGL_J2358.3+3830_daily_bin492.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/221756/ltcube_366854401_367113601_4FGL_J2358.3+3830_daily_bin492.fits
.....................!
real 189.86
user 185.16
sys 4.33

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/221756/ft1_filtered_4FGL_J2358.3+3830_daily_bin492.fits scfile=/scratch/kocevski/221756/ft2_4FGL_J2358.3+3830_daily_bin492.fits outfile=/scratch/kocevski/221756/cmap_366854401_367113601_4FGL_J2358.3+3830_daily_bin492.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/221756/ft1_filtered_4FGL_J2358.3+3830_daily_bin492.fits scfile=/scratch/kocevski/221756/ft2_4FGL_J2358.3+3830_daily_bin492.fits outfile=/scratch/kocevski/221756/cmap_HighResolution_366854401_367113601_4FGL_J2358.3+3830_daily_bin492.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.821       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.9953       1.0000         .10000E-03   10000.    
     3 'norm      '    16.365       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23950E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .97410       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .58861E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.003       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7853       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1243       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3814       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25380       1.0000         .10000E-03   10000.    
    15 'norm      '    8.0809       1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.160       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.955       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.3189       1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.978       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2112       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85566       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=   7288.918     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2960 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.827        43.558        .82682E-05   -.47952E-04
   2  Prefactor     3.9912        43.690        .11372E-04   -.66817E-04
   3  norm          16.367        14.202        .12262E-04   -.42349E-04
   4  Prefactor     .10000E-03    1.6681       -.10566E-06** at limit **
   5  Prefactor     .72493E-01    4.3651        .52007E-06   -.16905E-03
   6  Prefactor     .97141        2.2313       -.80048E-06   -.22098E-02
   7  Prefactor     .10040E-03    13.370        .96175E-06** at limit **
   8  Prefactor     21.001        27.265        .26635E-05   -.27825E-04
   9  Prefactor     5.7909        28.158        .10458E-05   -.19363E-04
  10  norm          1.1244        1.1677        .32218E-07    .49104E-04
  11  Prefactor     .10000E-03    5.7676        .34262E-07** at limit **
  12  Prefactor     .10000E-03    14.604        .74028E-08** at limit **
  13  norm          1.3819        1.3346        .62924E-07   -.61245E-03
  14  Prefactor     .30400        7.6816        .23369E-05   -.68475E-03
  15  norm          8.0830        4.9580        .22112E-06   -.85199E-04
  16  norm          .10000E-03    6.7579        .55360E-08** at limit **
  17  Prefactor     .10000E-03    8.1726        .18234E-07** at limit **
  18  norm          .10000E-03    .85105        .13698E-07** at limit **
  19  Prefactor     13.161        12.876       -.69058E-05   -.47664E-05
  20  Prefactor     19.930        45.736       -.22258E-05   -.21769E-04
  21  Prefactor     7.3163        49.127       -.70580E-05   -.26800E-04
  22  Prefactor     21.980        25.908        .13714E-05   -.15928E-04
  23  Prefactor     .10000E-03    1.5704       -.93859E-07** at limit **
  24  Normalizat    1.2106        .22118       -.28500E-05   -.36135E-03
  25  Prefactor     .85567        .96946E-01   -.34919E-06   -.73190E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.8274
  Prefactor  = 3.99116
  norm       = 16.3674
  Prefactor  = 0.0001
  Prefactor  = 0.0724926
  Prefactor  = 0.971408
  Prefactor  = 0.000100398
  Prefactor  = 21.001
  Prefactor  = 5.79088
  norm       = 1.12436
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.38188
  Prefactor  = 0.304003
  norm       = 8.08304
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.1613
  Prefactor  = 19.9304
  Prefactor  = 7.31626
  Prefactor  = 21.9803
  Prefactor  = 0.0001
  Normalizat = 1.21061
  Prefactor  = 0.855667
 **********
 **   18 **HESSE 
 **********

 FCN=   7288.918     FROM HESSE     STATUS=OK           451 CALLS     3411 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.827        42.617        .11187E-03   -1.4992    
   2  Prefactor     3.9912        41.536        .20177E-03   -1.5308    
   3  norm          16.367        14.118        .99007E-04   -1.4899    
   4  Prefactor     .10000E-03    1.6724        .10769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .72493E-01    10.540        .52744E-01   -1.5654    
   6  Prefactor     .97141        1.8566        .17980E-02   -1.5511    
   7  Prefactor     .10040E-03    16.837        .88562E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.001        27.432        .87398E-04   -1.4791    
   9  Prefactor     5.7909        28.114        .16698E-03   -1.5227    
  10  norm          1.1244        1.1682        .44204E-04   -1.5496    
  11  Prefactor     .10000E-03    5.8884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3819        1.3257        .92581E-04   -1.5473    
  14  Prefactor     .30400        120.80        .43642E-02   -1.5598    
  15  norm          8.0830        4.9521        .14104E-03   -1.5139    
  16  norm          .10000E-03    6.8019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.2179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .85424        .76883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.161        12.857        .11042E-03   -1.4982    
  20  Prefactor     19.930        45.755        .89661E-04   -1.4815    
  21  Prefactor     7.3163        49.875        .14826E-03   -1.5167    
  22  Prefactor     21.980        25.906        .85438E-04   -1.4770    
  23  Prefactor     .10000E-03    1.5722        .10448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2106        .26753        .30911E-03   -.86276    
  25  Prefactor     .85567        .11578        .17129E-03   -.97708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12806e-08
Minuit parameter uncertainties:
  1  42.718
  2  25.7737
  3  14.1212
  4  1.34603e-05
  5  1.74732
  6  1.85672
  7  0.00517974
  8  27.4488
  9  25.538
  10  1.16821
  11  9.5116e-06
  12  7.1863e-06
  13  1.32577
  14  12.1429
  15  4.95238
  16  5.0755e-06
  17  1.55189e-05
  18  2.46215e-07
  19  12.8593
  20  45.8359
  21  38.2504
  22  25.9191
  23  1.14829e-05
  24  0.267833
  25  0.115808
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  2.198e+01  2.592e+01  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.557e-01  1.158e-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.211e+00  2.678e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.88
Ra Dec: 359.588 38.510
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 1.47e-08 +/- 1.73e-08
Energy Flux (Fixed Index): 6.93e-06 +/- 8.17e-06

TS (Fixed Index): 1.88
Ra Dec: 359.588 38.510
Photon Flux Upper Limit: 7.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/221756/likelihoodResults_366854401_367113601_4FGL_J2358.3+3830_daily_bin492.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): 0
logL (Free Index) = 7288.25671081
delta logL = 0.661216493288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7288.25627908
delta logL = 0.661648216782

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.864       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3394       1.0000          .0000       10.000    
     3 'Normalizat'    1.2188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85387       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7288.256     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      306 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.860        42.825        .64294E-04   -.13191E-04
   2  Index         1.3394        .65472        .12369E-01    .27501E-05
   3  Normalizat    1.2188        .23668        .30821E-03   -.47583E-05
   4  Prefactor     .85386        .11308        .17142E-03   -.30640E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.8602
  Index      = 1.33941
  Normalizat = 1.21882
  Prefactor  = 0.853857
 **********
 **   18 **HESSE 
 **********

 FCN=   7288.256     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.860        43.122        .12859E-04   -1.4460    
   2  Index         1.3394        .65940        .49476E-03   -.82143    
   3  Normalizat    1.2188        .23690        .12328E-04   -.86023    
   4  Prefactor     .85386        .11318        .68568E-05   -.97773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14786e-12
Minuit parameter uncertainties:
  1  43.1562
  2  0.663595
  3  0.237107
  4  0.11321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221756': 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): 0
logL (Free Index) = 7288.25627906
delta logL = 0.661648239141

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  3.886e+01  4.316e+01  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  1.339e+00  6.636e-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.539e-01  1.132e-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.219e+00  2.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.21
Ra Dec: 359.588 38.510
Photon Index (Free Index): 1.34 +/- 0.66
Photon Flux (Free Index): 6.28e-09 +/- 8.49e-09
Energy Flux (Free Index): 3.39e-05 +/- 5.88e-05

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/221756/cmap_HighResolution_366854401_367113601_4FGL_J2358.3+3830_daily_bin492.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.47e-03', comment='SUCCESS', photon_flux='1.47e-08', energy_flux2='3.39e-05', photon_flux_error='1.73e-08', dlogl='6.62e-01', energy_flux='6.93e-06', photon_flux2='6.28e-09', job_status='DONE', time_completed='2021-09-30 11:03:51.689984', photon_index_error2='0.66', photon_index2='1.34', ts='1.88', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='7.20e-08', energy_flux_error2='5.88e-05', EG='1.21', time_epoch_completed='1633025031.69', return_code='0', job_id='221756', GAL2='0.85', EG2='1.22', return_code2='0', energy_flux_error='8.17e-06', photon_flux_error2='8.49e-09', ts2='3.21', photon_index='2.17' WHERE bin_id='492' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:03:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 221756: <4FGL_J2358.3+3830_daily_bin492> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin492> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 10:50:40 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 10:50:42 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:50:42 2021
Terminated at Thu Sep 30 11:03:52 2021
Results reported at Thu Sep 30 11:03:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin492 359.588 38.5097 366854401 367113601 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 :                                   772.24 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             304.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            792 sec.

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

