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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin904
RA = 358.931, Dec = -33.8607
tmin = 473644801, tmax = 473904001
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='194647', job_status='RUN', time_executed='2021-09-30 09:13:10.583709', time_epoch_executed='1633018390.58' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='904'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194647

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194647/ft1_4FGL_J2355.7-3351_daily_bin904.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194647/ft2_4FGL_J2355.7-3351_daily_bin904.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194647/ft1_4FGL_J2355.7-3351_daily_bin904.fits outfile=/scratch/kocevski/194647/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin904.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=473644801.0 tmax=473904001.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.55
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/194647/ft1_filtered_4FGL_J2355.7-3351_daily_bin904.fits" evtable="EVENTS" scfile=/scratch/kocevski/194647/ft2_4FGL_J2355.7-3351_daily_bin904.fits sctable="SC_DATA" outfile=/scratch/kocevski/194647/ltcube_473644801_473904001_4FGL_J2355.7-3351_daily_bin904.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/194647/ft2_4FGL_J2355.7-3351_daily_bin904.fits
.....................!
real 11.75
user 11.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194647/ft1_filtered_4FGL_J2355.7-3351_daily_bin904.fits evtable="EVENTS" scfile=/scratch/kocevski/194647/ft2_4FGL_J2355.7-3351_daily_bin904.fits sctable="SC_DATA" expcube=/scratch/kocevski/194647/ltcube_473644801_473904001_4FGL_J2355.7-3351_daily_bin904.fits outfile=/scratch/kocevski/194647/expmap_473644801_473904001_4FGL_J2355.7-3351_daily_bin904.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/194647/ltcube_473644801_473904001_4FGL_J2355.7-3351_daily_bin904.fits
.....................!
real 193.18
user 187.36
sys 5.51

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/194647/ft1_filtered_4FGL_J2355.7-3351_daily_bin904.fits scfile=/scratch/kocevski/194647/ft2_4FGL_J2355.7-3351_daily_bin904.fits outfile=/scratch/kocevski/194647/cmap_473644801_473904001_4FGL_J2355.7-3351_daily_bin904.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.40
sys 0.12

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/194647/ft1_filtered_4FGL_J2355.7-3351_daily_bin904.fits evtable="EVENTS" scfile=/scratch/kocevski/194647/ft2_4FGL_J2355.7-3351_daily_bin904.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/194647/Model_4FGL_J2355.7-3351_daily_bin904.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/194647/ft1_filtered_4FGL_J2355.7-3351_daily_bin904.fits.....................!
real 36.88
user 35.61
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9056       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .77670E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    39.264       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11119E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.7882       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.025       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.0160       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.342       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .49982       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4040       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.1642       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4134       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .61840       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0399       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=   4513.717     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2265 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.988       -.14989E-05** at limit **
   2  Prefactor     2.9088        3.8619        .42867E-06    .45618E-03
   3  Prefactor     .11435E-03    29.541       -.32459E-05** at limit **
   4  Prefactor     39.245        18.130       -.90075E-05    .21543E-04
   5  Prefactor     .10000E-03    8.9241       -.33610E-06** at limit **
   6  Prefactor     .10000E-03    3.6768       -.12443E-05** at limit **
   7  Prefactor     9.8054        18.833        .24555E-04    .28647E-04
   8  Prefactor     20.021        9.7295       -.10197E-05   -.18648E-04
   9  norm          .10000E-03    1.4854        .31723E-07** at limit **
  10  norm          7.0197        8.0152        .28927E-05   -.21720E-03
  11  Prefactor     17.420        31.137       -.21585E-04   -.80129E-04
  12  Prefactor     .32046        38.331        .20441E-05   -.31671E-03
  13  norm          1.3957        3.3405        .30369E-05    .28997E-05
  14  Prefactor     .10000E-03    25.916       -.68029E-05** at limit **
  15  norm          7.1669        4.5801        .90040E-06   -.23935E-03
  16  Prefactor     .10000E-03    47.179        .70045E-05** at limit **
  17  Prefactor     .10000E-03    11.417        .11399E-09** at limit **
  18  Prefactor     3.4124        4.5283       -.23469E-06   -.24051E-03
  19  Prefactor     .10000E-03    23.478        .66843E-05** at limit **
  20  Normalizat    .61862        .17040        .15284E-05   -.75512E-05
  21  Prefactor     1.0398        .19299       -.11693E-05    .15443E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.90884
  Prefactor  = 0.000114352
  Prefactor  = 39.2446
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 9.8054
  Prefactor  = 20.0215
  norm       = 0.0001
  norm       = 7.01972
  Prefactor  = 17.4196
  Prefactor  = 0.320457
  norm       = 1.39565
  Prefactor  = 0.0001
  norm       = 7.16694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.41237
  Prefactor  = 0.0001
  Normalizat = 0.61862
  Prefactor  = 1.03981
 **********
 **   18 **HESSE 
 **********

 FCN=   4513.717     FROM HESSE     STATUS=OK           335 CALLS     2600 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.9088        3.8633        .12979E-03   -1.5367    
   3  Prefactor     .11435E-03    39.306        .91697E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     39.245        18.129        .63967E-04   -1.4454    
   5  Prefactor     .10000E-03    8.9312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7816        .25182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.8054        18.777        .12808E-03   -1.5082    
   8  Prefactor     20.021        9.7489        .89504E-04   -1.4813    
   9  norm          .10000E-03    1.4856        .79944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.0197        8.0130        .15145E-03   -1.5178    
  11  Prefactor     17.420        30.752        .96177E-04   -1.4873    
  12  Prefactor     .32046        48.500        .11695       -1.5595    
  13  norm          1.3957        3.2164        .16121E-03   -1.5472    
  14  Prefactor     .10000E-03    26.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.1669        4.5579        .10511E-03   -1.5172    
  16  Prefactor     .10000E-03    47.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.4124        4.5209        .15742E-03   -1.5338    
  19  Prefactor     .10000E-03    23.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .61862        .20068        .23725E-03   -1.0720    
  21  Prefactor     1.0398        .22751        .21912E-03   -.91414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26324e-09
Minuit parameter uncertainties:
  1  2.50759e-05
  2  3.86362
  3  0.0475342
  4  18.1317
  5  9.52481e-05
  6  0.000243027
  7  18.7885
  8  9.74966
  9  3.41373e-06
  10  8.01418
  11  30.7798
  12  7.88998
  13  3.21681
  14  1.40354e-05
  15  4.55809
  16  1.21587e-06
  17  1.04999e-06
  18  4.52138
  19  4.46242e-06
  20  0.200917
  21  0.227723
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  3.412e+00  4.521e+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:  1.040e+00  2.277e-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:  6.186e-01  2.009e-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.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/194647/likelihoodResults_473644801_473904001_4FGL_J2355.7-3351_daily_bin904.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) = 4513.71635949
delta logL = 0.000797380002041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4513.71601638
delta logL = 0.00114048251999

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5425       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5174       1.0000          .0000       10.000    
     3 'Normalizat'    .61991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0386       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=   4513.716     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      232 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5423        5.5694        .16111E-03    .20570E-03
   2  Index         2.5173        1.3224        .12366E-01    .34784E-04
   3  Normalizat    .61995        .19427        .23701E-03   -.83175E-04
   4  Prefactor     1.0386        .22713        .21923E-03   -.10785E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.54226
  Index      = 2.51735
  Normalizat = 0.619948
  Prefactor  = 1.03857
 **********
 **   18 **HESSE 
 **********

 FCN=   4513.716     FROM HESSE     STATUS=OK            25 CALLS      257 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5423        5.3343        .64444E-05   -1.5332    
   2  Index         2.5173        1.2676        .49465E-03   -.51960    
   3  Normalizat    .61995        .19432        .94804E-05   -1.0714    
   4  Prefactor     1.0386        .22717        .43847E-04   -.91455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.48524e-11
Minuit parameter uncertainties:
  1  5.33503
  2  1.2863
  3  0.19453
  4  0.22738
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194647': 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) = 4513.71601637
delta logL = 0.00114050077718

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  3.542e+00  5.335e+00  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.517e+00  1.286e+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:  1.039e+00  2.274e-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:  6.199e-01  1.945e-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/194647/cmap_HighResolution_473644801_473904001_4FGL_J2355.7-3351_daily_bin904.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.86e-03', job_status='DONE', photon_flux_upper_limit='8.78e-08', time_completed='2021-09-30 09:22:11.749083', job_id='194647', GAL2='1.04', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1633018931.75', return_code2='0', ts='0.86', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.14e-03', ts2='0.86', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='904' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:22:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 194647: <4FGL_J2355.7-3351_daily_bin904> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin904> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 09:10:31 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 09:10:32 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:10:32 2021
Terminated at Thu Sep 30 09:22:14 2021
Results reported at Thu Sep 30 09:22:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin904 358.931 -33.8607 473644801 473904001 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 :                                   540.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            703 sec.

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

