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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin731
RA = 358.931, Dec = -33.8607
tmin = 428803201, tmax = 429062401
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='193392', job_status='RUN', time_executed='2021-09-30 09:09:37.856852', time_epoch_executed='1633018177.86' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/193392

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/193392/ft1_4FGL_J2355.7-3351_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/193392/ft2_4FGL_J2355.7-3351_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/193392/ft1_4FGL_J2355.7-3351_daily_bin731.fits outfile=/scratch/kocevski/193392/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin731.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=428803201.0 tmax=429062401.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.50
user 6.23
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/193392/ft1_filtered_4FGL_J2355.7-3351_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/193392/ft2_4FGL_J2355.7-3351_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/193392/ltcube_428803201_429062401_4FGL_J2355.7-3351_daily_bin731.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/193392/ft2_4FGL_J2355.7-3351_daily_bin731.fits
.....................!
real 12.50
user 12.15
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/193392/ft1_filtered_4FGL_J2355.7-3351_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/193392/ft2_4FGL_J2355.7-3351_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/193392/ltcube_428803201_429062401_4FGL_J2355.7-3351_daily_bin731.fits outfile=/scratch/kocevski/193392/expmap_428803201_429062401_4FGL_J2355.7-3351_daily_bin731.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/193392/ltcube_428803201_429062401_4FGL_J2355.7-3351_daily_bin731.fits
.....................!
real 190.67
user 184.80
sys 5.53

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/193392/ft1_filtered_4FGL_J2355.7-3351_daily_bin731.fits scfile=/scratch/kocevski/193392/ft2_4FGL_J2355.7-3351_daily_bin731.fits outfile=/scratch/kocevski/193392/cmap_428803201_429062401_4FGL_J2355.7-3351_daily_bin731.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/193392/ft1_filtered_4FGL_J2355.7-3351_daily_bin731.fits scfile=/scratch/kocevski/193392/ft2_4FGL_J2355.7-3351_daily_bin731.fits outfile=/scratch/kocevski/193392/cmap_HighResolution_428803201_429062401_4FGL_J2355.7-3351_daily_bin731.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/193392/ft1_filtered_4FGL_J2355.7-3351_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/193392/ft2_4FGL_J2355.7-3351_daily_bin731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/193392/Model_4FGL_J2355.7-3351_daily_bin731.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/193392/ft1_filtered_4FGL_J2355.7-3351_daily_bin731.fits.....................!
real 32.57
user 31.35
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.551       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7483       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.416       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0538       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.270       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.7988       1.0000         .10000E-03   10000.    
    10 'norm      '    25.736       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21334E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4245       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4550       1.0000         .10000E-03   10000.    
    15 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5571       1.0000         .10000E-03   10000.    
    19 'Prefactor '    54.192       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .92838       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .78748       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=   3643.276     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2232 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.565        37.590        .64533E-06    .20883E-06
   2  Prefactor     3.7477        3.4842       -.91000E-07   -.49655E-04
   3  Prefactor     .10000E-03    7.1604       -.11487E-07** at limit **
   4  Prefactor     .10000E-03    7.2032        .33024E-07** at limit **
   5  Prefactor     13.406        23.920       -.21271E-05   -.23670E-05
   6  Prefactor     4.0634        8.2076        .42292E-05   -.44534E-04
   7  Prefactor     14.139        36.710       -.54368E-05    .51552E-05
   8  Prefactor     .10000E-03    5.5837        .36196E-07** at limit **
   9  norm          3.7991        7.3961       -.75861E-06    .18329E-04
  10  norm          25.745        12.334        .67869E-06    .21871E-04
  11  Prefactor     .10000E-03    83.734       -.12561E-05** at limit **
  12  Prefactor     .10000E-03    23.637        .37321E-07** at limit **
  13  norm          1.4265        7.0659        .12447E-05    .50934E-05
  14  Prefactor     3.3088        87.898       -.40966E-05   -.45821E-05
  15  norm          .10000E-03    4.1235       -.33289E-06** at limit **
  16  Prefactor     .10000E-03    57.133        .51973E-06** at limit **
  17  Prefactor     .10000E-03    19.430       -.15354E-06** at limit **
  18  Prefactor     6.5517        7.2338       -.30790E-06   -.40122E-04
  19  Prefactor     54.145        47.463        .34272E-05    .31184E-04
  20  Normalizat    .92877        .18526       -.37540E-06    .16776E-04
  21  Prefactor     .78717        .20754       -.29476E-06   -.34195E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5654
  Prefactor  = 3.74774
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4058
  Prefactor  = 4.06344
  Prefactor  = 14.1386
  Prefactor  = 0.0001
  norm       = 3.79905
  norm       = 25.7447
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.42647
  Prefactor  = 3.30879
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.55167
  Prefactor  = 54.1452
  Normalizat = 0.928773
  Prefactor  = 0.787168
 **********
 **   18 **HESSE 
 **********

 FCN=   3643.276     FROM HESSE     STATUS=OK           317 CALLS     2549 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.565        37.597        .10157E-03   -1.4919    
   2  Prefactor     3.7477        3.4819        .10363E-03   -1.5321    
   3  Prefactor     .10000E-03    7.1620        .15775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.2406        .15821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.406        23.917        .10936E-03   -1.4976    
   6  Prefactor     4.0634        8.2280        .82735E-03   -1.5305    
   7  Prefactor     14.139        36.749        .10603E-03   -1.4956    
   8  Prefactor     .10000E-03    5.6713        .13925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.7991        7.4570        .15680E-03   -1.5318    
  10  norm          25.745        12.320        .78964E-04   -1.4693    
  11  Prefactor     .10000E-03    85.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4265        7.0944        .21562E-03   -1.5469    
  14  Prefactor     3.3088        87.947        .21758E-03   -1.5344    
  15  norm          .10000E-03    4.2034        .23841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    57.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.5517        7.2432        .15672E-03   -1.5196    
  19  Prefactor     54.145        47.489        .54487E-04   -1.4235    
  20  Normalizat    .92877        .21784        .20552E-03   -.95456    
  21  Prefactor     .78717        .24331        .25453E-03   -1.0020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.918e-11
Minuit parameter uncertainties:
  1  37.6544
  2  3.48206
  3  5.1633e-06
  4  6.96169e-06
  5  23.9345
  6  8.2303
  7  36.8083
  8  4.84465e-06
  9  7.4588
  10  12.3216
  11  0.000520006
  12  1.11059e-05
  13  6.36334
  14  34.1727
  15  3.4539e-05
  16  7.74749e-05
  17  3.287e-05
  18  7.24415
  19  47.5226
  20  0.218044
  21  0.243641
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  6.552e+00  7.244e+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.872e-01  2.436e-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:  9.288e-01  2.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.30
Ra Dec: 358.931 -33.861
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 3.91e-08 +/- 4.31e-08
Energy Flux (Fixed Index): 1.04e-05 +/- 1.15e-05

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

Saving results to:
/scratch/kocevski/193392/likelihoodResults_428803201_429062401_4FGL_J2355.7-3351_daily_bin731.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) = 3643.27467485
delta logL = 0.00150570098822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3643.27430988
delta logL = 0.00187067385787

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3938       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6440       1.0000          .0000       10.000    
     3 'Normalizat'    .92591       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78938       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=   3643.274     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      227 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3924        7.6329        .15329E-03    .13691E-02
   2  Index         2.6450        1.0947        .87421E-02    .24150E-03
   3  Normalizat    .92600        .21711        .20578E-03   -.52135E-03
   4  Prefactor     .78930        .24485        .25422E-03   -.47062E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.39242
  Index      = 2.64495
  Normalizat = 0.925997
  Prefactor  = 0.789302
 **********
 **   18 **HESSE 
 **********

 FCN=   3643.274     FROM HESSE     STATUS=OK            23 CALLS      250 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3924        7.4197        .61316E-05   -1.5202    
   2  Index         2.6450        1.0633        .34968E-03   -.49044    
   3  Normalizat    .92600        .21717        .41157E-04   -.95553    
   4  Prefactor     .78930        .24490        .50844E-04   -1.0012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93543e-09
Minuit parameter uncertainties:
  1  7.42078
  2  1.07387
  3  0.217374
  4  0.245237
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/193392': 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) = 3643.27430925
delta logL = 0.00187130426502

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  6.392e+00  7.421e+00  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.645e+00  1.074e+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.893e-01  2.452e-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:  9.260e-01  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.31
Ra Dec: 358.931 -33.861
Photon Index (Free Index): 2.64 +/- 1.07
Photon Flux (Free Index): 4.11e-08 +/- 5.36e-08
Energy Flux (Free Index): 1.03e-05 +/- 1.11e-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/193392/cmap_HighResolution_428803201_429062401_4FGL_J2355.7-3351_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='3.91e-08', energy_flux2='1.03e-05', photon_flux_error='4.31e-08', dlogl='1.87e-03', energy_flux='1.04e-05', photon_flux2='4.11e-08', job_status='DONE', time_completed='2021-09-30 09:18:07.967478', photon_index_error2='1.07', photon_index2='2.64', ts='1.30', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.11e-05', EG='0.93', time_epoch_completed='1633018687.97', return_code='0', job_id='193392', GAL2='0.79', EG2='0.93', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='5.36e-08', ts2='1.31', photon_index='2.58' WHERE bin_id='731' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:18:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 193392: <4FGL_J2355.7-3351_daily_bin731> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin731> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 09:05:44 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 09:05:46 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:46 2021
Terminated at Thu Sep 30 09:18:08 2021
Results reported at Thu Sep 30 09:18:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin731 358.931 -33.8607 428803201 429062401 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 :                                   509.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             231.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            744 sec.

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

