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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin837
RA = 358.931, Dec = -33.8607
tmin = 456278401, tmax = 456537601
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='194548', job_status='RUN', time_executed='2021-09-30 09:13:39.251795', time_epoch_executed='1633018419.25' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='837'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194548

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194548/ft1_4FGL_J2355.7-3351_daily_bin837.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194548/ft2_4FGL_J2355.7-3351_daily_bin837.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194548/ft1_4FGL_J2355.7-3351_daily_bin837.fits outfile=/scratch/kocevski/194548/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin837.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=456278401.0 tmax=456537601.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.17
user 4.86
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/194548/ft2_4FGL_J2355.7-3351_daily_bin837.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/194548/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin837.fits evtable="EVENTS" outfile="/scratch/kocevski/194548/ft1_filtered_4FGL_J2355.7-3351_daily_bin837.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/194548/ft1_filtered_4FGL_J2355.7-3351_daily_bin837.fits" evtable="EVENTS" scfile=/scratch/kocevski/194548/ft2_4FGL_J2355.7-3351_daily_bin837.fits sctable="SC_DATA" outfile=/scratch/kocevski/194548/ltcube_456278401_456537601_4FGL_J2355.7-3351_daily_bin837.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/194548/ft2_4FGL_J2355.7-3351_daily_bin837.fits
.....................!
real 12.75
user 12.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194548/ft1_filtered_4FGL_J2355.7-3351_daily_bin837.fits evtable="EVENTS" scfile=/scratch/kocevski/194548/ft2_4FGL_J2355.7-3351_daily_bin837.fits sctable="SC_DATA" expcube=/scratch/kocevski/194548/ltcube_456278401_456537601_4FGL_J2355.7-3351_daily_bin837.fits outfile=/scratch/kocevski/194548/expmap_456278401_456537601_4FGL_J2355.7-3351_daily_bin837.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/194548/ltcube_456278401_456537601_4FGL_J2355.7-3351_daily_bin837.fits
.....................!
real 191.85
user 186.06
sys 5.22

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/194548/ft1_filtered_4FGL_J2355.7-3351_daily_bin837.fits scfile=/scratch/kocevski/194548/ft2_4FGL_J2355.7-3351_daily_bin837.fits outfile=/scratch/kocevski/194548/cmap_456278401_456537601_4FGL_J2355.7-3351_daily_bin837.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/194548/ft1_filtered_4FGL_J2355.7-3351_daily_bin837.fits scfile=/scratch/kocevski/194548/ft2_4FGL_J2355.7-3351_daily_bin837.fits outfile=/scratch/kocevski/194548/cmap_HighResolution_456278401_456537601_4FGL_J2355.7-3351_daily_bin837.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.60
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/194548/ft1_filtered_4FGL_J2355.7-3351_daily_bin837.fits evtable="EVENTS" scfile=/scratch/kocevski/194548/ft2_4FGL_J2355.7-3351_daily_bin837.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/194548/Model_4FGL_J2355.7-3351_daily_bin837.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/194548/ft1_filtered_4FGL_J2355.7-3351_daily_bin837.fits.....................!
real 40.03
user 38.62
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8837       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1510       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0566       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.4591       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.170       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10393E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3587       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.3011       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.217       1.0000         .10000E-03   10000.    
    15 'norm      '    .12775E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26606E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11848E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0104       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .49815       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=   5145.433     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     1923 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8897        48.685        .12012E-04   -.73764E-05
   2  Prefactor     2.1516        2.5697       -.24176E-06   -.33865E-03
   3  Prefactor     3.0557        15.160       -.92625E-06   -.93122E-04
   4  Prefactor     .10000E-03    11.303        .21004E-05** at limit **
   5  Prefactor     9.4560        19.812       -.16889E-05   -.90352E-04
   6  Prefactor     11.167        5.4909       -.72814E-06   -.10720E-02
   7  Prefactor     .10000E-03    54.190        .23499E-04** at limit **
   8  Prefactor     8.3596        8.2394       -.59351E-06   -.22715E-03
   9  norm          .10000E-03    4.0373        .10862E-06** at limit **
  10  norm          .10000E-03    2.6120       -.46117E-07** at limit **
  11  Prefactor     .10000E-03    61.528       -.16695E-04** at limit **
  12  Prefactor     .10000E-03    30.918       -.38362E-05** at limit **
  13  norm          8.3061        4.1397       -.41204E-06   -.14721E-02
  14  Prefactor     26.199        28.503       -.13501E-04    .14129E-03
  15  norm          .10000E-03    1.8282        .13250E-06** at limit **
  16  Prefactor     .10001E-03    233.54       -.96661E-04** at limit **
  17  Prefactor     .10000E-03    12.397        .12758E-06** at limit **
  18  Prefactor     .10000E-03    3.2077       -.32784E-06** at limit **
  19  Prefactor     .10000E-03    10.569       -.21737E-05** at limit **
  20  Normalizat    1.0101        .13916        .14810E-05    .17728E-03
  21  Prefactor     .49850        .15168        .22055E-06    .19683E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.88972
  Prefactor  = 2.15156
  Prefactor  = 3.05573
  Prefactor  = 0.0001
  Prefactor  = 9.45603
  Prefactor  = 11.1675
  Prefactor  = 0.0001
  Prefactor  = 8.35955
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.30607
  Prefactor  = 26.1992
  norm       = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01008
  Prefactor  = 0.498497
 **********
 **   18 **HESSE 
 **********

 FCN=   5145.433     FROM HESSE     STATUS=OK           315 CALLS     2238 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8897        48.707        .13448E-03   -1.5112    
   2  Prefactor     2.1516        2.5503        .11743E-03   -1.5415    
   3  Prefactor     3.0557        15.005        .23204E-03   -1.5358    
   4  Prefactor     .10000E-03    11.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.4560        19.804        .13030E-03   -1.5093    
   6  Prefactor     11.167        5.4992        .10862E-03   -1.5039    
   7  Prefactor     .10000E-03    54.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.3596        8.2589        .13866E-03   -1.5130    
   9  norm          .10000E-03    4.1172        .28025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.6267        .11321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    61.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    31.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.3061        4.0117        .48002E-03   -1.5131    
  14  Prefactor     26.199        28.418        .78238E-04   -1.4684    
  15  norm          .10000E-03    8.0096        .18294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    231.59        .21440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.3305        .24671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0101        .16551        .17662E-03   -.92694    
  21  Prefactor     .49850        .17922        .27391E-03   -1.1205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17608e-09
Minuit parameter uncertainties:
  1  41.6692
  2  2.55039
  3  13.5478
  4  4.48188e-05
  5  19.8173
  6  5.49949
  7  3.32574e-05
  8  8.25999
  9  2.33497e-05
  10  3.35431e-06
  11  0.000283622
  12  2.63253e-05
  13  4.01188
  14  28.4325
  15  6.42137e-05
  16  0.00353535
  17  5.00268e-07
  18  6.41331e-05
  19  9.58856e-07
  20  0.165592
  21  0.179423
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  6.413e-05  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:  4.985e-01  1.794e-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:  1.010e+00  1.656e-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: 5.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/194548/likelihoodResults_456278401_456537601_4FGL_J2355.7-3351_daily_bin837.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) = 5145.43345413
delta logL = -0.000751858677177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5145.43270282
delta logL = -5.52806341148e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10854E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6102       1.0000          .0000       10.000    
     3 'Normalizat'    1.0102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49842       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5145.424     FROM MIGRAD    STATUS=FAILED       194 CALLS      363 TOTAL
                     EDM=   .73E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48745E-01    16.249        .24876E-02   -.10590    
   2  Index         4.6098        3.8829        .50000        .47194E-05
   3  Normalizat    1.0035        .18418E-01    .17662E-03   -.10041E-03
   4  Prefactor     .50308        .20599E-01    .27391E-03   -.56697E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5145.424     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      444 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48745E-01    16.249        .20037E-03   -.10590    
   2  Index         4.6098        3.8829        .82780E-02    .47194E-05
   3  Normalizat    1.0035        .18418E-01    .63702E-04   -.10041E-03
   4  Prefactor     .50308        .20599E-01    .50781E-04   -.56697E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5145.424     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      477 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48746E-01    1.5839        .49751E-03   -.18827E-03
   2  Index         4.6098        7.2930        .11887E-01    .26082E-05
   3  Normalizat    1.0035        .16607        .35324E-04   -.61536E-04
   4  Prefactor     .50308        .18162        .10956E-04   -.41713E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0487463
  Index      = 4.60977
  Normalizat = 1.00348
  Prefactor  = 0.50308
 **********
 **   18 **HESSE 
 **********

 FCN=   5145.424     FROM HESSE     STATUS=OK            27 CALLS      504 TOTAL
                     EDM=   .90E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48746E-01    2.9865        .19900E-04   -1.5752    
   2  Index         4.6098        7.1012        .47547E-03   -.78125E-01
   3  Normalizat    1.0035        .16599        .70647E-05   -.92914    
   4  Prefactor     .50308        .18158        .21912E-05   -1.1184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.98591e-12
Minuit parameter uncertainties:
  1  0.762362
  2  9.4669
  3  0.166077
  4  0.181785
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194548': 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) = 5145.42355329
delta logL = 0.00914897718212

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  4.875e-02  7.624e-01  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  4.610e+00  9.467e+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:  5.031e-01  1.818e-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:  1.003e+00  1.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/194548/cmap_HighResolution_456278401_456537601_4FGL_J2355.7-3351_daily_bin837.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.65e-03', job_status='DONE', photon_flux_upper_limit='5.95e-08', time_completed='2021-09-30 09:23:19.345450', job_id='194548', GAL2='0.50', fit_tolerance='1e-08', EG2='1.00', EG='1.01', time_epoch_completed='1633018999.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='9.15e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='837' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:23:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 194548: <4FGL_J2355.7-3351_daily_bin837> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin837> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 09:10:21 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 09:10:24 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:24 2021
Terminated at Thu Sep 30 09:23:20 2021
Results reported at Thu Sep 30 09:23:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin837 358.931 -33.8607 456278401 456537601 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 :                                   576.32 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             257.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            779 sec.

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

