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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin805
RA = 358.931, Dec = -33.8607
tmin = 447984001, tmax = 448243201
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='194500', job_status='RUN', time_executed='2021-09-30 09:10:31.190405', time_epoch_executed='1633018231.19' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='805'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194500

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194500/ft1_4FGL_J2355.7-3351_daily_bin805.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194500/ft2_4FGL_J2355.7-3351_daily_bin805.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194500/ft1_4FGL_J2355.7-3351_daily_bin805.fits outfile=/scratch/kocevski/194500/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin805.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=447984001.0 tmax=448243201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.01
user 3.78
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/194500/ft2_4FGL_J2355.7-3351_daily_bin805.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/194500/ft2_4FGL_J2355.7-3351_daily_bin805.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/194500/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin805.fits evtable="EVENTS" outfile="/scratch/kocevski/194500/ft1_filtered_4FGL_J2355.7-3351_daily_bin805.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/194500/ft1_filtered_4FGL_J2355.7-3351_daily_bin805.fits" evtable="EVENTS" scfile=/scratch/kocevski/194500/ft2_4FGL_J2355.7-3351_daily_bin805.fits sctable="SC_DATA" outfile=/scratch/kocevski/194500/ltcube_447984001_448243201_4FGL_J2355.7-3351_daily_bin805.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/194500/ft2_4FGL_J2355.7-3351_daily_bin805.fits
.....................!
real 12.01
user 11.62
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194500/ft1_filtered_4FGL_J2355.7-3351_daily_bin805.fits evtable="EVENTS" scfile=/scratch/kocevski/194500/ft2_4FGL_J2355.7-3351_daily_bin805.fits sctable="SC_DATA" expcube=/scratch/kocevski/194500/ltcube_447984001_448243201_4FGL_J2355.7-3351_daily_bin805.fits outfile=/scratch/kocevski/194500/expmap_447984001_448243201_4FGL_J2355.7-3351_daily_bin805.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/194500/ltcube_447984001_448243201_4FGL_J2355.7-3351_daily_bin805.fits
.....................!
real 191.53
user 185.65
sys 5.51

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
Added 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J2355.7-3351 @ 358.931 -33.8607

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/194500/ft1_filtered_4FGL_J2355.7-3351_daily_bin805.fits scfile=/scratch/kocevski/194500/ft2_4FGL_J2355.7-3351_daily_bin805.fits outfile=/scratch/kocevski/194500/cmap_447984001_448243201_4FGL_J2355.7-3351_daily_bin805.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=358.931 yref=-33.8607 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/194500/ft1_filtered_4FGL_J2355.7-3351_daily_bin805.fits scfile=/scratch/kocevski/194500/ft2_4FGL_J2355.7-3351_daily_bin805.fits outfile=/scratch/kocevski/194500/cmap_HighResolution_447984001_448243201_4FGL_J2355.7-3351_daily_bin805.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=358.931 yref=-33.8607 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/194500/ft1_filtered_4FGL_J2355.7-3351_daily_bin805.fits evtable="EVENTS" scfile=/scratch/kocevski/194500/ft2_4FGL_J2355.7-3351_daily_bin805.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/194500/Model_4FGL_J2355.7-3351_daily_bin805.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 GAL_V02
Working on...
/scratch/kocevski/194500/ft1_filtered_4FGL_J2355.7-3351_daily_bin805.fits.....................!
real 43.42
user 42.03
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/194500/ft1_filtered_4FGL_J2355.7-3351_daily_bin805.fits', '/scratch/kocevski/194500/ft2_4FGL_J2355.7-3351_daily_bin805.fits', expMap='/scratch/kocevski/194500/expmap_447984001_448243201_4FGL_J2355.7-3351_daily_bin805.fits', expCube='/scratch/kocevski/194500/ltcube_447984001_448243201_4FGL_J2355.7-3351_daily_bin805.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/194500/Model_4FGL_J2355.7-3351_daily_bin805.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2355.7-3351'

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.680e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.580e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
552        Scale:  5.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/194500/ft1_filtered_4FGL_J2355.7-3351_daily_bin805.fits
Spacecraft file(s): /scratch/kocevski/194500/ft2_4FGL_J2355.7-3351_daily_bin805.fits
Exposure map: /scratch/kocevski/194500/expmap_447984001_448243201_4FGL_J2355.7-3351_daily_bin805.fits
Exposure cube: /scratch/kocevski/194500/ltcube_447984001_448243201_4FGL_J2355.7-3351_daily_bin805.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/194500/Model_4FGL_J2355.7-3351_daily_bin805.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) = 5653.68316053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11537E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2905       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.763       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2118       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.020       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.754       1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.392       1.0000         .10000E-03   10000.    
    13 'norm      '    .11652E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5624       1.0000         .10000E-03   10000.    
    15 'norm      '    .56679E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.984       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.437       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.8890       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .65520E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .81972       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0849       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5653.668     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2244 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.505       -.80413E-06** at limit **
   2  Prefactor     .10000E-03    1.8358       -.12170E-05** at limit **
   3  Prefactor     .10000E-03    5.4352       -.10213E-06** at limit **
   4  Prefactor     .10000E-03    24.820       -.23091E-04** at limit **
   5  Prefactor     .10000E-03    30.682       -.19207E-05** at limit **
   6  Prefactor     7.2911        6.6968        .27774E-06    .90876E-03
   7  Prefactor     23.749        35.833        .94946E-06    .20830E-03
   8  Prefactor     7.2093        8.9415        .24081E-06    .18541E-03
   9  norm          .10000E-03    3.1692       -.62268E-07** at limit **
  10  norm          14.021        8.6023        .71338E-07    .81571E-04
  11  Prefactor     25.784        32.664        .46263E-05    .37390E-04
  12  Prefactor     32.389        30.676        .18899E-06    .20103E-04
  13  norm          .10000E-03    2.7694        .28428E-05** at limit **
  14  Prefactor     2.5707        57.820        .21569E-05    .10249E-03
  15  norm          .10003E-03    2.3657        .15279E-05** at limit **
  16  Prefactor     22.051        55.285       -.55210E-05   -.20929E-04
  17  Prefactor     14.443        21.007       -.30899E-06   -.48445E-04
  18  Prefactor     8.8922        5.1619       -.16771E-06   -.57573E-03
  19  Prefactor     .10002E-03    118.89       -.52323E-06** at limit **
  20  Normalizat    .82009        .17212       -.23886E-05    .41496E-03
  21  Prefactor     1.0844        .18689        .31171E-05    .75050E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 7.29111
  Prefactor  = 23.7493
  Prefactor  = 7.20931
  norm       = 0.0001
  norm       = 14.0209
  Prefactor  = 25.7839
  Prefactor  = 32.3888
  norm       = 0.0001
  Prefactor  = 2.57067
  norm       = 0.000100028
  Prefactor  = 22.0512
  Prefactor  = 14.443
  Prefactor  = 8.89218
  Prefactor  = 0.000100016
  Normalizat = 0.820092
  Prefactor  = 1.08444
 **********
 **   18 **HESSE 
 **********

 FCN=   5653.668     FROM HESSE     STATUS=OK           321 CALLS     2565 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.6361        .19501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.4379        .17120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.541        .36501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.2911        6.6884        .14855E-03   -1.5168    
   7  Prefactor     23.749        35.824        .82172E-04   -1.4733    
   8  Prefactor     7.2093        8.9492        .14937E-03   -1.5171    
   9  norm          .10000E-03    3.2047        .13072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.021        8.5950        .10697E-03   -1.4959    
  11  Prefactor     25.784        33.286        .78937E-04   -1.4692    
  12  Prefactor     32.389        30.677        .70405E-04   -1.4569    
  13  norm          .10000E-03    6.5700        .20599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.5707        57.840        .25503E-03   -1.5387    
  15  norm          .10003E-03    13.290        .20259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.051        55.279        .85427E-04   -1.4768    
  17  Prefactor     14.443        21.005        .10541E-03   -1.4948    
  18  Prefactor     8.8922        5.1722        .12428E-03   -1.5111    
  19  Prefactor     .10002E-03    120.93        .21017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .82009        .20060        .23117E-03   -.99328    
  21  Prefactor     1.0844        .22087        .23725E-03   -.89965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04089e-09
Minuit parameter uncertainties:
  1  0.000198724
  2  7.47313e-05
  3  1.63004e-05
  4  0.000530323
  5  0.000189114
  6  6.68907
  7  35.8563
  8  8.9509
  9  9.6557e-07
  10  8.59573
  11  33.3095
  12  30.692
  13  3.29594e-05
  14  24.4138
  15  0.00121791
  16  55.4073
  17  21.0158
  18  5.1725
  19  0.00277184
  20  0.200778
  21  0.22106
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  8.892e+00  5.173e+00  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.580e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
552        Scale:  5.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.084e+00  2.211e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  8.201e-01  2.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.39
Ra Dec: 358.931 -33.861
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 5.30e-08 +/- 3.08e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 8.24e-06

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) = 5653.64680243
delta logL = 0.0214529231635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5653.64046732
delta logL = 0.0277880260774

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5653.640     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5042        148.17        .32505E-02    .14887E-03
   2  Index         2.4325        5.9330        .16535        .77388E-04
   3  Normalizat    .82819        .10547        .43979E-01    .33778E-03
   4  Prefactor     1.0778        .10127        .38508E-01   -.19737E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.50424
  Index      = 2.43248
  Normalizat = 0.828193
  Prefactor  = 1.0778
 **********
 **   18 **HESSE 
 **********

 FCN=   5653.640     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5042        6.0705        .13002E-03   -1.5091    
   2  Index         2.4325        .62284        .81311E-02   -.53926    
   3  Normalizat    .82819        .19137        .11509E-02   -.99031    
   4  Prefactor     1.0778        .22021        .23786E-03   -.90179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91396e-10
Minuit parameter uncertainties:
  1  6.07084
  2  0.625044
  3  0.191523
  4  0.220397
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194500': 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) = 5653.64046651
delta logL = 0.027788843493

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  9.504e+00  6.071e+00  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.432e+00  6.250e-01  0.000e+00  1.000e+01 (-1.000e+00)
552        Scale:  5.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.078e+00  2.204e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  8.282e-01  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.42
Ra Dec: 358.931 -33.861
Photon Index (Free Index): 2.43 +/- 0.63
Photon Flux (Free Index): 4.82e-08 +/- 3.54e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.04e-05

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/194500/cmap_HighResolution_447984001_448243201_4FGL_J2355.7-3351_daily_bin805.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.30e-08', energy_flux2='1.51e-05', photon_flux_error='3.08e-08', dlogl='2.78e-02', energy_flux='1.42e-05', photon_flux2='4.82e-08', job_status='DONE', time_completed='2021-09-30 09:19:43.151277', photon_index_error2='0.63', photon_index2='2.43', ts='5.39', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.04e-05', EG='0.82', time_epoch_completed='1633018783.15', return_code='0', job_id='194500', GAL2='1.08', EG2='0.83', return_code2='0', energy_flux_error='8.24e-06', photon_flux_error2='3.54e-08', ts2='5.42', photon_index='2.58' WHERE bin_id='805' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:19:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 194500: <4FGL_J2355.7-3351_daily_bin805> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin805> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 09:10:16 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 09:10:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 09:10:18 2021
Terminated at Thu Sep 30 09:19:43 2021
Results reported at Thu Sep 30 09:19:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin805 358.931 -33.8607 447984001 448243201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2355.7-3351 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   548.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   565 sec.
    Turnaround time :                            567 sec.

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

