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


Performing analysis on: 4FGL_J2357.8-5311_daily_bin1596
RA = 359.463, Dec = -53.1919
tmin = 653011201, tmax = 653270401
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='209051', job_status='RUN', time_executed='2021-09-30 10:06:50.727794', time_epoch_executed='1633021610.73' WHERE source_name='4FGL J2357.8-5311' and cadence='daily' and bin_id='1596'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209051

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209051/ft1_4FGL_J2357.8-5311_daily_bin1596.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209051/ft2_4FGL_J2357.8-5311_daily_bin1596.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209051/ft1_4FGL_J2357.8-5311_daily_bin1596.fits outfile=/scratch/kocevski/209051/ft1_filteredMKT_4FGL_J2357.8-5311_daily_bin1596.fits ra=359.463 dec=-53.1919 rad=12.0 tmin=653011201.0 tmax=653270401.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.13
user 2.92
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/209051/ft2_4FGL_J2357.8-5311_daily_bin1596.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/209051/ft2_4FGL_J2357.8-5311_daily_bin1596.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/209051/ft1_filteredMKT_4FGL_J2357.8-5311_daily_bin1596.fits evtable="EVENTS" outfile="/scratch/kocevski/209051/ft1_filtered_4FGL_J2357.8-5311_daily_bin1596.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209051/ft1_filtered_4FGL_J2357.8-5311_daily_bin1596.fits" evtable="EVENTS" scfile=/scratch/kocevski/209051/ft2_4FGL_J2357.8-5311_daily_bin1596.fits sctable="SC_DATA" outfile=/scratch/kocevski/209051/ltcube_653011201_653270401_4FGL_J2357.8-5311_daily_bin1596.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/209051/ft2_4FGL_J2357.8-5311_daily_bin1596.fits
.....................!
real 12.21
user 11.87
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209051/ft1_filtered_4FGL_J2357.8-5311_daily_bin1596.fits evtable="EVENTS" scfile=/scratch/kocevski/209051/ft2_4FGL_J2357.8-5311_daily_bin1596.fits sctable="SC_DATA" expcube=/scratch/kocevski/209051/ltcube_653011201_653270401_4FGL_J2357.8-5311_daily_bin1596.fits outfile=/scratch/kocevski/209051/expmap_653011201_653270401_4FGL_J2357.8-5311_daily_bin1596.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/209051/ltcube_653011201_653270401_4FGL_J2357.8-5311_daily_bin1596.fits
.....................!
real 190.46
user 185.05
sys 5.06

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
Extended source SMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Added 193 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2357.8-5311 @ 359.463 -53.1919

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/209051/ft1_filtered_4FGL_J2357.8-5311_daily_bin1596.fits scfile=/scratch/kocevski/209051/ft2_4FGL_J2357.8-5311_daily_bin1596.fits outfile=/scratch/kocevski/209051/cmap_653011201_653270401_4FGL_J2357.8-5311_daily_bin1596.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=359.463 yref=-53.1919 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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/209051/ft1_filtered_4FGL_J2357.8-5311_daily_bin1596.fits scfile=/scratch/kocevski/209051/ft2_4FGL_J2357.8-5311_daily_bin1596.fits outfile=/scratch/kocevski/209051/cmap_HighResolution_653011201_653270401_4FGL_J2357.8-5311_daily_bin1596.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=359.463 yref=-53.1919 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/209051/ft1_filtered_4FGL_J2357.8-5311_daily_bin1596.fits evtable="EVENTS" scfile=/scratch/kocevski/209051/ft2_4FGL_J2357.8-5311_daily_bin1596.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209051/Model_4FGL_J2357.8-5311_daily_bin1596.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
adding source SMC-Galaxy
Working on...
/scratch/kocevski/209051/ft1_filtered_4FGL_J2357.8-5311_daily_bin1596.fits.......................!
real 148.10
user 146.61
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/209051/ft1_filtered_4FGL_J2357.8-5311_daily_bin1596.fits', '/scratch/kocevski/209051/ft2_4FGL_J2357.8-5311_daily_bin1596.fits', expMap='/scratch/kocevski/209051/expmap_653011201_653270401_4FGL_J2357.8-5311_daily_bin1596.fits', expCube='/scratch/kocevski/209051/ltcube_653011201_653270401_4FGL_J2357.8-5311_daily_bin1596.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/209051/Model_4FGL_J2357.8-5311_daily_bin1596.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2357.8-5311'

4FGL J2357.8-5311
   Spectrum: PowerLaw
605    Prefactor:  2.420e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
606        Index:  2.637e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
607        Scale:  6.037e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/209051/ft1_filtered_4FGL_J2357.8-5311_daily_bin1596.fits
Spacecraft file(s): /scratch/kocevski/209051/ft2_4FGL_J2357.8-5311_daily_bin1596.fits
Exposure map: /scratch/kocevski/209051/expmap_653011201_653270401_4FGL_J2357.8-5311_daily_bin1596.fits
Exposure cube: /scratch/kocevski/209051/ltcube_653011201_653270401_4FGL_J2357.8-5311_daily_bin1596.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/209051/Model_4FGL_J2357.8-5311_daily_bin1596.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) = 523.899257671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10613E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10498E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10441E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .47219E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4352       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    128.41       1.0000         .10000E-03   10000.    
    11 'norm      '    .10267E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    16 'norm      '    9999.9       1.0000         .10000E-03   10000.    
    17 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    18 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    19 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    20 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .33722E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13683E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10995E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .78141       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   520.9590     FROM MIGRAD    STATUS=CONVERGED    672 CALLS     4110 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    225.66       -.58739E-05** at limit **
   2  Prefactor     .10000E-03    152.34        .40193E-05** at limit **
   3  Prefactor     .10000E-03    12.749       -.37436E-06** at limit **
   4  Prefactor     .10000E-03    21.612       -.63756E-07** at limit **
   5  Prefactor     .10000E-03    176.76        .55800E-06** at limit **
   6  Prefactor     .10000E-03    17.168        .30397E-07** at limit **
   7  norm          .10001E-03    6392.9       -.67741E-04** at limit **
   8  Prefactor     4.4347        5.8343        .11181E-05    .56949E-03
   9  norm          .10000E-03    6.1157       -.11372E-05** at limit **
  10  Prefactor     128.32        133.39        .39213E-05    .10503E-03
  11  norm          .10000E-03    6.8096       -.54867E-05** at limit **
  12  Prefactor     .10000E-03    39.740       -.67594E-07** at limit **
  13  Prefactor     .10000E-03    540.65       -.11404E-05** at limit **
  14  Prefactor     .10000E-03    495.96       -.36296E-05** at limit **
  15  Prefactor    10000.0        9930.6       -.10869E-03** at limit **
  16  norm         10000.0        6404.1       -.16968E-03** at limit **
  17  norm         10000.0        9299.9       -.12337E-03** at limit **
  18  Prefactor    10000.0        6970.3       -.70263E-05** at limit **
  19  Prefactor    10000.0        7804.3       -.61656E-04** at limit **
  20  norm         10000.0        351.64        .18746E-05** at limit **
  21  Prefactor     .10000E-03    631.13       -.26522E-05** at limit **
  22  Prefactor     .10000E-03    87.083       -.21472E-05** at limit **
  23  Prefactor     .10000E-03    759.30        .10623E-04** at limit **
  24  norm          .10000E-03    290.55       -.10056E-04** at limit **
  25  Prefactor     .10000E-03    58.915        .16462E-06** at limit **
  26  Prefactor     .10000E-03    153.17        .39132E-05** at limit **
  27  Normalizat    .10000E-01    .89320E-01   -.45385E-04** at limit **
  28  Prefactor     .78127        .22416        .29713E-08    .58165E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 4.43472
  norm       = 0.0001
  Prefactor  = 128.319
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.781265
 **********
 **   18 **HESSE 
 **********

 FCN=   520.9590     FROM HESSE     STATUS=OK           495 CALLS     4605 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    225.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    152.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.750        .79640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.616        .10370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    176.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.168        .92427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    6357.2        .74946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.4347        5.8267        .59451E-04   -1.5287    
   9  norm          .10000E-03    6.1201        .55148E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     128.32        132.61        .17764E-03   -1.3438    
  11  norm          .10000E-03    6.8540        .58057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    39.739        .14067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    540.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    495.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        9930.1        .18267E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm         10000.0        6401.4        .18552E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm         10000.0        9302.4        .18350E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        6970.8        .21441E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor    10000.0        7805.6        .18280E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm         10000.0        351.64        .21351E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    631.13        .21340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    87.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    759.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    290.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    58.920        .17134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    153.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .10000E-01    .89516E-01    .41678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .78127        .22143        .17324E-03   -1.0042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68172e-09
Minuit parameter uncertainties:
  1  0.000382336
  2  0.00021247
  3  1.2554e-05
  4  3.36312e-06
  5  3.21641e-05
  6  8.20403e-07
  7  0.0100317
  8  5.82741
  9  2.6778e-05
  10  132.916
  11  0.000130247
  12  2.34562e-06
  13  0.00011676
  14  0.0003519
  15  0.0782262
  16  0.188435
  17  0.0629234
  18  0.00197843
  19  0.0223429
  20  0.000215268
  21  0.00054843
  22  9.31419e-05
  23  0.00126096
  24  0.000761093
  25  7.17699e-06
  26  0.000207217
  27  4.08354e-06
  28  0.221684
Done.

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

Extracting fit parameters...

4FGL J2357.8-5311
   Spectrum: PowerLaw
605    Prefactor:  1.000e-04  7.177e-06  1.000e-04  1.000e+04 ( 1.000e-12)
606        Index:  2.637e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
607        Scale:  6.037e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  7.813e-01  2.217e-01  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
617   Normalization:  1.000e-02  4.084e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 359.463 -53.192
Photon Flux Upper Limit: 2.20e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.73e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/209051/likelihoodResults_653011201_653270401_4FGL_J2357.8-5311_daily_bin1596.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): 102
logL (Free Index) = 520.959100694
delta logL = -8.09262483017e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 520.959020831
delta logL = -1.06418133328e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10674E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4043       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78124       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+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=   520.9590     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      287 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    850.11        .11947E-01** at limit **
   2  Index         1.8823        5.9277        .50000        .60103E-07
   3  Normalizat    .10000E-01    .17910E-02    .41678E-03** at limit **
   4  Prefactor     .78126        .29438E-01    .17324E-03   -.82276E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100057
  Index      = 1.88226
  Normalizat = 0.01
  Prefactor  = 0.781256
 **********
 **   18 **HESSE 
 **********

 FCN=   520.9590     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      316 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    6943.6        .21084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8823        5.5635        .50000       -.67327    
   3  Normalizat    .10000E-01    .10107E-01    .83356E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .78126        .69935E-01    .34648E-04   -1.0042    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.59284e-08
Minuit parameter uncertainties:
  1  0.0321015
  2  3471.08
  3  3.44554e-08
  4  0.0699426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209051': 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) = 520.959019479
delta logL = 2.88500245915e-07

Extracting fit parameters...

4FGL J2357.8-5311
   Spectrum: PowerLaw
605    Prefactor:  1.001e-04  3.210e-02  1.000e-04  1.000e+04 ( 1.000e-12)
606        Index:  1.882e+00  3.471e+03  0.000e+00  1.000e+01 (-1.000e+00)
607        Scale:  6.037e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  7.813e-01  6.994e-02  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
617   Normalization:  1.000e-02  3.446e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 359.463 -53.192

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/209051/cmap_HighResolution_653011201_653270401_4FGL_J2357.8-5311_daily_bin1596.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.73e-01', job_status='DONE', photon_flux_upper_limit='2.20e-06', time_completed='2021-09-30 10:15:34.753278', job_id='209051', GAL2='0.78', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1633022134.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1596' AND source_name='4FGL J2357.8-5311' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 10:15:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 209051: <4FGL_J2357.8-5311_daily_bin1596> in cluster <slac> Done

Job <4FGL_J2357.8-5311_daily_bin1596> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep 30 10:05:45 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 10:05:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 10:05:47 2021
Terminated at Thu Sep 30 10:15:35 2021
Results reported at Thu Sep 30 10:15:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2357.8-5311_daily_bin1596 359.463 -53.1919 653011201 653270401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2357.8-5311 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   511.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   587 sec.
    Turnaround time :                            590 sec.

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

