/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 130 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7382
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2355.7-3351_daily_bin462
RA = 358.931, Dec = -33.8607
tmin = 359078401, tmax = 359337601
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='191923', job_status='RUN', time_executed='2021-09-30 09:02:54.491136', time_epoch_executed='1633017774.49' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='462'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191923

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191923/ft1_4FGL_J2355.7-3351_daily_bin462.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191923/ft2_4FGL_J2355.7-3351_daily_bin462.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191923/ft1_4FGL_J2355.7-3351_daily_bin462.fits outfile=/scratch/kocevski/191923/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin462.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=359078401.0 tmax=359337601.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.78
user 3.50
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191923/ft1_filtered_4FGL_J2355.7-3351_daily_bin462.fits" evtable="EVENTS" scfile=/scratch/kocevski/191923/ft2_4FGL_J2355.7-3351_daily_bin462.fits sctable="SC_DATA" outfile=/scratch/kocevski/191923/ltcube_359078401_359337601_4FGL_J2355.7-3351_daily_bin462.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/191923/ft2_4FGL_J2355.7-3351_daily_bin462.fits
.....................!
real 11.95
user 11.61
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191923/ft1_filtered_4FGL_J2355.7-3351_daily_bin462.fits evtable="EVENTS" scfile=/scratch/kocevski/191923/ft2_4FGL_J2355.7-3351_daily_bin462.fits sctable="SC_DATA" expcube=/scratch/kocevski/191923/ltcube_359078401_359337601_4FGL_J2355.7-3351_daily_bin462.fits outfile=/scratch/kocevski/191923/expmap_359078401_359337601_4FGL_J2355.7-3351_daily_bin462.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/191923/ltcube_359078401_359337601_4FGL_J2355.7-3351_daily_bin462.fits
.....................!
real 190.82
user 185.27
sys 5.17

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/191923/ft1_filtered_4FGL_J2355.7-3351_daily_bin462.fits scfile=/scratch/kocevski/191923/ft2_4FGL_J2355.7-3351_daily_bin462.fits outfile=/scratch/kocevski/191923/cmap_359078401_359337601_4FGL_J2355.7-3351_daily_bin462.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.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/191923/ft1_filtered_4FGL_J2355.7-3351_daily_bin462.fits evtable="EVENTS" scfile=/scratch/kocevski/191923/ft2_4FGL_J2355.7-3351_daily_bin462.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191923/Model_4FGL_J2355.7-3351_daily_bin462.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/191923/ft1_filtered_4FGL_J2355.7-3351_daily_bin462.fits.....................!
real 46.79
user 45.39
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.376       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9426       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3204       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.395       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.6085       1.0000         .10000E-03   10000.    
     9 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.0738       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.9292       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.888       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.7487       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3046       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .50824       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=   5957.208     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2169 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.367        58.126       -.10715E-04   -.69837E-05
   2  Prefactor     1.9431        3.1048       -.51169E-06   -.69626E-03
   3  Prefactor     .10000E-03    10.428        .31599E-05** at limit **
   4  Prefactor     2.3203        6.7711       -.87851E-06   -.36417E-03
   5  Prefactor     13.397        17.783        .96618E-06   -.40430E-04
   6  Prefactor     .10000E-03    2.2722       -.42040E-07** at limit **
   7  Prefactor     .10000E-03    24.024        .10606E-04** at limit **
   8  Prefactor     7.6089        8.4116       -.34357E-06   -.16501E-03
   9  norm          .10000E-03    2.5381       -.92944E-08** at limit **
  10  norm          9.0739        7.3219       -.16659E-06   -.90161E-04
  11  Prefactor     .10000E-03    9.3125       -.31498E-05** at limit **
  12  Prefactor     .10000E-03    7.2665        .44233E-06** at limit **
  13  norm          8.9308        3.7258        .37059E-07    .85259E-04
  14  Prefactor     14.888        26.381       -.12514E-06   -.46945E-05
  15  norm          .10000E-03    .90540        .31804E-08** at limit **
  16  Prefactor     .10000E-03    34.485       -.64154E-05** at limit **
  17  Prefactor     .10000E-03    16.487       -.82707E-05** at limit **
  18  Prefactor     3.7493        4.7092        .14008E-05   -.40761E-03
  19  Prefactor     .10000E-03    12.143        .28292E-05** at limit **
  20  Normalizat    1.3045        .16175        .65359E-06   -.10274E-03
  21  Prefactor     .50838        .17185       -.13406E-06   -.34467E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.367
  Prefactor  = 1.94307
  Prefactor  = 0.0001
  Prefactor  = 2.32026
  Prefactor  = 13.3965
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.6089
  norm       = 0.0001
  norm       = 9.07389
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.93084
  Prefactor  = 14.8885
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.74929
  Prefactor  = 0.0001
  Normalizat = 1.30447
  Prefactor  = 0.508377
 **********
 **   18 **HESSE 
 **********

 FCN=   5957.208     FROM HESSE     STATUS=OK           317 CALLS     2486 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.367        58.365        .55419E-04   -1.4259    
   2  Prefactor     1.9431        3.1112        .16381E-03   -1.5429    
   3  Prefactor     .10000E-03    10.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.3203        6.7968        .26928E-03   -1.5403    
   5  Prefactor     13.397        17.755        .10944E-03   -1.4976    
   6  Prefactor     .10000E-03    2.3043        .11353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.6089        8.4385        .14539E-03   -1.5156    
   9  norm          .10000E-03    5.8640        .23508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.0739        7.3218        .13305E-03   -1.5105    
  11  Prefactor     .10000E-03    9.3177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.2671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.9308        3.6521        .91330E-04   -1.5110    
  14  Prefactor     14.888        26.412        .10380E-03   -1.4936    
  15  norm          .10000E-03    .90796        .71705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    34.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.7493        4.6644        .17744E-03   -1.5321    
  19  Prefactor     .10000E-03    12.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3045        .18293        .18901E-03   -.83433    
  21  Prefactor     .50838        .19188        .31831E-03   -1.1159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13418e-10
Minuit parameter uncertainties:
  1  58.4285
  2  3.11143
  3  1.23643e-06
  4  6.79907
  5  17.7622
  6  3.43967e-06
  7  4.55764e-05
  8  8.43978
  9  2.46496e-06
  10  7.32249
  11  2.90734e-07
  12  1.4206e-06
  13  3.65223
  14  26.4329
  15  5.10544e-07
  16  6.37125e-06
  17  3.84851e-06
  18  4.66485
  19  1.01547e-05
  20  0.183025
  21  0.192129
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  3.749e+00  4.665e+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:  5.084e-01  1.921e-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.304e+00  1.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.86
Ra Dec: 358.931 -33.861
Photon Flux Upper Limit: 8.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191923/likelihoodResults_359078401_359337601_4FGL_J2355.7-3351_daily_bin462.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) = 5957.17628819
delta logL = 0.0315035852946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5957.16291797
delta logL = 0.0448738007772

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9216       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9461       1.0000          .0000       10.000    
     3 'Normalizat'    1.2968       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51493       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=   5957.163     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9199        99.842        .59418E-02    .42867E-03
   2  Index         2.9469        6.3483        .22234        .58091E-04
   3  Normalizat    1.2969        .46176E-01    .32862E-01   -.27505E-04
   4  Prefactor     .51488        .49475E-01    .71478E-01    .44609E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.91993
  Index      = 2.94687
  Normalizat = 1.29688
  Prefactor  = 0.514876
 **********
 **   18 **HESSE 
 **********

 FCN=   5957.163     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9199        5.7390        .14774E-03   -1.5366    
   2  Index         2.9469        1.5008        .10805E-01   -.42314    
   3  Normalizat    1.2969        .17774        .18947E-03   -.83659    
   4  Prefactor     .51488        .19286        .31644E-03   -1.1130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.71566e-09
Minuit parameter uncertainties:
  1  5.74003
  2  1.52933
  3  0.177819
  4  0.193107
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191923': 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) = 5957.16291771
delta logL = 0.0448740594165

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  2.920e+00  5.740e+00  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.947e+00  1.529e+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:  5.149e-01  1.931e-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.297e+00  1.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.86
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/191923/cmap_HighResolution_359078401_359337601_4FGL_J2355.7-3351_daily_bin462.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.72e-03', job_status='DONE', photon_flux_upper_limit='8.59e-08', time_completed='2021-09-30 09:13:03.265893', job_id='191923', GAL2='0.51', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1633018383.27', return_code2='0', ts='0.86', comment='SUCCESS', return_code='0', GAL='0.51', dlogl='4.49e-02', ts2='0.95', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='462' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:13:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 191923: <4FGL_J2355.7-3351_daily_bin462> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin462 358.931 -33.8607 359078401 359337601 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 :                                   607.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            750 sec.

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

