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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin544
RA = 358.931, Dec = -33.8607
tmin = 380332801, tmax = 380592001
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='193116', job_status='RUN', time_executed='2021-09-30 09:09:11.057935', time_epoch_executed='1633018151.06' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='544'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/193116

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/193116/ft1_4FGL_J2355.7-3351_daily_bin544.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/193116/ft2_4FGL_J2355.7-3351_daily_bin544.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/193116/ft1_4FGL_J2355.7-3351_daily_bin544.fits outfile=/scratch/kocevski/193116/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin544.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=380332801.0 tmax=380592001.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.51
user 3.24
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/193116/ft1_filtered_4FGL_J2355.7-3351_daily_bin544.fits" evtable="EVENTS" scfile=/scratch/kocevski/193116/ft2_4FGL_J2355.7-3351_daily_bin544.fits sctable="SC_DATA" outfile=/scratch/kocevski/193116/ltcube_380332801_380592001_4FGL_J2355.7-3351_daily_bin544.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/193116/ft2_4FGL_J2355.7-3351_daily_bin544.fits
.....................!
real 11.94
user 11.54
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/193116/ft1_filtered_4FGL_J2355.7-3351_daily_bin544.fits evtable="EVENTS" scfile=/scratch/kocevski/193116/ft2_4FGL_J2355.7-3351_daily_bin544.fits sctable="SC_DATA" expcube=/scratch/kocevski/193116/ltcube_380332801_380592001_4FGL_J2355.7-3351_daily_bin544.fits outfile=/scratch/kocevski/193116/expmap_380332801_380592001_4FGL_J2355.7-3351_daily_bin544.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/193116/ltcube_380332801_380592001_4FGL_J2355.7-3351_daily_bin544.fits
.....................!
real 190.65
user 185.30
sys 5.02

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/193116/ft1_filtered_4FGL_J2355.7-3351_daily_bin544.fits scfile=/scratch/kocevski/193116/ft2_4FGL_J2355.7-3351_daily_bin544.fits outfile=/scratch/kocevski/193116/cmap_380332801_380592001_4FGL_J2355.7-3351_daily_bin544.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/193116/ft1_filtered_4FGL_J2355.7-3351_daily_bin544.fits scfile=/scratch/kocevski/193116/ft2_4FGL_J2355.7-3351_daily_bin544.fits outfile=/scratch/kocevski/193116/cmap_HighResolution_380332801_380592001_4FGL_J2355.7-3351_daily_bin544.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/193116/ft1_filtered_4FGL_J2355.7-3351_daily_bin544.fits evtable="EVENTS" scfile=/scratch/kocevski/193116/ft2_4FGL_J2355.7-3351_daily_bin544.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/193116/Model_4FGL_J2355.7-3351_daily_bin544.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/193116/ft1_filtered_4FGL_J2355.7-3351_daily_bin544.fits.....................!
real 32.13
user 30.88
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11106E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.871       1.0000         .10000E-03   10000.    
     4 'Prefactor '    49.824       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13463E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.748       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.7129       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.149       1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.033       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .56966E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .26431E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.0487       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11266E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .58769       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .90729       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93600       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=   3624.981     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2758 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    75.899       -.16676E-06** at limit **
   2  Prefactor     .10000E-03    2.2507       -.35132E-07** at limit **
   3  Prefactor     11.880        21.051        .20149E-06   -.24754E-04
   4  Prefactor     49.818        24.013        .62417E-06   -.15218E-04
   5  Prefactor     .10000E-03    174.50        .76425E-05** at limit **
   6  Prefactor     18.748        9.4070       -.91860E-07   -.24883E-03
   7  Prefactor     .10000E-03    34.989        .23871E-05** at limit **
   8  Prefactor     9.7129        12.674        .45851E-06   -.34658E-04
   9  norm          .10000E-03    2.4810        .42699E-06** at limit **
  10  norm          10.151        10.174        .54392E-06   -.15294E-03
  11  Prefactor     34.150        40.132       -.19101E-05   -.48331E-03
  12  Prefactor     .10000E-03    34.616        .51574E-05** at limit **
  13  norm          .10016E-03    4.7438        .40514E-05** at limit **
  14  Prefactor     .10000E-03    124.30        .22667E-05** at limit **
  15  norm          1.0575        5.4931       -.35222E-05   -.88669E-03
  16  Prefactor     .10000E-03    77.487        .19288E-05** at limit **
  17  Prefactor     .10000E-03    38.704       -.83060E-05** at limit **
  18  Prefactor     .61751        5.4313        .87152E-06   -.13783E-03
  19  Prefactor     .10000E-03    28.125       -.95244E-06** at limit **
  20  Normalizat    .90729        .21740       -.33249E-05   -.34494E-03
  21  Prefactor     .93603        .23057        .95652E-06   -.41837E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8797
  Prefactor  = 49.818
  Prefactor  = 0.000100001
  Prefactor  = 18.7476
  Prefactor  = 0.0001
  Prefactor  = 9.71294
  norm       = 0.0001
  norm       = 10.151
  Prefactor  = 34.15
  Prefactor  = 0.0001
  norm       = 0.000100158
  Prefactor  = 0.000100001
  norm       = 1.05753
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.61751
  Prefactor  = 0.0001
  Normalizat = 0.907286
  Prefactor  = 0.936034
 **********
 **   18 **HESSE 
 **********

 FCN=   3624.981     FROM HESSE     STATUS=OK           313 CALLS     3071 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    76.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.2678        .88125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.880        21.023        .11627E-03   -1.5018    
   4  Prefactor     49.818        24.013        .56813E-04   -1.4295    
   5  Prefactor     .10000E-03    177.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.748        9.4145        .92502E-04   -1.4842    
   7  Prefactor     .10000E-03    35.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.7129        12.679        .12858E-03   -1.5085    
   9  norm          .10000E-03    2.4842        .92593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.151        10.162        .12577E-03   -1.5071    
  11  Prefactor     34.150        41.068        .68691E-04   -1.4539    
  12  Prefactor     .10000E-03    34.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10016E-03    16.902        .20901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    125.83        .21442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.0575        5.3390        .25273E-03   -1.5502    
  16  Prefactor     .10000E-03    77.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    38.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .61751        19.944        .26004E-02   -1.5551    
  19  Prefactor     .10000E-03    28.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .90729        .25396        .23266E-03   -.96205    
  21  Prefactor     .93603        .27269        .25279E-03   -.94893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08988e-08
Minuit parameter uncertainties:
  1  0.000131996
  2  7.29065e-06
  3  21.0356
  4  24.0174
  5  0.00095199
  6  9.4152
  7  9.10637e-05
  8  12.682
  9  9.17393e-06
  10  10.1641
  11  41.102
  12  6.2084e-05
  13  0.00326898
  14  0.000582517
  15  4.7528
  16  9.50364e-05
  17  2.58886e-05
  18  7.02065
  19  1.97351e-05
  20  0.254294
  21  0.273091
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  6.175e-01  7.021e+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:  9.360e-01  2.731e-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.073e-01  2.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 358.931 -33.861
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/193116/likelihoodResults_380332801_380592001_4FGL_J2355.7-3351_daily_bin544.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) = 3624.98135884
delta logL = 2.01463308258e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3624.97676016
delta logL = 0.00461882566515

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0284       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0366       1.0000          .0000       10.000    
     3 'Normalizat'    .91001       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93262       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=   3624.977     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      277 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0268        15.701        .44503E-03   -.76510E-05
   2  Index         2.0319        2.8288        .23423E-01   -.41039E-05
   3  Normalizat    .91003        .24557        .23234E-03    .53970E-04
   4  Prefactor     .93240        .27280        .25323E-03    .76500E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.02677
  Index      = 2.03187
  Normalizat = 0.910028
  Prefactor  = 0.932403
 **********
 **   18 **HESSE 
 **********

 FCN=   3624.977     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0268        15.582        .17801E-04   -1.5505    
   2  Index         2.0319        2.8291        .93693E-03   -.63556    
   3  Normalizat    .91003        .24582        .92938E-05   -.96109    
   4  Prefactor     .93240        .27288        .10129E-04   -.95018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55768e-11
Minuit parameter uncertainties:
  1  8.00183
  2  3.13751
  3  0.246127
  4  0.273279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/193116': 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) = 3624.97675759
delta logL = 0.00462139583669

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.027e+00  8.002e+00  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.032e+00  3.138e+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:  9.324e-01  2.733e-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.100e-01  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/193116/cmap_HighResolution_380332801_380592001_4FGL_J2355.7-3351_daily_bin544.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.08e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-30 09:17:39.701444', job_id='193116', GAL2='0.93', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1633018659.7', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='4.62e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='544' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:17:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 193116: <4FGL_J2355.7-3351_daily_bin544> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin544 358.931 -33.8607 380332801 380592001 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 :                                   508.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             215.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            742 sec.

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

