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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin1503
RA = 358.931, Dec = -33.8607
tmin = 628905601, tmax = 629164801
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='197455', job_status='RUN', time_executed='2021-09-30 09:24:01.401862', time_epoch_executed='1633019041.4' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='1503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/197455

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/197455/ft1_4FGL_J2355.7-3351_daily_bin1503.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/197455/ft2_4FGL_J2355.7-3351_daily_bin1503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/197455/ft1_4FGL_J2355.7-3351_daily_bin1503.fits outfile=/scratch/kocevski/197455/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1503.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=628905601.0 tmax=629164801.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.53
user 3.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/197455/ft1_filtered_4FGL_J2355.7-3351_daily_bin1503.fits" evtable="EVENTS" scfile=/scratch/kocevski/197455/ft2_4FGL_J2355.7-3351_daily_bin1503.fits sctable="SC_DATA" outfile=/scratch/kocevski/197455/ltcube_628905601_629164801_4FGL_J2355.7-3351_daily_bin1503.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/197455/ft2_4FGL_J2355.7-3351_daily_bin1503.fits
.....................!
real 11.94
user 11.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/197455/ft1_filtered_4FGL_J2355.7-3351_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/197455/ft2_4FGL_J2355.7-3351_daily_bin1503.fits sctable="SC_DATA" expcube=/scratch/kocevski/197455/ltcube_628905601_629164801_4FGL_J2355.7-3351_daily_bin1503.fits outfile=/scratch/kocevski/197455/expmap_628905601_629164801_4FGL_J2355.7-3351_daily_bin1503.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/197455/ltcube_628905601_629164801_4FGL_J2355.7-3351_daily_bin1503.fits
.....................!
real 191.25
user 185.30
sys 5.58

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/197455/ft1_filtered_4FGL_J2355.7-3351_daily_bin1503.fits scfile=/scratch/kocevski/197455/ft2_4FGL_J2355.7-3351_daily_bin1503.fits outfile=/scratch/kocevski/197455/cmap_628905601_629164801_4FGL_J2355.7-3351_daily_bin1503.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.53
user 0.39
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/197455/ft1_filtered_4FGL_J2355.7-3351_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/197455/ft2_4FGL_J2355.7-3351_daily_bin1503.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/197455/Model_4FGL_J2355.7-3351_daily_bin1503.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/197455/ft1_filtered_4FGL_J2355.7-3351_daily_bin1503.fits.....................!
real 40.94
user 39.59
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34028E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6957       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .38809E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2331       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.4973       1.0000         .10000E-03   10000.    
    10 'norm      '    11.176       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0201       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.624       1.0000         .10000E-03   10000.    
    13 'norm      '    2.7217       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12940       1.0000         .10000E-03   10000.    
    15 'norm      '    7.6846       1.0000         .10000E-03   10000.    
    16 'Prefactor '    42.943       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1863       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3505       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .62087       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=   5176.307     FROM MIGRAD    STATUS=CONVERGED    843 CALLS     2635 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10249E-03    66.442        .15507    ** at limit **
   2  Prefactor     1.6952        4.1801        .19973E-03    .25676E-03
   3  Prefactor     .10250E-03    25.203        .91883E-01** at limit **
   4  Prefactor     .10000E-03    7.4163        .18142E-02** at limit **
   5  Prefactor     .10000E-03    6.2283        .17536E-02** at limit **
   6  Prefactor     7.2330        4.7390        .12249E-03    .65779E-03
   7  Prefactor     .10000E-03    13.907        .18142E-02** at limit **
   8  Prefactor     .10000E-03    7.2077        .18142E-02** at limit **
   9  norm          6.4971        6.5625        .15745E-03   -.14542E-03
  10  norm          11.175        8.5339        .11984E-03   -.26563E-05
  11  Prefactor     .97587        668.26        .77425E-02   -.44122E-04
  12  Prefactor     29.610        53.195        .73611E-04   -.29653E-04
  13  norm          2.7311        6.3056        .19032E-03   -.34144E-03
  14  Prefactor     .12523E-03    22.965        .10393    ** at limit **
  15  norm          7.6871        5.3609        .60503E-03   -.10128E-03
  16  Prefactor     42.993        96.547        .61175E-04    .24568E-04
  17  Prefactor     .10000E-03    16.255        .18142E-02** at limit **
  18  Prefactor     2.1855        6.8772        .13919E-02    .20017E-03
  19  Prefactor     .10000E-03    16.781        .18142E-02** at limit **
  20  Normalizat    1.3505        .22529        .20111E-03    .37278E-03
  21  Prefactor     .62111        .23442        .31610E-03    .39882E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102487
  Prefactor  = 1.69519
  Prefactor  = 0.000102501
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.23296
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.49712
  norm       = 11.175
  Prefactor  = 0.975871
  Prefactor  = 29.61
  norm       = 2.73111
  Prefactor  = 0.000125229
  norm       = 7.68712
  Prefactor  = 42.9929
  Prefactor  = 0.0001
  Prefactor  = 2.18549
  Prefactor  = 0.0001
  Normalizat = 1.35053
  Prefactor  = 0.621112
 **********
 **   18 **HESSE 
 **********

 FCN=   5176.307     FROM HESSE     STATUS=OK           329 CALLS     2964 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10249E-03    67.199        .15385       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.6952        4.1701        .79893E-05   -1.5448    
   3  Prefactor     .10250E-03    23.746        .95689E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.4190        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.2283        .35071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.2330        4.7382        .48994E-05   -1.5170    
   7  Prefactor     .10000E-03    13.908        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.2115        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.4971        6.5507        .62979E-05   -1.5198    
  10  norm          11.175        8.5341        .47935E-05   -1.5039    
  11  Prefactor     .97587        537.11        .30970E-03   -1.5510    
  12  Prefactor     29.610        53.186        .29444E-05   -1.4619    
  13  norm          2.7311        5.8609        .76130E-05   -1.5377    
  14  Prefactor     .12523E-03    22.261        .10651       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.6871        5.2639        .24201E-04   -1.5153    
  16  Prefactor     42.993        96.523        .12235E-04   -1.4396    
  17  Prefactor     .10000E-03    16.256        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.1855        6.8613        .55676E-04   -1.5412    
  19  Prefactor     .10000E-03    16.781        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3505        .22351        .40223E-04   -.82070    
  21  Prefactor     .62111        .23413        .12644E-04   -1.0670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90335e-09
Minuit parameter uncertainties:
  1  0.0258864
  2  4.17079
  3  0.0154195
  4  0.00011639
  5  4.04746e-06
  6  4.73845
  7  4.19521e-05
  8  1.45501e-05
  9  6.55147
  10  8.53506
  11  46.2086
  12  53.2716
  13  5.8621
  14  0.0474142
  15  5.26418
  16  96.8767
  17  8.05079e-05
  18  6.86381
  19  0.000139434
  20  0.223675
  21  0.234497
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  2.185e+00  6.864e+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:  6.211e-01  2.345e-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.351e+00  2.237e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/197455/likelihoodResults_628905601_629164801_4FGL_J2355.7-3351_daily_bin1503.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) = 5175.64820972
delta logL = 0.659268501793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5175.644132
delta logL = 0.663346216796

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19294       1.0000         .10000E-03   10000.    
     2 'Index     '    5.3999       1.0000          .0000       10.000    
     3 'Normalizat'    1.2819       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67572       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=   5175.644     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      310 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19298        2.7068        .63459E-02    .15696E-02
   2  Index         5.3999        3.2704        .18224        .94349E-04
   3  Normalizat    1.2819        .37628E-01    .33136E-01    .23285E-05
   4  Prefactor     .67571        .41971E-01    .68727E-01    .22805E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.192977
  Index      = 5.39993
  Normalizat = 1.28194
  Prefactor  = 0.675711
 **********
 **   18 **HESSE 
 **********

 FCN=   5175.644     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      345 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19298        8.2635        .28946E-03   -1.5620    
   2  Index         5.3999        7.7000        .62961E-02    .80071E-01
   3  Normalizat    1.2819        .16203        .20545E-03   -.84107    
   4  Prefactor     .67571        .17542        .30414E-03   -1.0449    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.19278e-07
Minuit parameter uncertainties:
  1  2.52532
  2  8.23584
  3  0.16209
  4  0.17556
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/197455': 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): 102
logL (Free Index) = 5175.64413196
delta logL = 0.663346263442

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.930e-01  2.525e+00  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  5.400e+00  8.236e+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:  6.757e-01  1.756e-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.282e+00  1.621e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 358.931 -33.861
Photon Index (Free Index): 5.40 +/- 8.24
Photon Flux (Free Index): 5.98e-08 +/- 5.88e-08
Energy Flux (Free Index): 7.71e-06 +/- 1.02e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/197455/cmap_HighResolution_628905601_629164801_4FGL_J2355.7-3351_daily_bin1503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.25e-03', comment='SUCCESS', energy_flux2='7.71e-06', dlogl='6.63e-01', photon_flux2='5.98e-08', job_status='DONE', time_completed='2021-09-30 09:34:16.438826', photon_index_error2='8.24', photon_index2='5.40', ts='0.11', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.02e-05', EG='1.35', time_epoch_completed='1633019656.44', return_code='0', job_id='197455', GAL2='0.68', EG2='1.28', return_code2='102', photon_flux_error2='5.88e-08', ts2='1.54', photon_index='2.58' WHERE bin_id='1503' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:34:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 197455: <4FGL_J2355.7-3351_daily_bin1503> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin1503> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 09:20:35 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 09:20:37 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:20:37 2021
Terminated at Thu Sep 30 09:34:17 2021
Results reported at Thu Sep 30 09:34:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin1503 358.931 -33.8607 628905601 629164801 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 :                                   601.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            822 sec.

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

