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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin959
RA = 358.931, Dec = -33.8607
tmin = 487900801, tmax = 488160001
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='194735', job_status='RUN', time_executed='2021-09-30 09:13:00.032959', time_epoch_executed='1633018380.03' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194735

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194735/ft1_4FGL_J2355.7-3351_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194735/ft2_4FGL_J2355.7-3351_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194735/ft1_4FGL_J2355.7-3351_daily_bin959.fits outfile=/scratch/kocevski/194735/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin959.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=487900801.0 tmax=488160001.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 6.01
user 5.75
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/194735/ft1_filtered_4FGL_J2355.7-3351_daily_bin959.fits" evtable="EVENTS" scfile=/scratch/kocevski/194735/ft2_4FGL_J2355.7-3351_daily_bin959.fits sctable="SC_DATA" outfile=/scratch/kocevski/194735/ltcube_487900801_488160001_4FGL_J2355.7-3351_daily_bin959.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/194735/ft2_4FGL_J2355.7-3351_daily_bin959.fits
.....................!
real 11.90
user 11.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194735/ft1_filtered_4FGL_J2355.7-3351_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/194735/ft2_4FGL_J2355.7-3351_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/194735/ltcube_487900801_488160001_4FGL_J2355.7-3351_daily_bin959.fits outfile=/scratch/kocevski/194735/expmap_487900801_488160001_4FGL_J2355.7-3351_daily_bin959.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/194735/ltcube_487900801_488160001_4FGL_J2355.7-3351_daily_bin959.fits
.....................!
real 191.85
user 186.40
sys 5.14

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/194735/ft1_filtered_4FGL_J2355.7-3351_daily_bin959.fits scfile=/scratch/kocevski/194735/ft2_4FGL_J2355.7-3351_daily_bin959.fits outfile=/scratch/kocevski/194735/cmap_487900801_488160001_4FGL_J2355.7-3351_daily_bin959.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/194735/ft1_filtered_4FGL_J2355.7-3351_daily_bin959.fits scfile=/scratch/kocevski/194735/ft2_4FGL_J2355.7-3351_daily_bin959.fits outfile=/scratch/kocevski/194735/cmap_HighResolution_487900801_488160001_4FGL_J2355.7-3351_daily_bin959.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.53
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.205       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.3561       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9357       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.8630       1.0000         .10000E-03   10000.    
     9 'norm      '    .59515       1.0000         .10000E-03   10000.    
    10 'norm      '    17.774       1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.287       1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.089       1.0000         .10000E-03   10000.    
    13 'norm      '    2.8761       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .14071E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    111.06       1.0000         .10000E-03   10000.    
    17 'Prefactor '    102.93       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.164       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .75477       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .78910       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=   2825.841     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     2353 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.206        55.339       -.18407E-06    .15371E-05
   2  Prefactor     .10000E-03    1.7887        .69685E-07** at limit **
   3  Prefactor     .10000E-03    8.7119        .40075E-07** at limit **
   4  Prefactor     8.3576        17.398       -.64394E-06   -.13072E-04
   5  Prefactor     .10000E-03    14.633        .26403E-07** at limit **
   6  Prefactor     1.9350        6.2604       -.36367E-08    .12412E-04
   7  Prefactor     .10000E-03    38.679       -.91251E-07** at limit **
   8  Prefactor     6.8646        10.896       -.43328E-06   -.37943E-05
   9  norm          .55315        42.867        .24990E-05    .74499E-04
  10  norm          17.775        13.572        .80192E-08   -.17363E-05
  11  Prefactor     38.300        53.167        .14246E-05    .41249E-04
  12  Prefactor     34.094        70.859       -.93954E-06   -.33875E-05
  13  norm          2.8868        6.7805        .76603E-06    .71702E-04
  14  Prefactor     .10002E-03    116.22       -.29993E-05** at limit **
  15  norm          .10011E-03    5.9124        .59333E-06** at limit **
  16  Prefactor     111.28        144.71       -.48826E-06   -.65855E-05
  17  Prefactor     102.92        68.492       -.32203E-06   -.19266E-04
  18  Prefactor     12.164        7.8341       -.19735E-06   -.71629E-04
  19  Prefactor     .10000E-03    61.424        .25968E-06** at limit **
  20  Normalizat    .75483        .24513        .47417E-05    .29536E-04
  21  Prefactor     .78900        .26570       -.45400E-05    .86953E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.2065
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.35761
  Prefactor  = 0.0001
  Prefactor  = 1.93502
  Prefactor  = 0.0001
  Prefactor  = 6.86464
  norm       = 0.553155
  norm       = 17.7745
  Prefactor  = 38.3
  Prefactor  = 34.0939
  norm       = 2.88679
  Prefactor  = 0.000100016
  norm       = 0.000100111
  Prefactor  = 111.277
  Prefactor  = 102.923
  Prefactor  = 12.1644
  Prefactor  = 0.0001
  Normalizat = 0.754831
  Prefactor  = 0.789004
 **********
 **   18 **HESSE 
 **********

 FCN=   2825.841     FROM HESSE     STATUS=OK           321 CALLS     2674 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.206        55.344        .48959E-04   -1.4067    
   2  Prefactor     .10000E-03    1.8064        .69382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.7167        .15326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.3576        17.401        .13868E-03   -1.5130    
   5  Prefactor     .10000E-03    14.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9350        6.2284        .22606E-03   -1.5430    
   7  Prefactor     .10000E-03    38.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.8646        10.898        .15315E-03   -1.5184    
   9  norm          .55315        46.567        .27673E-02   -1.5559    
  10  norm          17.775        13.567        .95001E-04   -1.4865    
  11  Prefactor     38.300        52.618        .64775E-04   -1.4469    
  12  Prefactor     34.094        70.855        .68634E-04   -1.4539    
  13  norm          2.8868        6.8661        .16523E-03   -1.5368    
  14  Prefactor     .10002E-03    120.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10011E-03    41.419        .20344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     111.28        144.63        .19085E-03   -1.3594    
  17  Prefactor     102.92        68.506        .39632E-04   -1.3675    
  18  Prefactor     12.164        7.8356        .11377E-03   -1.5010    
  19  Prefactor     .10000E-03    62.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .75483        .24876        .21523E-03   -1.0177    
  21  Prefactor     .78900        .26914        .24180E-03   -1.0013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95963e-09
Minuit parameter uncertainties:
  1  55.3865
  2  2.26346e-06
  3  3.66426e-06
  4  17.4115
  5  5.06613e-06
  6  6.23046
  7  0.000115279
  8  10.9016
  9  10.1579
  10  13.5695
  11  52.6821
  12  71.0306
  13  6.86795
  14  0.00278827
  15  0.00430024
  16  145.095
  17  68.5588
  18  7.83623
  19  0.000158362
  20  0.249132
  21  0.269594
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.216e+01  7.836e+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:  7.890e-01  2.696e-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.548e-01  2.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.47
Ra Dec: 358.931 -33.861
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 7.25e-08 +/- 4.67e-08
Energy Flux (Fixed Index): 1.94e-05 +/- 1.25e-05

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) = 2825.33513491
delta logL = 0.506345779246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2825.30659184
delta logL = 0.534888850789

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.266       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0044       1.0000          .0000       10.000    
     3 'Normalizat'    .78154       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77034       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=   2825.307     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.269        10.055        .19681E-05   -.80729E-04
   2  Index         2.0051        .52434        .20228E-04   -.83268E-05
   3  Normalizat    .78152        .19642       -.19903E-05   -.20538E-03
   4  Prefactor     .77038        .22425        .41416E-06   -.19451E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.2695
  Index      = 2.00505
  Normalizat = 0.78152
  Prefactor  = 0.77038
 **********
 **   18 **HESSE 
 **********

 FCN=   2825.307     FROM HESSE     STATUS=OK            29 CALLS      233 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.269        10.015        .10604E-03   -1.4952    
   2  Index         2.0051        .52248        .61347E-02   -.64224    
   3  Normalizat    .78152        .22742        .21197E-03   -1.0076    
   4  Prefactor     .77038        .26019        .24453E-03   -1.0083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.5202e-11
Minuit parameter uncertainties:
  1  10.0158
  2  0.523971
  3  0.227692
  4  0.260608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194735': 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) = 2825.30659108
delta logL = 0.534889606646

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.427e+01  1.002e+01  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.005e+00  5.240e-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:  7.704e-01  2.606e-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.815e-01  2.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.53
Ra Dec: 358.931 -33.861
Photon Index (Free Index): 2.01 +/- 0.52
Photon Flux (Free Index): 4.85e-08 +/- 4.19e-08
Energy Flux (Free Index): 3.31e-05 +/- 3.41e-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/194735/cmap_HighResolution_487900801_488160001_4FGL_J2355.7-3351_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.25e-08', energy_flux2='3.31e-05', photon_flux_error='4.67e-08', dlogl='5.35e-01', energy_flux='1.94e-05', photon_flux2='4.85e-08', job_status='DONE', time_completed='2021-09-30 09:20:29.542902', photon_index_error2='0.52', photon_index2='2.01', ts='8.47', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='3.41e-05', EG='0.75', time_epoch_completed='1633018829.54', return_code='0', job_id='194735', GAL2='0.77', EG2='0.78', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='4.19e-08', ts2='9.53', photon_index='2.58' WHERE bin_id='959' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:20:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 194735: <4FGL_J2355.7-3351_daily_bin959> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin959 358.931 -33.8607 487900801 488160001 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 :                                   446.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             239.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   589 sec.
    Turnaround time :                            591 sec.

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

