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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin599
RA = 358.931, Dec = -33.8607
tmin = 394588801, tmax = 394848001
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='193197', job_status='RUN', time_executed='2021-09-30 09:05:51.959964', time_epoch_executed='1633017951.96' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/193197

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/193197/ft1_4FGL_J2355.7-3351_daily_bin599.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/193197/ft2_4FGL_J2355.7-3351_daily_bin599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/193197/ft1_4FGL_J2355.7-3351_daily_bin599.fits outfile=/scratch/kocevski/193197/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin599.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=394588801.0 tmax=394848001.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.55
user 4.28
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/193197/ft2_4FGL_J2355.7-3351_daily_bin599.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/193197/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin599.fits evtable="EVENTS" outfile="/scratch/kocevski/193197/ft1_filtered_4FGL_J2355.7-3351_daily_bin599.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/193197/ft1_filtered_4FGL_J2355.7-3351_daily_bin599.fits" evtable="EVENTS" scfile=/scratch/kocevski/193197/ft2_4FGL_J2355.7-3351_daily_bin599.fits sctable="SC_DATA" outfile=/scratch/kocevski/193197/ltcube_394588801_394848001_4FGL_J2355.7-3351_daily_bin599.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/193197/ft2_4FGL_J2355.7-3351_daily_bin599.fits
.....................!
real 11.82
user 11.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/193197/ft1_filtered_4FGL_J2355.7-3351_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/193197/ft2_4FGL_J2355.7-3351_daily_bin599.fits sctable="SC_DATA" expcube=/scratch/kocevski/193197/ltcube_394588801_394848001_4FGL_J2355.7-3351_daily_bin599.fits outfile=/scratch/kocevski/193197/expmap_394588801_394848001_4FGL_J2355.7-3351_daily_bin599.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/193197/ltcube_394588801_394848001_4FGL_J2355.7-3351_daily_bin599.fits
.....................!
real 190.42
user 185.38
sys 4.66

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/193197/ft1_filtered_4FGL_J2355.7-3351_daily_bin599.fits scfile=/scratch/kocevski/193197/ft2_4FGL_J2355.7-3351_daily_bin599.fits outfile=/scratch/kocevski/193197/cmap_394588801_394848001_4FGL_J2355.7-3351_daily_bin599.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/193197/ft1_filtered_4FGL_J2355.7-3351_daily_bin599.fits scfile=/scratch/kocevski/193197/ft2_4FGL_J2355.7-3351_daily_bin599.fits outfile=/scratch/kocevski/193197/cmap_HighResolution_394588801_394848001_4FGL_J2355.7-3351_daily_bin599.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/193197/ft1_filtered_4FGL_J2355.7-3351_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/193197/ft2_4FGL_J2355.7-3351_daily_bin599.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/193197/Model_4FGL_J2355.7-3351_daily_bin599.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/193197/ft1_filtered_4FGL_J2355.7-3351_daily_bin599.fits.....................!
real 32.45
user 31.15
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/193197/ft1_filtered_4FGL_J2355.7-3351_daily_bin599.fits', '/scratch/kocevski/193197/ft2_4FGL_J2355.7-3351_daily_bin599.fits', expMap='/scratch/kocevski/193197/expmap_394588801_394848001_4FGL_J2355.7-3351_daily_bin599.fits', expCube='/scratch/kocevski/193197/ltcube_394588801_394848001_4FGL_J2355.7-3351_daily_bin599.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/193197/Model_4FGL_J2355.7-3351_daily_bin599.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/193197/ft1_filtered_4FGL_J2355.7-3351_daily_bin599.fits
Spacecraft file(s): /scratch/kocevski/193197/ft2_4FGL_J2355.7-3351_daily_bin599.fits
Exposure map: /scratch/kocevski/193197/expmap_394588801_394848001_4FGL_J2355.7-3351_daily_bin599.fits
Exposure cube: /scratch/kocevski/193197/ltcube_394588801_394848001_4FGL_J2355.7-3351_daily_bin599.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/193197/Model_4FGL_J2355.7-3351_daily_bin599.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) = 3619.3353134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.883       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.281       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.164       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.326       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5155       1.0000         .10000E-03   10000.    
     9 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    59.472       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11829E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.3671       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .23594E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .49179       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.4008       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=   3619.293     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2196 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.875        78.253       -.11483E-04    .19222E-04
   2  Prefactor     11.281        5.7175       -.12310E-05    .14199E-03
   3  Prefactor     .10000E-03    10.245        .54412E-06** at limit **
   4  Prefactor     27.164        15.810       -.42409E-07    .69106E-05
   5  Prefactor     .10000E-03    20.283       -.23388E-05** at limit **
   6  Prefactor     .10000E-03    3.5385        .18519E-06** at limit **
   7  Prefactor     31.329        31.082        .20248E-05    .98693E-05
   8  Prefactor     5.5157        10.958       -.58224E-06   -.95598E-04
   9  norm          .10000E-03    3.5546        .13306E-06** at limit **
  10  norm          .10000E-03    4.3668       -.24737E-06** at limit **
  11  Prefactor     59.474        45.285        .18025E-05    .13108E-04
  12  Prefactor     .10000E-03    24.254        .18327E-05** at limit **
  13  norm          .10000E-03    6.6958        .13118E-06** at limit **
  14  Prefactor     .10000E-03    60.397        .15416E-04** at limit **
  15  norm          2.3654        3.9959       -.29991E-06   -.22454E-03
  16  Prefactor     .10000E-03    96.280       -.13044E-04** at limit **
  17  Prefactor     .10000E-03    25.234       -.82955E-05** at limit **
  18  Prefactor     .10091E-03    5.6672       -.15608E-05** at limit **
  19  Prefactor     .10000E-03    23.301        .91442E-05** at limit **
  20  Normalizat    .49190        .22820        .33489E-05    .91294E-04
  21  Prefactor     1.4006        .24570       -.16639E-05    .20500E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.8746
  Prefactor  = 11.2813
  Prefactor  = 0.0001
  Prefactor  = 27.1637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.3293
  Prefactor  = 5.51572
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 59.4738
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.36541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100908
  Prefactor  = 0.0001
  Normalizat = 0.491898
  Prefactor  = 1.40063
 **********
 **   18 **HESSE 
 **********

 FCN=   3619.293     FROM HESSE     STATUS=OK           311 CALLS     2507 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.875        78.252        .65992E-04   -1.4493    
   2  Prefactor     11.281        5.7205        .97139E-04   -1.5036    
   3  Prefactor     .10000E-03    10.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.164        15.805        .76865E-04   -1.4665    
   5  Prefactor     .10000E-03    20.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5443        .11029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     31.329        31.055        .71589E-04   -1.4588    
   8  Prefactor     5.5157        10.947        .17108E-03   -1.5238    
   9  norm          .10000E-03    3.5700        .11072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.3767        .12278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     59.474        45.071        .52025E-04   -1.4164    
  12  Prefactor     .10000E-03    24.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.8442        .30228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    60.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.3654        3.9713        .14899E-03   -1.5400    
  16  Prefactor     .10000E-03    96.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10091E-03    58.149        .26009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .49190        .26210        .30305E-03   -1.1279    
  21  Prefactor     1.4006        .29080        .21633E-03   -.80362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5332e-08
Minuit parameter uncertainties:
  1  78.4715
  2  5.72077
  3  1.61017e-05
  4  15.8079
  5  1.54768e-05
  6  1.31892e-05
  7  31.0705
  8  10.9512
  9  6.69346e-06
  10  2.06262e-06
  11  45.0967
  12  1.90073e-06
  13  4.04646e-05
  14  0.000109004
  15  3.97171
  16  1.6214e-05
  17  1.24487e-05
  18  0.0145443
  19  3.58277e-05
  20  0.262758
  21  0.291144
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.009e-04  1.454e-02  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.401e+00  2.911e-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:  4.919e-01  2.628e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 358.931 -33.861
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/193197/likelihoodResults_394588801_394848001_4FGL_J2355.7-3351_daily_bin599.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) = 3619.29310771
delta logL = -8.13513743196e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3619.29291241
delta logL = 0.000113947125101

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32809E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7879       1.0000          .0000       10.000    
     3 'Normalizat'    .49187       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4007       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=   3617.803     FROM MIGRAD    STATUS=CONVERGED    131 CALLS      313 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29105E-01    .79257        .16200E-02    .10540E-01
   2  Index         6.8906        7.8754        .12408       -.93778E-04
   3  Normalizat    .34598        .16637        .81100E-01    .29461E-03
   4  Prefactor     1.5198        .18879        .47277E-01    .15479E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0291053
  Index      = 6.89056
  Normalizat = 0.345978
  Prefactor  = 1.51978
 **********
 **   18 **HESSE 
 **********

 FCN=   3617.803     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      344 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29105E-01    .79031        .72529E-05   -1.5742    
   2  Index         6.8906        8.0235        .51618E-02    .38776    
   3  Normalizat    .34598        .23488        .35913E-03   -1.2019    
   4  Prefactor     1.5198        .26605        .20897E-03   -.76987    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.20659e-09
Minuit parameter uncertainties:
  1  0.302812
  2  6.33751
  3  0.235552
  4  0.266293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/193197': 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) = 3617.8029628
delta logL = 1.49006355941

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  2.911e-02  3.028e-01  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  6.891e+00  6.338e+00  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.520e+00  2.663e-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:  3.460e-01  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.29
Ra Dec: 358.931 -33.861
Photon Index (Free Index): 6.89 +/- 6.34
Photon Flux (Free Index): 9.36e-08 +/- 1.89e-06
Energy Flux (Free Index): 1.12e-05 +/- 2.25e-04

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/193197/cmap_HighResolution_394588801_394848001_4FGL_J2355.7-3351_daily_bin599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.94e-03', comment='SUCCESS', energy_flux2='1.12e-05', dlogl='1.49e+00', photon_flux2='9.36e-08', job_status='DONE', time_completed='2021-09-30 09:14:08.854783', photon_index_error2='6.34', photon_index2='6.89', ts='-0.00', fit_tolerance='1e-08', GAL='1.40', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='2.25e-04', EG='0.49', time_epoch_completed='1633018448.85', return_code='0', job_id='193197', GAL2='1.52', EG2='0.35', return_code2='102', photon_flux_error2='1.89e-06', ts2='3.29', photon_index='2.58' WHERE bin_id='599' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:14:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 193197: <4FGL_J2355.7-3351_daily_bin599> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin599> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 09:05:27 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 09:05:28 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:05:28 2021
Terminated at Thu Sep 30 09:14:09 2021
Results reported at Thu Sep 30 09:14:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin599 358.931 -33.8607 394588801 394848001 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 :                                   491.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             378.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   521 sec.
    Turnaround time :                            522 sec.

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

