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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin709
RA = 358.931, Dec = -33.8607
tmin = 423100801, tmax = 423360001
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='193360', job_status='RUN', time_executed='2021-09-30 09:09:39.327679', time_epoch_executed='1633018179.33' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/193360

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/193360/ft1_4FGL_J2355.7-3351_daily_bin709.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/193360/ft2_4FGL_J2355.7-3351_daily_bin709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/193360/ft1_4FGL_J2355.7-3351_daily_bin709.fits outfile=/scratch/kocevski/193360/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin709.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=423100801.0 tmax=423360001.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.97
user 4.74
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/193360/ft1_filtered_4FGL_J2355.7-3351_daily_bin709.fits" evtable="EVENTS" scfile=/scratch/kocevski/193360/ft2_4FGL_J2355.7-3351_daily_bin709.fits sctable="SC_DATA" outfile=/scratch/kocevski/193360/ltcube_423100801_423360001_4FGL_J2355.7-3351_daily_bin709.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/193360/ft2_4FGL_J2355.7-3351_daily_bin709.fits
.....................!
real 11.89
user 11.53
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/193360/ft1_filtered_4FGL_J2355.7-3351_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/193360/ft2_4FGL_J2355.7-3351_daily_bin709.fits sctable="SC_DATA" expcube=/scratch/kocevski/193360/ltcube_423100801_423360001_4FGL_J2355.7-3351_daily_bin709.fits outfile=/scratch/kocevski/193360/expmap_423100801_423360001_4FGL_J2355.7-3351_daily_bin709.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/193360/ltcube_423100801_423360001_4FGL_J2355.7-3351_daily_bin709.fits
.....................!
real 191.86
user 186.84
sys 4.65

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/193360/ft1_filtered_4FGL_J2355.7-3351_daily_bin709.fits scfile=/scratch/kocevski/193360/ft2_4FGL_J2355.7-3351_daily_bin709.fits outfile=/scratch/kocevski/193360/cmap_423100801_423360001_4FGL_J2355.7-3351_daily_bin709.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/193360/ft1_filtered_4FGL_J2355.7-3351_daily_bin709.fits scfile=/scratch/kocevski/193360/ft2_4FGL_J2355.7-3351_daily_bin709.fits outfile=/scratch/kocevski/193360/cmap_HighResolution_423100801_423360001_4FGL_J2355.7-3351_daily_bin709.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/193360/ft1_filtered_4FGL_J2355.7-3351_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/193360/ft2_4FGL_J2355.7-3351_daily_bin709.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/193360/Model_4FGL_J2355.7-3351_daily_bin709.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/193360/ft1_filtered_4FGL_J2355.7-3351_daily_bin709.fits....................!
real 37.21
user 35.83
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.754       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.529       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .93571       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.692       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0800       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5028       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.1916       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12658E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.265       1.0000         .10000E-03   10000.    
    15 'norm      '    1.6966       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11576E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5689       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .73413       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1961       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=   4436.439     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     1904 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.767        36.909       -.10415E-05    .37670E-04
   2  Prefactor     12.518        6.1761        .10597E-05    .21569E-03
   3  Prefactor     1.1901        209.33       -.39843E-04    .11810E-04
   4  Prefactor     .10000E-03    9.0662       -.90407E-07** at limit **
   5  Prefactor     10.692        14.554       -.79235E-08    .95570E-05
   6  Prefactor     .10000E-03    1.3078        .31753E-07** at limit **
   7  Prefactor     3.0790        16.575       -.11617E-05    .69292E-04
   8  Prefactor     5.5028        6.6722        .26813E-06    .80584E-05
   9  norm          .10000E-03    2.4018        .90540E-08** at limit **
  10  norm          8.1931        9.3688       -.29028E-06   -.69963E-04
  11  Prefactor     .10000E-03    44.720       -.15566E-05** at limit **
  12  Prefactor     .10000E-03    40.914        .20272E-05** at limit **
  13  norm          .10000E-03    3.1095        .19807E-05** at limit **
  14  Prefactor     12.236        25.956       -.58837E-07   -.38627E-04
  15  norm          1.7008        4.2265       -.33014E-05   -.26593E-03
  16  Prefactor     .10001E-03    143.41        .11961E-04** at limit **
  17  Prefactor     .10000E-03    26.481       -.87834E-06** at limit **
  18  Prefactor     6.5673        8.0060       -.65209E-06    .17698E-03
  19  Prefactor     .10000E-03    27.228        .23378E-06** at limit **
  20  Normalizat    .73436        .19115        .41099E-06   -.33208E-03
  21  Prefactor     1.1958        .21572        .81025E-06   -.21692E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.7671
  Prefactor  = 12.518
  Prefactor  = 1.19011
  Prefactor  = 0.0001
  Prefactor  = 10.6916
  Prefactor  = 0.0001
  Prefactor  = 3.07902
  Prefactor  = 5.50282
  norm       = 0.0001
  norm       = 8.19313
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.2359
  norm       = 1.70077
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 6.56726
  Prefactor  = 0.0001
  Normalizat = 0.734357
  Prefactor  = 1.1958
 **********
 **   18 **HESSE 
 **********

 FCN=   4436.439     FROM HESSE     STATUS=OK           317 CALLS     2221 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.767        36.908        .67977E-04   -1.4528    
   2  Prefactor     12.518        6.0067        .92851E-04   -1.5000    
   3  Prefactor     1.1901        223.42        .64561E-02   -1.5490    
   4  Prefactor     .10000E-03    9.1049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.692        14.546        .12253E-03   -1.5054    
   6  Prefactor     .10000E-03    1.3087        .74337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0790        16.502        .23111E-03   -1.5357    
   8  Prefactor     5.5028        6.6867        .17128E-03   -1.5239    
   9  norm          .10000E-03    2.4063        .10079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.1931        9.3675        .14008E-03   -1.5135    
  11  Prefactor     .10000E-03    44.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    41.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.5065        .22205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.236        25.949        .11438E-03   -1.5008    
  15  norm          1.7008        4.3600        .21301E-03   -1.5447    
  16  Prefactor     .10001E-03    144.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.5673        7.9640        .15658E-03   -1.5195    
  19  Prefactor     .10000E-03    27.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .73436        .22935        .24773E-03   -1.0255    
  21  Prefactor     1.1958        .26076        .23231E-03   -.86461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.67485e-10
Minuit parameter uncertainties:
  1  36.932
  2  6.00698
  3  32.7359
  4  2.68804e-05
  5  14.5512
  6  1.3078e-06
  7  14.2622
  8  6.68763
  9  2.18695e-06
  10  9.36913
  11  0.000433432
  12  0.00021308
  13  0.000103613
  14  25.9731
  15  4.36085
  16  0.0025294
  17  6.74723e-05
  18  7.96523
  19  3.53685e-05
  20  0.229654
  21  0.261042
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  6.567e+00  7.965e+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.196e+00  2.610e-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:  7.344e-01  2.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.87
Ra Dec: 358.931 -33.861
Photon Flux Upper Limit: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/193360/likelihoodResults_423100801_423360001_4FGL_J2355.7-3351_daily_bin709.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) = 4436.41483206
delta logL = 0.0245166930445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4436.40178614
delta logL = 0.0375626122386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1241       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8929       1.0000          .0000       10.000    
     3 'Normalizat'    .72334       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2068       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=   4436.402     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1209        157.77        .44402E-02    .28304E-03
   2  Index         2.8932        6.4200        .22364        .46825E-04
   3  Normalizat    .72334        .52375E-01    .42601E-01    .11547E-04
   4  Prefactor     1.2068        .62209E-01    .52340E-01   -.17215E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.12095
  Index      = 2.8932
  Normalizat = 0.723335
  Prefactor  = 1.20677
 **********
 **   18 **HESSE 
 **********

 FCN=   4436.402     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1209        10.313        .16213E-03   -1.5255    
   2  Index         2.8932        1.4366        .82468E-02   -.43494    
   3  Normalizat    .72334        .22883        .24946E-03   -1.0298    
   4  Prefactor     1.2068        .26419        .23141E-03   -.86123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93473e-09
Minuit parameter uncertainties:
  1  10.3161
  2  1.46178
  3  0.229135
  4  0.26448
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/193360': 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) = 4436.40178604
delta logL = 0.0375627098983

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  5.121e+00  1.032e+01  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.893e+00  1.462e+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.207e+00  2.645e-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:  7.233e-01  2.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.87
Ra Dec: 358.931 -33.861

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/193360/cmap_HighResolution_423100801_423360001_4FGL_J2355.7-3351_daily_bin709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', job_status='DONE', photon_flux_upper_limit='1.39e-07', time_completed='2021-09-30 09:18:19.417263', job_id='193360', GAL2='1.21', fit_tolerance='1e-08', EG2='0.72', EG='0.73', time_epoch_completed='1633018699.42', return_code2='0', ts='0.87', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='3.76e-02', ts2='0.96', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='709' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:18:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 193360: <4FGL_J2355.7-3351_daily_bin709> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin709 358.931 -33.8607 423100801 423360001 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 :                                   518.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             220.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            759 sec.

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

