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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin594
RA = 358.931, Dec = -33.8607
tmin = 393292801, tmax = 393552001
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='193190', job_status='RUN', time_executed='2021-09-30 09:09:25.170721', time_epoch_executed='1633018165.17' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/193190

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/193190/ft1_4FGL_J2355.7-3351_daily_bin594.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/193190/ft2_4FGL_J2355.7-3351_daily_bin594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/193190/ft1_4FGL_J2355.7-3351_daily_bin594.fits outfile=/scratch/kocevski/193190/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin594.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=393292801.0 tmax=393552001.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.72
user 4.45
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/193190/ft1_filtered_4FGL_J2355.7-3351_daily_bin594.fits" evtable="EVENTS" scfile=/scratch/kocevski/193190/ft2_4FGL_J2355.7-3351_daily_bin594.fits sctable="SC_DATA" outfile=/scratch/kocevski/193190/ltcube_393292801_393552001_4FGL_J2355.7-3351_daily_bin594.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/193190/ft2_4FGL_J2355.7-3351_daily_bin594.fits
.....................!
real 12.82
user 12.12
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/193190/ft1_filtered_4FGL_J2355.7-3351_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/193190/ft2_4FGL_J2355.7-3351_daily_bin594.fits sctable="SC_DATA" expcube=/scratch/kocevski/193190/ltcube_393292801_393552001_4FGL_J2355.7-3351_daily_bin594.fits outfile=/scratch/kocevski/193190/expmap_393292801_393552001_4FGL_J2355.7-3351_daily_bin594.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/193190/ltcube_393292801_393552001_4FGL_J2355.7-3351_daily_bin594.fits
.....................!
real 190.43
user 185.32
sys 4.61

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/193190/ft1_filtered_4FGL_J2355.7-3351_daily_bin594.fits scfile=/scratch/kocevski/193190/ft2_4FGL_J2355.7-3351_daily_bin594.fits outfile=/scratch/kocevski/193190/cmap_393292801_393552001_4FGL_J2355.7-3351_daily_bin594.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/193190/ft1_filtered_4FGL_J2355.7-3351_daily_bin594.fits scfile=/scratch/kocevski/193190/ft2_4FGL_J2355.7-3351_daily_bin594.fits outfile=/scratch/kocevski/193190/cmap_HighResolution_393292801_393552001_4FGL_J2355.7-3351_daily_bin594.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/193190/ft1_filtered_4FGL_J2355.7-3351_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/193190/ft2_4FGL_J2355.7-3351_daily_bin594.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/193190/Model_4FGL_J2355.7-3351_daily_bin594.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/193190/ft1_filtered_4FGL_J2355.7-3351_daily_bin594.fits.....................!
real 39.59
user 38.12
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.384       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.528       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.6744       1.0000         .10000E-03   10000.    
    10 'norm      '    20.317       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2774       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.359       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.301       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2610       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .71605       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=   4863.939     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2153 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.904       -.25667E-04** at limit **
   2  Prefactor     .10000E-03    2.2075       -.30445E-06** at limit **
   3  Prefactor     10.382        14.524       -.36499E-06    .33616E-04
   4  Prefactor     .10000E-03    9.7253        .11766E-04** at limit **
   5  Prefactor     .10000E-03    31.446        .36953E-04** at limit **
   6  Prefactor     .10000E-03    2.8730       -.27696E-06** at limit **
   7  Prefactor     20.520        19.641       -.44563E-05   -.10110E-03
   8  Prefactor     .10000E-03    2.8517        .25727E-06** at limit **
   9  norm          2.6744        3.0816        .38142E-08    .92715E-04
  10  norm          20.319        11.873        .18863E-05    .18736E-03
  11  Prefactor     .10000E-03    9.0047       -.81102E-05** at limit **
  12  Prefactor     7.2509        99.254       -.84803E-04    .56562E-05
  13  norm          .10000E-03    1.4692       -.64447E-07** at limit **
  14  Prefactor     33.355        36.437       -.46543E-05    .23305E-04
  15  norm          .10000E-03    1.7059       -.48971E-07** at limit **
  16  Prefactor     .10000E-03    38.079       -.74631E-05** at limit **
  17  Prefactor     .10000E-03    37.631       -.46557E-05** at limit **
  18  Prefactor     11.301        7.6154       -.93977E-06   -.17887E-02
  19  Prefactor     .10000E-03    14.752       -.89881E-05** at limit **
  20  Normalizat    1.2610        .18974        .56646E-05   -.15177E-03
  21  Prefactor     .71601        .20193       -.19013E-05    .17621E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3816
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.5198
  Prefactor  = 0.0001
  norm       = 2.67444
  norm       = 20.3193
  Prefactor  = 0.0001
  Prefactor  = 7.25087
  norm       = 0.0001
  Prefactor  = 33.3553
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3007
  Prefactor  = 0.0001
  Normalizat = 1.26103
  Prefactor  = 0.716008
 **********
 **   18 **HESSE 
 **********

 FCN=   4863.939     FROM HESSE     STATUS=OK           313 CALLS     2466 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.7559        .19926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.382        14.432        .12434E-03   -1.5063    
   4  Prefactor     .10000E-03    9.7227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    31.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.9015        .11526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.520        19.643        .88403E-04   -1.4802    
   8  Prefactor     .10000E-03    2.8602        .11502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.6744        3.0814        .12816E-03   -1.5381    
  10  norm          20.319        11.865        .88859E-04   -1.4806    
  11  Prefactor     .10000E-03    9.0143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.2509        99.355        .14868E-03   -1.5169    
  13  norm          .10000E-03    1.4810        .82527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     33.355        36.512        .69379E-04   -1.4552    
  15  norm          .10000E-03    1.7266        .88932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    38.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    37.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.301        7.6922        .59585E-03   -1.5036    
  19  Prefactor     .10000E-03    14.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2610        .22055        .20544E-03   -.84737    
  21  Prefactor     .71601        .23372        .29343E-03   -1.0290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16558e-09
Minuit parameter uncertainties:
  1  6.94432e-05
  2  5.82111e-05
  3  14.4371
  4  4.37267e-05
  5  0.000225736
  6  1.61091e-06
  7  19.6488
  8  6.37583e-06
  9  3.0816
  10  11.8663
  11  1.25178e-05
  12  53.7896
  13  5.09433e-06
  14  36.5366
  15  6.75078e-06
  16  2.24601e-05
  17  3.40299e-05
  18  7.69289
  19  1.35778e-05
  20  0.220709
  21  0.234042
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.130e+01  7.693e+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.160e-01  2.340e-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.261e+00  2.207e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.94
Ra Dec: 358.931 -33.861
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 6.74e-08 +/- 4.58e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.23e-05

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

Saving results to:
/scratch/kocevski/193190/likelihoodResults_393292801_393552001_4FGL_J2355.7-3351_daily_bin594.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) = 4863.77342597
delta logL = 0.165451870487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4863.75464336
delta logL = 0.184234479225

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7264       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2097       1.0000          .0000       10.000    
     3 'Normalizat'    1.2103       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75692       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=   4863.755     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      240 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7128        74.498        .36066E-02   -.21538E-03
   2  Index         3.2113        3.8305        .16612        .16590E-04
   3  Normalizat    1.2104        .74234E-01    .34642E-01   -.55868E-03
   4  Prefactor     .75670        .69805E-01    .64714E-01   -.38277E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.71277
  Index      = 3.21133
  Normalizat = 1.21042
  Prefactor  = 0.756697
 **********
 **   18 **HESSE 
 **********

 FCN=   4863.755     FROM HESSE     STATUS=OK            29 CALLS      269 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7128        13.796        .10468E-03   -1.5152    
   2  Index         3.2113        1.6745        .57992E-02   -.36584    
   3  Normalizat    1.2104        .24078        .20890E-03   -.86281    
   4  Prefactor     .75670        .25405        .28629E-03   -1.0134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13397e-10
Minuit parameter uncertainties:
  1  13.8013
  2  1.71265
  3  0.241004
  4  0.254447
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/193190': 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) = 4863.75464127
delta logL = 0.184236574293

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  7.713e+00  1.380e+01  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  3.211e+00  1.713e+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:  7.567e-01  2.544e-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.210e+00  2.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.41
Ra Dec: 358.931 -33.861
Photon Index (Free Index): 3.21 +/- 1.71
Photon Flux (Free Index): 1.00e-07 +/- 8.02e-08
Energy Flux (Free Index): 1.82e-05 +/- 1.08e-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/193190/cmap_HighResolution_393292801_393552001_4FGL_J2355.7-3351_daily_bin594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', comment='SUCCESS', photon_flux='6.74e-08', energy_flux2='1.82e-05', photon_flux_error='4.58e-08', dlogl='1.84e-01', energy_flux='1.80e-05', photon_flux2='1.00e-07', job_status='DONE', time_completed='2021-09-30 09:18:54.121294', photon_index_error2='1.71', photon_index2='3.21', ts='3.94', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.61e-07', energy_flux_error2='1.08e-05', EG='1.26', time_epoch_completed='1633018734.12', return_code='0', job_id='193190', GAL2='0.76', EG2='1.21', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='8.02e-08', ts2='4.41', photon_index='2.58' WHERE bin_id='594' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:18:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 193190: <4FGL_J2355.7-3351_daily_bin594> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin594> 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) <bullet0233>, 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:18:56 2021
Results reported at Thu Sep 30 09:18:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin594 358.931 -33.8607 393292801 393552001 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 :                                   557.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             223.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            809 sec.

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

