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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin1168
RA = 358.931, Dec = -33.8607
tmin = 542073601, tmax = 542332801
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='196018', job_status='RUN', time_executed='2021-09-30 09:16:44.731572', time_epoch_executed='1633018604.73' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='1168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/196018

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/196018/ft1_4FGL_J2355.7-3351_daily_bin1168.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/196018/ft2_4FGL_J2355.7-3351_daily_bin1168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/196018/ft1_4FGL_J2355.7-3351_daily_bin1168.fits outfile=/scratch/kocevski/196018/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1168.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=542073601.0 tmax=542332801.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 3.68
user 3.36
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/196018/ft2_4FGL_J2355.7-3351_daily_bin1168.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/196018/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1168.fits evtable="EVENTS" outfile="/scratch/kocevski/196018/ft1_filtered_4FGL_J2355.7-3351_daily_bin1168.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/196018/ft1_filtered_4FGL_J2355.7-3351_daily_bin1168.fits" evtable="EVENTS" scfile=/scratch/kocevski/196018/ft2_4FGL_J2355.7-3351_daily_bin1168.fits sctable="SC_DATA" outfile=/scratch/kocevski/196018/ltcube_542073601_542332801_4FGL_J2355.7-3351_daily_bin1168.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/196018/ft2_4FGL_J2355.7-3351_daily_bin1168.fits
.....................!
real 14.82
user 14.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/196018/ft1_filtered_4FGL_J2355.7-3351_daily_bin1168.fits evtable="EVENTS" scfile=/scratch/kocevski/196018/ft2_4FGL_J2355.7-3351_daily_bin1168.fits sctable="SC_DATA" expcube=/scratch/kocevski/196018/ltcube_542073601_542332801_4FGL_J2355.7-3351_daily_bin1168.fits outfile=/scratch/kocevski/196018/expmap_542073601_542332801_4FGL_J2355.7-3351_daily_bin1168.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/196018/ltcube_542073601_542332801_4FGL_J2355.7-3351_daily_bin1168.fits
.....................!
real 191.81
user 186.51
sys 4.99

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/196018/ft1_filtered_4FGL_J2355.7-3351_daily_bin1168.fits scfile=/scratch/kocevski/196018/ft2_4FGL_J2355.7-3351_daily_bin1168.fits outfile=/scratch/kocevski/196018/cmap_542073601_542332801_4FGL_J2355.7-3351_daily_bin1168.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/196018/ft1_filtered_4FGL_J2355.7-3351_daily_bin1168.fits scfile=/scratch/kocevski/196018/ft2_4FGL_J2355.7-3351_daily_bin1168.fits outfile=/scratch/kocevski/196018/cmap_HighResolution_542073601_542332801_4FGL_J2355.7-3351_daily_bin1168.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/196018/ft1_filtered_4FGL_J2355.7-3351_daily_bin1168.fits evtable="EVENTS" scfile=/scratch/kocevski/196018/ft2_4FGL_J2355.7-3351_daily_bin1168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/196018/Model_4FGL_J2355.7-3351_daily_bin1168.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/196018/ft1_filtered_4FGL_J2355.7-3351_daily_bin1168.fits.....................!
real 38.18
user 36.94
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    93.839       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7983       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.818       1.0000         .10000E-03   10000.    
     9 'norm      '    2.7779       1.0000         .10000E-03   10000.    
    10 'norm      '    11.146       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.820       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.5359       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.288       1.0000         .10000E-03   10000.    
    16 'Prefactor '    39.112       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11358E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.7984       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.016       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0948       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .60480       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=   4652.837     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2201 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     93.839        55.923       -.49000E-06    .66176E-05
   2  Prefactor     .10000E-03    2.6890        .55740E-06** at limit **
   3  Prefactor     .10000E-03    55.597        .32714E-05** at limit **
   4  Prefactor     9.7993        16.988       -.52926E-06   -.24583E-04
   5  Prefactor     .10000E-03    5.7347        .35923E-07** at limit **
   6  Prefactor     .10000E-03    1.6450       -.20496E-07** at limit **
   7  Prefactor     .10000E-03    10.370       -.85346E-07** at limit **
   8  Prefactor     23.818        10.526       -.50243E-06    .11971E-04
   9  norm          2.7777        5.5821        .32286E-05   -.36089E-03
  10  norm          11.148        11.034       -.99954E-06   -.38917E-04
  11  Prefactor     26.821        38.125        .60824E-06    .17777E-04
  12  Prefactor     .10000E-03    27.859       -.55093E-06** at limit **
  13  norm          3.5356        3.5432       -.14707E-05    .62259E-05
  14  Prefactor     .10000E-03    14.064        .47534E-07** at limit **
  15  norm          13.288        5.8578        .23183E-05    .95257E-05
  16  Prefactor     39.112        51.802       -.14685E-06    .34874E-05
  17  Prefactor     .10001E-03    117.33        .46194E-07** at limit **
  18  Prefactor     7.8003        8.0484        .27959E-05   -.39025E-04
  19  Prefactor     24.991        63.685       -.36910E-04   -.16202E-04
  20  Normalizat    1.0947        .18788        .31393E-05   -.19170E-03
  21  Prefactor     .60489        .19700       -.19564E-05    .69349E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 93.8391
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 9.79927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.818
  norm       = 2.77774
  norm       = 11.1477
  Prefactor  = 26.8213
  Prefactor  = 0.0001
  norm       = 3.53556
  Prefactor  = 0.0001
  norm       = 13.2879
  Prefactor  = 39.1115
  Prefactor  = 0.000100013
  Prefactor  = 7.8003
  Prefactor  = 24.9906
  Normalizat = 1.09468
  Prefactor  = 0.604886
 **********
 **   18 **HESSE 
 **********

 FCN=   4652.837     FROM HESSE     STATUS=OK           315 CALLS     2516 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     93.839        55.970        .41488E-04   -1.3768    
   2  Prefactor     .10000E-03    2.7666        .21864E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    56.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.7993        17.018        .12802E-03   -1.5082    
   5  Prefactor     .10000E-03    5.7359        .15954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.6586        .85428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.818        10.555        .82078E-04   -1.4732    
   9  norm          2.7777        5.5166        .20658E-03   -1.5375    
  10  norm          11.148        11.044        .12000E-03   -1.5040    
  11  Prefactor     26.821        38.142        .77355E-04   -1.4672    
  12  Prefactor     .10000E-03    27.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.5356        3.5316        .11850E-03   -1.5332    
  14  Prefactor     .10000E-03    14.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.288        5.8516        .10188E-03   -1.4979    
  16  Prefactor     39.112        51.805        .64090E-04   -1.4456    
  17  Prefactor     .10001E-03    117.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.8003        8.0462        .14359E-03   -1.5149    
  19  Prefactor     24.991        63.919        .80090E-04   -1.4708    
  20  Normalizat    1.0947        .22180        .20481E-03   -.89923    
  21  Prefactor     .60489        .22980        .29684E-03   -1.0738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04166e-09
Minuit parameter uncertainties:
  1  56.0011
  2  9.24436e-05
  3  0.00102811
  4  17.0267
  5  2.51035e-06
  6  3.00594e-06
  7  1.06513e-05
  8  10.5563
  9  5.51765
  10  11.0461
  11  38.1765
  12  9.09389e-06
  13  3.53186
  14  4.57449e-06
  15  5.8518
  16  51.8642
  17  0.00252727
  18  8.04732
  19  64.0947
  20  0.221984
  21  0.230156
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  7.800e+00  8.047e+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:  6.049e-01  2.302e-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.095e+00  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.54
Ra Dec: 358.931 -33.861
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 4.65e-08 +/- 4.79e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 1.28e-05

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

Saving results to:
/scratch/kocevski/196018/likelihoodResults_542073601_542332801_4FGL_J2355.7-3351_daily_bin1168.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) = 4652.45611864
delta logL = 0.381223850589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4652.45067852
delta logL = 0.386663972842

Fit tolerance = 1e-08

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

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

 FCN=   4652.451     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      293 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9674        7.4600        .10767E-03   -.20705E-03
   2  Index         3.3485        1.0971        .61121E-02   -.39641E-04
   3  Normalizat    1.0527        .21588        .20824E-03   -.51012E-03
   4  Prefactor     .63659        .23224        .28993E-03   -.28727E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.96742
  Index      = 3.34849
  Normalizat = 1.05274
  Prefactor  = 0.636591
 **********
 **   18 **HESSE 
 **********

 FCN=   4652.451     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9674        6.5014        .43070E-05   -1.5262    
   2  Index         3.3485        .95661        .24448E-03   -.33662    
   3  Normalizat    1.0527        .21608        .41649E-04   -.91284    
   4  Prefactor     .63659        .23226        .11597E-04   -1.0607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89812e-10
Minuit parameter uncertainties:
  1  6.50234
  2  0.963282
  3  0.216256
  4  0.232607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/196018': 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) = 4652.45067745
delta logL = 0.386665040071

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  4.967e+00  6.502e+00  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  3.348e+00  9.633e-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:  6.366e-01  2.326e-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.053e+00  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.38
Ra Dec: 358.931 -33.861
Photon Index (Free Index): 3.35 +/- 0.96
Photon Flux (Free Index): 7.72e-08 +/- 6.23e-08
Energy Flux (Free Index): 1.34e-05 +/- 1.04e-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/196018/cmap_HighResolution_542073601_542332801_4FGL_J2355.7-3351_daily_bin1168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', photon_flux='4.65e-08', energy_flux2='1.34e-05', photon_flux_error='4.79e-08', dlogl='3.87e-01', energy_flux='1.24e-05', photon_flux2='7.72e-08', job_status='DONE', time_completed='2021-09-30 09:25:53.920786', photon_index_error2='0.96', photon_index2='3.35', ts='1.54', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='1.04e-05', EG='1.09', time_epoch_completed='1633019153.92', return_code='0', job_id='196018', GAL2='0.64', EG2='1.05', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='6.23e-08', ts2='2.38', photon_index='2.58' WHERE bin_id='1168' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:25:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 196018: <4FGL_J2355.7-3351_daily_bin1168> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin1168> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 30 09:15:26 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 09:15: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:15:28 2021
Terminated at Thu Sep 30 09:25:54 2021
Results reported at Thu Sep 30 09:25:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin1168 358.931 -33.8607 542073601 542332801 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 :                                   544.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            628 sec.

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

