/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 145 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 = 7411
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2355.7-3351_daily_bin415
RA = 358.931, Dec = -33.8607
tmin = 346896001, tmax = 347155201
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='191852', job_status='RUN', time_executed='2021-09-30 09:03:02.804384', time_epoch_executed='1633017782.8' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='415'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191852

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191852/ft1_4FGL_J2355.7-3351_daily_bin415.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191852/ft2_4FGL_J2355.7-3351_daily_bin415.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191852/ft1_4FGL_J2355.7-3351_daily_bin415.fits outfile=/scratch/kocevski/191852/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin415.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=346896001.0 tmax=347155201.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.42
user 3.19
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191852/ft1_filtered_4FGL_J2355.7-3351_daily_bin415.fits" evtable="EVENTS" scfile=/scratch/kocevski/191852/ft2_4FGL_J2355.7-3351_daily_bin415.fits sctable="SC_DATA" outfile=/scratch/kocevski/191852/ltcube_346896001_347155201_4FGL_J2355.7-3351_daily_bin415.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/191852/ft2_4FGL_J2355.7-3351_daily_bin415.fits
.....................!
real 11.89
user 11.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191852/ft1_filtered_4FGL_J2355.7-3351_daily_bin415.fits evtable="EVENTS" scfile=/scratch/kocevski/191852/ft2_4FGL_J2355.7-3351_daily_bin415.fits sctable="SC_DATA" expcube=/scratch/kocevski/191852/ltcube_346896001_347155201_4FGL_J2355.7-3351_daily_bin415.fits outfile=/scratch/kocevski/191852/expmap_346896001_347155201_4FGL_J2355.7-3351_daily_bin415.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/191852/ltcube_346896001_347155201_4FGL_J2355.7-3351_daily_bin415.fits
.....................!
real 190.49
user 185.27
sys 4.90

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/191852/ft1_filtered_4FGL_J2355.7-3351_daily_bin415.fits scfile=/scratch/kocevski/191852/ft2_4FGL_J2355.7-3351_daily_bin415.fits outfile=/scratch/kocevski/191852/cmap_346896001_347155201_4FGL_J2355.7-3351_daily_bin415.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191852/ft1_filtered_4FGL_J2355.7-3351_daily_bin415.fits scfile=/scratch/kocevski/191852/ft2_4FGL_J2355.7-3351_daily_bin415.fits outfile=/scratch/kocevski/191852/cmap_HighResolution_346896001_347155201_4FGL_J2355.7-3351_daily_bin415.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/191852/ft1_filtered_4FGL_J2355.7-3351_daily_bin415.fits evtable="EVENTS" scfile=/scratch/kocevski/191852/ft2_4FGL_J2355.7-3351_daily_bin415.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191852/Model_4FGL_J2355.7-3351_daily_bin415.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/191852/ft1_filtered_4FGL_J2355.7-3351_daily_bin415.fits.....................!
real 45.48
user 44.17
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6380       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.346       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9581       1.0000         .10000E-03   10000.    
     9 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.9394       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10909E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    35.435       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .29041E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    73.606       1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.205       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .87112E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.364       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0152       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .70138       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=   6094.013     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2236 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.738       -.22144E-04** at limit **
   2  Prefactor     .10000E-03    3.6873        .85278E-08** at limit **
   3  Prefactor     7.6306        15.947       -.53379E-07   -.55755E-04
   4  Prefactor     .10000E-03    2.5699        .15480E-06** at limit **
   5  Prefactor     .10000E-03    12.105       -.48373E-06** at limit **
   6  Prefactor     .10000E-03    2.5974        .84328E-07** at limit **
   7  Prefactor     22.350        20.600        .13530E-05    .28099E-05
   8  Prefactor     2.9577        6.1173       -.21354E-05   -.46634E-03
   9  norm          .10000E-03    3.9220        .16868E-06** at limit **
  10  norm          6.9394        5.5114       -.33991E-05   -.11361E-03
  11  Prefactor     .10000E-03    44.858        .18656E-04** at limit **
  12  Prefactor     .10000E-03    21.916       -.46077E-05** at limit **
  13  norm          35.434        6.5056       -.97113E-06   -.26172E-02
  14  Prefactor     .10000E-03    28.474        .43459E-05** at limit **
  15  norm          .10039E-03    2.0327        .18006E-05** at limit **
  16  Prefactor     73.592        65.758       -.13262E-04   -.53606E-05
  17  Prefactor     40.199        53.511       -.73760E-05   -.29581E-04
  18  Prefactor     .10015E-03    2.7597        .72167E-06** at limit **
  19  Prefactor     10.361        37.373       -.32544E-05   -.70906E-04
  20  Normalizat    1.0152        .15074        .16764E-05   -.55456E-03
  21  Prefactor     .70133        .16730        .80219E-06   -.29073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.63055
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.3499
  Prefactor  = 2.95772
  norm       = 0.0001
  norm       = 6.93943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 35.4344
  Prefactor  = 0.0001
  norm       = 0.000100387
  Prefactor  = 73.5924
  Prefactor  = 40.1988
  Prefactor  = 0.000100155
  Prefactor  = 10.3612
  Normalizat = 1.01523
  Prefactor  = 0.701327
 **********
 **   18 **HESSE 
 **********

 FCN=   6094.013     FROM HESSE     STATUS=OK           317 CALLS     2553 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.8093        .29055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.6306        15.876        .14510E-03   -1.5155    
   4  Prefactor     .10000E-03    2.5709        .12222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.6253        .12260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.350        20.589        .84734E-04   -1.4762    
   8  Prefactor     2.9577        6.1538        .23611E-03   -1.5364    
   9  norm          .10000E-03    4.0273        .30156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.9394        5.5019        .15230E-03   -1.5181    
  11  Prefactor     .10000E-03    45.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          35.434        6.3060        .67322E-04   -1.4517    
  14  Prefactor     .10000E-03    28.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10039E-03    18.850        .20414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     73.592        65.583        .46797E-04   -1.3990    
  17  Prefactor     40.199        53.402        .63216E-04   -1.4439    
  18  Prefactor     .10015E-03    52.695        .23581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.361        36.099        .12446E-03   -1.5064    
  20  Normalizat    1.0152        .18037        .20493E-03   -.92522    
  21  Prefactor     .70133        .20043        .27534E-03   -1.0347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35515e-08
Minuit parameter uncertainties:
  1  6.11425e-05
  2  2.49214e-06
  3  15.8846
  4  1.59832e-06
  5  2.55881e-05
  6  1.83441e-05
  7  20.5952
  8  6.15509
  9  3.04596e-05
  10  5.50228
  11  0.00014908
  12  2.68416e-05
  13  6.30617
  14  1.32183e-05
  15  0.00540439
  16  65.6475
  17  53.4656
  18  0.0057195
  19  36.1748
  20  0.180476
  21  0.200632
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.002e-04  5.719e-03  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.013e-01  2.006e-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.015e+00  1.805e-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: 7.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191852/likelihoodResults_346896001_347155201_4FGL_J2355.7-3351_daily_bin415.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): 102
logL (Free Index) = 6094.01340327
delta logL = -8.9902570835e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6094.01340309
delta logL = -8.9717087576e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96231E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5798       1.0000          .0000       10.000    
     3 'Normalizat'    1.0151       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70143       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=   6093.720     FROM MIGRAD    STATUS=CONVERGED    236 CALLS      407 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .28482E-01    .23501E-03** at limit **
   2  Index         9.4598        6.0972        .45867E-01    .18744E-04
   3  Normalizat    .98309        .61499E-01    .20782E-03    .56347E-04
   4  Prefactor     .72709        .69939E-01    .27092E-03    .84723E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.45977
  Normalizat = 0.983091
  Prefactor  = 0.727091
 **********
 **   18 **HESSE 
 **********

 FCN=   6093.720     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      442 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .22111E-01    .27417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.4598        6.2306        .18347E-02    1.1016    
   3  Normalizat    .98309        .60268E-01    .83127E-05   -.93599    
   4  Prefactor     .72709        .68577E-01    .10837E-04   -1.0247    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.87216e-09
Minuit parameter uncertainties:
  1  6.82497e-07
  2  10.522
  3  0.0602726
  4  0.0685854
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191852': 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): 102
logL (Free Index) = 6093.71986034
delta logL = 0.293453028296

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  6.825e-07  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  9.460e+00  1.052e+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.271e-01  6.859e-02  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:  9.831e-01  6.027e-02  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/191852/cmap_HighResolution_346896001_347155201_4FGL_J2355.7-3351_daily_bin415.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.71e-03', job_status='DONE', photon_flux_upper_limit='7.31e-08', time_completed='2021-09-30 09:13:27.612170', job_id='191852', GAL2='0.73', fit_tolerance='1e-08', EG2='0.98', EG='1.02', time_epoch_completed='1633018407.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='2.93e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='415' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:13:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 191852: <4FGL_J2355.7-3351_daily_bin415> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin415 358.931 -33.8607 346896001 347155201 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 :                                   623.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            782 sec.

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

