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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin1608
RA = 358.931, Dec = -33.8607
tmin = 656121601, tmax = 656380801
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='505622', job_status='RUN', time_executed='2021-12-08 09:48:54.422060', time_epoch_executed='1638985734.42' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='1608'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/505622

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/505622/ft1_4FGL_J2355.7-3351_daily_bin1608.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/505622/ft2_4FGL_J2355.7-3351_daily_bin1608.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/505622/ft1_4FGL_J2355.7-3351_daily_bin1608.fits outfile=/scratch/kocevski/505622/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1608.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=656121601.0 tmax=656380801.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.57
user 3.35
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/505622/ft2_4FGL_J2355.7-3351_daily_bin1608.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/505622/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1608.fits evtable="EVENTS" outfile="/scratch/kocevski/505622/ft1_filtered_4FGL_J2355.7-3351_daily_bin1608.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.52
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/505622/ft1_filtered_4FGL_J2355.7-3351_daily_bin1608.fits" evtable="EVENTS" scfile=/scratch/kocevski/505622/ft2_4FGL_J2355.7-3351_daily_bin1608.fits sctable="SC_DATA" outfile=/scratch/kocevski/505622/ltcube_656121601_656380801_4FGL_J2355.7-3351_daily_bin1608.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/505622/ft2_4FGL_J2355.7-3351_daily_bin1608.fits
.....................!
real 15.13
user 14.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/505622/ft1_filtered_4FGL_J2355.7-3351_daily_bin1608.fits evtable="EVENTS" scfile=/scratch/kocevski/505622/ft2_4FGL_J2355.7-3351_daily_bin1608.fits sctable="SC_DATA" expcube=/scratch/kocevski/505622/ltcube_656121601_656380801_4FGL_J2355.7-3351_daily_bin1608.fits outfile=/scratch/kocevski/505622/expmap_656121601_656380801_4FGL_J2355.7-3351_daily_bin1608.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/505622/ltcube_656121601_656380801_4FGL_J2355.7-3351_daily_bin1608.fits
.....................!
real 190.67
user 185.61
sys 4.72

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/505622/ft1_filtered_4FGL_J2355.7-3351_daily_bin1608.fits scfile=/scratch/kocevski/505622/ft2_4FGL_J2355.7-3351_daily_bin1608.fits outfile=/scratch/kocevski/505622/cmap_656121601_656380801_4FGL_J2355.7-3351_daily_bin1608.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.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/505622/ft1_filtered_4FGL_J2355.7-3351_daily_bin1608.fits evtable="EVENTS" scfile=/scratch/kocevski/505622/ft2_4FGL_J2355.7-3351_daily_bin1608.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/505622/Model_4FGL_J2355.7-3351_daily_bin1608.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/505622/ft1_filtered_4FGL_J2355.7-3351_daily_bin1608.fits.....................!
real 36.51
user 35.32
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.622       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1283       1.0000         .10000E-03   10000.    
     5 'Prefactor '    47.341       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14675E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.483       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21010E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5407       1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.503       1.0000         .10000E-03   10000.    
    17 'Prefactor '    90.665       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.6891       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10576E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4782       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .41621       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=   4375.337     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2217 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.624        32.937        .39905E-06    .18894E-04
   2  Prefactor     .10000E-03    4.0078       -.45758E-07** at limit **
   3  Prefactor     .10000E-03    17.297       -.23540E-05** at limit **
   4  Prefactor     4.1252        12.816        .83972E-05   -.11530E-03
   5  Prefactor     47.343        29.910        .15518E-06    .48448E-05
   6  Prefactor     .10000E-03    6.6211        .97519E-06** at limit **
   7  Prefactor     29.494        30.419        .14764E-05    .51259E-04
   8  Prefactor     .10006E-03    9.6136        .22120E-05** at limit **
   9  norm          .10000E-03    1.9961       -.11459E-07** at limit **
  10  norm          .10000E-03    5.9812        .10743E-06** at limit **
  11  Prefactor     .10000E-03    38.873        .18833E-05** at limit **
  12  Prefactor     .10000E-03    44.771       -.27343E-05** at limit **
  13  norm          .10000E-03    2.1263       -.11951E-06** at limit **
  14  Prefactor     .10000E-03    15.809        .14932E-05** at limit **
  15  norm          1.5357        4.9003        .10402E-05   -.12831E-03
  16  Prefactor     34.461        60.734       -.76133E-05   -.23310E-03
  17  Prefactor     90.656        58.195       -.85981E-06   -.11167E-03
  18  Prefactor     3.6882        6.9196        .87764E-06    .21691E-04
  19  Prefactor     .10000E-03    26.697        .71500E-06** at limit **
  20  Normalizat    1.4780        .21213       -.14960E-05   -.28933E-03
  21  Prefactor     .41656        .22075        .19274E-06   -.18701E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.6245
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.12519
  Prefactor  = 47.3434
  Prefactor  = 0.0001
  Prefactor  = 29.4941
  Prefactor  = 0.000100063
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.53569
  Prefactor  = 34.461
  Prefactor  = 90.6557
  Prefactor  = 3.68821
  Prefactor  = 0.0001
  Normalizat = 1.47801
  Prefactor  = 0.416562
 **********
 **   18 **HESSE 
 **********

 FCN=   4375.337     FROM HESSE     STATUS=OK           311 CALLS     2528 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.624        32.951        .72405E-04   -1.4601    
   2  Prefactor     .10000E-03    4.1651        .25828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1252        13.180        .99197E-03   -1.5302    
   5  Prefactor     47.343        29.880        .58277E-04   -1.4331    
   6  Prefactor     .10000E-03    6.6985        .32985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.494        30.303        .73787E-04   -1.4621    
   8  Prefactor     .10006E-03    34.649        .38312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.9976        .91265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6.0189        .15797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    39.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    45.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.1366        .94066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5357        4.9031        .24807E-03   -1.5460    
  16  Prefactor     34.461        63.250        .68222E-04   -1.4533    
  17  Prefactor     90.656        58.309        .21101E-03   -1.3801    
  18  Prefactor     3.6882        6.9283        .21027E-03   -1.5324    
  19  Prefactor     .10000E-03    26.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4780        .23088        .18927E-03   -.78398    
  21  Prefactor     .41656        .23848        .35982E-03   -1.1597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77589e-09
Minuit parameter uncertainties:
  1  32.9706
  2  5.21656e-06
  3  0.000318356
  4  13.1898
  5  29.8895
  6  4.32921e-05
  7  30.3191
  8  0.00295541
  9  1.18701e-07
  10  1.01585e-05
  11  0.000432886
  12  0.000552151
  13  1.01629e-06
  14  0.000228556
  15  4.90435
  16  63.3734
  17  58.346
  18  6.92985
  19  0.000141315
  20  0.231049
  21  0.239048
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  3.688e+00  6.930e+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:  4.166e-01  2.390e-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.478e+00  2.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/505622/likelihoodResults_656121601_656380801_4FGL_J2355.7-3351_daily_bin1608.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) = 4375.23220925
delta logL = 0.104309441592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4375.22378349
delta logL = 0.112735201246

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0021       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1054       1.0000          .0000       10.000    
     3 'Normalizat'    1.4640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42611       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=   4375.224     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      239 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0016        6.1399        .15913E-03    .53711E-03
   2  Index         3.1065        1.2373        .95488E-02    .10274E-03
   3  Normalizat    1.4641        .22764        .18998E-03   -.57582E-03
   4  Prefactor     .42587        .23861        .35604E-03   -.23274E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.0016
  Index      = 3.10651
  Normalizat = 1.46406
  Prefactor  = 0.425869
 **********
 **   18 **HESSE 
 **********

 FCN=   4375.224     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0016        5.6718        .63652E-05   -1.5361    
   2  Index         3.1065        1.1443        .38195E-03   -.38839    
   3  Normalizat    1.4641        .22786        .37996E-04   -.78793    
   4  Prefactor     .42587        .23876        .14242E-04   -1.1551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.52423e-10
Minuit parameter uncertainties:
  1  5.67285
  2  1.15628
  3  0.228021
  4  0.239324
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/505622': 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) = 4375.2237819
delta logL = 0.112736789351

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  3.002e+00  5.673e+00  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  3.107e+00  1.156e+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:  4.259e-01  2.393e-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.464e+00  2.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.37
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/505622/cmap_HighResolution_656121601_656380801_4FGL_J2355.7-3351_daily_bin1608.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.42e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-12-08 09:57:48.085495', job_id='505622', GAL2='0.43', fit_tolerance='1e-08', EG2='1.46', EG='1.48', time_epoch_completed='1638986268.09', return_code2='0', ts='0.37', comment='SUCCESS', return_code='0', GAL='0.42', dlogl='1.13e-01', ts2='0.60', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1608' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:57:48 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 505622: <4FGL_J2355.7-3351_daily_bin1608> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin1608> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec  8 09:45:37 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:47:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:47:54 2021
Terminated at Wed Dec  8 09:57:48 2021
Results reported at Wed Dec  8 09:57:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin1608 358.931 -33.8607 656121601 656380801 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 :                                   533.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   594 sec.
    Turnaround time :                            731 sec.

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

